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-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
,
40 bindir
='${exec_prefix}/bin'
41 sbindir
='${exec_prefix}/sbin'
42 libexecdir
='${exec_prefix}/libexec'
43 datadir
='${prefix}/share'
44 sysconfdir
='${prefix}/etc'
45 sharedstatedir
='${prefix}/com'
46 localstatedir
='${prefix}/var'
47 libdir
='${exec_prefix}/lib'
48 includedir
='${prefix}/include'
49 oldincludedir
='/usr/include'
50 infodir
='${prefix}/info'
51 mandir
='${prefix}/man'
53 # Initialize some other variables.
56 SHELL
=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
82 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
83 bindir
="$ac_optarg" ;;
85 -build |
--build |
--buil |
--bui |
--bu)
87 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
90 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
91 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
93 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
94 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
95 cache_file
="$ac_optarg" ;;
97 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
99 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
101 datadir
="$ac_optarg" ;;
103 -disable-* |
--disable-*)
104 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* |
--enable-*)
113 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
126 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
127 |
--exec |
--exe |
--ex)
128 ac_prev
=exec_prefix
;;
129 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
130 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
131 |
--exec=* |
--exe=* |
--ex=*)
132 exec_prefix
="$ac_optarg" ;;
134 -gas |
--gas |
--ga |
--g)
135 # Obsolete; use --with-gas.
138 -help |
--help |
--hel |
--he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host |
--host |
--hos |
--ho)
195 -host=* |
--host=* |
--hos=* |
--ho=*)
198 -includedir |
--includedir |
--includedi |
--included |
--include \
199 |
--includ |
--inclu |
--incl |
--inc)
200 ac_prev
=includedir
;;
201 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
202 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
203 includedir
="$ac_optarg" ;;
205 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
207 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
208 infodir
="$ac_optarg" ;;
210 -libdir |
--libdir |
--libdi |
--libd)
212 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
213 libdir
="$ac_optarg" ;;
215 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
216 |
--libexe |
--libex |
--libe)
217 ac_prev
=libexecdir
;;
218 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
219 |
--libexe=* |
--libex=* |
--libe=*)
220 libexecdir
="$ac_optarg" ;;
222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
223 |
--localstate |
--localstat |
--localsta |
--localst \
224 |
--locals |
--local |
--loca |
--loc |
--lo)
225 ac_prev
=localstatedir
;;
226 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
227 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
228 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
229 localstatedir
="$ac_optarg" ;;
231 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
233 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
234 mandir
="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
244 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
245 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
248 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
249 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
250 |
--oldin |
--oldi |
--old |
--ol |
--o)
251 ac_prev
=oldincludedir
;;
252 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
253 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
254 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
255 oldincludedir
="$ac_optarg" ;;
257 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
259 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
260 prefix
="$ac_optarg" ;;
262 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
263 |
--program-pre |
--program-pr |
--program-p)
264 ac_prev
=program_prefix
;;
265 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
266 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
267 program_prefix
="$ac_optarg" ;;
269 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
270 |
--program-suf |
--program-su |
--program-s)
271 ac_prev
=program_suffix
;;
272 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
273 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
274 program_suffix
="$ac_optarg" ;;
276 -program-transform-name |
--program-transform-name \
277 |
--program-transform-nam |
--program-transform-na \
278 |
--program-transform-n |
--program-transform- \
279 |
--program-transform |
--program-transfor \
280 |
--program-transfo |
--program-transf \
281 |
--program-trans |
--program-tran \
282 |
--progr-tra |
--program-tr |
--program-t)
283 ac_prev
=program_transform_name
;;
284 -program-transform-name=* |
--program-transform-name=* \
285 |
--program-transform-nam=* |
--program-transform-na=* \
286 |
--program-transform-n=* |
--program-transform-=* \
287 |
--program-transform=* |
--program-transfor=* \
288 |
--program-transfo=* |
--program-transf=* \
289 |
--program-trans=* |
--program-tran=* \
290 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
291 program_transform_name
="$ac_optarg" ;;
293 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
294 |
-silent |
--silent |
--silen |
--sile |
--sil)
297 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
299 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
301 sbindir
="$ac_optarg" ;;
303 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
304 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
305 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
307 ac_prev
=sharedstatedir
;;
308 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
309 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
310 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
312 sharedstatedir
="$ac_optarg" ;;
314 -site |
--site |
--sit)
316 -site=* |
--site=* |
--sit=*)
319 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
321 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
322 srcdir
="$ac_optarg" ;;
324 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
325 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
326 ac_prev
=sysconfdir
;;
327 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
328 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
329 sysconfdir
="$ac_optarg" ;;
331 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
333 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
334 target
="$ac_optarg" ;;
336 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
339 -version |
--version |
--versio |
--versi |
--vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package
=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* |
--without-*)
357 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package
=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
370 |
--x-incl |
--x-inc |
--x-in |
--x-i)
371 ac_prev
=x_includes
;;
372 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
373 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
374 x_includes
="$ac_optarg" ;;
376 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
377 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
378 ac_prev
=x_libraries
;;
379 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
380 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
381 x_libraries
="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE
; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
432 |
--no-cr |
--no-c) ;;
433 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
434 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
435 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest
* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file
=find
/pred.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted
=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted
=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE
; then
486 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file
in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp
='$CPP $CPPFLAGS'
509 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling
=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
524 ac_n
= ac_c
='\c' ac_t
=
533 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
534 if test -f $ac_dir/install-sh
; then
536 ac_install_sh
="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh
; then
540 ac_install_sh
="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess
=$ac_aux_dir/config.guess
548 ac_config_sub
=$ac_aux_dir/config.sub
549 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
569 for ac_dir
in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
572 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 # Don't use installbsd from OSF since it installs stuff as root
577 for ac_prog
in ginstall scoinst
install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
581 # AIX install. It has an incompatible calling convention.
584 ac_cv_path_install
="$ac_dir/$ac_prog -c"
595 if test "${ac_cv_path_install+set}" = set; then
596 INSTALL
="$ac_cv_path_install"
598 # As a last resort, use the slow shell script. We don't cache a
599 # path for INSTALL within a source directory, because that will
600 # break other packages using the cache if that directory is
601 # removed, or if the path is relative.
602 INSTALL
="$ac_install_sh"
605 echo "$ac_t""$INSTALL" 1>&6
607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608 # It thinks the first close brace ends the variable substitution.
609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
613 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
615 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
616 echo "configure:617: checking whether build environment is sane" >&5
619 echo timestamp
> conftestfile
620 # Do `set' in a subshell so we don't clobber the current shell's
621 # arguments. Must try -L first in case configure is actually a
622 # symlink; some systems play weird games with the mod time of symlinks
623 # (eg FreeBSD returns the mod time of the symlink's containing
626 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
627 if test "$*" = "X"; then
629 set X
`ls -t $srcdir/configure conftestfile`
631 if test "$*" != "X $srcdir/configure conftestfile" \
632 && test "$*" != "X conftestfile $srcdir/configure"; then
634 # If neither matched, then we have a broken ls. This can happen
635 # if, for instance, CONFIG_SHELL is bash and it inherits a
636 # broken ls alias from the environment. This has actually
637 # happened. Such a system could not be considered "sane".
638 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
639 alias in your environment" 1>&2; exit 1; }
642 test "$2" = conftestfile
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
673 echo "configure:674: checking whether ${MAKE-make} sets \${MAKE}" >&5
674 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 cat > conftestmake
<<\EOF
680 @
echo 'ac_maketemp="${MAKE}"'
682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
684 if test -n "$ac_maketemp"; then
685 eval ac_cv_prog_make_
${ac_make}_set
=yes
687 eval ac_cv_prog_make_
${ac_make}_set
=no
691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
692 echo "$ac_t""yes" 1>&6
695 echo "$ac_t""no" 1>&6
696 SET_MAKE
="MAKE=${MAKE-make}"
704 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
705 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
707 cat >> confdefs.h
<<EOF
708 #define PACKAGE "$PACKAGE"
711 cat >> confdefs.h
<<EOF
712 #define VERSION "$VERSION"
717 missing_dir
=`cd $ac_aux_dir && pwd`
718 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
719 echo "configure:720: checking for working aclocal" >&5
720 # Run test in a subshell; some versions of sh will print an error if
721 # an executable is not found, even if stderr is redirected.
722 # Redirect stdin to placate older versions of autoconf. Sigh.
723 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
725 echo "$ac_t""found" 1>&6
727 ACLOCAL
="$missing_dir/missing aclocal"
728 echo "$ac_t""missing" 1>&6
731 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
732 echo "configure:733: checking for working autoconf" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
738 echo "$ac_t""found" 1>&6
740 AUTOCONF
="$missing_dir/missing autoconf"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working automake""... $ac_c" 1>&6
745 echo "configure:746: checking for working automake" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOMAKE
="$missing_dir/missing automake"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
758 echo "configure:759: checking for working autoheader" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
763 AUTOHEADER
=autoheader
764 echo "$ac_t""found" 1>&6
766 AUTOHEADER
="$missing_dir/missing autoheader"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
771 echo "configure:772: checking for working makeinfo" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
777 echo "$ac_t""found" 1>&6
779 MAKEINFO
="$missing_dir/missing makeinfo"
780 echo "$ac_t""missing" 1>&6
785 # Check whether --enable-id-cache or --disable-id-cache was given.
786 if test "${enable_id_cache+set}" = set; then
787 enableval
="$enable_id_cache"
788 cat >> confdefs.h
<<\EOF
794 # Check whether --with-afs or --without-afs was given.
795 if test "${with_afs+set}" = set; then
797 cat >> confdefs.h
<<\EOF
801 CPPFLAGS
="$CPPFLAGS -I/usr/afsws/include"
802 LIBS
="$LIBS -L/usr/afsws/lib -L/usr/afsws/lib/afs -lsys -lrx -llwp"
805 if test "$program_transform_name" = s
,x
,x
,; then
806 program_transform_name
=
808 # Double any \ or $. echo might interpret backslashes.
809 cat <<\EOF_SED
> conftestsed
810 s
,\\,\\\\,g
; s
,\$
,$$
,g
812 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
815 test "$program_prefix" != NONE
&&
816 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
817 # Use a double $ so make ignores it.
818 test "$program_suffix" != NONE
&&
819 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
821 # sed with no file args requires a program.
822 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
825 # Extract the first word of "gcc", so it can be a program name with args.
826 set dummy gcc
; ac_word
=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC
="$CC" # Let the user override the test.
835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
837 for ac_dir
in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir
=.
839 if test -f $ac_dir/$ac_word; then
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
854 if test -z "$CC"; then
855 # Extract the first word of "cc", so it can be a program name with args.
856 set dummy cc
; ac_word
=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 if test -n "$CC"; then
863 ac_cv_prog_CC
="$CC" # Let the user override the test.
865 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
868 for ac_dir
in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir
=.
870 if test -f $ac_dir/$ac_word; then
871 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
880 if test $ac_prog_rejected = yes; then
881 # We found a bogon in the path, so make sure we never use it.
882 set dummy
$ac_cv_prog_CC
884 if test $# -gt 0; then
885 # We chose a different compiler from the bogus one.
886 # However, it has the same basename, so the bogon will be chosen
887 # first if we set CC to just the basename; use the full file name.
889 set dummy
"$ac_dir/$ac_word" "$@"
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
900 echo "$ac_t""no" 1>&6
903 if test -z "$CC"; then
906 # Extract the first word of "cl", so it can be a program name with args.
907 set dummy cl
; ac_word
=$2
908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909 echo "configure:910: checking for $ac_word" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 if test -n "$CC"; then
914 ac_cv_prog_CC
="$CC" # Let the user override the test.
916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
918 for ac_dir
in $ac_dummy; do
919 test -z "$ac_dir" && ac_dir
=.
920 if test -f $ac_dir/$ac_word; then
929 if test -n "$CC"; then
930 echo "$ac_t""$CC" 1>&6
932 echo "$ac_t""no" 1>&6
937 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945 ac_cpp
='$CPP $CPPFLAGS'
946 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948 cross_compiling
=$ac_cv_prog_cc_cross
950 cat > conftest.
$ac_ext << EOF
952 #line 953 "configure"
953 #include "confdefs.h"
957 if { (eval echo configure
:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
958 ac_cv_prog_cc_works
=yes
959 # If we can't run a trivial program, we are probably using a cross compiler.
960 if (.
/conftest
; exit) 2>/dev
/null
; then
961 ac_cv_prog_cc_cross
=no
963 ac_cv_prog_cc_cross
=yes
966 echo "configure: failed program was:" >&5
967 cat conftest.
$ac_ext >&5
968 ac_cv_prog_cc_works
=no
972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
973 ac_cpp
='$CPP $CPPFLAGS'
974 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
975 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
976 cross_compiling
=$ac_cv_prog_cc_cross
978 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
979 if test $ac_cv_prog_cc_works = no
; then
980 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
982 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
983 echo "configure:984: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
984 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
985 cross_compiling
=$ac_cv_prog_cc_cross
987 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
988 echo "configure:989: checking whether we are using GNU C" >&5
989 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 cat > conftest.c
<<EOF
997 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1004 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1006 if test $ac_cv_prog_gcc = yes; then
1012 ac_test_CFLAGS
="${CFLAGS+set}"
1013 ac_save_CFLAGS
="$CFLAGS"
1015 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1016 echo "configure:1017: checking whether ${CC-cc} accepts -g" >&5
1017 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 echo 'void f(){}' > conftest.c
1021 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1030 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1031 if test "$ac_test_CFLAGS" = set; then
1032 CFLAGS
="$ac_save_CFLAGS"
1033 elif test $ac_cv_prog_cc_g = yes; then
1034 if test "$GCC" = yes; then
1040 if test "$GCC" = yes; then
1047 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1048 echo "configure:1049: checking how to run the C preprocessor" >&5
1049 # On Suns, sometimes $CPP names a directory.
1050 if test -n "$CPP" && test -d "$CPP"; then
1053 if test -z "$CPP"; then
1054 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 # This must be in double quotes, not single quotes, because CPP may get
1058 # substituted into the Makefile and "${CC-cc}" will confuse make.
1060 # On the NeXT, cc -E runs the code through the compiler's parser,
1061 # not just through cpp.
1062 cat > conftest.
$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1068 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1069 { (eval echo configure
:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1070 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1071 if test -z "$ac_err"; then
1075 echo "configure: failed program was:" >&5
1076 cat conftest.
$ac_ext >&5
1078 CPP
="${CC-cc} -E -traditional-cpp"
1079 cat > conftest.
$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1085 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure
:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1088 if test -z "$ac_err"; then
1092 echo "configure: failed program was:" >&5
1093 cat conftest.
$ac_ext >&5
1095 CPP
="${CC-cc} -nologo -E"
1096 cat > conftest.
$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1102 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1103 { (eval echo configure
:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1104 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1105 if test -z "$ac_err"; then
1109 echo "configure: failed program was:" >&5
1110 cat conftest.
$ac_ext >&5
1119 ac_cv_prog_CPP
="$CPP"
1121 CPP
="$ac_cv_prog_CPP"
1123 ac_cv_prog_CPP
="$CPP"
1125 echo "$ac_t""$CPP" 1>&6
1127 # Find a good install program. We prefer a C program (faster),
1128 # so one script is as good as another. But avoid the broken or
1129 # incompatible versions:
1130 # SysV /etc/install, /usr/sbin/install
1131 # SunOS /usr/etc/install
1132 # IRIX /sbin/install
1134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1137 # ./install, which can be erroneously created by make from ./install.sh.
1138 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1139 echo "configure:1140: checking for a BSD compatible install" >&5
1140 if test -z "$INSTALL"; then
1141 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1145 for ac_dir
in $PATH; do
1146 # Account for people who put trailing slashes in PATH elements.
1148 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1150 # OSF1 and SCO ODT 3.0 have their own names for install.
1151 # Don't use installbsd from OSF since it installs stuff as root
1153 for ac_prog
in ginstall scoinst
install; do
1154 if test -f $ac_dir/$ac_prog; then
1155 if test $ac_prog = install &&
1156 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1157 # AIX install. It has an incompatible calling convention.
1160 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1171 if test "${ac_cv_path_install+set}" = set; then
1172 INSTALL
="$ac_cv_path_install"
1174 # As a last resort, use the slow shell script. We don't cache a
1175 # path for INSTALL within a source directory, because that will
1176 # break other packages using the cache if that directory is
1177 # removed, or if the path is relative.
1178 INSTALL
="$ac_install_sh"
1181 echo "$ac_t""$INSTALL" 1>&6
1183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1184 # It thinks the first close brace ends the variable substitution.
1185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1189 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1191 # Extract the first word of "ranlib", so it can be a program name with args.
1192 set dummy ranlib
; ac_word
=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 if test -n "$RANLIB"; then
1199 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1201 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1203 for ac_dir
in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir
=.
1205 if test -f $ac_dir/$ac_word; then
1206 ac_cv_prog_RANLIB
="ranlib"
1211 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1214 RANLIB
="$ac_cv_prog_RANLIB"
1215 if test -n "$RANLIB"; then
1216 echo "$ac_t""$RANLIB" 1>&6
1218 echo "$ac_t""no" 1>&6
1221 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${MAKE-make} sets \${MAKE}" >&5
1223 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1224 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 cat > conftestmake
<<\EOF
1229 @
echo 'ac_maketemp="${MAKE}"'
1231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1232 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1233 if test -n "$ac_maketemp"; then
1234 eval ac_cv_prog_make_
${ac_make}_set
=yes
1236 eval ac_cv_prog_make_
${ac_make}_set
=no
1240 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1244 echo "$ac_t""no" 1>&6
1245 SET_MAKE
="MAKE=${MAKE-make}"
1249 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1250 echo "configure:1251: checking for AIX" >&5
1251 cat > conftest.
$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1260 egrep "yes" >/dev
/null
2>&1; then
1262 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1263 #define _ALL_SOURCE 1
1268 echo "$ac_t""no" 1>&6
1273 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1274 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1275 echo "configure:1276: checking for minix/config.h" >&5
1276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.
$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 #include <minix/config.h>
1284 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1285 { (eval echo configure
:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1286 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1287 if test -z "$ac_err"; then
1289 eval "ac_cv_header_$ac_safe=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 eval "ac_cv_header_$ac_safe=no"
1299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1300 echo "$ac_t""yes" 1>&6
1303 echo "$ac_t""no" 1>&6
1307 if test "$MINIX" = yes; then
1308 cat >> confdefs.h
<<\EOF
1309 #define _POSIX_SOURCE 1
1312 cat >> confdefs.h
<<\EOF
1313 #define _POSIX_1_SOURCE 2
1316 cat >> confdefs.h
<<\EOF
1322 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1323 echo "configure:1324: checking for POSIXized ISC" >&5
1324 if test -d /etc
/conf
/kconfig.d
&&
1325 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1327 echo "$ac_t""yes" 1>&6
1328 ISC
=yes # If later tests want to check for ISC.
1329 cat >> confdefs.h
<<\EOF
1330 #define _POSIX_SOURCE 1
1333 if test "$GCC" = yes; then
1339 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
1345 echo "configure:1346: checking for getpwnam in -lsun" >&5
1346 ac_lib_var
=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
1347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 ac_save_LIBS
="$LIBS"
1352 cat > conftest.
$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1355 /* Override any gcc2 internal prototype to avoid an error. */
1356 /* We use char because int might match the return type of a gcc2
1357 builtin and then its argument prototype would still apply. */
1364 if { (eval echo configure
:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1366 eval "ac_cv_lib_$ac_lib_var=yes"
1368 echo "configure: failed program was:" >&5
1369 cat conftest.
$ac_ext >&5
1371 eval "ac_cv_lib_$ac_lib_var=no"
1374 LIBS
="$ac_save_LIBS"
1377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1378 echo "$ac_t""yes" 1>&6
1379 ac_tr_lib
=HAVE_LIB
`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1381 cat >> confdefs.h
<<EOF
1382 #define $ac_tr_lib 1
1388 echo "$ac_t""no" 1>&6
1392 for ac_hdr
in fcntl.h string.h limits.h unistd.h errno.h
1394 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_hdr" >&5
1397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 cat > conftest.
$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1405 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1406 { (eval echo configure
:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1407 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1408 if test -z "$ac_err"; then
1410 eval "ac_cv_header_$ac_safe=yes"
1413 echo "configure: failed program was:" >&5
1414 cat conftest.
$ac_ext >&5
1416 eval "ac_cv_header_$ac_safe=no"
1420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1422 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1423 cat >> confdefs.h
<<EOF
1424 #define $ac_tr_hdr 1
1428 echo "$ac_t""no" 1>&6
1432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1433 echo "configure:1434: checking for ANSI C header files" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1445 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1446 { (eval echo configure
:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1447 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448 if test -z "$ac_err"; then
1450 ac_cv_header_stdc
=yes
1453 echo "configure: failed program was:" >&5
1454 cat conftest.
$ac_ext >&5
1456 ac_cv_header_stdc
=no
1460 if test $ac_cv_header_stdc = yes; then
1461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1462 cat > conftest.
$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "memchr" >/dev
/null
2>&1; then
1472 ac_cv_header_stdc
=no
1478 if test $ac_cv_header_stdc = yes; then
1479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1480 cat > conftest.
$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1486 egrep "free" >/dev
/null
2>&1; then
1490 ac_cv_header_stdc
=no
1496 if test $ac_cv_header_stdc = yes; then
1497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1498 if test "$cross_compiling" = yes; then
1501 cat > conftest.
$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1505 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1506 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1508 int main () { int i; for (i = 0; i < 256; i++)
1509 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1513 if { (eval echo configure
:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1517 echo "configure: failed program was:" >&5
1518 cat conftest.
$ac_ext >&5
1520 ac_cv_header_stdc
=no
1528 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1529 if test $ac_cv_header_stdc = yes; then
1530 cat >> confdefs.h
<<\EOF
1531 #define STDC_HEADERS 1
1536 echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether sys/types.h defines makedev" >&5
1538 if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1544 #include <sys/types.h>
1546 return makedev(0, 0);
1549 if { (eval echo configure
:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1551 ac_cv_header_sys_types_h_makedev
=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 ac_cv_header_sys_types_h_makedev
=no
1562 echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
1564 if test $ac_cv_header_sys_types_h_makedev = no
; then
1565 ac_safe
=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
1566 echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
1567 echo "configure:1568: checking for sys/mkdev.h" >&5
1568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 cat > conftest.
$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 #include <sys/mkdev.h>
1576 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure
:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1579 if test -z "$ac_err"; then
1581 eval "ac_cv_header_$ac_safe=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.
$ac_ext >&5
1587 eval "ac_cv_header_$ac_safe=no"
1591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1592 echo "$ac_t""yes" 1>&6
1593 cat >> confdefs.h
<<\EOF
1594 #define MAJOR_IN_MKDEV 1
1598 echo "$ac_t""no" 1>&6
1602 if test $ac_cv_header_sys_mkdev_h = no
; then
1603 ac_safe
=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
1604 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
1605 echo "configure:1606: checking for sys/sysmacros.h" >&5
1606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 cat > conftest.
$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <sys/sysmacros.h>
1614 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure
:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1619 eval "ac_cv_header_$ac_safe=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 eval "ac_cv_header_$ac_safe=no"
1629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1630 echo "$ac_t""yes" 1>&6
1631 cat >> confdefs.h
<<\EOF
1632 #define MAJOR_IN_SYSMACROS 1
1636 echo "$ac_t""no" 1>&6
1643 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1645 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1646 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_hdr that defines DIR" >&5
1648 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.
$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <sys/types.h>
1660 if { (eval echo configure
:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1662 eval "ac_cv_header_dirent_$ac_safe=yes"
1664 echo "configure: failed program was:" >&5
1665 cat conftest.
$ac_ext >&5
1667 eval "ac_cv_header_dirent_$ac_safe=no"
1671 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1672 echo "$ac_t""yes" 1>&6
1673 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1674 cat >> confdefs.h
<<EOF
1675 #define $ac_tr_hdr 1
1677 ac_header_dirent
=$ac_hdr; break
1679 echo "$ac_t""no" 1>&6
1682 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1683 if test $ac_header_dirent = dirent.h
; then
1684 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1685 echo "configure:1686: checking for opendir in -ldir" >&5
1686 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_save_LIBS
="$LIBS"
1692 cat > conftest.
$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1704 if { (eval echo configure
:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1711 eval "ac_cv_lib_$ac_lib_var=no"
1714 LIBS
="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1721 echo "$ac_t""no" 1>&6
1725 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1726 echo "configure:1727: checking for opendir in -lx" >&5
1727 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 ac_save_LIBS
="$LIBS"
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 /* Override any gcc2 internal prototype to avoid an error. */
1737 /* We use char because int might match the return type of a gcc2
1738 builtin and then its argument prototype would still apply. */
1745 if { (eval echo configure
:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1747 eval "ac_cv_lib_$ac_lib_var=yes"
1749 echo "configure: failed program was:" >&5
1750 cat conftest.
$ac_ext >&5
1752 eval "ac_cv_lib_$ac_lib_var=no"
1755 LIBS
="$ac_save_LIBS"
1758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1762 echo "$ac_t""no" 1>&6
1767 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether stat file-mode macros are broken" >&5
1769 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 #include <sys/types.h>
1776 #include <sys/stat.h>
1778 #if defined(S_ISBLK) && defined(S_IFDIR)
1779 # if S_ISBLK (S_IFDIR)
1784 #if defined(S_ISBLK) && defined(S_IFCHR)
1785 # if S_ISBLK (S_IFCHR)
1790 #if defined(S_ISLNK) && defined(S_IFREG)
1791 # if S_ISLNK (S_IFREG)
1796 #if defined(S_ISSOCK) && defined(S_IFREG)
1797 # if S_ISSOCK (S_IFREG)
1803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1804 egrep "You lose" >/dev
/null
2>&1; then
1806 ac_cv_header_stat_broken
=yes
1809 ac_cv_header_stat_broken
=no
1815 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1816 if test $ac_cv_header_stat_broken = yes; then
1817 cat >> confdefs.h
<<\EOF
1818 #define STAT_MACROS_BROKEN 1
1823 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1824 echo "configure:1825: checking for sys/wait.h that is POSIX.1 compatible" >&5
1825 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <sys/types.h>
1832 #include <sys/wait.h>
1834 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1837 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1842 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1845 if { (eval echo configure
:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1847 ac_cv_header_sys_wait_h
=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 ac_cv_header_sys_wait_h
=no
1857 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1858 if test $ac_cv_header_sys_wait_h = yes; then
1859 cat >> confdefs.h
<<\EOF
1860 #define HAVE_SYS_WAIT_H 1
1866 echo $ac_n "checking how to get filesystem type""... $ac_c" 1>&6
1867 echo "configure:1868: checking how to get filesystem type" >&5
1869 # The order of these tests is important.
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <sys/statvfs.h>
1874 #include <sys/fstyp.h>
1876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure
:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1881 cat >> confdefs.h
<<\EOF
1882 #define FSTYPE_STATVFS 1
1887 echo "configure: failed program was:" >&5
1888 cat conftest.
$ac_ext >&5
1891 if test $fstype = no
; then
1892 cat > conftest.
$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <sys/statfs.h>
1896 #include <sys/fstyp.h>
1898 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure
:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1903 cat >> confdefs.h
<<\EOF
1904 #define FSTYPE_USG_STATFS 1
1909 echo "configure: failed program was:" >&5
1910 cat conftest.
$ac_ext >&5
1914 if test $fstype = no
; then
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <sys/statfs.h>
1919 #include <sys/vmount.h>
1921 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1922 { (eval echo configure
:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1923 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1924 if test -z "$ac_err"; then
1926 cat >> confdefs.h
<<\EOF
1927 #define FSTYPE_AIX_STATFS 1
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1937 if test $fstype = no
; then
1938 cat > conftest.
$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1944 { (eval echo configure
:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1946 if test -z "$ac_err"; then
1948 cat >> confdefs.h
<<\EOF
1949 #define FSTYPE_MNTENT 1
1954 echo "configure: failed program was:" >&5
1955 cat conftest.
$ac_ext >&5
1959 if test $fstype = no
; then
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 #include <sys/mount.h>
1965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1966 egrep "f_type;" >/dev
/null
2>&1; then
1968 cat >> confdefs.h
<<\EOF
1969 #define FSTYPE_STATFS 1
1976 if test $fstype = no
; then
1977 cat > conftest.
$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 #include <sys/mount.h>
1981 #include <sys/fs_types.h>
1983 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure
:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986 if test -z "$ac_err"; then
1988 cat >> confdefs.h
<<\EOF
1989 #define FSTYPE_GETMNT 1
1994 echo "configure: failed program was:" >&5
1995 cat conftest.
$ac_ext >&5
1999 echo "$ac_t""$fstype" 1>&6
2002 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2003 echo "configure:2004: checking for uid_t in sys/types.h" >&5
2004 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.
$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 #include <sys/types.h>
2012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2013 egrep "uid_t" >/dev
/null
2>&1; then
2015 ac_cv_type_uid_t
=yes
2024 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2025 if test $ac_cv_type_uid_t = no
; then
2026 cat >> confdefs.h
<<\EOF
2030 cat >> confdefs.h
<<\EOF
2036 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2037 echo "configure:2038: checking for size_t" >&5
2038 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <sys/types.h>
2050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2051 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2053 ac_cv_type_size_t
=yes
2056 ac_cv_type_size_t
=no
2061 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2062 if test $ac_cv_type_size_t = no
; then
2063 cat >> confdefs.h
<<\EOF
2064 #define size_t unsigned
2069 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2070 echo "configure:2071: checking for pid_t" >&5
2071 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+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 #include <sys/types.h>
2083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2084 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2086 ac_cv_type_pid_t
=yes
2094 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2095 if test $ac_cv_type_pid_t = no
; then
2096 cat >> confdefs.h
<<\EOF
2102 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2103 echo "configure:2104: checking for ino_t" >&5
2104 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2117 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2119 ac_cv_type_ino_t
=yes
2127 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2128 if test $ac_cv_type_ino_t = no
; then
2129 cat >> confdefs.h
<<\EOF
2130 #define ino_t unsigned long
2135 echo $ac_n "checking for dev_t""... $ac_c" 1>&6
2136 echo "configure:2137: checking for dev_t" >&5
2137 if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.
$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 #include <sys/types.h>
2149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2150 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2152 ac_cv_type_dev_t
=yes
2160 echo "$ac_t""$ac_cv_type_dev_t" 1>&6
2161 if test $ac_cv_type_dev_t = no
; then
2162 cat >> confdefs.h
<<\EOF
2163 #define dev_t unsigned long
2168 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2169 echo "configure:2170: checking for st_blocks in struct stat" >&5
2170 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 #include <sys/types.h>
2177 #include <sys/stat.h>
2179 struct stat s; s.st_blocks;
2182 if { (eval echo configure
:2183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2184 ac_cv_struct_st_blocks
=yes
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 ac_cv_struct_st_blocks
=no
2194 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2195 if test $ac_cv_struct_st_blocks = yes; then
2196 cat >> confdefs.h
<<\EOF
2197 #define HAVE_ST_BLOCKS 1
2201 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
2204 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2205 echo "configure:2206: checking for st_rdev in struct stat" >&5
2206 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <sys/types.h>
2213 #include <sys/stat.h>
2215 struct stat s; s.st_rdev;
2218 if { (eval echo configure
:2219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2220 ac_cv_struct_st_rdev
=yes
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2225 ac_cv_struct_st_rdev
=no
2230 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2231 if test $ac_cv_struct_st_rdev = yes; then
2232 cat >> confdefs.h
<<\EOF
2233 #define HAVE_ST_RDEV 1
2238 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2239 echo "configure:2240: checking whether struct tm is in sys/time.h or time.h" >&5
2240 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2249 struct tm *tp; tp->tm_sec;
2252 if { (eval echo configure
:2253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 ac_cv_struct_tm
=time.h
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2259 ac_cv_struct_tm
=sys
/time.h
2264 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2265 if test $ac_cv_struct_tm = sys
/time.h
; then
2266 cat >> confdefs.h
<<\EOF
2267 #define TM_IN_SYS_TIME 1
2272 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2273 echo "configure:2274: checking for tm_zone in struct tm" >&5
2274 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.
$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <sys/types.h>
2281 #include <$ac_cv_struct_tm>
2283 struct tm tm; tm.tm_zone;
2286 if { (eval echo configure
:2287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2288 ac_cv_struct_tm_zone
=yes
2290 echo "configure: failed program was:" >&5
2291 cat conftest.
$ac_ext >&5
2293 ac_cv_struct_tm_zone
=no
2298 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2299 if test "$ac_cv_struct_tm_zone" = yes; then
2300 cat >> confdefs.h
<<\EOF
2301 #define HAVE_TM_ZONE 1
2305 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2306 echo "configure:2307: checking for tzname" >&5
2307 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 cat > conftest.
$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2314 #ifndef tzname /* For SGI. */
2315 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2321 if { (eval echo configure
:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2323 ac_cv_var_tzname
=yes
2325 echo "configure: failed program was:" >&5
2326 cat conftest.
$ac_ext >&5
2333 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2334 if test $ac_cv_var_tzname = yes; then
2335 cat >> confdefs.h
<<\EOF
2336 #define HAVE_TZNAME 1
2342 echo $ac_n "checking for working const""... $ac_c" 1>&6
2343 echo "configure:2344: checking for working const" >&5
2344 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 cat > conftest.
$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2353 /* Ultrix mips cc rejects this. */
2354 typedef int charset[2]; const charset x;
2355 /* SunOS 4.1.1 cc rejects this. */
2356 char const *const *ccp;
2358 /* NEC SVR4.0.2 mips cc rejects this. */
2359 struct point {int x, y;};
2360 static struct point const zero = {0,0};
2361 /* AIX XL C 1.02.0.0 rejects this.
2362 It does not let you subtract one const X* pointer from another in an arm
2363 of an if-expression whose if-part is not a constant expression */
2364 const char *g = "string";
2365 ccp = &g + (g ? g-g : 0);
2366 /* HPUX 7.0 cc rejects these. */
2369 ccp = (char const *const *) p;
2370 { /* SCO 3.2v4 cc rejects this. */
2372 char const *s = 0 ? (char *) 0 : (char const *) 0;
2376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2378 const int *foo = &x[0];
2381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2382 typedef const int *iptr;
2386 { /* AIX XL C 1.02.0.0 rejects this saying
2387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2388 struct s { int j; const int *ap[3]; };
2389 struct s *b; b->j = 5;
2391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2397 if { (eval echo configure
:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2409 echo "$ac_t""$ac_cv_c_const" 1>&6
2410 if test $ac_cv_c_const = no
; then
2411 cat >> confdefs.h
<<\EOF
2419 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2420 echo "configure:2421: checking for strftime" >&5
2421 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 /* System header to define __stub macros and hopefully few prototypes,
2428 which can conflict with char strftime(); below. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2431 /* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2437 /* The GNU C library defines this for functions which it implements
2438 to always fail with ENOSYS. Some functions are actually named
2439 something starting with __ and the normal name is an alias. */
2440 #if defined (__stub_strftime) || defined (__stub___strftime)
2448 if { (eval echo configure
:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2450 eval "ac_cv_func_strftime=yes"
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2455 eval "ac_cv_func_strftime=no"
2460 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 cat >> confdefs.h
<<\EOF
2463 #define HAVE_STRFTIME 1
2467 echo "$ac_t""no" 1>&6
2468 # strftime is in -lintl on SCO UNIX.
2469 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2470 echo "configure:2471: checking for strftime in -lintl" >&5
2471 ac_lib_var
=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 ac_save_LIBS
="$LIBS"
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* Override any gcc2 internal prototype to avoid an error. */
2481 /* We use char because int might match the return type of a gcc2
2482 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 eval "ac_cv_lib_$ac_lib_var=no"
2499 LIBS
="$ac_save_LIBS"
2502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 cat >> confdefs.h
<<\EOF
2505 #define HAVE_STRFTIME 1
2510 echo "$ac_t""no" 1>&6
2515 for ac_func
in memcmp memset mktime stpcpy strdup strftime strspn strstr strtol
2517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_func" >&5
2519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 cat > conftest.
$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $ac_func(); below. */
2528 /* Override any gcc2 internal prototype to avoid an error. */
2529 /* We use char because int might match the return type of a gcc2
2530 builtin and then its argument prototype would still apply. */
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2546 if { (eval echo configure
:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2548 eval "ac_cv_func_$ac_func=yes"
2550 echo "configure: failed program was:" >&5
2551 cat conftest.
$ac_ext >&5
2553 eval "ac_cv_func_$ac_func=no"
2558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2561 cat >> confdefs.h
<<EOF
2562 #define $ac_tr_func 1
2566 echo "$ac_t""no" 1>&6
2567 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2572 for ac_func
in fchdir getcwd strerror
basename endgrent endpwent
2574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_func" >&5
2576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.
$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $ac_func(); below. */
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2592 /* The GNU C library defines this for functions which it implements
2593 to always fail with ENOSYS. Some functions are actually named
2594 something starting with __ and the normal name is an alias. */
2595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2603 if { (eval echo configure
:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2605 eval "ac_cv_func_$ac_func=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.
$ac_ext >&5
2610 eval "ac_cv_func_$ac_func=no"
2615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2618 cat >> confdefs.h
<<EOF
2619 #define $ac_tr_func 1
2623 echo "$ac_t""no" 1>&6
2627 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2628 echo "configure:2629: checking for vprintf" >&5
2629 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.
$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 /* System header to define __stub macros and hopefully few prototypes,
2636 which can conflict with char vprintf(); below. */
2638 /* Override any gcc2 internal prototype to avoid an error. */
2639 /* We use char because int might match the return type of a gcc2
2640 builtin and then its argument prototype would still apply. */
2645 /* The GNU C library defines this for functions which it implements
2646 to always fail with ENOSYS. Some functions are actually named
2647 something starting with __ and the normal name is an alias. */
2648 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2656 if { (eval echo configure
:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2658 eval "ac_cv_func_vprintf=yes"
2660 echo "configure: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2663 eval "ac_cv_func_vprintf=no"
2668 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2669 echo "$ac_t""yes" 1>&6
2670 cat >> confdefs.h
<<\EOF
2671 #define HAVE_VPRINTF 1
2675 echo "$ac_t""no" 1>&6
2678 if test "$ac_cv_func_vprintf" != yes; then
2679 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2680 echo "configure:2681: checking for _doprnt" >&5
2681 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.
$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* System header to define __stub macros and hopefully few prototypes,
2688 which can conflict with char _doprnt(); below. */
2690 /* Override any gcc2 internal prototype to avoid an error. */
2691 /* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2697 /* The GNU C library defines this for functions which it implements
2698 to always fail with ENOSYS. Some functions are actually named
2699 something starting with __ and the normal name is an alias. */
2700 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2708 if { (eval echo configure
:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2710 eval "ac_cv_func__doprnt=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "ac_cv_func__doprnt=no"
2720 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 cat >> confdefs.h
<<\EOF
2723 #define HAVE_DOPRNT 1
2727 echo "$ac_t""no" 1>&6
2732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2733 # for constant arguments. Useless!
2734 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2735 echo "configure:2736: checking for working alloca.h" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.
$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2744 char *p = alloca(2 * sizeof(int));
2747 if { (eval echo configure
:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2749 ac_cv_header_alloca_h
=yes
2751 echo "configure: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2754 ac_cv_header_alloca_h
=no
2759 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2760 if test $ac_cv_header_alloca_h = yes; then
2761 cat >> confdefs.h
<<\EOF
2762 #define HAVE_ALLOCA_H 1
2767 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2768 echo "configure:2769: checking for alloca" >&5
2769 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 cat > conftest.
$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2777 # define alloca __builtin_alloca
2780 # include <malloc.h>
2781 # define alloca _alloca
2784 # include <alloca.h>
2789 # ifndef alloca /* predefined by HP cc +Olibcalls */
2798 char *p = (char *) alloca(1);
2801 if { (eval echo configure
:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2803 ac_cv_func_alloca_works
=yes
2805 echo "configure: failed program was:" >&5
2806 cat conftest.
$ac_ext >&5
2808 ac_cv_func_alloca_works
=no
2813 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2814 if test $ac_cv_func_alloca_works = yes; then
2815 cat >> confdefs.h
<<\EOF
2816 #define HAVE_ALLOCA 1
2821 if test $ac_cv_func_alloca_works = no
; then
2822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2823 # that cause trouble. Some versions do not even contain alloca or
2824 # contain a buggy version. If you still want to use their alloca,
2825 # use ar to extract alloca.o from them instead of compiling alloca.c.
2826 ALLOCA
=alloca.
${ac_objext}
2827 cat >> confdefs.h
<<\EOF
2832 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2833 echo "configure:2834: checking whether alloca needs Cray hooks" >&5
2834 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.
$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 #if defined(CRAY) && ! defined(CRAY2)
2847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2848 egrep "webecray" >/dev
/null
2>&1; then
2859 echo "$ac_t""$ac_cv_os_cray" 1>&6
2860 if test $ac_cv_os_cray = yes; then
2861 for ac_func
in _getb67 GETB67 getb67
; do
2862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2863 echo "configure:2864: checking for $ac_func" >&5
2864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.
$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 /* System header to define __stub macros and hopefully few prototypes,
2871 which can conflict with char $ac_func(); below. */
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2880 /* The GNU C library defines this for functions which it implements
2881 to always fail with ENOSYS. Some functions are actually named
2882 something starting with __ and the normal name is an alias. */
2883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2891 if { (eval echo configure
:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2893 eval "ac_cv_func_$ac_func=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2898 eval "ac_cv_func_$ac_func=no"
2903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2905 cat >> confdefs.h
<<EOF
2906 #define CRAY_STACKSEG_END $ac_func
2911 echo "$ac_t""no" 1>&6
2917 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2918 echo "configure:2919: checking stack direction for C alloca" >&5
2919 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 if test "$cross_compiling" = yes; then
2923 ac_cv_c_stack_direction
=0
2925 cat > conftest.
$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 find_stack_direction ()
2930 static char *addr = 0;
2935 return find_stack_direction ();
2938 return (&dummy > addr) ? 1 : -1;
2942 exit (find_stack_direction() < 0);
2945 if { (eval echo configure
:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2947 ac_cv_c_stack_direction
=1
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 ac_cv_c_stack_direction
=-1
2959 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2960 cat >> confdefs.h
<<EOF
2961 #define STACK_DIRECTION $ac_cv_c_stack_direction
2966 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
2967 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
2968 echo "configure:2969: checking for getmntent in -lsun" >&5
2969 ac_lib_var
=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
2970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 ac_save_LIBS
="$LIBS"
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* Override any gcc2 internal prototype to avoid an error. */
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2987 if { (eval echo configure
:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2989 eval "ac_cv_lib_$ac_lib_var=yes"
2991 echo "configure: failed program was:" >&5
2992 cat conftest.
$ac_ext >&5
2994 eval "ac_cv_lib_$ac_lib_var=no"
2997 LIBS
="$ac_save_LIBS"
3000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3004 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
3006 echo "configure:3007: checking for getmntent in -lseq" >&5
3007 ac_lib_var
=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
3008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 ac_save_LIBS
="$LIBS"
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 /* We use char because int might match the return type of a gcc2
3018 builtin and then its argument prototype would still apply. */
3025 if { (eval echo configure
:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3027 eval "ac_cv_lib_$ac_lib_var=yes"
3029 echo "configure: failed program was:" >&5
3030 cat conftest.
$ac_ext >&5
3032 eval "ac_cv_lib_$ac_lib_var=no"
3035 LIBS
="$ac_save_LIBS"
3038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3042 echo "$ac_t""no" 1>&6
3043 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
3044 echo "configure:3045: checking for getmntent in -lgen" >&5
3045 ac_lib_var
=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
3046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 ac_save_LIBS
="$LIBS"
3051 cat > conftest.
$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* Override any gcc2 internal prototype to avoid an error. */
3055 /* We use char because int might match the return type of a gcc2
3056 builtin and then its argument prototype would still apply. */
3063 if { (eval echo configure
:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3065 eval "ac_cv_lib_$ac_lib_var=yes"
3067 echo "configure: failed program was:" >&5
3068 cat conftest.
$ac_ext >&5
3070 eval "ac_cv_lib_$ac_lib_var=no"
3073 LIBS
="$ac_save_LIBS"
3076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3077 echo "$ac_t""yes" 1>&6
3080 echo "$ac_t""no" 1>&6
3087 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
3088 echo "configure:3089: checking for getmntent" >&5
3089 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.
$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* System header to define __stub macros and hopefully few prototypes,
3096 which can conflict with char getmntent(); below. */
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3105 /* The GNU C library defines this for functions which it implements
3106 to always fail with ENOSYS. Some functions are actually named
3107 something starting with __ and the normal name is an alias. */
3108 #if defined (__stub_getmntent) || defined (__stub___getmntent)
3116 if { (eval echo configure
:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3118 eval "ac_cv_func_getmntent=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3123 eval "ac_cv_func_getmntent=no"
3128 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 cat >> confdefs.h
<<\EOF
3131 #define HAVE_GETMNTENT 1
3135 echo "$ac_t""no" 1>&6
3138 echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
3139 echo "configure:3140: checking whether closedir returns void" >&5
3140 if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 if test "$cross_compiling" = yes; then
3144 ac_cv_func_closedir_void
=yes
3146 cat > conftest.
$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <sys/types.h>
3150 #include <$ac_header_dirent>
3151 int closedir(); main() { exit(closedir(opendir(".")) != 0); }
3153 if { (eval echo configure
:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3155 ac_cv_func_closedir_void
=no
3157 echo "configure: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3160 ac_cv_func_closedir_void
=yes
3167 echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
3168 if test $ac_cv_func_closedir_void = yes; then
3169 cat >> confdefs.h
<<\EOF
3170 #define CLOSEDIR_VOID 1
3177 cat > confcache
<<\EOF
3178 # This file is a shell script that caches the results of configure
3179 # tests run on this system so they can be shared between configure
3180 # scripts and configure runs. It is not useful on other systems.
3181 # If it contains results you don't want to keep, you may remove or edit it.
3183 # By default, configure uses ./config.cache as the cache file,
3184 # creating it if it does not exist already. You can give configure
3185 # the --cache-file=FILE option to use a different cache file; that is
3186 # what configure does when it calls configure scripts in
3187 # subdirectories, so they share the cache.
3188 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3189 # config.status only pays attention to the cache file if you give it the
3190 # --recheck option to rerun configure.
3193 # The following way of writing the cache mishandles newlines in values,
3194 # but we know of no workaround that is simple, portable, and efficient.
3195 # So, don't put newlines in cache variables' values.
3196 # Ultrix sh set writes to stderr and can't be redirected directly,
3197 # and sets the high bit in the cache file unless we assign to the vars.
3199 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3201 # `set' does not quote correctly, so add quotes (double-quote substitution
3202 # turns \\\\ into \\, and sed turns \\ into \).
3204 -e "s/'/'\\\\''/g" \
3205 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3208 # `set' quotes correctly as required by POSIX, so do not add quotes.
3209 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3212 if cmp -s $cache_file confcache
; then
3215 if test -w $cache_file; then
3216 echo "updating cache $cache_file"
3217 cat confcache
> $cache_file
3219 echo "not updating unwritable cache $cache_file"
3224 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3226 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3227 # Let make expand exec_prefix.
3228 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3230 # Any assignment to VPATH causes Sun make to only execute
3231 # the first set of double-colon rules, so remove it if not needed.
3232 # If there is a colon in the path, we need to keep it.
3233 if test "x$srcdir" = x.
; then
3234 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3237 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3239 DEFS
=-DHAVE_CONFIG_H
3241 # Without the "./", some shells look in PATH for config.status.
3242 : ${CONFIG_STATUS=./config.status}
3244 echo creating
$CONFIG_STATUS
3245 rm -f $CONFIG_STATUS
3246 cat > $CONFIG_STATUS <<EOF
3248 # Generated automatically by configure.
3249 # Run this file to recreate the current configuration.
3250 # This directory was configured as follows,
3251 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3253 # $0 $ac_configure_args
3255 # Compiler output produced by configure, useful for debugging
3256 # configure, is in ./config.log if it exists.
3258 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3261 case "\$ac_option" in
3262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3263 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3264 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3265 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3266 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3268 -help | --help | --hel | --he | --h)
3269 echo "\$ac_cs_usage"; exit 0 ;;
3270 *) echo "\$ac_cs_usage"; exit 1 ;;
3274 ac_given_srcdir=$srcdir
3275 ac_given_INSTALL="$INSTALL"
3277 trap 'rm -fr `echo "Makefile lib/Makefile find/Makefile xargs/Makefile \
3278 locate/Makefile doc/Makefile testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3280 cat >> $CONFIG_STATUS <<EOF
3282 # Protect against being on the right side of a sed subst in config.status.
3283 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3284 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3288 s%@CFLAGS@%$CFLAGS%g
3289 s%@CPPFLAGS@%$CPPFLAGS%g
3290 s%@CXXFLAGS@%$CXXFLAGS%g
3291 s%@FFLAGS@%$FFLAGS%g
3293 s%@LDFLAGS@%$LDFLAGS%g
3295 s%@exec_prefix@%$exec_prefix%g
3296 s%@prefix@%$prefix%g
3297 s%@program_transform_name@%$program_transform_name%g
3298 s%@bindir@%$bindir%g
3299 s%@sbindir@%$sbindir%g
3300 s%@libexecdir@%$libexecdir%g
3301 s%@datadir@%$datadir%g
3302 s%@sysconfdir@%$sysconfdir%g
3303 s%@sharedstatedir@%$sharedstatedir%g
3304 s%@localstatedir@%$localstatedir%g
3305 s%@libdir@%$libdir%g
3306 s%@includedir@%$includedir%g
3307 s%@oldincludedir@%$oldincludedir%g
3308 s%@infodir@%$infodir%g
3309 s%@mandir@%$mandir%g
3310 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3311 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3312 s%@INSTALL_DATA@%$INSTALL_DATA%g
3313 s%@PACKAGE@%$PACKAGE%g
3314 s%@VERSION@%$VERSION%g
3315 s%@ACLOCAL@%$ACLOCAL%g
3316 s%@AUTOCONF@%$AUTOCONF%g
3317 s%@AUTOMAKE@%$AUTOMAKE%g
3318 s%@AUTOHEADER@%$AUTOHEADER%g
3319 s%@MAKEINFO@%$MAKEINFO%g
3320 s%@SET_MAKE@%$SET_MAKE%g
3321 s%@INCLUDES@%$INCLUDES%g
3324 s%@RANLIB@%$RANLIB%g
3325 s%@LIBOBJS@%$LIBOBJS%g
3326 s%@ALLOCA@%$ALLOCA%g
3331 cat >> $CONFIG_STATUS <<\EOF
3333 # Split the substitutions into bite-sized pieces for seds with
3334 # small command number limits, like on Digital OSF/1 and HP-UX.
3335 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3336 ac_file
=1 # Number of current file.
3337 ac_beg
=1 # First line for current file.
3338 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3341 while $ac_more_lines; do
3342 if test $ac_beg -gt 1; then
3343 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3345 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3347 if test ! -s conftest.s
$ac_file; then
3349 rm -f conftest.s
$ac_file
3351 if test -z "$ac_sed_cmds"; then
3352 ac_sed_cmds
="sed -f conftest.s$ac_file"
3354 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3356 ac_file
=`expr $ac_file + 1`
3358 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3361 if test -z "$ac_sed_cmds"; then
3366 cat >> $CONFIG_STATUS <<EOF
3368 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile find/Makefile xargs/Makefile \
3369 locate/Makefile doc/Makefile testsuite/Makefile"}
3371 cat >> $CONFIG_STATUS <<\EOF
3372 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3375 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3376 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3377 *) ac_file_in
="${ac_file}.in" ;;
3380 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3382 # Remove last slash and all that follows it. Not all systems have dirname.
3383 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3385 # The file is in a subdirectory.
3386 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3387 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3388 # A "../" for each directory in $ac_dir_suffix.
3389 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3391 ac_dir_suffix
= ac_dots
=
3394 case "$ac_given_srcdir" in
3396 if test -z "$ac_dots"; then top_srcdir
=.
3397 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3398 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3400 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3401 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3404 case "$ac_given_INSTALL" in
3405 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3406 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3409 echo creating
"$ac_file"
3411 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3413 *Makefile
*) ac_comsub
="1i\\
3414 # $configure_input" ;;
3418 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3420 s%@configure_input@%$configure_input%g
3421 s%@srcdir@%$srcdir%g
3422 s%@top_srcdir@%$top_srcdir%g
3423 s%@INSTALL@%$INSTALL%g
3424 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3428 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3429 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3431 # ac_d sets the value in "#define NAME VALUE" lines.
3432 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3433 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3436 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3437 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3438 ac_uB
='\([ ]\)%\1#\2define\3'
3441 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3442 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3443 ac_eB
='$%\1#\2define\3'
3447 if test "${CONFIG_HEADERS+set}" != set; then
3449 cat >> $CONFIG_STATUS <<EOF
3450 CONFIG_HEADERS="config.h"
3452 cat >> $CONFIG_STATUS <<\EOF
3454 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3457 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3458 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3459 *) ac_file_in
="${ac_file}.in" ;;
3462 echo creating
$ac_file
3464 rm -f conftest.frag conftest.
in conftest.out
3465 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3466 cat $ac_file_inputs > conftest.
in
3470 # Transform confdefs.h into a sed script conftest.vals that substitutes
3471 # the proper values into config.h.in to produce config.h. And first:
3472 # Protect against being on the right side of a sed subst in config.status.
3473 # Protect against being in an unquoted here document in config.status.
3475 cat > conftest.hdr
<<\EOF
3478 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3482 sed -n -f conftest.hdr confdefs.h > conftest.vals
3485 # This sed command replaces #undef with comments. This is necessary, for
3486 # example, in the case of _POSIX_SOURCE, which is predefined and required
3487 # on some systems where configure will not decide to define it.
3488 cat >> conftest.vals <<\EOF
3489 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3492 # Break up conftest.vals because some shells have a limit on
3493 # the size of here documents, and old seds have small limits too.
3498 ac_lines=`grep -c . conftest.vals
`
3499 # grep -c gives empty output for an empty file on some AIX systems.
3500 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3501 # Write a limited-size here document to conftest.frag.
3502 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3503 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3505 sed -f conftest.frag conftest.in > conftest.out
3507 mv conftest.out conftest.in
3509 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3511 mv conftest.tail conftest.vals
3515 cat >> $CONFIG_STATUS <<\EOF
3516 rm -f conftest.frag conftest.h
3517 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3518 cat conftest.in >> conftest.h
3520 if cmp -s $ac_file conftest.h 2>/dev/null; then
3521 echo "$ac_file is unchanged"
3524 # Remove last slash and all that follows it. Not all systems have dirname.
3525 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3526 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3527 # The file is in a subdirectory.
3528 test ! -d "$ac_dir" && mkdir "$ac_dir"
3531 mv conftest.h $ac_file
3536 cat >> $CONFIG_STATUS <<EOF
3540 cat >> $CONFIG_STATUS <<\EOF
3541 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3545 chmod +x $CONFIG_STATUS
3546 rm -fr confdefs* $ac_clean_files
3547 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1