3 # From configure.in for Readline 4.1, version 2.22, from autoconf version 2.13
106 # Guess values for system-dependent variables and create Makefiles.
107 # Generated automatically using autoconf version 2.13
108 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
110 # This configure script is free software; the Free Software Foundation
111 # gives unlimited permission to copy, distribute and modify it.
115 ac_default_prefix
=/usr
/local
116 # Any additions from configure.in:
118 --with-curses use the curses library instead of the termcap library"
120 # Initialize some variables set by options.
121 # The variables have the same names as the options, with
122 # dashes changed to underlines.
124 cache_file
=.
/config.cache
133 program_transform_name
=s
,x
,x
,
141 bindir
='${exec_prefix}/bin'
142 sbindir
='${exec_prefix}/sbin'
143 libexecdir
='${exec_prefix}/libexec'
144 datadir
='${prefix}/share'
145 sysconfdir
='${prefix}/etc'
146 sharedstatedir
='${prefix}/com'
147 localstatedir
='${prefix}/var'
148 libdir
='${exec_prefix}/lib'
149 includedir
='${prefix}/include'
150 oldincludedir
='/usr/include'
151 infodir
='${prefix}/info'
152 mandir
='${prefix}/man'
154 # Initialize some other variables.
157 SHELL
=${CONFIG_SHELL-/bin/sh}
158 # Maximum number of lines to put in a shell here document.
165 # If the previous option needs an argument, assign it.
166 if test -n "$ac_prev"; then
167 eval "$ac_prev=\$ac_option"
173 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
177 # Accept the important Cygnus configure options, so we can diagnose typos.
181 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
183 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
184 bindir
="$ac_optarg" ;;
186 -build |
--build |
--buil |
--bui |
--bu)
188 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
189 build
="$ac_optarg" ;;
191 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
192 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
193 ac_prev
=cache_file
;;
194 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
195 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
196 cache_file
="$ac_optarg" ;;
198 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
200 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
202 datadir
="$ac_optarg" ;;
204 -disable-* |
--disable-*)
205 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
206 # Reject names that are not valid shell variable names.
207 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
208 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
210 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
211 eval "enable_${ac_feature}=no" ;;
213 -enable-* |
--enable-*)
214 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
215 # Reject names that are not valid shell variable names.
216 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
217 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
219 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
224 eval "enable_${ac_feature}='$ac_optarg'" ;;
226 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
227 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
228 |
--exec |
--exe |
--ex)
229 ac_prev
=exec_prefix
;;
230 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
231 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
232 |
--exec=* |
--exe=* |
--ex=*)
233 exec_prefix
="$ac_optarg" ;;
235 -gas |
--gas |
--ga |
--g)
236 # Obsolete; use --with-gas.
239 -help |
--help |
--hel |
--he)
240 # Omit some internal or obsolete options to make the list less imposing.
241 # This message is too long to be a string in the A/UX 3.1 sh.
243 Usage: configure [options] [host]
244 Options: [defaults in brackets after descriptions]
246 --cache-file=FILE cache test results in FILE
247 --help print this message
248 --no-create do not create output files
249 --quiet, --silent do not print \`checking...' messages
250 --version print the version of autoconf that created configure
251 Directory and file names:
252 --prefix=PREFIX install architecture-independent files in PREFIX
254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
256 --bindir=DIR user executables in DIR [EPREFIX/bin]
257 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
258 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
259 --datadir=DIR read-only architecture-independent data in DIR
261 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
262 --sharedstatedir=DIR modifiable architecture-independent data in DIR
264 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
265 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
266 --includedir=DIR C header files in DIR [PREFIX/include]
267 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
268 --infodir=DIR info documentation in DIR [PREFIX/info]
269 --mandir=DIR man documentation in DIR [PREFIX/man]
270 --srcdir=DIR find the sources in DIR [configure dir or ..]
271 --program-prefix=PREFIX prepend PREFIX to installed program names
272 --program-suffix=SUFFIX append SUFFIX to installed program names
273 --program-transform-name=PROGRAM
274 run sed PROGRAM on installed program names
278 --build=BUILD configure for building on BUILD [BUILD=HOST]
279 --host=HOST configure for HOST [guessed]
280 --target=TARGET configure for TARGET [TARGET=HOST]
281 Features and packages:
282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
284 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
285 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
286 --x-includes=DIR X include files are in DIR
287 --x-libraries=DIR X library files are in DIR
289 if test -n "$ac_help"; then
290 echo "--enable and --with options recognized:$ac_help"
294 -host |
--host |
--hos |
--ho)
296 -host=* |
--host=* |
--hos=* |
--ho=*)
299 -includedir |
--includedir |
--includedi |
--included |
--include \
300 |
--includ |
--inclu |
--incl |
--inc)
301 ac_prev
=includedir
;;
302 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
303 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
304 includedir
="$ac_optarg" ;;
306 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
308 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
309 infodir
="$ac_optarg" ;;
311 -libdir |
--libdir |
--libdi |
--libd)
313 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
314 libdir
="$ac_optarg" ;;
316 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
317 |
--libexe |
--libex |
--libe)
318 ac_prev
=libexecdir
;;
319 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
320 |
--libexe=* |
--libex=* |
--libe=*)
321 libexecdir
="$ac_optarg" ;;
323 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
324 |
--localstate |
--localstat |
--localsta |
--localst \
325 |
--locals |
--local |
--loca |
--loc |
--lo)
326 ac_prev
=localstatedir
;;
327 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
328 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
329 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
330 localstatedir
="$ac_optarg" ;;
332 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
334 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
335 mandir
="$ac_optarg" ;;
338 # Obsolete; use --without-fp.
341 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
345 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
346 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
349 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
350 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
351 |
--oldin |
--oldi |
--old |
--ol |
--o)
352 ac_prev
=oldincludedir
;;
353 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
354 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
355 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
356 oldincludedir
="$ac_optarg" ;;
358 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
360 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
361 prefix
="$ac_optarg" ;;
363 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
364 |
--program-pre |
--program-pr |
--program-p)
365 ac_prev
=program_prefix
;;
366 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
367 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
368 program_prefix
="$ac_optarg" ;;
370 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
371 |
--program-suf |
--program-su |
--program-s)
372 ac_prev
=program_suffix
;;
373 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
374 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
375 program_suffix
="$ac_optarg" ;;
377 -program-transform-name |
--program-transform-name \
378 |
--program-transform-nam |
--program-transform-na \
379 |
--program-transform-n |
--program-transform- \
380 |
--program-transform |
--program-transfor \
381 |
--program-transfo |
--program-transf \
382 |
--program-trans |
--program-tran \
383 |
--progr-tra |
--program-tr |
--program-t)
384 ac_prev
=program_transform_name
;;
385 -program-transform-name=* |
--program-transform-name=* \
386 |
--program-transform-nam=* |
--program-transform-na=* \
387 |
--program-transform-n=* |
--program-transform-=* \
388 |
--program-transform=* |
--program-transfor=* \
389 |
--program-transfo=* |
--program-transf=* \
390 |
--program-trans=* |
--program-tran=* \
391 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
392 program_transform_name
="$ac_optarg" ;;
394 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
395 |
-silent |
--silent |
--silen |
--sile |
--sil)
398 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
400 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
402 sbindir
="$ac_optarg" ;;
404 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
405 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
406 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
408 ac_prev
=sharedstatedir
;;
409 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
410 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
411 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
413 sharedstatedir
="$ac_optarg" ;;
415 -site |
--site |
--sit)
417 -site=* |
--site=* |
--sit=*)
420 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
422 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
423 srcdir
="$ac_optarg" ;;
425 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
426 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
427 ac_prev
=sysconfdir
;;
428 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
429 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
430 sysconfdir
="$ac_optarg" ;;
432 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
434 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
435 target
="$ac_optarg" ;;
437 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
440 -version |
--version |
--versio |
--versi |
--vers)
441 echo "configure generated by autoconf version 2.13"
445 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
446 # Reject names that are not valid shell variable names.
447 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
448 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
450 ac_package
=`echo $ac_package| sed 's/-/_/g'`
455 eval "with_${ac_package}='$ac_optarg'" ;;
457 -without-* |
--without-*)
458 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
459 # Reject names that are not valid shell variable names.
460 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
461 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
463 ac_package
=`echo $ac_package| sed 's/-/_/g'`
464 eval "with_${ac_package}=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
471 |
--x-incl |
--x-inc |
--x-in |
--x-i)
472 ac_prev
=x_includes
;;
473 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
474 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
475 x_includes
="$ac_optarg" ;;
477 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
478 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
479 ac_prev
=x_libraries
;;
480 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
481 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
482 x_libraries
="$ac_optarg" ;;
484 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
488 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
489 echo "configure: warning: $ac_option: invalid host type" 1>&2
491 if test "x$nonopt" != xNONE
; then
492 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
500 if test -n "$ac_prev"; then
501 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
506 # File descriptor usage:
509 # 2 errors and warnings
510 # 3 some systems may open it to /dev/tty
511 # 4 used on the Kubota Titan
512 # 6 checking for... messages and results
513 # 5 compiler messages saved in config.log
514 if test "$silent" = yes; then
522 This file contains any messages produced by compilers while
523 running configure, to aid debugging if configure makes a mistake.
526 # Strip out --no-create and --no-recursion so they do not pile up.
527 # Also quote any args containing shell metacharacters.
532 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
533 |
--no-cr |
--no-c) ;;
534 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
535 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
536 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
537 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
538 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
543 # Only set these to C if already set. These must not be set unconditionally
544 # because not all systems understand e.g. LANG=C (notably SCO).
545 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
546 # Non-C LC_CTYPE values break the ctype check.
547 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
548 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
549 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
550 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
553 rm -rf conftest
* confdefs.h
554 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
557 # A filename unique to this package, relative to the directory that
558 # configure is in, which we can look for to find out if srcdir is correct.
559 ac_unique_file
=readline.h
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted
=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
569 if test ! -r $srcdir/$ac_unique_file; then
573 ac_srcdir_defaulted
=no
575 if test ! -r $srcdir/$ac_unique_file; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
579 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
582 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
584 # Prefer explicitly selected file to automatically selected ones.
585 if test -z "$CONFIG_SITE"; then
586 if test "x$prefix" != xNONE
; then
587 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
589 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
592 for ac_site_file
in $CONFIG_SITE; do
593 if test -r "$ac_site_file"; then
594 echo "loading site script $ac_site_file"
599 if test -r "$cache_file"; then
600 echo "loading cache $cache_file"
603 echo "creating cache $cache_file"
608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
609 ac_cpp
='$CPP $CPPFLAGS'
610 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
611 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
612 cross_compiling
=$ac_cv_prog_cc_cross
616 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
617 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
618 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
625 ac_n
= ac_c
='\c' ac_t
=
635 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
636 if test -f $ac_dir/install-sh
; then
638 ac_install_sh
="$ac_aux_dir/install-sh -c"
640 elif test -f $ac_dir/install.sh
; then
642 ac_install_sh
="$ac_aux_dir/install.sh -c"
646 if test -z "$ac_aux_dir"; then
647 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
649 ac_config_guess
=$ac_aux_dir/config.guess
650 ac_config_sub
=$ac_aux_dir/config.sub
651 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
654 # Make sure we can run config.sub.
655 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
656 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
659 echo $ac_n "checking host system type""... $ac_c" 1>&6
660 echo "configure:661: checking host system type" >&5
663 case "$host_alias" in
667 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
670 *) host_alias
=$nonopt ;;
674 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
675 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo "$ac_t""$host" 1>&6
684 # Check whether --with-curses or --without-curses was given.
685 if test "${with_curses+set}" = set; then
686 withval
="$with_curses"
691 if test "$opt_curses" = "yes"; then
695 # We want these before the checks, so the checks can modify their values.
696 test -z "$CFLAGS" && CFLAGS
=-g auto_cflags
=1
698 # Extract the first word of "gcc", so it can be a program name with args.
699 set dummy gcc
; ac_word
=$2
700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701 echo "configure:702: checking for $ac_word" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 if test -n "$CC"; then
706 ac_cv_prog_CC
="$CC" # Let the user override the test.
708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
710 for ac_dir
in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir
=.
712 if test -f $ac_dir/$ac_word; then
721 if test -n "$CC"; then
722 echo "$ac_t""$CC" 1>&6
724 echo "$ac_t""no" 1>&6
727 if test -z "$CC"; then
728 # Extract the first word of "cc", so it can be a program name with args.
729 set dummy cc
; ac_word
=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 echo "configure:732: checking for $ac_word" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 if test -n "$CC"; then
736 ac_cv_prog_CC
="$CC" # Let the user override the test.
738 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
741 for ac_dir
in $ac_dummy; do
742 test -z "$ac_dir" && ac_dir
=.
743 if test -f $ac_dir/$ac_word; then
744 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
753 if test $ac_prog_rejected = yes; then
754 # We found a bogon in the path, so make sure we never use it.
755 set dummy
$ac_cv_prog_CC
757 if test $# -gt 0; then
758 # We chose a different compiler from the bogus one.
759 # However, it has the same basename, so the bogon will be chosen
760 # first if we set CC to just the basename; use the full file name.
762 set dummy
"$ac_dir/$ac_word" "$@"
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
779 # Extract the first word of "cl", so it can be a program name with args.
780 set dummy cl
; ac_word
=$2
781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
782 echo "configure:783: checking for $ac_word" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 if test -n "$CC"; then
787 ac_cv_prog_CC
="$CC" # Let the user override the test.
789 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
791 for ac_dir
in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir
=.
793 if test -f $ac_dir/$ac_word; then
802 if test -n "$CC"; then
803 echo "$ac_t""$CC" 1>&6
805 echo "$ac_t""no" 1>&6
810 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
813 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
814 echo "configure:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
817 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
818 ac_cpp
='$CPP $CPPFLAGS'
819 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
820 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
821 cross_compiling
=$ac_cv_prog_cc_cross
823 cat > conftest.
$ac_ext << EOF
825 #line 826 "configure"
826 #include "confdefs.h"
830 if { (eval echo configure
:831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
831 ac_cv_prog_cc_works
=yes
832 # If we can't run a trivial program, we are probably using a cross compiler.
833 if (.
/conftest
; exit) 2>/dev
/null
; then
834 ac_cv_prog_cc_cross
=no
836 ac_cv_prog_cc_cross
=yes
839 echo "configure: failed program was:" >&5
840 cat conftest.
$ac_ext >&5
841 ac_cv_prog_cc_works
=no
845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846 ac_cpp
='$CPP $CPPFLAGS'
847 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849 cross_compiling
=$ac_cv_prog_cc_cross
851 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
852 if test $ac_cv_prog_cc_works = no
; then
853 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
855 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
856 echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
857 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
858 cross_compiling
=$ac_cv_prog_cc_cross
860 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
861 echo "configure:862: checking whether we are using GNU C" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 cat > conftest.c
<<EOF
870 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
877 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
879 if test $ac_cv_prog_gcc = yes; then
885 ac_test_CFLAGS
="${CFLAGS+set}"
886 ac_save_CFLAGS
="$CFLAGS"
888 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
889 echo "configure:890: checking whether ${CC-cc} accepts -g" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 echo 'void f(){}' > conftest.c
894 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
903 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
904 if test "$ac_test_CFLAGS" = set; then
905 CFLAGS
="$ac_save_CFLAGS"
906 elif test $ac_cv_prog_cc_g = yes; then
907 if test "$GCC" = yes; then
913 if test "$GCC" = yes; then
920 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
921 echo "configure:922: checking how to run the C preprocessor" >&5
922 # On Suns, sometimes $CPP names a directory.
923 if test -n "$CPP" && test -d "$CPP"; then
926 if test -z "$CPP"; then
927 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 # This must be in double quotes, not single quotes, because CPP may get
931 # substituted into the Makefile and "${CC-cc}" will confuse make.
933 # On the NeXT, cc -E runs the code through the compiler's parser,
934 # not just through cpp.
935 cat > conftest.
$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
941 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
942 { (eval echo configure
:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
943 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
944 if test -z "$ac_err"; then
948 echo "configure: failed program was:" >&5
949 cat conftest.
$ac_ext >&5
951 CPP
="${CC-cc} -E -traditional-cpp"
952 cat > conftest.
$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
958 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
959 { (eval echo configure
:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
960 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
961 if test -z "$ac_err"; then
965 echo "configure: failed program was:" >&5
966 cat conftest.
$ac_ext >&5
968 CPP
="${CC-cc} -nologo -E"
969 cat > conftest.
$ac_ext <<EOF
970 #line 971 "configure"
971 #include "confdefs.h"
975 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
976 { (eval echo configure
:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
977 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
978 if test -z "$ac_err"; then
982 echo "configure: failed program was:" >&5
983 cat conftest.
$ac_ext >&5
992 ac_cv_prog_CPP
="$CPP"
994 CPP
="$ac_cv_prog_CPP"
996 ac_cv_prog_CPP
="$CPP"
998 echo "$ac_t""$CPP" 1>&6
1000 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1001 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1002 echo "configure:1003: checking for minix/config.h" >&5
1003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftest.
$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1009 #include <minix/config.h>
1011 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1012 { (eval echo configure
:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1013 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1014 if test -z "$ac_err"; then
1016 eval "ac_cv_header_$ac_safe=yes"
1019 echo "configure: failed program was:" >&5
1020 cat conftest.
$ac_ext >&5
1022 eval "ac_cv_header_$ac_safe=no"
1026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1027 echo "$ac_t""yes" 1>&6
1030 echo "$ac_t""no" 1>&6
1034 if test "$MINIX" = yes; then
1035 cat >> confdefs.h
<<\EOF
1036 #define _POSIX_SOURCE 1
1039 cat >> confdefs.h
<<\EOF
1040 #define _POSIX_1_SOURCE 2
1043 cat >> confdefs.h
<<\EOF
1051 if test "x$cross_compiling" = "xyes"; then
1054 cross_cache
=${srcdir}/cross-build
/cygwin.cache
1055 if test -r "${cross_cache}"; then
1056 echo "loading cross-build cache file ${cross_cache}"
1059 LOCAL_CFLAGS
="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
1062 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
1067 if test "x$cross_compiling" = "xyes"; then
1068 CROSS_COMPILING_FLAG
=-DCROSS_COMPILING
1070 CROSS_COMPILING_FLAG
=
1074 if test -z "$CC_FOR_BUILD"; then
1075 if test "x$cross_compiling" = "xno"; then
1076 CC_FOR_BUILD
='$(CC)'
1084 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
1085 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS
="$CFLAGS -O"
1087 if test $ac_cv_prog_gcc = yes; then
1088 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether ${CC-cc} needs -traditional" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 ac_pattern
="Autoconf.*'x'"
1094 cat > conftest.
$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1101 egrep "$ac_pattern" >/dev
/null
2>&1; then
1103 ac_cv_prog_gcc_traditional
=yes
1106 ac_cv_prog_gcc_traditional
=no
1111 if test $ac_cv_prog_gcc_traditional = no
; then
1112 cat > conftest.
$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1119 egrep "$ac_pattern" >/dev
/null
2>&1; then
1121 ac_cv_prog_gcc_traditional
=yes
1128 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1129 if test $ac_cv_prog_gcc_traditional = yes; then
1130 CC
="$CC -traditional"
1134 # Find a good install program. We prefer a C program (faster),
1135 # so one script is as good as another. But avoid the broken or
1136 # incompatible versions:
1137 # SysV /etc/install, /usr/sbin/install
1138 # SunOS /usr/etc/install
1139 # IRIX /sbin/install
1141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1144 # ./install, which can be erroneously created by make from ./install.sh.
1145 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1146 echo "configure:1147: checking for a BSD compatible install" >&5
1147 if test -z "$INSTALL"; then
1148 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1152 for ac_dir
in $PATH; do
1153 # Account for people who put trailing slashes in PATH elements.
1155 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1157 # OSF1 and SCO ODT 3.0 have their own names for install.
1158 # Don't use installbsd from OSF since it installs stuff as root
1160 for ac_prog
in ginstall scoinst
install; do
1161 if test -f $ac_dir/$ac_prog; then
1162 if test $ac_prog = install &&
1163 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1164 # AIX install. It has an incompatible calling convention.
1167 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1178 if test "${ac_cv_path_install+set}" = set; then
1179 INSTALL
="$ac_cv_path_install"
1181 # As a last resort, use the slow shell script. We don't cache a
1182 # path for INSTALL within a source directory, because that will
1183 # break other packages using the cache if that directory is
1184 # removed, or if the path is relative.
1185 INSTALL
="$ac_install_sh"
1188 echo "$ac_t""$INSTALL" 1>&6
1190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1191 # It thinks the first close brace ends the variable substitution.
1192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1196 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1198 # Extract the first word of "ar", so it can be a program name with args.
1199 set dummy
ar; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$AR"; then
1206 ac_cv_prog_AR
="$AR" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1221 if test -n "$AR"; then
1222 echo "$ac_t""$AR" 1>&6
1224 echo "$ac_t""no" 1>&6
1227 test -n "$ARFLAGS" || ARFLAGS
="cr"
1228 # Extract the first word of "ranlib", so it can be a program name with args.
1229 set dummy ranlib
; ac_word
=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 if test -n "$RANLIB"; then
1236 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1240 for ac_dir
in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir
=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_RANLIB
="ranlib"
1248 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1251 RANLIB
="$ac_cv_prog_RANLIB"
1252 if test -n "$RANLIB"; then
1253 echo "$ac_t""$RANLIB" 1>&6
1255 echo "$ac_t""no" 1>&6
1262 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1263 echo "configure:1264: checking return type of signal handlers" >&5
1264 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.
$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1270 #include <sys/types.h>
1276 extern "C" void (*signal (int, void (*)(int)))(int);
1278 void (*signal ()) ();
1285 if { (eval echo configure
:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1287 ac_cv_type_signal
=void
1289 echo "configure: failed program was:" >&5
1290 cat conftest.
$ac_ext >&5
1292 ac_cv_type_signal
=int
1297 echo "$ac_t""$ac_cv_type_signal" 1>&6
1298 cat >> confdefs.h
<<EOF
1299 #define RETSIGTYPE $ac_cv_type_signal
1304 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether stat file-mode macros are broken" >&5
1306 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 cat > conftest.
$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 #include <sys/types.h>
1313 #include <sys/stat.h>
1315 #if defined(S_ISBLK) && defined(S_IFDIR)
1316 # if S_ISBLK (S_IFDIR)
1321 #if defined(S_ISBLK) && defined(S_IFCHR)
1322 # if S_ISBLK (S_IFCHR)
1327 #if defined(S_ISLNK) && defined(S_IFREG)
1328 # if S_ISLNK (S_IFREG)
1333 #if defined(S_ISSOCK) && defined(S_IFREG)
1334 # if S_ISSOCK (S_IFREG)
1340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1341 egrep "You lose" >/dev
/null
2>&1; then
1343 ac_cv_header_stat_broken
=yes
1346 ac_cv_header_stat_broken
=no
1352 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1353 if test $ac_cv_header_stat_broken = yes; then
1354 cat >> confdefs.h
<<\EOF
1355 #define STAT_MACROS_BROKEN 1
1361 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1363 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1364 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_hdr that defines DIR" >&5
1366 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 cat > conftest.
$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1372 #include <sys/types.h>
1378 if { (eval echo configure
:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380 eval "ac_cv_header_dirent_$ac_safe=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.
$ac_ext >&5
1385 eval "ac_cv_header_dirent_$ac_safe=no"
1389 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1390 echo "$ac_t""yes" 1>&6
1391 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1392 cat >> confdefs.h
<<EOF
1393 #define $ac_tr_hdr 1
1395 ac_header_dirent
=$ac_hdr; break
1397 echo "$ac_t""no" 1>&6
1400 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1401 if test $ac_header_dirent = dirent.h
; then
1402 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1403 echo "configure:1404: checking for opendir in -ldir" >&5
1404 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 ac_save_LIBS
="$LIBS"
1410 cat > conftest.
$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1413 /* Override any gcc2 internal prototype to avoid an error. */
1414 /* We use char because int might match the return type of a gcc2
1415 builtin and then its argument prototype would still apply. */
1422 if { (eval echo configure
:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1424 eval "ac_cv_lib_$ac_lib_var=yes"
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1429 eval "ac_cv_lib_$ac_lib_var=no"
1432 LIBS
="$ac_save_LIBS"
1435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1436 echo "$ac_t""yes" 1>&6
1439 echo "$ac_t""no" 1>&6
1443 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1444 echo "configure:1445: checking for opendir in -lx" >&5
1445 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_save_LIBS
="$LIBS"
1451 cat > conftest.
$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1454 /* Override any gcc2 internal prototype to avoid an error. */
1455 /* We use char because int might match the return type of a gcc2
1456 builtin and then its argument prototype would still apply. */
1463 if { (eval echo configure
:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1465 eval "ac_cv_lib_$ac_lib_var=yes"
1467 echo "configure: failed program was:" >&5
1468 cat conftest.
$ac_ext >&5
1470 eval "ac_cv_lib_$ac_lib_var=no"
1473 LIBS
="$ac_save_LIBS"
1476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1477 echo "$ac_t""yes" 1>&6
1480 echo "$ac_t""no" 1>&6
1486 for ac_func
in lstat memmove putenv
select setenv setlocale \
1487 strcasecmp tcgetattr
1489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1490 echo "configure:1491: checking for $ac_func" >&5
1491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 /* System header to define __stub macros and hopefully few prototypes,
1498 which can conflict with char $ac_func(); below. */
1500 /* Override any gcc2 internal prototype to avoid an error. */
1501 /* We use char because int might match the return type of a gcc2
1502 builtin and then its argument prototype would still apply. */
1507 /* The GNU C library defines this for functions which it implements
1508 to always fail with ENOSYS. Some functions are actually named
1509 something starting with __ and the normal name is an alias. */
1510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1518 if { (eval echo configure
:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1520 eval "ac_cv_func_$ac_func=yes"
1522 echo "configure: failed program was:" >&5
1523 cat conftest.
$ac_ext >&5
1525 eval "ac_cv_func_$ac_func=no"
1530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1531 echo "$ac_t""yes" 1>&6
1532 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1533 cat >> confdefs.h
<<EOF
1534 #define $ac_tr_func 1
1538 echo "$ac_t""no" 1>&6
1543 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1544 echo "configure:1545: checking for working strcoll" >&5
1545 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 if test "$cross_compiling" = yes; then
1549 ac_cv_func_strcoll_works
=no
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1557 exit (strcoll ("abc", "def") >= 0 ||
1558 strcoll ("ABC", "DEF") >= 0 ||
1559 strcoll ("123", "456") >= 0);
1562 if { (eval echo configure
:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1564 ac_cv_func_strcoll_works
=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1569 ac_cv_func_strcoll_works
=no
1576 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1577 if test $ac_cv_func_strcoll_works = yes; then
1578 cat >> confdefs.h
<<\EOF
1579 #define HAVE_STRCOLL 1
1585 for ac_hdr
in unistd.h stdlib.h varargs.h stdarg.h string.h \
1586 sys
/ptem.h sys
/pte.h sys
/stream.h sys
/select.h \
1587 termcap.h termios.h termio.h sys
/file.h locale.h
1589 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure
:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618 cat >> confdefs.h
<<EOF
1619 #define $ac_tr_hdr 1
1623 echo "$ac_t""no" 1>&6
1629 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
1630 echo "configure:1631: checking for type of signal functions" >&5
1631 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1642 struct sigaction sa;
1643 sigemptyset(&ss); sigsuspend(&ss);
1644 sigaction(SIGINT, &sa, (struct sigaction *) 0);
1645 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
1649 if { (eval echo configure
:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1651 bash_cv_signal_vintage
=posix
1653 echo "configure: failed program was:" >&5
1654 cat conftest.
$ac_ext >&5
1657 cat > conftest.
$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1663 int mask = sigmask(SIGINT);
1664 sigsetmask(mask); sigblock(mask); sigpause(mask);
1668 if { (eval echo configure
:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1670 bash_cv_signal_vintage
=4.2bsd
1672 echo "configure: failed program was:" >&5
1673 cat conftest.
$ac_ext >&5
1676 cat > conftest.
$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1681 RETSIGTYPE foo() { }
1684 int mask = sigmask(SIGINT);
1685 sigset(SIGINT, foo); sigrelse(SIGINT);
1686 sighold(SIGINT); sigpause(SIGINT);
1690 if { (eval echo configure
:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1692 bash_cv_signal_vintage
=svr3
1694 echo "configure: failed program was:" >&5
1695 cat conftest.
$ac_ext >&5
1697 bash_cv_signal_vintage
=v7
1710 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
1711 if test "$bash_cv_signal_vintage" = posix
; then
1712 cat >> confdefs.h
<<\EOF
1713 #define HAVE_POSIX_SIGNALS 1
1716 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
1717 cat >> confdefs.h
<<\EOF
1718 #define HAVE_BSD_SIGNALS 1
1721 elif test "$bash_cv_signal_vintage" = svr3
; then
1722 cat >> confdefs.h
<<\EOF
1723 #define HAVE_USG_SIGHOLD 1
1730 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
1731 echo "configure:1732: checking if signal handlers must be reinstalled when invoked" >&5
1732 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 if test "$cross_compiling" = yes; then
1736 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
1737 bash_cv_must_reinstall_sighandlers
=no
1740 cat > conftest.
$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1745 #ifdef HAVE_UNISTD_H
1749 typedef RETSIGTYPE sigfunc();
1753 #ifdef HAVE_POSIX_SIGNALS
1755 set_signal_handler(sig, handler)
1759 struct sigaction act, oact;
1760 act.sa_handler = handler;
1762 sigemptyset (&act.sa_mask);
1763 sigemptyset (&oact.sa_mask);
1764 sigaction (sig, &act, &oact);
1765 return (oact.sa_handler);
1768 #define set_signal_handler(s, h) signal(s, h)
1781 set_signal_handler(SIGINT, sigint);
1782 kill((int)getpid(), SIGINT);
1783 kill((int)getpid(), SIGINT);
1788 if { (eval echo configure
:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1790 bash_cv_must_reinstall_sighandlers
=no
1792 echo "configure: failed program was:" >&5
1793 cat conftest.
$ac_ext >&5
1795 bash_cv_must_reinstall_sighandlers
=yes
1802 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
1803 if test $bash_cv_must_reinstall_sighandlers = yes; then
1804 cat >> confdefs.h
<<\EOF
1805 #define MUST_REINSTALL_SIGHANDLERS 1
1812 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
1813 echo "configure:1814: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
1814 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 if test "$cross_compiling" = yes; then
1818 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
1819 bash_cv_func_sigsetjmp
=missing
1822 cat > conftest.
$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1826 #ifdef HAVE_UNISTD_H
1829 #include <sys/types.h>
1835 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
1846 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
1847 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
1850 code = sigsetjmp(xx, 1);
1852 exit(0); /* could get sigmask and compare to oset here. */
1855 sigaddset(&set, SIGINT);
1856 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
1858 /* and siglongjmp */
1864 if { (eval echo configure
:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1866 bash_cv_func_sigsetjmp
=present
1868 echo "configure: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1871 bash_cv_func_sigsetjmp
=missing
1878 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
1879 if test $bash_cv_func_sigsetjmp = present
; then
1880 cat >> confdefs.h
<<\EOF
1881 #define HAVE_POSIX_SIGSETJMP 1
1886 echo $ac_n "checking for lstat""... $ac_c" 1>&6
1887 echo "configure:1888: checking for lstat" >&5
1888 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1895 #include <sys/types.h>
1896 #include <sys/stat.h>
1899 lstat(".",(struct stat *)0);
1902 if { (eval echo configure
:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1904 bash_cv_func_lstat
=yes
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1909 bash_cv_func_lstat
=no
1914 echo "$ac_t""$bash_cv_func_lstat" 1>&6
1915 if test $bash_cv_func_lstat = yes; then
1916 cat >> confdefs.h
<<\EOF
1917 #define HAVE_LSTAT 1
1922 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
1923 echo "configure:1924: checking whether programs are able to redeclare getpw functions" >&5
1924 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 cat > conftest.
$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <sys/types.h>
1932 extern struct passwd *getpwent();
1933 extern struct passwd *getpwuid();
1934 extern struct passwd *getpwnam();
1936 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
1939 if { (eval echo configure
:1940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1941 bash_cv_can_redecl_getpw
=yes
1943 echo "configure: failed program was:" >&5
1944 cat conftest.
$ac_ext >&5
1946 bash_cv_can_redecl_getpw
=no
1951 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
1952 if test $bash_cv_can_redecl_getpw = no
; then
1953 cat >> confdefs.h
<<\EOF
1954 #define HAVE_GETPW_DECLS 1
1960 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
1961 echo "configure:1962: checking whether or not strcoll and strcmp differ" >&5
1962 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 if test "$cross_compiling" = yes; then
1966 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
1967 bash_cv_func_strcoll_broken
=no
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1975 #if defined (HAVE_LOCALE_H)
1984 char *deflocale, *defcoll;
1986 #ifdef HAVE_SETLOCALE
1987 deflocale = setlocale(LC_ALL, "");
1988 defcoll = setlocale(LC_COLLATE, "");
1992 /* These two values are taken from tests/glob-test. */
1993 r1 = strcoll("abd", "aXd");
1997 r2 = strcmp("abd", "aXd");
1999 /* These two should both be greater than 0. It is permissible for
2000 a system to return different values, as long as the sign is the
2003 /* Exit with 1 (failure) if these two values are both > 0, since
2004 this tests whether strcoll(3) is broken with respect to strcmp(3)
2005 in the default locale. */
2006 exit (r1 > 0 && r2 > 0);
2010 if { (eval echo configure
:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2012 bash_cv_func_strcoll_broken
=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 bash_cv_func_strcoll_broken
=no
2024 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
2025 if test $bash_cv_func_strcoll_broken = yes; then
2026 cat >> confdefs.h
<<\EOF
2027 #define STRCOLL_BROKEN 1
2033 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether signal handlers are of type void" >&5
2035 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041 #include <sys/types.h>
2049 void (*signal ()) ();
2054 if { (eval echo configure
:2055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2056 bash_cv_void_sighandler
=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 bash_cv_void_sighandler
=no
2065 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
2066 if test $bash_cv_void_sighandler = yes; then
2067 cat >> confdefs.h
<<\EOF
2068 #define VOID_SIGHANDLER 1
2073 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2074 echo "configure:2075: checking for TIOCGWINSZ in sys/ioctl.h" >&5
2075 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 #include <sys/types.h>
2082 #include <sys/ioctl.h>
2087 if { (eval echo configure
:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089 bash_cv_tiocgwinsz_in_ioctl
=yes
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 bash_cv_tiocgwinsz_in_ioctl
=no
2099 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
2100 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
2101 cat >> confdefs.h
<<\EOF
2102 #define GWINSZ_IN_SYS_IOCTL 1
2107 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
2108 echo "configure:2109: checking for TIOCSTAT in sys/ioctl.h" >&5
2109 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.
$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/ioctl.h>
2121 if { (eval echo configure
:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123 bash_cv_tiocstat_in_ioctl
=yes
2125 echo "configure: failed program was:" >&5
2126 cat conftest.
$ac_ext >&5
2128 bash_cv_tiocstat_in_ioctl
=no
2133 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
2134 if test $bash_cv_tiocstat_in_ioctl = yes; then
2135 cat >> confdefs.h
<<\EOF
2136 #define TIOCSTAT_IN_SYS_IOCTL 1
2141 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
2142 echo "configure:2143: checking for FIONREAD in sys/ioctl.h" >&5
2143 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2150 #include <sys/ioctl.h>
2155 if { (eval echo configure
:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 bash_cv_fionread_in_ioctl
=yes
2159 echo "configure: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 bash_cv_fionread_in_ioctl
=no
2167 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
2168 if test $bash_cv_fionread_in_ioctl = yes; then
2169 cat >> confdefs.h
<<\EOF
2170 #define FIONREAD_IN_SYS_IOCTL 1
2175 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
2176 echo "configure:2177: checking for speed_t in sys/types.h" >&5
2177 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 #include <sys/types.h>
2188 if { (eval echo configure
:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2190 bash_cv_speed_t_in_sys_types
=yes
2192 echo "configure: failed program was:" >&5
2193 cat conftest.
$ac_ext >&5
2195 bash_cv_speed_t_in_sys_types
=no
2200 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
2201 if test $bash_cv_speed_t_in_sys_types = yes; then
2202 cat >> confdefs.h
<<\EOF
2203 #define SPEED_T_IN_SYS_TYPES 1
2208 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
2209 echo "configure:2210: checking for struct winsize in sys/ioctl.h and termios.h" >&5
2210 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 #include <sys/types.h>
2217 #include <sys/ioctl.h>
2222 if { (eval echo configure
:2223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2224 bash_cv_struct_winsize_header
=ioctl_h
2226 echo "configure: failed program was:" >&5
2227 cat conftest.
$ac_ext >&5
2229 cat > conftest.
$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 #include <sys/types.h>
2233 #include <termios.h>
2238 if { (eval echo configure
:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2240 bash_cv_struct_winsize_header
=termios_h
2242 echo "configure: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2245 bash_cv_struct_winsize_header
=other
2253 if test $bash_cv_struct_winsize_header = ioctl_h
; then
2254 echo "$ac_t""sys/ioctl.h" 1>&6
2255 cat >> confdefs.h
<<\EOF
2256 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
2259 elif test $bash_cv_struct_winsize_header = termios_h
; then
2260 echo "$ac_t""termios.h" 1>&6
2261 cat >> confdefs.h
<<\EOF
2262 #define STRUCT_WINSIZE_IN_TERMIOS 1
2266 echo "$ac_t""not found" 1>&6
2270 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
2271 echo "configure:2272: checking if struct dirent has a d_ino member" >&5
2272 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.
$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2280 #include <sys/types.h>
2281 #ifdef HAVE_UNISTD_H
2282 # include <unistd.h>
2283 #endif /* HAVE_UNISTD_H */
2284 #if defined(HAVE_DIRENT_H)
2285 # include <dirent.h>
2287 # define dirent direct
2288 # ifdef HAVE_SYS_NDIR_H
2289 # include <sys/ndir.h>
2290 # endif /* SYSNDIR */
2291 # ifdef HAVE_SYS_DIR_H
2292 # include <sys/dir.h>
2293 # endif /* SYSDIR */
2297 #endif /* HAVE_DIRENT_H */
2301 struct dirent d; int z; z = d.d_ino;
2305 if { (eval echo configure
:2306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2307 bash_cv_dirent_has_dino
=yes
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 bash_cv_dirent_has_dino
=no
2317 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
2318 if test $bash_cv_dirent_has_dino = yes; then
2319 cat >> confdefs.h
<<\EOF
2320 #define STRUCT_DIRENT_HAS_D_INO 1
2326 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
2327 echo "configure:2328: checking if struct dirent has a d_fileno member" >&5
2328 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.
$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2336 #include <sys/types.h>
2337 #ifdef HAVE_UNISTD_H
2338 # include <unistd.h>
2339 #endif /* HAVE_UNISTD_H */
2340 #if defined(HAVE_DIRENT_H)
2341 # include <dirent.h>
2343 # define dirent direct
2344 # ifdef HAVE_SYS_NDIR_H
2345 # include <sys/ndir.h>
2346 # endif /* SYSNDIR */
2347 # ifdef HAVE_SYS_DIR_H
2348 # include <sys/dir.h>
2349 # endif /* SYSDIR */
2353 #endif /* HAVE_DIRENT_H */
2357 struct dirent d; int z; z = d.d_fileno;
2361 if { (eval echo configure
:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2363 bash_cv_dirent_has_d_fileno
=yes
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 bash_cv_dirent_has_d_fileno
=no
2373 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
2374 if test $bash_cv_dirent_has_d_fileno = yes; then
2375 cat >> confdefs.h
<<\EOF
2376 #define STRUCT_DIRENT_HAS_D_FILENO 1
2383 aix
*) prefer_curses
=yes ;;
2386 if test "X$bash_cv_termcap_lib" = "X"; then
2389 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2390 echo "configure:2391: checking which library has the termcap functions" >&5
2393 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2397 echo "configure:2398: checking for tgetent in -ltermcap" >&5
2398 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 ac_save_LIBS
="$LIBS"
2403 LIBS
="-ltermcap $LIBS"
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 eval "ac_cv_lib_$ac_lib_var=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 eval "ac_cv_lib_$ac_lib_var=no"
2426 LIBS
="$ac_save_LIBS"
2429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 bash_cv_termcap_lib
=libtermcap
2433 echo "$ac_t""no" 1>&6
2434 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
2435 echo "configure:2436: checking for tgetent in -lcurses" >&5
2436 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
2437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 ac_save_LIBS
="$LIBS"
2441 LIBS
="-lcurses $LIBS"
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 /* Override any gcc2 internal prototype to avoid an error. */
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2454 if { (eval echo configure
:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2456 eval "ac_cv_lib_$ac_lib_var=yes"
2458 echo "configure: failed program was:" >&5
2459 cat conftest.
$ac_ext >&5
2461 eval "ac_cv_lib_$ac_lib_var=no"
2464 LIBS
="$ac_save_LIBS"
2467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2468 echo "$ac_t""yes" 1>&6
2469 bash_cv_termcap_lib
=libcurses
2471 echo "$ac_t""no" 1>&6
2472 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2473 echo "configure:2474: checking for tgetent in -lncurses" >&5
2474 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
2475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_save_LIBS
="$LIBS"
2479 LIBS
="-lncurses $LIBS"
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2492 if { (eval echo configure
:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2494 eval "ac_cv_lib_$ac_lib_var=yes"
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 eval "ac_cv_lib_$ac_lib_var=no"
2502 LIBS
="$ac_save_LIBS"
2505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 bash_cv_termcap_lib
=libncurses
2509 echo "$ac_t""no" 1>&6
2510 bash_cv_termcap_lib
=gnutermcap
2519 if test "X$_bash_needmsg" = "Xyes"; then
2520 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2521 echo "configure:2522: checking which library has the termcap functions" >&5
2523 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
2524 if test $bash_cv_termcap_lib = gnutermcap
&& test -z "$prefer_curses"; then
2525 LDFLAGS
="$LDFLAGS -L./lib/termcap"
2526 TERMCAP_LIB
="./lib/termcap/libtermcap.a"
2527 TERMCAP_DEP
="./lib/termcap/libtermcap.a"
2528 elif test $bash_cv_termcap_lib = libtermcap
&& test -z "$prefer_curses"; then
2529 TERMCAP_LIB
=-ltermcap
2531 elif test $bash_cv_termcap_lib = libncurses
; then
2532 TERMCAP_LIB
=-lncurses
2535 TERMCAP_LIB
=-lcurses
2539 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
2540 TERMCAP_LIB
=-ltermcap #default
2544 *cray
*) LOCAL_CFLAGS
=-DCRAY ;;
2545 *s390
*) LOCAL_CFLAGS
=-fsigned-char ;;
2549 isc
*) LOCAL_CFLAGS
=-Disc386 ;;
2552 # shared library configuration section
2554 # Shared object configuration section. These values are generated by
2555 # ${srcdir}/support/shobj-conf
2557 if test -f ${srcdir}/support
/shobj-conf
; then
2558 echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6
2559 echo "configure:2559: checking configuration for building shared libraries" >&5
2560 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
2573 echo "$ac_t""$SHLIB_STATUS" 1>&6
2575 # shared library versioning
2576 # quoted for m4 so I can use character classes
2577 SHLIB_MAJOR
=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
2578 SHLIB_MINOR
=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
2584 msdosdjgpp
*) BUILD_DIR
=`pwd.exe` ;; # to prevent //d/path/file
2585 *) BUILD_DIR
=`pwd` ;;
2606 cat > confcache
<<\EOF
2607 # This file is a shell script that caches the results of configure
2608 # tests run on this system so they can be shared between configure
2609 # scripts and configure runs. It is not useful on other systems.
2610 # If it contains results you don't want to keep, you may remove or edit it.
2612 # By default, configure uses ./config.cache as the cache file,
2613 # creating it if it does not exist already. You can give configure
2614 # the --cache-file=FILE option to use a different cache file; that is
2615 # what configure does when it calls configure scripts in
2616 # subdirectories, so they share the cache.
2617 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2618 # config.status only pays attention to the cache file if you give it the
2619 # --recheck option to rerun configure.
2622 # The following way of writing the cache mishandles newlines in values,
2623 # but we know of no workaround that is simple, portable, and efficient.
2624 # So, don't put newlines in cache variables' values.
2625 # Ultrix sh set writes to stderr and can't be redirected directly,
2626 # and sets the high bit in the cache file unless we assign to the vars.
2628 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2630 # `set' does not quote correctly, so add quotes (double-quote substitution
2631 # turns \\\\ into \\, and sed turns \\ into \).
2633 -e "s/'/'\\\\''/g" \
2634 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2637 # `set' quotes correctly as required by POSIX, so do not add quotes.
2638 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2641 if cmp -s $cache_file confcache
; then
2644 if test -w $cache_file; then
2645 echo "updating cache $cache_file"
2646 cat confcache
> $cache_file
2648 echo "not updating unwritable cache $cache_file"
2653 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2655 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2656 # Let make expand exec_prefix.
2657 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2659 # Any assignment to VPATH causes Sun make to only execute
2660 # the first set of double-colon rules, so remove it if not needed.
2661 # If there is a colon in the path, we need to keep it.
2662 if test "x$srcdir" = x.
; then
2663 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2666 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2668 DEFS
=-DHAVE_CONFIG_H
2670 # Without the "./", some shells look in PATH for config.status.
2671 : ${CONFIG_STATUS=./config.status}
2673 echo creating
$CONFIG_STATUS
2674 rm -f $CONFIG_STATUS
2675 cat > $CONFIG_STATUS <<EOF
2677 # Generated automatically by configure.
2678 # Run this file to recreate the current configuration.
2679 # This directory was configured as follows,
2680 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2682 # $0 $ac_configure_args
2684 # Compiler output produced by configure, useful for debugging
2685 # configure, is in ./config.log if it exists.
2687 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2690 case "\$ac_option" in
2691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2692 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2693 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2694 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2695 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2697 -help | --help | --hel | --he | --h)
2698 echo "\$ac_cs_usage"; exit 0 ;;
2699 *) echo "\$ac_cs_usage"; exit 1 ;;
2703 ac_given_srcdir=$srcdir
2704 ac_given_INSTALL="$INSTALL"
2706 trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile shlib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2708 cat >> $CONFIG_STATUS <<EOF
2710 # Protect against being on the right side of a sed subst in config.status.
2711 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2712 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2716 s%@CFLAGS@%$CFLAGS%g
2717 s%@CPPFLAGS@%$CPPFLAGS%g
2718 s%@CXXFLAGS@%$CXXFLAGS%g
2719 s%@FFLAGS@%$FFLAGS%g
2721 s%@LDFLAGS@%$LDFLAGS%g
2723 s%@exec_prefix@%$exec_prefix%g
2724 s%@prefix@%$prefix%g
2725 s%@program_transform_name@%$program_transform_name%g
2726 s%@bindir@%$bindir%g
2727 s%@sbindir@%$sbindir%g
2728 s%@libexecdir@%$libexecdir%g
2729 s%@datadir@%$datadir%g
2730 s%@sysconfdir@%$sysconfdir%g
2731 s%@sharedstatedir@%$sharedstatedir%g
2732 s%@localstatedir@%$localstatedir%g
2733 s%@libdir@%$libdir%g
2734 s%@includedir@%$includedir%g
2735 s%@oldincludedir@%$oldincludedir%g
2736 s%@infodir@%$infodir%g
2737 s%@mandir@%$mandir%g
2739 s%@host_alias@%$host_alias%g
2740 s%@host_cpu@%$host_cpu%g
2741 s%@host_vendor@%$host_vendor%g
2742 s%@host_os@%$host_os%g
2745 s%@CROSS_COMPILING_FLAG@%$CROSS_COMPILING_FLAG%g
2746 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
2747 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2748 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2749 s%@INSTALL_DATA@%$INSTALL_DATA%g
2751 s%@RANLIB@%$RANLIB%g
2752 s%@MAKE_SHELL@%$MAKE_SHELL%g
2753 s%@SHOBJ_CC@%$SHOBJ_CC%g
2754 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
2755 s%@SHOBJ_LD@%$SHOBJ_LD%g
2756 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
2757 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
2758 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
2759 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
2760 s%@SHLIB_STATUS@%$SHLIB_STATUS%g
2761 s%@SHLIB_XLDFLAGS@%$SHLIB_XLDFLAGS%g
2762 s%@SHLIB_LIBSUFF@%$SHLIB_LIBSUFF%g
2763 s%@SHLIB_LIBVERSION@%$SHLIB_LIBVERSION%g
2764 s%@SHLIB_LIBS@%$SHLIB_LIBS%g
2765 s%@SHLIB_MAJOR@%$SHLIB_MAJOR%g
2766 s%@SHLIB_MINOR@%$SHLIB_MINOR%g
2767 s%@BUILD_DIR@%$BUILD_DIR%g
2768 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2769 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2770 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2771 s%@ARFLAGS@%$ARFLAGS%g
2772 s%@LIBVERSION@%$LIBVERSION%g
2773 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2778 cat >> $CONFIG_STATUS <<\EOF
2780 # Split the substitutions into bite-sized pieces for seds with
2781 # small command number limits, like on Digital OSF/1 and HP-UX.
2782 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2783 ac_file
=1 # Number of current file.
2784 ac_beg
=1 # First line for current file.
2785 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2788 while $ac_more_lines; do
2789 if test $ac_beg -gt 1; then
2790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2792 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2794 if test ! -s conftest.s
$ac_file; then
2796 rm -f conftest.s
$ac_file
2798 if test -z "$ac_sed_cmds"; then
2799 ac_sed_cmds
="sed -f conftest.s$ac_file"
2801 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2803 ac_file
=`expr $ac_file + 1`
2805 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2808 if test -z "$ac_sed_cmds"; then
2813 cat >> $CONFIG_STATUS <<EOF
2815 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile examples/Makefile shlib/Makefile"}
2817 cat >> $CONFIG_STATUS <<\EOF
2818 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2821 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2822 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2823 *) ac_file_in
="${ac_file}.in" ;;
2826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2828 # Remove last slash and all that follows it. Not all systems have dirname.
2829 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2831 # The file is in a subdirectory.
2832 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2833 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2834 # A "../" for each directory in $ac_dir_suffix.
2835 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2837 ac_dir_suffix
= ac_dots
=
2840 case "$ac_given_srcdir" in
2842 if test -z "$ac_dots"; then top_srcdir
=.
2843 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2844 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2846 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2847 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2850 case "$ac_given_INSTALL" in
2851 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2852 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2855 echo creating
"$ac_file"
2857 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2859 *Makefile
*) ac_comsub
="1i\\
2860 # $configure_input" ;;
2864 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2866 s%@configure_input@%$configure_input%g
2867 s%@srcdir@%$srcdir%g
2868 s%@top_srcdir@%$top_srcdir%g
2869 s%@INSTALL@%$INSTALL%g
2870 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2877 # ac_d sets the value in "#define NAME VALUE" lines.
2878 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2879 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2882 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2883 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2884 ac_uB
='\([ ]\)%\1#\2define\3'
2887 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2888 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2889 ac_eB
='$%\1#\2define\3'
2893 if test "${CONFIG_HEADERS+set}" != set; then
2895 cat >> $CONFIG_STATUS <<EOF
2896 CONFIG_HEADERS="config.h"
2898 cat >> $CONFIG_STATUS <<\EOF
2900 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2903 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2904 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2905 *) ac_file_in
="${ac_file}.in" ;;
2908 echo creating
$ac_file
2910 rm -f conftest.frag conftest.
in conftest.out
2911 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2912 cat $ac_file_inputs > conftest.
in
2916 # Transform confdefs.h into a sed script conftest.vals that substitutes
2917 # the proper values into config.h.in to produce config.h. And first:
2918 # Protect against being on the right side of a sed subst in config.status.
2919 # Protect against being in an unquoted here document in config.status.
2921 cat > conftest.hdr
<<\EOF
2924 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2928 sed -n -f conftest.hdr confdefs.h > conftest.vals
2931 # This sed command replaces #undef with comments. This is necessary, for
2932 # example, in the case of _POSIX_SOURCE, which is predefined and required
2933 # on some systems where configure will not decide to define it.
2934 cat >> conftest.vals <<\EOF
2935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2938 # Break up conftest.vals because some shells have a limit on
2939 # the size of here documents, and old seds have small limits too.
2944 ac_lines=`grep -c . conftest.vals
`
2945 # grep -c gives empty output for an empty file on some AIX systems.
2946 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2947 # Write a limited-size here document to conftest.frag.
2948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2951 sed -f conftest.frag conftest.in > conftest.out
2953 mv conftest.out conftest.in
2955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2957 mv conftest.tail conftest.vals
2961 cat >> $CONFIG_STATUS <<\EOF
2962 rm -f conftest.frag conftest.h
2963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2964 cat conftest.in >> conftest.h
2966 if cmp -s $ac_file conftest.h 2>/dev/null; then
2967 echo "$ac_file is unchanged"
2970 # Remove last slash and all that follows it. Not all systems have dirname.
2971 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2973 # The file is in a subdirectory.
2974 test ! -d "$ac_dir" && mkdir "$ac_dir"
2977 mv conftest.h $ac_file
2982 cat >> $CONFIG_STATUS <<EOF
2985 cat >> $CONFIG_STATUS <<\EOF
2987 # Makefile uses this timestamp file to record whether config.h is up to date.
2992 chmod +x $CONFIG_STATUS
2993 rm -fr confdefs* $ac_clean_files
2994 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1