3 # From configure.in for Bash 2.02, version 2.19, from autoconf version 2.12
89 # Guess values for system-dependent variables and create Makefiles.
90 # Generated automatically using autoconf version 2.12
91 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
93 # This configure script is free software; the Free Software Foundation
94 # gives unlimited permission to copy, distribute and modify it.
98 ac_default_prefix=/usr/local
99 # Any additions from configure.in:
101 --with-afs if you are running AFS"
103 --with-curses use the curses library instead of the termcap library"
105 --with-glibc-malloc use the GNU C library version of malloc"
107 --with-gnu-malloc use the GNU version of malloc"
109 --with-purecov configure to postprocess with pure coverage"
111 --with-purify configure to postprocess with purify"
113 --enable-minimal-config a minimal sh-like configuration"
115 --enable-alias enable shell aliases"
117 --enable-array-variables include shell array variables"
119 --enable-bang-history turn on csh-style history substitution"
121 --enable-brace-expansion include brace expansion"
123 --enable-command-timing enable the time reserved word and command timing"
125 --enable-cond-command enable the conditional command"
127 --enable-directory-stack enable builtins pushd/popd/dirs"
129 --enable-disabled-builtins allow disabled builtins to still be invoked"
131 --enable-dparen-arithmetic include ((...)) command"
133 --enable-extended-glob include ksh-style extended pattern matching"
135 --enable-help-builtin include the help builtin"
137 --enable-history turn on command history"
139 --enable-job-control enable job control features"
141 --enable-process-substitution enable process substitution"
143 --enable-prompt-string-decoding turn on escape character decoding in prompts"
145 --enable-readline turn on command line editing"
147 --enable-restricted enable a restricted shell"
149 --enable-select include select command"
151 --enable-usg-echo-default make the echo builtin expand escape sequences by default"
153 --enable-profiling allow profiling with gprof"
155 --enable-static-link link bash statically, for use as a root shell"
157 # Initialize some variables set by options.
158 # The variables have the same names as the options, with
159 # dashes changed to underlines.
161 cache_file=./config.cache
170 program_transform_name=s,x,x,
178 bindir='${exec_prefix}/bin'
179 sbindir='${exec_prefix}/sbin'
180 libexecdir='${exec_prefix}/libexec'
181 datadir='${prefix}/share'
182 sysconfdir='${prefix}/etc'
183 sharedstatedir='${prefix}/com'
184 localstatedir='${prefix}/var'
185 libdir='${exec_prefix}/lib'
186 includedir='${prefix}/include'
187 oldincludedir='/usr/include'
188 infodir='${prefix}/info'
189 mandir='${prefix}/man'
191 # Initialize some other variables.
194 # Maximum number of lines to put in a shell here document.
201 # If the previous option needs an argument, assign it.
202 if test -n "$ac_prev"; then
203 eval "$ac_prev=\$ac_option"
209 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
213 # Accept the important Cygnus configure options, so we can diagnose typos.
217 -bindir | --bindir | --bindi | --bind | --bin | --bi)
219 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
220 bindir="$ac_optarg" ;;
222 -build | --build | --buil | --bui | --bu)
224 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
225 build="$ac_optarg" ;;
227 -cache-file | --cache-file | --cache-fil | --cache-fi \
228 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
229 ac_prev=cache_file ;;
230 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
231 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
232 cache_file="$ac_optarg" ;;
234 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
236 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
238 datadir="$ac_optarg" ;;
240 -disable-* | --disable-*)
241 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
242 # Reject names that are not valid shell variable names.
243 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
246 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
247 eval "enable_${ac_feature}=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
251 # Reject names that are not valid shell variable names.
252 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
253 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
255 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
260 eval "enable_${ac_feature}='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix="$ac_optarg" ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
275 -help | --help | --hel | --he)
276 # Omit some internal or obsolete options to make the list less imposing.
277 # This message is too long to be a string in the A/UX 3.1 sh.
279 Usage: configure [options] [host]
280 Options: [defaults in brackets after descriptions]
282 --cache-file=FILE cache test results in FILE
283 --help print this message
284 --no-create do not create output files
285 --quiet, --silent do not print \`checking...' messages
286 --version print the version of autoconf that created configure
287 Directory and file names:
288 --prefix=PREFIX install architecture-independent files in PREFIX
290 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
292 --bindir=DIR user executables in DIR [EPREFIX/bin]
293 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295 --datadir=DIR read-only architecture-independent data in DIR
297 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
298 --sharedstatedir=DIR modifiable architecture-independent data in DIR
300 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302 --includedir=DIR C header files in DIR [PREFIX/include]
303 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304 --infodir=DIR info documentation in DIR [PREFIX/info]
305 --mandir=DIR man documentation in DIR [PREFIX/man]
306 --srcdir=DIR find the sources in DIR [configure dir or ..]
307 --program-prefix=PREFIX prepend PREFIX to installed program names
308 --program-suffix=SUFFIX append SUFFIX to installed program names
309 --program-transform-name=PROGRAM
310 run sed PROGRAM on installed program names
314 --build=BUILD configure for building on BUILD [BUILD=HOST]
315 --host=HOST configure for HOST [guessed]
316 --target=TARGET configure for TARGET [TARGET=HOST]
317 Features and packages:
318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322 --x-includes=DIR X include files are in DIR
323 --x-libraries=DIR X library files are in DIR
325 if test -n "$ac_help"; then
326 echo "--enable and --with options recognized:$ac_help"
330 -host | --host | --hos | --ho)
332 -host=* | --host=* | --hos=* | --ho=*)
335 -includedir | --includedir | --includedi | --included | --include \
336 | --includ | --inclu | --incl | --inc)
337 ac_prev=includedir ;;
338 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
339 | --includ=* | --inclu=* | --incl=* | --inc=*)
340 includedir="$ac_optarg" ;;
342 -infodir | --infodir | --infodi | --infod | --info | --inf)
344 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
345 infodir="$ac_optarg" ;;
347 -libdir | --libdir | --libdi | --libd)
349 -libdir=* | --libdir=* | --libdi=* | --libd=*)
350 libdir="$ac_optarg" ;;
352 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
353 | --libexe | --libex | --libe)
354 ac_prev=libexecdir ;;
355 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
356 | --libexe=* | --libex=* | --libe=*)
357 libexecdir="$ac_optarg" ;;
359 -localstatedir | --localstatedir | --localstatedi | --localstated \
360 | --localstate | --localstat | --localsta | --localst \
361 | --locals | --local | --loca | --loc | --lo)
362 ac_prev=localstatedir ;;
363 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
364 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
365 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
366 localstatedir="$ac_optarg" ;;
368 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
370 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
371 mandir="$ac_optarg" ;;
374 # Obsolete; use --without-fp.
377 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
381 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
382 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
385 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
386 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
387 | --oldin | --oldi | --old | --ol | --o)
388 ac_prev=oldincludedir ;;
389 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
390 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
391 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
392 oldincludedir="$ac_optarg" ;;
394 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
396 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
397 prefix="$ac_optarg" ;;
399 -program-prefix | --program-prefix | --program-prefi | --program-pref \
400 | --program-pre | --program-pr | --program-p)
401 ac_prev=program_prefix ;;
402 -program-prefix=* | --program-prefix=* | --program-prefi=* \
403 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
404 program_prefix="$ac_optarg" ;;
406 -program-suffix | --program-suffix | --program-suffi | --program-suff \
407 | --program-suf | --program-su | --program-s)
408 ac_prev=program_suffix ;;
409 -program-suffix=* | --program-suffix=* | --program-suffi=* \
410 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
411 program_suffix="$ac_optarg" ;;
413 -program-transform-name | --program-transform-name \
414 | --program-transform-nam | --program-transform-na \
415 | --program-transform-n | --program-transform- \
416 | --program-transform | --program-transfor \
417 | --program-transfo | --program-transf \
418 | --program-trans | --program-tran \
419 | --progr-tra | --program-tr | --program-t)
420 ac_prev=program_transform_name ;;
421 -program-transform-name=* | --program-transform-name=* \
422 | --program-transform-nam=* | --program-transform-na=* \
423 | --program-transform-n=* | --program-transform-=* \
424 | --program-transform=* | --program-transfor=* \
425 | --program-transfo=* | --program-transf=* \
426 | --program-trans=* | --program-tran=* \
427 | --progr-tra=* | --program-tr=* | --program-t=*)
428 program_transform_name="$ac_optarg" ;;
430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
431 | -silent | --silent | --silen | --sile | --sil)
434 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
436 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
438 sbindir="$ac_optarg" ;;
440 -sharedstatedir | --sharedstatedir | --sharedstatedi \
441 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
442 | --sharedst | --shareds | --shared | --share | --shar \
444 ac_prev=sharedstatedir ;;
445 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
446 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
447 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
449 sharedstatedir="$ac_optarg" ;;
451 -site | --site | --sit)
453 -site=* | --site=* | --sit=*)
456 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
458 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
459 srcdir="$ac_optarg" ;;
461 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
462 | --syscon | --sysco | --sysc | --sys | --sy)
463 ac_prev=sysconfdir ;;
464 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
465 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
466 sysconfdir="$ac_optarg" ;;
468 -target | --target | --targe | --targ | --tar | --ta | --t)
470 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
471 target="$ac_optarg" ;;
473 -v | -verbose | --verbose | --verbos | --verbo | --verb)
476 -version | --version | --versio | --versi | --vers)
477 echo "configure generated by autoconf version 2.12"
481 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
486 ac_package=`echo $ac_package| sed 's/-/_/g'`
491 eval "with_${ac_package}='$ac_optarg'" ;;
493 -without-* | --without-*)
494 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
499 ac_package=`echo $ac_package| sed 's/-/_/g'`
500 eval "with_${ac_package}=no" ;;
503 # Obsolete; use --with-x.
506 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507 | --x-incl | --x-inc | --x-in | --x-i)
508 ac_prev=x_includes ;;
509 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511 x_includes="$ac_optarg" ;;
513 -x-libraries | --x-libraries | --x-librarie | --x-librari \
514 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515 ac_prev=x_libraries ;;
516 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518 x_libraries="$ac_optarg" ;;
520 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
524 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525 echo "configure: warning: $ac_option: invalid host type" 1>&2
527 if test "x$nonopt" != xNONE; then
528 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
536 if test -n "$ac_prev"; then
537 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
540 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
542 # File descriptor usage:
545 # 2 errors and warnings
546 # 3 some systems may open it to /dev/tty
547 # 4 used on the Kubota Titan
548 # 6 checking for... messages and results
549 # 5 compiler messages saved in config.log
550 if test "$silent" = yes; then
558 This file contains any messages produced by compilers while
559 running configure, to aid debugging if configure makes a mistake.
562 # Strip out --no-create and --no-recursion so they do not pile up.
563 # Also quote any args containing shell metacharacters.
568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
569 | --no-cr | --no-c) ;;
570 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
571 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
572 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
574 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
579 # Only set these to C if already set. These must not be set unconditionally
580 # because not all systems understand e.g. LANG=C (notably SCO).
581 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582 # Non-C LC_CTYPE values break the ctype check.
583 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
584 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
585 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
586 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
588 # confdefs.h avoids OS command line length limits that DEFS can exceed.
589 rm -rf conftest* confdefs.h
590 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
593 # A filename unique to this package, relative to the directory that
594 # configure is in, which we can look for to find out if srcdir is correct.
595 ac_unique_file=shell.h
597 # Find the source files, if location was not specified.
598 if test -z "$srcdir"; then
599 ac_srcdir_defaulted=yes
600 # Try the directory containing this script, then its parent.
602 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
605 if test ! -r $srcdir/$ac_unique_file; then
609 ac_srcdir_defaulted=no
611 if test ! -r $srcdir/$ac_unique_file; then
612 if test "$ac_srcdir_defaulted" = yes; then
613 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
615 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
618 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
620 # Prefer explicitly selected file to automatically selected ones.
621 if test -z "$CONFIG_SITE"; then
622 if test "x$prefix" != xNONE; then
623 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
625 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
628 for ac_site_file in $CONFIG_SITE; do
629 if test -r "$ac_site_file"; then
630 echo "loading site script $ac_site_file"
635 if test -r "$cache_file"; then
636 echo "loading cache $cache_file"
639 echo "creating cache $cache_file"
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp='$CPP $CPPFLAGS'
646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling=$ac_cv_prog_cc_cross
650 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
651 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
652 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
659 ac_n= ac_c='\c' ac_t=
668 for ac_dir in ./support $srcdir/./support; do
669 if test -f $ac_dir/install-sh; then
671 ac_install_sh="$ac_aux_dir/install-sh -c"
673 elif test -f $ac_dir/install.sh; then
675 ac_install_sh="$ac_aux_dir/install.sh -c"
679 if test -z "$ac_aux_dir"; then
680 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 1>&2; exit 1; }
682 ac_config_guess=$ac_aux_dir/config.guess
683 ac_config_sub=$ac_aux_dir/config.sub
684 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
688 # Make sure we can run config.sub.
689 if $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
697 case "$host_alias" in
701 if host_alias=`$ac_config_guess`; then :
702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
704 *) host_alias=$nonopt ;;
708 host=`$ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
722 case "${host_cpu}-${host_os}" in
723 alpha-*) opt_gnu_malloc=no ;; # alpha running osf/1 or linux
724 *Ccray*-*) opt_gnu_malloc=no ;; # Crays
725 *-osf1*) opt_gnu_malloc=no ;; # other osf/1 machines
726 sparc-svr4*) opt_gnu_malloc=no ;; # sparc SVR4, SVR4.2
727 sparc-netbsd*) opt_gnu_malloc=no ;; # needs 8-byte alignment
728 #mips-irix6*) opt_gnu_malloc=no ;; # needs 8-byte alignment
729 sparc-linux*) opt_gnu_malloc=no ;; # sparc running linux; requires ELF
730 #*-freebsd*) opt_gnu_malloc=no ;; # they claim it's better
731 *-aix*) opt_gnu_malloc=no ;; # AIX machines
732 *-nextstep*) opt_gnu_malloc=no ;; # NeXT machines running NeXTstep
733 *-dgux*) opt_gnu_malloc=no ;; # DG/UX machines
734 *-qnx*) opt_gnu_malloc=no ;; # QNX 4.2
735 *-machten4) opt_gnu_malloc=no ;; # MachTen 4.x
736 *-bsdi2.1|*-bsdi3.?) opt_gnu_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
737 *-cygwin32*) opt_gnu_malloc=no ;; # Cygnus's CYGWIN32 environment
740 # Check whether --with-afs or --without-afs was given.
741 if test "${with_afs+set}" = set; then
746 # Check whether --with-curses or --without-curses was given.
747 if test "${with_curses+set}" = set; then
748 withval="$with_curses"
752 # Check whether --with-glibc-malloc or --without-glibc-malloc was given.
753 if test "${with_glibc_malloc+set}" = set; then
754 withval="$with_glibc_malloc"
755 opt_glibc_malloc=$withval
758 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
759 if test "${with_gnu_malloc+set}" = set; then
760 withval="$with_gnu_malloc"
761 opt_gnu_malloc=$withval
764 # Check whether --with-purecov or --without-purecov was given.
765 if test "${with_purecov+set}" = set; then
766 withval="$with_purecov"
770 # Check whether --with-purify or --without-purify was given.
771 if test "${with_purify+set}" = set; then
772 withval="$with_purify"
777 if test "$opt_glibc_malloc" = yes; then
778 MALLOC_TARGET=gmalloc
780 elif test "$opt_gnu_malloc" = yes; then
784 MALLOC_TARGET=stubmalloc
788 if test "$opt_purify" = yes; then
794 if test "$opt_purecov" = yes; then
795 PURIFY="${PURIFY}purecov"
798 if test "$opt_afs" = yes; then
799 cat >> confdefs.h <<\EOF
805 if test "$opt_curses" = yes; then
809 opt_minimal_config=no
818 opt_process_subst=yes
819 opt_prompt_decoding=yes
822 opt_array_variables=yes
824 opt_extended_glob=yes
825 opt_brace_expansion=yes
826 opt_disabled_builtins=no
827 opt_command_timing=yes
834 # Check whether --enable-minimal-config or --disable-minimal-config was given.
835 if test "${enable_minimal_config+set}" = set; then
836 enableval="$enable_minimal_config"
837 opt_minimal_config=$enableval
841 if test $opt_minimal_config = yes; then
842 opt_job_control=no opt_alias=no opt_readline=no
843 opt_history=no opt_bang_history=no opt_dirstack=no
844 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
845 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
846 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
847 opt_extended_glob=no opt_cond_command=no
850 # Check whether --enable-alias or --disable-alias was given.
851 if test "${enable_alias+set}" = set; then
852 enableval="$enable_alias"
856 # Check whether --enable-array-variables or --disable-array-variables was given.
857 if test "${enable_array_variables+set}" = set; then
858 enableval="$enable_array_variables"
859 opt_array_variables=$enableval
862 # Check whether --enable-bang-history or --disable-bang-history was given.
863 if test "${enable_bang_history+set}" = set; then
864 enableval="$enable_bang_history"
865 opt_bang_history=$enableval
868 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
869 if test "${enable_brace_expansion+set}" = set; then
870 enableval="$enable_brace_expansion"
871 opt_brace_expansion=$enableval
874 # Check whether --enable-command-timing or --disable-command-timing was given.
875 if test "${enable_command_timing+set}" = set; then
876 enableval="$enable_command_timing"
877 opt_command_timing=$enableval
880 # Check whether --enable-cond-command or --disable-cond-command was given.
881 if test "${enable_cond_command+set}" = set; then
882 enableval="$enable_cond_command"
883 opt_cond_command=$enableval
886 # Check whether --enable-directory-stack or --disable-directory-stack was given.
887 if test "${enable_directory_stack+set}" = set; then
888 enableval="$enable_directory_stack"
889 opt_dirstack=$enableval
892 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
893 if test "${enable_disabled_builtins+set}" = set; then
894 enableval="$enable_disabled_builtins"
895 opt_disabled_builtins=$enableval
898 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
899 if test "${enable_dparen_arithmetic+set}" = set; then
900 enableval="$enable_dparen_arithmetic"
901 opt_dparen_arith=$enableval
904 # Check whether --enable-extended-glob or --disable-extended-glob was given.
905 if test "${enable_extended_glob+set}" = set; then
906 enableval="$enable_extended_glob"
907 opt_extended_glob=$enableval
910 # Check whether --enable-help-builtin or --disable-help-builtin was given.
911 if test "${enable_help_builtin+set}" = set; then
912 enableval="$enable_help_builtin"
916 # Check whether --enable-history or --disable-history was given.
917 if test "${enable_history+set}" = set; then
918 enableval="$enable_history"
919 opt_history=$enableval
922 # Check whether --enable-job-control or --disable-job-control was given.
923 if test "${enable_job_control+set}" = set; then
924 enableval="$enable_job_control"
925 opt_job_control=$enableval
928 # Check whether --enable-process-substitution or --disable-process-substitution was given.
929 if test "${enable_process_substitution+set}" = set; then
930 enableval="$enable_process_substitution"
931 opt_process_subst=$enableval
934 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
935 if test "${enable_prompt_string_decoding+set}" = set; then
936 enableval="$enable_prompt_string_decoding"
937 opt_prompt_decoding=$enableval
940 # Check whether --enable-readline or --disable-readline was given.
941 if test "${enable_readline+set}" = set; then
942 enableval="$enable_readline"
943 opt_readline=$enableval
946 # Check whether --enable-restricted or --disable-restricted was given.
947 if test "${enable_restricted+set}" = set; then
948 enableval="$enable_restricted"
949 opt_restricted=$enableval
952 # Check whether --enable-select or --disable-select was given.
953 if test "${enable_select+set}" = set; then
954 enableval="$enable_select"
955 opt_select=$enableval
958 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
959 if test "${enable_usg_echo_default+set}" = set; then
960 enableval="$enable_usg_echo_default"
961 opt_usg_echo=$enableval
965 # Check whether --enable-profiling or --disable-profiling was given.
966 if test "${enable_profiling+set}" = set; then
967 enableval="$enable_profiling"
968 opt_profiling=$enableval
971 # Check whether --enable-static-link or --disable-static-link was given.
972 if test "${enable_static_link+set}" = set; then
973 enableval="$enable_static_link"
974 opt_static_link=$enableval
979 if test $opt_alias = yes; then
980 cat >> confdefs.h <<\EOF
985 if test $opt_readline = yes; then
986 cat >> confdefs.h <<\EOF
990 READLINE_LIB=-lreadline
991 READLINE_DEP='$(READLINE_LIBRARY)'
993 READLINE_LIB= READLINE_DEP=
995 if test $opt_history = yes; then
996 cat >> confdefs.h <<\EOF
1000 HISTORY_LIB=-lhistory
1001 HISTORY_DEP='$(HISTORY_LIBRARY)'
1003 HISTORY_LIB= HISTORY_DEP=
1005 if test $opt_bang_history = yes; then
1006 cat >> confdefs.h <<\EOF
1007 #define BANG_HISTORY 1
1010 HISTORY_LIB=-lhistory
1011 HISTORY_DEP='$(HISTORY_LIBRARY)'
1013 HISTORY_LIB= HISTORY_DEP=
1015 if test $opt_dirstack = yes; then
1016 cat >> confdefs.h <<\EOF
1017 #define PUSHD_AND_POPD 1
1021 if test $opt_restricted = yes; then
1022 cat >> confdefs.h <<\EOF
1023 #define RESTRICTED_SHELL 1
1027 if test $opt_process_subst = yes; then
1028 cat >> confdefs.h <<\EOF
1029 #define PROCESS_SUBSTITUTION 1
1033 if test $opt_prompt_decoding = yes; then
1034 cat >> confdefs.h <<\EOF
1035 #define PROMPT_STRING_DECODE 1
1039 if test $opt_select = yes; then
1040 cat >> confdefs.h <<\EOF
1041 #define SELECT_COMMAND 1
1045 if test $opt_help = yes; then
1046 cat >> confdefs.h <<\EOF
1047 #define HELP_BUILTIN 1
1051 if test $opt_array_variables = yes; then
1052 cat >> confdefs.h <<\EOF
1053 #define ARRAY_VARS 1
1057 if test $opt_dparen_arith = yes; then
1058 cat >> confdefs.h <<\EOF
1059 #define DPAREN_ARITHMETIC 1
1063 if test $opt_brace_expansion = yes; then
1064 cat >> confdefs.h <<\EOF
1065 #define BRACE_EXPANSION 1
1069 if test $opt_disabled_builtins = yes; then
1070 cat >> confdefs.h <<\EOF
1071 #define DISABLED_BUILTINS 1
1075 if test $opt_command_timing = yes; then
1076 cat >> confdefs.h <<\EOF
1077 #define COMMAND_TIMING 1
1081 if test $opt_usg_echo = yes ; then
1082 cat >> confdefs.h <<\EOF
1083 #define DEFAULT_ECHO_TO_USG 1
1087 if test $opt_extended_glob = yes ; then
1088 cat >> confdefs.h <<\EOF
1089 #define EXTENDED_GLOB 1
1093 if test $opt_cond_command = yes ; then
1094 cat >> confdefs.h <<\EOF
1095 #define COND_COMMAND 1
1100 if test "$opt_minimal_config" = yes; then
1101 TESTSCRIPT=run-minimal
1118 echo "Beginning configuration for bash-$BASHVERS for ${host_cpu}-${host_vendor}-${host_os}"
1120 # Extract the first word of "gcc", so it can be a program name with args.
1121 set dummy gcc; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC="$CC" # Let the user override the test.
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1131 for ac_dir in $PATH; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1148 if test -z "$CC"; then
1149 # Extract the first word of "cc", so it can be a program name with args.
1150 set dummy cc; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$CC"; then
1157 ac_cv_prog_CC="$CC" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1161 for ac_dir in $PATH; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1165 ac_prog_rejected=yes
1173 if test $ac_prog_rejected = yes; then
1174 # We found a bogon in the path, so make sure we never use it.
1175 set dummy $ac_cv_prog_CC
1177 if test $# -gt 0; then
1178 # We chose a different compiler from the bogus one.
1179 # However, it has the same basename, so the bogon will be chosen
1180 # first if we set CC to just the basename; use the full file name.
1182 set dummy "$ac_dir/$ac_word" "$@"
1190 if test -n "$CC"; then
1191 echo "$ac_t""$CC" 1>&6
1193 echo "$ac_t""no" 1>&6
1196 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1199 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1204 ac_cpp='$CPP $CPPFLAGS'
1205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1206 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1207 cross_compiling=$ac_cv_prog_cc_cross
1209 cat > conftest.$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1214 if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1215 ac_cv_prog_cc_works=yes
1216 # If we can't run a trivial program, we are probably using a cross compiler.
1217 if (./conftest; exit) 2>/dev/null; then
1218 ac_cv_prog_cc_cross=no
1220 ac_cv_prog_cc_cross=yes
1223 echo "configure: failed program was:" >&5
1224 cat conftest.$ac_ext >&5
1225 ac_cv_prog_cc_works=no
1229 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1230 if test $ac_cv_prog_cc_works = no; then
1231 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1233 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1234 echo "configure:1235: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1235 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1236 cross_compiling=$ac_cv_prog_cc_cross
1238 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1239 echo "configure:1240: checking whether we are using GNU C" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.c <<EOF
1248 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1255 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1257 if test $ac_cv_prog_gcc = yes; then
1259 ac_test_CFLAGS="${CFLAGS+set}"
1260 ac_save_CFLAGS="$CFLAGS"
1262 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether ${CC-cc} accepts -g" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 echo 'void f(){}' > conftest.c
1268 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1277 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1278 if test "$ac_test_CFLAGS" = set; then
1279 CFLAGS="$ac_save_CFLAGS"
1280 elif test $ac_cv_prog_cc_g = yes; then
1287 test "${CFLAGS+set}" = set || CFLAGS="-g"
1290 echo $ac_n "checking whether large file support needs explicit enabling""... $ac_c" 1>&6
1291 echo "configure:1292: checking whether large file support needs explicit enabling" >&5
1295 ac_shellvars='CPPFLAGS LDFLAGS LIBS'
1296 for ac_shellvar in $ac_shellvars; do
1297 case $ac_shellvar in
1298 CPPFLAGS) ac_lfsvar=LFS_CFLAGS ac_lfs64var=LFS64_CFLAGS ;;
1299 *) ac_lfsvar=LFS_$ac_shellvar ac_lfs64var=LFS64_$ac_shellvar ;;
1301 eval test '"${'$ac_shellvar'+set}"' = set && ac_set=$ac_shellvar
1302 (getconf $ac_lfsvar) >/dev/null 2>&1 || { ac_result=no; break; }
1303 ac_getconf=`getconf $ac_lfsvar`
1304 ac_getconf64=`getconf $ac_lfs64var`
1305 ac_getconfs=$ac_getconfs$ac_getconf\ $ac_getconf64
1306 eval ac_test_$ac_shellvar="\$ac_getconf\ \$ac_getconf64"
1308 case "$ac_result$ac_getconfs" in
1309 yes) ac_result=no ;;
1311 case "$ac_result$ac_set" in
1312 yes?*) ac_result="yes, but $ac_set is already set, so use its settings"
1314 echo "$ac_t""$ac_result" 1>&6
1317 for ac_shellvar in $ac_shellvars; do
1318 eval $ac_shellvar=\$ac_test_$ac_shellvar
1322 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1323 echo "configure:1324: checking for POSIXized ISC" >&5
1324 if test -d /etc/conf/kconfig.d &&
1325 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1327 echo "$ac_t""yes" 1>&6
1328 ISC=yes # If later tests want to check for ISC.
1329 cat >> confdefs.h <<\EOF
1330 #define _POSIX_SOURCE 1
1333 if test "$GCC" = yes; then
1339 echo "$ac_t""no" 1>&6
1343 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1344 echo "configure:1345: checking how to run the C preprocessor" >&5
1345 # On Suns, sometimes $CPP names a directory.
1346 if test -n "$CPP" && test -d "$CPP"; then
1349 if test -z "$CPP"; then
1350 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 # This must be in double quotes, not single quotes, because CPP may get
1354 # substituted into the Makefile and "${CC-cc}" will confuse make.
1356 # On the NeXT, cc -E runs the code through the compiler's parser,
1357 # not just through cpp.
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1365 { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1366 ac_err=`grep -v '^ *+' conftest.out`
1367 if test -z "$ac_err"; then
1371 echo "configure: failed program was:" >&5
1372 cat conftest.$ac_ext >&5
1374 CPP="${CC-cc} -E -traditional-cpp"
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1382 { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1383 ac_err=`grep -v '^ *+' conftest.out`
1384 if test -z "$ac_err"; then
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1396 ac_cv_prog_CPP="$CPP"
1398 CPP="$ac_cv_prog_CPP"
1400 ac_cv_prog_CPP="$CPP"
1402 echo "$ac_t""$CPP" 1>&6
1404 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1405 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1406 echo "configure:1407: checking for minix/config.h" >&5
1407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1413 #include <minix/config.h>
1415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1416 { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1417 ac_err=`grep -v '^ *+' conftest.out`
1418 if test -z "$ac_err"; then
1420 eval "ac_cv_header_$ac_safe=yes"
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1426 eval "ac_cv_header_$ac_safe=no"
1430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1434 echo "$ac_t""no" 1>&6
1438 if test "$MINIX" = yes; then
1439 cat >> confdefs.h <<\EOF
1440 #define _POSIX_SOURCE 1
1443 cat >> confdefs.h <<\EOF
1444 #define _POSIX_1_SOURCE 2
1447 cat >> confdefs.h <<\EOF
1455 if test "x$cross_compiling" = "xyes"; then
1458 cross_cache=${srcdir}/cross-build/cygwin32.cache
1459 if test -r "${cross_cache}"; then
1460 echo "loading cross-build cache file ${cross_cache}"
1465 *) echo "configure: cross-compiling for a non-cygwin32 target is not supported" >&2
1470 if test -z "$CC_FOR_BUILD"; then
1471 if test "x$cross_compiling" = "xno"; then
1472 CC_FOR_BUILD='$(CC)'
1479 if test "x$cross_compiling" = "xno"; then
1480 SIGNAMES_H=lsignames.h
1482 SIGNAMES_H='$(srcdir)/cross-build/win32sig.h'
1487 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1489 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
1491 if test "$opt_profiling" = "yes"; then
1496 if test "$opt_static_link" = yes; then
1497 # if we're using gcc, add `-static' to LDFLAGS
1498 if test -n "$GCC" || test "$ac_cv_prog_gcc" = "yes"; then
1499 LDFLAGS="$LDFLAGS -static"
1507 if test $ac_cv_prog_gcc = yes; then
1508 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1509 echo "configure:1510: checking whether ${CC-cc} needs -traditional" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 ac_pattern="Autoconf.*'x'"
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521 egrep "$ac_pattern" >/dev/null 2>&1; then
1523 ac_cv_prog_gcc_traditional=yes
1526 ac_cv_prog_gcc_traditional=no
1531 if test $ac_cv_prog_gcc_traditional = no; then
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1539 egrep "$ac_pattern" >/dev/null 2>&1; then
1541 ac_cv_prog_gcc_traditional=yes
1548 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1549 if test $ac_cv_prog_gcc_traditional = yes; then
1550 CC="$CC -traditional"
1555 # Find a good install program. We prefer a C program (faster),
1556 # so one script is as good as another. But avoid the broken or
1557 # incompatible versions:
1558 # SysV /etc/install, /usr/sbin/install
1559 # SunOS /usr/etc/install
1560 # IRIX /sbin/install
1562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1564 # ./install, which can be erroneously created by make from ./install.sh.
1565 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1566 echo "configure:1567: checking for a BSD compatible install" >&5
1567 if test -z "$INSTALL"; then
1568 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1572 for ac_dir in $PATH; do
1573 # Account for people who put trailing slashes in PATH elements.
1575 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 for ac_prog in ginstall installbsd scoinst install; do
1579 if test -f $ac_dir/$ac_prog; then
1580 if test $ac_prog = install &&
1581 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1582 # AIX install. It has an incompatible calling convention.
1583 # OSF/1 installbsd also uses dspmsg, but is usable.
1586 ac_cv_path_install="$ac_dir/$ac_prog -c"
1597 if test "${ac_cv_path_install+set}" = set; then
1598 INSTALL="$ac_cv_path_install"
1600 # As a last resort, use the slow shell script. We don't cache a
1601 # path for INSTALL within a source directory, because that will
1602 # break other packages using the cache if that directory is
1603 # removed, or if the path is relative.
1604 INSTALL="$ac_install_sh"
1607 echo "$ac_t""$INSTALL" 1>&6
1609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1610 # It thinks the first close brace ends the variable substitution.
1611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1615 # Extract the first word of "ar", so it can be a program name with args.
1616 set dummy ar; ac_word=$2
1617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_word" >&5
1619 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 if test -n "$AR"; then
1623 ac_cv_prog_AR="$AR" # Let the user override the test.
1625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1626 for ac_dir in $PATH; do
1627 test -z "$ac_dir" && ac_dir=.
1628 if test -f $ac_dir/$ac_word; then
1637 if test -n "$AR"; then
1638 echo "$ac_t""$AR" 1>&6
1640 echo "$ac_t""no" 1>&6
1643 # Extract the first word of "ranlib", so it can be a program name with args.
1644 set dummy ranlib; ac_word=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5
1647 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 if test -n "$RANLIB"; then
1651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1654 for ac_dir in $PATH; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_prog_RANLIB="ranlib"
1662 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1665 RANLIB="$ac_cv_prog_RANLIB"
1666 if test -n "$RANLIB"; then
1667 echo "$ac_t""$RANLIB" 1>&6
1669 echo "$ac_t""no" 1>&6
1672 for ac_prog in 'bison -y' byacc
1674 # Extract the first word of "$ac_prog", so it can be a program name with args.
1675 set dummy $ac_prog; ac_word=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test -n "$YACC"; then
1682 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1685 for ac_dir in $PATH; do
1686 test -z "$ac_dir" && ac_dir=.
1687 if test -f $ac_dir/$ac_word; then
1688 ac_cv_prog_YACC="$ac_prog"
1695 YACC="$ac_cv_prog_YACC"
1696 if test -n "$YACC"; then
1697 echo "$ac_t""$YACC" 1>&6
1699 echo "$ac_t""no" 1>&6
1702 test -n "$YACC" && break
1704 test -n "$YACC" || YACC="yacc"
1706 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether ${MAKE-make} sets \${MAKE}" >&5
1708 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1709 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftestmake <<\EOF
1714 @echo 'ac_maketemp="${MAKE}"'
1716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1717 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1718 if test -n "$ac_maketemp"; then
1719 eval ac_cv_prog_make_${ac_make}_set=yes
1721 eval ac_cv_prog_make_${ac_make}_set=no
1725 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1729 echo "$ac_t""no" 1>&6
1730 SET_MAKE="MAKE=${MAKE-make}"
1734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1735 # for constant arguments. Useless!
1736 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1737 echo "configure:1738: checking for working alloca.h" >&5
1738 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1746 char *p = alloca(2 * sizeof(int));
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1751 ac_cv_header_alloca_h=yes
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1756 ac_cv_header_alloca_h=no
1761 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1762 if test $ac_cv_header_alloca_h = yes; then
1763 cat >> confdefs.h <<\EOF
1764 #define HAVE_ALLOCA_H 1
1769 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1770 echo "configure:1771: checking for alloca" >&5
1771 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1779 # define alloca __builtin_alloca
1782 # include <alloca.h>
1787 # ifndef alloca /* predefined by HP cc +Olibcalls */
1795 char *p = (char *) alloca(1);
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1800 ac_cv_func_alloca_works=yes
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1805 ac_cv_func_alloca_works=no
1810 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1811 if test $ac_cv_func_alloca_works = yes; then
1812 cat >> confdefs.h <<\EOF
1813 #define HAVE_ALLOCA 1
1818 if test $ac_cv_func_alloca_works = no; then
1819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1820 # that cause trouble. Some versions do not even contain alloca or
1821 # contain a buggy version. If you still want to use their alloca,
1822 # use ar to extract alloca.o from them instead of compiling alloca.c.
1824 cat >> confdefs.h <<\EOF
1829 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether alloca needs Cray hooks" >&5
1831 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #if defined(CRAY) && ! defined(CRAY2)
1844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1845 egrep "webecray" >/dev/null 2>&1; then
1856 echo "$ac_t""$ac_cv_os_cray" 1>&6
1857 if test $ac_cv_os_cray = yes; then
1858 for ac_func in _getb67 GETB67 getb67; do
1859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_func" >&5
1861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 /* System header to define __stub macros and hopefully few prototypes,
1868 which can conflict with char $ac_func(); below. */
1870 /* Override any gcc2 internal prototype to avoid an error. */
1871 /* We use char because int might match the return type of a gcc2
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1890 eval "ac_cv_func_$ac_func=yes"
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 eval "ac_cv_func_$ac_func=no"
1900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1902 cat >> confdefs.h <<EOF
1903 #define CRAY_STACKSEG_END $ac_func
1908 echo "$ac_t""no" 1>&6
1914 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1915 echo "configure:1916: checking stack direction for C alloca" >&5
1916 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 if test "$cross_compiling" = yes; then
1920 ac_cv_c_stack_direction=0
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925 find_stack_direction ()
1927 static char *addr = 0;
1932 return find_stack_direction ();
1935 return (&dummy > addr) ? 1 : -1;
1939 exit (find_stack_direction() < 0);
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1944 ac_cv_c_stack_direction=1
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 ac_cv_c_stack_direction=-1
1956 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1957 cat >> confdefs.h <<EOF
1958 #define STACK_DIRECTION $ac_cv_c_stack_direction
1963 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
1964 echo "configure:1965: checking whether getpgrp takes no argument" >&5
1965 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 if test "$cross_compiling" = yes; then
1969 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1976 * If this system has a BSD-style getpgrp(),
1977 * which takes a pid argument, exit unsuccessfully.
1979 * Snarfed from Chet Ramey's bash pgrp.c test program
1982 #include <sys/types.h>
1985 int pg1, pg2, pg3, pg4;
1986 int ng, np, s, child;
1997 * If all of these values are the same, it's pretty sure that
1998 * we're on a system that ignores getpgrp's first argument.
2000 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
2006 else if (child == 0) {
2009 * If this is Sys V, this will not work; pgrp will be
2010 * set to np because setpgrp just changes a pgrp to be
2011 * the same as the pid.
2014 ng = getpgrp(0); /* Same result for Sys V and BSD */
2027 if { (eval echo configure:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2029 ac_cv_func_getpgrp_void=yes
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 ac_cv_func_getpgrp_void=no
2042 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
2043 if test $ac_cv_func_getpgrp_void = yes; then
2044 cat >> confdefs.h <<\EOF
2045 #define GETPGRP_VOID 1
2050 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether setvbuf arguments are reversed" >&5
2052 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 if test "$cross_compiling" = yes; then
2056 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2058 cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2062 /* If setvbuf has the reversed format, exit 0. */
2064 /* This call has the arguments reversed.
2065 A reversed system may check and see that the address of main
2066 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
2067 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2070 exit(0); /* Non-reversed systems segv here. */
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2075 ac_cv_func_setvbuf_reversed=yes
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 ac_cv_func_setvbuf_reversed=no
2085 rm -f core core.* *.core
2088 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2089 if test $ac_cv_func_setvbuf_reversed = yes; then
2090 cat >> confdefs.h <<\EOF
2091 #define SETVBUF_REVERSED 1
2096 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2097 echo "configure:2098: checking for vprintf" >&5
2098 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char vprintf(); below. */
2107 /* Override any gcc2 internal prototype to avoid an error. */
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2127 eval "ac_cv_func_vprintf=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 eval "ac_cv_func_vprintf=no"
2137 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2139 cat >> confdefs.h <<\EOF
2140 #define HAVE_VPRINTF 1
2144 echo "$ac_t""no" 1>&6
2147 if test "$ac_cv_func_vprintf" != yes; then
2148 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2149 echo "configure:2150: checking for _doprnt" >&5
2150 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 /* System header to define __stub macros and hopefully few prototypes,
2157 which can conflict with char _doprnt(); below. */
2159 /* Override any gcc2 internal prototype to avoid an error. */
2160 /* We use char because int might match the return type of a gcc2
2161 builtin and then its argument prototype would still apply. */
2166 /* The GNU C library defines this for functions which it implements
2167 to always fail with ENOSYS. Some functions are actually named
2168 something starting with __ and the normal name is an alias. */
2169 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2179 eval "ac_cv_func__doprnt=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 eval "ac_cv_func__doprnt=no"
2189 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2191 cat >> confdefs.h <<\EOF
2192 #define HAVE_DOPRNT 1
2196 echo "$ac_t""no" 1>&6
2201 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2202 echo "configure:2203: checking for wait3 that fills in rusage" >&5
2203 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 if test "$cross_compiling" = yes; then
2207 ac_cv_func_wait3_rusage=no
2209 cat > conftest.$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <sys/types.h>
2213 #include <sys/time.h>
2214 #include <sys/resource.h>
2216 /* HP-UX has wait3 but does not fill in rusage at all. */
2220 /* Use a field that we can force nonzero --
2221 voluntary context switches.
2222 For systems like NeXT and OSF/1 that don't set it,
2223 also use the system CPU time. And page faults (I/O) for Linux. */
2225 r.ru_stime.tv_sec = 0;
2226 r.ru_stime.tv_usec = 0;
2227 r.ru_majflt = r.ru_minflt = 0;
2229 case 0: /* Child. */
2230 sleep(1); /* Give up the CPU. */
2232 case -1: _exit(0); /* What can we do? */
2233 default: /* Parent. */
2235 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2236 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2237 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2243 ac_cv_func_wait3_rusage=yes
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 ac_cv_func_wait3_rusage=no
2255 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2256 if test $ac_cv_func_wait3_rusage = yes; then
2257 cat >> confdefs.h <<\EOF
2258 #define HAVE_WAIT3 1
2263 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
2264 echo "configure:2265: checking for working strcoll" >&5
2265 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 if test "$cross_compiling" = yes; then
2269 ac_cv_func_strcoll_works=no
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2277 exit (strcoll ("abc", "def") >= 0 ||
2278 strcoll ("ABC", "DEF") >= 0 ||
2279 strcoll ("123", "456") >= 0);
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2284 ac_cv_func_strcoll_works=yes
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 ac_cv_func_strcoll_works=no
2296 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
2297 if test $ac_cv_func_strcoll_works = yes; then
2298 cat >> confdefs.h <<\EOF
2299 #define HAVE_STRCOLL 1
2305 if test "$ac_cv_func_vprintf" = no; then
2306 echo $ac_n "checking for declaration of vprintf in stdio.h""... $ac_c" 1>&6
2307 echo "configure:2308: checking for declaration of vprintf in stdio.h" >&5
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
2316 ac_cv_func_vprintf=yes
2320 echo "$ac_t""$ac_cv_func_vprintf" 1>&6
2321 if test $ac_cv_func_vprintf = yes; then
2322 cat >> confdefs.h <<\EOF
2323 #define HAVE_VPRINTF 1
2329 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2330 echo "configure:2331: checking return type of signal handlers" >&5
2331 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 #include <sys/types.h>
2343 extern "C" void (*signal (int, void (*)(int)))(int);
2345 void (*signal ()) ();
2352 if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354 ac_cv_type_signal=void
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 ac_cv_type_signal=int
2364 echo "$ac_t""$ac_cv_type_signal" 1>&6
2365 cat >> confdefs.h <<EOF
2366 #define RETSIGTYPE $ac_cv_type_signal
2371 echo $ac_n "checking for __setostype""... $ac_c" 1>&6
2372 echo "configure:2373: checking for __setostype" >&5
2373 if eval "test \"`echo '$''{'ac_cv_func___setostype'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* System header to define __stub macros and hopefully few prototypes,
2380 which can conflict with char __setostype(); below. */
2382 /* Override any gcc2 internal prototype to avoid an error. */
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2389 /* The GNU C library defines this for functions which it implements
2390 to always fail with ENOSYS. Some functions are actually named
2391 something starting with __ and the normal name is an alias. */
2392 #if defined (__stub___setostype) || defined (__stub_____setostype)
2400 if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2402 eval "ac_cv_func___setostype=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 eval "ac_cv_func___setostype=no"
2412 if eval "test \"`echo '$ac_cv_func_'__setostype`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 cat >> confdefs.h <<\EOF
2415 #define HAVE_SETOSTYPE 1
2419 echo "$ac_t""no" 1>&6
2422 echo $ac_n "checking for wait3""... $ac_c" 1>&6
2423 echo "configure:2424: checking for wait3" >&5
2424 if eval "test \"`echo '$''{'ac_cv_func_wait3'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 /* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char wait3(); below. */
2433 /* Override any gcc2 internal prototype to avoid an error. */
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2440 /* The GNU C library defines this for functions which it implements
2441 to always fail with ENOSYS. Some functions are actually named
2442 something starting with __ and the normal name is an alias. */
2443 #if defined (__stub_wait3) || defined (__stub___wait3)
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2453 eval "ac_cv_func_wait3=yes"
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 eval "ac_cv_func_wait3=no"
2463 if eval "test \"`echo '$ac_cv_func_'wait3`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 cat >> confdefs.h <<\EOF
2466 #define HAVE_WAIT3 1
2470 echo "$ac_t""no" 1>&6
2474 echo $ac_n "checking for mkfifo""... $ac_c" 1>&6
2475 echo "configure:2476: checking for mkfifo" >&5
2476 if eval "test \"`echo '$''{'ac_cv_func_mkfifo'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char mkfifo(); below. */
2485 /* Override any gcc2 internal prototype to avoid an error. */
2486 /* We use char because int might match the return type of a gcc2
2487 builtin and then its argument prototype would still apply. */
2492 /* The GNU C library defines this for functions which it implements
2493 to always fail with ENOSYS. Some functions are actually named
2494 something starting with __ and the normal name is an alias. */
2495 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2505 eval "ac_cv_func_mkfifo=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 eval "ac_cv_func_mkfifo=no"
2515 if eval "test \"`echo '$ac_cv_func_'mkfifo`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 cat >> confdefs.h <<\EOF
2518 #define HAVE_MKFIFO 1
2522 echo "$ac_t""no" 1>&6
2523 cat >> confdefs.h <<\EOF
2524 #define MKFIFO_MISSING 1
2530 for ac_func in dup2 select getdtablesize getgroups gethostname \
2531 setdtablesize getpagesize killpg lstat getpeername \
2532 getrlimit getrusage gettimeofday waitpid tcgetpgrp
2534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_func" >&5
2536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 /* System header to define __stub macros and hopefully few prototypes,
2543 which can conflict with char $ac_func(); below. */
2545 /* Override any gcc2 internal prototype to avoid an error. */
2546 /* We use char because int might match the return type of a gcc2
2547 builtin and then its argument prototype would still apply. */
2552 /* The GNU C library defines this for functions which it implements
2553 to always fail with ENOSYS. Some functions are actually named
2554 something starting with __ and the normal name is an alias. */
2555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2563 if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2565 eval "ac_cv_func_$ac_func=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 eval "ac_cv_func_$ac_func=no"
2575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2576 echo "$ac_t""yes" 1>&6
2577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2578 cat >> confdefs.h <<EOF
2579 #define $ac_tr_func 1
2583 echo "$ac_t""no" 1>&6
2588 for ac_func in bcopy bzero confstr getcwd strcasecmp setenv putenv \
2589 setlinebuf setlocale strchr strerror strtod strtol \
2590 strtoul tcgetattr uname sysconf ulimit times tzset \
2591 siginterrupt memmove
2593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2594 echo "configure:2595: checking for $ac_func" >&5
2595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $ac_func(); below. */
2604 /* Override any gcc2 internal prototype to avoid an error. */
2605 /* We use char because int might match the return type of a gcc2
2606 builtin and then its argument prototype would still apply. */
2611 /* The GNU C library defines this for functions which it implements
2612 to always fail with ENOSYS. Some functions are actually named
2613 something starting with __ and the normal name is an alias. */
2614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2624 eval "ac_cv_func_$ac_func=yes"
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2629 eval "ac_cv_func_$ac_func=no"
2634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2637 cat >> confdefs.h <<EOF
2638 #define $ac_tr_func 1
2642 echo "$ac_t""no" 1>&6
2647 for ac_hdr in libintl.h
2649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_hdr" >&5
2652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2661 { (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2662 ac_err=`grep -v '^ *+' conftest.out`
2663 if test -z "$ac_err"; then
2665 eval "ac_cv_header_$ac_safe=yes"
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2671 eval "ac_cv_header_$ac_safe=no"
2675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2676 echo "$ac_t""yes" 1>&6
2677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2678 cat >> confdefs.h <<EOF
2679 #define $ac_tr_hdr 1
2683 echo "$ac_t""no" 1>&6
2687 for ac_func in gettext textdomain bindtextdomain
2689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2690 echo "configure:2691: checking for $ac_func" >&5
2691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2697 /* System header to define __stub macros and hopefully few prototypes,
2698 which can conflict with char $ac_func(); below. */
2700 /* Override any gcc2 internal prototype to avoid an error. */
2701 /* We use char because int might match the return type of a gcc2
2702 builtin and then its argument prototype would still apply. */
2707 /* The GNU C library defines this for functions which it implements
2708 to always fail with ENOSYS. Some functions are actually named
2709 something starting with __ and the normal name is an alias. */
2710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2720 eval "ac_cv_func_$ac_func=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 eval "ac_cv_func_$ac_func=no"
2730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2733 cat >> confdefs.h <<EOF
2734 #define $ac_tr_func 1
2738 echo "$ac_t""no" 1>&6
2743 if test "$ac_cv_func_bindtextdomain" = "no"; then
2744 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2745 echo "configure:2746: checking for bindtextdomain in -lintl" >&5
2746 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 ac_save_LIBS="$LIBS"
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 /* Override any gcc2 internal prototype to avoid an error. */
2756 /* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
2758 char bindtextdomain();
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2766 eval "ac_cv_lib_$ac_lib_var=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 eval "ac_cv_lib_$ac_lib_var=no"
2774 LIBS="$ac_save_LIBS"
2777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2781 cat >> confdefs.h <<EOF
2782 #define $ac_tr_lib 1
2788 echo "$ac_t""no" 1>&6
2791 if test "$ac_cv_lib_intl" = "yes"; then
2792 for ac_func in gettext textdomain bindtextdomain
2794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_func" >&5
2796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* System header to define __stub macros and hopefully few prototypes,
2803 which can conflict with char $ac_func(); below. */
2805 /* Override any gcc2 internal prototype to avoid an error. */
2806 /* We use char because int might match the return type of a gcc2
2807 builtin and then its argument prototype would still apply. */
2812 /* The GNU C library defines this for functions which it implements
2813 to always fail with ENOSYS. Some functions are actually named
2814 something starting with __ and the normal name is an alias. */
2815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2823 if { (eval echo configure:2824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2825 eval "ac_cv_func_$ac_func=yes"
2827 echo "configure: failed program was:" >&5
2828 cat conftest.$ac_ext >&5
2830 eval "ac_cv_func_$ac_func=no"
2835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2836 echo "$ac_t""yes" 1>&6
2837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2838 cat >> confdefs.h <<EOF
2839 #define $ac_tr_func 1
2843 echo "$ac_t""no" 1>&6
2850 if test "$opt_static_link" != yes; then
2851 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2852 echo "configure:2853: checking for dlopen in -ldl" >&5
2853 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 ac_save_LIBS="$LIBS"
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 /* Override any gcc2 internal prototype to avoid an error. */
2863 /* We use char because int might match the return type of a gcc2
2864 builtin and then its argument prototype would still apply. */
2871 if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2873 eval "ac_cv_lib_$ac_lib_var=yes"
2875 echo "configure: failed program was:" >&5
2876 cat conftest.$ac_ext >&5
2878 eval "ac_cv_lib_$ac_lib_var=no"
2881 LIBS="$ac_save_LIBS"
2884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2888 cat >> confdefs.h <<EOF
2889 #define $ac_tr_lib 1
2895 echo "$ac_t""no" 1>&6
2898 for ac_func in dlopen dlclose dlsym
2900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_func" >&5
2902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 /* System header to define __stub macros and hopefully few prototypes,
2909 which can conflict with char $ac_func(); below. */
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2918 /* The GNU C library defines this for functions which it implements
2919 to always fail with ENOSYS. Some functions are actually named
2920 something starting with __ and the normal name is an alias. */
2921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2931 eval "ac_cv_func_$ac_func=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2936 eval "ac_cv_func_$ac_func=no"
2941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2944 cat >> confdefs.h <<EOF
2945 #define $ac_tr_func 1
2949 echo "$ac_t""no" 1>&6
2955 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2956 echo "configure:2957: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2957 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <sys/types.h>
2965 /* NetBSD declares sys_siglist in unistd.h. */
2966 #ifdef HAVE_UNISTD_H
2970 char *msg = *(sys_siglist + 1);
2973 if { (eval echo configure:2974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2975 ac_cv_decl_sys_siglist=yes
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2980 ac_cv_decl_sys_siglist=no
2985 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2986 if test $ac_cv_decl_sys_siglist = yes; then
2987 cat >> confdefs.h <<\EOF
2988 #define SYS_SIGLIST_DECLARED 1
2995 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2998 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_hdr that defines DIR" >&5
3000 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <sys/types.h>
3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3014 eval "ac_cv_header_dirent_$ac_safe=yes"
3016 echo "configure: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3019 eval "ac_cv_header_dirent_$ac_safe=no"
3023 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3024 echo "$ac_t""yes" 1>&6
3025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3026 cat >> confdefs.h <<EOF
3027 #define $ac_tr_hdr 1
3029 ac_header_dirent=$ac_hdr; break
3031 echo "$ac_t""no" 1>&6
3034 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3035 if test $ac_header_dirent = dirent.h; then
3036 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3037 echo "configure:3038: checking for opendir in -ldir" >&5
3038 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 ac_save_LIBS="$LIBS"
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 /* Override any gcc2 internal prototype to avoid an error. */
3048 /* We use char because int might match the return type of a gcc2
3049 builtin and then its argument prototype would still apply. */
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3058 eval "ac_cv_lib_$ac_lib_var=yes"
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3063 eval "ac_cv_lib_$ac_lib_var=no"
3066 LIBS="$ac_save_LIBS"
3069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3070 echo "$ac_t""yes" 1>&6
3073 echo "$ac_t""no" 1>&6
3077 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3078 echo "configure:3079: checking for opendir in -lx" >&5
3079 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_save_LIBS="$LIBS"
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 /* Override any gcc2 internal prototype to avoid an error. */
3089 /* We use char because int might match the return type of a gcc2
3090 builtin and then its argument prototype would still apply. */
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3099 eval "ac_cv_lib_$ac_lib_var=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3104 eval "ac_cv_lib_$ac_lib_var=no"
3107 LIBS="$ac_save_LIBS"
3110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3114 echo "$ac_t""no" 1>&6
3119 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3120 echo "configure:3121: checking whether time.h and sys/time.h may both be included" >&5
3121 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <sys/types.h>
3128 #include <sys/time.h>
3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3136 ac_cv_header_time=yes
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 ac_cv_header_time=no
3146 echo "$ac_t""$ac_cv_header_time" 1>&6
3147 if test $ac_cv_header_time = yes; then
3148 cat >> confdefs.h <<\EOF
3149 #define TIME_WITH_SYS_TIME 1
3155 for ac_hdr in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
3156 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
3159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3161 echo "configure:3162: checking for $ac_hdr" >&5
3162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3171 { (eval echo configure:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3172 ac_err=`grep -v '^ *+' conftest.out`
3173 if test -z "$ac_err"; then
3175 eval "ac_cv_header_$ac_safe=yes"
3178 echo "configure: failed program was:" >&5
3179 cat conftest.$ac_ext >&5
3181 eval "ac_cv_header_$ac_safe=no"
3185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3188 cat >> confdefs.h <<EOF
3189 #define $ac_tr_hdr 1
3193 echo "$ac_t""no" 1>&6
3197 for ac_hdr in sys/ptem.h sys/pte.h sys/stream.h sys/select.h sys/file.h \
3198 sys/resource.h sys/param.h sys/socket.h \
3199 sys/time.h sys/times.h sys/wait.h
3201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3203 echo "configure:3204: checking for $ac_hdr" >&5
3204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3213 { (eval echo configure:3214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3214 ac_err=`grep -v '^ *+' conftest.out`
3215 if test -z "$ac_err"; then
3217 eval "ac_cv_header_$ac_safe=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_header_$ac_safe=no"
3227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3230 cat >> confdefs.h <<EOF
3231 #define $ac_tr_hdr 1
3235 echo "$ac_t""no" 1>&6
3240 if test "$ac_cv_func_getpeername" = no; then
3242 if test "X$bash_cv_have_socklib" = "X"; then
3245 echo $ac_n "checking for socket library""... $ac_c" 1>&6
3246 echo "configure:3247: checking for socket library" >&5
3249 if eval "test \"`echo '$''{'bash_cv_have_socklib'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 echo $ac_n "checking for getpeername in -lsocket""... $ac_c" 1>&6
3253 echo "configure:3254: checking for getpeername in -lsocket" >&5
3254 ac_lib_var=`echo socket'_'getpeername | sed 'y%./+-%__p_%'`
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_save_LIBS="$LIBS"
3259 LIBS="-lsocket -lnsl $LIBS"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 /* Override any gcc2 internal prototype to avoid an error. */
3264 /* We use char because int might match the return type of a gcc2
3265 builtin and then its argument prototype would still apply. */
3272 if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3274 eval "ac_cv_lib_$ac_lib_var=yes"
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 eval "ac_cv_lib_$ac_lib_var=no"
3282 LIBS="$ac_save_LIBS"
3285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 bash_cv_have_socklib=yes
3289 echo "$ac_t""no" 1>&6
3290 bash_cv_have_socklib=no
3295 if test "X$_bash_needmsg" = Xyes; then
3296 echo "$ac_t""$bash_cv_have_socklib" 1>&6
3299 if test $bash_cv_have_socklib = yes; then
3300 # check for libnsl, add it to LIBS if present
3301 if test "X$bash_cv_have_libnsl" = "X"; then
3304 echo $ac_n "checking for libnsl""... $ac_c" 1>&6
3305 echo "configure:3306: checking for libnsl" >&5
3308 if eval "test \"`echo '$''{'bash_cv_have_libnsl'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3312 echo "configure:3313: checking for t_open in -lnsl" >&5
3313 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 ac_save_LIBS="$LIBS"
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 /* We use char because int might match the return type of a gcc2
3324 builtin and then its argument prototype would still apply. */
3331 if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3333 eval "ac_cv_lib_$ac_lib_var=yes"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3338 eval "ac_cv_lib_$ac_lib_var=no"
3341 LIBS="$ac_save_LIBS"
3344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3345 echo "$ac_t""yes" 1>&6
3346 bash_cv_have_libnsl=yes
3348 echo "$ac_t""no" 1>&6
3349 bash_cv_have_libnsl=no
3354 if test "X$_bash_needmsg" = Xyes; then
3355 echo "$ac_t""$bash_cv_have_libnsl" 1>&6
3358 if test $bash_cv_have_libnsl = yes; then
3359 LIBS="-lsocket -lnsl $LIBS"
3361 LIBS="-lsocket $LIBS"
3363 cat >> confdefs.h <<\EOF
3364 #define HAVE_LIBSOCKET 1
3367 cat >> confdefs.h <<\EOF
3368 #define HAVE_GETPEERNAME 1
3375 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3376 echo "configure:3377: checking for uid_t in sys/types.h" >&5
3377 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 #include <sys/types.h>
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "uid_t" >/dev/null 2>&1; then
3388 ac_cv_type_uid_t=yes
3397 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3398 if test $ac_cv_type_uid_t = no; then
3399 cat >> confdefs.h <<\EOF
3403 cat >> confdefs.h <<\EOF
3409 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3410 echo "configure:3411: checking type of array argument to getgroups" >&5
3411 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 if test "$cross_compiling" = yes; then
3415 ac_cv_type_getgroups=cross
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3421 /* Thanks to Mike Rendell for this test. */
3422 #include <sys/types.h>
3425 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3430 union { gid_t gval; long lval; } val;
3433 for (i = 0; i < NGID; i++)
3434 gidset[i] = val.gval;
3435 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3437 /* Exit non-zero if getgroups seems to require an array of ints. This
3438 happens when gid_t is short but getgroups modifies an array of ints. */
3439 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3445 ac_cv_type_getgroups=gid_t
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3450 ac_cv_type_getgroups=int
3455 if test $ac_cv_type_getgroups = cross; then
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3464 ac_cv_type_getgroups=gid_t
3467 ac_cv_type_getgroups=int
3474 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3475 cat >> confdefs.h <<EOF
3476 #define GETGROUPS_T $ac_cv_type_getgroups
3480 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3481 echo "configure:3482: checking for ANSI C header files" >&5
3482 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3494 { (eval echo configure:3495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3495 ac_err=`grep -v '^ *+' conftest.out`
3496 if test -z "$ac_err"; then
3498 ac_cv_header_stdc=yes
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 ac_cv_header_stdc=no
3508 if test $ac_cv_header_stdc = yes; then
3509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3510 cat > conftest.$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "memchr" >/dev/null 2>&1; then
3520 ac_cv_header_stdc=no
3526 if test $ac_cv_header_stdc = yes; then
3527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3528 cat > conftest.$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 egrep "free" >/dev/null 2>&1; then
3538 ac_cv_header_stdc=no
3544 if test $ac_cv_header_stdc = yes; then
3545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3546 if test "$cross_compiling" = yes; then
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3553 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3554 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3556 int main () { int i; for (i = 0; i < 256; i++)
3557 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3568 ac_cv_header_stdc=no
3576 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3577 if test $ac_cv_header_stdc = yes; then
3578 cat >> confdefs.h <<\EOF
3579 #define STDC_HEADERS 1
3584 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3585 echo "configure:3586: checking for off_t" >&5
3586 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 #include <sys/types.h>
3598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3599 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3601 ac_cv_type_off_t=yes
3609 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3610 if test $ac_cv_type_off_t = no; then
3611 cat >> confdefs.h <<\EOF
3617 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3618 echo "configure:3619: checking for mode_t" >&5
3619 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 #include <sys/types.h>
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3634 ac_cv_type_mode_t=yes
3637 ac_cv_type_mode_t=no
3642 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3643 if test $ac_cv_type_mode_t = no; then
3644 cat >> confdefs.h <<\EOF
3650 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3651 echo "configure:3652: checking for uid_t in sys/types.h" >&5
3652 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <sys/types.h>
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661 egrep "uid_t" >/dev/null 2>&1; then
3663 ac_cv_type_uid_t=yes
3672 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3673 if test $ac_cv_type_uid_t = no; then
3674 cat >> confdefs.h <<\EOF
3678 cat >> confdefs.h <<\EOF
3684 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3685 echo "configure:3686: checking for pid_t" >&5
3686 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <sys/types.h>
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3701 ac_cv_type_pid_t=yes
3709 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3710 if test $ac_cv_type_pid_t = no; then
3711 cat >> confdefs.h <<\EOF
3717 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3718 echo "configure:3719: checking for size_t" >&5
3719 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 #include <sys/types.h>
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3734 ac_cv_type_size_t=yes
3737 ac_cv_type_size_t=no
3742 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3743 if test $ac_cv_type_size_t = no; then
3744 cat >> confdefs.h <<\EOF
3745 #define size_t unsigned
3750 echo $ac_n "checking for time_t""... $ac_c" 1>&6
3751 echo "configure:3752: checking for time_t" >&5
3752 if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <sys/types.h>
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 egrep "time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3767 ac_cv_type_time_t=yes
3770 ac_cv_type_time_t=no
3775 echo "$ac_t""$ac_cv_type_time_t" 1>&6
3776 if test $ac_cv_type_time_t = no; then
3777 cat >> confdefs.h <<\EOF
3784 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3785 echo "configure:3786: checking return type of signal handlers" >&5
3786 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 #include <sys/types.h>
3798 extern "C" void (*signal (int, void (*)(int)))(int);
3800 void (*signal ()) ();
3807 if { (eval echo configure:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3809 ac_cv_type_signal=void
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 ac_cv_type_signal=int
3819 echo "$ac_t""$ac_cv_type_signal" 1>&6
3820 cat >> confdefs.h <<EOF
3821 #define RETSIGTYPE $ac_cv_type_signal
3826 echo $ac_n "checking size of int""... $ac_c" 1>&6
3827 echo "configure:3828: checking size of int" >&5
3828 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 if test "$cross_compiling" = yes; then
3832 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3840 FILE *f=fopen("conftestval", "w");
3842 fprintf(f, "%d\n", sizeof(int));
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3848 ac_cv_sizeof_int=`cat conftestval`
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3859 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3860 cat >> confdefs.h <<EOF
3861 #define SIZEOF_INT $ac_cv_sizeof_int
3865 echo $ac_n "checking size of long""... $ac_c" 1>&6
3866 echo "configure:3867: checking size of long" >&5
3867 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 if test "$cross_compiling" = yes; then
3871 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3879 FILE *f=fopen("conftestval", "w");
3881 fprintf(f, "%d\n", sizeof(long));
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3887 ac_cv_sizeof_long=`cat conftestval`
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3898 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3899 cat >> confdefs.h <<EOF
3900 #define SIZEOF_LONG $ac_cv_sizeof_long
3904 echo $ac_n "checking size of char *""... $ac_c" 1>&6
3905 echo "configure:3906: checking size of char *" >&5
3906 if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 if test "$cross_compiling" = yes; then
3910 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3918 FILE *f=fopen("conftestval", "w");
3920 fprintf(f, "%d\n", sizeof(char *));
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3926 ac_cv_sizeof_char_p=`cat conftestval`
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 ac_cv_sizeof_char_p=0
3937 echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
3938 cat >> confdefs.h <<EOF
3939 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
3944 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
3945 echo "configure:3946: checking for int32_t" >&5
3946 if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 #include <sys/types.h>
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 egrep "int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3961 ac_cv_type_int32_t=yes
3964 ac_cv_type_int32_t=no
3969 echo "$ac_t""$ac_cv_type_int32_t" 1>&6
3970 if test $ac_cv_type_int32_t = no; then
3971 cat >> confdefs.h <<\EOF
3977 if test "$ac_cv_type_int32_t" = "no"; then
3979 if test "X$bash_cv_type_int32_t" = "X"; then
3982 echo $ac_n "checking which builtin C type is 32 bits wide""... $ac_c" 1>&6
3983 echo "configure:3984: checking which builtin C type is 32 bits wide" >&5
3986 if eval "test \"`echo '$''{'bash_cv_type_int32_t'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3989 if test "$cross_compiling" = yes; then
3990 { echo "configure: error: cannot check type sizes if cross-compiling -- defaulting to int" 1>&2; exit 1; }
3991 bash_cv_type_int32_t=int
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
4003 # if SIZEOF_LONG == 4
4006 # error cannot find 32 bit type...
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4013 bash_cv_type_int32_t=int
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 bash_cv_type_int32_t=long
4025 if test "X$_bash_needmsg" = "Xyes"; then
4026 echo $ac_n "checking which builtin C type is 32 bits wide""... $ac_c" 1>&6
4027 echo "configure:4028: checking which builtin C type is 32 bits wide" >&5
4029 echo "$ac_t""$bash_cv_type_int32_t" 1>&6;
4030 if test "$bash_cv_type_int32_t" = "int"; then
4031 cat >> confdefs.h <<\EOF
4036 cat >> confdefs.h <<\EOF
4037 #define int32_t long
4043 echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
4044 echo "configure:4045: checking for u_int32_t" >&5
4045 if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 #include <sys/types.h>
4057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4058 egrep "u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4060 ac_cv_type_u_int32_t=yes
4063 ac_cv_type_u_int32_t=no
4068 echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
4069 if test $ac_cv_type_u_int32_t = no; then
4070 cat >> confdefs.h <<\EOF
4076 if test "$ac_cv_type_u_int32_t" = "no"; then
4078 if test "X$bash_cv_type_u_int32_t" = "X"; then
4081 echo $ac_n "checking which unsigned builtin C type is 32 bits wide""... $ac_c" 1>&6
4082 echo "configure:4083: checking which unsigned builtin C type is 32 bits wide" >&5
4085 if eval "test \"`echo '$''{'bash_cv_type_u_int32_t'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 if test "$cross_compiling" = yes; then
4089 { echo "configure: error: cannot check type sizes if cross-compiling -- defaulting to int" 1>&2; exit 1; }
4090 bash_cv_type_u_int32_t=int
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4102 # if SIZEOF_LONG == 4
4105 # error cannot find 32 bit type...
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4112 bash_cv_type_u_int32_t=int
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4117 bash_cv_type_u_int32_t=long
4124 if test "X$_bash_needmsg" = "Xyes"; then
4125 echo $ac_n "checking which unsigned builtin C type is 32 bits wide""... $ac_c" 1>&6
4126 echo "configure:4127: checking which unsigned builtin C type is 32 bits wide" >&5
4128 echo "$ac_t""$bash_cv_type_u_int32_t" 1>&6;
4129 if test "$bash_cv_type_u_int32_t" = "int"; then
4130 cat >> confdefs.h <<\EOF
4131 #define u_int32_t unsigned int
4135 cat >> confdefs.h <<\EOF
4136 #define u_int32_t unsigned long
4143 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
4144 echo "configure:4145: checking for ptrdiff_t" >&5
4145 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 #include <sys/types.h>
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 egrep "ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4160 ac_cv_type_ptrdiff_t=yes
4163 ac_cv_type_ptrdiff_t=no
4168 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
4169 if test $ac_cv_type_ptrdiff_t = no; then
4170 cat >> confdefs.h <<\EOF
4176 if test "$ac_cv_type_ptrdiff_t" = "no"; then
4178 if test "X$bash_cv_type_ptrdiff_t" = "X"; then
4181 echo $ac_n "checking which builtin C type is correct for ptrdiff_t""... $ac_c" 1>&6
4182 echo "configure:4183: checking which builtin C type is correct for ptrdiff_t" >&5
4185 if eval "test \"`echo '$''{'bash_cv_type_ptrdiff_t'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 if test "$cross_compiling" = yes; then
4189 { echo "configure: error: cannot check type sizes if cross-compiling -- defaulting to int" 1>&2; exit 1; }
4190 bash_cv_type_ptrdiff_t=int
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4199 #if SIZEOF_CHAR_P == SIZEOF_INT
4202 # if SIZEOF_CHAR_P == SIZEOF_LONG
4205 # error cannot find type for pointer arithmetic...
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4212 bash_cv_type_ptrdiff_t=int
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4217 bash_cv_type_ptrdiff_t=long
4224 if test "X$_bash_needmsg" = "Xyes"; then
4225 echo $ac_n "checking which builtin C type is correct for ptrdiff_t""... $ac_c" 1>&6
4226 echo "configure:4227: checking which builtin C type is correct for ptrdiff_t" >&5
4228 echo "$ac_t""$bash_cv_type_ptrdiff_t" 1>&6;
4229 if test "$bash_cv_type_ptrdiff_t" = "int"; then
4230 cat >> confdefs.h <<\EOF
4231 #define ptrdiff_t int
4235 cat >> confdefs.h <<\EOF
4236 #define ptrdiff_t long
4243 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4244 echo "configure:4245: checking whether stat file-mode macros are broken" >&5
4245 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #include <sys/types.h>
4252 #include <sys/stat.h>
4254 #if defined(S_ISBLK) && defined(S_IFDIR)
4255 # if S_ISBLK (S_IFDIR)
4260 #if defined(S_ISBLK) && defined(S_IFCHR)
4261 # if S_ISBLK (S_IFCHR)
4266 #if defined(S_ISLNK) && defined(S_IFREG)
4267 # if S_ISLNK (S_IFREG)
4272 #if defined(S_ISSOCK) && defined(S_IFREG)
4273 # if S_ISSOCK (S_IFREG)
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280 egrep "You lose" >/dev/null 2>&1; then
4282 ac_cv_header_stat_broken=yes
4285 ac_cv_header_stat_broken=no
4291 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4292 if test $ac_cv_header_stat_broken = yes; then
4293 cat >> confdefs.h <<\EOF
4294 #define STAT_MACROS_BROKEN 1
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4302 #include <sys/time.h>
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305 egrep "struct timeval" >/dev/null 2>&1; then
4307 bash_cv_struct_timeval=yes
4311 if test -z "$bash_cv_struct_timeval"; then
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "struct timeval" >/dev/null 2>&1; then
4320 bash_cv_struct_timeval=yes
4323 bash_cv_struct_timeval=no
4328 if test $bash_cv_struct_timeval = yes; then
4329 cat >> confdefs.h <<\EOF
4330 #define HAVE_TIMEVAL 1
4335 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4336 echo "configure:4337: checking whether byte ordering is bigendian" >&5
4337 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 ac_cv_c_bigendian=unknown
4341 # See if sys/param.h defines the BYTE_ORDER macro.
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4345 #include <sys/types.h>
4346 #include <sys/param.h>
4349 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4354 if { (eval echo configure:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356 # It does; now see whether it defined to BIG_ENDIAN or not.
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 #include <sys/types.h>
4361 #include <sys/param.h>
4364 #if BYTE_ORDER != BIG_ENDIAN
4369 if { (eval echo configure:4370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4371 ac_cv_c_bigendian=yes
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 ac_cv_c_bigendian=no
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4384 if test $ac_cv_c_bigendian = unknown; then
4385 if test "$cross_compiling" = yes; then
4386 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4392 /* Are we little or big endian? From Harbison&Steele. */
4396 char c[sizeof (long)];
4399 exit (u.c[sizeof (long) - 1] == 1);
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4404 ac_cv_c_bigendian=no
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 ac_cv_c_bigendian=yes
4417 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4418 if test $ac_cv_c_bigendian = yes; then
4419 cat >> confdefs.h <<\EOF
4420 #define WORDS_BIGENDIAN 1
4426 # Pull the hash mark out of the macro call to avoid m4 problems.
4427 ac_msg="whether #! works in shell scripts"
4428 echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
4429 echo "configure:4430: checking $ac_msg" >&5
4430 if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4437 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
4438 if test $? -ne 69; then
4439 ac_cv_sys_interpreter=yes
4441 ac_cv_sys_interpreter=no
4446 echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
4448 if test $ac_cv_sys_interpreter = yes; then
4449 cat >> confdefs.h <<\EOF
4450 #define HAVE_HASH_BANG_EXEC 1
4454 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
4455 echo "configure:4456: checking for restartable system calls" >&5
4456 if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 if test "$cross_compiling" = yes; then
4460 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 /* Exit 0 (true) if wait returns something other than -1,
4466 i.e. the pid of the child, which means that wait was restarted
4467 after getting the signal. */
4468 #include <sys/types.h>
4472 int i = fork (), status;
4473 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
4474 signal (SIGINT, ucatch);
4476 if (status == -1) wait(&i);
4477 exit (status == -1);
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4483 ac_cv_sys_restartable_syscalls=yes
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4488 ac_cv_sys_restartable_syscalls=no
4495 echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
4496 if test $ac_cv_sys_restartable_syscalls = yes; then
4497 cat >> confdefs.h <<\EOF
4498 #define HAVE_RESTARTABLE_SYSCALLS 1
4504 if test "$ac_cv_func_lstat" = "no"; then
4505 echo $ac_n "checking for lstat""... $ac_c" 1>&6
4506 echo "configure:4507: checking for lstat" >&5
4507 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4514 #include <sys/types.h>
4515 #include <sys/stat.h>
4518 lstat(".",(struct stat *)0);
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4523 bash_cv_func_lstat=yes
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 bash_cv_func_lstat=no
4533 echo "$ac_t""$bash_cv_func_lstat" 1>&6
4534 if test $bash_cv_func_lstat = yes; then
4535 cat >> confdefs.h <<\EOF
4536 #define HAVE_LSTAT 1
4543 echo $ac_n "checking if dup2 fails to clear the close-on-exec flag""... $ac_c" 1>&6
4544 echo "configure:4545: checking if dup2 fails to clear the close-on-exec flag" >&5
4545 if eval "test \"`echo '$''{'bash_cv_dup2_broken'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4548 if test "$cross_compiling" = yes; then
4549 { echo "configure: error: cannot check dup2 if cross compiling -- defaulting to no" 1>&2; exit 1; }
4550 bash_cv_dup2_broken=no
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4556 #include <sys/types.h>
4561 fd1 = open("/dev/null", 2);
4562 if (fcntl(fd1, 2, 1) < 0)
4567 fl = fcntl(fd2, 1, 0);
4568 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4575 bash_cv_dup2_broken=yes
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 bash_cv_dup2_broken=no
4588 echo "$ac_t""$bash_cv_dup2_broken" 1>&6
4589 if test $bash_cv_dup2_broken = yes; then
4590 cat >> confdefs.h <<\EOF
4591 #define DUP2_BROKEN 1
4597 echo $ac_n "checking whether pgrps need synchronization""... $ac_c" 1>&6
4598 echo "configure:4599: checking whether pgrps need synchronization" >&5
4599 if eval "test \"`echo '$''{'bash_cv_pgrp_pipe'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 if test "$cross_compiling" = yes; then
4603 { echo "configure: error: cannot check pgrp synchronization if cross compiling -- defaulting to no" 1>&2; exit 1; }
4604 bash_cv_pgrp_pipe=no
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4610 #ifdef HAVE_UNISTD_H
4611 # include <unistd.h>
4615 # ifdef GETPGRP_VOID
4616 # define getpgID() getpgrp()
4618 # define getpgID() getpgrp(0)
4619 # define setpgid(x,y) setpgrp(x,y)
4621 int pid1, pid2, fds[2];
4625 switch (pid1 = fork()) {
4629 setpgid(0, getpid());
4632 setpgid(pid1, pid1);
4634 sleep(2); /* let first child die */
4639 switch (pid2 = fork()) {
4644 ok = getpgID() == pid1;
4645 write(fds[1], &ok, 1);
4648 setpgid(pid2, pid1);
4651 if (read(fds[0], &ok, 1) != 1)
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4661 bash_cv_pgrp_pipe=no
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4666 bash_cv_pgrp_pipe=yes
4674 echo "$ac_t""$bash_cv_pgrp_pipe" 1>&6
4675 if test $bash_cv_pgrp_pipe = yes; then
4676 cat >> confdefs.h <<\EOF
4683 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
4684 echo "configure:4685: checking for type of signal functions" >&5
4685 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4696 struct sigaction sa;
4697 sigemptyset(&ss); sigsuspend(&ss);
4698 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4699 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
4703 if { (eval echo configure:4704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4705 bash_cv_signal_vintage=posix
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4717 int mask = sigmask(SIGINT);
4718 sigsetmask(mask); sigblock(mask); sigpause(mask);
4722 if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4724 bash_cv_signal_vintage=4.2bsd
4726 echo "configure: failed program was:" >&5
4727 cat conftest.$ac_ext >&5
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4735 RETSIGTYPE foo() { }
4738 int mask = sigmask(SIGINT);
4739 sigset(SIGINT, foo); sigrelse(SIGINT);
4740 sighold(SIGINT); sigpause(SIGINT);
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4746 bash_cv_signal_vintage=svr3
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 bash_cv_signal_vintage=v7
4764 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
4765 if test "$bash_cv_signal_vintage" = posix; then
4766 cat >> confdefs.h <<\EOF
4767 #define HAVE_POSIX_SIGNALS 1
4770 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
4771 cat >> confdefs.h <<\EOF
4772 #define HAVE_BSD_SIGNALS 1
4775 elif test "$bash_cv_signal_vintage" = svr3; then
4776 cat >> confdefs.h <<\EOF
4777 #define HAVE_USG_SIGHOLD 1
4783 if test "$ac_cv_sys_restartable_syscalls" = "no"; then
4785 echo $ac_n "checking for restartable system calls with posix sigaction""... $ac_c" 1>&6
4786 echo "configure:4787: checking for restartable system calls with posix sigaction" >&5
4787 if eval "test \"`echo '$''{'bash_cv_sys_restartable_syscalls'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 if test "$cross_compiling" = yes; then
4791 { echo "configure: error: cannot check restartable syscalls if cross compiling" 1>&2; exit 1; }
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4796 /* Exit 0 (true) if wait returns something other than -1,
4797 i.e. the pid of the child, which means that wait was restarted
4798 after getting the signal. */
4799 #include <sys/types.h>
4801 static int caught = 0;
4802 void ucatch (isig) int isig; { caught = 1; }
4805 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
4808 struct sigaction act, oact;
4811 act.sa_handler = ucatch;
4812 /* Might want to add SA_RESTART here, but bash's set_signal_handler
4815 sigemptyset(&act.sa_mask);
4816 sigemptyset(&oact.sa_mask);
4818 /* A possible race condition here, but in practice it never happens. */
4819 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
4820 sigaction(SIGINT, &act, &oact);
4822 if (status == -1) wait(&i);
4823 exit (status == -1);
4828 if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4830 bash_cv_sys_restartable_syscalls=yes
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4835 bash_cv_sys_restartable_syscalls=no
4843 echo "$ac_t""$bash_cv_sys_restartable_syscalls" 1>&6
4844 if test $bash_cv_sys_restartable_syscalls = yes; then
4845 cat >> confdefs.h <<\EOF
4846 #define HAVE_RESTARTABLE_SYSCALLS 1
4853 echo $ac_n "checking for sys_errlist and sys_nerr""... $ac_c" 1>&6
4854 echo "configure:4855: checking for sys_errlist and sys_nerr" >&5
4855 if eval "test \"`echo '$''{'bash_cv_sys_errlist'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4863 extern char *sys_errlist[];
4864 extern int sys_nerr;
4865 char *msg = sys_errlist[sys_nerr - 1];
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4870 bash_cv_sys_errlist=yes
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4875 bash_cv_sys_errlist=no
4879 echo "$ac_t""$bash_cv_sys_errlist" 1>&6
4880 if test $bash_cv_sys_errlist = yes; then
4881 cat >> confdefs.h <<\EOF
4882 #define HAVE_SYS_ERRLIST 1
4888 echo $ac_n "checking for sys_siglist in system C library""... $ac_c" 1>&6
4889 echo "configure:4890: checking for sys_siglist in system C library" >&5
4890 if eval "test \"`echo '$''{'bash_cv_sys_siglist'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 if test "$cross_compiling" = yes; then
4894 { echo "configure: error: cannot check for sys_siglist if cross compiling -- defaulting to no" 1>&2; exit 1; }
4895 bash_cv_sys_siglist=no
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4901 #include <sys/types.h>
4903 #ifdef HAVE_UNISTD_H
4906 #ifndef SYS_SIGLIST_DECLARED
4907 extern char *sys_siglist[];
4911 char *msg = sys_siglist[2];
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4917 bash_cv_sys_siglist=yes
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 bash_cv_sys_siglist=no
4929 echo "$ac_t""$bash_cv_sys_siglist" 1>&6
4930 if test $bash_cv_sys_siglist = yes; then
4931 cat >> confdefs.h <<\EOF
4932 #define HAVE_SYS_SIGLIST 1
4937 echo $ac_n "checking for _sys_siglist in signal.h or unistd.h""... $ac_c" 1>&6
4938 echo "configure:4939: checking for _sys_siglist in signal.h or unistd.h" >&5
4939 if eval "test \"`echo '$''{'bash_cv_decl_under_sys_siglist'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4946 #include <sys/types.h>
4948 #ifdef HAVE_UNISTD_H
4952 char *msg = _sys_siglist[2];
4955 if { (eval echo configure:4956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4957 bash_cv_decl_under_sys_siglist=yes
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 bash_cv_decl_under_sys_siglist=no
4966 echo "$ac_t""$bash_cv_decl_under_sys_siglist" 1>&6
4967 if test $bash_cv_decl_under_sys_siglist = yes; then
4968 cat >> confdefs.h <<\EOF
4969 #define UNDER_SYS_SIGLIST_DECLARED 1
4975 echo $ac_n "checking for _sys_siglist in system C library""... $ac_c" 1>&6
4976 echo "configure:4977: checking for _sys_siglist in system C library" >&5
4977 if eval "test \"`echo '$''{'bash_cv_under_sys_siglist'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 if test "$cross_compiling" = yes; then
4981 { echo "configure: error: cannot check for _sys_siglist if cross compiling -- defaulting to no" 1>&2; exit 1; }
4982 bash_cv_under_sys_siglist=no
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4988 #include <sys/types.h>
4990 #ifdef HAVE_UNISTD_H
4993 #ifndef UNDER_SYS_SIGLIST_DECLARED
4994 extern char *_sys_siglist[];
4998 char *msg = (char *)_sys_siglist[2];
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5004 bash_cv_under_sys_siglist=yes
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 bash_cv_under_sys_siglist=no
5016 echo "$ac_t""$bash_cv_under_sys_siglist" 1>&6
5017 if test $bash_cv_under_sys_siglist = yes; then
5018 cat >> confdefs.h <<\EOF
5019 #define HAVE_UNDER_SYS_SIGLIST 1
5025 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
5026 echo "configure:5027: checking whether signal handlers are of type void" >&5
5027 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5033 #include <sys/types.h>
5041 void (*signal ()) ();
5046 if { (eval echo configure:5047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5048 bash_cv_void_sighandler=yes
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 bash_cv_void_sighandler=no
5057 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
5058 if test $bash_cv_void_sighandler = yes; then
5059 cat >> confdefs.h <<\EOF
5060 #define VOID_SIGHANDLER 1
5065 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
5066 echo "configure:5067: checking for clock_t" >&5
5067 if eval "test \"`echo '$''{'bash_cv_type_clock_t'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 #include <sys/types.h>
5077 #include <sys/times.h>
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 egrep "clock_t" >/dev/null 2>&1; then
5083 bash_cv_type_clock_t=yes
5086 bash_cv_type_clock_t=no
5092 echo "$ac_t""$bash_cv_type_clock_t" 1>&6
5094 if test $bash_cv_type_clock_t = no; then
5095 cat >> confdefs.h <<\EOF
5096 #define clock_t long
5101 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
5102 echo "configure:5103: checking for sigset_t" >&5
5103 if eval "test \"`echo '$''{'bash_cv_type_sigset_t'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 #include <sys/types.h>
5116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5117 egrep "sigset_t" >/dev/null 2>&1; then
5119 bash_cv_type_sigset_t=yes
5122 bash_cv_type_sigset_t=no
5128 echo "$ac_t""$bash_cv_type_sigset_t" 1>&6
5130 if test $bash_cv_type_sigset_t = no; then
5131 cat >> confdefs.h <<\EOF
5132 #define sigset_t int
5137 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
5138 echo "configure:5139: checking for quad_t" >&5
5139 if eval "test \"`echo '$''{'bash_cv_type_quad_t'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 #include <sys/types.h>
5152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153 egrep "quad_t" >/dev/null 2>&1; then
5155 bash_cv_type_quad_t=yes
5158 bash_cv_type_quad_t=no
5164 echo "$ac_t""$bash_cv_type_quad_t" 1>&6
5165 if test $bash_cv_type_quad_t = yes; then
5166 cat >> confdefs.h <<\EOF
5167 #define HAVE_QUAD_T 1
5171 if test $bash_cv_type_quad_t = no; then
5172 cat >> confdefs.h <<\EOF
5178 echo $ac_n "checking for size and type of struct rlimit fields""... $ac_c" 1>&6
5179 echo "configure:5180: checking for size and type of struct rlimit fields" >&5
5180 if eval "test \"`echo '$''{'bash_cv_type_rlimit'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 #include <sys/types.h>
5187 #include <sys/resource.h>
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5194 bash_cv_type_rlimit=rlim_t
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5200 if test "$cross_compiling" = yes; then
5201 { echo "configure: error: cannot check quad_t if cross compiling -- defaulting to long" 1>&2; exit 1; }
5202 bash_cv_type_rlimit=long
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5208 #include <sys/types.h>
5209 #include <sys/time.h>
5210 #include <sys/resource.h>
5215 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5223 bash_cv_type_rlimit=quad_t
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5228 bash_cv_type_rlimit=long
5238 echo "$ac_t""$bash_cv_type_rlimit" 1>&6
5239 if test $bash_cv_type_rlimit = quad_t; then
5240 cat >> confdefs.h <<\EOF
5241 #define RLIMTYPE quad_t
5244 elif test $bash_cv_type_rlimit = rlim_t; then
5245 cat >> confdefs.h <<\EOF
5246 #define RLIMTYPE rlim_t
5252 echo $ac_n "checking for a c_line member of struct termios""... $ac_c" 1>&6
5253 echo "configure:5254: checking for a c_line member of struct termios" >&5
5254 if eval "test \"`echo '$''{'bash_cv_termios_ldisc'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5260 #include <sys/types.h>
5261 #include <termios.h>
5263 struct termios t; int i; i = t.c_line;
5266 if { (eval echo configure:5267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5268 bash_cv_termios_ldisc=yes
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 bash_cv_termios_ldisc=no
5277 echo "$ac_t""$bash_cv_termios_ldisc" 1>&6
5278 if test $bash_cv_termios_ldisc = yes; then
5279 cat >> confdefs.h <<\EOF
5280 #define TERMIOS_LDISC 1
5285 echo $ac_n "checking for a c_line member of struct termio""... $ac_c" 1>&6
5286 echo "configure:5287: checking for a c_line member of struct termio" >&5
5287 if eval "test \"`echo '$''{'bash_cv_termio_ldisc'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5293 #include <sys/types.h>
5296 struct termio t; int i; i = t.c_line;
5299 if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 bash_cv_termio_ldisc=yes
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 bash_cv_termio_ldisc=no
5310 echo "$ac_t""$bash_cv_termio_ldisc" 1>&6
5311 if test $bash_cv_termio_ldisc = yes; then
5312 cat >> confdefs.h <<\EOF
5313 #define TERMIO_LDISC 1
5319 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
5320 echo "configure:5321: checking if struct dirent has a d_ino member" >&5
5321 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5329 #include <sys/types.h>
5330 #ifdef HAVE_UNISTD_H
5331 # include <unistd.h>
5332 #endif /* HAVE_UNISTD_H */
5333 #if defined(HAVE_DIRENT_H)
5334 # include <dirent.h>
5336 # define dirent direct
5337 # ifdef HAVE_SYS_NDIR_H
5338 # include <sys/ndir.h>
5339 # endif /* SYSNDIR */
5340 # ifdef HAVE_SYS_DIR_H
5341 # include <sys/dir.h>
5342 # endif /* SYSDIR */
5346 #endif /* HAVE_DIRENT_H */
5350 struct dirent d; int z; z = d.d_ino;
5354 if { (eval echo configure:5355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5356 bash_cv_dirent_has_dino=yes
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 bash_cv_dirent_has_dino=no
5366 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
5367 if test $bash_cv_dirent_has_dino = yes; then
5368 cat >> confdefs.h <<\EOF
5369 #define STRUCT_DIRENT_HAS_D_INO 1
5375 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
5376 echo "configure:5377: checking if struct dirent has a d_fileno member" >&5
5377 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5385 #include <sys/types.h>
5386 #ifdef HAVE_UNISTD_H
5387 # include <unistd.h>
5388 #endif /* HAVE_UNISTD_H */
5389 #if defined(HAVE_DIRENT_H)
5390 # include <dirent.h>
5392 # define dirent direct
5393 # ifdef HAVE_SYS_NDIR_H
5394 # include <sys/ndir.h>
5395 # endif /* SYSNDIR */
5396 # ifdef HAVE_SYS_DIR_H
5397 # include <sys/dir.h>
5398 # endif /* SYSDIR */
5402 #endif /* HAVE_DIRENT_H */
5406 struct dirent d; int z; z = d.d_fileno;
5410 if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5412 bash_cv_dirent_has_d_fileno=yes
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 bash_cv_dirent_has_d_fileno=no
5422 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
5423 if test $bash_cv_dirent_has_d_fileno = yes; then
5424 cat >> confdefs.h <<\EOF
5425 #define STRUCT_DIRENT_HAS_D_FILENO 1
5430 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
5431 echo "configure:5432: checking for struct winsize in sys/ioctl.h and termios.h" >&5
5432 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <sys/types.h>
5439 #include <sys/ioctl.h>
5444 if { (eval echo configure:5445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5446 bash_cv_struct_winsize_header=ioctl_h
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #include <sys/types.h>
5455 #include <termios.h>
5460 if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5462 bash_cv_struct_winsize_header=termios_h
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5467 bash_cv_struct_winsize_header=other
5475 if test $bash_cv_struct_winsize_header = ioctl_h; then
5476 echo "$ac_t""sys/ioctl.h" 1>&6
5477 cat >> confdefs.h <<\EOF
5478 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
5481 elif test $bash_cv_struct_winsize_header = termios_h; then
5482 echo "$ac_t""termios.h" 1>&6
5483 cat >> confdefs.h <<\EOF
5484 #define STRUCT_WINSIZE_IN_TERMIOS 1
5488 echo "$ac_t""not found" 1>&6
5492 echo $ac_n "checking for the existence of strsignal""... $ac_c" 1>&6
5493 echo "configure:5494: checking for the existence of strsignal" >&5
5494 if eval "test \"`echo '$''{'bash_cv_have_strsignal'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 #include <sys/types.h>
5503 char *s = (char *)strsignal(2);
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5508 bash_cv_have_strsignal=yes
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 bash_cv_have_strsignal=no
5518 echo "$ac_t""$bash_cv_have_strsignal" 1>&6
5519 if test $bash_cv_have_strsignal = yes; then
5520 cat >> confdefs.h <<\EOF
5521 #define HAVE_STRSIGNAL 1
5526 echo $ac_n "checking if opendir() opens non-directories""... $ac_c" 1>&6
5527 echo "configure:5528: checking if opendir() opens non-directories" >&5
5528 if eval "test \"`echo '$''{'bash_cv_opendir_not_robust'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 if test "$cross_compiling" = yes; then
5532 { echo "configure: error: cannot check opendir if cross compiling -- defaulting to no" 1>&2; exit 1; }
5533 bash_cv_opendir_not_robust=no
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 #include <sys/types.h>
5543 #ifdef HAVE_UNISTD_H
5544 # include <unistd.h>
5545 #endif /* HAVE_UNISTD_H */
5546 #if defined(HAVE_DIRENT_H)
5547 # include <dirent.h>
5549 # define dirent direct
5550 # ifdef HAVE_SYS_NDIR_H
5551 # include <sys/ndir.h>
5552 # endif /* SYSNDIR */
5553 # ifdef HAVE_SYS_DIR_H
5554 # include <sys/dir.h>
5555 # endif /* SYSDIR */
5559 #endif /* HAVE_DIRENT_H */
5564 unlink("/tmp/not_a_directory");
5565 fd = open("/tmp/not_a_directory", O_WRONLY|O_CREAT, 0666);
5568 dir = opendir("/tmp/not_a_directory");
5569 unlink("/tmp/not_a_directory");
5573 if { (eval echo configure:5574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5575 bash_cv_opendir_not_robust=yes
5577 echo "configure: failed program was:" >&5
5578 cat conftest.$ac_ext >&5
5580 bash_cv_opendir_not_robust=no
5587 echo "$ac_t""$bash_cv_opendir_not_robust" 1>&6
5588 if test $bash_cv_opendir_not_robust = yes; then
5589 cat >> confdefs.h <<\EOF
5590 #define OPENDIR_NOT_ROBUST 1
5595 echo $ac_n "checking for declaration of printf in <stdio.h>""... $ac_c" 1>&6
5596 echo "configure:5597: checking for declaration of printf in <stdio.h>" >&5
5597 if eval "test \"`echo '$''{'bash_cv_printf_declared'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 if test "$cross_compiling" = yes; then
5601 { echo "configure: error: cannot check printf declaration if cross compiling -- defaulting to yes" 1>&2; exit 1; }
5602 bash_cv_printf_declared=yes
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5611 typedef int (*_bashfunc)(const char *, ...);
5613 typedef int (*_bashfunc)();
5618 pf = (_bashfunc) printf;
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5625 bash_cv_printf_declared=yes
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5630 bash_cv_printf_declared=no
5637 echo "$ac_t""$bash_cv_printf_declared" 1>&6
5638 if test $bash_cv_printf_declared = yes; then
5639 cat >> confdefs.h <<\EOF
5640 #define PRINTF_DECLARED 1
5645 echo $ac_n "checking whether ulimit can substitute for getdtablesize""... $ac_c" 1>&6
5646 echo "configure:5647: checking whether ulimit can substitute for getdtablesize" >&5
5647 if eval "test \"`echo '$''{'bash_cv_ulimit_maxfds'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 if test "$cross_compiling" = yes; then
5651 { echo "configure: error: cannot check ulimit if cross compiling -- defaulting to no" 1>&2; exit 1; }
5652 bash_cv_ulimit_maxfds=no
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5661 long maxfds = ulimit(4, 0L);
5662 exit (maxfds == -1L);
5666 if { (eval echo configure:5667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5668 bash_cv_ulimit_maxfds=yes
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 bash_cv_ulimit_maxfds=no
5680 echo "$ac_t""$bash_cv_ulimit_maxfds" 1>&6
5681 if test $bash_cv_ulimit_maxfds = yes; then
5682 cat >> confdefs.h <<\EOF
5683 #define ULIMIT_MAXFDS 1
5688 echo $ac_n "checking to see if getenv can be redefined""... $ac_c" 1>&6
5689 echo "configure:5690: checking to see if getenv can be redefined" >&5
5690 if eval "test \"`echo '$''{'bash_cv_getenv_redef'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 if test "$cross_compiling" = yes; then
5694 { echo "configure: error: cannot check getenv redefinition if cross compiling -- defaulting to yes" 1>&2; exit 1; }
5695 bash_cv_getenv_redef=yes
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5702 #ifdef HAVE_UNISTD_H
5703 # include <unistd.h>
5712 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
5716 #endif /* !__linux__ && !__bsdi__ && !convex */
5723 /* The next allows this program to run, but does not allow bash to link
5724 when it redefines getenv. I'm not really interested in figuring out
5729 s = getenv("ABCDE");
5730 exit(s == 0); /* force optimizer to leave getenv in */
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5736 bash_cv_getenv_redef=yes
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 bash_cv_getenv_redef=no
5748 echo "$ac_t""$bash_cv_getenv_redef" 1>&6
5749 if test $bash_cv_getenv_redef = yes; then
5750 cat >> confdefs.h <<\EOF
5751 #define CAN_REDEFINE_GETENV 1
5756 echo $ac_n "checking if getcwd() calls popen()""... $ac_c" 1>&6
5757 echo "configure:5758: checking if getcwd() calls popen()" >&5
5758 if eval "test \"`echo '$''{'bash_cv_getcwd_calls_popen'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 if test "$cross_compiling" = yes; then
5762 { echo "configure: error: cannot check whether getcwd calls popen if cross compiling -- defaulting to no" 1>&2; exit 1; }
5763 bash_cv_getcwd_calls_popen=no
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5771 #ifdef HAVE_UNISTD_H
5784 popen(command, type)
5785 const char *command;
5789 return (FILE *)NULL;
5792 FILE *_popen(command, type)
5793 const char *command;
5796 return (popen (command, type));
5818 exit (popen_called);
5822 if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5824 bash_cv_getcwd_calls_popen=no
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5829 bash_cv_getcwd_calls_popen=yes
5836 echo "$ac_t""$bash_cv_getcwd_calls_popen" 1>&6
5837 if test $bash_cv_getcwd_calls_popen = yes; then
5838 cat >> confdefs.h <<\EOF
5839 #define GETCWD_BROKEN 1
5844 echo $ac_n "checking for declaration of sbrk in <unistd.h>""... $ac_c" 1>&6
5845 echo "configure:5846: checking for declaration of sbrk in <unistd.h>" >&5
5846 if eval "test \"`echo '$''{'bash_cv_sbrk_declared'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5855 egrep "sbrk" >/dev/null 2>&1; then
5857 bash_cv_sbrk_declared=yes
5860 bash_cv_sbrk_declared=no
5866 echo "$ac_t""$bash_cv_sbrk_declared" 1>&6
5867 if test $bash_cv_sbrk_declared = yes; then
5868 cat >> confdefs.h <<\EOF
5869 #define SBRK_DECLARED 1
5875 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
5876 echo "configure:5877: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5877 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5880 if test "$cross_compiling" = yes; then
5881 { echo "configure: error: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2; exit 1; }
5882 bash_cv_func_sigsetjmp=missing
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5889 #ifdef HAVE_UNISTD_H
5892 #include <sys/types.h>
5898 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5909 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5910 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5913 code = sigsetjmp(xx, 1);
5915 exit(0); /* could get sigmask and compare to oset here. */
5918 sigaddset(&set, SIGINT);
5919 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5921 /* and siglongjmp */
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5929 bash_cv_func_sigsetjmp=present
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5934 bash_cv_func_sigsetjmp=missing
5941 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
5942 if test $bash_cv_func_sigsetjmp = present; then
5943 cat >> confdefs.h <<\EOF
5944 #define HAVE_POSIX_SIGSETJMP 1
5950 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
5951 echo "configure:5952: checking whether or not strcoll and strcmp differ" >&5
5952 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
5953 echo $ac_n "(cached) $ac_c" 1>&6
5955 if test "$cross_compiling" = yes; then
5956 { echo "configure: error: cannot check strcoll if cross compiling -- defaulting to no" 1>&2; exit 1; }
5957 bash_cv_func_strcoll_broken=no
5960 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5965 #if defined (HAVE_LOCALE_H)
5974 char *deflocale, *defcoll;
5976 #ifdef HAVE_SETLOCALE
5977 deflocale = setlocale(LC_ALL, "");
5978 defcoll = setlocale(LC_COLLATE, "");
5982 /* These two values are taken from tests/glob-test. */
5983 r1 = strcoll("abd", "aXd");
5987 r2 = strcmp("abd", "aXd");
5989 /* These two should both be greater than 0. It is permissible for
5990 a system to return different values, as long as the sign is the
5993 /* Exit with 1 (failure) if these two values are both > 0, since
5994 this tests whether strcoll(3) is broken with respect to strcmp(3)
5995 in the default locale. */
5996 exit (r1 > 0 && r2 > 0);
6000 if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6002 bash_cv_func_strcoll_broken=yes
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 bash_cv_func_strcoll_broken=no
6014 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
6015 if test $bash_cv_func_strcoll_broken = yes; then
6016 cat >> confdefs.h <<\EOF
6017 #define STRCOLL_BROKEN 1
6025 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
6026 echo "configure:6027: checking if signal handlers must be reinstalled when invoked" >&5
6027 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 if test "$cross_compiling" = yes; then
6031 { echo "configure: error: cannot check signal handling if cross compiling -- defaulting to no" 1>&2; exit 1; }
6032 bash_cv_must_reinstall_sighandlers=no
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6040 #ifdef HAVE_UNISTD_H
6044 typedef RETSIGTYPE sigfunc();
6048 #ifdef HAVE_POSIX_SIGNALS
6050 set_signal_handler(sig, handler)
6054 struct sigaction act, oact;
6055 act.sa_handler = handler;
6057 sigemptyset (&act.sa_mask);
6058 sigemptyset (&oact.sa_mask);
6059 sigaction (sig, &act, &oact);
6060 return (oact.sa_handler);
6063 #define set_signal_handler(s, h) signal(s, h)
6076 set_signal_handler(SIGINT, sigint);
6077 kill((int)getpid(), SIGINT);
6078 kill((int)getpid(), SIGINT);
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6085 bash_cv_must_reinstall_sighandlers=no
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6090 bash_cv_must_reinstall_sighandlers=yes
6097 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
6098 if test $bash_cv_must_reinstall_sighandlers = yes; then
6099 cat >> confdefs.h <<\EOF
6100 #define MUST_REINSTALL_SIGHANDLERS 1
6106 echo $ac_n "checking for presence of necessary job control definitions""... $ac_c" 1>&6
6107 echo "configure:6108: checking for presence of necessary job control definitions" >&5
6108 if eval "test \"`echo '$''{'bash_cv_job_control_missing'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 if test "$cross_compiling" = yes; then
6112 { echo "configure: error: cannot check job control if cross-compiling -- defaulting to missing" 1>&2; exit 1; }
6113 bash_cv_job_control_missing=missing
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6120 #include <sys/types.h>
6121 #ifdef HAVE_SYS_WAIT_H
6122 #include <sys/wait.h>
6124 #ifdef HAVE_UNISTD_H
6129 /* Add more tests in here as appropriate. */
6133 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
6137 /* signals and tty control. */
6138 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
6142 /* process control */
6143 #if !defined (WNOHANG) || !defined (WUNTRACED)
6147 /* Posix systems have tcgetpgrp and waitpid. */
6148 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
6152 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
6156 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
6157 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6166 bash_cv_job_control_missing=present
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 bash_cv_job_control_missing=missing
6178 echo "$ac_t""$bash_cv_job_control_missing" 1>&6
6179 if test $bash_cv_job_control_missing = missing; then
6180 cat >> confdefs.h <<\EOF
6181 #define JOB_CONTROL_MISSING 1
6186 echo $ac_n "checking for presence of named pipes""... $ac_c" 1>&6
6187 echo "configure:6188: checking for presence of named pipes" >&5
6188 if eval "test \"`echo '$''{'bash_cv_sys_named_pipes'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6191 if test "$cross_compiling" = yes; then
6192 { echo "configure: error: cannot check for named pipes if cross-compiling -- defaulting to missing" 1>&2; exit 1; }
6193 bash_cv_sys_named_pipes=missing
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6200 #include <sys/types.h>
6201 #include <sys/stat.h>
6202 #ifdef HAVE_UNISTD_H
6206 /* Add more tests in here as appropriate. */
6211 #if defined (HAVE_MKFIFO)
6215 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
6223 fd = mknod ("/tmp/sh-np-autoconf", 0666 | S_IFIFO, 0);
6227 unlink ("/tmp/sh-np-autoconf");
6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6233 bash_cv_sys_named_pipes=present
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6238 bash_cv_sys_named_pipes=missing
6245 echo "$ac_t""$bash_cv_sys_named_pipes" 1>&6
6246 if test $bash_cv_sys_named_pipes = missing; then
6247 cat >> confdefs.h <<\EOF
6248 #define NAMED_PIPES_MISSING 1
6254 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
6255 echo "configure:6256: checking for TIOCGWINSZ in sys/ioctl.h" >&5
6256 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 #include <sys/types.h>
6263 #include <sys/ioctl.h>
6268 if { (eval echo configure:6269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6270 bash_cv_tiocgwinsz_in_ioctl=yes
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6275 bash_cv_tiocgwinsz_in_ioctl=no
6280 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
6281 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
6282 cat >> confdefs.h <<\EOF
6283 #define GWINSZ_IN_SYS_IOCTL 1
6288 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
6289 echo "configure:6290: checking for TIOCSTAT in sys/ioctl.h" >&5
6290 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 #include <sys/types.h>
6297 #include <sys/ioctl.h>
6302 if { (eval echo configure:6303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6304 bash_cv_tiocstat_in_ioctl=yes
6306 echo "configure: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6309 bash_cv_tiocstat_in_ioctl=no
6314 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
6315 if test $bash_cv_tiocstat_in_ioctl = yes; then
6316 cat >> confdefs.h <<\EOF
6317 #define TIOCSTAT_IN_SYS_IOCTL 1
6322 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
6323 echo "configure:6324: checking for FIONREAD in sys/ioctl.h" >&5
6324 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6330 #include <sys/types.h>
6331 #include <sys/ioctl.h>
6336 if { (eval echo configure:6337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6338 bash_cv_fionread_in_ioctl=yes
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 bash_cv_fionread_in_ioctl=no
6348 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
6349 if test $bash_cv_fionread_in_ioctl = yes; then
6350 cat >> confdefs.h <<\EOF
6351 #define FIONREAD_IN_SYS_IOCTL 1
6357 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
6358 echo "configure:6359: checking for speed_t in sys/types.h" >&5
6359 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 #include <sys/types.h>
6370 if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6372 bash_cv_speed_t_in_sys_types=yes
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 bash_cv_speed_t_in_sys_types=no
6382 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
6383 if test $bash_cv_speed_t_in_sys_types = yes; then
6384 cat >> confdefs.h <<\EOF
6385 #define SPEED_T_IN_SYS_TYPES 1
6390 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
6391 echo "configure:6392: checking whether programs are able to redeclare getpw functions" >&5
6392 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 #include <sys/types.h>
6400 extern struct passwd *getpwent();
6401 extern struct passwd *getpwuid();
6402 extern struct passwd *getpwnam();
6404 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
6407 if { (eval echo configure:6408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6409 bash_cv_can_redecl_getpw=yes
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 bash_cv_can_redecl_getpw=no
6419 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
6420 if test $bash_cv_can_redecl_getpw = no; then
6421 cat >> confdefs.h <<\EOF
6422 #define HAVE_GETPW_DECLS 1
6429 hpux*) echo $ac_n "checking whether $host_os needs _KERNEL for RLIMIT defines""... $ac_c" 1>&6
6430 echo "configure:6431: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
6431 if eval "test \"`echo '$''{'bash_cv_kernel_rlimit'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6438 #include <sys/types.h>
6439 #include <sys/resource.h>
6448 if { (eval echo configure:6449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6450 bash_cv_kernel_rlimit=no
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6459 #include <sys/types.h>
6461 #include <sys/resource.h>
6471 if { (eval echo configure:6472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6473 bash_cv_kernel_rlimit=yes
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 bash_cv_kernel_rlimit=no
6486 echo "$ac_t""$bash_cv_kernel_rlimit" 1>&6
6487 if test $bash_cv_kernel_rlimit = yes; then
6488 cat >> confdefs.h <<\EOF
6489 #define RLIMIT_NEEDS_KERNEL 1
6496 if test "$opt_readline" = yes; then
6498 aix*) prefer_curses=yes ;;
6501 if test "X$bash_cv_termcap_lib" = "X"; then
6504 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
6505 echo "configure:6506: checking which library has the termcap functions" >&5
6508 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6512 echo "configure:6513: checking for tgetent in -ltermcap" >&5
6513 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6517 ac_save_LIBS="$LIBS"
6518 LIBS="-ltermcap $LIBS"
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6533 eval "ac_cv_lib_$ac_lib_var=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_lib_$ac_lib_var=no"
6541 LIBS="$ac_save_LIBS"
6544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 bash_cv_termcap_lib=libtermcap
6548 echo "$ac_t""no" 1>&6
6549 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6550 echo "configure:6551: checking for tgetent in -lcurses" >&5
6551 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6555 ac_save_LIBS="$LIBS"
6556 LIBS="-lcurses $LIBS"
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6571 eval "ac_cv_lib_$ac_lib_var=yes"
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6576 eval "ac_cv_lib_$ac_lib_var=no"
6579 LIBS="$ac_save_LIBS"
6582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6583 echo "$ac_t""yes" 1>&6
6584 bash_cv_termcap_lib=libcurses
6586 echo "$ac_t""no" 1>&6
6587 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6588 echo "configure:6589: checking for tgetent in -lncurses" >&5
6589 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 ac_save_LIBS="$LIBS"
6594 LIBS="-lncurses $LIBS"
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6609 eval "ac_cv_lib_$ac_lib_var=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 eval "ac_cv_lib_$ac_lib_var=no"
6617 LIBS="$ac_save_LIBS"
6620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 bash_cv_termcap_lib=libncurses
6624 echo "$ac_t""no" 1>&6
6625 bash_cv_termcap_lib=gnutermcap
6634 if test "X$_bash_needmsg" = "Xyes"; then
6635 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
6636 echo "configure:6637: checking which library has the termcap functions" >&5
6638 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
6639 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
6640 LDFLAGS="$LDFLAGS -L./lib/termcap"
6641 TERMCAP_LIB="./lib/termcap/libtermcap.a"
6642 TERMCAP_DEP="./lib/termcap/libtermcap.a"
6643 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
6644 TERMCAP_LIB=-ltermcap
6646 elif test $bash_cv_termcap_lib = libncurses; then
6647 TERMCAP_LIB=-lncurses
6650 TERMCAP_LIB=-lcurses
6658 echo $ac_n "checking whether /dev/fd is available""... $ac_c" 1>&6
6659 echo "configure:6660: checking whether /dev/fd is available" >&5
6660 if eval "test \"`echo '$''{'bash_cv_dev_fd'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 if test -d /dev/fd && test -r /dev/fd/0; then
6664 bash_cv_dev_fd=standard
6665 elif test -d /proc/self/fd && test -r /proc/self/fd/0; then
6666 bash_cv_dev_fd=whacky
6668 bash_cv_dev_fd=absent
6673 echo "$ac_t""$bash_cv_dev_fd" 1>&6
6674 if test $bash_cv_dev_fd = "standard"; then
6675 cat >> confdefs.h <<\EOF
6676 #define HAVE_DEV_FD 1
6679 cat >> confdefs.h <<\EOF
6680 #define DEV_FD_PREFIX "/dev/fd/"
6683 elif test $bash_cv_dev_fd = "whacky"; then
6684 cat >> confdefs.h <<\EOF
6685 #define HAVE_DEV_FD 1
6688 cat >> confdefs.h <<\EOF
6689 #define DEV_FD_PREFIX "/proc/self/fd/"
6694 echo $ac_n "checking for default mail directory""... $ac_c" 1>&6
6695 echo "configure:6696: checking for default mail directory" >&5
6696 if eval "test \"`echo '$''{'bash_cv_mail_dir'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 if test -d /var/mail; then
6700 bash_cv_mail_dir=/var/mail
6701 elif test -d /usr/mail; then
6702 bash_cv_mail_dir=/usr/mail
6703 elif test -d /var/spool/mail; then
6704 bash_cv_mail_dir=/var/spool/mail
6705 elif test -d /usr/spool/mail; then
6706 bash_cv_mail_dir=/usr/spool/mail
6708 bash_cv_mail_dir=unknown
6713 echo "$ac_t""$bash_cv_mail_dir" 1>&6
6714 if test $bash_cv_mail_dir = "/var/mail"; then
6715 cat >> confdefs.h <<\EOF
6716 #define DEFAULT_MAIL_DIRECTORY "/var/mail"
6719 elif test $bash_cv_mail_dir = "/usr/mail"; then
6720 cat >> confdefs.h <<\EOF
6721 #define DEFAULT_MAIL_DIRECTORY "/usr/mail"
6724 elif test $bash_cv_mail_dir = "/var/spool/mail"; then
6725 cat >> confdefs.h <<\EOF
6726 #define DEFAULT_MAIL_DIRECTORY "/var/spool/mail"
6729 elif test $bash_cv_mail_dir = "/usr/spool/mail"; then
6730 cat >> confdefs.h <<\EOF
6731 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
6735 cat >> confdefs.h <<\EOF
6736 #define DEFAULT_MAIL_DIRECTORY "unknown"
6742 if test "$bash_cv_job_control_missing" = missing; then
6746 if test "$opt_job_control" = yes; then
6747 cat >> confdefs.h <<\EOF
6748 #define JOB_CONTROL 1
6763 sysv4.2*) cat >> confdefs.h <<\EOF
6767 cat >> confdefs.h <<\EOF
6771 sysv4*) cat >> confdefs.h <<\EOF
6775 hpux*) LOCAL_CFLAGS=-DHPUX ;;
6776 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
6777 isc*) LOCAL_CFLAGS=-Disc386;;
6778 sco3.2v5*) LOCAL_CFLAGS="-DWAITPID_BROKEN -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
6779 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DNO_MEMSCRAMBLE -DPATH_MAX=1024" ;;
6780 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
6781 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
6782 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
6783 linux*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
6784 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;# allow dynamic loading
6785 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s -lunix -lncurses" ;;
6786 powerux) LOCAL_LIBS="-lgen" ;;
6787 cygwin32*) LOCAL_LIBS="-luser32" ;;
6791 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
6794 case "$host_cpu-$host_os" in
6795 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
6798 case "$host_cpu-$host_vendor-$host_os" in
6799 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
6800 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
6803 # try to create a directory tree if the source is elsewhere
6804 # this should be packaged into a script accessible via ${srcdir}/support
6807 *) for d in doc tests support lib examples; do # dirs
6808 test -d $d || mkdir $d
6810 for ld in readline glob tilde malloc sh termcap; do # libdirs
6811 test -d lib/$ld || mkdir lib/$ld
6813 test -d examples/loadables || mkdir examples/loadables # loadable builtins
6838 #AC_SUBST(ALLOCA_SOURCE)
6839 #AC_SUBST(ALLOCA_OBJECT)
6842 cat > confcache <<\EOF
6843 # This file is a shell script that caches the results of configure
6844 # tests run on this system so they can be shared between configure
6845 # scripts and configure runs. It is not useful on other systems.
6846 # If it contains results you don't want to keep, you may remove or edit it.
6848 # By default, configure uses ./config.cache as the cache file,
6849 # creating it if it does not exist already. You can give configure
6850 # the --cache-file=FILE option to use a different cache file; that is
6851 # what configure does when it calls configure scripts in
6852 # subdirectories, so they share the cache.
6853 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6854 # config.status only pays attention to the cache file if you give it the
6855 # --recheck option to rerun configure.
6858 # The following way of writing the cache mishandles newlines in values,
6859 # but we know of no workaround that is simple, portable, and efficient.
6860 # So, don't put newlines in cache variables' values.
6861 # Ultrix sh set writes to stderr and can't be redirected directly,
6862 # and sets the high bit in the cache file unless we assign to the vars.
6864 case `(ac_space=' '; set) 2>&1` in
6866 # `set' does not quote correctly, so add quotes (double-quote substitution
6867 # turns \\\\ into \\, and sed turns \\ into \).
6869 -e "s/'/'\\\\''/g" \
6870 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6873 # `set' quotes correctly as required by POSIX, so do not add quotes.
6874 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6877 if cmp -s $cache_file confcache; then
6880 if test -w $cache_file; then
6881 echo "updating cache $cache_file"
6882 cat confcache > $cache_file
6884 echo "not updating unwritable cache $cache_file"
6889 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6892 # Let make expand exec_prefix.
6893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6895 # Any assignment to VPATH causes Sun make to only execute
6896 # the first set of double-colon rules, so remove it if not needed.
6897 # If there is a colon in the path, we need to keep it.
6898 if test "x$srcdir" = x.; then
6899 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6902 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6904 DEFS=-DHAVE_CONFIG_H
6906 # Without the "./", some shells look in PATH for config.status.
6907 : ${CONFIG_STATUS=./config.status}
6909 echo creating $CONFIG_STATUS
6910 rm -f $CONFIG_STATUS
6911 cat > $CONFIG_STATUS <<EOF
6913 # Generated automatically by configure.
6914 # Run this file to recreate the current configuration.
6915 # This directory was configured as follows,
6916 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6918 # $0 $ac_configure_args
6920 # Compiler output produced by configure, useful for debugging
6921 # configure, is in ./config.log if it exists.
6923 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6926 case "\$ac_option" in
6927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6928 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6929 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6930 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6931 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6933 -help | --help | --hel | --he | --h)
6934 echo "\$ac_cs_usage"; exit 0 ;;
6935 *) echo "\$ac_cs_usage"; exit 1 ;;
6939 ac_given_srcdir=$srcdir
6940 ac_given_INSTALL="$INSTALL"
6942 trap 'rm -fr `echo "Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
6943 lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
6944 lib/tilde/Makefile doc/Makefile support/Makefile \
6945 examples/loadables/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6947 cat >> $CONFIG_STATUS <<EOF
6949 # Protect against being on the right side of a sed subst in config.status.
6950 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6951 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6954 s%@CFLAGS@%$CFLAGS%g
6955 s%@CPPFLAGS@%$CPPFLAGS%g
6956 s%@CXXFLAGS@%$CXXFLAGS%g
6958 s%@LDFLAGS@%$LDFLAGS%g
6960 s%@exec_prefix@%$exec_prefix%g
6961 s%@prefix@%$prefix%g
6962 s%@program_transform_name@%$program_transform_name%g
6963 s%@bindir@%$bindir%g
6964 s%@sbindir@%$sbindir%g
6965 s%@libexecdir@%$libexecdir%g
6966 s%@datadir@%$datadir%g
6967 s%@sysconfdir@%$sysconfdir%g
6968 s%@sharedstatedir@%$sharedstatedir%g
6969 s%@localstatedir@%$localstatedir%g
6970 s%@libdir@%$libdir%g
6971 s%@includedir@%$includedir%g
6972 s%@oldincludedir@%$oldincludedir%g
6973 s%@infodir@%$infodir%g
6974 s%@mandir@%$mandir%g
6976 s%@host_alias@%$host_alias%g
6977 s%@host_cpu@%$host_cpu%g
6978 s%@host_vendor@%$host_vendor%g
6979 s%@host_os@%$host_os%g
6980 s%@TESTSCRIPT@%$TESTSCRIPT%g
6981 s%@PURIFY@%$PURIFY%g
6982 s%@MALLOC_TARGET@%$MALLOC_TARGET%g
6983 s%@MALLOC_SRC@%$MALLOC_SRC%g
6984 s%@READLINE_LIB@%$READLINE_LIB%g
6985 s%@READLINE_DEP@%$READLINE_DEP%g
6986 s%@HISTORY_LIB@%$HISTORY_LIB%g
6987 s%@HISTORY_DEP@%$HISTORY_DEP%g
6990 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6991 s%@SIGNAMES_H@%$SIGNAMES_H%g
6992 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6993 s%@INSTALL_DATA@%$INSTALL_DATA%g
6995 s%@RANLIB@%$RANLIB%g
6997 s%@SET_MAKE@%$SET_MAKE%g
6998 s%@ALLOCA@%$ALLOCA%g
6999 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
7000 s%@TERMCAP_DEP@%$TERMCAP_DEP%g
7001 s%@JOBS_O@%$JOBS_O%g
7002 s%@PROFILE_FLAGS@%$PROFILE_FLAGS%g
7003 s%@incdir@%$incdir%g
7004 s%@BUILD_DIR@%$BUILD_DIR%g
7005 s%@BASHVERS@%$BASHVERS%g
7006 s%@BASHPATCH@%$BASHPATCH%g
7007 s%@LOCAL_LIBS@%$LOCAL_LIBS%g
7008 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
7009 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
7010 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
7015 cat >> $CONFIG_STATUS <<\EOF
7017 # Split the substitutions into bite-sized pieces for seds with
7018 # small command number limits, like on Digital OSF/1 and HP-UX.
7019 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7020 ac_file=1 # Number of current file.
7021 ac_beg=1 # First line for current file.
7022 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7025 while $ac_more_lines; do
7026 if test $ac_beg -gt 1; then
7027 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7029 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7031 if test ! -s conftest.s$ac_file; then
7033 rm -f conftest.s$ac_file
7035 if test -z "$ac_sed_cmds"; then
7036 ac_sed_cmds="sed -f conftest.s$ac_file"
7038 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7040 ac_file=`expr $ac_file + 1`
7042 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7045 if test -z "$ac_sed_cmds"; then
7050 cat >> $CONFIG_STATUS <<EOF
7052 CONFIG_FILES=\${CONFIG_FILES-"Makefile builtins/Makefile lib/readline/Makefile lib/glob/Makefile \
7053 lib/malloc/Makefile lib/sh/Makefile lib/termcap/Makefile \
7054 lib/tilde/Makefile doc/Makefile support/Makefile \
7055 examples/loadables/Makefile"}
7057 cat >> $CONFIG_STATUS <<\EOF
7058 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7061 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7062 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7063 *) ac_file_in="${ac_file}.in" ;;
7066 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7068 # Remove last slash and all that follows it. Not all systems have dirname.
7069 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7070 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7071 # The file is in a subdirectory.
7072 test ! -d "$ac_dir" && mkdir "$ac_dir"
7073 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7074 # A "../" for each directory in $ac_dir_suffix.
7075 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7077 ac_dir_suffix= ac_dots=
7080 case "$ac_given_srcdir" in
7082 if test -z "$ac_dots"; then top_srcdir=.
7083 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7084 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7086 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7087 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7090 case "$ac_given_INSTALL" in
7091 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7092 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7095 echo creating "$ac_file"
7097 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7099 *Makefile*) ac_comsub="1i\\
7100 # $configure_input" ;;
7104 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7106 s%@configure_input@%$configure_input%g
7107 s%@srcdir@%$srcdir%g
7108 s%@top_srcdir@%$top_srcdir%g
7109 s%@INSTALL@%$INSTALL%g
7110 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7114 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7115 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7117 # ac_d sets the value in "#define NAME VALUE" lines.
7118 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7119 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7122 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7123 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7124 ac_uB='\([ ]\)%\1#\2define\3'
7127 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7128 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7129 ac_eB='$%\1#\2define\3'
7133 if test "${CONFIG_HEADERS+set}" != set; then
7135 cat >> $CONFIG_STATUS <<EOF
7136 CONFIG_HEADERS="config.h"
7138 cat >> $CONFIG_STATUS <<\EOF
7140 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7143 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7144 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7145 *) ac_file_in="${ac_file}.in" ;;
7148 echo creating $ac_file
7150 rm -f conftest.frag conftest.in conftest.out
7151 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7152 cat $ac_file_inputs > conftest.in
7156 # Transform confdefs.h into a sed script conftest.vals that substitutes
7157 # the proper values into config.h.in to produce config.h. And first:
7158 # Protect against being on the right side of a sed subst in config.status.
7159 # Protect against being in an unquoted here document in config.status.
7161 cat > conftest.hdr <<\EOF
7164 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7168 sed -n -f conftest.hdr confdefs.h > conftest.vals
7171 # This sed command replaces #undef with comments. This is necessary, for
7172 # example, in the case of _POSIX_SOURCE, which is predefined and required
7173 # on some systems where configure will not decide to define it.
7174 cat >> conftest.vals <<\EOF
7175 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7178 # Break up conftest.vals because some shells have a limit on
7179 # the size of here documents, and old seds have small limits too.
7184 ac_lines=`grep -c . conftest.vals`
7185 # grep -c gives empty output for an empty file on some AIX systems.
7186 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7187 # Write a limited-size here document to conftest.frag.
7188 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7189 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7191 sed -f conftest.frag conftest.in > conftest.out
7193 mv conftest.out conftest.in
7195 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7197 mv conftest.tail conftest.vals
7201 cat >> $CONFIG_STATUS <<\EOF
7202 rm -f conftest.frag conftest.h
7203 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7204 cat conftest.in >> conftest.h
7206 if cmp -s $ac_file conftest.h 2>/dev/null; then
7207 echo "$ac_file is unchanged"
7210 # Remove last slash and all that follows it. Not all systems have dirname.
7211 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7212 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7213 # The file is in a subdirectory.
7214 test ! -d "$ac_dir" && mkdir "$ac_dir"
7217 mv conftest.h $ac_file
7222 cat >> $CONFIG_STATUS <<EOF
7225 cat >> $CONFIG_STATUS <<\EOF
7227 # Makefile uses this timestamp file to record whether config.h is up to date.
7228 echo timestamp > stamp-h
7232 chmod +x $CONFIG_STATUS
7233 rm -fr confdefs* $ac_clean_files
7234 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1