3 # From configure.in for Readline 4.0, version 2.14, from autoconf version 2.13
94 # Guess values for system-dependent variables and create Makefiles.
95 # Generated automatically using autoconf version 2.13
96 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
98 # This configure script is free software; the Free Software Foundation
99 # gives unlimited permission to copy, distribute and modify it.
103 ac_default_prefix=/usr/local
104 # Any additions from configure.in:
106 --with-curses use the curses library instead of the termcap library"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
112 cache_file=./config.cache
121 program_transform_name=s,x,x,
130 bindir='${exec_prefix}/bin'
131 sbindir='${exec_prefix}/sbin'
132 libexecdir='${exec_prefix}/libexec'
133 datadir='${prefix}/share'
134 sysconfdir='${prefix}/etc'
135 sharedstatedir='${prefix}/com'
136 localstatedir='${prefix}/var'
137 libdir='${exec_prefix}/lib'
138 includedir='${prefix}/include'
139 oldincludedir='/usr/include'
140 infodir='${prefix}/info'
141 mandir='${prefix}/man'
143 # Initialize some other variables.
146 SHELL=${CONFIG_SHELL-/bin/sh}
147 # Maximum number of lines to put in a shell here document.
154 # If the previous option needs an argument, assign it.
155 if test -n "$ac_prev"; then
156 eval "$ac_prev=\$ac_option"
162 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir="$ac_optarg" ;;
175 -build | --build | --buil | --bui | --bu)
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build="$ac_optarg" ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file="$ac_optarg" ;;
187 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
189 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
191 datadir="$ac_optarg" ;;
193 -disable-* | --disable-*)
194 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}=no" ;;
202 -enable-* | --enable-*)
203 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}='$ac_optarg'" ;;
215 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
216 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
217 | --exec | --exe | --ex)
218 ac_prev=exec_prefix ;;
219 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
220 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
221 | --exec=* | --exe=* | --ex=*)
222 exec_prefix="$ac_optarg" ;;
224 -gas | --gas | --ga | --g)
225 # Obsolete; use --with-gas.
228 -help | --help | --hel | --he)
229 # Omit some internal or obsolete options to make the list less imposing.
230 # This message is too long to be a string in the A/UX 3.1 sh.
232 Usage: configure [options] [host]
233 Options: [defaults in brackets after descriptions]
235 --cache-file=FILE cache test results in FILE
236 --help print this message
237 --no-create do not create output files
238 --quiet, --silent do not print \`checking...' messages
239 --site-file=FILE use FILE as the site file
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
284 -host | --host | --hos | --ho)
286 -host=* | --host=* | --hos=* | --ho=*)
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir="$ac_optarg" ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir="$ac_optarg" ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
304 libdir="$ac_optarg" ;;
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir="$ac_optarg" ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir="$ac_optarg" ;;
322 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
324 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
325 mandir="$ac_optarg" ;;
328 # Obsolete; use --without-fp.
331 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
335 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
336 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
339 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
340 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
341 | --oldin | --oldi | --old | --ol | --o)
342 ac_prev=oldincludedir ;;
343 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
344 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
345 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
346 oldincludedir="$ac_optarg" ;;
348 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
350 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
351 prefix="$ac_optarg" ;;
353 -program-prefix | --program-prefix | --program-prefi | --program-pref \
354 | --program-pre | --program-pr | --program-p)
355 ac_prev=program_prefix ;;
356 -program-prefix=* | --program-prefix=* | --program-prefi=* \
357 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
358 program_prefix="$ac_optarg" ;;
360 -program-suffix | --program-suffix | --program-suffi | --program-suff \
361 | --program-suf | --program-su | --program-s)
362 ac_prev=program_suffix ;;
363 -program-suffix=* | --program-suffix=* | --program-suffi=* \
364 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
365 program_suffix="$ac_optarg" ;;
367 -program-transform-name | --program-transform-name \
368 | --program-transform-nam | --program-transform-na \
369 | --program-transform-n | --program-transform- \
370 | --program-transform | --program-transfor \
371 | --program-transfo | --program-transf \
372 | --program-trans | --program-tran \
373 | --progr-tra | --program-tr | --program-t)
374 ac_prev=program_transform_name ;;
375 -program-transform-name=* | --program-transform-name=* \
376 | --program-transform-nam=* | --program-transform-na=* \
377 | --program-transform-n=* | --program-transform-=* \
378 | --program-transform=* | --program-transfor=* \
379 | --program-transfo=* | --program-transf=* \
380 | --program-trans=* | --program-tran=* \
381 | --progr-tra=* | --program-tr=* | --program-t=*)
382 program_transform_name="$ac_optarg" ;;
384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
385 | -silent | --silent | --silen | --sile | --sil)
388 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
390 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
392 sbindir="$ac_optarg" ;;
394 -sharedstatedir | --sharedstatedir | --sharedstatedi \
395 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
396 | --sharedst | --shareds | --shared | --share | --shar \
398 ac_prev=sharedstatedir ;;
399 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
400 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
401 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
403 sharedstatedir="$ac_optarg" ;;
405 -site | --site | --sit)
407 -site=* | --site=* | --sit=*)
410 -site-file | --site-file | --site-fil | --site-fi | --site-f)
412 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
413 sitefile="$ac_optarg" ;;
415 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
417 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
418 srcdir="$ac_optarg" ;;
420 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
421 | --syscon | --sysco | --sysc | --sys | --sy)
422 ac_prev=sysconfdir ;;
423 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
424 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
425 sysconfdir="$ac_optarg" ;;
427 -target | --target | --targe | --targ | --tar | --ta | --t)
429 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
430 target="$ac_optarg" ;;
432 -v | -verbose | --verbose | --verbos | --verbo | --verb)
435 -version | --version | --versio | --versi | --vers)
436 echo "configure generated by autoconf version 2.13"
440 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}='$ac_optarg'" ;;
452 -without-* | --without-*)
453 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
454 # Reject names that are not valid shell variable names.
455 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
456 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
458 ac_package=`echo $ac_package| sed 's/-/_/g'`
459 eval "with_${ac_package}=no" ;;
462 # Obsolete; use --with-x.
465 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
466 | --x-incl | --x-inc | --x-in | --x-i)
467 ac_prev=x_includes ;;
468 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
469 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
470 x_includes="$ac_optarg" ;;
472 -x-libraries | --x-libraries | --x-librarie | --x-librari \
473 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
474 ac_prev=x_libraries ;;
475 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
476 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
477 x_libraries="$ac_optarg" ;;
479 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
483 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
484 echo "configure: warning: $ac_option: invalid host type" 1>&2
486 if test "x$nonopt" != xNONE; then
487 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
495 if test -n "$ac_prev"; then
496 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
499 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
501 # File descriptor usage:
504 # 2 errors and warnings
505 # 3 some systems may open it to /dev/tty
506 # 4 used on the Kubota Titan
507 # 6 checking for... messages and results
508 # 5 compiler messages saved in config.log
509 if test "$silent" = yes; then
517 This file contains any messages produced by compilers while
518 running configure, to aid debugging if configure makes a mistake.
521 # Strip out --no-create and --no-recursion so they do not pile up.
522 # Also quote any args containing shell metacharacters.
527 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
528 | --no-cr | --no-c) ;;
529 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
530 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
531 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
532 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
533 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
538 # Only set these to C if already set. These must not be set unconditionally
539 # because not all systems understand e.g. LANG=C (notably SCO).
540 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
541 # Non-C LC_CTYPE values break the ctype check.
542 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
543 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
544 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
545 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
547 # confdefs.h avoids OS command line length limits that DEFS can exceed.
548 rm -rf conftest* confdefs.h
549 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
552 # A filename unique to this package, relative to the directory that
553 # configure is in, which we can look for to find out if srcdir is correct.
554 ac_unique_file=readline.h
556 # Find the source files, if location was not specified.
557 if test -z "$srcdir"; then
558 ac_srcdir_defaulted=yes
559 # Try the directory containing this script, then its parent.
561 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
562 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
564 if test ! -r $srcdir/$ac_unique_file; then
568 ac_srcdir_defaulted=no
570 if test ! -r $srcdir/$ac_unique_file; then
571 if test "$ac_srcdir_defaulted" = yes; then
572 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
574 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
577 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
579 # Prefer explicitly selected file to automatically selected ones.
580 if test -z "$sitefile"; then
581 if test -z "$CONFIG_SITE"; then
582 if test "x$prefix" != xNONE; then
583 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
585 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
589 CONFIG_SITE="$sitefile"
591 for ac_site_file in $CONFIG_SITE; do
592 if test -r "$ac_site_file"; then
593 echo "loading site script $ac_site_file"
598 if test -r "$cache_file"; then
599 echo "loading cache $cache_file"
602 echo "creating cache $cache_file"
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
615 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
616 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
617 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
624 ac_n= ac_c='\c' ac_t=
634 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
635 if test -f $ac_dir/install-sh; then
637 ac_install_sh="$ac_aux_dir/install-sh -c"
639 elif test -f $ac_dir/install.sh; then
641 ac_install_sh="$ac_aux_dir/install.sh -c"
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
648 ac_config_guess=$ac_aux_dir/config.guess
649 ac_config_sub=$ac_aux_dir/config.sub
650 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
662 case "$host_alias" in
666 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) host_alias=$nonopt ;;
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
683 # Check whether --with-curses or --without-curses was given.
684 if test "${with_curses+set}" = set; then
685 withval="$with_curses"
690 if test "$opt_curses" = "yes"; then
694 # We want these before the checks, so the checks can modify their values.
695 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
697 # Extract the first word of "gcc", so it can be a program name with args.
698 set dummy gcc; ac_word=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 if test -n "$CC"; then
705 ac_cv_prog_CC="$CC" # Let the user override the test.
707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
709 for ac_dir in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir=.
711 if test -f $ac_dir/$ac_word; then
720 if test -n "$CC"; then
721 echo "$ac_t""$CC" 1>&6
723 echo "$ac_t""no" 1>&6
726 if test -z "$CC"; then
727 # Extract the first word of "cc", so it can be a program name with args.
728 set dummy cc; 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=":"
740 for ac_dir in $ac_dummy; do
741 test -z "$ac_dir" && ac_dir=.
742 if test -f $ac_dir/$ac_word; then
743 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
752 if test $ac_prog_rejected = yes; then
753 # We found a bogon in the path, so make sure we never use it.
754 set dummy $ac_cv_prog_CC
756 if test $# -gt 0; then
757 # We chose a different compiler from the bogus one.
758 # However, it has the same basename, so the bogon will be chosen
759 # first if we set CC to just the basename; use the full file name.
761 set dummy "$ac_dir/$ac_word" "$@"
769 if test -n "$CC"; then
770 echo "$ac_t""$CC" 1>&6
772 echo "$ac_t""no" 1>&6
775 if test -z "$CC"; then
778 # Extract the first word of "cl", so it can be a program name with args.
779 set dummy cl; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
801 if test -n "$CC"; then
802 echo "$ac_t""$CC" 1>&6
804 echo "$ac_t""no" 1>&6
809 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
813 echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817 ac_cpp='$CPP $CPPFLAGS'
818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820 cross_compiling=$ac_cv_prog_cc_cross
822 cat > conftest.$ac_ext << EOF
824 #line 825 "configure"
825 #include "confdefs.h"
829 if { (eval echo configure:830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
830 ac_cv_prog_cc_works=yes
831 # If we can't run a trivial program, we are probably using a cross compiler.
832 if (./conftest; exit) 2>/dev/null; then
833 ac_cv_prog_cc_cross=no
835 ac_cv_prog_cc_cross=yes
838 echo "configure: failed program was:" >&5
839 cat conftest.$ac_ext >&5
840 ac_cv_prog_cc_works=no
844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
845 ac_cpp='$CPP $CPPFLAGS'
846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
848 cross_compiling=$ac_cv_prog_cc_cross
850 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
851 if test $ac_cv_prog_cc_works = no; then
852 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
855 echo "configure:856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
856 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
857 cross_compiling=$ac_cv_prog_cc_cross
859 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
860 echo "configure:861: checking whether we are using GNU C" >&5
861 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 cat > conftest.c <<EOF
869 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
876 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
878 if test $ac_cv_prog_gcc = yes; then
884 ac_test_CFLAGS="${CFLAGS+set}"
885 ac_save_CFLAGS="$CFLAGS"
887 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
888 echo "configure:889: checking whether ${CC-cc} accepts -g" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 echo 'void f(){}' > conftest.c
893 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
902 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
903 if test "$ac_test_CFLAGS" = set; then
904 CFLAGS="$ac_save_CFLAGS"
905 elif test $ac_cv_prog_cc_g = yes; then
906 if test "$GCC" = yes; then
912 if test "$GCC" = yes; then
919 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
920 echo "configure:921: checking how to run the C preprocessor" >&5
921 # On Suns, sometimes $CPP names a directory.
922 if test -n "$CPP" && test -d "$CPP"; then
925 if test -z "$CPP"; then
926 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 # This must be in double quotes, not single quotes, because CPP may get
930 # substituted into the Makefile and "${CC-cc}" will confuse make.
932 # On the NeXT, cc -E runs the code through the compiler's parser,
933 # not just through cpp.
934 cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
947 echo "configure: failed program was:" >&5
948 cat conftest.$ac_ext >&5
950 CPP="${CC-cc} -E -traditional-cpp"
951 cat > conftest.$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958 { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960 if test -z "$ac_err"; then
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
967 CPP="${CC-cc} -nologo -E"
968 cat > conftest.$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
975 { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
977 if test -z "$ac_err"; then
981 echo "configure: failed program was:" >&5
982 cat conftest.$ac_ext >&5
991 ac_cv_prog_CPP="$CPP"
993 CPP="$ac_cv_prog_CPP"
995 ac_cv_prog_CPP="$CPP"
997 echo "$ac_t""$CPP" 1>&6
999 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1000 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1001 echo "configure:1002: checking for minix/config.h" >&5
1002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 cat > conftest.$ac_ext <<EOF
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1008 #include <minix/config.h>
1010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1011 { (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1013 if test -z "$ac_err"; then
1015 eval "ac_cv_header_$ac_safe=yes"
1018 echo "configure: failed program was:" >&5
1019 cat conftest.$ac_ext >&5
1021 eval "ac_cv_header_$ac_safe=no"
1025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1026 echo "$ac_t""yes" 1>&6
1029 echo "$ac_t""no" 1>&6
1033 if test "$MINIX" = yes; then
1034 cat >> confdefs.h <<\EOF
1035 #define _POSIX_SOURCE 1
1038 cat >> confdefs.h <<\EOF
1039 #define _POSIX_1_SOURCE 2
1042 cat >> confdefs.h <<\EOF
1050 if test "x$cross_compiling" = "xyes"; then
1053 cross_cache=${srcdir}/cross-build/cygwin.cache
1054 if test -r "${cross_cache}"; then
1055 echo "loading cross-build cache file ${cross_cache}"
1058 LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
1061 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
1066 if test "x$cross_compiling" = "xyes"; then
1067 CROSS_COMPILING_FLAG=-DCROSS_COMPILING
1069 CROSS_COMPILING_FLAG=
1073 if test -z "$CC_FOR_BUILD"; then
1074 if test "x$cross_compiling" = "xno"; then
1075 CC_FOR_BUILD='$(CC)'
1083 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
1084 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
1086 if test $ac_cv_prog_gcc = yes; then
1087 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether ${CC-cc} needs -traditional" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 ac_pattern="Autoconf.*'x'"
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1100 egrep "$ac_pattern" >/dev/null 2>&1; then
1102 ac_cv_prog_gcc_traditional=yes
1105 ac_cv_prog_gcc_traditional=no
1110 if test $ac_cv_prog_gcc_traditional = no; then
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1118 egrep "$ac_pattern" >/dev/null 2>&1; then
1120 ac_cv_prog_gcc_traditional=yes
1127 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1128 if test $ac_cv_prog_gcc_traditional = yes; then
1129 CC="$CC -traditional"
1133 # Find a good install program. We prefer a C program (faster),
1134 # so one script is as good as another. But avoid the broken or
1135 # incompatible versions:
1136 # SysV /etc/install, /usr/sbin/install
1137 # SunOS /usr/etc/install
1138 # IRIX /sbin/install
1140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1143 # ./install, which can be erroneously created by make from ./install.sh.
1144 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1145 echo "configure:1146: checking for a BSD compatible install" >&5
1146 if test -z "$INSTALL"; then
1147 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1151 for ac_dir in $PATH; do
1152 # Account for people who put trailing slashes in PATH elements.
1154 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1156 # OSF1 and SCO ODT 3.0 have their own names for install.
1157 # Don't use installbsd from OSF since it installs stuff as root
1159 for ac_prog in ginstall scoinst install; do
1160 if test -f $ac_dir/$ac_prog; then
1161 if test $ac_prog = install &&
1162 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1163 # AIX install. It has an incompatible calling convention.
1166 ac_cv_path_install="$ac_dir/$ac_prog -c"
1177 if test "${ac_cv_path_install+set}" = set; then
1178 INSTALL="$ac_cv_path_install"
1180 # As a last resort, use the slow shell script. We don't cache a
1181 # path for INSTALL within a source directory, because that will
1182 # break other packages using the cache if that directory is
1183 # removed, or if the path is relative.
1184 INSTALL="$ac_install_sh"
1187 echo "$ac_t""$INSTALL" 1>&6
1189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1190 # It thinks the first close brace ends the variable substitution.
1191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1197 # Extract the first word of "ar", so it can be a program name with args.
1198 set dummy ar; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$AR"; then
1205 ac_cv_prog_AR="$AR" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 if test -f $ac_dir/$ac_word; then
1220 if test -n "$AR"; then
1221 echo "$ac_t""$AR" 1>&6
1223 echo "$ac_t""no" 1>&6
1226 test -n "$ARFLAGS" || ARFLAGS="cr"
1227 # Extract the first word of "ranlib", so it can be a program name with args.
1228 set dummy ranlib; ac_word=$2
1229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1230 echo "configure:1231: checking for $ac_word" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 if test -n "$RANLIB"; then
1235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1239 for ac_dir in $ac_dummy; do
1240 test -z "$ac_dir" && ac_dir=.
1241 if test -f $ac_dir/$ac_word; then
1242 ac_cv_prog_RANLIB="ranlib"
1247 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1250 RANLIB="$ac_cv_prog_RANLIB"
1251 if test -n "$RANLIB"; then
1252 echo "$ac_t""$RANLIB" 1>&6
1254 echo "$ac_t""no" 1>&6
1261 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1262 echo "configure:1263: checking return type of signal handlers" >&5
1263 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1269 #include <sys/types.h>
1275 extern "C" void (*signal (int, void (*)(int)))(int);
1277 void (*signal ()) ();
1284 if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1286 ac_cv_type_signal=void
1288 echo "configure: failed program was:" >&5
1289 cat conftest.$ac_ext >&5
1291 ac_cv_type_signal=int
1296 echo "$ac_t""$ac_cv_type_signal" 1>&6
1297 cat >> confdefs.h <<EOF
1298 #define RETSIGTYPE $ac_cv_type_signal
1303 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether stat file-mode macros are broken" >&5
1305 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1311 #include <sys/types.h>
1312 #include <sys/stat.h>
1314 #if defined(S_ISBLK) && defined(S_IFDIR)
1315 # if S_ISBLK (S_IFDIR)
1320 #if defined(S_ISBLK) && defined(S_IFCHR)
1321 # if S_ISBLK (S_IFCHR)
1326 #if defined(S_ISLNK) && defined(S_IFREG)
1327 # if S_ISLNK (S_IFREG)
1332 #if defined(S_ISSOCK) && defined(S_IFREG)
1333 # if S_ISSOCK (S_IFREG)
1339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1340 egrep "You lose" >/dev/null 2>&1; then
1342 ac_cv_header_stat_broken=yes
1345 ac_cv_header_stat_broken=no
1351 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1352 if test $ac_cv_header_stat_broken = yes; then
1353 cat >> confdefs.h <<\EOF
1354 #define STAT_MACROS_BROKEN 1
1360 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1363 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_hdr that defines DIR" >&5
1365 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 cat > conftest.$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 #include <sys/types.h>
1377 if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1379 eval "ac_cv_header_dirent_$ac_safe=yes"
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1384 eval "ac_cv_header_dirent_$ac_safe=no"
1388 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1389 echo "$ac_t""yes" 1>&6
1390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1391 cat >> confdefs.h <<EOF
1392 #define $ac_tr_hdr 1
1394 ac_header_dirent=$ac_hdr; break
1396 echo "$ac_t""no" 1>&6
1399 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1400 if test $ac_header_dirent = dirent.h; then
1401 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1402 echo "configure:1403: checking for opendir in -ldir" >&5
1403 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 ac_save_LIBS="$LIBS"
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1412 /* Override any gcc2 internal prototype to avoid an error. */
1413 /* We use char because int might match the return type of a gcc2
1414 builtin and then its argument prototype would still apply. */
1421 if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1423 eval "ac_cv_lib_$ac_lib_var=yes"
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1428 eval "ac_cv_lib_$ac_lib_var=no"
1431 LIBS="$ac_save_LIBS"
1434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1435 echo "$ac_t""yes" 1>&6
1438 echo "$ac_t""no" 1>&6
1442 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1443 echo "configure:1444: checking for opendir in -lx" >&5
1444 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 ac_save_LIBS="$LIBS"
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* Override any gcc2 internal prototype to avoid an error. */
1454 /* We use char because int might match the return type of a gcc2
1455 builtin and then its argument prototype would still apply. */
1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1464 eval "ac_cv_lib_$ac_lib_var=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_lib_$ac_lib_var=no"
1472 LIBS="$ac_save_LIBS"
1475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1479 echo "$ac_t""no" 1>&6
1485 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
1487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_func" >&5
1489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1495 /* System header to define __stub macros and hopefully few prototypes,
1496 which can conflict with char $ac_func(); below. */
1498 /* Override any gcc2 internal prototype to avoid an error. */
1499 /* We use char because int might match the return type of a gcc2
1500 builtin and then its argument prototype would still apply. */
1505 /* The GNU C library defines this for functions which it implements
1506 to always fail with ENOSYS. Some functions are actually named
1507 something starting with __ and the normal name is an alias. */
1508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1518 eval "ac_cv_func_$ac_func=yes"
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1523 eval "ac_cv_func_$ac_func=no"
1528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1529 echo "$ac_t""yes" 1>&6
1530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1531 cat >> confdefs.h <<EOF
1532 #define $ac_tr_func 1
1536 echo "$ac_t""no" 1>&6
1541 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1542 echo "configure:1543: checking for working strcoll" >&5
1543 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 if test "$cross_compiling" = yes; then
1547 ac_cv_func_strcoll_works=no
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1555 exit (strcoll ("abc", "def") >= 0 ||
1556 strcoll ("ABC", "DEF") >= 0 ||
1557 strcoll ("123", "456") >= 0);
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1562 ac_cv_func_strcoll_works=yes
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 ac_cv_func_strcoll_works=no
1574 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1575 if test $ac_cv_func_strcoll_works = yes; then
1576 cat >> confdefs.h <<\EOF
1577 #define HAVE_STRCOLL 1
1583 for ac_hdr in unistd.h stdlib.h varargs.h stdarg.h string.h \
1584 sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
1585 termcap.h termios.h termio.h sys/file.h locale.h
1587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_hdr" >&5
1590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 cat > conftest.$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1599 { (eval echo configure:1600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1601 if test -z "$ac_err"; then
1603 eval "ac_cv_header_$ac_safe=yes"
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1609 eval "ac_cv_header_$ac_safe=no"
1613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1616 cat >> confdefs.h <<EOF
1617 #define $ac_tr_hdr 1
1621 echo "$ac_t""no" 1>&6
1627 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
1628 echo "configure:1629: checking for type of signal functions" >&5
1629 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1640 struct sigaction sa;
1641 sigemptyset(&ss); sigsuspend(&ss);
1642 sigaction(SIGINT, &sa, (struct sigaction *) 0);
1643 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1649 bash_cv_signal_vintage=posix
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1661 int mask = sigmask(SIGINT);
1662 sigsetmask(mask); sigblock(mask); sigpause(mask);
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668 bash_cv_signal_vintage=4.2bsd
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1679 RETSIGTYPE foo() { }
1682 int mask = sigmask(SIGINT);
1683 sigset(SIGINT, foo); sigrelse(SIGINT);
1684 sighold(SIGINT); sigpause(SIGINT);
1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1690 bash_cv_signal_vintage=svr3
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1695 bash_cv_signal_vintage=v7
1708 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
1709 if test "$bash_cv_signal_vintage" = posix; then
1710 cat >> confdefs.h <<\EOF
1711 #define HAVE_POSIX_SIGNALS 1
1714 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
1715 cat >> confdefs.h <<\EOF
1716 #define HAVE_BSD_SIGNALS 1
1719 elif test "$bash_cv_signal_vintage" = svr3; then
1720 cat >> confdefs.h <<\EOF
1721 #define HAVE_USG_SIGHOLD 1
1728 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
1729 echo "configure:1730: checking if signal handlers must be reinstalled when invoked" >&5
1730 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 if test "$cross_compiling" = yes; then
1734 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
1735 bash_cv_must_reinstall_sighandlers=no
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1743 #ifdef HAVE_UNISTD_H
1747 typedef RETSIGTYPE sigfunc();
1751 #ifdef HAVE_POSIX_SIGNALS
1753 set_signal_handler(sig, handler)
1757 struct sigaction act, oact;
1758 act.sa_handler = handler;
1760 sigemptyset (&act.sa_mask);
1761 sigemptyset (&oact.sa_mask);
1762 sigaction (sig, &act, &oact);
1763 return (oact.sa_handler);
1766 #define set_signal_handler(s, h) signal(s, h)
1779 set_signal_handler(SIGINT, sigint);
1780 kill((int)getpid(), SIGINT);
1781 kill((int)getpid(), SIGINT);
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1788 bash_cv_must_reinstall_sighandlers=no
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1793 bash_cv_must_reinstall_sighandlers=yes
1800 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
1801 if test $bash_cv_must_reinstall_sighandlers = yes; then
1802 cat >> confdefs.h <<\EOF
1803 #define MUST_REINSTALL_SIGHANDLERS 1
1810 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
1811 echo "configure:1812: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
1812 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 if test "$cross_compiling" = yes; then
1816 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
1817 bash_cv_func_sigsetjmp=missing
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1824 #ifdef HAVE_UNISTD_H
1827 #include <sys/types.h>
1833 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
1844 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
1845 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
1848 code = sigsetjmp(xx, 1);
1850 exit(0); /* could get sigmask and compare to oset here. */
1853 sigaddset(&set, SIGINT);
1854 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
1856 /* and siglongjmp */
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1864 bash_cv_func_sigsetjmp=present
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 bash_cv_func_sigsetjmp=missing
1876 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
1877 if test $bash_cv_func_sigsetjmp = present; then
1878 cat >> confdefs.h <<\EOF
1879 #define HAVE_POSIX_SIGSETJMP 1
1884 echo $ac_n "checking for lstat""... $ac_c" 1>&6
1885 echo "configure:1886: checking for lstat" >&5
1886 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1893 #include <sys/types.h>
1894 #include <sys/stat.h>
1897 lstat(".",(struct stat *)0);
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 bash_cv_func_lstat=yes
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 bash_cv_func_lstat=no
1912 echo "$ac_t""$bash_cv_func_lstat" 1>&6
1913 if test $bash_cv_func_lstat = yes; then
1914 cat >> confdefs.h <<\EOF
1915 #define HAVE_LSTAT 1
1920 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
1921 echo "configure:1922: checking whether programs are able to redeclare getpw functions" >&5
1922 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1928 #include <sys/types.h>
1930 extern struct passwd *getpwent();
1931 extern struct passwd *getpwuid();
1932 extern struct passwd *getpwnam();
1934 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
1937 if { (eval echo configure:1938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1939 bash_cv_can_redecl_getpw=yes
1941 echo "configure: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1944 bash_cv_can_redecl_getpw=no
1949 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
1950 if test $bash_cv_can_redecl_getpw = no; then
1951 cat >> confdefs.h <<\EOF
1952 #define HAVE_GETPW_DECLS 1
1958 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
1959 echo "configure:1960: checking whether or not strcoll and strcmp differ" >&5
1960 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 if test "$cross_compiling" = yes; then
1964 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
1965 bash_cv_func_strcoll_broken=no
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1973 #if defined (HAVE_LOCALE_H)
1982 char *deflocale, *defcoll;
1984 #ifdef HAVE_SETLOCALE
1985 deflocale = setlocale(LC_ALL, "");
1986 defcoll = setlocale(LC_COLLATE, "");
1990 /* These two values are taken from tests/glob-test. */
1991 r1 = strcoll("abd", "aXd");
1995 r2 = strcmp("abd", "aXd");
1997 /* These two should both be greater than 0. It is permissible for
1998 a system to return different values, as long as the sign is the
2001 /* Exit with 1 (failure) if these two values are both > 0, since
2002 this tests whether strcoll(3) is broken with respect to strcmp(3)
2003 in the default locale. */
2004 exit (r1 > 0 && r2 > 0);
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2010 bash_cv_func_strcoll_broken=yes
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 bash_cv_func_strcoll_broken=no
2022 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
2023 if test $bash_cv_func_strcoll_broken = yes; then
2024 cat >> confdefs.h <<\EOF
2025 #define STRCOLL_BROKEN 1
2031 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether signal handlers are of type void" >&5
2033 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <sys/types.h>
2047 void (*signal ()) ();
2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2054 bash_cv_void_sighandler=yes
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2059 bash_cv_void_sighandler=no
2063 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
2064 if test $bash_cv_void_sighandler = yes; then
2065 cat >> confdefs.h <<\EOF
2066 #define VOID_SIGHANDLER 1
2071 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2072 echo "configure:2073: checking for TIOCGWINSZ in sys/ioctl.h" >&5
2073 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 #include <sys/types.h>
2080 #include <sys/ioctl.h>
2085 if { (eval echo configure:2086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 bash_cv_tiocgwinsz_in_ioctl=yes
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 bash_cv_tiocgwinsz_in_ioctl=no
2097 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
2098 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
2099 cat >> confdefs.h <<\EOF
2100 #define GWINSZ_IN_SYS_IOCTL 1
2105 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
2106 echo "configure:2107: checking for TIOCSTAT in sys/ioctl.h" >&5
2107 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2114 #include <sys/ioctl.h>
2119 if { (eval echo configure:2120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2121 bash_cv_tiocstat_in_ioctl=yes
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2126 bash_cv_tiocstat_in_ioctl=no
2131 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
2132 if test $bash_cv_tiocstat_in_ioctl = yes; then
2133 cat >> confdefs.h <<\EOF
2134 #define TIOCSTAT_IN_SYS_IOCTL 1
2139 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
2140 echo "configure:2141: checking for FIONREAD in sys/ioctl.h" >&5
2141 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <sys/ioctl.h>
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 bash_cv_fionread_in_ioctl=yes
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2160 bash_cv_fionread_in_ioctl=no
2165 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
2166 if test $bash_cv_fionread_in_ioctl = yes; then
2167 cat >> confdefs.h <<\EOF
2168 #define FIONREAD_IN_SYS_IOCTL 1
2173 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
2174 echo "configure:2175: checking for speed_t in sys/types.h" >&5
2175 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 #include <sys/types.h>
2186 if { (eval echo configure:2187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2188 bash_cv_speed_t_in_sys_types=yes
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 bash_cv_speed_t_in_sys_types=no
2198 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
2199 if test $bash_cv_speed_t_in_sys_types = yes; then
2200 cat >> confdefs.h <<\EOF
2201 #define SPEED_T_IN_SYS_TYPES 1
2206 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
2207 echo "configure:2208: checking for struct winsize in sys/ioctl.h and termios.h" >&5
2208 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2214 #include <sys/types.h>
2215 #include <sys/ioctl.h>
2220 if { (eval echo configure:2221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2222 bash_cv_struct_winsize_header=ioctl_h
2224 echo "configure: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <sys/types.h>
2231 #include <termios.h>
2236 if { (eval echo configure:2237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2238 bash_cv_struct_winsize_header=termios_h
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 bash_cv_struct_winsize_header=other
2251 if test $bash_cv_struct_winsize_header = ioctl_h; then
2252 echo "$ac_t""sys/ioctl.h" 1>&6
2253 cat >> confdefs.h <<\EOF
2254 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
2257 elif test $bash_cv_struct_winsize_header = termios_h; then
2258 echo "$ac_t""termios.h" 1>&6
2259 cat >> confdefs.h <<\EOF
2260 #define STRUCT_WINSIZE_IN_TERMIOS 1
2264 echo "$ac_t""not found" 1>&6
2268 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
2269 echo "configure:2270: checking if struct dirent has a d_ino member" >&5
2270 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 #include <sys/types.h>
2279 #ifdef HAVE_UNISTD_H
2280 # include <unistd.h>
2281 #endif /* HAVE_UNISTD_H */
2282 #if defined(HAVE_DIRENT_H)
2283 # include <dirent.h>
2285 # define dirent direct
2286 # ifdef HAVE_SYS_NDIR_H
2287 # include <sys/ndir.h>
2288 # endif /* SYSNDIR */
2289 # ifdef HAVE_SYS_DIR_H
2290 # include <sys/dir.h>
2291 # endif /* SYSDIR */
2295 #endif /* HAVE_DIRENT_H */
2299 struct dirent d; int z; z = d.d_ino;
2303 if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 bash_cv_dirent_has_dino=yes
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 bash_cv_dirent_has_dino=no
2315 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
2316 if test $bash_cv_dirent_has_dino = yes; then
2317 cat >> confdefs.h <<\EOF
2318 #define STRUCT_DIRENT_HAS_D_INO 1
2324 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
2325 echo "configure:2326: checking if struct dirent has a d_fileno member" >&5
2326 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2334 #include <sys/types.h>
2335 #ifdef HAVE_UNISTD_H
2336 # include <unistd.h>
2337 #endif /* HAVE_UNISTD_H */
2338 #if defined(HAVE_DIRENT_H)
2339 # include <dirent.h>
2341 # define dirent direct
2342 # ifdef HAVE_SYS_NDIR_H
2343 # include <sys/ndir.h>
2344 # endif /* SYSNDIR */
2345 # ifdef HAVE_SYS_DIR_H
2346 # include <sys/dir.h>
2347 # endif /* SYSDIR */
2351 #endif /* HAVE_DIRENT_H */
2355 struct dirent d; int z; z = d.d_fileno;
2359 if { (eval echo configure:2360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2361 bash_cv_dirent_has_d_fileno=yes
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 bash_cv_dirent_has_d_fileno=no
2371 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
2372 if test $bash_cv_dirent_has_d_fileno = yes; then
2373 cat >> confdefs.h <<\EOF
2374 #define STRUCT_DIRENT_HAS_D_FILENO 1
2381 aix*) prefer_curses=yes ;;
2384 if test "X$bash_cv_termcap_lib" = "X"; then
2387 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2388 echo "configure:2389: checking which library has the termcap functions" >&5
2391 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2395 echo "configure:2396: checking for tgetent in -ltermcap" >&5
2396 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 ac_save_LIBS="$LIBS"
2401 LIBS="-ltermcap $LIBS"
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2416 eval "ac_cv_lib_$ac_lib_var=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_lib_$ac_lib_var=no"
2424 LIBS="$ac_save_LIBS"
2427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2428 echo "$ac_t""yes" 1>&6
2429 bash_cv_termcap_lib=libtermcap
2431 echo "$ac_t""no" 1>&6
2432 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
2433 echo "configure:2434: checking for tgetent in -lcurses" >&5
2434 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
2435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 ac_save_LIBS="$LIBS"
2439 LIBS="-lcurses $LIBS"
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 /* Override any gcc2 internal prototype to avoid an error. */
2444 /* We use char because int might match the return type of a gcc2
2445 builtin and then its argument prototype would still apply. */
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2454 eval "ac_cv_lib_$ac_lib_var=yes"
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2459 eval "ac_cv_lib_$ac_lib_var=no"
2462 LIBS="$ac_save_LIBS"
2465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2466 echo "$ac_t""yes" 1>&6
2467 bash_cv_termcap_lib=libcurses
2469 echo "$ac_t""no" 1>&6
2470 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2471 echo "configure:2472: checking for tgetent in -lncurses" >&5
2472 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
2473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 ac_save_LIBS="$LIBS"
2477 LIBS="-lncurses $LIBS"
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 /* Override any gcc2 internal prototype to avoid an error. */
2482 /* We use char because int might match the return type of a gcc2
2483 builtin and then its argument prototype would still apply. */
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492 eval "ac_cv_lib_$ac_lib_var=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 eval "ac_cv_lib_$ac_lib_var=no"
2500 LIBS="$ac_save_LIBS"
2503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 bash_cv_termcap_lib=libncurses
2507 echo "$ac_t""no" 1>&6
2508 bash_cv_termcap_lib=gnutermcap
2517 if test "X$_bash_needmsg" = "Xyes"; then
2518 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2519 echo "configure:2520: checking which library has the termcap functions" >&5
2521 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
2522 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
2523 LDFLAGS="$LDFLAGS -L./lib/termcap"
2524 TERMCAP_LIB="./lib/termcap/libtermcap.a"
2525 TERMCAP_DEP="./lib/termcap/libtermcap.a"
2526 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
2527 TERMCAP_LIB=-ltermcap
2529 elif test $bash_cv_termcap_lib = libncurses; then
2530 TERMCAP_LIB=-lncurses
2533 TERMCAP_LIB=-lcurses
2537 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
2538 TERMCAP_LIB=-ltermcap #default
2542 *cray*) LOCAL_CFLAGS=-DCRAY ;;
2546 isc*) LOCAL_CFLAGS=-Disc386 ;;
2549 # shared library configuration section
2551 # Shared object configuration section. These values are generated by
2552 # ${srcdir}/support/shobj-conf
2554 if test -f ${srcdir}/support/shobj-conf; then
2555 echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6
2556 echo "configure:2557: checking configuration for building shared libraries" >&5
2557 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C ${CC} -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
2570 echo "$ac_t""$SHLIB_STATUS" 1>&6
2592 cat > confcache <<\EOF
2593 # This file is a shell script that caches the results of configure
2594 # tests run on this system so they can be shared between configure
2595 # scripts and configure runs. It is not useful on other systems.
2596 # If it contains results you don't want to keep, you may remove or edit it.
2598 # By default, configure uses ./config.cache as the cache file,
2599 # creating it if it does not exist already. You can give configure
2600 # the --cache-file=FILE option to use a different cache file; that is
2601 # what configure does when it calls configure scripts in
2602 # subdirectories, so they share the cache.
2603 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2604 # config.status only pays attention to the cache file if you give it the
2605 # --recheck option to rerun configure.
2608 # The following way of writing the cache mishandles newlines in values,
2609 # but we know of no workaround that is simple, portable, and efficient.
2610 # So, don't put newlines in cache variables' values.
2611 # Ultrix sh set writes to stderr and can't be redirected directly,
2612 # and sets the high bit in the cache file unless we assign to the vars.
2614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2616 # `set' does not quote correctly, so add quotes (double-quote substitution
2617 # turns \\\\ into \\, and sed turns \\ into \).
2619 -e "s/'/'\\\\''/g" \
2620 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2623 # `set' quotes correctly as required by POSIX, so do not add quotes.
2624 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2627 if cmp -s $cache_file confcache; then
2630 if test -w $cache_file; then
2631 echo "updating cache $cache_file"
2632 cat confcache > $cache_file
2634 echo "not updating unwritable cache $cache_file"
2639 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2642 # Let make expand exec_prefix.
2643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2645 # Any assignment to VPATH causes Sun make to only execute
2646 # the first set of double-colon rules, so remove it if not needed.
2647 # If there is a colon in the path, we need to keep it.
2648 if test "x$srcdir" = x.; then
2649 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2652 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2654 DEFS=-DHAVE_CONFIG_H
2656 # Without the "./", some shells look in PATH for config.status.
2657 : ${CONFIG_STATUS=./config.status}
2659 echo creating $CONFIG_STATUS
2660 rm -f $CONFIG_STATUS
2661 cat > $CONFIG_STATUS <<EOF
2663 # Generated automatically by configure.
2664 # Run this file to recreate the current configuration.
2665 # This directory was configured as follows,
2666 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2668 # $0 $ac_configure_args
2670 # Compiler output produced by configure, useful for debugging
2671 # configure, is in ./config.log if it exists.
2673 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2676 case "\$ac_option" in
2677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2678 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2679 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2680 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2681 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2683 -help | --help | --hel | --he | --h)
2684 echo "\$ac_cs_usage"; exit 0 ;;
2685 *) echo "\$ac_cs_usage"; exit 1 ;;
2689 ac_given_srcdir=$srcdir
2690 ac_given_INSTALL="$INSTALL"
2692 trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile shlib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2694 cat >> $CONFIG_STATUS <<EOF
2696 # Protect against being on the right side of a sed subst in config.status.
2697 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2698 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2702 s%@CFLAGS@%$CFLAGS%g
2703 s%@CPPFLAGS@%$CPPFLAGS%g
2704 s%@CXXFLAGS@%$CXXFLAGS%g
2705 s%@FFLAGS@%$FFLAGS%g
2707 s%@LDFLAGS@%$LDFLAGS%g
2709 s%@exec_prefix@%$exec_prefix%g
2710 s%@prefix@%$prefix%g
2711 s%@program_transform_name@%$program_transform_name%g
2712 s%@bindir@%$bindir%g
2713 s%@sbindir@%$sbindir%g
2714 s%@libexecdir@%$libexecdir%g
2715 s%@datadir@%$datadir%g
2716 s%@sysconfdir@%$sysconfdir%g
2717 s%@sharedstatedir@%$sharedstatedir%g
2718 s%@localstatedir@%$localstatedir%g
2719 s%@libdir@%$libdir%g
2720 s%@includedir@%$includedir%g
2721 s%@oldincludedir@%$oldincludedir%g
2722 s%@infodir@%$infodir%g
2723 s%@mandir@%$mandir%g
2725 s%@host_alias@%$host_alias%g
2726 s%@host_cpu@%$host_cpu%g
2727 s%@host_vendor@%$host_vendor%g
2728 s%@host_os@%$host_os%g
2731 s%@CROSS_COMPILING_FLAG@%$CROSS_COMPILING_FLAG%g
2732 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2733 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2734 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2735 s%@INSTALL_DATA@%$INSTALL_DATA%g
2737 s%@RANLIB@%$RANLIB%g
2738 s%@MAKE_SHELL@%$MAKE_SHELL%g
2739 s%@SHOBJ_CC@%$SHOBJ_CC%g
2740 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
2741 s%@SHOBJ_LD@%$SHOBJ_LD%g
2742 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
2743 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
2744 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
2745 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
2746 s%@SHLIB_STATUS@%$SHLIB_STATUS%g
2747 s%@SHLIB_XLDFLAGS@%$SHLIB_XLDFLAGS%g
2748 s%@SHLIB_LIBSUFF@%$SHLIB_LIBSUFF%g
2749 s%@SHLIB_LIBVERSION@%$SHLIB_LIBVERSION%g
2750 s%@SHLIB_LIBS@%$SHLIB_LIBS%g
2751 s%@BUILD_DIR@%$BUILD_DIR%g
2752 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2753 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2754 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2755 s%@ARFLAGS@%$ARFLAGS%g
2756 s%@LIBVERSION@%$LIBVERSION%g
2757 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2762 cat >> $CONFIG_STATUS <<\EOF
2764 # Split the substitutions into bite-sized pieces for seds with
2765 # small command number limits, like on Digital OSF/1 and HP-UX.
2766 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2767 ac_file=1 # Number of current file.
2768 ac_beg=1 # First line for current file.
2769 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2772 while $ac_more_lines; do
2773 if test $ac_beg -gt 1; then
2774 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2776 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2778 if test ! -s conftest.s$ac_file; then
2780 rm -f conftest.s$ac_file
2782 if test -z "$ac_sed_cmds"; then
2783 ac_sed_cmds="sed -f conftest.s$ac_file"
2785 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2787 ac_file=`expr $ac_file + 1`
2789 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2792 if test -z "$ac_sed_cmds"; then
2797 cat >> $CONFIG_STATUS <<EOF
2799 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile examples/Makefile shlib/Makefile"}
2801 cat >> $CONFIG_STATUS <<\EOF
2802 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2805 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2806 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2807 *) ac_file_in="${ac_file}.in" ;;
2810 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2812 # Remove last slash and all that follows it. Not all systems have dirname.
2813 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2814 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2815 # The file is in a subdirectory.
2816 test ! -d "$ac_dir" && mkdir "$ac_dir"
2817 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2818 # A "../" for each directory in $ac_dir_suffix.
2819 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2821 ac_dir_suffix= ac_dots=
2824 case "$ac_given_srcdir" in
2826 if test -z "$ac_dots"; then top_srcdir=.
2827 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2828 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2830 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2831 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2834 case "$ac_given_INSTALL" in
2835 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2836 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2839 echo creating "$ac_file"
2841 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2843 *Makefile*) ac_comsub="1i\\
2844 # $configure_input" ;;
2848 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2850 s%@configure_input@%$configure_input%g
2851 s%@srcdir@%$srcdir%g
2852 s%@top_srcdir@%$top_srcdir%g
2853 s%@INSTALL@%$INSTALL%g
2854 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2858 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2859 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2861 # ac_d sets the value in "#define NAME VALUE" lines.
2862 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2863 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2866 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2867 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2868 ac_uB='\([ ]\)%\1#\2define\3'
2871 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2872 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2873 ac_eB='$%\1#\2define\3'
2877 if test "${CONFIG_HEADERS+set}" != set; then
2879 cat >> $CONFIG_STATUS <<EOF
2880 CONFIG_HEADERS="config.h"
2882 cat >> $CONFIG_STATUS <<\EOF
2884 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2885 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2887 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2888 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2889 *) ac_file_in="${ac_file}.in" ;;
2892 echo creating $ac_file
2894 rm -f conftest.frag conftest.in conftest.out
2895 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2896 cat $ac_file_inputs > conftest.in
2900 # Transform confdefs.h into a sed script conftest.vals that substitutes
2901 # the proper values into config.h.in to produce config.h. And first:
2902 # Protect against being on the right side of a sed subst in config.status.
2903 # Protect against being in an unquoted here document in config.status.
2905 cat > conftest.hdr <<\EOF
2908 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2912 sed -n -f conftest.hdr confdefs.h > conftest.vals
2915 # This sed command replaces #undef with comments. This is necessary, for
2916 # example, in the case of _POSIX_SOURCE, which is predefined and required
2917 # on some systems where configure will not decide to define it.
2918 cat >> conftest.vals <<\EOF
2919 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2922 # Break up conftest.vals because some shells have a limit on
2923 # the size of here documents, and old seds have small limits too.
2928 ac_lines=`grep -c . conftest.vals`
2929 # grep -c gives empty output for an empty file on some AIX systems.
2930 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2931 # Write a limited-size here document to conftest.frag.
2932 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2933 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2935 sed -f conftest.frag conftest.in > conftest.out
2937 mv conftest.out conftest.in
2939 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2941 mv conftest.tail conftest.vals
2945 cat >> $CONFIG_STATUS <<\EOF
2946 rm -f conftest.frag conftest.h
2947 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2948 cat conftest.in >> conftest.h
2950 if cmp -s $ac_file conftest.h 2>/dev/null; then
2951 echo "$ac_file is unchanged"
2954 # Remove last slash and all that follows it. Not all systems have dirname.
2955 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2956 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2957 # The file is in a subdirectory.
2958 test ! -d "$ac_dir" && mkdir "$ac_dir"
2961 mv conftest.h $ac_file
2966 cat >> $CONFIG_STATUS <<EOF
2969 cat >> $CONFIG_STATUS <<\EOF
2971 # Makefile uses this timestamp file to record whether config.h is up to date.
2976 chmod +x $CONFIG_STATUS
2977 rm -fr confdefs* $ac_clean_files
2978 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1