3 # From configure.in for Readline 4.2, version 2.26, from autoconf version 2.13
108 # Guess values for system-dependent variables and create Makefiles.
109 # Generated automatically using autoconf version 2.13
110 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
112 # This configure script is free software; the Free Software Foundation
113 # gives unlimited permission to copy, distribute and modify it.
117 ac_default_prefix=/usr/local
118 # Any additions from configure.in:
120 --with-curses use the curses library instead of the termcap library"
122 # Initialize some variables set by options.
123 # The variables have the same names as the options, with
124 # dashes changed to underlines.
126 cache_file=./config.cache
135 program_transform_name=s,x,x,
143 bindir='${exec_prefix}/bin'
144 sbindir='${exec_prefix}/sbin'
145 libexecdir='${exec_prefix}/libexec'
146 datadir='${prefix}/share'
147 sysconfdir='${prefix}/etc'
148 sharedstatedir='${prefix}/com'
149 localstatedir='${prefix}/var'
150 libdir='${exec_prefix}/lib'
151 includedir='${prefix}/include'
152 oldincludedir='/usr/include'
153 infodir='${prefix}/info'
154 mandir='${prefix}/man'
156 # Initialize some other variables.
159 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Maximum number of lines to put in a shell here document.
167 # If the previous option needs an argument, assign it.
168 if test -n "$ac_prev"; then
169 eval "$ac_prev=\$ac_option"
175 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
179 # Accept the important Cygnus configure options, so we can diagnose typos.
183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
186 bindir="$ac_optarg" ;;
188 -build | --build | --buil | --bui | --bu)
190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
191 build="$ac_optarg" ;;
193 -cache-file | --cache-file | --cache-fil | --cache-fi \
194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
195 ac_prev=cache_file ;;
196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
198 cache_file="$ac_optarg" ;;
200 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
202 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
204 datadir="$ac_optarg" ;;
206 -disable-* | --disable-*)
207 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
208 # Reject names that are not valid shell variable names.
209 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
210 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}=no" ;;
215 -enable-* | --enable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
226 eval "enable_${ac_feature}='$ac_optarg'" ;;
228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
230 | --exec | --exe | --ex)
231 ac_prev=exec_prefix ;;
232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
234 | --exec=* | --exe=* | --ex=*)
235 exec_prefix="$ac_optarg" ;;
237 -gas | --gas | --ga | --g)
238 # Obsolete; use --with-gas.
241 -help | --help | --hel | --he)
242 # Omit some internal or obsolete options to make the list less imposing.
243 # This message is too long to be a string in the A/UX 3.1 sh.
245 Usage: configure [options] [host]
246 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
253 Directory and file names:
254 --prefix=PREFIX install architecture-independent files in PREFIX
256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
258 --bindir=DIR user executables in DIR [EPREFIX/bin]
259 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
260 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
261 --datadir=DIR read-only architecture-independent data in DIR
263 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
264 --sharedstatedir=DIR modifiable architecture-independent data in DIR
266 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
267 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
268 --includedir=DIR C header files in DIR [PREFIX/include]
269 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
270 --infodir=DIR info documentation in DIR [PREFIX/info]
271 --mandir=DIR man documentation in DIR [PREFIX/man]
272 --srcdir=DIR find the sources in DIR [configure dir or ..]
273 --program-prefix=PREFIX prepend PREFIX to installed program names
274 --program-suffix=SUFFIX append SUFFIX to installed program names
275 --program-transform-name=PROGRAM
276 run sed PROGRAM on installed program names
280 --build=BUILD configure for building on BUILD [BUILD=HOST]
281 --host=HOST configure for HOST [guessed]
282 --target=TARGET configure for TARGET [TARGET=HOST]
283 Features and packages:
284 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
285 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
288 --x-includes=DIR X include files are in DIR
289 --x-libraries=DIR X library files are in DIR
291 if test -n "$ac_help"; then
292 echo "--enable and --with options recognized:$ac_help"
296 -host | --host | --hos | --ho)
298 -host=* | --host=* | --hos=* | --ho=*)
301 -includedir | --includedir | --includedi | --included | --include \
302 | --includ | --inclu | --incl | --inc)
303 ac_prev=includedir ;;
304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
305 | --includ=* | --inclu=* | --incl=* | --inc=*)
306 includedir="$ac_optarg" ;;
308 -infodir | --infodir | --infodi | --infod | --info | --inf)
310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
311 infodir="$ac_optarg" ;;
313 -libdir | --libdir | --libdi | --libd)
315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
316 libdir="$ac_optarg" ;;
318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
319 | --libexe | --libex | --libe)
320 ac_prev=libexecdir ;;
321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
322 | --libexe=* | --libex=* | --libe=*)
323 libexecdir="$ac_optarg" ;;
325 -localstatedir | --localstatedir | --localstatedi | --localstated \
326 | --localstate | --localstat | --localsta | --localst \
327 | --locals | --local | --loca | --loc | --lo)
328 ac_prev=localstatedir ;;
329 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
330 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
331 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
332 localstatedir="$ac_optarg" ;;
334 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
336 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 mandir="$ac_optarg" ;;
340 # Obsolete; use --without-fp.
343 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
347 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
348 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
351 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
352 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
353 | --oldin | --oldi | --old | --ol | --o)
354 ac_prev=oldincludedir ;;
355 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
356 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
357 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
358 oldincludedir="$ac_optarg" ;;
360 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
362 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
363 prefix="$ac_optarg" ;;
365 -program-prefix | --program-prefix | --program-prefi | --program-pref \
366 | --program-pre | --program-pr | --program-p)
367 ac_prev=program_prefix ;;
368 -program-prefix=* | --program-prefix=* | --program-prefi=* \
369 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
370 program_prefix="$ac_optarg" ;;
372 -program-suffix | --program-suffix | --program-suffi | --program-suff \
373 | --program-suf | --program-su | --program-s)
374 ac_prev=program_suffix ;;
375 -program-suffix=* | --program-suffix=* | --program-suffi=* \
376 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
377 program_suffix="$ac_optarg" ;;
379 -program-transform-name | --program-transform-name \
380 | --program-transform-nam | --program-transform-na \
381 | --program-transform-n | --program-transform- \
382 | --program-transform | --program-transfor \
383 | --program-transfo | --program-transf \
384 | --program-trans | --program-tran \
385 | --progr-tra | --program-tr | --program-t)
386 ac_prev=program_transform_name ;;
387 -program-transform-name=* | --program-transform-name=* \
388 | --program-transform-nam=* | --program-transform-na=* \
389 | --program-transform-n=* | --program-transform-=* \
390 | --program-transform=* | --program-transfor=* \
391 | --program-transfo=* | --program-transf=* \
392 | --program-trans=* | --program-tran=* \
393 | --progr-tra=* | --program-tr=* | --program-t=*)
394 program_transform_name="$ac_optarg" ;;
396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
397 | -silent | --silent | --silen | --sile | --sil)
400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
404 sbindir="$ac_optarg" ;;
406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
408 | --sharedst | --shareds | --shared | --share | --shar \
410 ac_prev=sharedstatedir ;;
411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
415 sharedstatedir="$ac_optarg" ;;
417 -site | --site | --sit)
419 -site=* | --site=* | --sit=*)
422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
425 srcdir="$ac_optarg" ;;
427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
428 | --syscon | --sysco | --sysc | --sys | --sy)
429 ac_prev=sysconfdir ;;
430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
432 sysconfdir="$ac_optarg" ;;
434 -target | --target | --targe | --targ | --tar | --ta | --t)
436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
437 target="$ac_optarg" ;;
439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
442 -version | --version | --versio | --versi | --vers)
443 echo "configure generated by autoconf version 2.13"
447 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package=`echo $ac_package| sed 's/-/_/g'`
457 eval "with_${ac_package}='$ac_optarg'" ;;
459 -without-* | --without-*)
460 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}=no" ;;
469 # Obsolete; use --with-x.
472 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
473 | --x-incl | --x-inc | --x-in | --x-i)
474 ac_prev=x_includes ;;
475 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
476 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
477 x_includes="$ac_optarg" ;;
479 -x-libraries | --x-libraries | --x-librarie | --x-librari \
480 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
481 ac_prev=x_libraries ;;
482 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
483 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
484 x_libraries="$ac_optarg" ;;
486 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
490 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
491 echo "configure: warning: $ac_option: invalid host type" 1>&2
493 if test "x$nonopt" != xNONE; then
494 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
502 if test -n "$ac_prev"; then
503 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
506 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
508 # File descriptor usage:
511 # 2 errors and warnings
512 # 3 some systems may open it to /dev/tty
513 # 4 used on the Kubota Titan
514 # 6 checking for... messages and results
515 # 5 compiler messages saved in config.log
516 if test "$silent" = yes; then
524 This file contains any messages produced by compilers while
525 running configure, to aid debugging if configure makes a mistake.
528 # Strip out --no-create and --no-recursion so they do not pile up.
529 # Also quote any args containing shell metacharacters.
534 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
535 | --no-cr | --no-c) ;;
536 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
537 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
539 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
540 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
545 # Only set these to C if already set. These must not be set unconditionally
546 # because not all systems understand e.g. LANG=C (notably SCO).
547 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
548 # Non-C LC_CTYPE values break the ctype check.
549 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
550 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
551 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
552 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
555 rm -rf conftest* confdefs.h
556 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
559 # A filename unique to this package, relative to the directory that
560 # configure is in, which we can look for to find out if srcdir is correct.
561 ac_unique_file=readline.h
563 # Find the source files, if location was not specified.
564 if test -z "$srcdir"; then
565 ac_srcdir_defaulted=yes
566 # Try the directory containing this script, then its parent.
568 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
569 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
571 if test ! -r $srcdir/$ac_unique_file; then
575 ac_srcdir_defaulted=no
577 if test ! -r $srcdir/$ac_unique_file; then
578 if test "$ac_srcdir_defaulted" = yes; then
579 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
581 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
584 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
586 # Prefer explicitly selected file to automatically selected ones.
587 if test -z "$CONFIG_SITE"; then
588 if test "x$prefix" != xNONE; then
589 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
591 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
594 for ac_site_file in $CONFIG_SITE; do
595 if test -r "$ac_site_file"; then
596 echo "loading site script $ac_site_file"
601 if test -r "$cache_file"; then
602 echo "loading cache $cache_file"
605 echo "creating cache $cache_file"
610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
611 ac_cpp='$CPP $CPPFLAGS'
612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
614 cross_compiling=$ac_cv_prog_cc_cross
618 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
619 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
620 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
627 ac_n= ac_c='\c' ac_t=
636 for ac_dir in ./support $srcdir/./support; do
637 if test -f $ac_dir/install-sh; then
639 ac_install_sh="$ac_aux_dir/install-sh -c"
641 elif test -f $ac_dir/install.sh; then
643 ac_install_sh="$ac_aux_dir/install.sh -c"
647 if test -z "$ac_aux_dir"; then
648 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 1>&2; exit 1; }
650 ac_config_guess=$ac_aux_dir/config.guess
651 ac_config_sub=$ac_aux_dir/config.sub
652 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
656 # Make sure we can run config.sub.
657 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
658 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
661 echo $ac_n "checking host system type""... $ac_c" 1>&6
662 echo "configure:663: checking host system type" >&5
665 case "$host_alias" in
669 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
670 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
672 *) host_alias=$nonopt ;;
676 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
677 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
678 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
679 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
680 echo "$ac_t""$host" 1>&6
686 # Check whether --with-curses or --without-curses was given.
687 if test "${with_curses+set}" = set; then
688 withval="$with_curses"
693 if test "$opt_curses" = "yes"; then
697 # We want these before the checks, so the checks can modify their values.
698 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
700 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
701 echo "configure:702: checking whether ${MAKE-make} sets \${MAKE}" >&5
702 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
703 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 cat > conftestmake <<\EOF
708 @echo 'ac_maketemp="${MAKE}"'
710 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
711 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
712 if test -n "$ac_maketemp"; then
713 eval ac_cv_prog_make_${ac_make}_set=yes
715 eval ac_cv_prog_make_${ac_make}_set=no
719 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
720 echo "$ac_t""yes" 1>&6
723 echo "$ac_t""no" 1>&6
724 SET_MAKE="MAKE=${MAKE-make}"
727 # Extract the first word of "gcc", so it can be a program name with args.
728 set dummy gcc; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
756 if test -z "$CC"; then
757 # Extract the first word of "cc", so it can be a program name with args.
758 set dummy cc; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 for ac_dir in $ac_dummy; do
771 test -z "$ac_dir" && ac_dir=.
772 if test -f $ac_dir/$ac_word; then
773 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
782 if test $ac_prog_rejected = yes; then
783 # We found a bogon in the path, so make sure we never use it.
784 set dummy $ac_cv_prog_CC
786 if test $# -gt 0; then
787 # We chose a different compiler from the bogus one.
788 # However, it has the same basename, so the bogon will be chosen
789 # first if we set CC to just the basename; use the full file name.
791 set dummy "$ac_dir/$ac_word" "$@"
799 if test -n "$CC"; then
800 echo "$ac_t""$CC" 1>&6
802 echo "$ac_t""no" 1>&6
805 if test -z "$CC"; then
808 # Extract the first word of "cl", so it can be a program name with args.
809 set dummy cl; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$CC"; then
816 ac_cv_prog_CC="$CC" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
843 echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847 ac_cpp='$CPP $CPPFLAGS'
848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850 cross_compiling=$ac_cv_prog_cc_cross
852 cat > conftest.$ac_ext << EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 if { (eval echo configure:860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
860 ac_cv_prog_cc_works=yes
861 # If we can't run a trivial program, we are probably using a cross compiler.
862 if (./conftest; exit) 2>/dev/null; then
863 ac_cv_prog_cc_cross=no
865 ac_cv_prog_cc_cross=yes
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
870 ac_cv_prog_cc_works=no
874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
875 ac_cpp='$CPP $CPPFLAGS'
876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
878 cross_compiling=$ac_cv_prog_cc_cross
880 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
881 if test $ac_cv_prog_cc_works = no; then
882 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
884 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
885 echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
886 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
887 cross_compiling=$ac_cv_prog_cc_cross
889 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
890 echo "configure:891: checking whether we are using GNU C" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 cat > conftest.c <<EOF
899 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
906 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
908 if test $ac_cv_prog_gcc = yes; then
914 ac_test_CFLAGS="${CFLAGS+set}"
915 ac_save_CFLAGS="$CFLAGS"
917 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
918 echo "configure:919: checking whether ${CC-cc} accepts -g" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 echo 'void f(){}' > conftest.c
923 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
932 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
933 if test "$ac_test_CFLAGS" = set; then
934 CFLAGS="$ac_save_CFLAGS"
935 elif test $ac_cv_prog_cc_g = yes; then
936 if test "$GCC" = yes; then
942 if test "$GCC" = yes; then
949 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
950 echo "configure:951: checking how to run the C preprocessor" >&5
951 # On Suns, sometimes $CPP names a directory.
952 if test -n "$CPP" && test -d "$CPP"; then
955 if test -z "$CPP"; then
956 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 # This must be in double quotes, not single quotes, because CPP may get
960 # substituted into the Makefile and "${CC-cc}" will confuse make.
962 # On the NeXT, cc -E runs the code through the compiler's parser,
963 # not just through cpp.
964 cat > conftest.$ac_ext <<EOF
965 #line 966 "configure"
966 #include "confdefs.h"
970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
971 { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
973 if test -z "$ac_err"; then
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
980 CPP="${CC-cc} -E -traditional-cpp"
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
988 { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
990 if test -z "$ac_err"; then
994 echo "configure: failed program was:" >&5
995 cat conftest.$ac_ext >&5
997 CPP="${CC-cc} -nologo -E"
998 cat > conftest.$ac_ext <<EOF
999 #line 1000 "configure"
1000 #include "confdefs.h"
1004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1005 { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1007 if test -z "$ac_err"; then
1011 echo "configure: failed program was:" >&5
1012 cat conftest.$ac_ext >&5
1021 ac_cv_prog_CPP="$CPP"
1023 CPP="$ac_cv_prog_CPP"
1025 ac_cv_prog_CPP="$CPP"
1027 echo "$ac_t""$CPP" 1>&6
1029 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1030 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1031 echo "configure:1032: checking for minix/config.h" >&5
1032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038 #include <minix/config.h>
1040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043 if test -z "$ac_err"; then
1045 eval "ac_cv_header_$ac_safe=yes"
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1051 eval "ac_cv_header_$ac_safe=no"
1055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1056 echo "$ac_t""yes" 1>&6
1059 echo "$ac_t""no" 1>&6
1063 if test "$MINIX" = yes; then
1064 cat >> confdefs.h <<\EOF
1065 #define _POSIX_SOURCE 1
1068 cat >> confdefs.h <<\EOF
1069 #define _POSIX_1_SOURCE 2
1072 cat >> confdefs.h <<\EOF
1079 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
1080 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
1082 if test $ac_cv_prog_gcc = yes; then
1083 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether ${CC-cc} needs -traditional" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 ac_pattern="Autoconf.*'x'"
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1096 egrep "$ac_pattern" >/dev/null 2>&1; then
1098 ac_cv_prog_gcc_traditional=yes
1101 ac_cv_prog_gcc_traditional=no
1106 if test $ac_cv_prog_gcc_traditional = no; then
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1114 egrep "$ac_pattern" >/dev/null 2>&1; then
1116 ac_cv_prog_gcc_traditional=yes
1123 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1124 if test $ac_cv_prog_gcc_traditional = yes; then
1125 CC="$CC -traditional"
1129 # Find a good install program. We prefer a C program (faster),
1130 # so one script is as good as another. But avoid the broken or
1131 # incompatible versions:
1132 # SysV /etc/install, /usr/sbin/install
1133 # SunOS /usr/etc/install
1134 # IRIX /sbin/install
1136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1139 # ./install, which can be erroneously created by make from ./install.sh.
1140 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1141 echo "configure:1142: checking for a BSD compatible install" >&5
1142 if test -z "$INSTALL"; then
1143 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1147 for ac_dir in $PATH; do
1148 # Account for people who put trailing slashes in PATH elements.
1150 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1152 # OSF1 and SCO ODT 3.0 have their own names for install.
1153 # Don't use installbsd from OSF since it installs stuff as root
1155 for ac_prog in ginstall scoinst install; do
1156 if test -f $ac_dir/$ac_prog; then
1157 if test $ac_prog = install &&
1158 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1159 # AIX install. It has an incompatible calling convention.
1162 ac_cv_path_install="$ac_dir/$ac_prog -c"
1173 if test "${ac_cv_path_install+set}" = set; then
1174 INSTALL="$ac_cv_path_install"
1176 # As a last resort, use the slow shell script. We don't cache a
1177 # path for INSTALL within a source directory, because that will
1178 # break other packages using the cache if that directory is
1179 # removed, or if the path is relative.
1180 INSTALL="$ac_install_sh"
1183 echo "$ac_t""$INSTALL" 1>&6
1185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1186 # It thinks the first close brace ends the variable substitution.
1187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1191 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1193 # Extract the first word of "ar", so it can be a program name with args.
1194 set dummy ar; ac_word=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$AR"; then
1201 ac_cv_prog_AR="$AR" # Let the user override the test.
1203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1205 for ac_dir in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir=.
1207 if test -f $ac_dir/$ac_word; then
1216 if test -n "$AR"; then
1217 echo "$ac_t""$AR" 1>&6
1219 echo "$ac_t""no" 1>&6
1222 test -n "$ARFLAGS" || ARFLAGS="cr"
1223 # Extract the first word of "ranlib", so it can be a program name with args.
1224 set dummy ranlib; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$RANLIB"; then
1231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_RANLIB="ranlib"
1243 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1246 RANLIB="$ac_cv_prog_RANLIB"
1247 if test -n "$RANLIB"; then
1248 echo "$ac_t""$RANLIB" 1>&6
1250 echo "$ac_t""no" 1>&6
1257 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1258 echo "configure:1259: checking return type of signal handlers" >&5
1259 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <sys/types.h>
1271 extern "C" void (*signal (int, void (*)(int)))(int);
1273 void (*signal ()) ();
1280 if { (eval echo configure:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1282 ac_cv_type_signal=void
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1287 ac_cv_type_signal=int
1292 echo "$ac_t""$ac_cv_type_signal" 1>&6
1293 cat >> confdefs.h <<EOF
1294 #define RETSIGTYPE $ac_cv_type_signal
1299 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether stat file-mode macros are broken" >&5
1301 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <sys/types.h>
1308 #include <sys/stat.h>
1310 #if defined(S_ISBLK) && defined(S_IFDIR)
1311 # if S_ISBLK (S_IFDIR)
1316 #if defined(S_ISBLK) && defined(S_IFCHR)
1317 # if S_ISBLK (S_IFCHR)
1322 #if defined(S_ISLNK) && defined(S_IFREG)
1323 # if S_ISLNK (S_IFREG)
1328 #if defined(S_ISSOCK) && defined(S_IFREG)
1329 # if S_ISSOCK (S_IFREG)
1335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1336 egrep "You lose" >/dev/null 2>&1; then
1338 ac_cv_header_stat_broken=yes
1341 ac_cv_header_stat_broken=no
1347 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1348 if test $ac_cv_header_stat_broken = yes; then
1349 cat >> confdefs.h <<\EOF
1350 #define STAT_MACROS_BROKEN 1
1356 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1359 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_hdr that defines DIR" >&5
1361 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 #include <sys/types.h>
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 eval "ac_cv_header_dirent_$ac_safe=yes"
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 eval "ac_cv_header_dirent_$ac_safe=no"
1384 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1387 cat >> confdefs.h <<EOF
1388 #define $ac_tr_hdr 1
1390 ac_header_dirent=$ac_hdr; break
1392 echo "$ac_t""no" 1>&6
1395 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1396 if test $ac_header_dirent = dirent.h; then
1397 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1398 echo "configure:1399: checking for opendir in -ldir" >&5
1399 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 ac_save_LIBS="$LIBS"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* Override any gcc2 internal prototype to avoid an error. */
1409 /* We use char because int might match the return type of a gcc2
1410 builtin and then its argument prototype would still apply. */
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 eval "ac_cv_lib_$ac_lib_var=yes"
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 eval "ac_cv_lib_$ac_lib_var=no"
1427 LIBS="$ac_save_LIBS"
1430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1431 echo "$ac_t""yes" 1>&6
1434 echo "$ac_t""no" 1>&6
1438 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1439 echo "configure:1440: checking for opendir in -lx" >&5
1440 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 ac_save_LIBS="$LIBS"
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 /* Override any gcc2 internal prototype to avoid an error. */
1450 /* We use char because int might match the return type of a gcc2
1451 builtin and then its argument prototype would still apply. */
1458 if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1460 eval "ac_cv_lib_$ac_lib_var=yes"
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1465 eval "ac_cv_lib_$ac_lib_var=no"
1468 LIBS="$ac_save_LIBS"
1471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1472 echo "$ac_t""yes" 1>&6
1475 echo "$ac_t""no" 1>&6
1481 for ac_func in lstat memmove putenv select setenv setlocale \
1482 strcasecmp tcgetattr
1484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_func" >&5
1486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 /* System header to define __stub macros and hopefully few prototypes,
1493 which can conflict with char $ac_func(); below. */
1495 /* Override any gcc2 internal prototype to avoid an error. */
1496 /* We use char because int might match the return type of a gcc2
1497 builtin and then its argument prototype would still apply. */
1502 /* The GNU C library defines this for functions which it implements
1503 to always fail with ENOSYS. Some functions are actually named
1504 something starting with __ and the normal name is an alias. */
1505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1513 if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1515 eval "ac_cv_func_$ac_func=yes"
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 eval "ac_cv_func_$ac_func=no"
1525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1526 echo "$ac_t""yes" 1>&6
1527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1528 cat >> confdefs.h <<EOF
1529 #define $ac_tr_func 1
1533 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1539 echo "configure:1540: checking for working strcoll" >&5
1540 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 if test "$cross_compiling" = yes; then
1544 ac_cv_func_strcoll_works=no
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1552 exit (strcoll ("abc", "def") >= 0 ||
1553 strcoll ("ABC", "DEF") >= 0 ||
1554 strcoll ("123", "456") >= 0);
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1559 ac_cv_func_strcoll_works=yes
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 ac_cv_func_strcoll_works=no
1571 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1572 if test $ac_cv_func_strcoll_works = yes; then
1573 cat >> confdefs.h <<\EOF
1574 #define HAVE_STRCOLL 1
1580 for ac_hdr in unistd.h stdlib.h varargs.h stdarg.h string.h \
1581 sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
1582 termcap.h termios.h termio.h sys/file.h locale.h
1584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1586 echo "configure:1587: checking for $ac_hdr" >&5
1587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1596 { (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1598 if test -z "$ac_err"; then
1600 eval "ac_cv_header_$ac_safe=yes"
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1606 eval "ac_cv_header_$ac_safe=no"
1610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1611 echo "$ac_t""yes" 1>&6
1612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1613 cat >> confdefs.h <<EOF
1614 #define $ac_tr_hdr 1
1618 echo "$ac_t""no" 1>&6
1624 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
1625 echo "configure:1626: checking for type of signal functions" >&5
1626 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1637 struct sigaction sa;
1638 sigemptyset(&ss); sigsuspend(&ss);
1639 sigaction(SIGINT, &sa, (struct sigaction *) 0);
1640 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
1644 if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1646 bash_cv_signal_vintage=posix
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1658 int mask = sigmask(SIGINT);
1659 sigsetmask(mask); sigblock(mask); sigpause(mask);
1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1665 bash_cv_signal_vintage=4.2bsd
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1676 RETSIGTYPE foo() { }
1679 int mask = sigmask(SIGINT);
1680 sigset(SIGINT, foo); sigrelse(SIGINT);
1681 sighold(SIGINT); sigpause(SIGINT);
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1687 bash_cv_signal_vintage=svr3
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1692 bash_cv_signal_vintage=v7
1705 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
1706 if test "$bash_cv_signal_vintage" = posix; then
1707 cat >> confdefs.h <<\EOF
1708 #define HAVE_POSIX_SIGNALS 1
1711 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
1712 cat >> confdefs.h <<\EOF
1713 #define HAVE_BSD_SIGNALS 1
1716 elif test "$bash_cv_signal_vintage" = svr3; then
1717 cat >> confdefs.h <<\EOF
1718 #define HAVE_USG_SIGHOLD 1
1725 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
1726 echo "configure:1727: checking if signal handlers must be reinstalled when invoked" >&5
1727 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 if test "$cross_compiling" = yes; then
1731 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
1732 bash_cv_must_reinstall_sighandlers=no
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1740 #ifdef HAVE_UNISTD_H
1744 typedef RETSIGTYPE sigfunc();
1748 #ifdef HAVE_POSIX_SIGNALS
1750 set_signal_handler(sig, handler)
1754 struct sigaction act, oact;
1755 act.sa_handler = handler;
1757 sigemptyset (&act.sa_mask);
1758 sigemptyset (&oact.sa_mask);
1759 sigaction (sig, &act, &oact);
1760 return (oact.sa_handler);
1763 #define set_signal_handler(s, h) signal(s, h)
1776 set_signal_handler(SIGINT, sigint);
1777 kill((int)getpid(), SIGINT);
1778 kill((int)getpid(), SIGINT);
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1785 bash_cv_must_reinstall_sighandlers=no
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 bash_cv_must_reinstall_sighandlers=yes
1797 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
1798 if test $bash_cv_must_reinstall_sighandlers = yes; then
1799 cat >> confdefs.h <<\EOF
1800 #define MUST_REINSTALL_SIGHANDLERS 1
1807 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
1808 echo "configure:1809: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
1809 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 if test "$cross_compiling" = yes; then
1813 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
1814 bash_cv_func_sigsetjmp=missing
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1821 #ifdef HAVE_UNISTD_H
1824 #include <sys/types.h>
1830 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
1841 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
1842 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
1845 code = sigsetjmp(xx, 1);
1847 exit(0); /* could get sigmask and compare to oset here. */
1850 sigaddset(&set, SIGINT);
1851 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
1853 /* and siglongjmp */
1859 if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1861 bash_cv_func_sigsetjmp=present
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1866 bash_cv_func_sigsetjmp=missing
1873 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
1874 if test $bash_cv_func_sigsetjmp = present; then
1875 cat >> confdefs.h <<\EOF
1876 #define HAVE_POSIX_SIGSETJMP 1
1881 echo $ac_n "checking for lstat""... $ac_c" 1>&6
1882 echo "configure:1883: checking for lstat" >&5
1883 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1890 #include <sys/types.h>
1891 #include <sys/stat.h>
1894 lstat(".",(struct stat *)0);
1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1899 bash_cv_func_lstat=yes
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1904 bash_cv_func_lstat=no
1909 echo "$ac_t""$bash_cv_func_lstat" 1>&6
1910 if test $bash_cv_func_lstat = yes; then
1911 cat >> confdefs.h <<\EOF
1912 #define HAVE_LSTAT 1
1917 echo $ac_n "checking whether getpw functions are declared in pwd.h""... $ac_c" 1>&6
1918 echo "configure:1919: checking whether getpw functions are declared in pwd.h" >&5
1919 if eval "test \"`echo '$''{'bash_cv_getpw_declared'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1926 #include <sys/types.h>
1927 #ifdef HAVE_UNISTD_H
1928 # include <unistd.h>
1933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1934 egrep "getpwuid" >/dev/null 2>&1; then
1936 bash_cv_getpw_declared=yes
1939 bash_cv_getpw_declared=no
1945 echo "$ac_t""$bash_cv_getpw_declared" 1>&6
1946 if test $bash_cv_getpw_declared = yes; then
1947 cat >> confdefs.h <<\EOF
1948 #define HAVE_GETPW_DECLS 1
1954 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
1955 echo "configure:1956: checking whether or not strcoll and strcmp differ" >&5
1956 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 if test "$cross_compiling" = yes; then
1960 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
1961 bash_cv_func_strcoll_broken=no
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1969 #if defined (HAVE_LOCALE_H)
1978 char *deflocale, *defcoll;
1980 #ifdef HAVE_SETLOCALE
1981 deflocale = setlocale(LC_ALL, "");
1982 defcoll = setlocale(LC_COLLATE, "");
1986 /* These two values are taken from tests/glob-test. */
1987 r1 = strcoll("abd", "aXd");
1991 r2 = strcmp("abd", "aXd");
1993 /* These two should both be greater than 0. It is permissible for
1994 a system to return different values, as long as the sign is the
1997 /* Exit with 1 (failure) if these two values are both > 0, since
1998 this tests whether strcoll(3) is broken with respect to strcmp(3)
1999 in the default locale. */
2000 exit (r1 > 0 && r2 > 0);
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2006 bash_cv_func_strcoll_broken=yes
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 bash_cv_func_strcoll_broken=no
2018 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
2019 if test $bash_cv_func_strcoll_broken = yes; then
2020 cat >> confdefs.h <<\EOF
2021 #define STRCOLL_BROKEN 1
2027 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether signal handlers are of type void" >&5
2029 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <sys/types.h>
2043 void (*signal ()) ();
2048 if { (eval echo configure:2049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 bash_cv_void_sighandler=yes
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2055 bash_cv_void_sighandler=no
2059 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
2060 if test $bash_cv_void_sighandler = yes; then
2061 cat >> confdefs.h <<\EOF
2062 #define VOID_SIGHANDLER 1
2067 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2068 echo "configure:2069: checking for TIOCGWINSZ in sys/ioctl.h" >&5
2069 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 #include <sys/types.h>
2076 #include <sys/ioctl.h>
2081 if { (eval echo configure:2082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2083 bash_cv_tiocgwinsz_in_ioctl=yes
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 bash_cv_tiocgwinsz_in_ioctl=no
2093 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
2094 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
2095 cat >> confdefs.h <<\EOF
2096 #define GWINSZ_IN_SYS_IOCTL 1
2101 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
2102 echo "configure:2103: checking for TIOCSTAT in sys/ioctl.h" >&5
2103 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <sys/types.h>
2110 #include <sys/ioctl.h>
2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2117 bash_cv_tiocstat_in_ioctl=yes
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2122 bash_cv_tiocstat_in_ioctl=no
2127 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
2128 if test $bash_cv_tiocstat_in_ioctl = yes; then
2129 cat >> confdefs.h <<\EOF
2130 #define TIOCSTAT_IN_SYS_IOCTL 1
2135 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
2136 echo "configure:2137: checking for FIONREAD in sys/ioctl.h" >&5
2137 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 #include <sys/types.h>
2144 #include <sys/ioctl.h>
2149 if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2151 bash_cv_fionread_in_ioctl=yes
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 bash_cv_fionread_in_ioctl=no
2161 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
2162 if test $bash_cv_fionread_in_ioctl = yes; then
2163 cat >> confdefs.h <<\EOF
2164 #define FIONREAD_IN_SYS_IOCTL 1
2169 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
2170 echo "configure:2171: checking for speed_t in sys/types.h" >&5
2171 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 #include <sys/types.h>
2182 if { (eval echo configure:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2184 bash_cv_speed_t_in_sys_types=yes
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 bash_cv_speed_t_in_sys_types=no
2194 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
2195 if test $bash_cv_speed_t_in_sys_types = yes; then
2196 cat >> confdefs.h <<\EOF
2197 #define SPEED_T_IN_SYS_TYPES 1
2202 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
2203 echo "configure:2204: checking for struct winsize in sys/ioctl.h and termios.h" >&5
2204 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 #include <sys/types.h>
2211 #include <sys/ioctl.h>
2216 if { (eval echo configure:2217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2218 bash_cv_struct_winsize_header=ioctl_h
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 #include <sys/types.h>
2227 #include <termios.h>
2232 if { (eval echo configure:2233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2234 bash_cv_struct_winsize_header=termios_h
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 bash_cv_struct_winsize_header=other
2247 if test $bash_cv_struct_winsize_header = ioctl_h; then
2248 echo "$ac_t""sys/ioctl.h" 1>&6
2249 cat >> confdefs.h <<\EOF
2250 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
2253 elif test $bash_cv_struct_winsize_header = termios_h; then
2254 echo "$ac_t""termios.h" 1>&6
2255 cat >> confdefs.h <<\EOF
2256 #define STRUCT_WINSIZE_IN_TERMIOS 1
2260 echo "$ac_t""not found" 1>&6
2264 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
2265 echo "configure:2266: checking if struct dirent has a d_ino member" >&5
2266 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2274 #include <sys/types.h>
2275 #ifdef HAVE_UNISTD_H
2276 # include <unistd.h>
2277 #endif /* HAVE_UNISTD_H */
2278 #if defined(HAVE_DIRENT_H)
2279 # include <dirent.h>
2281 # define dirent direct
2282 # ifdef HAVE_SYS_NDIR_H
2283 # include <sys/ndir.h>
2284 # endif /* SYSNDIR */
2285 # ifdef HAVE_SYS_DIR_H
2286 # include <sys/dir.h>
2287 # endif /* SYSDIR */
2291 #endif /* HAVE_DIRENT_H */
2295 struct dirent d; int z; z = d.d_ino;
2299 if { (eval echo configure:2300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2301 bash_cv_dirent_has_dino=yes
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 bash_cv_dirent_has_dino=no
2311 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
2312 if test $bash_cv_dirent_has_dino = yes; then
2313 cat >> confdefs.h <<\EOF
2314 #define STRUCT_DIRENT_HAS_D_INO 1
2320 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
2321 echo "configure:2322: checking if struct dirent has a d_fileno member" >&5
2322 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 #include <sys/types.h>
2331 #ifdef HAVE_UNISTD_H
2332 # include <unistd.h>
2333 #endif /* HAVE_UNISTD_H */
2334 #if defined(HAVE_DIRENT_H)
2335 # include <dirent.h>
2337 # define dirent direct
2338 # ifdef HAVE_SYS_NDIR_H
2339 # include <sys/ndir.h>
2340 # endif /* SYSNDIR */
2341 # ifdef HAVE_SYS_DIR_H
2342 # include <sys/dir.h>
2343 # endif /* SYSDIR */
2347 #endif /* HAVE_DIRENT_H */
2351 struct dirent d; int z; z = d.d_fileno;
2355 if { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2357 bash_cv_dirent_has_d_fileno=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 bash_cv_dirent_has_d_fileno=no
2367 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
2368 if test $bash_cv_dirent_has_d_fileno = yes; then
2369 cat >> confdefs.h <<\EOF
2370 #define STRUCT_DIRENT_HAS_D_FILENO 1
2377 aix*) prefer_curses=yes ;;
2380 if test "X$bash_cv_termcap_lib" = "X"; then
2383 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2384 echo "configure:2385: checking which library has the termcap functions" >&5
2387 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2391 echo "configure:2392: checking for tgetent in -ltermcap" >&5
2392 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 ac_save_LIBS="$LIBS"
2397 LIBS="-ltermcap $LIBS"
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* Override any gcc2 internal prototype to avoid an error. */
2402 /* We use char because int might match the return type of a gcc2
2403 builtin and then its argument prototype would still apply. */
2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412 eval "ac_cv_lib_$ac_lib_var=yes"
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2417 eval "ac_cv_lib_$ac_lib_var=no"
2420 LIBS="$ac_save_LIBS"
2423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 bash_cv_termcap_lib=libtermcap
2427 echo "$ac_t""no" 1>&6
2428 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
2429 echo "configure:2430: checking for tgetent in -lcurses" >&5
2430 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
2431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 ac_save_LIBS="$LIBS"
2435 LIBS="-lcurses $LIBS"
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 /* Override any gcc2 internal prototype to avoid an error. */
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 eval "ac_cv_lib_$ac_lib_var=yes"
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 eval "ac_cv_lib_$ac_lib_var=no"
2458 LIBS="$ac_save_LIBS"
2461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2462 echo "$ac_t""yes" 1>&6
2463 bash_cv_termcap_lib=libcurses
2465 echo "$ac_t""no" 1>&6
2466 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2467 echo "configure:2468: checking for tgetent in -lncurses" >&5
2468 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
2469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 ac_save_LIBS="$LIBS"
2473 LIBS="-lncurses $LIBS"
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 /* Override any gcc2 internal prototype to avoid an error. */
2478 /* We use char because int might match the return type of a gcc2
2479 builtin and then its argument prototype would still apply. */
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2488 eval "ac_cv_lib_$ac_lib_var=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2493 eval "ac_cv_lib_$ac_lib_var=no"
2496 LIBS="$ac_save_LIBS"
2499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 bash_cv_termcap_lib=libncurses
2503 echo "$ac_t""no" 1>&6
2504 bash_cv_termcap_lib=gnutermcap
2513 if test "X$_bash_needmsg" = "Xyes"; then
2514 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2515 echo "configure:2516: checking which library has the termcap functions" >&5
2517 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
2518 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
2519 LDFLAGS="$LDFLAGS -L./lib/termcap"
2520 TERMCAP_LIB="./lib/termcap/libtermcap.a"
2521 TERMCAP_DEP="./lib/termcap/libtermcap.a"
2522 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
2523 TERMCAP_LIB=-ltermcap
2525 elif test $bash_cv_termcap_lib = libncurses; then
2526 TERMCAP_LIB=-lncurses
2529 TERMCAP_LIB=-lcurses
2533 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
2534 TERMCAP_LIB=-ltermcap #default
2538 *cray*) LOCAL_CFLAGS=-DCRAY ;;
2539 *s390*) LOCAL_CFLAGS=-fsigned-char ;;
2543 isc*) LOCAL_CFLAGS=-Disc386 ;;
2546 # shared library configuration section
2548 # Shared object configuration section. These values are generated by
2549 # ${srcdir}/support/shobj-conf
2551 if test -f ${srcdir}/support/shobj-conf; then
2552 echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6
2553 echo "configure:2554: checking configuration for building shared libraries" >&5
2554 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
2567 echo "$ac_t""$SHLIB_STATUS" 1>&6
2569 # shared library versioning
2570 # quoted for m4 so I can use character classes
2571 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
2572 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
2578 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
2579 *) BUILD_DIR=`pwd` ;;
2600 cat > confcache <<\EOF
2601 # This file is a shell script that caches the results of configure
2602 # tests run on this system so they can be shared between configure
2603 # scripts and configure runs. It is not useful on other systems.
2604 # If it contains results you don't want to keep, you may remove or edit it.
2606 # By default, configure uses ./config.cache as the cache file,
2607 # creating it if it does not exist already. You can give configure
2608 # the --cache-file=FILE option to use a different cache file; that is
2609 # what configure does when it calls configure scripts in
2610 # subdirectories, so they share the cache.
2611 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2612 # config.status only pays attention to the cache file if you give it the
2613 # --recheck option to rerun configure.
2616 # The following way of writing the cache mishandles newlines in values,
2617 # but we know of no workaround that is simple, portable, and efficient.
2618 # So, don't put newlines in cache variables' values.
2619 # Ultrix sh set writes to stderr and can't be redirected directly,
2620 # and sets the high bit in the cache file unless we assign to the vars.
2622 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2624 # `set' does not quote correctly, so add quotes (double-quote substitution
2625 # turns \\\\ into \\, and sed turns \\ into \).
2627 -e "s/'/'\\\\''/g" \
2628 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2631 # `set' quotes correctly as required by POSIX, so do not add quotes.
2632 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2635 if cmp -s $cache_file confcache; then
2638 if test -w $cache_file; then
2639 echo "updating cache $cache_file"
2640 cat confcache > $cache_file
2642 echo "not updating unwritable cache $cache_file"
2647 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2650 # Let make expand exec_prefix.
2651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2653 # Any assignment to VPATH causes Sun make to only execute
2654 # the first set of double-colon rules, so remove it if not needed.
2655 # If there is a colon in the path, we need to keep it.
2656 if test "x$srcdir" = x.; then
2657 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2660 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2662 DEFS=-DHAVE_CONFIG_H
2664 # Without the "./", some shells look in PATH for config.status.
2665 : ${CONFIG_STATUS=./config.status}
2667 echo creating $CONFIG_STATUS
2668 rm -f $CONFIG_STATUS
2669 cat > $CONFIG_STATUS <<EOF
2671 # Generated automatically by configure.
2672 # Run this file to recreate the current configuration.
2673 # This directory was configured as follows,
2674 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2676 # $0 $ac_configure_args
2678 # Compiler output produced by configure, useful for debugging
2679 # configure, is in ./config.log if it exists.
2681 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2684 case "\$ac_option" in
2685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2686 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2687 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2688 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2689 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2691 -help | --help | --hel | --he | --h)
2692 echo "\$ac_cs_usage"; exit 0 ;;
2693 *) echo "\$ac_cs_usage"; exit 1 ;;
2697 ac_given_srcdir=$srcdir
2698 ac_given_INSTALL="$INSTALL"
2700 trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile shlib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2702 cat >> $CONFIG_STATUS <<EOF
2704 # Protect against being on the right side of a sed subst in config.status.
2705 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2706 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2710 s%@CFLAGS@%$CFLAGS%g
2711 s%@CPPFLAGS@%$CPPFLAGS%g
2712 s%@CXXFLAGS@%$CXXFLAGS%g
2713 s%@FFLAGS@%$FFLAGS%g
2715 s%@LDFLAGS@%$LDFLAGS%g
2717 s%@exec_prefix@%$exec_prefix%g
2718 s%@prefix@%$prefix%g
2719 s%@program_transform_name@%$program_transform_name%g
2720 s%@bindir@%$bindir%g
2721 s%@sbindir@%$sbindir%g
2722 s%@libexecdir@%$libexecdir%g
2723 s%@datadir@%$datadir%g
2724 s%@sysconfdir@%$sysconfdir%g
2725 s%@sharedstatedir@%$sharedstatedir%g
2726 s%@localstatedir@%$localstatedir%g
2727 s%@libdir@%$libdir%g
2728 s%@includedir@%$includedir%g
2729 s%@oldincludedir@%$oldincludedir%g
2730 s%@infodir@%$infodir%g
2731 s%@mandir@%$mandir%g
2733 s%@host_alias@%$host_alias%g
2734 s%@host_cpu@%$host_cpu%g
2735 s%@host_vendor@%$host_vendor%g
2736 s%@host_os@%$host_os%g
2737 s%@SET_MAKE@%$SET_MAKE%g
2740 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2741 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2742 s%@INSTALL_DATA@%$INSTALL_DATA%g
2744 s%@RANLIB@%$RANLIB%g
2745 s%@MAKE_SHELL@%$MAKE_SHELL%g
2746 s%@SHOBJ_CC@%$SHOBJ_CC%g
2747 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
2748 s%@SHOBJ_LD@%$SHOBJ_LD%g
2749 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
2750 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
2751 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
2752 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
2753 s%@SHLIB_STATUS@%$SHLIB_STATUS%g
2754 s%@SHLIB_XLDFLAGS@%$SHLIB_XLDFLAGS%g
2755 s%@SHLIB_LIBSUFF@%$SHLIB_LIBSUFF%g
2756 s%@SHLIB_LIBVERSION@%$SHLIB_LIBVERSION%g
2757 s%@SHLIB_LIBS@%$SHLIB_LIBS%g
2758 s%@SHLIB_MAJOR@%$SHLIB_MAJOR%g
2759 s%@SHLIB_MINOR@%$SHLIB_MINOR%g
2760 s%@BUILD_DIR@%$BUILD_DIR%g
2761 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2762 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2763 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2764 s%@ARFLAGS@%$ARFLAGS%g
2765 s%@LIBVERSION@%$LIBVERSION%g
2766 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2771 cat >> $CONFIG_STATUS <<\EOF
2773 # Split the substitutions into bite-sized pieces for seds with
2774 # small command number limits, like on Digital OSF/1 and HP-UX.
2775 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2776 ac_file=1 # Number of current file.
2777 ac_beg=1 # First line for current file.
2778 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2781 while $ac_more_lines; do
2782 if test $ac_beg -gt 1; then
2783 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2785 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2787 if test ! -s conftest.s$ac_file; then
2789 rm -f conftest.s$ac_file
2791 if test -z "$ac_sed_cmds"; then
2792 ac_sed_cmds="sed -f conftest.s$ac_file"
2794 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2796 ac_file=`expr $ac_file + 1`
2798 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2801 if test -z "$ac_sed_cmds"; then
2806 cat >> $CONFIG_STATUS <<EOF
2808 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile examples/Makefile shlib/Makefile"}
2810 cat >> $CONFIG_STATUS <<\EOF
2811 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2814 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2815 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2816 *) ac_file_in="${ac_file}.in" ;;
2819 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2821 # Remove last slash and all that follows it. Not all systems have dirname.
2822 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2823 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2824 # The file is in a subdirectory.
2825 test ! -d "$ac_dir" && mkdir "$ac_dir"
2826 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2827 # A "../" for each directory in $ac_dir_suffix.
2828 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2830 ac_dir_suffix= ac_dots=
2833 case "$ac_given_srcdir" in
2835 if test -z "$ac_dots"; then top_srcdir=.
2836 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2837 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2839 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2840 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2843 case "$ac_given_INSTALL" in
2844 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2845 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2848 echo creating "$ac_file"
2850 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2852 *Makefile*) ac_comsub="1i\\
2853 # $configure_input" ;;
2857 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2859 s%@configure_input@%$configure_input%g
2860 s%@srcdir@%$srcdir%g
2861 s%@top_srcdir@%$top_srcdir%g
2862 s%@INSTALL@%$INSTALL%g
2863 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2867 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2868 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2870 # ac_d sets the value in "#define NAME VALUE" lines.
2871 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2872 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2875 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2876 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2877 ac_uB='\([ ]\)%\1#\2define\3'
2880 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2881 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2882 ac_eB='$%\1#\2define\3'
2886 if test "${CONFIG_HEADERS+set}" != set; then
2888 cat >> $CONFIG_STATUS <<EOF
2889 CONFIG_HEADERS="config.h"
2891 cat >> $CONFIG_STATUS <<\EOF
2893 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2896 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2897 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2898 *) ac_file_in="${ac_file}.in" ;;
2901 echo creating $ac_file
2903 rm -f conftest.frag conftest.in conftest.out
2904 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2905 cat $ac_file_inputs > conftest.in
2909 # Transform confdefs.h into a sed script conftest.vals that substitutes
2910 # the proper values into config.h.in to produce config.h. And first:
2911 # Protect against being on the right side of a sed subst in config.status.
2912 # Protect against being in an unquoted here document in config.status.
2914 cat > conftest.hdr <<\EOF
2917 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2921 sed -n -f conftest.hdr confdefs.h > conftest.vals
2924 # This sed command replaces #undef with comments. This is necessary, for
2925 # example, in the case of _POSIX_SOURCE, which is predefined and required
2926 # on some systems where configure will not decide to define it.
2927 cat >> conftest.vals <<\EOF
2928 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2931 # Break up conftest.vals because some shells have a limit on
2932 # the size of here documents, and old seds have small limits too.
2937 ac_lines=`grep -c . conftest.vals`
2938 # grep -c gives empty output for an empty file on some AIX systems.
2939 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2940 # Write a limited-size here document to conftest.frag.
2941 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2942 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2944 sed -f conftest.frag conftest.in > conftest.out
2946 mv conftest.out conftest.in
2948 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2950 mv conftest.tail conftest.vals
2954 cat >> $CONFIG_STATUS <<\EOF
2955 rm -f conftest.frag conftest.h
2956 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2957 cat conftest.in >> conftest.h
2959 if cmp -s $ac_file conftest.h 2>/dev/null; then
2960 echo "$ac_file is unchanged"
2963 # Remove last slash and all that follows it. Not all systems have dirname.
2964 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2966 # The file is in a subdirectory.
2967 test ! -d "$ac_dir" && mkdir "$ac_dir"
2970 mv conftest.h $ac_file
2975 cat >> $CONFIG_STATUS <<EOF
2978 cat >> $CONFIG_STATUS <<\EOF
2980 # Makefile uses this timestamp file to record whether config.h is up to date.
2985 chmod +x $CONFIG_STATUS
2986 rm -fr confdefs* $ac_clean_files
2987 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1