3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-bitops Enable Octal and Hex constants and bit functions"
17 --enable-non-decimal-data Enable Octal and Hex constants as valid input data"
19 --disable-largefile omit support for large files"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='\c' ac_t=
533 # Check whether --enable-bitops or --disable-bitops was given.
534 if test "${enable_bitops+set}" = set; then
535 enableval="$enable_bitops"
536 cat >> confdefs.h <<\EOF
542 # Check whether --enable-non-decimal-data or --disable-non-decimal-data was given.
543 if test "${enable_non_decimal_data+set}" = set; then
544 enableval="$enable_non_decimal_data"
545 cat >> confdefs.h <<\EOF
552 for ac_prog in 'bison -y' byacc
554 # Extract the first word of "$ac_prog", so it can be a program name with args.
555 set dummy $ac_prog; ac_word=$2
556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557 echo "configure:558: checking for $ac_word" >&5
558 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
559 echo $ac_n "(cached) $ac_c" 1>&6
561 if test -n "$YACC"; then
562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
566 for ac_dir in $ac_dummy; do
567 test -z "$ac_dir" && ac_dir=.
568 if test -f $ac_dir/$ac_word; then
569 ac_cv_prog_YACC="$ac_prog"
576 YACC="$ac_cv_prog_YACC"
577 if test -n "$YACC"; then
578 echo "$ac_t""$YACC" 1>&6
580 echo "$ac_t""no" 1>&6
583 test -n "$YACC" && break
585 test -n "$YACC" || YACC="yacc"
587 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
588 echo "configure:589: checking whether ln -s works" >&5
589 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
593 if ln -s X conftestdata 2>/dev/null
596 ac_cv_prog_LN_S="ln -s"
601 LN_S="$ac_cv_prog_LN_S"
602 if test "$ac_cv_prog_LN_S" = "ln -s"; then
603 echo "$ac_t""yes" 1>&6
605 echo "$ac_t""no" 1>&6
608 # Extract the first word of "gcc", so it can be a program name with args.
609 set dummy gcc; ac_word=$2
610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
611 echo "configure:612: checking for $ac_word" >&5
612 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
613 echo $ac_n "(cached) $ac_c" 1>&6
615 if test -n "$CC"; then
616 ac_cv_prog_CC="$CC" # Let the user override the test.
618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
620 for ac_dir in $ac_dummy; do
621 test -z "$ac_dir" && ac_dir=.
622 if test -f $ac_dir/$ac_word; then
631 if test -n "$CC"; then
632 echo "$ac_t""$CC" 1>&6
634 echo "$ac_t""no" 1>&6
637 if test -z "$CC"; then
638 # Extract the first word of "cc", so it can be a program name with args.
639 set dummy cc; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
651 for ac_dir in $ac_dummy; do
652 test -z "$ac_dir" && ac_dir=.
653 if test -f $ac_dir/$ac_word; then
654 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
663 if test $ac_prog_rejected = yes; then
664 # We found a bogon in the path, so make sure we never use it.
665 set dummy $ac_cv_prog_CC
667 if test $# -gt 0; then
668 # We chose a different compiler from the bogus one.
669 # However, it has the same basename, so the bogon will be chosen
670 # first if we set CC to just the basename; use the full file name.
672 set dummy "$ac_dir/$ac_word" "$@"
680 if test -n "$CC"; then
681 echo "$ac_t""$CC" 1>&6
683 echo "$ac_t""no" 1>&6
686 if test -z "$CC"; then
689 # Extract the first word of "cl", so it can be a program name with args.
690 set dummy cl; ac_word=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
701 for ac_dir in $ac_dummy; do
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
715 echo "$ac_t""no" 1>&6
720 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
723 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
724 echo "configure:725: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
728 ac_cpp='$CPP $CPPFLAGS'
729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
731 cross_compiling=$ac_cv_prog_cc_cross
733 cat > conftest.$ac_ext << EOF
735 #line 736 "configure"
736 #include "confdefs.h"
740 if { (eval echo configure:741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
741 ac_cv_prog_cc_works=yes
742 # If we can't run a trivial program, we are probably using a cross compiler.
743 if (./conftest; exit) 2>/dev/null; then
744 ac_cv_prog_cc_cross=no
746 ac_cv_prog_cc_cross=yes
749 echo "configure: failed program was:" >&5
750 cat conftest.$ac_ext >&5
751 ac_cv_prog_cc_works=no
755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
756 ac_cpp='$CPP $CPPFLAGS'
757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
759 cross_compiling=$ac_cv_prog_cc_cross
761 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
762 if test $ac_cv_prog_cc_works = no; then
763 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
767 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
768 cross_compiling=$ac_cv_prog_cc_cross
770 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
771 echo "configure:772: checking whether we are using GNU C" >&5
772 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
775 cat > conftest.c <<EOF
780 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
787 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
789 if test $ac_cv_prog_gcc = yes; then
795 ac_test_CFLAGS="${CFLAGS+set}"
796 ac_save_CFLAGS="$CFLAGS"
798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
799 echo "configure:800: checking whether ${CC-cc} accepts -g" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
803 echo 'void f(){}' > conftest.c
804 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
813 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
814 if test "$ac_test_CFLAGS" = set; then
815 CFLAGS="$ac_save_CFLAGS"
816 elif test $ac_cv_prog_cc_g = yes; then
817 if test "$GCC" = yes; then
823 if test "$GCC" = yes; then
830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
831 echo "configure:832: checking how to run the C preprocessor" >&5
832 # On Suns, sometimes $CPP names a directory.
833 if test -n "$CPP" && test -d "$CPP"; then
836 if test -z "$CPP"; then
837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 # This must be in double quotes, not single quotes, because CPP may get
841 # substituted into the Makefile and "${CC-cc}" will confuse make.
843 # On the NeXT, cc -E runs the code through the compiler's parser,
844 # not just through cpp.
845 cat > conftest.$ac_ext <<EOF
846 #line 847 "configure"
847 #include "confdefs.h"
851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
852 { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
854 if test -z "$ac_err"; then
858 echo "configure: failed program was:" >&5
859 cat conftest.$ac_ext >&5
861 CPP="${CC-cc} -E -traditional-cpp"
862 cat > conftest.$ac_ext <<EOF
863 #line 864 "configure"
864 #include "confdefs.h"
868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
869 { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
871 if test -z "$ac_err"; then
875 echo "configure: failed program was:" >&5
876 cat conftest.$ac_ext >&5
878 CPP="${CC-cc} -nologo -E"
879 cat > conftest.$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886 { (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
888 if test -z "$ac_err"; then
892 echo "configure: failed program was:" >&5
893 cat conftest.$ac_ext >&5
902 ac_cv_prog_CPP="$CPP"
904 CPP="$ac_cv_prog_CPP"
906 ac_cv_prog_CPP="$CPP"
908 echo "$ac_t""$CPP" 1>&6
911 # This is a hack. Different versions of install on different systems
912 # are just too different. Chuck it and use install-sh.
913 INSTALL="$srcdir/install-sh -c"; export INSTALL
915 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
916 if test -f $ac_dir/install-sh; then
918 ac_install_sh="$ac_aux_dir/install-sh -c"
920 elif test -f $ac_dir/install.sh; then
922 ac_install_sh="$ac_aux_dir/install.sh -c"
926 if test -z "$ac_aux_dir"; then
927 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
929 ac_config_guess=$ac_aux_dir/config.guess
930 ac_config_sub=$ac_aux_dir/config.sub
931 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
933 # Find a good install program. We prefer a C program (faster),
934 # so one script is as good as another. But avoid the broken or
935 # incompatible versions:
936 # SysV /etc/install, /usr/sbin/install
937 # SunOS /usr/etc/install
940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
943 # ./install, which can be erroneously created by make from ./install.sh.
944 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
945 echo "configure:946: checking for a BSD compatible install" >&5
946 if test -z "$INSTALL"; then
947 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
951 for ac_dir in $PATH; do
952 # Account for people who put trailing slashes in PATH elements.
954 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
956 # OSF1 and SCO ODT 3.0 have their own names for install.
957 # Don't use installbsd from OSF since it installs stuff as root
959 for ac_prog in ginstall scoinst install; do
960 if test -f $ac_dir/$ac_prog; then
961 if test $ac_prog = install &&
962 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
963 # AIX install. It has an incompatible calling convention.
966 ac_cv_path_install="$ac_dir/$ac_prog -c"
977 if test "${ac_cv_path_install+set}" = set; then
978 INSTALL="$ac_cv_path_install"
980 # As a last resort, use the slow shell script. We don't cache a
981 # path for INSTALL within a source directory, because that will
982 # break other packages using the cache if that directory is
983 # removed, or if the path is relative.
984 INSTALL="$ac_install_sh"
987 echo "$ac_t""$INSTALL" 1>&6
989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
990 # It thinks the first close brace ends the variable substitution.
991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
998 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${MAKE-make} sets \${MAKE}" >&5
1000 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1001 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 cat > conftestmake <<\EOF
1006 @echo 'ac_maketemp="${MAKE}"'
1008 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1009 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1010 if test -n "$ac_maketemp"; then
1011 eval ac_cv_prog_make_${ac_make}_set=yes
1013 eval ac_cv_prog_make_${ac_make}_set=no
1017 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1018 echo "$ac_t""yes" 1>&6
1021 echo "$ac_t""no" 1>&6
1022 SET_MAKE="MAKE=${MAKE-make}"
1026 if test "$CFLAGS" = ""
1028 if test "$GCC" = yes
1036 # This is mainly for my use during testing and development.
1037 # Yes, it's a bit of a hack.
1038 if test -f $srcdir/.developing
1040 cat >> confdefs.h <<\EOF
1044 cat >> confdefs.h <<\EOF
1045 #define NONDECDATA 1
1048 CFLAGS="$CFLAGS -DARRAYDEBUG"
1053 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1054 echo "configure:1055: checking for AIX" >&5
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1064 egrep "yes" >/dev/null 2>&1; then
1066 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1067 #define _ALL_SOURCE 1
1072 echo "$ac_t""no" 1>&6
1077 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1078 echo "configure:1079: checking for POSIXized ISC" >&5
1079 if test -d /etc/conf/kconfig.d &&
1080 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1082 echo "$ac_t""yes" 1>&6
1083 ISC=yes # If later tests want to check for ISC.
1084 cat >> confdefs.h <<\EOF
1085 #define _POSIX_SOURCE 1
1088 if test "$GCC" = yes; then
1094 echo "$ac_t""no" 1>&6
1098 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1099 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1100 echo "configure:1101: checking for minix/config.h" >&5
1101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 cat > conftest.$ac_ext <<EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1107 #include <minix/config.h>
1109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110 { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1112 if test -z "$ac_err"; then
1114 eval "ac_cv_header_$ac_safe=yes"
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1120 eval "ac_cv_header_$ac_safe=no"
1124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1125 echo "$ac_t""yes" 1>&6
1128 echo "$ac_t""no" 1>&6
1132 if test "$MINIX" = yes; then
1133 cat >> confdefs.h <<\EOF
1134 #define _POSIX_SOURCE 1
1137 cat >> confdefs.h <<\EOF
1138 #define _POSIX_1_SOURCE 2
1141 cat >> confdefs.h <<\EOF
1147 # Check whether --enable-largefile or --disable-largefile was given.
1148 if test "${enable_largefile+set}" = set; then
1149 enableval="$enable_largefile"
1153 if test "$enable_largefile" != no; then
1155 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
1156 echo "configure:1157: checking for special C compiler options needed for large files" >&5
1157 if eval "test \"`echo '$''{'gawk_cv_sys_largefile_CC'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 gawk_cv_sys_largefile_CC=no
1161 if test "$GCC" != yes; then
1162 # IRIX 6.2 and later do not support large files by default,
1163 # so use the C compiler's -n32 option if that helps.
1164 cat > conftest.$ac_ext <<EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1167 #include <sys/types.h>
1168 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1174 if { (eval echo configure:1175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1185 #include <sys/types.h>
1186 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1192 if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1194 gawk_cv_sys_largefile_CC=' -n32'
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1206 echo "$ac_t""$gawk_cv_sys_largefile_CC" 1>&6
1207 if test "$gawk_cv_sys_largefile_CC" != no; then
1208 CC="$CC$gawk_cv_sys_largefile_CC"
1211 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
1212 echo "configure:1213: checking for _FILE_OFFSET_BITS value needed for large files" >&5
1213 if eval "test \"`echo '$''{'gawk_cv_sys_file_offset_bits'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 gawk_cv_sys_file_offset_bits=no
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1220 #include <sys/types.h>
1221 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1229 if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1232 echo "configure: failed program was:" >&5
1233 cat conftest.$ac_ext >&5
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 #define _FILE_OFFSET_BITS 64
1239 #include <sys/types.h>
1240 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1248 if { (eval echo configure:1249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1250 gawk_cv_sys_file_offset_bits=64
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1260 echo "$ac_t""$gawk_cv_sys_file_offset_bits" 1>&6
1261 if test "$gawk_cv_sys_file_offset_bits" != no; then
1262 cat >> confdefs.h <<EOF
1263 #define _FILE_OFFSET_BITS $gawk_cv_sys_file_offset_bits
1267 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
1268 echo "configure:1269: checking for _LARGEFILE_SOURCE value needed for large files" >&5
1269 if eval "test \"`echo '$''{'gawk_cv_sys_largefile_source'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 gawk_cv_sys_largefile_source=no
1273 cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1276 #include <sys/types.h>
1277 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1285 if { (eval echo configure:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1288 echo "configure: failed program was:" >&5
1289 cat conftest.$ac_ext >&5
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 #define _LARGEFILE_SOURCE 1
1295 #include <sys/types.h>
1296 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1304 if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1306 gawk_cv_sys_largefile_source=1
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1316 echo "$ac_t""$gawk_cv_sys_largefile_source" 1>&6
1317 if test "$gawk_cv_sys_largefile_source" != no; then
1318 cat >> confdefs.h <<EOF
1319 #define _LARGEFILE_SOURCE $gawk_cv_sys_largefile_source
1323 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
1324 echo "configure:1325: checking for _LARGE_FILES value needed for large files" >&5
1325 if eval "test \"`echo '$''{'gawk_cv_sys_large_files'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 gawk_cv_sys_large_files=no
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332 #include <sys/types.h>
1333 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350 #define _LARGE_FILES 1
1351 #include <sys/types.h>
1352 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1360 if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1362 gawk_cv_sys_large_files=1
1364 echo "configure: failed program was:" >&5
1365 cat conftest.$ac_ext >&5
1372 echo "$ac_t""$gawk_cv_sys_large_files" 1>&6
1373 if test "$gawk_cv_sys_large_files" != no; then
1374 cat >> confdefs.h <<EOF
1375 #define _LARGE_FILES $gawk_cv_sys_large_files
1379 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
1380 echo "configure:1381: checking for _XOPEN_SOURCE value needed for large files" >&5
1381 if eval "test \"`echo '$''{'gawk_cv_sys_xopen_source'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 gawk_cv_sys_xopen_source=no
1385 cat > conftest.$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1388 #include <sys/types.h>
1389 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1397 if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1406 #define _XOPEN_SOURCE 500
1407 #include <sys/types.h>
1408 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
1416 if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418 gawk_cv_sys_xopen_source=500
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1428 echo "$ac_t""$gawk_cv_sys_xopen_source" 1>&6
1429 if test "$gawk_cv_sys_xopen_source" != no; then
1430 cat >> confdefs.h <<EOF
1431 #define _XOPEN_SOURCE $gawk_cv_sys_xopen_source
1438 echo $ac_n "checking for AIX compilation hacks""... $ac_c" 1>&6
1439 echo "configure:1440: checking for AIX compilation hacks" >&5
1440 if eval "test \"`echo '$''{'gawk_cv_aix_hack'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1446 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
1447 gawk_cv_aix_hack=yes
1453 echo "$ac_t""${gawk_cv_aix_hack}" 1>&6
1456 if test "$ISC" = 1 # will be set by test for ISC
1458 CFLAGS="$CFLAGS -D_SYSV3"
1461 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1462 echo "configure:1463: checking for ANSI C header files" >&5
1463 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1475 { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1477 if test -z "$ac_err"; then
1479 ac_cv_header_stdc=yes
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 ac_cv_header_stdc=no
1489 if test $ac_cv_header_stdc = yes; then
1490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1491 cat > conftest.$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1497 egrep "memchr" >/dev/null 2>&1; then
1501 ac_cv_header_stdc=no
1507 if test $ac_cv_header_stdc = yes; then
1508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1515 egrep "free" >/dev/null 2>&1; then
1519 ac_cv_header_stdc=no
1525 if test $ac_cv_header_stdc = yes; then
1526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1527 if test "$cross_compiling" = yes; then
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1534 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1535 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1537 int main () { int i; for (i = 0; i < 256; i++)
1538 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 ac_cv_header_stdc=no
1557 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1558 if test $ac_cv_header_stdc = yes; then
1559 cat >> confdefs.h <<\EOF
1560 #define STDC_HEADERS 1
1565 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1566 echo "configure:1567: checking for sys/wait.h that is POSIX.1 compatible" >&5
1567 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 #include <sys/types.h>
1574 #include <sys/wait.h>
1576 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1579 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1584 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1589 ac_cv_header_sys_wait_h=yes
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1594 ac_cv_header_sys_wait_h=no
1599 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1600 if test $ac_cv_header_sys_wait_h = yes; then
1601 cat >> confdefs.h <<\EOF
1602 #define HAVE_SYS_WAIT_H 1
1607 for ac_hdr in limits.h locale.h stdarg.h unistd.h signum.h sys/param.h string.h
1609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1611 echo "configure:1612: checking for $ac_hdr" >&5
1612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1621 { (eval echo configure:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1623 if test -z "$ac_err"; then
1625 eval "ac_cv_header_$ac_safe=yes"
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1631 eval "ac_cv_header_$ac_safe=no"
1635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1638 cat >> confdefs.h <<EOF
1639 #define $ac_tr_hdr 1
1643 echo "$ac_t""no" 1>&6
1647 if test "$ac_cv_header_string_h" = yes
1649 for ac_hdr in memory.h
1651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_hdr" >&5
1654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1663 { (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1665 if test -z "$ac_err"; then
1667 eval "ac_cv_header_$ac_safe=yes"
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1673 eval "ac_cv_header_$ac_safe=no"
1677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1680 cat >> confdefs.h <<EOF
1681 #define $ac_tr_hdr 1
1685 echo "$ac_t""no" 1>&6
1690 for ac_hdr in strings.h
1692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_hdr" >&5
1695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1708 eval "ac_cv_header_$ac_safe=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 eval "ac_cv_header_$ac_safe=no"
1718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1721 cat >> confdefs.h <<EOF
1722 #define $ac_tr_hdr 1
1726 echo "$ac_t""no" 1>&6
1732 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1733 echo "configure:1734: checking for pid_t" >&5
1734 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 #include <sys/types.h>
1746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1747 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1749 ac_cv_type_pid_t=yes
1757 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1758 if test $ac_cv_type_pid_t = no; then
1759 cat >> confdefs.h <<\EOF
1765 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1766 echo "configure:1767: checking return type of signal handlers" >&5
1767 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 #include <sys/types.h>
1779 extern "C" void (*signal (int, void (*)(int)))(int);
1781 void (*signal ()) ();
1788 if { (eval echo configure:1789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1790 ac_cv_type_signal=void
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 ac_cv_type_signal=int
1800 echo "$ac_t""$ac_cv_type_signal" 1>&6
1801 cat >> confdefs.h <<EOF
1802 #define RETSIGTYPE $ac_cv_type_signal
1806 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1807 echo "configure:1808: checking for size_t" >&5
1808 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #include <sys/types.h>
1820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1821 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1823 ac_cv_type_size_t=yes
1826 ac_cv_type_size_t=no
1831 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1832 if test $ac_cv_type_size_t = no; then
1833 cat >> confdefs.h <<\EOF
1834 #define size_t unsigned
1839 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1840 echo "configure:1841: checking for uid_t in sys/types.h" >&5
1841 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 #include <sys/types.h>
1849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1850 egrep "uid_t" >/dev/null 2>&1; then
1852 ac_cv_type_uid_t=yes
1861 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1862 if test $ac_cv_type_uid_t = no; then
1863 cat >> confdefs.h <<\EOF
1867 cat >> confdefs.h <<\EOF
1873 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
1874 echo "configure:1875: checking type of array argument to getgroups" >&5
1875 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test "$cross_compiling" = yes; then
1879 ac_cv_type_getgroups=cross
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1885 /* Thanks to Mike Rendell for this test. */
1886 #include <sys/types.h>
1889 #define MAX(x, y) ((x) > (y) ? (x) : (y))
1894 union { gid_t gval; long lval; } val;
1897 for (i = 0; i < NGID; i++)
1898 gidset[i] = val.gval;
1899 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
1901 /* Exit non-zero if getgroups seems to require an array of ints. This
1902 happens when gid_t is short but getgroups modifies an array of ints. */
1903 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
1907 if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1909 ac_cv_type_getgroups=gid_t
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 ac_cv_type_getgroups=int
1919 if test $ac_cv_type_getgroups = cross; then
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
1928 ac_cv_type_getgroups=gid_t
1931 ac_cv_type_getgroups=int
1938 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
1939 cat >> confdefs.h <<EOF
1940 #define GETGROUPS_T $ac_cv_type_getgroups
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1950 egrep "int.*sprintf" >/dev/null 2>&1; then
1952 cat >> confdefs.h <<\EOF
1953 #define SPRINTF_RET int
1958 cat >> confdefs.h <<\EOF
1959 #define SPRINTF_RET char *
1966 if test "$YACC" = "bison -y" ||
1967 { test -f $srcdir/awktab.c && grep 'alloca *(' $srcdir/awktab.c > /dev/null; }
1969 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1970 # for constant arguments. Useless!
1971 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1972 echo "configure:1973: checking for working alloca.h" >&5
1973 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1981 char *p = alloca(2 * sizeof(int));
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 ac_cv_header_alloca_h=yes
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1991 ac_cv_header_alloca_h=no
1996 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1997 if test $ac_cv_header_alloca_h = yes; then
1998 cat >> confdefs.h <<\EOF
1999 #define HAVE_ALLOCA_H 1
2004 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2005 echo "configure:2006: checking for alloca" >&5
2006 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2014 # define alloca __builtin_alloca
2017 # include <malloc.h>
2018 # define alloca _alloca
2021 # include <alloca.h>
2026 # ifndef alloca /* predefined by HP cc +Olibcalls */
2035 char *p = (char *) alloca(1);
2038 if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2040 ac_cv_func_alloca_works=yes
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 ac_cv_func_alloca_works=no
2050 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2051 if test $ac_cv_func_alloca_works = yes; then
2052 cat >> confdefs.h <<\EOF
2053 #define HAVE_ALLOCA 1
2058 if test $ac_cv_func_alloca_works = no; then
2059 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2060 # that cause trouble. Some versions do not even contain alloca or
2061 # contain a buggy version. If you still want to use their alloca,
2062 # use ar to extract alloca.o from them instead of compiling alloca.c.
2063 ALLOCA=alloca.${ac_objext}
2064 cat >> confdefs.h <<\EOF
2069 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2070 echo "configure:2071: checking whether alloca needs Cray hooks" >&5
2071 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077 #if defined(CRAY) && ! defined(CRAY2)
2084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2085 egrep "webecray" >/dev/null 2>&1; then
2096 echo "$ac_t""$ac_cv_os_cray" 1>&6
2097 if test $ac_cv_os_cray = yes; then
2098 for ac_func in _getb67 GETB67 getb67; do
2099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_func" >&5
2101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 /* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $ac_func(); below. */
2110 /* Override any gcc2 internal prototype to avoid an error. */
2111 /* We use char because int might match the return type of a gcc2
2112 builtin and then its argument prototype would still apply. */
2117 /* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2128 if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2130 eval "ac_cv_func_$ac_func=yes"
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2135 eval "ac_cv_func_$ac_func=no"
2140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2141 echo "$ac_t""yes" 1>&6
2142 cat >> confdefs.h <<EOF
2143 #define CRAY_STACKSEG_END $ac_func
2148 echo "$ac_t""no" 1>&6
2154 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2155 echo "configure:2156: checking stack direction for C alloca" >&5
2156 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 if test "$cross_compiling" = yes; then
2160 ac_cv_c_stack_direction=0
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 find_stack_direction ()
2167 static char *addr = 0;
2172 return find_stack_direction ();
2175 return (&dummy > addr) ? 1 : -1;
2179 exit (find_stack_direction() < 0);
2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2184 ac_cv_c_stack_direction=1
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 ac_cv_c_stack_direction=-1
2196 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2197 cat >> confdefs.h <<EOF
2198 #define STACK_DIRECTION $ac_cv_c_stack_direction
2204 cat >> confdefs.h <<\EOF
2205 #define REGEX_MALLOC 1
2208 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2209 echo "configure:2210: checking for vprintf" >&5
2210 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+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 /* System header to define __stub macros and hopefully few prototypes,
2217 which can conflict with char vprintf(); below. */
2219 /* Override any gcc2 internal prototype to avoid an error. */
2220 /* We use char because int might match the return type of a gcc2
2221 builtin and then its argument prototype would still apply. */
2226 /* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2237 if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 eval "ac_cv_func_vprintf=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 eval "ac_cv_func_vprintf=no"
2249 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251 cat >> confdefs.h <<\EOF
2252 #define HAVE_VPRINTF 1
2256 echo "$ac_t""no" 1>&6
2259 if test "$ac_cv_func_vprintf" != yes; then
2260 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2261 echo "configure:2262: checking for _doprnt" >&5
2262 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 /* System header to define __stub macros and hopefully few prototypes,
2269 which can conflict with char _doprnt(); below. */
2271 /* Override any gcc2 internal prototype to avoid an error. */
2272 /* We use char because int might match the return type of a gcc2
2273 builtin and then its argument prototype would still apply. */
2278 /* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2291 eval "ac_cv_func__doprnt=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_func__doprnt=no"
2301 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2303 cat >> confdefs.h <<\EOF
2304 #define HAVE_DOPRNT 1
2308 echo "$ac_t""no" 1>&6
2314 echo $ac_n "checking for fmod in -lm""... $ac_c" 1>&6
2315 echo "configure:2316: checking for fmod in -lm" >&5
2316 ac_lib_var=`echo m'_'fmod | sed 'y%./+-%__p_%'`
2317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 ac_save_LIBS="$LIBS"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2336 eval "ac_cv_lib_$ac_lib_var=yes"
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 eval "ac_cv_lib_$ac_lib_var=no"
2344 LIBS="$ac_save_LIBS"
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351 cat >> confdefs.h <<EOF
2352 #define $ac_tr_lib 1
2358 echo "$ac_t""no" 1>&6
2361 for ac_func in madvise memset memcpy memcmp fmod setlocale strchr strerror \
2362 strftime strncasecmp strtod system tzset
2364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2365 echo "configure:2366: checking for $ac_func" >&5
2366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 /* System header to define __stub macros and hopefully few prototypes,
2373 which can conflict with char $ac_func(); below. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2382 /* The GNU C library defines this for functions which it implements
2383 to always fail with ENOSYS. Some functions are actually named
2384 something starting with __ and the normal name is an alias. */
2385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2393 if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2395 eval "ac_cv_func_$ac_func=yes"
2397 echo "configure: failed program was:" >&5
2398 cat conftest.$ac_ext >&5
2400 eval "ac_cv_func_$ac_func=no"
2405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2408 cat >> confdefs.h <<EOF
2409 #define $ac_tr_func 1
2413 echo "$ac_t""no" 1>&6
2418 for ac_hdr in unistd.h
2420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h <<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 for ac_func in getpagesize
2460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_func" >&5
2462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char $ac_func(); below. */
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2478 /* The GNU C library defines this for functions which it implements
2479 to always fail with ENOSYS. Some functions are actually named
2480 something starting with __ and the normal name is an alias. */
2481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 eval "ac_cv_func_$ac_func=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 eval "ac_cv_func_$ac_func=no"
2501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2504 cat >> confdefs.h <<EOF
2505 #define $ac_tr_func 1
2509 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2514 echo "configure:2515: checking for working mmap" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 if test "$cross_compiling" = yes; then
2519 ac_cv_func_mmap_fixed_mapped=no
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2525 /* Thanks to Mike Haertel and Jim Avera for this test.
2526 Here is a matrix of mmap possibilities:
2527 mmap private not fixed
2528 mmap private fixed at somewhere currently unmapped
2529 mmap private fixed at somewhere already mapped
2530 mmap shared not fixed
2531 mmap shared fixed at somewhere currently unmapped
2532 mmap shared fixed at somewhere already mapped
2533 For private mappings, we should verify that changes cannot be read()
2534 back from the file, nor mmap's back from the file at a different
2535 address. (There have been systems where private was not correctly
2536 implemented like the infamous i386 svr4.0, and systems where the
2537 VM page cache was not coherent with the filesystem buffer cache
2538 like early versions of FreeBSD and possibly contemporary NetBSD.)
2539 For shared mappings, we should conversely verify that changes get
2540 propogated back to all the places they're supposed to be.
2542 Grep wants private fixed already mapped.
2543 The main things grep needs to know about mmap are:
2544 * does it exist and is it safe to write into the mmap'd area
2545 * how to use it (BSD variants) */
2546 #include <sys/types.h>
2548 #include <sys/mman.h>
2550 /* This mess was copied from the GNU getpagesize.h. */
2551 #ifndef HAVE_GETPAGESIZE
2552 # ifdef HAVE_UNISTD_H
2553 # include <unistd.h>
2556 /* Assume that all systems that can run configure have sys/param.h. */
2557 # ifndef HAVE_SYS_PARAM_H
2558 # define HAVE_SYS_PARAM_H 1
2561 # ifdef _SC_PAGESIZE
2562 # define getpagesize() sysconf(_SC_PAGESIZE)
2563 # else /* no _SC_PAGESIZE */
2564 # ifdef HAVE_SYS_PARAM_H
2565 # include <sys/param.h>
2566 # ifdef EXEC_PAGESIZE
2567 # define getpagesize() EXEC_PAGESIZE
2568 # else /* no EXEC_PAGESIZE */
2570 # define getpagesize() NBPG * CLSIZE
2573 # endif /* no CLSIZE */
2574 # else /* no NBPG */
2576 # define getpagesize() NBPC
2577 # else /* no NBPC */
2579 # define getpagesize() PAGESIZE
2580 # endif /* PAGESIZE */
2581 # endif /* no NBPC */
2582 # endif /* no NBPG */
2583 # endif /* no EXEC_PAGESIZE */
2584 # else /* no HAVE_SYS_PARAM_H */
2585 # define getpagesize() 8192 /* punt totally */
2586 # endif /* no HAVE_SYS_PARAM_H */
2587 # endif /* no _SC_PAGESIZE */
2589 #endif /* no HAVE_GETPAGESIZE */
2592 extern "C" { void *malloc(unsigned); }
2600 char *data, *data2, *data3;
2604 pagesize = getpagesize();
2607 * First, make a file with some known garbage in it.
2609 data = malloc(pagesize);
2612 for (i = 0; i < pagesize; ++i)
2613 *(data + i) = rand();
2615 fd = creat("conftestmmap", 0600);
2618 if (write(fd, data, pagesize) != pagesize)
2623 * Next, try to mmap the file at a fixed address which
2624 * already has something else allocated at it. If we can,
2625 * also make sure that we see the same garbage.
2627 fd = open("conftestmmap", O_RDWR);
2630 data2 = malloc(2 * pagesize);
2633 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2634 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2635 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2637 for (i = 0; i < pagesize; ++i)
2638 if (*(data + i) != *(data2 + i))
2642 * Finally, make sure that changes to the mapped area
2643 * do not percolate back to the file as seen by read().
2644 * (This is a bug on some variants of i386 svr4.0.)
2646 for (i = 0; i < pagesize; ++i)
2647 *(data2 + i) = *(data2 + i) + 1;
2648 data3 = malloc(pagesize);
2651 if (read(fd, data3, pagesize) != pagesize)
2653 for (i = 0; i < pagesize; ++i)
2654 if (*(data + i) != *(data3 + i))
2657 unlink("conftestmmap");
2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2664 ac_cv_func_mmap_fixed_mapped=yes
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2669 ac_cv_func_mmap_fixed_mapped=no
2676 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2677 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2678 cat >> confdefs.h <<\EOF
2685 if (uname) > /dev/null 2>&1
2689 cat >> confdefs.h <<\EOF
2690 #define GETPGRP_VOID 1
2694 *HP-UX*) # not getpgrp related
2695 if test "$GCC" = yes
2699 # stupid HP linker leaves the output file
2700 # around even when a link fails. This confuses
2701 # the alloca tests, so we have to do this
2702 # manually. Sucks big time.
2706 # have to do the getpgrp test since won't
2707 # fall into the default
2708 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
2709 echo "configure:2710: checking whether getpgrp takes no argument" >&5
2710 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 if test "$cross_compiling" = yes; then
2714 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 * If this system has a BSD-style getpgrp(),
2722 * which takes a pid argument, exit unsuccessfully.
2724 * Snarfed from Chet Ramey's bash pgrp.c test program
2727 #include <sys/types.h>
2730 int pg1, pg2, pg3, pg4;
2731 int ng, np, s, child;
2742 * If all of these values are the same, it's pretty sure that
2743 * we're on a system that ignores getpgrp's first argument.
2745 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
2751 else if (child == 0) {
2754 * If this is Sys V, this will not work; pgrp will be
2755 * set to np because setpgrp just changes a pgrp to be
2756 * the same as the pid.
2759 ng = getpgrp(0); /* Same result for Sys V and BSD */
2772 if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2774 ac_cv_func_getpgrp_void=yes
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2779 ac_cv_func_getpgrp_void=no
2787 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
2788 if test $ac_cv_func_getpgrp_void = yes; then
2789 cat >> confdefs.h <<\EOF
2790 #define GETPGRP_VOID 1
2796 *) echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
2797 echo "configure:2798: checking whether getpgrp takes no argument" >&5
2798 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 if test "$cross_compiling" = yes; then
2802 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 * If this system has a BSD-style getpgrp(),
2810 * which takes a pid argument, exit unsuccessfully.
2812 * Snarfed from Chet Ramey's bash pgrp.c test program
2815 #include <sys/types.h>
2818 int pg1, pg2, pg3, pg4;
2819 int ng, np, s, child;
2830 * If all of these values are the same, it's pretty sure that
2831 * we're on a system that ignores getpgrp's first argument.
2833 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
2839 else if (child == 0) {
2842 * If this is Sys V, this will not work; pgrp will be
2843 * set to np because setpgrp just changes a pgrp to be
2844 * the same as the pid.
2847 ng = getpgrp(0); /* Same result for Sys V and BSD */
2860 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2862 ac_cv_func_getpgrp_void=yes
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 ac_cv_func_getpgrp_void=no
2875 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
2876 if test $ac_cv_func_getpgrp_void = yes; then
2877 cat >> confdefs.h <<\EOF
2878 #define GETPGRP_VOID 1
2886 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
2887 echo "configure:2888: checking whether getpgrp takes no argument" >&5
2888 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test "$cross_compiling" = yes; then
2892 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2899 * If this system has a BSD-style getpgrp(),
2900 * which takes a pid argument, exit unsuccessfully.
2902 * Snarfed from Chet Ramey's bash pgrp.c test program
2905 #include <sys/types.h>
2908 int pg1, pg2, pg3, pg4;
2909 int ng, np, s, child;
2920 * If all of these values are the same, it's pretty sure that
2921 * we're on a system that ignores getpgrp's first argument.
2923 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
2929 else if (child == 0) {
2932 * If this is Sys V, this will not work; pgrp will be
2933 * set to np because setpgrp just changes a pgrp to be
2934 * the same as the pid.
2937 ng = getpgrp(0); /* Same result for Sys V and BSD */
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2952 ac_cv_func_getpgrp_void=yes
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 ac_cv_func_getpgrp_void=no
2965 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
2966 if test $ac_cv_func_getpgrp_void = yes; then
2967 cat >> confdefs.h <<\EOF
2968 #define GETPGRP_VOID 1
2975 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2976 echo "configure:2977: checking for st_blksize in struct stat" >&5
2977 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <sys/types.h>
2984 #include <sys/stat.h>
2986 struct stat s; s.st_blksize;
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 ac_cv_struct_st_blksize=yes
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 ac_cv_struct_st_blksize=no
3001 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3002 if test $ac_cv_struct_st_blksize = yes; then
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_ST_BLKSIZE 1
3009 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3010 echo "configure:3011: checking whether time.h and sys/time.h may both be included" >&5
3011 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 #include <sys/types.h>
3018 #include <sys/time.h>
3024 if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3026 ac_cv_header_time=yes
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 ac_cv_header_time=no
3036 echo "$ac_t""$ac_cv_header_time" 1>&6
3037 if test $ac_cv_header_time = yes; then
3038 cat >> confdefs.h <<\EOF
3039 #define TIME_WITH_SYS_TIME 1
3044 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3045 echo "configure:3046: checking whether struct tm is in sys/time.h or time.h" >&5
3046 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure"
3051 #include "confdefs.h"
3052 #include <sys/types.h>
3055 struct tm *tp; tp->tm_sec;
3058 if { (eval echo configure:3059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3060 ac_cv_struct_tm=time.h
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 ac_cv_struct_tm=sys/time.h
3070 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3071 if test $ac_cv_struct_tm = sys/time.h; then
3072 cat >> confdefs.h <<\EOF
3073 #define TM_IN_SYS_TIME 1
3078 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3079 echo "configure:3080: checking for tm_zone in struct tm" >&5
3080 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <sys/types.h>
3087 #include <$ac_cv_struct_tm>
3089 struct tm tm; tm.tm_zone;
3092 if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094 ac_cv_struct_tm_zone=yes
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 ac_cv_struct_tm_zone=no
3104 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3105 if test "$ac_cv_struct_tm_zone" = yes; then
3106 cat >> confdefs.h <<\EOF
3107 #define HAVE_TM_ZONE 1
3111 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3112 echo "configure:3113: checking for tzname" >&5
3113 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3120 #ifndef tzname /* For SGI. */
3121 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129 ac_cv_var_tzname=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3139 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3140 if test $ac_cv_var_tzname = yes; then
3141 cat >> confdefs.h <<\EOF
3142 #define HAVE_TZNAME 1
3149 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3150 echo "configure:3151: checking whether char is unsigned" >&5
3151 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 if test "$GCC" = yes; then
3155 # GCC predefines this symbol on systems where it applies.
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #ifdef __CHAR_UNSIGNED__
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 egrep "yes" >/dev/null 2>&1; then
3167 ac_cv_c_char_unsigned=yes
3170 ac_cv_c_char_unsigned=no
3175 if test "$cross_compiling" = yes; then
3176 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3182 #if !defined(__STDC__) || __STDC__ != 1
3186 volatile char c = 255; exit(c < 0);
3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3191 ac_cv_c_char_unsigned=yes
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 ac_cv_c_char_unsigned=no
3204 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3205 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3206 cat >> confdefs.h <<\EOF
3207 #define __CHAR_UNSIGNED__ 1
3212 echo $ac_n "checking for working const""... $ac_c" 1>&6
3213 echo "configure:3214: checking for working const" >&5
3214 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3223 /* Ultrix mips cc rejects this. */
3224 typedef int charset[2]; const charset x;
3225 /* SunOS 4.1.1 cc rejects this. */
3226 char const *const *ccp;
3228 /* NEC SVR4.0.2 mips cc rejects this. */
3229 struct point {int x, y;};
3230 static struct point const zero = {0,0};
3231 /* AIX XL C 1.02.0.0 rejects this.
3232 It does not let you subtract one const X* pointer from another in an arm
3233 of an if-expression whose if-part is not a constant expression */
3234 const char *g = "string";
3235 ccp = &g + (g ? g-g : 0);
3236 /* HPUX 7.0 cc rejects these. */
3239 ccp = (char const *const *) p;
3240 { /* SCO 3.2v4 cc rejects this. */
3242 char const *s = 0 ? (char *) 0 : (char const *) 0;
3246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3248 const int *foo = &x[0];
3251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3252 typedef const int *iptr;
3256 { /* AIX XL C 1.02.0.0 rejects this saying
3257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3258 struct s { int j; const int *ap[3]; };
3259 struct s *b; b->j = 5;
3261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3279 echo "$ac_t""$ac_cv_c_const" 1>&6
3280 if test $ac_cv_c_const = no; then
3281 cat >> confdefs.h <<\EOF
3289 echo $ac_n "checking for ANSI stringizing capability""... $ac_c" 1>&6
3290 echo "configure:3291: checking for ANSI stringizing capability" >&5
3291 if eval "test \"`echo '$''{'gawk_cv_c_stringize'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3300 char *s = x(teststring);
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 egrep "#teststring" >/dev/null 2>&1; then
3306 gawk_cv_c_stringize=no
3309 gawk_cv_c_stringize=yes
3315 if test "${gawk_cv_c_stringize}" = yes
3317 cat >> confdefs.h <<\EOF
3318 #define HAVE_STRINGIZE 1
3322 echo "$ac_t""${gawk_cv_c_stringize}" 1>&6
3326 cat > confcache <<\EOF
3327 # This file is a shell script that caches the results of configure
3328 # tests run on this system so they can be shared between configure
3329 # scripts and configure runs. It is not useful on other systems.
3330 # If it contains results you don't want to keep, you may remove or edit it.
3332 # By default, configure uses ./config.cache as the cache file,
3333 # creating it if it does not exist already. You can give configure
3334 # the --cache-file=FILE option to use a different cache file; that is
3335 # what configure does when it calls configure scripts in
3336 # subdirectories, so they share the cache.
3337 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3338 # config.status only pays attention to the cache file if you give it the
3339 # --recheck option to rerun configure.
3342 # The following way of writing the cache mishandles newlines in values,
3343 # but we know of no workaround that is simple, portable, and efficient.
3344 # So, don't put newlines in cache variables' values.
3345 # Ultrix sh set writes to stderr and can't be redirected directly,
3346 # and sets the high bit in the cache file unless we assign to the vars.
3348 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3350 # `set' does not quote correctly, so add quotes (double-quote substitution
3351 # turns \\\\ into \\, and sed turns \\ into \).
3353 -e "s/'/'\\\\''/g" \
3354 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3357 # `set' quotes correctly as required by POSIX, so do not add quotes.
3358 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3361 if cmp -s $cache_file confcache; then
3364 if test -w $cache_file; then
3365 echo "updating cache $cache_file"
3366 cat confcache > $cache_file
3368 echo "not updating unwritable cache $cache_file"
3373 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3375 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3376 # Let make expand exec_prefix.
3377 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3379 # Any assignment to VPATH causes Sun make to only execute
3380 # the first set of double-colon rules, so remove it if not needed.
3381 # If there is a colon in the path, we need to keep it.
3382 if test "x$srcdir" = x.; then
3383 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3386 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3388 DEFS=-DHAVE_CONFIG_H
3390 # Without the "./", some shells look in PATH for config.status.
3391 : ${CONFIG_STATUS=./config.status}
3393 echo creating $CONFIG_STATUS
3394 rm -f $CONFIG_STATUS
3395 cat > $CONFIG_STATUS <<EOF
3397 # Generated automatically by configure.
3398 # Run this file to recreate the current configuration.
3399 # This directory was configured as follows,
3400 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3402 # $0 $ac_configure_args
3404 # Compiler output produced by configure, useful for debugging
3405 # configure, is in ./config.log if it exists.
3407 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3410 case "\$ac_option" in
3411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3412 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3413 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3414 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3415 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3417 -help | --help | --hel | --he | --h)
3418 echo "\$ac_cs_usage"; exit 0 ;;
3419 *) echo "\$ac_cs_usage"; exit 1 ;;
3423 ac_given_srcdir=$srcdir
3424 ac_given_INSTALL="$INSTALL"
3426 trap 'rm -fr `echo "Makefile doc/Makefile test/Makefile awklib/Makefile config.h:configh.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3428 cat >> $CONFIG_STATUS <<EOF
3430 # Protect against being on the right side of a sed subst in config.status.
3431 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3432 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3436 s%@CFLAGS@%$CFLAGS%g
3437 s%@CPPFLAGS@%$CPPFLAGS%g
3438 s%@CXXFLAGS@%$CXXFLAGS%g
3439 s%@FFLAGS@%$FFLAGS%g
3441 s%@LDFLAGS@%$LDFLAGS%g
3443 s%@exec_prefix@%$exec_prefix%g
3444 s%@prefix@%$prefix%g
3445 s%@program_transform_name@%$program_transform_name%g
3446 s%@bindir@%$bindir%g
3447 s%@sbindir@%$sbindir%g
3448 s%@libexecdir@%$libexecdir%g
3449 s%@datadir@%$datadir%g
3450 s%@sysconfdir@%$sysconfdir%g
3451 s%@sharedstatedir@%$sharedstatedir%g
3452 s%@localstatedir@%$localstatedir%g
3453 s%@libdir@%$libdir%g
3454 s%@includedir@%$includedir%g
3455 s%@oldincludedir@%$oldincludedir%g
3456 s%@infodir@%$infodir%g
3457 s%@mandir@%$mandir%g
3462 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3463 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3464 s%@INSTALL_DATA@%$INSTALL_DATA%g
3465 s%@SET_MAKE@%$SET_MAKE%g
3466 s%@ALLOCA@%$ALLOCA%g
3471 cat >> $CONFIG_STATUS <<\EOF
3473 # Split the substitutions into bite-sized pieces for seds with
3474 # small command number limits, like on Digital OSF/1 and HP-UX.
3475 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3476 ac_file=1 # Number of current file.
3477 ac_beg=1 # First line for current file.
3478 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3481 while $ac_more_lines; do
3482 if test $ac_beg -gt 1; then
3483 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3485 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3487 if test ! -s conftest.s$ac_file; then
3489 rm -f conftest.s$ac_file
3491 if test -z "$ac_sed_cmds"; then
3492 ac_sed_cmds="sed -f conftest.s$ac_file"
3494 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3496 ac_file=`expr $ac_file + 1`
3498 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3501 if test -z "$ac_sed_cmds"; then
3506 cat >> $CONFIG_STATUS <<EOF
3508 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile test/Makefile awklib/Makefile"}
3510 cat >> $CONFIG_STATUS <<\EOF
3511 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3514 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3515 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3516 *) ac_file_in="${ac_file}.in" ;;
3519 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3521 # Remove last slash and all that follows it. Not all systems have dirname.
3522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3524 # The file is in a subdirectory.
3525 test ! -d "$ac_dir" && mkdir "$ac_dir"
3526 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3527 # A "../" for each directory in $ac_dir_suffix.
3528 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3530 ac_dir_suffix= ac_dots=
3533 case "$ac_given_srcdir" in
3535 if test -z "$ac_dots"; then top_srcdir=.
3536 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3537 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3539 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3540 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3543 case "$ac_given_INSTALL" in
3544 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3545 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3548 echo creating "$ac_file"
3550 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3552 *Makefile*) ac_comsub="1i\\
3553 # $configure_input" ;;
3557 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3559 s%@configure_input@%$configure_input%g
3560 s%@srcdir@%$srcdir%g
3561 s%@top_srcdir@%$top_srcdir%g
3562 s%@INSTALL@%$INSTALL%g
3563 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3567 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3568 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3570 # ac_d sets the value in "#define NAME VALUE" lines.
3571 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3572 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3575 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3576 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3577 ac_uB='\([ ]\)%\1#\2define\3'
3580 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3581 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3582 ac_eB='$%\1#\2define\3'
3586 if test "${CONFIG_HEADERS+set}" != set; then
3588 cat >> $CONFIG_STATUS <<EOF
3589 CONFIG_HEADERS="config.h:configh.in"
3591 cat >> $CONFIG_STATUS <<\EOF
3593 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3596 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3597 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3598 *) ac_file_in="${ac_file}.in" ;;
3601 echo creating $ac_file
3603 rm -f conftest.frag conftest.in conftest.out
3604 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3605 cat $ac_file_inputs > conftest.in
3609 # Transform confdefs.h into a sed script conftest.vals that substitutes
3610 # the proper values into config.h.in to produce config.h. And first:
3611 # Protect against being on the right side of a sed subst in config.status.
3612 # Protect against being in an unquoted here document in config.status.
3614 cat > conftest.hdr <<\EOF
3617 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3621 sed -n -f conftest.hdr confdefs.h > conftest.vals
3624 # This sed command replaces #undef with comments. This is necessary, for
3625 # example, in the case of _POSIX_SOURCE, which is predefined and required
3626 # on some systems where configure will not decide to define it.
3627 cat >> conftest.vals <<\EOF
3628 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3631 # Break up conftest.vals because some shells have a limit on
3632 # the size of here documents, and old seds have small limits too.
3637 ac_lines=`grep -c . conftest.vals`
3638 # grep -c gives empty output for an empty file on some AIX systems.
3639 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3640 # Write a limited-size here document to conftest.frag.
3641 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3642 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3644 sed -f conftest.frag conftest.in > conftest.out
3646 mv conftest.out conftest.in
3648 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3650 mv conftest.tail conftest.vals
3654 cat >> $CONFIG_STATUS <<\EOF
3655 rm -f conftest.frag conftest.h
3656 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3657 cat conftest.in >> conftest.h
3659 if cmp -s $ac_file conftest.h 2>/dev/null; then
3660 echo "$ac_file is unchanged"
3663 # Remove last slash and all that follows it. Not all systems have dirname.
3664 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3665 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3666 # The file is in a subdirectory.
3667 test ! -d "$ac_dir" && mkdir "$ac_dir"
3670 mv conftest.h $ac_file
3675 cat >> $CONFIG_STATUS <<EOF
3678 cat >> $CONFIG_STATUS <<\EOF
3682 chmod +x $CONFIG_STATUS
3683 rm -fr confdefs* $ac_clean_files
3684 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1