("" < 3.4) always evaluates to true, which unconditionally
[dragonfly.git] / contrib / libreadline / configure
blobbcb5ff85ab683d3591225b7c6777b3567c3c484c
1 #! /bin/sh
3 # From configure.in for Readline 4.1, version 2.22, from autoconf version 2.13
4 LIBVERSION=4.1
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.
113 # Defaults:
114 ac_help=
115 ac_default_prefix=/usr/local
116 # Any additions from configure.in:
117 ac_help="$ac_help
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.
123 build=NONE
124 cache_file=./config.cache
125 exec_prefix=NONE
126 host=NONE
127 no_create=
128 nonopt=NONE
129 no_recursion=
130 prefix=NONE
131 program_prefix=NONE
132 program_suffix=NONE
133 program_transform_name=s,x,x,
134 silent=
135 site=
136 srcdir=
137 target=NONE
138 verbose=
139 x_includes=NONE
140 x_libraries=NONE
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.
155 subdirs=
156 MFLAGS= MAKEFLAGS=
157 SHELL=${CONFIG_SHELL-/bin/sh}
158 # Maximum number of lines to put in a shell here document.
159 ac_max_here_lines=12
161 ac_prev=
162 for ac_option
165 # If the previous option needs an argument, assign it.
166 if test -n "$ac_prev"; then
167 eval "$ac_prev=\$ac_option"
168 ac_prev=
169 continue
172 case "$ac_option" in
173 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
174 *) ac_optarg= ;;
175 esac
177 # Accept the important Cygnus configure options, so we can diagnose typos.
179 case "$ac_option" in
181 -bindir | --bindir | --bindi | --bind | --bin | --bi)
182 ac_prev=bindir ;;
183 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
184 bindir="$ac_optarg" ;;
186 -build | --build | --buil | --bui | --bu)
187 ac_prev=build ;;
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)
199 ac_prev=datadir ;;
200 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
201 | --da=*)
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'`
220 case "$ac_option" in
221 *=*) ;;
222 *) ac_optarg=yes ;;
223 esac
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.
237 with_gas=yes ;;
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.
242 cat << EOF
243 Usage: configure [options] [host]
244 Options: [defaults in brackets after descriptions]
245 Configuration:
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
253 [$ac_default_prefix]
254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
255 [same as prefix]
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
260 [PREFIX/share]
261 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
262 --sharedstatedir=DIR modifiable architecture-independent data in DIR
263 [PREFIX/com]
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
276 cat << EOF
277 Host type:
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"
292 exit 0 ;;
294 -host | --host | --hos | --ho)
295 ac_prev=host ;;
296 -host=* | --host=* | --hos=* | --ho=*)
297 host="$ac_optarg" ;;
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)
307 ac_prev=infodir ;;
308 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
309 infodir="$ac_optarg" ;;
311 -libdir | --libdir | --libdi | --libd)
312 ac_prev=libdir ;;
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)
333 ac_prev=mandir ;;
334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
335 mandir="$ac_optarg" ;;
337 -nfp | --nfp | --nf)
338 # Obsolete; use --without-fp.
339 with_fp=no ;;
341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
342 | --no-cr | --no-c)
343 no_create=yes ;;
345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
347 no_recursion=yes ;;
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)
359 ac_prev=prefix ;;
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)
396 silent=yes ;;
398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 ac_prev=sbindir ;;
400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 | --sbi=* | --sb=*)
402 sbindir="$ac_optarg" ;;
404 -sharedstatedir | --sharedstatedir | --sharedstatedi \
405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
406 | --sharedst | --shareds | --shared | --share | --shar \
407 | --sha | --sh)
408 ac_prev=sharedstatedir ;;
409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 | --sha=* | --sh=*)
413 sharedstatedir="$ac_optarg" ;;
415 -site | --site | --sit)
416 ac_prev=site ;;
417 -site=* | --site=* | --sit=*)
418 site="$ac_optarg" ;;
420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 ac_prev=srcdir ;;
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)
433 ac_prev=target ;;
434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
435 target="$ac_optarg" ;;
437 -v | -verbose | --verbose | --verbos | --verbo | --verb)
438 verbose=yes ;;
440 -version | --version | --versio | --versi | --vers)
441 echo "configure generated by autoconf version 2.13"
442 exit 0 ;;
444 -with-* | --with-*)
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'`
451 case "$ac_option" in
452 *=*) ;;
453 *) ac_optarg=yes ;;
454 esac
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" ;;
466 --x)
467 # Obsolete; use --with-x.
468 with_x=yes ;;
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; }
494 nonopt="$ac_option"
497 esac
498 done
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:
507 # 0 standard input
508 # 1 file creation
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
515 exec 6>/dev/null
516 else
517 exec 6>&1
519 exec 5>./config.log
521 echo "\
522 This file contains any messages produced by compilers while
523 running configure, to aid debugging if configure makes a mistake.
524 " 1>&5
526 # Strip out --no-create and --no-recursion so they do not pile up.
527 # Also quote any args containing shell metacharacters.
528 ac_configure_args=
529 for ac_arg
531 case "$ac_arg" in
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" ;;
539 esac
540 done
542 # NLS nuisances.
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.
555 echo > confdefs.h
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.
565 ac_prog=$0
566 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
568 srcdir=$ac_confdir
569 if test ! -r $srcdir/$ac_unique_file; then
570 srcdir=..
572 else
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; }
578 else
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"
588 else
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"
595 . "$ac_site_file"
597 done
599 if test -r "$cache_file"; then
600 echo "loading cache $cache_file"
601 . $cache_file
602 else
603 echo "creating cache $cache_file"
604 > $cache_file
607 ac_ext=c
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
614 ac_exeext=
615 ac_objext=o
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
619 ac_n= ac_c='
620 ' ac_t=' '
621 else
622 ac_n=-n ac_c= ac_t=
624 else
625 ac_n= ac_c='\c' ac_t=
633 ac_aux_dir=
634 for ac_dir in ./support $srcdir/./support; do
635 if test -f $ac_dir/install-sh; then
636 ac_aux_dir=$ac_dir
637 ac_install_sh="$ac_aux_dir/install-sh -c"
638 break
639 elif test -f $ac_dir/install.sh; then
640 ac_aux_dir=$ac_dir
641 ac_install_sh="$ac_aux_dir/install.sh -c"
642 break
644 done
645 if test -z "$ac_aux_dir"; then
646 { echo "configure: error: can not find install-sh or install.sh in ./support $srcdir/./support" 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.
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
662 host_alias=$host
663 case "$host_alias" in
664 NONE)
665 case $nonopt in
666 NONE)
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; }
669 fi ;;
670 *) host_alias=$nonopt ;;
671 esac ;;
672 esac
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
681 opt_curses=no
682 opt_shared=no
684 # Check whether --with-curses or --without-curses was given.
685 if test "${with_curses+set}" = set; then
686 withval="$with_curses"
687 opt_curses=$withval
691 if test "$opt_curses" = "yes"; then
692 prefer_curses=yes
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
704 else
705 if test -n "$CC"; then
706 ac_cv_prog_CC="$CC" # Let the user override the test.
707 else
708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
709 ac_dummy="$PATH"
710 for ac_dir in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
713 ac_cv_prog_CC="gcc"
714 break
716 done
717 IFS="$ac_save_ifs"
720 CC="$ac_cv_prog_CC"
721 if test -n "$CC"; then
722 echo "$ac_t""$CC" 1>&6
723 else
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
734 else
735 if test -n "$CC"; then
736 ac_cv_prog_CC="$CC" # Let the user override the test.
737 else
738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 ac_prog_rejected=no
740 ac_dummy="$PATH"
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
745 ac_prog_rejected=yes
746 continue
748 ac_cv_prog_CC="cc"
749 break
751 done
752 IFS="$ac_save_ifs"
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
756 shift
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.
761 shift
762 set dummy "$ac_dir/$ac_word" "$@"
763 shift
764 ac_cv_prog_CC="$@"
769 CC="$ac_cv_prog_CC"
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
772 else
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
777 case "`uname -s`" in
778 *win32* | *WIN32*)
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
785 else
786 if test -n "$CC"; then
787 ac_cv_prog_CC="$CC" # Let the user override the test.
788 else
789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 ac_dummy="$PATH"
791 for ac_dir in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir=.
793 if test -f $ac_dir/$ac_word; then
794 ac_cv_prog_CC="cl"
795 break
797 done
798 IFS="$ac_save_ifs"
801 CC="$ac_cv_prog_CC"
802 if test -n "$CC"; then
803 echo "$ac_t""$CC" 1>&6
804 else
805 echo "$ac_t""no" 1>&6
808 esac
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
816 ac_ext=c
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"
828 main(){return(0);}
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
835 else
836 ac_cv_prog_cc_cross=yes
838 else
839 echo "configure: failed program was:" >&5
840 cat conftest.$ac_ext >&5
841 ac_cv_prog_cc_works=no
843 rm -fr conftest*
844 ac_ext=c
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
864 else
865 cat > conftest.c <<EOF
866 #ifdef __GNUC__
867 yes;
868 #endif
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
871 ac_cv_prog_gcc=yes
872 else
873 ac_cv_prog_gcc=no
877 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
879 if test $ac_cv_prog_gcc = yes; then
880 GCC=yes
881 else
882 GCC=
885 ac_test_CFLAGS="${CFLAGS+set}"
886 ac_save_CFLAGS="$CFLAGS"
887 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
892 else
893 echo 'void f(){}' > conftest.c
894 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
895 ac_cv_prog_cc_g=yes
896 else
897 ac_cv_prog_cc_g=no
899 rm -f conftest*
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
908 CFLAGS="-g -O2"
909 else
910 CFLAGS="-g"
912 else
913 if test "$GCC" = yes; then
914 CFLAGS="-O2"
915 else
916 CFLAGS=
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
924 CPP=
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
929 else
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.
932 CPP="${CC-cc} -E"
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"
938 #include <assert.h>
939 Syntax Error
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
946 else
947 echo "$ac_err" >&5
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
950 rm -rf conftest*
951 CPP="${CC-cc} -E -traditional-cpp"
952 cat > conftest.$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
955 #include <assert.h>
956 Syntax Error
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
963 else
964 echo "$ac_err" >&5
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
967 rm -rf conftest*
968 CPP="${CC-cc} -nologo -E"
969 cat > conftest.$ac_ext <<EOF
970 #line 971 "configure"
971 #include "confdefs.h"
972 #include <assert.h>
973 Syntax Error
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
980 else
981 echo "$ac_err" >&5
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
984 rm -rf conftest*
985 CPP=/lib/cpp
987 rm -f conftest*
989 rm -f conftest*
991 rm -f conftest*
992 ac_cv_prog_CPP="$CPP"
994 CPP="$ac_cv_prog_CPP"
995 else
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
1005 else
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
1015 rm -rf conftest*
1016 eval "ac_cv_header_$ac_safe=yes"
1017 else
1018 echo "$ac_err" >&5
1019 echo "configure: failed program was:" >&5
1020 cat conftest.$ac_ext >&5
1021 rm -rf conftest*
1022 eval "ac_cv_header_$ac_safe=no"
1024 rm -f conftest*
1026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1027 echo "$ac_t""yes" 1>&6
1028 MINIX=yes
1029 else
1030 echo "$ac_t""no" 1>&6
1031 MINIX=
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
1044 #define _MINIX 1
1050 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
1051 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
1053 if test $ac_cv_prog_gcc = yes; then
1054 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether ${CC-cc} needs -traditional" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 ac_pattern="Autoconf.*'x'"
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1063 #include <sgtty.h>
1064 Autoconf TIOCGETP
1066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1067 egrep "$ac_pattern" >/dev/null 2>&1; then
1068 rm -rf conftest*
1069 ac_cv_prog_gcc_traditional=yes
1070 else
1071 rm -rf conftest*
1072 ac_cv_prog_gcc_traditional=no
1074 rm -f conftest*
1077 if test $ac_cv_prog_gcc_traditional = no; then
1078 cat > conftest.$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1081 #include <termio.h>
1082 Autoconf TCGETA
1084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1085 egrep "$ac_pattern" >/dev/null 2>&1; then
1086 rm -rf conftest*
1087 ac_cv_prog_gcc_traditional=yes
1089 rm -f conftest*
1094 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1095 if test $ac_cv_prog_gcc_traditional = yes; then
1096 CC="$CC -traditional"
1100 # Find a good install program. We prefer a C program (faster),
1101 # so one script is as good as another. But avoid the broken or
1102 # incompatible versions:
1103 # SysV /etc/install, /usr/sbin/install
1104 # SunOS /usr/etc/install
1105 # IRIX /sbin/install
1106 # AIX /bin/install
1107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1110 # ./install, which can be erroneously created by make from ./install.sh.
1111 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1112 echo "configure:1113: checking for a BSD compatible install" >&5
1113 if test -z "$INSTALL"; then
1114 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1118 for ac_dir in $PATH; do
1119 # Account for people who put trailing slashes in PATH elements.
1120 case "$ac_dir/" in
1121 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1123 # OSF1 and SCO ODT 3.0 have their own names for install.
1124 # Don't use installbsd from OSF since it installs stuff as root
1125 # by default.
1126 for ac_prog in ginstall scoinst install; do
1127 if test -f $ac_dir/$ac_prog; then
1128 if test $ac_prog = install &&
1129 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1130 # AIX install. It has an incompatible calling convention.
1132 else
1133 ac_cv_path_install="$ac_dir/$ac_prog -c"
1134 break 2
1137 done
1139 esac
1140 done
1141 IFS="$ac_save_IFS"
1144 if test "${ac_cv_path_install+set}" = set; then
1145 INSTALL="$ac_cv_path_install"
1146 else
1147 # As a last resort, use the slow shell script. We don't cache a
1148 # path for INSTALL within a source directory, because that will
1149 # break other packages using the cache if that directory is
1150 # removed, or if the path is relative.
1151 INSTALL="$ac_install_sh"
1154 echo "$ac_t""$INSTALL" 1>&6
1156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1157 # It thinks the first close brace ends the variable substitution.
1158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1164 # Extract the first word of "ar", so it can be a program name with args.
1165 set dummy ar; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171 if test -n "$AR"; then
1172 ac_cv_prog_AR="$AR" # Let the user override the test.
1173 else
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 ac_dummy="$PATH"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1179 ac_cv_prog_AR="ar"
1180 break
1182 done
1183 IFS="$ac_save_ifs"
1186 AR="$ac_cv_prog_AR"
1187 if test -n "$AR"; then
1188 echo "$ac_t""$AR" 1>&6
1189 else
1190 echo "$ac_t""no" 1>&6
1193 test -n "$ARFLAGS" || ARFLAGS="cr"
1194 # Extract the first word of "ranlib", so it can be a program name with args.
1195 set dummy ranlib; ac_word=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 if test -n "$RANLIB"; then
1202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1203 else
1204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1205 ac_dummy="$PATH"
1206 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_RANLIB="ranlib"
1210 break
1212 done
1213 IFS="$ac_save_ifs"
1214 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1217 RANLIB="$ac_cv_prog_RANLIB"
1218 if test -n "$RANLIB"; then
1219 echo "$ac_t""$RANLIB" 1>&6
1220 else
1221 echo "$ac_t""no" 1>&6
1225 MAKE_SHELL=/bin/sh
1228 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1229 echo "configure:1230: checking return type of signal handlers" >&5
1230 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1232 else
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <sys/types.h>
1237 #include <signal.h>
1238 #ifdef signal
1239 #undef signal
1240 #endif
1241 #ifdef __cplusplus
1242 extern "C" void (*signal (int, void (*)(int)))(int);
1243 #else
1244 void (*signal ()) ();
1245 #endif
1247 int main() {
1248 int i;
1249 ; return 0; }
1251 if { (eval echo configure:1252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1252 rm -rf conftest*
1253 ac_cv_type_signal=void
1254 else
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1257 rm -rf conftest*
1258 ac_cv_type_signal=int
1260 rm -f conftest*
1263 echo "$ac_t""$ac_cv_type_signal" 1>&6
1264 cat >> confdefs.h <<EOF
1265 #define RETSIGTYPE $ac_cv_type_signal
1270 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1271 echo "configure:1272: checking whether stat file-mode macros are broken" >&5
1272 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1274 else
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 #include <sys/types.h>
1279 #include <sys/stat.h>
1281 #if defined(S_ISBLK) && defined(S_IFDIR)
1282 # if S_ISBLK (S_IFDIR)
1283 You lose.
1284 # endif
1285 #endif
1287 #if defined(S_ISBLK) && defined(S_IFCHR)
1288 # if S_ISBLK (S_IFCHR)
1289 You lose.
1290 # endif
1291 #endif
1293 #if defined(S_ISLNK) && defined(S_IFREG)
1294 # if S_ISLNK (S_IFREG)
1295 You lose.
1296 # endif
1297 #endif
1299 #if defined(S_ISSOCK) && defined(S_IFREG)
1300 # if S_ISSOCK (S_IFREG)
1301 You lose.
1302 # endif
1303 #endif
1306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1307 egrep "You lose" >/dev/null 2>&1; then
1308 rm -rf conftest*
1309 ac_cv_header_stat_broken=yes
1310 else
1311 rm -rf conftest*
1312 ac_cv_header_stat_broken=no
1314 rm -f conftest*
1318 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1319 if test $ac_cv_header_stat_broken = yes; then
1320 cat >> confdefs.h <<\EOF
1321 #define STAT_MACROS_BROKEN 1
1326 ac_header_dirent=no
1327 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1330 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_hdr that defines DIR" >&5
1332 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 #include <sys/types.h>
1339 #include <$ac_hdr>
1340 int main() {
1341 DIR *dirp = 0;
1342 ; return 0; }
1344 if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1345 rm -rf conftest*
1346 eval "ac_cv_header_dirent_$ac_safe=yes"
1347 else
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
1351 eval "ac_cv_header_dirent_$ac_safe=no"
1353 rm -f conftest*
1355 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1358 cat >> confdefs.h <<EOF
1359 #define $ac_tr_hdr 1
1361 ac_header_dirent=$ac_hdr; break
1362 else
1363 echo "$ac_t""no" 1>&6
1365 done
1366 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1367 if test $ac_header_dirent = dirent.h; then
1368 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1369 echo "configure:1370: checking for opendir in -ldir" >&5
1370 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 ac_save_LIBS="$LIBS"
1375 LIBS="-ldir $LIBS"
1376 cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 /* Override any gcc2 internal prototype to avoid an error. */
1380 /* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1382 char opendir();
1384 int main() {
1385 opendir()
1386 ; return 0; }
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1389 rm -rf conftest*
1390 eval "ac_cv_lib_$ac_lib_var=yes"
1391 else
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1394 rm -rf conftest*
1395 eval "ac_cv_lib_$ac_lib_var=no"
1397 rm -f conftest*
1398 LIBS="$ac_save_LIBS"
1401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1402 echo "$ac_t""yes" 1>&6
1403 LIBS="$LIBS -ldir"
1404 else
1405 echo "$ac_t""no" 1>&6
1408 else
1409 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1410 echo "configure:1411: checking for opendir in -lx" >&5
1411 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415 ac_save_LIBS="$LIBS"
1416 LIBS="-lx $LIBS"
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* Override any gcc2 internal prototype to avoid an error. */
1421 /* We use char because int might match the return type of a gcc2
1422 builtin and then its argument prototype would still apply. */
1423 char opendir();
1425 int main() {
1426 opendir()
1427 ; return 0; }
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1430 rm -rf conftest*
1431 eval "ac_cv_lib_$ac_lib_var=yes"
1432 else
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 rm -rf conftest*
1436 eval "ac_cv_lib_$ac_lib_var=no"
1438 rm -f conftest*
1439 LIBS="$ac_save_LIBS"
1442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1443 echo "$ac_t""yes" 1>&6
1444 LIBS="$LIBS -lx"
1445 else
1446 echo "$ac_t""no" 1>&6
1452 for ac_func in lstat memmove putenv select setenv setlocale \
1453 strcasecmp tcgetattr
1455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_func" >&5
1457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 /* System header to define __stub macros and hopefully few prototypes,
1464 which can conflict with char $ac_func(); below. */
1465 #include <assert.h>
1466 /* Override any gcc2 internal prototype to avoid an error. */
1467 /* We use char because int might match the return type of a gcc2
1468 builtin and then its argument prototype would still apply. */
1469 char $ac_func();
1471 int main() {
1473 /* The GNU C library defines this for functions which it implements
1474 to always fail with ENOSYS. Some functions are actually named
1475 something starting with __ and the normal name is an alias. */
1476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1477 choke me
1478 #else
1479 $ac_func();
1480 #endif
1482 ; return 0; }
1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1485 rm -rf conftest*
1486 eval "ac_cv_func_$ac_func=yes"
1487 else
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1490 rm -rf conftest*
1491 eval "ac_cv_func_$ac_func=no"
1493 rm -f conftest*
1496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1497 echo "$ac_t""yes" 1>&6
1498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1499 cat >> confdefs.h <<EOF
1500 #define $ac_tr_func 1
1503 else
1504 echo "$ac_t""no" 1>&6
1506 done
1509 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1510 echo "configure:1511: checking for working strcoll" >&5
1511 if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1513 else
1514 if test "$cross_compiling" = yes; then
1515 ac_cv_func_strcoll_works=no
1516 else
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <string.h>
1521 main ()
1523 exit (strcoll ("abc", "def") >= 0 ||
1524 strcoll ("ABC", "DEF") >= 0 ||
1525 strcoll ("123", "456") >= 0);
1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1529 then
1530 ac_cv_func_strcoll_works=yes
1531 else
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1534 rm -fr conftest*
1535 ac_cv_func_strcoll_works=no
1537 rm -fr conftest*
1542 echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1543 if test $ac_cv_func_strcoll_works = yes; then
1544 cat >> confdefs.h <<\EOF
1545 #define HAVE_STRCOLL 1
1551 for ac_hdr in unistd.h stdlib.h varargs.h stdarg.h string.h \
1552 sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
1553 termcap.h termios.h termio.h sys/file.h locale.h
1555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_hdr" >&5
1558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 #include <$ac_hdr>
1566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1567 { (eval echo configure:1568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1569 if test -z "$ac_err"; then
1570 rm -rf conftest*
1571 eval "ac_cv_header_$ac_safe=yes"
1572 else
1573 echo "$ac_err" >&5
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1576 rm -rf conftest*
1577 eval "ac_cv_header_$ac_safe=no"
1579 rm -f conftest*
1581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1582 echo "$ac_t""yes" 1>&6
1583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1584 cat >> confdefs.h <<EOF
1585 #define $ac_tr_hdr 1
1588 else
1589 echo "$ac_t""no" 1>&6
1591 done
1595 echo $ac_n "checking for type of signal functions""... $ac_c" 1>&6
1596 echo "configure:1597: checking for type of signal functions" >&5
1597 if eval "test \"`echo '$''{'bash_cv_signal_vintage'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1604 #include <signal.h>
1605 int main() {
1607 sigset_t ss;
1608 struct sigaction sa;
1609 sigemptyset(&ss); sigsuspend(&ss);
1610 sigaction(SIGINT, &sa, (struct sigaction *) 0);
1611 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
1613 ; return 0; }
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1616 rm -rf conftest*
1617 bash_cv_signal_vintage=posix
1618 else
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 rm -rf conftest*
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 #include <signal.h>
1627 int main() {
1629 int mask = sigmask(SIGINT);
1630 sigsetmask(mask); sigblock(mask); sigpause(mask);
1632 ; return 0; }
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1635 rm -rf conftest*
1636 bash_cv_signal_vintage=4.2bsd
1637 else
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1640 rm -rf conftest*
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 #include <signal.h>
1647 RETSIGTYPE foo() { }
1648 int main() {
1650 int mask = sigmask(SIGINT);
1651 sigset(SIGINT, foo); sigrelse(SIGINT);
1652 sighold(SIGINT); sigpause(SIGINT);
1654 ; return 0; }
1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1657 rm -rf conftest*
1658 bash_cv_signal_vintage=svr3
1659 else
1660 echo "configure: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 rm -rf conftest*
1663 bash_cv_signal_vintage=v7
1666 rm -f conftest*
1669 rm -f conftest*
1672 rm -f conftest*
1676 echo "$ac_t""$bash_cv_signal_vintage" 1>&6
1677 if test "$bash_cv_signal_vintage" = posix; then
1678 cat >> confdefs.h <<\EOF
1679 #define HAVE_POSIX_SIGNALS 1
1682 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
1683 cat >> confdefs.h <<\EOF
1684 #define HAVE_BSD_SIGNALS 1
1687 elif test "$bash_cv_signal_vintage" = svr3; then
1688 cat >> confdefs.h <<\EOF
1689 #define HAVE_USG_SIGHOLD 1
1696 echo $ac_n "checking if signal handlers must be reinstalled when invoked""... $ac_c" 1>&6
1697 echo "configure:1698: checking if signal handlers must be reinstalled when invoked" >&5
1698 if eval "test \"`echo '$''{'bash_cv_must_reinstall_sighandlers'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701 if test "$cross_compiling" = yes; then
1702 echo "configure: warning: cannot check signal handling if cross compiling -- defaulting to no" 1>&2
1703 bash_cv_must_reinstall_sighandlers=no
1705 else
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1710 #include <signal.h>
1711 #ifdef HAVE_UNISTD_H
1712 #include <unistd.h>
1713 #endif
1715 typedef RETSIGTYPE sigfunc();
1717 int nsigint;
1719 #ifdef HAVE_POSIX_SIGNALS
1720 sigfunc *
1721 set_signal_handler(sig, handler)
1722 int sig;
1723 sigfunc *handler;
1725 struct sigaction act, oact;
1726 act.sa_handler = handler;
1727 act.sa_flags = 0;
1728 sigemptyset (&act.sa_mask);
1729 sigemptyset (&oact.sa_mask);
1730 sigaction (sig, &act, &oact);
1731 return (oact.sa_handler);
1733 #else
1734 #define set_signal_handler(s, h) signal(s, h)
1735 #endif
1737 RETSIGTYPE
1738 sigint(s)
1739 int s;
1741 nsigint++;
1744 main()
1746 nsigint = 0;
1747 set_signal_handler(SIGINT, sigint);
1748 kill((int)getpid(), SIGINT);
1749 kill((int)getpid(), SIGINT);
1750 exit(nsigint != 2);
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1755 then
1756 bash_cv_must_reinstall_sighandlers=no
1757 else
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 rm -fr conftest*
1761 bash_cv_must_reinstall_sighandlers=yes
1763 rm -fr conftest*
1768 echo "$ac_t""$bash_cv_must_reinstall_sighandlers" 1>&6
1769 if test $bash_cv_must_reinstall_sighandlers = yes; then
1770 cat >> confdefs.h <<\EOF
1771 #define MUST_REINSTALL_SIGHANDLERS 1
1778 echo $ac_n "checking for presence of POSIX-style sigsetjmp/siglongjmp""... $ac_c" 1>&6
1779 echo "configure:1780: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
1780 if eval "test \"`echo '$''{'bash_cv_func_sigsetjmp'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1782 else
1783 if test "$cross_compiling" = yes; then
1784 echo "configure: warning: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" 1>&2
1785 bash_cv_func_sigsetjmp=missing
1787 else
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1792 #ifdef HAVE_UNISTD_H
1793 #include <unistd.h>
1794 #endif
1795 #include <sys/types.h>
1796 #include <signal.h>
1797 #include <setjmp.h>
1799 main()
1801 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
1802 exit (1);
1803 #else
1805 int code;
1806 sigset_t set, oset;
1807 sigjmp_buf xx;
1809 /* get the mask */
1810 sigemptyset(&set);
1811 sigemptyset(&oset);
1812 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
1813 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
1815 /* save it */
1816 code = sigsetjmp(xx, 1);
1817 if (code)
1818 exit(0); /* could get sigmask and compare to oset here. */
1820 /* change it */
1821 sigaddset(&set, SIGINT);
1822 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
1824 /* and siglongjmp */
1825 siglongjmp(xx, 10);
1826 exit(1);
1827 #endif
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1831 then
1832 bash_cv_func_sigsetjmp=present
1833 else
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 rm -fr conftest*
1837 bash_cv_func_sigsetjmp=missing
1839 rm -fr conftest*
1844 echo "$ac_t""$bash_cv_func_sigsetjmp" 1>&6
1845 if test $bash_cv_func_sigsetjmp = present; then
1846 cat >> confdefs.h <<\EOF
1847 #define HAVE_POSIX_SIGSETJMP 1
1852 echo $ac_n "checking for lstat""... $ac_c" 1>&6
1853 echo "configure:1854: checking for lstat" >&5
1854 if eval "test \"`echo '$''{'bash_cv_func_lstat'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1861 #include <sys/types.h>
1862 #include <sys/stat.h>
1864 int main() {
1865 lstat(".",(struct stat *)0);
1866 ; return 0; }
1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1869 rm -rf conftest*
1870 bash_cv_func_lstat=yes
1871 else
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 rm -rf conftest*
1875 bash_cv_func_lstat=no
1877 rm -f conftest*
1880 echo "$ac_t""$bash_cv_func_lstat" 1>&6
1881 if test $bash_cv_func_lstat = yes; then
1882 cat >> confdefs.h <<\EOF
1883 #define HAVE_LSTAT 1
1888 echo $ac_n "checking whether programs are able to redeclare getpw functions""... $ac_c" 1>&6
1889 echo "configure:1890: checking whether programs are able to redeclare getpw functions" >&5
1890 if eval "test \"`echo '$''{'bash_cv_can_redecl_getpw'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1892 else
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896 #include <sys/types.h>
1897 #include <pwd.h>
1898 extern struct passwd *getpwent();
1899 extern struct passwd *getpwuid();
1900 extern struct passwd *getpwnam();
1901 int main() {
1902 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
1903 ; return 0; }
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1906 rm -rf conftest*
1907 bash_cv_can_redecl_getpw=yes
1908 else
1909 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1911 rm -rf conftest*
1912 bash_cv_can_redecl_getpw=no
1914 rm -f conftest*
1917 echo "$ac_t""$bash_cv_can_redecl_getpw" 1>&6
1918 if test $bash_cv_can_redecl_getpw = no; then
1919 cat >> confdefs.h <<\EOF
1920 #define HAVE_GETPW_DECLS 1
1926 echo $ac_n "checking whether or not strcoll and strcmp differ""... $ac_c" 1>&6
1927 echo "configure:1928: checking whether or not strcoll and strcmp differ" >&5
1928 if eval "test \"`echo '$''{'bash_cv_func_strcoll_broken'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1930 else
1931 if test "$cross_compiling" = yes; then
1932 echo "configure: warning: cannot check strcoll if cross compiling -- defaulting to no" 1>&2
1933 bash_cv_func_strcoll_broken=no
1935 else
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1940 #include <stdio.h>
1941 #if defined (HAVE_LOCALE_H)
1942 #include <locale.h>
1943 #endif
1945 main(c, v)
1946 int c;
1947 char *v[];
1949 int r1, r2;
1950 char *deflocale, *defcoll;
1952 #ifdef HAVE_SETLOCALE
1953 deflocale = setlocale(LC_ALL, "");
1954 defcoll = setlocale(LC_COLLATE, "");
1955 #endif
1957 #ifdef HAVE_STRCOLL
1958 /* These two values are taken from tests/glob-test. */
1959 r1 = strcoll("abd", "aXd");
1960 #else
1961 r1 = 0;
1962 #endif
1963 r2 = strcmp("abd", "aXd");
1965 /* These two should both be greater than 0. It is permissible for
1966 a system to return different values, as long as the sign is the
1967 same. */
1969 /* Exit with 1 (failure) if these two values are both > 0, since
1970 this tests whether strcoll(3) is broken with respect to strcmp(3)
1971 in the default locale. */
1972 exit (r1 > 0 && r2 > 0);
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1977 then
1978 bash_cv_func_strcoll_broken=yes
1979 else
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1982 rm -fr conftest*
1983 bash_cv_func_strcoll_broken=no
1985 rm -fr conftest*
1990 echo "$ac_t""$bash_cv_func_strcoll_broken" 1>&6
1991 if test $bash_cv_func_strcoll_broken = yes; then
1992 cat >> confdefs.h <<\EOF
1993 #define STRCOLL_BROKEN 1
1999 echo $ac_n "checking whether signal handlers are of type void""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether signal handlers are of type void" >&5
2001 if eval "test \"`echo '$''{'bash_cv_void_sighandler'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 #include <sys/types.h>
2008 #include <signal.h>
2009 #ifdef signal
2010 #undef signal
2011 #endif
2012 #ifdef __cplusplus
2013 extern "C"
2014 #endif
2015 void (*signal ()) ();
2016 int main() {
2017 int i;
2018 ; return 0; }
2020 if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2021 rm -rf conftest*
2022 bash_cv_void_sighandler=yes
2023 else
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 rm -rf conftest*
2027 bash_cv_void_sighandler=no
2029 rm -f conftest*
2031 echo "$ac_t""$bash_cv_void_sighandler" 1>&6
2032 if test $bash_cv_void_sighandler = yes; then
2033 cat >> confdefs.h <<\EOF
2034 #define VOID_SIGHANDLER 1
2039 echo $ac_n "checking for TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2040 echo "configure:2041: checking for TIOCGWINSZ in sys/ioctl.h" >&5
2041 if eval "test \"`echo '$''{'bash_cv_tiocgwinsz_in_ioctl'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2043 else
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 #include <sys/types.h>
2048 #include <sys/ioctl.h>
2049 int main() {
2050 int x = TIOCGWINSZ;
2051 ; return 0; }
2053 if { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2054 rm -rf conftest*
2055 bash_cv_tiocgwinsz_in_ioctl=yes
2056 else
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 bash_cv_tiocgwinsz_in_ioctl=no
2062 rm -f conftest*
2065 echo "$ac_t""$bash_cv_tiocgwinsz_in_ioctl" 1>&6
2066 if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
2067 cat >> confdefs.h <<\EOF
2068 #define GWINSZ_IN_SYS_IOCTL 1
2073 echo $ac_n "checking for TIOCSTAT in sys/ioctl.h""... $ac_c" 1>&6
2074 echo "configure:2075: checking for TIOCSTAT in sys/ioctl.h" >&5
2075 if eval "test \"`echo '$''{'bash_cv_tiocstat_in_ioctl'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 #include <sys/types.h>
2082 #include <sys/ioctl.h>
2083 int main() {
2084 int x = TIOCSTAT;
2085 ; return 0; }
2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2088 rm -rf conftest*
2089 bash_cv_tiocstat_in_ioctl=yes
2090 else
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 bash_cv_tiocstat_in_ioctl=no
2096 rm -f conftest*
2099 echo "$ac_t""$bash_cv_tiocstat_in_ioctl" 1>&6
2100 if test $bash_cv_tiocstat_in_ioctl = yes; then
2101 cat >> confdefs.h <<\EOF
2102 #define TIOCSTAT_IN_SYS_IOCTL 1
2107 echo $ac_n "checking for FIONREAD in sys/ioctl.h""... $ac_c" 1>&6
2108 echo "configure:2109: checking for FIONREAD in sys/ioctl.h" >&5
2109 if eval "test \"`echo '$''{'bash_cv_fionread_in_ioctl'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/ioctl.h>
2117 int main() {
2118 int x = FIONREAD;
2119 ; return 0; }
2121 if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2122 rm -rf conftest*
2123 bash_cv_fionread_in_ioctl=yes
2124 else
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 rm -rf conftest*
2128 bash_cv_fionread_in_ioctl=no
2130 rm -f conftest*
2133 echo "$ac_t""$bash_cv_fionread_in_ioctl" 1>&6
2134 if test $bash_cv_fionread_in_ioctl = yes; then
2135 cat >> confdefs.h <<\EOF
2136 #define FIONREAD_IN_SYS_IOCTL 1
2141 echo $ac_n "checking for speed_t in sys/types.h""... $ac_c" 1>&6
2142 echo "configure:2143: checking for speed_t in sys/types.h" >&5
2143 if eval "test \"`echo '$''{'bash_cv_speed_t_in_sys_types'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2150 int main() {
2151 speed_t x;
2152 ; return 0; }
2154 if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 rm -rf conftest*
2156 bash_cv_speed_t_in_sys_types=yes
2157 else
2158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 rm -rf conftest*
2161 bash_cv_speed_t_in_sys_types=no
2163 rm -f conftest*
2166 echo "$ac_t""$bash_cv_speed_t_in_sys_types" 1>&6
2167 if test $bash_cv_speed_t_in_sys_types = yes; then
2168 cat >> confdefs.h <<\EOF
2169 #define SPEED_T_IN_SYS_TYPES 1
2174 echo $ac_n "checking for struct winsize in sys/ioctl.h and termios.h""... $ac_c" 1>&6
2175 echo "configure:2176: checking for struct winsize in sys/ioctl.h and termios.h" >&5
2176 if eval "test \"`echo '$''{'bash_cv_struct_winsize_header'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <sys/ioctl.h>
2184 int main() {
2185 struct winsize x;
2186 ; return 0; }
2188 if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2189 rm -rf conftest*
2190 bash_cv_struct_winsize_header=ioctl_h
2191 else
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 rm -rf conftest*
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <termios.h>
2200 int main() {
2201 struct winsize x;
2202 ; return 0; }
2204 if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2205 rm -rf conftest*
2206 bash_cv_struct_winsize_header=termios_h
2207 else
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2210 rm -rf conftest*
2211 bash_cv_struct_winsize_header=other
2213 rm -f conftest*
2216 rm -f conftest*
2219 if test $bash_cv_struct_winsize_header = ioctl_h; then
2220 echo "$ac_t""sys/ioctl.h" 1>&6
2221 cat >> confdefs.h <<\EOF
2222 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
2225 elif test $bash_cv_struct_winsize_header = termios_h; then
2226 echo "$ac_t""termios.h" 1>&6
2227 cat >> confdefs.h <<\EOF
2228 #define STRUCT_WINSIZE_IN_TERMIOS 1
2231 else
2232 echo "$ac_t""not found" 1>&6
2236 echo $ac_n "checking if struct dirent has a d_ino member""... $ac_c" 1>&6
2237 echo "configure:2238: checking if struct dirent has a d_ino member" >&5
2238 if eval "test \"`echo '$''{'bash_cv_dirent_has_dino'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2240 else
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2245 #include <stdio.h>
2246 #include <sys/types.h>
2247 #ifdef HAVE_UNISTD_H
2248 # include <unistd.h>
2249 #endif /* HAVE_UNISTD_H */
2250 #if defined(HAVE_DIRENT_H)
2251 # include <dirent.h>
2252 #else
2253 # define dirent direct
2254 # ifdef HAVE_SYS_NDIR_H
2255 # include <sys/ndir.h>
2256 # endif /* SYSNDIR */
2257 # ifdef HAVE_SYS_DIR_H
2258 # include <sys/dir.h>
2259 # endif /* SYSDIR */
2260 # ifdef HAVE_NDIR_H
2261 # include <ndir.h>
2262 # endif
2263 #endif /* HAVE_DIRENT_H */
2265 int main() {
2267 struct dirent d; int z; z = d.d_ino;
2269 ; return 0; }
2271 if { (eval echo configure:2272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2272 rm -rf conftest*
2273 bash_cv_dirent_has_dino=yes
2274 else
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 rm -rf conftest*
2278 bash_cv_dirent_has_dino=no
2280 rm -f conftest*
2283 echo "$ac_t""$bash_cv_dirent_has_dino" 1>&6
2284 if test $bash_cv_dirent_has_dino = yes; then
2285 cat >> confdefs.h <<\EOF
2286 #define STRUCT_DIRENT_HAS_D_INO 1
2292 echo $ac_n "checking if struct dirent has a d_fileno member""... $ac_c" 1>&6
2293 echo "configure:2294: checking if struct dirent has a d_fileno member" >&5
2294 if eval "test \"`echo '$''{'bash_cv_dirent_has_d_fileno'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2301 #include <stdio.h>
2302 #include <sys/types.h>
2303 #ifdef HAVE_UNISTD_H
2304 # include <unistd.h>
2305 #endif /* HAVE_UNISTD_H */
2306 #if defined(HAVE_DIRENT_H)
2307 # include <dirent.h>
2308 #else
2309 # define dirent direct
2310 # ifdef HAVE_SYS_NDIR_H
2311 # include <sys/ndir.h>
2312 # endif /* SYSNDIR */
2313 # ifdef HAVE_SYS_DIR_H
2314 # include <sys/dir.h>
2315 # endif /* SYSDIR */
2316 # ifdef HAVE_NDIR_H
2317 # include <ndir.h>
2318 # endif
2319 #endif /* HAVE_DIRENT_H */
2321 int main() {
2323 struct dirent d; int z; z = d.d_fileno;
2325 ; return 0; }
2327 if { (eval echo configure:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2328 rm -rf conftest*
2329 bash_cv_dirent_has_d_fileno=yes
2330 else
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 rm -rf conftest*
2334 bash_cv_dirent_has_d_fileno=no
2336 rm -f conftest*
2339 echo "$ac_t""$bash_cv_dirent_has_d_fileno" 1>&6
2340 if test $bash_cv_dirent_has_d_fileno = yes; then
2341 cat >> confdefs.h <<\EOF
2342 #define STRUCT_DIRENT_HAS_D_FILENO 1
2348 case "$host_os" in
2349 aix*) prefer_curses=yes ;;
2350 esac
2352 if test "X$bash_cv_termcap_lib" = "X"; then
2353 _bash_needmsg=yes
2354 else
2355 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2356 echo "configure:2357: checking which library has the termcap functions" >&5
2357 _bash_needmsg=
2359 if eval "test \"`echo '$''{'bash_cv_termcap_lib'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2361 else
2362 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2363 echo "configure:2364: checking for tgetent in -ltermcap" >&5
2364 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367 else
2368 ac_save_LIBS="$LIBS"
2369 LIBS="-ltermcap $LIBS"
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 /* Override any gcc2 internal prototype to avoid an error. */
2374 /* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2376 char tgetent();
2378 int main() {
2379 tgetent()
2380 ; return 0; }
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 rm -rf conftest*
2384 eval "ac_cv_lib_$ac_lib_var=yes"
2385 else
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2388 rm -rf conftest*
2389 eval "ac_cv_lib_$ac_lib_var=no"
2391 rm -f conftest*
2392 LIBS="$ac_save_LIBS"
2395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2396 echo "$ac_t""yes" 1>&6
2397 bash_cv_termcap_lib=libtermcap
2398 else
2399 echo "$ac_t""no" 1>&6
2400 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
2401 echo "configure:2402: checking for tgetent in -lcurses" >&5
2402 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
2403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2405 else
2406 ac_save_LIBS="$LIBS"
2407 LIBS="-lcurses $LIBS"
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 /* Override any gcc2 internal prototype to avoid an error. */
2412 /* We use char because int might match the return type of a gcc2
2413 builtin and then its argument prototype would still apply. */
2414 char tgetent();
2416 int main() {
2417 tgetent()
2418 ; return 0; }
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2421 rm -rf conftest*
2422 eval "ac_cv_lib_$ac_lib_var=yes"
2423 else
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 rm -rf conftest*
2427 eval "ac_cv_lib_$ac_lib_var=no"
2429 rm -f conftest*
2430 LIBS="$ac_save_LIBS"
2433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2435 bash_cv_termcap_lib=libcurses
2436 else
2437 echo "$ac_t""no" 1>&6
2438 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2439 echo "configure:2440: checking for tgetent in -lncurses" >&5
2440 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
2441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444 ac_save_LIBS="$LIBS"
2445 LIBS="-lncurses $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2452 char tgetent();
2454 int main() {
2455 tgetent()
2456 ; return 0; }
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459 rm -rf conftest*
2460 eval "ac_cv_lib_$ac_lib_var=yes"
2461 else
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 rm -rf conftest*
2465 eval "ac_cv_lib_$ac_lib_var=no"
2467 rm -f conftest*
2468 LIBS="$ac_save_LIBS"
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472 echo "$ac_t""yes" 1>&6
2473 bash_cv_termcap_lib=libncurses
2474 else
2475 echo "$ac_t""no" 1>&6
2476 bash_cv_termcap_lib=gnutermcap
2485 if test "X$_bash_needmsg" = "Xyes"; then
2486 echo $ac_n "checking which library has the termcap functions""... $ac_c" 1>&6
2487 echo "configure:2488: checking which library has the termcap functions" >&5
2489 echo "$ac_t""using $bash_cv_termcap_lib" 1>&6
2490 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
2491 LDFLAGS="$LDFLAGS -L./lib/termcap"
2492 TERMCAP_LIB="./lib/termcap/libtermcap.a"
2493 TERMCAP_DEP="./lib/termcap/libtermcap.a"
2494 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
2495 TERMCAP_LIB=-ltermcap
2496 TERMCAP_DEP=
2497 elif test $bash_cv_termcap_lib = libncurses; then
2498 TERMCAP_LIB=-lncurses
2499 TERMCAP_DEP=
2500 else
2501 TERMCAP_LIB=-lcurses
2502 TERMCAP_DEP=
2505 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
2506 TERMCAP_LIB=-ltermcap #default
2509 case "$host_cpu" in
2510 *cray*) LOCAL_CFLAGS=-DCRAY ;;
2511 esac
2513 case "$host_os" in
2514 isc*) LOCAL_CFLAGS=-Disc386 ;;
2515 esac
2517 # shared library configuration section
2519 # Shared object configuration section. These values are generated by
2520 # ${srcdir}/support/shobj-conf
2522 if test -f ${srcdir}/support/shobj-conf; then
2523 echo $ac_n "checking configuration for building shared libraries""... $ac_c" 1>&6
2524 echo "configure:2525: checking configuration for building shared libraries" >&5
2525 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
2538 echo "$ac_t""$SHLIB_STATUS" 1>&6
2540 # shared library versioning
2541 # quoted for m4 so I can use character classes
2542 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
2543 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
2548 case "$host_os" in
2549 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
2550 *) BUILD_DIR=`pwd` ;;
2551 esac
2570 trap '' 1 2 15
2571 cat > confcache <<\EOF
2572 # This file is a shell script that caches the results of configure
2573 # tests run on this system so they can be shared between configure
2574 # scripts and configure runs. It is not useful on other systems.
2575 # If it contains results you don't want to keep, you may remove or edit it.
2577 # By default, configure uses ./config.cache as the cache file,
2578 # creating it if it does not exist already. You can give configure
2579 # the --cache-file=FILE option to use a different cache file; that is
2580 # what configure does when it calls configure scripts in
2581 # subdirectories, so they share the cache.
2582 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2583 # config.status only pays attention to the cache file if you give it the
2584 # --recheck option to rerun configure.
2587 # The following way of writing the cache mishandles newlines in values,
2588 # but we know of no workaround that is simple, portable, and efficient.
2589 # So, don't put newlines in cache variables' values.
2590 # Ultrix sh set writes to stderr and can't be redirected directly,
2591 # and sets the high bit in the cache file unless we assign to the vars.
2592 (set) 2>&1 |
2593 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2594 *ac_space=\ *)
2595 # `set' does not quote correctly, so add quotes (double-quote substitution
2596 # turns \\\\ into \\, and sed turns \\ into \).
2597 sed -n \
2598 -e "s/'/'\\\\''/g" \
2599 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2602 # `set' quotes correctly as required by POSIX, so do not add quotes.
2603 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2605 esac >> confcache
2606 if cmp -s $cache_file confcache; then
2608 else
2609 if test -w $cache_file; then
2610 echo "updating cache $cache_file"
2611 cat confcache > $cache_file
2612 else
2613 echo "not updating unwritable cache $cache_file"
2616 rm -f confcache
2618 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2621 # Let make expand exec_prefix.
2622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2624 # Any assignment to VPATH causes Sun make to only execute
2625 # the first set of double-colon rules, so remove it if not needed.
2626 # If there is a colon in the path, we need to keep it.
2627 if test "x$srcdir" = x.; then
2628 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2631 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2633 DEFS=-DHAVE_CONFIG_H
2635 # Without the "./", some shells look in PATH for config.status.
2636 : ${CONFIG_STATUS=./config.status}
2638 echo creating $CONFIG_STATUS
2639 rm -f $CONFIG_STATUS
2640 cat > $CONFIG_STATUS <<EOF
2641 #! /bin/sh
2642 # Generated automatically by configure.
2643 # Run this file to recreate the current configuration.
2644 # This directory was configured as follows,
2645 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2647 # $0 $ac_configure_args
2649 # Compiler output produced by configure, useful for debugging
2650 # configure, is in ./config.log if it exists.
2652 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2653 for ac_option
2655 case "\$ac_option" in
2656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2657 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2658 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2659 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2660 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2661 exit 0 ;;
2662 -help | --help | --hel | --he | --h)
2663 echo "\$ac_cs_usage"; exit 0 ;;
2664 *) echo "\$ac_cs_usage"; exit 1 ;;
2665 esac
2666 done
2668 ac_given_srcdir=$srcdir
2669 ac_given_INSTALL="$INSTALL"
2671 trap 'rm -fr `echo "Makefile doc/Makefile examples/Makefile shlib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2673 cat >> $CONFIG_STATUS <<EOF
2675 # Protect against being on the right side of a sed subst in config.status.
2676 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2677 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2678 $ac_vpsub
2679 $extrasub
2680 s%@SHELL@%$SHELL%g
2681 s%@CFLAGS@%$CFLAGS%g
2682 s%@CPPFLAGS@%$CPPFLAGS%g
2683 s%@CXXFLAGS@%$CXXFLAGS%g
2684 s%@FFLAGS@%$FFLAGS%g
2685 s%@DEFS@%$DEFS%g
2686 s%@LDFLAGS@%$LDFLAGS%g
2687 s%@LIBS@%$LIBS%g
2688 s%@exec_prefix@%$exec_prefix%g
2689 s%@prefix@%$prefix%g
2690 s%@program_transform_name@%$program_transform_name%g
2691 s%@bindir@%$bindir%g
2692 s%@sbindir@%$sbindir%g
2693 s%@libexecdir@%$libexecdir%g
2694 s%@datadir@%$datadir%g
2695 s%@sysconfdir@%$sysconfdir%g
2696 s%@sharedstatedir@%$sharedstatedir%g
2697 s%@localstatedir@%$localstatedir%g
2698 s%@libdir@%$libdir%g
2699 s%@includedir@%$includedir%g
2700 s%@oldincludedir@%$oldincludedir%g
2701 s%@infodir@%$infodir%g
2702 s%@mandir@%$mandir%g
2703 s%@host@%$host%g
2704 s%@host_alias@%$host_alias%g
2705 s%@host_cpu@%$host_cpu%g
2706 s%@host_vendor@%$host_vendor%g
2707 s%@host_os@%$host_os%g
2708 s%@CC@%$CC%g
2709 s%@CPP@%$CPP%g
2710 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2711 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2712 s%@INSTALL_DATA@%$INSTALL_DATA%g
2713 s%@AR@%$AR%g
2714 s%@RANLIB@%$RANLIB%g
2715 s%@MAKE_SHELL@%$MAKE_SHELL%g
2716 s%@SHOBJ_CC@%$SHOBJ_CC%g
2717 s%@SHOBJ_CFLAGS@%$SHOBJ_CFLAGS%g
2718 s%@SHOBJ_LD@%$SHOBJ_LD%g
2719 s%@SHOBJ_LDFLAGS@%$SHOBJ_LDFLAGS%g
2720 s%@SHOBJ_XLDFLAGS@%$SHOBJ_XLDFLAGS%g
2721 s%@SHOBJ_LIBS@%$SHOBJ_LIBS%g
2722 s%@SHOBJ_STATUS@%$SHOBJ_STATUS%g
2723 s%@SHLIB_STATUS@%$SHLIB_STATUS%g
2724 s%@SHLIB_XLDFLAGS@%$SHLIB_XLDFLAGS%g
2725 s%@SHLIB_LIBSUFF@%$SHLIB_LIBSUFF%g
2726 s%@SHLIB_LIBVERSION@%$SHLIB_LIBVERSION%g
2727 s%@SHLIB_LIBS@%$SHLIB_LIBS%g
2728 s%@SHLIB_MAJOR@%$SHLIB_MAJOR%g
2729 s%@SHLIB_MINOR@%$SHLIB_MINOR%g
2730 s%@BUILD_DIR@%$BUILD_DIR%g
2731 s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2732 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2733 s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2734 s%@ARFLAGS@%$ARFLAGS%g
2735 s%@LIBVERSION@%$LIBVERSION%g
2736 s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2738 CEOF
2741 cat >> $CONFIG_STATUS <<\EOF
2743 # Split the substitutions into bite-sized pieces for seds with
2744 # small command number limits, like on Digital OSF/1 and HP-UX.
2745 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2746 ac_file=1 # Number of current file.
2747 ac_beg=1 # First line for current file.
2748 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2749 ac_more_lines=:
2750 ac_sed_cmds=""
2751 while $ac_more_lines; do
2752 if test $ac_beg -gt 1; then
2753 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2754 else
2755 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2757 if test ! -s conftest.s$ac_file; then
2758 ac_more_lines=false
2759 rm -f conftest.s$ac_file
2760 else
2761 if test -z "$ac_sed_cmds"; then
2762 ac_sed_cmds="sed -f conftest.s$ac_file"
2763 else
2764 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2766 ac_file=`expr $ac_file + 1`
2767 ac_beg=$ac_end
2768 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2770 done
2771 if test -z "$ac_sed_cmds"; then
2772 ac_sed_cmds=cat
2776 cat >> $CONFIG_STATUS <<EOF
2778 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile examples/Makefile shlib/Makefile"}
2780 cat >> $CONFIG_STATUS <<\EOF
2781 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2783 case "$ac_file" in
2784 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2785 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2786 *) ac_file_in="${ac_file}.in" ;;
2787 esac
2789 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2791 # Remove last slash and all that follows it. Not all systems have dirname.
2792 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2793 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2794 # The file is in a subdirectory.
2795 test ! -d "$ac_dir" && mkdir "$ac_dir"
2796 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2797 # A "../" for each directory in $ac_dir_suffix.
2798 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2799 else
2800 ac_dir_suffix= ac_dots=
2803 case "$ac_given_srcdir" in
2804 .) srcdir=.
2805 if test -z "$ac_dots"; then top_srcdir=.
2806 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2807 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2808 *) # Relative path.
2809 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2810 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2811 esac
2813 case "$ac_given_INSTALL" in
2814 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2815 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2816 esac
2818 echo creating "$ac_file"
2819 rm -f "$ac_file"
2820 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2821 case "$ac_file" in
2822 *Makefile*) ac_comsub="1i\\
2823 # $configure_input" ;;
2824 *) ac_comsub= ;;
2825 esac
2827 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2828 sed -e "$ac_comsub
2829 s%@configure_input@%$configure_input%g
2830 s%@srcdir@%$srcdir%g
2831 s%@top_srcdir@%$top_srcdir%g
2832 s%@INSTALL@%$INSTALL%g
2833 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2834 fi; done
2835 rm -f conftest.s*
2837 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2838 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2840 # ac_d sets the value in "#define NAME VALUE" lines.
2841 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2842 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2843 ac_dC='\3'
2844 ac_dD='%g'
2845 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2846 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2847 ac_uB='\([ ]\)%\1#\2define\3'
2848 ac_uC=' '
2849 ac_uD='\4%g'
2850 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2851 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2852 ac_eB='$%\1#\2define\3'
2853 ac_eC=' '
2854 ac_eD='%g'
2856 if test "${CONFIG_HEADERS+set}" != set; then
2858 cat >> $CONFIG_STATUS <<EOF
2859 CONFIG_HEADERS="config.h"
2861 cat >> $CONFIG_STATUS <<\EOF
2863 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2865 case "$ac_file" in
2866 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2867 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2868 *) ac_file_in="${ac_file}.in" ;;
2869 esac
2871 echo creating $ac_file
2873 rm -f conftest.frag conftest.in conftest.out
2874 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2875 cat $ac_file_inputs > conftest.in
2879 # Transform confdefs.h into a sed script conftest.vals that substitutes
2880 # the proper values into config.h.in to produce config.h. And first:
2881 # Protect against being on the right side of a sed subst in config.status.
2882 # Protect against being in an unquoted here document in config.status.
2883 rm -f conftest.vals
2884 cat > conftest.hdr <<\EOF
2885 s/[\\&%]/\\&/g
2886 s%[\\$`]%\\&%g
2887 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2888 s%ac_d%ac_u%gp
2889 s%ac_u%ac_e%gp
2891 sed -n -f conftest.hdr confdefs.h > conftest.vals
2892 rm -f conftest.hdr
2894 # This sed command replaces #undef with comments. This is necessary, for
2895 # example, in the case of _POSIX_SOURCE, which is predefined and required
2896 # on some systems where configure will not decide to define it.
2897 cat >> conftest.vals <<\EOF
2898 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2901 # Break up conftest.vals because some shells have a limit on
2902 # the size of here documents, and old seds have small limits too.
2904 rm -f conftest.tail
2905 while :
2907 ac_lines=`grep -c . conftest.vals`
2908 # grep -c gives empty output for an empty file on some AIX systems.
2909 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2910 # Write a limited-size here document to conftest.frag.
2911 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2912 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2913 echo 'CEOF
2914 sed -f conftest.frag conftest.in > conftest.out
2915 rm -f conftest.in
2916 mv conftest.out conftest.in
2917 ' >> $CONFIG_STATUS
2918 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2919 rm -f conftest.vals
2920 mv conftest.tail conftest.vals
2921 done
2922 rm -f conftest.vals
2924 cat >> $CONFIG_STATUS <<\EOF
2925 rm -f conftest.frag conftest.h
2926 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2927 cat conftest.in >> conftest.h
2928 rm -f conftest.in
2929 if cmp -s $ac_file conftest.h 2>/dev/null; then
2930 echo "$ac_file is unchanged"
2931 rm -f conftest.h
2932 else
2933 # Remove last slash and all that follows it. Not all systems have dirname.
2934 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2936 # The file is in a subdirectory.
2937 test ! -d "$ac_dir" && mkdir "$ac_dir"
2939 rm -f $ac_file
2940 mv conftest.h $ac_file
2942 fi; done
2945 cat >> $CONFIG_STATUS <<EOF
2948 cat >> $CONFIG_STATUS <<\EOF
2950 # Makefile uses this timestamp file to record whether config.h is up to date.
2951 echo > stamp-h
2953 exit 0
2955 chmod +x $CONFIG_STATUS
2956 rm -fr confdefs* $ac_clean_files
2957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1