3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.1
5 # Copyright (C) 1992, 1993, 1994 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-id-cache cache all UIDs & GIDs; avoid if using NIS or Hesiod"
17 --with-afs support -fstype afs"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file
=.
/config.cache
32 program_transform_name
=s
,x
,x
,
41 # Initialize some other variables.
48 # If the previous option needs an argument, assign it.
49 if test -n "$ac_prev"; then
50 eval "$ac_prev=\$ac_option"
56 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
60 # Accept the important Cygnus configure options, so we can diagnose typos.
64 -build |
--build |
--buil |
--bui |
--bu |
--b)
66 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=* |
--b=*)
69 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
70 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
72 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
73 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
74 cache_file
="$ac_optarg" ;;
76 -disable-* |
--disable-*)
77 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
78 # Reject names that are not valid shell variable names.
79 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
80 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
82 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
83 eval "enable_${ac_feature}=no" ;;
85 -enable-* |
--enable-*)
86 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
87 # Reject names that are not valid shell variable names.
88 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
89 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
91 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
96 eval "enable_${ac_feature}='$ac_optarg'" ;;
98 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
99 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
100 |
--exec |
--exe |
--ex)
101 ac_prev
=exec_prefix
;;
102 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
103 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
104 |
--exec=* |
--exe=* |
--ex=*)
105 exec_prefix
="$ac_optarg" ;;
107 -gas |
--gas |
--ga |
--g)
108 # Obsolete; use --with-gas.
111 -help |
--help |
--hel |
--he)
112 # Omit some internal or obsolete options to make the list less imposing.
113 # This message is too long to be a string in the A/UX 3.1 sh.
115 Usage: configure [options] [host]
116 Options: [defaults in brackets after descriptions]
118 --cache-file=FILE cache test results in FILE
119 --help print this message
120 --no-create do not create output files
121 --quiet, --silent do not print \`checking...' messages
122 --version print the version of autoconf that created configure
123 Directory and file names:
124 --prefix=PREFIX install architecture-independent files in PREFIX
126 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
128 --srcdir=DIR find the sources in DIR [configure dir or ..]
129 --program-prefix=PREFIX prepend PREFIX to installed program names
130 --program-suffix=SUFFIX append SUFFIX to installed program names
131 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
133 --build=BUILD configure for building on BUILD [BUILD=HOST]
134 --host=HOST configure for HOST [guessed]
135 --target=TARGET configure for TARGET [TARGET=HOST]
136 Features and packages:
137 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
138 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
141 --x-includes=DIR X include files are in DIR
142 --x-libraries=DIR X library files are in DIR
143 --enable and --with options recognized:$ac_help
147 -host |
--host |
--hos |
--ho)
149 -host=* |
--host=* |
--hos=* |
--ho=*)
153 # Obsolete; use --without-fp.
156 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
160 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
161 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
164 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
166 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
167 prefix
="$ac_optarg" ;;
169 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
170 |
--program-pre |
--program-pr |
--program-p)
171 ac_prev
=program_prefix
;;
172 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
173 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
174 program_prefix
="$ac_optarg" ;;
176 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
177 |
--program-suf |
--program-su |
--program-s)
178 ac_prev
=program_suffix
;;
179 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
180 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
181 program_suffix
="$ac_optarg" ;;
183 -program-transform-name |
--program-transform-name \
184 |
--program-transform-nam |
--program-transform-na \
185 |
--program-transform-n |
--program-transform- \
186 |
--program-transform |
--program-transfor \
187 |
--program-transfo |
--program-transf \
188 |
--program-trans |
--program-tran \
189 |
--progr-tra |
--program-tr |
--program-t)
190 ac_prev
=program_transform_name
;;
191 -program-transform-name=* |
--program-transform-name=* \
192 |
--program-transform-nam=* |
--program-transform-na=* \
193 |
--program-transform-n=* |
--program-transform-=* \
194 |
--program-transform=* |
--program-transfor=* \
195 |
--program-transfo=* |
--program-transf=* \
196 |
--program-trans=* |
--program-tran=* \
197 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
198 program_transform_name
="$ac_optarg" ;;
200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
201 |
-silent |
--silent |
--silen |
--sile |
--sil)
204 -site |
--site |
--sit)
206 -site=* |
--site=* |
--sit=*)
209 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
211 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
212 srcdir
="$ac_optarg" ;;
214 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
216 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
217 target
="$ac_optarg" ;;
219 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
222 -version |
--version |
--versio |
--versi |
--vers)
223 echo "configure generated by autoconf version 2.1"
227 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
230 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
232 ac_package
=`echo $ac_package| sed 's/-/_/g'`
237 eval "with_${ac_package}='$ac_optarg'" ;;
239 -without-* |
--without-*)
240 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
241 # Reject names that are not valid shell variable names.
242 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
243 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
245 ac_package
=`echo $ac_package| sed 's/-/_/g'`
246 eval "with_${ac_package}=no" ;;
249 # Obsolete; use --with-x.
252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
254 ac_prev
=x_includes
;;
255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
257 x_includes
="$ac_optarg" ;;
259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
261 ac_prev
=x_libraries
;;
262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
264 x_libraries
="$ac_optarg" ;;
266 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
270 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
271 echo "configure: warning: $ac_option: invalid host type" 1>&2
273 if test "x$nonopt" != xNONE
; then
274 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
282 if test -n "$ac_prev"; then
283 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
288 # File descriptor usage:
289 # 0 unused; standard input
291 # 2 errors and warnings
292 # 3 unused; some systems may open it to /dev/tty
293 # 4 checking for... messages and results
294 # 5 compiler messages saved in config.log
295 if test "$silent" = yes; then
303 This file contains any messages produced by compilers while
304 running configure, to aid debugging if configure makes a mistake.
307 # Strip out --no-create and --no-recursion so they do not pile up.
308 # Also quote any args containing shell metacharacters.
313 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
314 |
--no-cr |
--no-c) ;;
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
317 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
318 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
319 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
324 # Only set LANG and LC_ALL to C if already set.
325 # These must not be set unconditionally because not all systems understand
326 # e.g. LANG=C (notably SCO).
327 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
328 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
331 rm -rf conftest
* confdefs.h
332 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
335 # A filename unique to this package, relative to the directory that
336 # configure is in, which we can look for to find out if srcdir is correct.
337 ac_unique_file
=find
/pred.c
339 # Find the source files, if location was not specified.
340 if test -z "$srcdir"; then
341 ac_srcdir_defaulted
=yes
342 # Try the directory containing this script, then its parent.
344 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
345 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
347 if test ! -r $srcdir/$ac_unique_file; then
351 ac_srcdir_defaulted
=no
353 if test ! -r $srcdir/$ac_unique_file; then
354 if test "$ac_srcdir_defaulted" = yes; then
355 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
357 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
360 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
362 # Prefer explicitly selected file to automatically selected ones.
363 if test -z "$CONFIG_SITE"; then
364 if test "x$prefix" != xNONE
; then
365 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
367 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
370 for ac_site_file
in $CONFIG_SITE; do
371 if test -r "$ac_site_file"; then
372 echo "loading site script $ac_site_file"
377 if test -r "$cache_file"; then
378 echo "loading cache $cache_file"
381 echo "creating cache $cache_file"
386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
387 ac_cpp
='$CPP $CPPFLAGS'
388 ac_compile
='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
389 ac_link
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
391 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
392 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
393 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
400 ac_n
= ac_c
='\c' ac_t
=
406 # Check whether --enable-id-cache or --disable-id-cache was given.
407 enableval
="$enable_id_cache"
408 if test -n "$enableval"; then
409 cat >> confdefs.h
<<\EOF
415 # Check whether --with-afs or --without-afs was given.
417 if test -n "$withval"; then
418 cat >> confdefs.h
<<\EOF
422 CPPFLAGS
="$CPPFLAGS -I/usr/afsws/include"
423 LIBS
="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"
426 if test "$program_transform_name" = s
,x
,x
,; then
427 program_transform_name
=
430 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
431 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
434 test "$program_prefix" != NONE
&&
435 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
436 # Use a double $ so make ignores it.
437 test "$program_suffix" != NONE
&&
438 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
440 # sed with no file args requires a program.
441 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
444 # Extract the first word of "gcc", so it can be a program name with args.
445 set dummy gcc
; ac_word
=$2
446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
447 if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
448 echo $ac_n "(cached) $ac_c" 1>&4
450 if test -n "$CC"; then
451 ac_cv_prog_CC
="$CC" # Let the user override the test.
453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
454 for ac_dir
in $PATH; do
455 test -z "$ac_dir" && ac_dir
=.
456 if test -f $ac_dir/$ac_word; then
462 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
466 if test -n "$CC"; then
467 echo "$ac_t""$CC" 1>&4
469 echo "$ac_t""no" 1>&4
473 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
474 if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
475 echo $ac_n "(cached) $ac_c" 1>&4
477 cat > conftest.c
<<EOF
482 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
488 echo "$ac_t""$ac_cv_prog_gcc" 1>&4
489 if test $ac_cv_prog_gcc = yes; then
491 if test "${CFLAGS+set}" != set; then
492 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
493 if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
494 echo $ac_n "(cached) $ac_c" 1>&4
496 echo 'void f(){}' > conftest.c
497 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
505 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
506 if test $ac_cv_prog_gcc_g = yes; then
514 test "${CFLAGS+set}" = set || CFLAGS
="-g"
517 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
518 # On Suns, sometimes $CPP names a directory.
519 if test -n "$CPP" && test -d "$CPP"; then
522 if test -z "$CPP"; then
523 if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
524 echo $ac_n "(cached) $ac_c" 1>&4
526 # This must be in double quotes, not single quotes, because CPP may get
527 # substituted into the Makefile and "${CC-cc}" will confuse make.
529 # On the NeXT, cc -E runs the code through the compiler's parser,
530 # not just through cpp.
531 cat > conftest.
$ac_ext <<EOF
532 #line 533 "configure"
533 #include "confdefs.h"
537 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
538 ac_err
=`grep -v '^ *+' conftest.out`
539 if test -z "$ac_err"; then
544 CPP
="${CC-cc} -E -traditional-cpp"
545 cat > conftest.
$ac_ext <<EOF
546 #line 547 "configure"
547 #include "confdefs.h"
551 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
552 ac_err
=`grep -v '^ *+' conftest.out`
553 if test -z "$ac_err"; then
563 ac_cv_prog_CPP
="$CPP"
566 CPP
="$ac_cv_prog_CPP"
567 echo "$ac_t""$CPP" 1>&4
570 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
571 if test -f $ac_dir/install-sh
; then
573 ac_install_sh
="$ac_aux_dir/install-sh -c"
575 elif test -f $ac_dir/install.sh
; then
577 ac_install_sh
="$ac_aux_dir/install.sh -c"
581 if test -z "$ac_aux_dir"; then
582 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
584 ac_config_guess
=$ac_aux_dir/config.guess
585 ac_config_sub
=$ac_aux_dir/config.sub
586 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
588 # Find a good install program. We prefer a C program (faster),
589 # so one script is as good as another. But avoid the broken or
590 # incompatible versions:
591 # SysV /etc/install, /usr/sbin/install
592 # SunOS /usr/etc/install
595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
597 # ./install, which can be erroneously created by make from ./install.sh.
598 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
599 if test -z "$INSTALL"; then
600 if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&4
603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
604 for ac_dir
in $PATH; do
606 ''|.|
/etc|
/usr
/sbin|
/usr
/etc|
/sbin|
/usr
/afsws
/bin|
/usr
/ucb
) ;;
608 # OSF1 and SCO ODT 3.0 have their own names for install.
609 for ac_prog
in ginstall installbsd scoinst
install; do
610 if test -f $ac_dir/$ac_prog; then
611 if test $ac_prog = install &&
612 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
613 # AIX install. It has an incompatible calling convention.
614 # OSF/1 installbsd also uses dspmsg, but is usable.
617 ac_cv_path_install
="$ac_dir/$ac_prog -c"
626 # As a last resort, use the slow shell script.
627 test -z "$ac_cv_path_install" && ac_cv_path_install
="$ac_install_sh"
629 INSTALL
="$ac_cv_path_install"
631 echo "$ac_t""$INSTALL" 1>&4
633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634 # It thinks the first close brace ends the variable substitution.
635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
637 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
639 # Extract the first word of "ranlib", so it can be a program name with args.
640 set dummy ranlib
; ac_word
=$2
641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
642 if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&4
645 if test -n "$RANLIB"; then
646 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
649 for ac_dir
in $PATH; do
650 test -z "$ac_dir" && ac_dir
=.
651 if test -f $ac_dir/$ac_word; then
652 ac_cv_prog_RANLIB
="ranlib"
657 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
660 RANLIB
="$ac_cv_prog_RANLIB"
661 if test -n "$RANLIB"; then
662 echo "$ac_t""$RANLIB" 1>&4
664 echo "$ac_t""no" 1>&4
667 echo $ac_n "checking whether ${MAKE-make} sets \$MAKE""... $ac_c" 1>&4
668 set dummy
${MAKE-make}; ac_make
=$2
669 if eval "test \"`echo '${'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&4
672 cat > conftestmake
<<\EOF
674 @
echo 'ac_maketemp="${MAKE}"'
676 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
677 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
678 if test -n "$ac_maketemp"; then
679 eval ac_cv_prog_make_
${ac_make}_set
=yes
681 eval ac_cv_prog_make_
${ac_make}_set
=no
685 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
686 echo "$ac_t""yes" 1>&4
689 echo "$ac_t""no" 1>&4
690 SET_MAKE
="MAKE=${MAKE-make}"
694 echo $ac_n "checking for AIX""... $ac_c" 1>&4
695 cat > conftest.
$ac_ext <<EOF
696 #line 697 "configure"
697 #include "confdefs.h"
703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
704 egrep "yes" >/dev
/null
2>&1; then
706 echo "$ac_t""yes" 1>&4; cat >> confdefs.h
<<\EOF
707 #define _ALL_SOURCE 1
712 echo "$ac_t""no" 1>&4
717 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
718 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
719 if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&4
722 cat > conftest.
$ac_ext <<EOF
723 #line 724 "configure"
724 #include "confdefs.h"
725 #include <minix/config.h>
727 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
728 ac_err
=`grep -v '^ *+' conftest.out`
729 if test -z "$ac_err"; then
731 eval "ac_cv_header_$ac_safe=yes"
735 eval "ac_cv_header_$ac_safe=no"
739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
740 echo "$ac_t""yes" 1>&4
743 echo "$ac_t""no" 1>&4
747 if test "$MINIX" = yes; then
748 cat >> confdefs.h
<<\EOF
749 #define _POSIX_SOURCE 1
752 cat >> confdefs.h
<<\EOF
753 #define _POSIX_1_SOURCE 2
756 cat >> confdefs.h
<<\EOF
762 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
763 if test -d /etc
/conf
/kconfig.d
&&
764 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
766 echo "$ac_t""yes" 1>&4
767 ISC
=yes # If later tests want to check for ISC.
768 cat >> confdefs.h
<<\EOF
769 #define _POSIX_SOURCE 1
772 if test "$GCC" = yes; then
778 echo "$ac_t""no" 1>&4
783 echo $ac_n "checking for -lsun""... $ac_c" 1>&4
784 if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&4
789 cat > conftest.
$ac_ext <<EOF
790 #line 791 "configure"
791 #include "confdefs.h"
793 int main() { return 0; }
798 if eval $ac_link; then
800 eval "ac_cv_lib_sun=yes"
803 eval "ac_cv_lib_sun=no"
809 if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
810 echo "$ac_t""yes" 1>&4
811 ac_tr_lib
=HAVE_LIB
`echo sun | tr '[a-z]' '[A-Z]'`
812 cat >> confdefs.h
<<EOF
819 echo "$ac_t""no" 1>&4
823 for ac_hdr
in fcntl.h string.h limits.h unistd.h
825 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
827 if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&4
830 cat > conftest.
$ac_ext <<EOF
831 #line 832 "configure"
832 #include "confdefs.h"
835 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
836 ac_err
=`grep -v '^ *+' conftest.out`
837 if test -z "$ac_err"; then
839 eval "ac_cv_header_$ac_safe=yes"
843 eval "ac_cv_header_$ac_safe=no"
847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
848 echo "$ac_t""yes" 1>&4
849 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
850 cat >> confdefs.h
<<EOF
855 echo "$ac_t""no" 1>&4
859 # If we cannot run a trivial program, we must be cross compiling.
860 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
861 if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&4
864 if test "$cross_compiling" = yes; then
867 cat > conftest.
$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
873 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
881 cross_compiling
=$ac_cv_c_cross
882 echo "$ac_t""$ac_cv_c_cross" 1>&4
884 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
885 if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&4
888 cat > conftest.
$ac_ext <<EOF
889 #line 890 "configure"
890 #include "confdefs.h"
896 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
897 ac_err
=`grep -v '^ *+' conftest.out`
898 if test -z "$ac_err"; then
900 ac_cv_header_stdc
=yes
908 if test $ac_cv_header_stdc = yes; then
909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
910 cat > conftest.
$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
916 egrep "memchr" >/dev
/null
2>&1; then
926 if test $ac_cv_header_stdc = yes; then
927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
928 cat > conftest.
$ac_ext <<EOF
929 #line 930 "configure"
930 #include "confdefs.h"
933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
934 egrep "free" >/dev
/null
2>&1; then
944 if test $ac_cv_header_stdc = yes; then
945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
946 if test "$cross_compiling" = yes; then
949 cat > conftest.
$ac_ext <<EOF
950 #line 951 "configure"
951 #include "confdefs.h"
953 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
954 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
956 int main () { int i; for (i = 0; i < 256; i++)
957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
962 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
971 echo "$ac_t""$ac_cv_header_stdc" 1>&4
972 if test $ac_cv_header_stdc = yes; then
973 cat >> confdefs.h
<<\EOF
974 #define STDC_HEADERS 1
979 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&4
980 if eval "test \"`echo '${'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&4
983 cat > conftest.
$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
986 #include <sys/types.h>
987 int main() { return 0; }
989 return makedev(0, 0);
992 if eval $ac_link; then
994 ac_cv_header_sys_types_h_makedev
=yes
997 ac_cv_header_sys_types_h_makedev
=no
1003 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&4
1005 if test $ac_cv_header_sys_types_h_makedev = no
; then
1006 ac_safe
=`echo "sys/mkdev.h" | tr './\055' '___'`
1007 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&4
1008 if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&4
1011 cat > conftest.
$ac_ext <<EOF
1012 #line 1013 "configure"
1013 #include "confdefs.h"
1014 #include <sys/mkdev.h>
1016 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1017 ac_err
=`grep -v '^ *+' conftest.out`
1018 if test -z "$ac_err"; then
1020 eval "ac_cv_header_$ac_safe=yes"
1024 eval "ac_cv_header_$ac_safe=no"
1028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1029 echo "$ac_t""yes" 1>&4
1030 cat >> confdefs.h
<<\EOF
1031 #define MAJOR_IN_MKDEV 1
1035 echo "$ac_t""no" 1>&4
1039 if test $ac_cv_header_sys_mkdev_h = no
; then
1040 ac_safe
=`echo "sys/sysmacros.h" | tr './\055' '___'`
1041 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&4
1042 if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&4
1045 cat > conftest.
$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <sys/sysmacros.h>
1050 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1051 ac_err
=`grep -v '^ *+' conftest.out`
1052 if test -z "$ac_err"; then
1054 eval "ac_cv_header_$ac_safe=yes"
1058 eval "ac_cv_header_$ac_safe=no"
1062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1063 echo "$ac_t""yes" 1>&4
1064 cat >> confdefs.h
<<\EOF
1065 #define MAJOR_IN_SYSMACROS 1
1069 echo "$ac_t""no" 1>&4
1076 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1078 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1079 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&4
1080 if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&4
1083 cat > conftest.
$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1086 #include <sys/types.h>
1088 int main() { return 0; }
1093 if eval $ac_compile; then
1095 eval "ac_cv_header_dirent_$ac_safe=yes"
1098 eval "ac_cv_header_dirent_$ac_safe=no"
1103 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1104 echo "$ac_t""yes" 1>&4
1105 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1106 cat >> confdefs.h
<<EOF
1107 #define $ac_tr_hdr 1
1109 ac_header_dirent
=$ac_hdr; break
1111 echo "$ac_t""no" 1>&4
1114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1115 if test $ac_header_dirent = dirent.h
; then
1116 echo $ac_n "checking for -ldir""... $ac_c" 1>&4
1117 if eval "test \"`echo '${'ac_cv_lib_dir'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&4
1120 ac_save_LIBS
="$LIBS"
1122 cat > conftest.
$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1126 int main() { return 0; }
1131 if eval $ac_link; then
1133 eval "ac_cv_lib_dir=yes"
1136 eval "ac_cv_lib_dir=no"
1139 LIBS
="$ac_save_LIBS"
1142 if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
1143 echo "$ac_t""yes" 1>&4
1146 echo "$ac_t""no" 1>&4
1150 echo $ac_n "checking for -lx""... $ac_c" 1>&4
1151 if eval "test \"`echo '${'ac_cv_lib_x'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&4
1154 ac_save_LIBS
="$LIBS"
1156 cat > conftest.
$ac_ext <<EOF
1157 #line 1158 "configure"
1158 #include "confdefs.h"
1160 int main() { return 0; }
1165 if eval $ac_link; then
1167 eval "ac_cv_lib_x=yes"
1170 eval "ac_cv_lib_x=no"
1173 LIBS
="$ac_save_LIBS"
1176 if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
1177 echo "$ac_t""yes" 1>&4
1180 echo "$ac_t""no" 1>&4
1185 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&4
1186 if eval "test \"`echo '${'ac_cv_header_stat_broken'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&4
1189 cat > conftest.
$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1192 #include <sys/types.h>
1193 #include <sys/stat.h>
1195 # if S_ISBLK (S_IFDIR)
1199 # if S_ISBLK (S_IFCHR)
1206 # if S_ISLNK (S_IFREG)
1212 # if S_ISSOCK (S_IFREG)
1218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1219 egrep "You lose" >/dev
/null
2>&1; then
1221 ac_cv_header_stat_broken
=yes
1224 ac_cv_header_stat_broken
=no
1229 echo "$ac_t""$ac_cv_header_stat_broken" 1>&4
1230 if test $ac_cv_header_stat_broken = yes; then
1231 cat >> confdefs.h
<<\EOF
1232 #define STAT_MACROS_BROKEN 1
1237 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&4
1238 if eval "test \"`echo '${'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&4
1241 cat > conftest.
$ac_ext <<EOF
1242 #line 1243 "configure"
1243 #include "confdefs.h"
1244 #include <sys/types.h>
1245 #include <sys/wait.h>
1247 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1250 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1252 int main() { return 0; }
1256 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1259 if eval $ac_compile; then
1261 ac_cv_header_sys_wait_h
=yes
1264 ac_cv_header_sys_wait_h
=no
1269 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&4
1270 if test $ac_cv_header_sys_wait_h = yes; then
1271 cat >> confdefs.h
<<\EOF
1272 #define HAVE_SYS_WAIT_H 1
1278 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&4
1280 # The order of these tests is important.
1281 cat > conftest.
$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1284 #include <sys/statvfs.h>
1285 #include <sys/fstyp.h>
1287 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 ac_err
=`grep -v '^ *+' conftest.out`
1289 if test -z "$ac_err"; then
1291 cat >> confdefs.h
<<\EOF
1292 #define FSTYPE_STATVFS 1
1299 if test $fstype = no
; then
1300 cat > conftest.
$ac_ext <<EOF
1301 #line 1302 "configure"
1302 #include "confdefs.h"
1303 #include <sys/statfs.h>
1304 #include <sys/fstyp.h>
1306 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1307 ac_err
=`grep -v '^ *+' conftest.out`
1308 if test -z "$ac_err"; then
1310 cat >> confdefs.h
<<\EOF
1311 #define FSTYPE_USG_STATFS 1
1319 if test $fstype = no
; then
1320 cat > conftest.
$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 #include <sys/statfs.h>
1324 #include <sys/vmount.h>
1326 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1327 ac_err
=`grep -v '^ *+' conftest.out`
1328 if test -z "$ac_err"; then
1330 cat >> confdefs.h
<<\EOF
1331 #define FSTYPE_AIX_STATFS 1
1339 if test $fstype = no
; then
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 ac_err
=`grep -v '^ *+' conftest.out`
1347 if test -z "$ac_err"; then
1349 cat >> confdefs.h
<<\EOF
1350 #define FSTYPE_MNTENT 1
1358 if test $fstype = no
; then
1359 cat > conftest.
$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1362 #include <sys/mount.h>
1364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1365 egrep "f_type;" >/dev
/null
2>&1; then
1367 cat >> confdefs.h
<<\EOF
1368 #define FSTYPE_STATFS 1
1375 if test $fstype = no
; then
1376 cat > conftest.
$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 #include <sys/mount.h>
1380 #include <sys/fs_types.h>
1382 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1383 ac_err
=`grep -v '^ *+' conftest.out`
1384 if test -z "$ac_err"; then
1386 cat >> confdefs.h
<<\EOF
1387 #define FSTYPE_GETMNT 1
1395 echo "$ac_t""$fstype" 1>&4
1398 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&4
1399 if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&4
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 #include <sys/types.h>
1407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1408 egrep "uid_t" >/dev
/null
2>&1; then
1410 ac_cv_type_uid_t
=yes
1418 echo "$ac_t""$ac_cv_type_uid_t" 1>&4
1419 if test $ac_cv_type_uid_t = no
; then
1420 cat >> confdefs.h
<<\EOF
1424 cat >> confdefs.h
<<\EOF
1430 echo $ac_n "checking for size_t""... $ac_c" 1>&4
1431 if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&4
1434 cat > conftest.
$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1437 #include <sys/types.h>
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "size_t" >/dev
/null
2>&1; then
1445 ac_cv_type_size_t
=yes
1448 ac_cv_type_size_t
=no
1453 echo "$ac_t""$ac_cv_type_size_t" 1>&4
1454 if test $ac_cv_type_size_t = no
; then
1455 cat >> confdefs.h
<<\EOF
1456 #define size_t unsigned
1461 echo $ac_n "checking for pid_t""... $ac_c" 1>&4
1462 if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&4
1465 cat > conftest.
$ac_ext <<EOF
1466 #line 1467 "configure"
1467 #include "confdefs.h"
1468 #include <sys/types.h>
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474 egrep "pid_t" >/dev
/null
2>&1; then
1476 ac_cv_type_pid_t
=yes
1484 echo "$ac_t""$ac_cv_type_pid_t" 1>&4
1485 if test $ac_cv_type_pid_t = no
; then
1486 cat >> confdefs.h
<<\EOF
1492 echo $ac_n "checking for ino_t""... $ac_c" 1>&4
1493 if eval "test \"`echo '${'ac_cv_type_ino_t'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&4
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 #include <sys/types.h>
1504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1505 egrep "ino_t" >/dev
/null
2>&1; then
1507 ac_cv_type_ino_t
=yes
1515 echo "$ac_t""$ac_cv_type_ino_t" 1>&4
1516 if test $ac_cv_type_ino_t = no
; then
1517 cat >> confdefs.h
<<\EOF
1518 #define ino_t unsigned long
1523 echo $ac_n "checking for dev_t""... $ac_c" 1>&4
1524 if eval "test \"`echo '${'ac_cv_type_dev_t'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&4
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 #include <sys/types.h>
1535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1536 egrep "dev_t" >/dev
/null
2>&1; then
1538 ac_cv_type_dev_t
=yes
1546 echo "$ac_t""$ac_cv_type_dev_t" 1>&4
1547 if test $ac_cv_type_dev_t = no
; then
1548 cat >> confdefs.h
<<\EOF
1549 #define dev_t unsigned long
1554 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&4
1555 if eval "test \"`echo '${'ac_cv_struct_st_blocks'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&4
1558 cat > conftest.
$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 #include <sys/types.h>
1562 #include <sys/stat.h>
1563 int main() { return 0; }
1565 struct stat s; s.st_blocks;
1568 if eval $ac_compile; then
1570 ac_cv_struct_st_blocks
=yes
1573 ac_cv_struct_st_blocks
=no
1578 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&4
1579 if test $ac_cv_struct_st_blocks = yes; then
1580 cat >> confdefs.h
<<\EOF
1581 #define HAVE_ST_BLOCKS 1
1585 LIBOBJS
="$LIBOBJS fileblocks.o"
1588 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&4
1589 if eval "test \"`echo '${'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&4
1592 cat > conftest.
$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <sys/types.h>
1596 #include <sys/stat.h>
1597 int main() { return 0; }
1599 struct stat s; s.st_rdev;
1602 if eval $ac_compile; then
1604 ac_cv_struct_st_rdev
=yes
1607 ac_cv_struct_st_rdev
=no
1612 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&4
1613 if test $ac_cv_struct_st_rdev = yes; then
1614 cat >> confdefs.h
<<\EOF
1615 #define HAVE_ST_RDEV 1
1620 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&4
1621 if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&4
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <sys/types.h>
1629 int main() { return 0; }
1631 struct tm *tp; tp->tm_sec;
1634 if eval $ac_compile; then
1636 ac_cv_struct_tm
=time.h
1639 ac_cv_struct_tm
=sys
/time.h
1644 echo "$ac_t""$ac_cv_struct_tm" 1>&4
1645 if test $ac_cv_struct_tm = sys
/time.h
; then
1646 cat >> confdefs.h
<<\EOF
1647 #define TM_IN_SYS_TIME 1
1652 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&4
1653 if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&4
1656 cat > conftest.
$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 #include <sys/types.h>
1660 #include <$ac_cv_struct_tm>
1661 int main() { return 0; }
1663 struct tm tm; tm.tm_zone;
1666 if eval $ac_compile; then
1668 ac_cv_struct_tm_zone
=yes
1671 ac_cv_struct_tm_zone
=no
1676 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&4
1677 if test "$ac_cv_struct_tm_zone" = yes; then
1678 cat >> confdefs.h
<<\EOF
1679 #define HAVE_TM_ZONE 1
1683 echo $ac_n "checking for tzname""... $ac_c" 1>&4
1684 if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&4
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1691 #ifndef tzname /* For SGI. */
1692 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1694 int main() { return 0; }
1699 if eval $ac_link; then
1701 ac_cv_var_tzname
=yes
1709 echo "$ac_t""$ac_cv_var_tzname" 1>&4
1710 if test $ac_cv_var_tzname = yes; then
1711 cat >> confdefs.h
<<\EOF
1712 #define HAVE_TZNAME 1
1718 echo $ac_n "checking for working const""... $ac_c" 1>&4
1719 if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&4
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1726 int main() { return 0; }
1729 /* Ultrix mips cc rejects this. */
1730 typedef int charset[2]; const charset x;
1731 /* SunOS 4.1.1 cc rejects this. */
1732 char const *const *ccp;
1734 /* NEC SVR4.0.2 mips cc rejects this. */
1735 struct point {int x, y;};
1736 static struct point const zero;
1737 /* AIX XL C 1.02.0.0 rejects this.
1738 It does not let you subtract one const X* pointer from another in an arm
1739 of an if-expression whose if-part is not a constant expression */
1740 const char *g = "string";
1741 ccp = &g + (g ? g-g : 0);
1742 /* HPUX 7.0 cc rejects these. */
1745 ccp = (char const *const *) p;
1746 { /* SCO 3.2v4 cc rejects this. */
1748 char const *s = 0 ? (char *) 0 : (char const *) 0;
1752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1754 const int *foo = &x[0];
1757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1758 typedef const int *iptr;
1762 { /* AIX XL C 1.02.0.0 rejects this saying
1763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1764 struct s { int j; const int *ap[3]; };
1765 struct s *b; b->j = 5;
1767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1773 if eval $ac_compile; then
1783 echo "$ac_t""$ac_cv_c_const" 1>&4
1784 if test $ac_cv_c_const = no
; then
1785 cat >> confdefs.h
<<\EOF
1793 for ac_func
in memcmp memset mktime stpcpy strdup strftime strspn strstr strtol
1795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
1796 if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&4
1799 cat > conftest.
$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1803 /* Override any gcc2 internal prototype to avoid an error. */
1806 int main() { return 0; }
1809 /* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1820 if eval $ac_link; then
1822 eval "ac_cv_func_$ac_func=yes"
1825 eval "ac_cv_func_$ac_func=no"
1830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1831 echo "$ac_t""yes" 1>&4
1834 echo "$ac_t""no" 1>&4
1835 LIBOBJS
="$LIBOBJS ${ac_func}.o"
1840 for ac_func
in fchdir getcwd strerror
1842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
1843 if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&4
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1850 /* Override any gcc2 internal prototype to avoid an error. */
1853 int main() { return 0; }
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1867 if eval $ac_link; then
1869 eval "ac_cv_func_$ac_func=yes"
1872 eval "ac_cv_func_$ac_func=no"
1877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1878 echo "$ac_t""yes" 1>&4
1879 ac_tr_func
=HAVE_
`echo $ac_func | tr '[a-z]' '[A-Z]'`
1880 cat >> confdefs.h
<<EOF
1881 #define $ac_tr_func 1
1885 echo "$ac_t""no" 1>&4
1889 # strftime is in -lintl on SCO UNIX.
1890 echo $ac_n "checking for -lintl""... $ac_c" 1>&4
1891 if eval "test \"`echo '${'ac_cv_lib_intl'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&4
1894 ac_save_LIBS
="$LIBS"
1895 LIBS
="$LIBS -lintl "
1896 cat > conftest.
$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1900 int main() { return 0; }
1905 if eval $ac_link; then
1907 eval "ac_cv_lib_intl=yes"
1910 eval "ac_cv_lib_intl=no"
1913 LIBS
="$ac_save_LIBS"
1916 if eval "test \"`echo '$ac_cv_lib_'intl`\" = yes"; then
1917 echo "$ac_t""yes" 1>&4
1920 echo "$ac_t""no" 1>&4
1923 echo $ac_n "checking for strftime""... $ac_c" 1>&4
1924 if eval "test \"`echo '${'ac_cv_func_strftime'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&4
1927 cat > conftest.
$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1931 /* Override any gcc2 internal prototype to avoid an error. */
1934 int main() { return 0; }
1937 /* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940 #if defined (__stub_strftime) || defined (__stub___strftime)
1948 if eval $ac_link; then
1950 eval "ac_cv_func_strftime=yes"
1953 eval "ac_cv_func_strftime=no"
1958 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
1959 echo "$ac_t""yes" 1>&4
1960 cat >> confdefs.h
<<\EOF
1961 #define HAVE_STRFTIME 1
1965 echo "$ac_t""no" 1>&4
1968 echo $ac_n "checking for vprintf""... $ac_c" 1>&4
1969 if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&4
1972 cat > conftest.
$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1976 /* Override any gcc2 internal prototype to avoid an error. */
1979 int main() { return 0; }
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1993 if eval $ac_link; then
1995 eval "ac_cv_func_vprintf=yes"
1998 eval "ac_cv_func_vprintf=no"
2003 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2004 echo "$ac_t""yes" 1>&4
2005 cat >> confdefs.h
<<\EOF
2006 #define HAVE_VPRINTF 1
2010 echo "$ac_t""no" 1>&4
2013 if test "$ac_cv_func_vprintf" != yes; then
2014 echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
2015 if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&4
2018 cat > conftest.
$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2021 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
2022 /* Override any gcc2 internal prototype to avoid an error. */
2025 int main() { return 0; }
2028 /* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2039 if eval $ac_link; then
2041 eval "ac_cv_func__doprnt=yes"
2044 eval "ac_cv_func__doprnt=no"
2049 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2050 echo "$ac_t""yes" 1>&4
2051 cat >> confdefs.h
<<\EOF
2052 #define HAVE_DOPRNT 1
2056 echo "$ac_t""no" 1>&4
2061 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2062 # for constant arguments. Useless!
2063 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
2064 if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&4
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2071 int main() { return 0; }
2073 char *p = alloca(2 * sizeof(int));
2076 if eval $ac_link; then
2078 ac_cv_header_alloca_h
=yes
2081 ac_cv_header_alloca_h
=no
2086 echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
2087 if test $ac_cv_header_alloca_h = yes; then
2088 cat >> confdefs.h
<<\EOF
2089 #define HAVE_ALLOCA_H 1
2094 echo $ac_n "checking for alloca""... $ac_c" 1>&4
2095 if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&4
2098 cat > conftest.
$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2103 # define alloca __builtin_alloca
2106 # include <alloca.h>
2111 # ifndef alloca /* predefined by HP cc +Olibcalls */
2118 int main() { return 0; }
2120 char *p = (char *) alloca(1);
2123 if eval $ac_link; then
2125 ac_cv_func_alloca
=yes
2128 ac_cv_func_alloca
=no
2133 echo "$ac_t""$ac_cv_func_alloca" 1>&4
2134 if test $ac_cv_func_alloca = yes; then
2135 cat >> confdefs.h
<<\EOF
2136 #define HAVE_ALLOCA 1
2141 if test $ac_cv_func_alloca = no
; then
2142 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2143 # that cause trouble. Some versions do not even contain alloca or
2144 # contain a buggy version. If you still want to use their alloca,
2145 # use ar to extract alloca.o from them instead of compiling alloca.c.
2147 cat >> confdefs.h
<<\EOF
2152 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
2153 if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&4
2156 cat > conftest.
$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2159 #if defined(CRAY) && ! defined(CRAY2)
2166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2167 egrep "webecray" >/dev
/null
2>&1; then
2177 echo "$ac_t""$ac_cv_os_cray" 1>&4
2178 if test $ac_cv_os_cray = yes; then
2179 echo $ac_n "checking for _getb67""... $ac_c" 1>&4
2180 if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&4
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
2187 /* Override any gcc2 internal prototype to avoid an error. */
2190 int main() { return 0; }
2193 /* The GNU C library defines this for functions which it implements
2194 to always fail with ENOSYS. Some functions are actually named
2195 something starting with __ and the normal name is an alias. */
2196 #if defined (__stub__getb67) || defined (__stub____getb67)
2204 if eval $ac_link; then
2206 eval "ac_cv_func__getb67=yes"
2209 eval "ac_cv_func__getb67=no"
2214 if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
2215 echo "$ac_t""yes" 1>&4
2216 cat >> confdefs.h
<<\EOF
2217 #define CRAY_STACKSEG_END _getb67
2221 echo "$ac_t""no" 1>&4
2222 echo $ac_n "checking for GETB67""... $ac_c" 1>&4
2223 if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&4
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
2230 /* Override any gcc2 internal prototype to avoid an error. */
2233 int main() { return 0; }
2236 /* The GNU C library defines this for functions which it implements
2237 to always fail with ENOSYS. Some functions are actually named
2238 something starting with __ and the normal name is an alias. */
2239 #if defined (__stub_GETB67) || defined (__stub___GETB67)
2247 if eval $ac_link; then
2249 eval "ac_cv_func_GETB67=yes"
2252 eval "ac_cv_func_GETB67=no"
2257 if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
2258 echo "$ac_t""yes" 1>&4
2259 cat >> confdefs.h
<<\EOF
2260 #define CRAY_STACKSEG_END GETB67
2264 echo "$ac_t""no" 1>&4
2265 echo $ac_n "checking for getb67""... $ac_c" 1>&4
2266 if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&4
2269 cat > conftest.
$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
2273 /* Override any gcc2 internal prototype to avoid an error. */
2276 int main() { return 0; }
2279 /* The GNU C library defines this for functions which it implements
2280 to always fail with ENOSYS. Some functions are actually named
2281 something starting with __ and the normal name is an alias. */
2282 #if defined (__stub_getb67) || defined (__stub___getb67)
2290 if eval $ac_link; then
2292 eval "ac_cv_func_getb67=yes"
2295 eval "ac_cv_func_getb67=no"
2300 if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
2301 echo "$ac_t""yes" 1>&4
2302 cat >> confdefs.h
<<\EOF
2303 #define CRAY_STACKSEG_END getb67
2307 echo "$ac_t""no" 1>&4
2316 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
2317 if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&4
2320 if test "$cross_compiling" = yes; then
2321 ac_cv_c_stack_direction
=0
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 find_stack_direction ()
2328 static char *addr = 0;
2333 return find_stack_direction ();
2336 return (&dummy > addr) ? 1 : -1;
2340 exit (find_stack_direction() < 0);
2344 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2345 ac_cv_c_stack_direction
=1
2347 ac_cv_c_stack_direction
=-1
2352 echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
2353 cat >> confdefs.h
<<EOF
2354 #define STACK_DIRECTION $ac_cv_c_stack_direction
2359 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX.
2360 echo $ac_n "checking for -lsun""... $ac_c" 1>&4
2361 if eval "test \"`echo '${'ac_cv_lib_sun'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&4
2364 ac_save_LIBS
="$LIBS"
2366 cat > conftest.
$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2370 int main() { return 0; }
2375 if eval $ac_link; then
2377 eval "ac_cv_lib_sun=yes"
2380 eval "ac_cv_lib_sun=no"
2383 LIBS
="$ac_save_LIBS"
2386 if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then
2387 echo "$ac_t""yes" 1>&4
2390 echo "$ac_t""no" 1>&4
2391 echo $ac_n "checking for -lseq""... $ac_c" 1>&4
2392 if eval "test \"`echo '${'ac_cv_lib_seq'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&4
2395 ac_save_LIBS
="$LIBS"
2397 cat > conftest.
$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2401 int main() { return 0; }
2406 if eval $ac_link; then
2408 eval "ac_cv_lib_seq=yes"
2411 eval "ac_cv_lib_seq=no"
2414 LIBS
="$ac_save_LIBS"
2417 if eval "test \"`echo '$ac_cv_lib_'seq`\" = yes"; then
2418 echo "$ac_t""yes" 1>&4
2421 echo "$ac_t""no" 1>&4
2426 echo $ac_n "checking for getmntent""... $ac_c" 1>&4
2427 if eval "test \"`echo '${'ac_cv_func_getmntent'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&4
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
2434 /* Override any gcc2 internal prototype to avoid an error. */
2437 int main() { return 0; }
2440 /* The GNU C library defines this for functions which it implements
2441 to always fail with ENOSYS. Some functions are actually named
2442 something starting with __ and the normal name is an alias. */
2443 #if defined (__stub_getmntent) || defined (__stub___getmntent)
2451 if eval $ac_link; then
2453 eval "ac_cv_func_getmntent=yes"
2456 eval "ac_cv_func_getmntent=no"
2461 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
2462 echo "$ac_t""yes" 1>&4
2463 cat >> confdefs.h
<<\EOF
2464 #define HAVE_GETMNTENT 1
2468 echo "$ac_t""no" 1>&4
2471 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&4
2472 if eval "test \"`echo '${'ac_cv_func_closedir_void'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&4
2475 if test "$cross_compiling" = yes; then
2476 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 #include <sys/types.h>
2482 #include <$ac_header_dirent>
2483 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
2486 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
2487 ac_cv_func_closedir_void
=no
2489 ac_cv_func_closedir_void
=yes
2494 echo "$ac_t""$ac_cv_func_closedir_void" 1>&4
2495 if test $ac_cv_func_closedir_void = yes; then
2496 cat >> confdefs.h
<<\EOF
2497 #define CLOSEDIR_VOID 1
2504 if test -w $cache_file; then
2505 echo "updating cache $cache_file"
2506 cat > $cache_file <<\EOF
2507 # This file is a shell script that caches the results of configure
2508 # tests run on this system so they can be shared between configure
2509 # scripts and configure runs. It is not useful on other systems.
2510 # If it contains results you don't want to keep, you may remove or edit it.
2512 # By default, configure uses ./config.cache as the cache file,
2513 # creating it if it does not exist already. You can give configure
2514 # the --cache-file=FILE option to use a different cache file; that is
2515 # what configure does when it calls configure scripts in
2516 # subdirectories, so they share the cache.
2517 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2518 # config.status only pays attention to the cache file if you give it the
2519 # --recheck option to rerun configure.
2522 # Ultrix sh set writes to stderr and can't be redirected directly.
2524 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
2527 echo "not updating unwritable cache $cache_file"
2530 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
2532 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2533 # Let make expand exec_prefix.
2534 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2536 # Any assignment to VPATH causes Sun make to only execute
2537 # the first set of double-colon rules, so remove it if not needed.
2538 # If there is a colon in the path, we need to keep it.
2539 if test "x$srcdir" = x.
; then
2540 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2543 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2545 DEFS
=-DHAVE_CONFIG_H
2547 # Without the "./", some shells look in PATH for config.status.
2548 : ${CONFIG_STATUS=./config.status}
2550 echo creating
$CONFIG_STATUS
2551 rm -f $CONFIG_STATUS
2552 cat > $CONFIG_STATUS <<EOF
2554 # Generated automatically by configure.
2555 # Run this file to recreate the current configuration.
2556 # This directory was configured as follows,
2557 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2559 # $0 $ac_configure_args
2561 # Compiler output produced by configure, useful for debugging
2562 # configure, is in ./config.log if it exists.
2564 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2567 case "\$ac_option" in
2568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2569 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2570 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2571 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2572 echo "$CONFIG_STATUS generated by autoconf version 2.1"
2574 -help | --help | --hel | --he | --h)
2575 echo "\$ac_cs_usage"; exit 0 ;;
2576 *) echo "\$ac_cs_usage"; exit 1 ;;
2580 ac_given_srcdir=$srcdir
2581 ac_given_INSTALL="$INSTALL"
2583 trap 'rm -fr Makefile lib/Makefile find/Makefile xargs/Makefile \
2584 locate/Makefile doc/Makefile testsuite/Makefile config.h conftest*; exit 1' 1 2 15
2586 # Protect against being on the right side of a sed subst in config.status.
2587 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2588 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2591 s%@CFLAGS@%$CFLAGS%g
2592 s%@CPPFLAGS@%$CPPFLAGS%g
2593 s%@CXXFLAGS@%$CXXFLAGS%g
2595 s%@LDFLAGS@%$LDFLAGS%g
2597 s%@exec_prefix@%$exec_prefix%g
2598 s%@prefix@%$prefix%g
2599 s%@program_transform_name@%$program_transform_name%g
2600 s%@INCLUDES@%$INCLUDES%g
2603 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2604 s%@INSTALL_DATA@%$INSTALL_DATA%g
2605 s%@RANLIB@%$RANLIB%g
2606 s%@SET_MAKE@%$SET_MAKE%g
2607 s%@LIBOBJS@%$LIBOBJS%g
2608 s%@ALLOCA@%$ALLOCA%g
2612 cat >> $CONFIG_STATUS <<EOF
2614 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile find/Makefile xargs/Makefile \
2615 locate/Makefile doc/Makefile testsuite/Makefile"}
2617 cat >> $CONFIG_STATUS <<\EOF
2618 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2619 # Support "outfile[:infile]", defaulting infile="outfile.in".
2621 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2622 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2623 *) ac_file_in
="${ac_file}.in" ;;
2626 # Adjust relative srcdir, etc. for subdirectories.
2628 # Remove last slash and all that follows it. Not all systems have dirname.
2629 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2630 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2631 # The file is in a subdirectory.
2632 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2633 ac_dir_suffix
="/$ac_dir"
2634 # A "../" for each directory in $ac_dir_suffix.
2635 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2637 ac_dir_suffix
= ac_dots
=
2640 case "$ac_given_srcdir" in
2642 if test -z "$ac_dots"; then top_srcdir
=.
2643 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2644 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2646 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2647 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2650 case "$ac_given_INSTALL" in
2651 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2652 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2654 echo creating
"$ac_file"
2656 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2658 *Makefile
*) ac_comsub
="1i\\
2659 # $configure_input" ;;
2663 s%@configure_input@%$configure_input%g
2664 s%@srcdir@%$srcdir%g
2665 s%@top_srcdir@%$top_srcdir%g
2666 s%@INSTALL@%$INSTALL%g
2667 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2671 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2672 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2674 # ac_d sets the value in "#define NAME VALUE" lines.
2675 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2676 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2679 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2680 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2681 ac_uB
='\([ ]\)%\1#\2define\3'
2684 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2685 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2686 ac_eB
='$%\1#\2define\3'
2690 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h"}
2691 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2692 # Support "outfile[:infile]", defaulting infile="outfile.in".
2694 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2695 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2696 *) ac_file_in
="${ac_file}.in" ;;
2699 echo creating
$ac_file
2701 rm -f conftest.frag conftest.
in conftest.out
2702 cp $ac_given_srcdir/$ac_file_in conftest.
in
2706 # Transform confdefs.h into a sed script conftest.vals that substitutes
2707 # the proper values into config.h.in to produce config.h. And first:
2708 # Protect against being on the right side of a sed subst in config.status.
2709 # Protect against being in an unquoted here document in config.status.
2711 cat > conftest.hdr
<<\EOF
2714 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2718 sed -n -f conftest.hdr confdefs.h > conftest.vals
2721 # This sed command replaces #undef with comments. This is necessary, for
2722 # example, in the case of _POSIX_SOURCE, which is predefined and required
2723 # on some systems where configure will not decide to define it.
2724 cat >> conftest.vals <<\EOF
2725 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2728 # Break up conftest.vals because some shells have a limit on
2729 # the size of here documents, and old seds have small limits too.
2730 # Maximum number of lines to put in a single here document.
2731 ac_max_here_lines=12
2736 ac_lines=`grep -c . conftest.vals
`
2737 # grep -c gives empty output for an empty file on some AIX systems.
2738 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2739 # Write a limited-size here document to conftest.frag.
2740 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2741 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2743 sed -f conftest.frag conftest.in > conftest.out
2745 mv conftest.out conftest.in
2747 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2749 mv conftest.tail conftest.vals
2753 cat >> $CONFIG_STATUS <<\EOF
2754 rm -f conftest.frag conftest.h
2755 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2756 cat conftest.in >> conftest.h
2758 if cmp -s $ac_file conftest.h 2>/dev/null; then
2759 echo "$ac_file is unchanged"
2763 mv conftest.h $ac_file
2771 chmod +x $CONFIG_STATUS
2772 rm -fr confdefs* $ac_clean_files
2773 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS