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 --with-afs-sysname=sys use sys for the afs sysname
18 --enable-obsolete enable obsolete portions of AFS (mpp, ntp and package)"
20 --enable-insecure enable insecure portions of AFS (ftpd, inetd, rcp, rlogind and rsh)"
22 --disable-afsdb disable AFSDB RR support"
24 --enable-bos-restricted-mode enable bosserver restricted mode which disables certain bosserver functionality"
26 --enable-namei-fileserver force compilation of namei fileserver in preference to inode fileserver"
28 --with-linux-kernel-headers=path use the kernel headers found at path(optional, defaults to /usr/src/linux)
31 --enable-bigendian the target is big endian"
33 --enable-littleendian the target is little endian"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=src/config/stds.h
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
546 if test -f $ac_dir/install-sh; then
548 ac_install_sh="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh; then
552 ac_install_sh="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess=$ac_aux_dir/config.guess
560 ac_config_sub=$ac_aux_dir/config.sub
561 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563 # Find a good install program. We prefer a C program (faster),
564 # so one script is as good as another. But avoid the broken or
565 # incompatible versions:
566 # SysV /etc/install, /usr/sbin/install
567 # SunOS /usr/etc/install
570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573 # ./install, which can be erroneously created by make from ./install.sh.
574 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575 echo "configure:576: checking for a BSD compatible install" >&5
576 if test -z "$INSTALL"; then
577 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6
580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
581 for ac_dir in $PATH; do
582 # Account for people who put trailing slashes in PATH elements.
584 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
586 # OSF1 and SCO ODT 3.0 have their own names for install.
587 # Don't use installbsd from OSF since it installs stuff as root
589 for ac_prog in ginstall scoinst install; do
590 if test -f $ac_dir/$ac_prog; then
591 if test $ac_prog = install &&
592 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
593 # AIX install. It has an incompatible calling convention.
596 ac_cv_path_install="$ac_dir/$ac_prog -c"
607 if test "${ac_cv_path_install+set}" = set; then
608 INSTALL="$ac_cv_path_install"
610 # As a last resort, use the slow shell script. We don't cache a
611 # path for INSTALL within a source directory, because that will
612 # break other packages using the cache if that directory is
613 # removed, or if the path is relative.
614 INSTALL="$ac_install_sh"
617 echo "$ac_t""$INSTALL" 1>&6
619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
620 # It thinks the first close brace ends the variable substitution.
621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
627 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628 echo "configure:629: checking whether build environment is sane" >&5
631 echo timestamp > conftestfile
632 # Do `set' in a subshell so we don't clobber the current shell's
633 # arguments. Must try -L first in case configure is actually a
634 # symlink; some systems play weird games with the mod time of symlinks
635 # (eg FreeBSD returns the mod time of the symlink's containing
638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
639 if test "$*" = "X"; then
641 set X `ls -t $srcdir/configure conftestfile`
643 if test "$*" != "X $srcdir/configure conftestfile" \
644 && test "$*" != "X conftestfile $srcdir/configure"; then
646 # If neither matched, then we have a broken ls. This can happen
647 # if, for instance, CONFIG_SHELL is bash and it inherits a
648 # broken ls alias from the environment. This has actually
649 # happened. Such a system could not be considered "sane".
650 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
651 alias in your environment" 1>&2; exit 1; }
654 test "$2" = conftestfile
660 { echo "configure: error: newly created file is older than distributed files!
661 Check your system clock" 1>&2; exit 1; }
664 echo "$ac_t""yes" 1>&6
665 if test "$program_transform_name" = s,x,x,; then
666 program_transform_name=
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED > conftestsed
670 s,\\,\\\\,g; s,\$,$$,g
672 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
675 test "$program_prefix" != NONE &&
676 program_transform_name="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE &&
679 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
684 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685 echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
686 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
687 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6
690 cat > conftestmake <<\EOF
692 @echo 'ac_maketemp="${MAKE}"'
694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
695 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
696 if test -n "$ac_maketemp"; then
697 eval ac_cv_prog_make_${ac_make}_set=yes
699 eval ac_cv_prog_make_${ac_make}_set=no
703 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
704 echo "$ac_t""yes" 1>&6
707 echo "$ac_t""no" 1>&6
708 SET_MAKE="MAKE=${MAKE-make}"
716 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
717 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
719 cat >> confdefs.h <<EOF
720 #define PACKAGE "$PACKAGE"
723 cat >> confdefs.h <<EOF
724 #define VERSION "$VERSION"
729 missing_dir=`cd $ac_aux_dir && pwd`
730 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
731 echo "configure:732: checking for working aclocal" >&5
732 # Run test in a subshell; some versions of sh will print an error if
733 # an executable is not found, even if stderr is redirected.
734 # Redirect stdin to placate older versions of autoconf. Sigh.
735 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
737 echo "$ac_t""found" 1>&6
739 ACLOCAL="$missing_dir/missing aclocal"
740 echo "$ac_t""missing" 1>&6
743 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
744 echo "configure:745: checking for working autoconf" >&5
745 # Run test in a subshell; some versions of sh will print an error if
746 # an executable is not found, even if stderr is redirected.
747 # Redirect stdin to placate older versions of autoconf. Sigh.
748 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
750 echo "$ac_t""found" 1>&6
752 AUTOCONF="$missing_dir/missing autoconf"
753 echo "$ac_t""missing" 1>&6
756 echo $ac_n "checking for working automake""... $ac_c" 1>&6
757 echo "configure:758: checking for working automake" >&5
758 # Run test in a subshell; some versions of sh will print an error if
759 # an executable is not found, even if stderr is redirected.
760 # Redirect stdin to placate older versions of autoconf. Sigh.
761 if (automake --version) < /dev/null > /dev/null 2>&1; then
763 echo "$ac_t""found" 1>&6
765 AUTOMAKE="$missing_dir/missing automake"
766 echo "$ac_t""missing" 1>&6
769 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
770 echo "configure:771: checking for working autoheader" >&5
771 # Run test in a subshell; some versions of sh will print an error if
772 # an executable is not found, even if stderr is redirected.
773 # Redirect stdin to placate older versions of autoconf. Sigh.
774 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
775 AUTOHEADER=autoheader
776 echo "$ac_t""found" 1>&6
778 AUTOHEADER="$missing_dir/missing autoheader"
779 echo "$ac_t""missing" 1>&6
782 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
783 echo "configure:784: checking for working makeinfo" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
789 echo "$ac_t""found" 1>&6
791 MAKEINFO="$missing_dir/missing makeinfo"
792 echo "$ac_t""missing" 1>&6
797 # Make sure we can run config.sub.
798 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
799 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
802 echo $ac_n "checking host system type""... $ac_c" 1>&6
803 echo "configure:804: checking host system type" >&5
806 case "$host_alias" in
810 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
811 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
813 *) host_alias=$nonopt ;;
817 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
818 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
819 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
820 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
821 echo "$ac_t""$host" 1>&6
825 #BOZO_SAVE_CORES BOS_RESTRICTED_MODE BOS_NEW_CONFIG pam sia BITMAP_LATER FAST_RESTART
826 # Check whether --with-afs-sysname or --without-afs-sysname was given.
827 if test "${with_afs_sysname+set}" = set; then
828 withval="$with_afs_sysname"
832 # Check whether --enable-obsolete or --disable-obsolete was given.
833 if test "${enable_obsolete+set}" = set; then
834 enableval="$enable_obsolete"
840 # Check whether --enable-insecure or --disable-insecure was given.
841 if test "${enable_insecure+set}" = set; then
842 enableval="$enable_insecure"
848 # Check whether --enable-afsdb or --disable-afsdb was given.
849 if test "${enable_afsdb+set}" = set; then
850 enableval="$enable_afsdb"
856 # Check whether --enable-bos-restricted-mode or --disable-bos-restricted-mode was given.
857 if test "${enable_bos_restricted_mode+set}" = set; then
858 enableval="$enable_bos_restricted_mode"
861 enable_bos_restricted_mode="no"
864 # Check whether --enable-namei-fileserver or --disable-namei-fileserver was given.
865 if test "${enable_namei_fileserver+set}" = set; then
866 enableval="$enable_namei_fileserver"
869 enable_namei_fileserver="no"
872 # Check whether --with-linux-kernel-headers or --without-linux-kernel-headers was given.
873 if test "${with_linux_kernel_headers+set}" = set; then
874 withval="$with_linux_kernel_headers"
879 # Extract the first word of "gcc", so it can be a program name with args.
880 set dummy gcc; ac_word=$2
881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
882 echo "configure:883: checking for $ac_word" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
886 if test -n "$CC"; then
887 ac_cv_prog_CC="$CC" # Let the user override the test.
889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
891 for ac_dir in $ac_dummy; do
892 test -z "$ac_dir" && ac_dir=.
893 if test -f $ac_dir/$ac_word; then
902 if test -n "$CC"; then
903 echo "$ac_t""$CC" 1>&6
905 echo "$ac_t""no" 1>&6
908 if test -z "$CC"; then
909 # Extract the first word of "cc", so it can be a program name with args.
910 set dummy cc; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 if test -n "$CC"; then
917 ac_cv_prog_CC="$CC" # Let the user override the test.
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
922 for ac_dir in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir=.
924 if test -f $ac_dir/$ac_word; then
925 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
934 if test $ac_prog_rejected = yes; then
935 # We found a bogon in the path, so make sure we never use it.
936 set dummy $ac_cv_prog_CC
938 if test $# -gt 0; then
939 # We chose a different compiler from the bogus one.
940 # However, it has the same basename, so the bogon will be chosen
941 # first if we set CC to just the basename; use the full file name.
943 set dummy "$ac_dir/$ac_word" "$@"
951 if test -n "$CC"; then
952 echo "$ac_t""$CC" 1>&6
954 echo "$ac_t""no" 1>&6
957 if test -z "$CC"; then
960 # Extract the first word of "cl", so it can be a program name with args.
961 set dummy cl; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$CC"; then
968 ac_cv_prog_CC="$CC" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
983 if test -n "$CC"; then
984 echo "$ac_t""$CC" 1>&6
986 echo "$ac_t""no" 1>&6
991 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
999 ac_cpp='$CPP $CPPFLAGS'
1000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1002 cross_compiling=$ac_cv_prog_cc_cross
1004 cat > conftest.$ac_ext << EOF
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1011 if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1012 ac_cv_prog_cc_works=yes
1013 # If we can't run a trivial program, we are probably using a cross compiler.
1014 if (./conftest; exit) 2>/dev/null; then
1015 ac_cv_prog_cc_cross=no
1017 ac_cv_prog_cc_cross=yes
1020 echo "configure: failed program was:" >&5
1021 cat conftest.$ac_ext >&5
1022 ac_cv_prog_cc_works=no
1026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1027 ac_cpp='$CPP $CPPFLAGS'
1028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1030 cross_compiling=$ac_cv_prog_cc_cross
1032 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1033 if test $ac_cv_prog_cc_works = no; then
1034 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1036 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1038 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1039 cross_compiling=$ac_cv_prog_cc_cross
1041 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether we are using GNU C" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 cat > conftest.c <<EOF
1051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1058 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1060 if test $ac_cv_prog_gcc = yes; then
1066 ac_test_CFLAGS="${CFLAGS+set}"
1067 ac_save_CFLAGS="$CFLAGS"
1069 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether ${CC-cc} accepts -g" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 echo 'void f(){}' > conftest.c
1075 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1084 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1085 if test "$ac_test_CFLAGS" = set; then
1086 CFLAGS="$ac_save_CFLAGS"
1087 elif test $ac_cv_prog_cc_g = yes; then
1088 if test "$GCC" = yes; then
1094 if test "$GCC" = yes; then
1102 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1103 echo "configure:1104: checking how to run the C preprocessor" >&5
1104 # On Suns, sometimes $CPP names a directory.
1105 if test -n "$CPP" && test -d "$CPP"; then
1108 if test -z "$CPP"; then
1109 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 # This must be in double quotes, not single quotes, because CPP may get
1113 # substituted into the Makefile and "${CC-cc}" will confuse make.
1115 # On the NeXT, cc -E runs the code through the compiler's parser,
1116 # not just through cpp.
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1124 { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1126 if test -z "$ac_err"; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1133 CPP="${CC-cc} -E -traditional-cpp"
1134 cat > conftest.$ac_ext <<EOF
1135 #line 1136 "configure"
1136 #include "confdefs.h"
1140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1141 { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1143 if test -z "$ac_err"; then
1147 echo "configure: failed program was:" >&5
1148 cat conftest.$ac_ext >&5
1150 CPP="${CC-cc} -nologo -E"
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1158 { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1160 if test -z "$ac_err"; then
1164 echo "configure: failed program was:" >&5
1165 cat conftest.$ac_ext >&5
1174 ac_cv_prog_CPP="$CPP"
1176 CPP="$ac_cv_prog_CPP"
1178 ac_cv_prog_CPP="$CPP"
1180 echo "$ac_t""$CPP" 1>&6
1182 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1183 echo "configure:1184: checking for AIX" >&5
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1193 egrep "yes" >/dev/null 2>&1; then
1195 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1196 #define _ALL_SOURCE 1
1201 echo "$ac_t""no" 1>&6
1206 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1207 echo "configure:1208: checking for POSIXized ISC" >&5
1208 if test -d /etc/conf/kconfig.d &&
1209 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1211 echo "$ac_t""yes" 1>&6
1212 ISC=yes # If later tests want to check for ISC.
1213 cat >> confdefs.h <<\EOF
1214 #define _POSIX_SOURCE 1
1217 if test "$GCC" = yes; then
1223 echo "$ac_t""no" 1>&6
1227 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1228 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1229 echo "configure:1230: checking for minix/config.h" >&5
1230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <minix/config.h>
1238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1241 if test -z "$ac_err"; then
1243 eval "ac_cv_header_$ac_safe=yes"
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1249 eval "ac_cv_header_$ac_safe=no"
1253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1254 echo "$ac_t""yes" 1>&6
1257 echo "$ac_t""no" 1>&6
1261 if test "$MINIX" = yes; then
1262 cat >> confdefs.h <<\EOF
1263 #define _POSIX_SOURCE 1
1266 cat >> confdefs.h <<\EOF
1267 #define _POSIX_1_SOURCE 2
1270 cat >> confdefs.h <<\EOF
1277 echo $ac_n "checking for inline""... $ac_c" 1>&6
1278 echo "configure:1279: checking for inline" >&5
1279 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1283 for ac_kw in inline __inline__ __inline; do
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1292 if { (eval echo configure:1293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 ac_cv_c_inline=$ac_kw; break
1296 echo "configure: failed program was:" >&5
1297 cat conftest.$ac_ext >&5
1304 echo "$ac_t""$ac_cv_c_inline" 1>&6
1305 case "$ac_cv_c_inline" in
1307 no) cat >> confdefs.h <<\EOF
1311 *) cat >> confdefs.h <<EOF
1312 #define inline $ac_cv_c_inline
1317 echo $ac_n "checking for working const""... $ac_c" 1>&6
1318 echo "configure:1319: checking for working const" >&5
1319 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1328 /* Ultrix mips cc rejects this. */
1329 typedef int charset[2]; const charset x;
1330 /* SunOS 4.1.1 cc rejects this. */
1331 char const *const *ccp;
1333 /* NEC SVR4.0.2 mips cc rejects this. */
1334 struct point {int x, y;};
1335 static struct point const zero = {0,0};
1336 /* AIX XL C 1.02.0.0 rejects this.
1337 It does not let you subtract one const X* pointer from another in an arm
1338 of an if-expression whose if-part is not a constant expression */
1339 const char *g = "string";
1340 ccp = &g + (g ? g-g : 0);
1341 /* HPUX 7.0 cc rejects these. */
1344 ccp = (char const *const *) p;
1345 { /* SCO 3.2v4 cc rejects this. */
1347 char const *s = 0 ? (char *) 0 : (char const *) 0;
1351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1353 const int *foo = &x[0];
1356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1357 typedef const int *iptr;
1361 { /* AIX XL C 1.02.0.0 rejects this saying
1362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1363 struct s { int j; const int *ap[3]; };
1364 struct s *b; b->j = 5;
1366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1372 if { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1384 echo "$ac_t""$ac_cv_c_const" 1>&6
1385 if test $ac_cv_c_const = no; then
1386 cat >> confdefs.h <<\EOF
1392 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1393 echo "configure:1394: checking for ANSI C header files" >&5
1394 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #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 ac_cv_header_stdc=yes
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 ac_cv_header_stdc=no
1420 if test $ac_cv_header_stdc = yes; then
1421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1428 egrep "memchr" >/dev/null 2>&1; then
1432 ac_cv_header_stdc=no
1438 if test $ac_cv_header_stdc = yes; then
1439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1446 egrep "free" >/dev/null 2>&1; then
1450 ac_cv_header_stdc=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1458 if test "$cross_compiling" = yes; then
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1465 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1466 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1468 int main () { int i; for (i = 0; i < 256; i++)
1469 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1473 if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 ac_cv_header_stdc=no
1488 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1489 if test $ac_cv_header_stdc = yes; then
1490 cat >> confdefs.h <<\EOF
1491 #define STDC_HEADERS 1
1496 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1497 echo "configure:1498: checking for pid_t" >&5
1498 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 #include <sys/types.h>
1510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1511 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1513 ac_cv_type_pid_t=yes
1521 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1522 if test $ac_cv_type_pid_t = no; then
1523 cat >> confdefs.h <<\EOF
1529 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1530 echo "configure:1531: checking for size_t" >&5
1531 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <sys/types.h>
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1546 ac_cv_type_size_t=yes
1549 ac_cv_type_size_t=no
1554 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1555 if test $ac_cv_type_size_t = no; then
1556 cat >> confdefs.h <<\EOF
1557 #define size_t unsigned
1562 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1563 echo "configure:1564: checking return type of signal handlers" >&5
1564 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <sys/types.h>
1576 extern "C" void (*signal (int, void (*)(int)))(int);
1578 void (*signal ()) ();
1585 if { (eval echo configure:1586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1587 ac_cv_type_signal=void
1589 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1592 ac_cv_type_signal=int
1597 echo "$ac_t""$ac_cv_type_signal" 1>&6
1598 cat >> confdefs.h <<EOF
1599 #define RETSIGTYPE $ac_cv_type_signal
1604 # Find a good install program. We prefer a C program (faster),
1605 # so one script is as good as another. But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1616 echo "configure:1617: checking for a BSD compatible install" >&5
1617 if test -z "$INSTALL"; then
1618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1622 for ac_dir in $PATH; do
1623 # Account for people who put trailing slashes in PATH elements.
1625 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1627 # OSF1 and SCO ODT 3.0 have their own names for install.
1628 # Don't use installbsd from OSF since it installs stuff as root
1630 for ac_prog in ginstall scoinst install; do
1631 if test -f $ac_dir/$ac_prog; then
1632 if test $ac_prog = install &&
1633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1634 # AIX install. It has an incompatible calling convention.
1637 ac_cv_path_install="$ac_dir/$ac_prog -c"
1648 if test "${ac_cv_path_install+set}" = set; then
1649 INSTALL="$ac_cv_path_install"
1651 # As a last resort, use the slow shell script. We don't cache a
1652 # path for INSTALL within a source directory, because that will
1653 # break other packages using the cache if that directory is
1654 # removed, or if the path is relative.
1655 INSTALL="$ac_install_sh"
1658 echo "$ac_t""$INSTALL" 1>&6
1660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1661 # It thinks the first close brace ends the variable substitution.
1662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1668 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether ln -s works" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1674 if ln -s X conftestdata 2>/dev/null
1677 ac_cv_prog_LN_S="ln -s"
1682 LN_S="$ac_cv_prog_LN_S"
1683 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1684 echo "$ac_t""yes" 1>&6
1686 echo "$ac_t""no" 1>&6
1689 # Extract the first word of "ranlib", so it can be a program name with args.
1690 set dummy ranlib; ac_word=$2
1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_word" >&5
1693 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 if test -n "$RANLIB"; then
1697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1701 for ac_dir in $ac_dummy; do
1702 test -z "$ac_dir" && ac_dir=.
1703 if test -f $ac_dir/$ac_word; then
1704 ac_cv_prog_RANLIB="ranlib"
1709 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1712 RANLIB="$ac_cv_prog_RANLIB"
1713 if test -n "$RANLIB"; then
1714 echo "$ac_t""$RANLIB" 1>&6
1716 echo "$ac_t""no" 1>&6
1719 for ac_prog in 'bison -y' byacc
1721 # Extract the first word of "$ac_prog", so it can be a program name with args.
1722 set dummy $ac_prog; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test -n "$YACC"; then
1729 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1733 for ac_dir in $ac_dummy; do
1734 test -z "$ac_dir" && ac_dir=.
1735 if test -f $ac_dir/$ac_word; then
1736 ac_cv_prog_YACC="$ac_prog"
1743 YACC="$ac_cv_prog_YACC"
1744 if test -n "$YACC"; then
1745 echo "$ac_t""$YACC" 1>&6
1747 echo "$ac_t""no" 1>&6
1750 test -n "$YACC" && break
1752 test -n "$YACC" || YACC="yacc"
1754 missing_dir=`cd $ac_aux_dir && pwd`
1755 for ac_prog in flex lex
1757 # Extract the first word of "$ac_prog", so it can be a program name with args.
1758 set dummy $ac_prog; ac_word=$2
1759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1760 echo "configure:1761: checking for $ac_word" >&5
1761 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if test -n "$LEX"; then
1765 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1769 for ac_dir in $ac_dummy; do
1770 test -z "$ac_dir" && ac_dir=.
1771 if test -f $ac_dir/$ac_word; then
1772 ac_cv_prog_LEX="$ac_prog"
1779 LEX="$ac_cv_prog_LEX"
1780 if test -n "$LEX"; then
1781 echo "$ac_t""$LEX" 1>&6
1783 echo "$ac_t""no" 1>&6
1786 test -n "$LEX" && break
1788 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1790 # Extract the first word of "flex", so it can be a program name with args.
1791 set dummy flex; ac_word=$2
1792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1793 echo "configure:1794: checking for $ac_word" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test -n "$LEX"; then
1798 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1802 for ac_dir in $ac_dummy; do
1803 test -z "$ac_dir" && ac_dir=.
1804 if test -f $ac_dir/$ac_word; then
1805 ac_cv_prog_LEX="flex"
1810 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1813 LEX="$ac_cv_prog_LEX"
1814 if test -n "$LEX"; then
1815 echo "$ac_t""$LEX" 1>&6
1817 echo "$ac_t""no" 1>&6
1820 if test -z "$LEXLIB"
1826 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1827 echo "configure:1828: checking for yywrap in -l$ac_lib" >&5
1828 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 ac_save_LIBS="$LIBS"
1833 LIBS="-l$ac_lib $LIBS"
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 /* Override any gcc2 internal prototype to avoid an error. */
1838 /* We use char because int might match the return type of a gcc2
1839 builtin and then its argument prototype would still apply. */
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1848 eval "ac_cv_lib_$ac_lib_var=yes"
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 eval "ac_cv_lib_$ac_lib_var=no"
1856 LIBS="$ac_save_LIBS"
1859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
1863 echo "$ac_t""no" 1>&6
1868 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1869 echo "configure:1870: checking lex output file root" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 # The minimal lex program is just a single line: %%. But some broken lexes
1874 # (Solaris, I think it was) want two %% lines, so accommodate them.
1877 if test -f lex.yy.c; then
1878 ac_cv_prog_lex_root=lex.yy
1879 elif test -f lexyy.c; then
1880 ac_cv_prog_lex_root=lexyy
1882 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1886 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1887 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1889 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether yytext is a pointer" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 # POSIX says lex can declare yytext either as a pointer or an array; the
1895 # default is implementation-dependent. Figure out which it is, since
1896 # not all implementations provide the %pointer and %array declarations.
1897 ac_cv_prog_lex_yytext_pointer=no
1898 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1899 ac_save_LIBS="$LIBS"
1900 LIBS="$LIBS $LEXLIB"
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 `cat $LEX_OUTPUT_ROOT.c`
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911 ac_cv_prog_lex_yytext_pointer=yes
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1917 LIBS="$ac_save_LIBS"
1918 rm -f "${LEX_OUTPUT_ROOT}.c"
1922 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1923 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1924 cat >> confdefs.h <<\EOF
1925 #define YYTEXT_POINTER 1
1932 # Check whether --enable-bigendian or --disable-bigendian was given.
1933 if test "${enable_bigendian+set}" = set; then
1934 enableval="$enable_bigendian"
1935 openafs_cv_c_bigendian=yes
1938 # Check whether --enable-littleendian or --disable-littleendian was given.
1939 if test "${enable_littleendian+set}" = set; then
1940 enableval="$enable_littleendian"
1941 openafs_cv_c_bigendian=no
1944 echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
1945 echo "configure:1946: checking whether byte order is known at compile time" >&5
1946 if eval "test \"`echo '$''{'openafs_cv_c_bigendian_compile'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1953 #include <sys/types.h>
1954 #include <sys/param.h>
1957 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1962 if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1964 openafs_cv_c_bigendian_compile=yes
1966 echo "configure: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1969 openafs_cv_c_bigendian_compile=no
1974 echo "$ac_t""$openafs_cv_c_bigendian_compile" 1>&6
1975 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether byte ordering is bigendian" >&5
1977 if eval "test \"`echo '$''{'openafs_cv_c_bigendian'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1981 if test "$openafs_cv_c_bigendian_compile" = "yes"; then
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1986 #include <sys/types.h>
1987 #include <sys/param.h>
1990 #if BYTE_ORDER != BIG_ENDIAN
1995 if { (eval echo configure:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1997 openafs_cv_c_bigendian=yes
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2002 openafs_cv_c_bigendian=no
2006 if test "$cross_compiling" = yes; then
2007 { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2013 /* Are we little or big endian? From Harbison&Steele. */
2017 char c[sizeof (long)];
2020 exit (u.c[sizeof (long) - 1] == 1);
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2025 openafs_cv_c_bigendian=no
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 openafs_cv_c_bigendian=yes
2039 echo "$ac_t""$openafs_cv_c_bigendian" 1>&6
2040 if test "$openafs_cv_c_bigendian" = "yes"; then
2041 cat >> confdefs.h <<\EOF
2042 #define WORDS_BIGENDIAN 1
2045 if test "$openafs_cv_c_bigendian_compile" = "yes"; then
2046 cat >> confdefs.h <<\EOF
2047 #define ENDIANESS_IN_SYS_PARAM_H 1
2052 echo $ac_n "checking your OS""... $ac_c" 1>&6
2053 echo "configure:2054: checking your OS" >&5
2058 if test "x$with_linux_kernel_headers" != "x"; then
2059 LINUX_KERNEL_PATH="$with_linux_kernel_headers"
2061 LINUX_KERNEL_PATH="/usr/src/linux"
2063 if test -f "$with_linux_kernel_headers/include/linux/version.h"; then
2064 linux_kvers=`fgrep UTS_RELEASE $with_linux_kernel_headers/include/linux/version.h |awk 'BEGIN { FS="\"" } { print $2 }'`
2065 if test "x$linux_kvers" = "x"; then
2066 { echo "configure: error: Linux headers lack version definition" 1>&2; exit 1; }
2069 LINUX_VERSION="$linux_kvers"
2072 { echo "configure: error: No linux headers found at $with_linux_kernel_headers" 1>&2; exit 1; }
2075 echo "$ac_t""linux" 1>&6
2077 echo $ac_n "checking for i_bytes in struct inode""... $ac_c" 1>&6
2078 echo "configure:2079: checking for i_bytes in struct inode" >&5
2079 save_CPPFLAGS="$CPPFLAGS"
2080 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
2081 if eval "test \"`echo '$''{'ac_cv_linux_fs_struct_inode_has_i_bytes'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2088 #include <linux/fs.h>
2090 struct inode _inode;
2091 printf("%d\n", _inode.i_bytes);
2094 if { (eval echo configure:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2096 ac_cv_linux_fs_struct_inode_has_i_bytes=yes
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 ac_cv_linux_fs_struct_inode_has_i_bytes=no
2106 echo "$ac_t""$ac_cv_linux_fs_struct_inode_has_i_bytes" 1>&6
2107 CPPFLAGS="$save_CPPFLAGS"
2109 echo $ac_n "checking for inode_setattr return type""... $ac_c" 1>&6
2110 echo "configure:2111: checking for inode_setattr return type" >&5
2111 save_CPPFLAGS="$CPPFLAGS"
2112 CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
2113 if eval "test \"`echo '$''{'ac_cv_linux_func_inode_setattr_returns_int'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 #include <linux/fs.h>
2122 struct inode _inode;
2123 struct iattr _iattr;
2125 i = inode_setattr(&_inode, &_iattr);
2128 if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130 ac_cv_linux_func_inode_setattr_returns_int=yes
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2135 ac_cv_linux_func_inode_setattr_returns_int=no
2140 echo "$ac_t""$ac_cv_linux_func_inode_setattr_returns_int" 1>&6
2141 CPPFLAGS="$save_CPPFLAGS"
2144 MKAFS_OSTYPE=SOLARIS
2145 echo "$ac_t""sun4" 1>&6
2149 echo "$ac_t""hp_ux" 1>&6
2153 echo "$ac_t""sgi" 1>&6
2157 echo "$ac_t""rs_aix" 1>&6
2161 echo "$ac_t""alpha_dux" 1>&6
2165 echo "$ac_t""ppc_darwin" 1>&6
2168 echo "$ac_t""$system" 1>&6
2172 if test "x${MKAFS_OSTYPE}" = "xIRIX"; then
2173 echo Skipping library tests because they confuse Irix.
2175 for ac_func in socket
2177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_func" >&5
2179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 /* System header to define __stub macros and hopefully few prototypes,
2186 which can conflict with char $ac_func(); below. */
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2195 /* The GNU C library defines this for functions which it implements
2196 to always fail with ENOSYS. Some functions are actually named
2197 something starting with __ and the normal name is an alias. */
2198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2206 if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2208 eval "ac_cv_func_$ac_func=yes"
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2213 eval "ac_cv_func_$ac_func=no"
2218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2221 cat >> confdefs.h <<EOF
2222 #define $ac_tr_func 1
2226 echo "$ac_t""no" 1>&6
2231 if test "$ac_cv_func_socket" = no; then
2232 for lib in socket inet; do
2233 if test "$HAVE_SOCKET" != 1; then
2234 echo $ac_n "checking for socket in -l$lib""... $ac_c" 1>&6
2235 echo "configure:2236: checking for socket in -l$lib" >&5
2236 ac_lib_var=`echo $lib'_'socket | sed 'y%./+-%__p_%'`
2237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 ac_save_LIBS="$LIBS"
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 /* Override any gcc2 internal prototype to avoid an error. */
2246 /* We use char because int might match the return type of a gcc2
2247 builtin and then its argument prototype would still apply. */
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256 eval "ac_cv_lib_$ac_lib_var=yes"
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 eval "ac_cv_lib_$ac_lib_var=no"
2264 LIBS="$ac_save_LIBS"
2267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2269 LIBS="$LIBS -l$lib";HAVE_SOCKET=1;cat >> confdefs.h <<\EOF
2270 #define HAVE_SOCKET 1
2274 echo "$ac_t""no" 1>&6
2281 for ac_func in connect
2283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_func" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292 which can conflict with char $ac_func(); below. */
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2314 eval "ac_cv_func_$ac_func=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_func_$ac_func=no"
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_func 1
2332 echo "$ac_t""no" 1>&6
2337 if test "$ac_cv_func_connect" = no; then
2339 if test "$HAVE_CONNECT" != 1; then
2340 echo $ac_n "checking for connect in -l$lib""... $ac_c" 1>&6
2341 echo "configure:2342: checking for connect in -l$lib" >&5
2342 ac_lib_var=`echo $lib'_'connect | sed 'y%./+-%__p_%'`
2343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 ac_save_LIBS="$LIBS"
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 /* Override any gcc2 internal prototype to avoid an error. */
2352 /* We use char because int might match the return type of a gcc2
2353 builtin and then its argument prototype would still apply. */
2360 if { (eval echo configure:2361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362 eval "ac_cv_lib_$ac_lib_var=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 eval "ac_cv_lib_$ac_lib_var=no"
2370 LIBS="$ac_save_LIBS"
2373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2374 echo "$ac_t""yes" 1>&6
2375 LIBS="$LIBS -l$lib";HAVE_CONNECT=1;cat >> confdefs.h <<\EOF
2376 #define HAVE_CONNECT 1
2380 echo "$ac_t""no" 1>&6
2387 for ac_func in gethostbyname
2389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_func" >&5
2391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 /* System header to define __stub macros and hopefully few prototypes,
2398 which can conflict with char $ac_func(); below. */
2400 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2407 /* The GNU C library defines this for functions which it implements
2408 to always fail with ENOSYS. Some functions are actually named
2409 something starting with __ and the normal name is an alias. */
2410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 eval "ac_cv_func_$ac_func=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_func_$ac_func=no"
2430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2431 echo "$ac_t""yes" 1>&6
2432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2433 cat >> confdefs.h <<EOF
2434 #define $ac_tr_func 1
2438 echo "$ac_t""no" 1>&6
2442 if test "$ac_cv_func_gethostbyname" = no; then
2443 for lib in dns nsl resolv; do
2444 if test "$HAVE_GETHOSTBYNAME" != 1; then
2445 echo $ac_n "checking for gethostbyname in -l$lib""... $ac_c" 1>&6
2446 echo "configure:2447: checking for gethostbyname in -l$lib" >&5
2447 ac_lib_var=`echo $lib'_'gethostbyname | sed 'y%./+-%__p_%'`
2448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 ac_save_LIBS="$LIBS"
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* Override any gcc2 internal prototype to avoid an error. */
2457 /* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2459 char gethostbyname();
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2467 eval "ac_cv_lib_$ac_lib_var=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 eval "ac_cv_lib_$ac_lib_var=no"
2475 LIBS="$ac_save_LIBS"
2478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 LIBS="$LIBS -l$lib";HAVE_GETHOSTBYNAME=1;cat >> confdefs.h <<\EOF
2481 #define HAVE_GETHOSTBYNAME 1
2485 echo "$ac_t""no" 1>&6
2492 for ac_func in res_search
2494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_func" >&5
2496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* System header to define __stub macros and hopefully few prototypes,
2503 which can conflict with char $ac_func(); below. */
2505 /* Override any gcc2 internal prototype to avoid an error. */
2506 /* We use char because int might match the return type of a gcc2
2507 builtin and then its argument prototype would still apply. */
2512 /* The GNU C library defines this for functions which it implements
2513 to always fail with ENOSYS. Some functions are actually named
2514 something starting with __ and the normal name is an alias. */
2515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2525 eval "ac_cv_func_$ac_func=yes"
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2530 eval "ac_cv_func_$ac_func=no"
2535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2538 cat >> confdefs.h <<EOF
2539 #define $ac_tr_func 1
2543 echo "$ac_t""no" 1>&6
2547 if test "$ac_cv_func_res_search" = no; then
2548 for lib in dns nsl resolv; do
2549 if test "$HAVE_RES_SEARCH" != 1; then
2550 echo $ac_n "checking for res_search in -l$lib""... $ac_c" 1>&6
2551 echo "configure:2552: checking for res_search in -l$lib" >&5
2552 ac_lib_var=`echo $lib'_'res_search | sed 'y%./+-%__p_%'`
2553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 ac_save_LIBS="$LIBS"
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 /* Override any gcc2 internal prototype to avoid an error. */
2562 /* We use char because int might match the return type of a gcc2
2563 builtin and then its argument prototype would still apply. */
2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2572 eval "ac_cv_lib_$ac_lib_var=yes"
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2577 eval "ac_cv_lib_$ac_lib_var=no"
2580 LIBS="$ac_save_LIBS"
2583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2584 echo "$ac_t""yes" 1>&6
2585 LIBS="$LIBS -l$lib";HAVE_RES_SEARCH=1;cat >> confdefs.h <<\EOF
2586 #define HAVE_RES_SEARCH 1
2590 echo "$ac_t""no" 1>&6
2595 if test "$HAVE_RES_SEARCH" = 1; then
2596 LIB_res_search="-l$lib"
2602 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
2603 echo "configure:2604: checking for pthread_attr_init in -lpthread" >&5
2604 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 ac_save_LIBS="$LIBS"
2609 LIBS="-lpthread $LIBS"
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 /* Override any gcc2 internal prototype to avoid an error. */
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2616 char pthread_attr_init();
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624 eval "ac_cv_lib_$ac_lib_var=yes"
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2629 eval "ac_cv_lib_$ac_lib_var=no"
2632 LIBS="$ac_save_LIBS"
2635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2636 echo "$ac_t""yes" 1>&6
2637 PTHREAD_LIBS="-lpthread"
2639 echo "$ac_t""no" 1>&6
2642 if test "x$PTHREAD_LIBS" = xerror; then
2643 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
2644 echo "configure:2645: checking for pthread_attr_init in -lpthreads" >&5
2645 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 ac_save_LIBS="$LIBS"
2650 LIBS="-lpthreads $LIBS"
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 /* Override any gcc2 internal prototype to avoid an error. */
2655 /* We use char because int might match the return type of a gcc2
2656 builtin and then its argument prototype would still apply. */
2657 char pthread_attr_init();
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 eval "ac_cv_lib_$ac_lib_var=yes"
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 eval "ac_cv_lib_$ac_lib_var=no"
2673 LIBS="$ac_save_LIBS"
2676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 PTHREAD_LIBS="-lpthreads"
2680 echo "$ac_t""no" 1>&6
2684 if test "x$PTHREAD_LIBS" = xerror; then
2685 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
2686 echo "configure:2687: checking for pthread_attr_init in -lc_r" >&5
2687 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 ac_save_LIBS="$LIBS"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* Override any gcc2 internal prototype to avoid an error. */
2697 /* We use char because int might match the return type of a gcc2
2698 builtin and then its argument prototype would still apply. */
2699 char pthread_attr_init();
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2707 eval "ac_cv_lib_$ac_lib_var=yes"
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 eval "ac_cv_lib_$ac_lib_var=no"
2715 LIBS="$ac_save_LIBS"
2718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 PTHREAD_LIBS="-lc_r"
2722 echo "$ac_t""no" 1>&6
2726 if test "x$PTHREAD_LIBS" = xerror; then
2727 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
2728 echo "configure:2729: checking for pthread_attr_init" >&5
2729 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 /* System header to define __stub macros and hopefully few prototypes,
2736 which can conflict with char pthread_attr_init(); below. */
2738 /* Override any gcc2 internal prototype to avoid an error. */
2739 /* We use char because int might match the return type of a gcc2
2740 builtin and then its argument prototype would still apply. */
2741 char pthread_attr_init();
2745 /* The GNU C library defines this for functions which it implements
2746 to always fail with ENOSYS. Some functions are actually named
2747 something starting with __ and the normal name is an alias. */
2748 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
2751 pthread_attr_init();
2756 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2758 eval "ac_cv_func_pthread_attr_init=yes"
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2763 eval "ac_cv_func_pthread_attr_init=no"
2768 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2772 echo "$ac_t""no" 1>&6
2776 if test "x$PTHREAD_LIBS" = xerror; then
2777 { echo "configure: error: *** Unable to locate working posix thread library ***" 1>&2; exit 1; }
2782 if test "$enable_obsolete" = "yes"; then
2787 if test "$enable_insecure" = "yes"; then
2791 # Should autocompute a default
2792 if test "x$with_afs_sysname" != "x"; then
2793 AFS_SYSNAME="$with_afs_sysname"
2795 { echo "configure: error: An AFS sysname is required" 1>&2; exit 1; }
2799 if test "$enable_bos_restricted_mode" = "yes"; then
2800 cat >> confdefs.h <<\EOF
2801 #define BOS_RESTRICTED_MODE 1
2806 if test "$enable_namei_fileserver" = "yes"; then
2807 cat >> confdefs.h <<\EOF
2808 #define AFS_NAMEI_ENV 1
2813 if test "$enable_afsdb" = "yes"; then
2814 LIB_AFSDB="$LIB_res_search"
2815 cat >> confdefs.h <<\EOF
2816 #define AFS_AFSDB_ENV 1
2822 TOP_SRCDIR="${SRCDIR_PARENT}/src"
2824 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2825 echo "configure:2826: checking for ANSI C header files" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2842 ac_cv_header_stdc=yes
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2848 ac_cv_header_stdc=no
2852 if test $ac_cv_header_stdc = yes; then
2853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860 egrep "memchr" >/dev/null 2>&1; then
2864 ac_cv_header_stdc=no
2870 if test $ac_cv_header_stdc = yes; then
2871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 egrep "free" >/dev/null 2>&1; then
2882 ac_cv_header_stdc=no
2888 if test $ac_cv_header_stdc = yes; then
2889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2890 if test "$cross_compiling" = yes; then
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2897 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2898 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2900 int main () { int i; for (i = 0; i < 256; i++)
2901 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2912 ac_cv_header_stdc=no
2920 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2921 if test $ac_cv_header_stdc = yes; then
2922 cat >> confdefs.h <<\EOF
2923 #define STDC_HEADERS 1
2928 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2929 echo "configure:2930: checking for sys/wait.h that is POSIX.1 compatible" >&5
2930 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 #include <sys/types.h>
2937 #include <sys/wait.h>
2939 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2942 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2947 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2950 if { (eval echo configure:2951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2952 ac_cv_header_sys_wait_h=yes
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 ac_cv_header_sys_wait_h=no
2962 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2963 if test $ac_cv_header_sys_wait_h = yes; then
2964 cat >> confdefs.h <<\EOF
2965 #define HAVE_SYS_WAIT_H 1
2971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2974 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_hdr that defines DIR" >&5
2976 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <sys/types.h>
2988 if { (eval echo configure:2989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 eval "ac_cv_header_dirent_$ac_safe=yes"
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2995 eval "ac_cv_header_dirent_$ac_safe=no"
2999 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3000 echo "$ac_t""yes" 1>&6
3001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3002 cat >> confdefs.h <<EOF
3003 #define $ac_tr_hdr 1
3005 ac_header_dirent=$ac_hdr; break
3007 echo "$ac_t""no" 1>&6
3010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3011 if test $ac_header_dirent = dirent.h; then
3012 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3013 echo "configure:3014: checking for opendir in -ldir" >&5
3014 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 ac_save_LIBS="$LIBS"
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 /* Override any gcc2 internal prototype to avoid an error. */
3024 /* We use char because int might match the return type of a gcc2
3025 builtin and then its argument prototype would still apply. */
3032 if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3034 eval "ac_cv_lib_$ac_lib_var=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 eval "ac_cv_lib_$ac_lib_var=no"
3042 LIBS="$ac_save_LIBS"
3045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3049 echo "$ac_t""no" 1>&6
3053 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3054 echo "configure:3055: checking for opendir in -lx" >&5
3055 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 ac_save_LIBS="$LIBS"
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* Override any gcc2 internal prototype to avoid an error. */
3065 /* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3075 eval "ac_cv_lib_$ac_lib_var=yes"
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 eval "ac_cv_lib_$ac_lib_var=no"
3083 LIBS="$ac_save_LIBS"
3086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3090 echo "$ac_t""no" 1>&6
3095 for ac_hdr in stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h
3097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_hdr" >&5
3100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3109 { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3111 if test -z "$ac_err"; then
3113 eval "ac_cv_header_$ac_safe=yes"
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3119 eval "ac_cv_header_$ac_safe=no"
3123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3126 cat >> confdefs.h <<EOF
3127 #define $ac_tr_hdr 1
3131 echo "$ac_t""no" 1>&6
3135 for ac_hdr in netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h
3137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_hdr" >&5
3140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3149 { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3151 if test -z "$ac_err"; then
3153 eval "ac_cv_header_$ac_safe=yes"
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3159 eval "ac_cv_header_$ac_safe=no"
3163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3164 echo "$ac_t""yes" 1>&6
3165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3166 cat >> confdefs.h <<EOF
3167 #define $ac_tr_hdr 1
3171 echo "$ac_t""no" 1>&6
3175 for ac_hdr in mntent.h sys/vfs.h sys/param.h sys/fs_types.h
3177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3179 echo "configure:3180: checking for $ac_hdr" >&5
3180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3189 { (eval echo configure:3190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3191 if test -z "$ac_err"; then
3193 eval "ac_cv_header_$ac_safe=yes"
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3199 eval "ac_cv_header_$ac_safe=no"
3203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3204 echo "$ac_t""yes" 1>&6
3205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3206 cat >> confdefs.h <<EOF
3207 #define $ac_tr_hdr 1
3211 echo "$ac_t""no" 1>&6
3215 for ac_hdr in sys/mount.h strings.h termios.h signal.h
3217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_hdr" >&5
3220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3231 if test -z "$ac_err"; then
3233 eval "ac_cv_header_$ac_safe=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 eval "ac_cv_header_$ac_safe=no"
3243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3246 cat >> confdefs.h <<EOF
3247 #define $ac_tr_hdr 1
3251 echo "$ac_t""no" 1>&6
3255 for ac_hdr in windows.h malloc.h winsock2.h direct.h io.h
3257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $ac_hdr" >&5
3260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3271 if test -z "$ac_err"; then
3273 eval "ac_cv_header_$ac_safe=yes"
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 eval "ac_cv_header_$ac_safe=no"
3283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3286 cat >> confdefs.h <<EOF
3287 #define $ac_tr_hdr 1
3291 echo "$ac_t""no" 1>&6
3295 for ac_hdr in security/pam_modules.h siad.h usersec.h
3297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_hdr" >&5
3300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3309 { (eval echo configure:3310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3311 if test -z "$ac_err"; then
3313 eval "ac_cv_header_$ac_safe=yes"
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3319 eval "ac_cv_header_$ac_safe=no"
3323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3326 cat >> confdefs.h <<EOF
3327 #define $ac_tr_hdr 1
3331 echo "$ac_t""no" 1>&6
3336 for ac_func in utimes random srandom getdtablesize snprintf re_comp re_exec
3338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_func" >&5
3340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 /* System header to define __stub macros and hopefully few prototypes,
3347 which can conflict with char $ac_func(); below. */
3349 /* Override any gcc2 internal prototype to avoid an error. */
3350 /* We use char because int might match the return type of a gcc2
3351 builtin and then its argument prototype would still apply. */
3356 /* The GNU C library defines this for functions which it implements
3357 to always fail with ENOSYS. Some functions are actually named
3358 something starting with __ and the normal name is an alias. */
3359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 eval "ac_cv_func_$ac_func=yes"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3374 eval "ac_cv_func_$ac_func=no"
3379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3382 cat >> confdefs.h <<EOF
3383 #define $ac_tr_func 1
3387 echo "$ac_t""no" 1>&6
3402 cat > confcache <<\EOF
3403 # This file is a shell script that caches the results of configure
3404 # tests run on this system so they can be shared between configure
3405 # scripts and configure runs. It is not useful on other systems.
3406 # If it contains results you don't want to keep, you may remove or edit it.
3408 # By default, configure uses ./config.cache as the cache file,
3409 # creating it if it does not exist already. You can give configure
3410 # the --cache-file=FILE option to use a different cache file; that is
3411 # what configure does when it calls configure scripts in
3412 # subdirectories, so they share the cache.
3413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3414 # config.status only pays attention to the cache file if you give it the
3415 # --recheck option to rerun configure.
3418 # The following way of writing the cache mishandles newlines in values,
3419 # but we know of no workaround that is simple, portable, and efficient.
3420 # So, don't put newlines in cache variables' values.
3421 # Ultrix sh set writes to stderr and can't be redirected directly,
3422 # and sets the high bit in the cache file unless we assign to the vars.
3424 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3426 # `set' does not quote correctly, so add quotes (double-quote substitution
3427 # turns \\\\ into \\, and sed turns \\ into \).
3429 -e "s/'/'\\\\''/g" \
3430 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3433 # `set' quotes correctly as required by POSIX, so do not add quotes.
3434 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3437 if cmp -s $cache_file confcache; then
3440 if test -w $cache_file; then
3441 echo "updating cache $cache_file"
3442 cat confcache > $cache_file
3444 echo "not updating unwritable cache $cache_file"
3449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3452 # Let make expand exec_prefix.
3453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3455 # Any assignment to VPATH causes Sun make to only execute
3456 # the first set of double-colon rules, so remove it if not needed.
3457 # If there is a colon in the path, we need to keep it.
3458 if test "x$srcdir" = x.; then
3459 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3462 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3464 DEFS=-DHAVE_CONFIG_H
3466 # Without the "./", some shells look in PATH for config.status.
3467 : ${CONFIG_STATUS=./config.status}
3469 echo creating $CONFIG_STATUS
3470 rm -f $CONFIG_STATUS
3471 cat > $CONFIG_STATUS <<EOF
3473 # Generated automatically by configure.
3474 # Run this file to recreate the current configuration.
3475 # This directory was configured as follows,
3476 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3478 # $0 $ac_configure_args
3480 # Compiler output produced by configure, useful for debugging
3481 # configure, is in ./config.log if it exists.
3483 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3486 case "\$ac_option" in
3487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3488 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3489 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3490 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3491 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3493 -help | --help | --hel | --he | --h)
3494 echo "\$ac_cs_usage"; exit 0 ;;
3495 *) echo "\$ac_cs_usage"; exit 1 ;;
3499 ac_given_srcdir=$srcdir
3500 ac_given_INSTALL="$INSTALL"
3502 trap 'rm -fr `echo "\
3504 src/config/Makefile.${AFS_SYSNAME} \
3505 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
3506 src/config/afsconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3508 cat >> $CONFIG_STATUS <<EOF
3510 # Protect against being on the right side of a sed subst in config.status.
3511 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3512 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3516 s%@CFLAGS@%$CFLAGS%g
3517 s%@CPPFLAGS@%$CPPFLAGS%g
3518 s%@CXXFLAGS@%$CXXFLAGS%g
3519 s%@FFLAGS@%$FFLAGS%g
3521 s%@LDFLAGS@%$LDFLAGS%g
3523 s%@exec_prefix@%$exec_prefix%g
3524 s%@prefix@%$prefix%g
3525 s%@program_transform_name@%$program_transform_name%g
3526 s%@bindir@%$bindir%g
3527 s%@sbindir@%$sbindir%g
3528 s%@libexecdir@%$libexecdir%g
3529 s%@datadir@%$datadir%g
3530 s%@sysconfdir@%$sysconfdir%g
3531 s%@sharedstatedir@%$sharedstatedir%g
3532 s%@localstatedir@%$localstatedir%g
3533 s%@libdir@%$libdir%g
3534 s%@includedir@%$includedir%g
3535 s%@oldincludedir@%$oldincludedir%g
3536 s%@infodir@%$infodir%g
3537 s%@mandir@%$mandir%g
3538 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3539 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3540 s%@INSTALL_DATA@%$INSTALL_DATA%g
3541 s%@PACKAGE@%$PACKAGE%g
3542 s%@VERSION@%$VERSION%g
3543 s%@ACLOCAL@%$ACLOCAL%g
3544 s%@AUTOCONF@%$AUTOCONF%g
3545 s%@AUTOMAKE@%$AUTOMAKE%g
3546 s%@AUTOHEADER@%$AUTOHEADER%g
3547 s%@MAKEINFO@%$MAKEINFO%g
3548 s%@SET_MAKE@%$SET_MAKE%g
3550 s%@host_alias@%$host_alias%g
3551 s%@host_cpu@%$host_cpu%g
3552 s%@host_vendor@%$host_vendor%g
3553 s%@host_os@%$host_os%g
3557 s%@RANLIB@%$RANLIB%g
3560 s%@LEXLIB@%$LEXLIB%g
3561 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3562 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
3563 s%@AFS_SYSNAME@%$AFS_SYSNAME%g
3564 s%@LIB_AFSDB@%$LIB_AFSDB%g
3565 s%@LINUX_KERNEL_PATH@%$LINUX_KERNEL_PATH%g
3566 s%@LINUX_VERSION@%$LINUX_VERSION%g
3567 s%@MKAFS_OSTYPE@%$MKAFS_OSTYPE%g
3568 s%@TOP_SRCDIR@%$TOP_SRCDIR%g
3569 s%@WITH_OBSOLETE@%$WITH_OBSOLETE%g
3570 s%@WITH_INSECURE@%$WITH_INSECURE%g
3575 cat >> $CONFIG_STATUS <<\EOF
3577 # Split the substitutions into bite-sized pieces for seds with
3578 # small command number limits, like on Digital OSF/1 and HP-UX.
3579 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3580 ac_file=1 # Number of current file.
3581 ac_beg=1 # First line for current file.
3582 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3585 while $ac_more_lines; do
3586 if test $ac_beg -gt 1; then
3587 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3589 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3591 if test ! -s conftest.s$ac_file; then
3593 rm -f conftest.s$ac_file
3595 if test -z "$ac_sed_cmds"; then
3596 ac_sed_cmds="sed -f conftest.s$ac_file"
3598 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3600 ac_file=`expr $ac_file + 1`
3602 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3605 if test -z "$ac_sed_cmds"; then
3610 cat >> $CONFIG_STATUS <<EOF
3612 CONFIG_FILES=\${CONFIG_FILES-"\
3614 src/config/Makefile.${AFS_SYSNAME} \
3615 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
3618 cat >> $CONFIG_STATUS <<\EOF
3619 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3620 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3622 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3623 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3624 *) ac_file_in="${ac_file}.in" ;;
3627 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3629 # Remove last slash and all that follows it. Not all systems have dirname.
3630 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3631 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3632 # The file is in a subdirectory.
3633 test ! -d "$ac_dir" && mkdir "$ac_dir"
3634 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3635 # A "../" for each directory in $ac_dir_suffix.
3636 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3638 ac_dir_suffix= ac_dots=
3641 case "$ac_given_srcdir" in
3643 if test -z "$ac_dots"; then top_srcdir=.
3644 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3645 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3647 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3648 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3651 case "$ac_given_INSTALL" in
3652 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3653 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3656 echo creating "$ac_file"
3658 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3660 *Makefile*) ac_comsub="1i\\
3661 # $configure_input" ;;
3665 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3667 s%@configure_input@%$configure_input%g
3668 s%@srcdir@%$srcdir%g
3669 s%@top_srcdir@%$top_srcdir%g
3670 s%@INSTALL@%$INSTALL%g
3671 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3678 # ac_d sets the value in "#define NAME VALUE" lines.
3679 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3680 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3683 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3684 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3685 ac_uB='\([ ]\)%\1#\2define\3'
3688 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3689 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3690 ac_eB='$%\1#\2define\3'
3694 if test "${CONFIG_HEADERS+set}" != set; then
3696 cat >> $CONFIG_STATUS <<EOF
3697 CONFIG_HEADERS="src/config/afsconfig.h"
3699 cat >> $CONFIG_STATUS <<\EOF
3701 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3702 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3704 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3705 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3706 *) ac_file_in="${ac_file}.in" ;;
3709 echo creating $ac_file
3711 rm -f conftest.frag conftest.in conftest.out
3712 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3713 cat $ac_file_inputs > conftest.in
3717 # Transform confdefs.h into a sed script conftest.vals that substitutes
3718 # the proper values into config.h.in to produce config.h. And first:
3719 # Protect against being on the right side of a sed subst in config.status.
3720 # Protect against being in an unquoted here document in config.status.
3722 cat > conftest.hdr <<\EOF
3725 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3729 sed -n -f conftest.hdr confdefs.h > conftest.vals
3732 # This sed command replaces #undef with comments. This is necessary, for
3733 # example, in the case of _POSIX_SOURCE, which is predefined and required
3734 # on some systems where configure will not decide to define it.
3735 cat >> conftest.vals <<\EOF
3736 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3739 # Break up conftest.vals because some shells have a limit on
3740 # the size of here documents, and old seds have small limits too.
3745 ac_lines=`grep -c . conftest.vals`
3746 # grep -c gives empty output for an empty file on some AIX systems.
3747 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3748 # Write a limited-size here document to conftest.frag.
3749 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3750 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3752 sed -f conftest.frag conftest.in > conftest.out
3754 mv conftest.out conftest.in
3756 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3758 mv conftest.tail conftest.vals
3762 cat >> $CONFIG_STATUS <<\EOF
3763 rm -f conftest.frag conftest.h
3764 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3765 cat conftest.in >> conftest.h
3767 if cmp -s $ac_file conftest.h 2>/dev/null; then
3768 echo "$ac_file is unchanged"
3771 # Remove last slash and all that follows it. Not all systems have dirname.
3772 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3773 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3774 # The file is in a subdirectory.
3775 test ! -d "$ac_dir" && mkdir "$ac_dir"
3778 mv conftest.h $ac_file
3783 cat >> $CONFIG_STATUS <<EOF
3786 cat >> $CONFIG_STATUS <<\EOF
3790 chmod +x $CONFIG_STATUS
3791 rm -fr confdefs* $ac_clean_files
3792 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1