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:
14 ac_default_prefix=/usr
16 --with-release=XXX set release to XXX [1]"
18 --with-statedir=/foo use state dir /foo [/var/lib/nfs]"
20 --with-statduser=rpcuser user for statd to run under [rpcuser or nobody]"
22 --enable-nfsv3 enable support for NFSv3"
24 --enable-kprefix install progs as rpc.knfsd etc"
26 --enable-secure-statd Only lockd can use statd (security)"
28 --enable-rquotad enable rquotad"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=rules.mk
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
541 # The nfs-utils version
545 # Check whether --with-release or --without-release was given.
546 if test "${with_release+set}" = set; then
547 withval="$with_release"
554 # Check whether --with-statedir or --without-statedir was given.
555 if test "${with_statedir+set}" = set; then
556 withval="$with_statedir"
559 statedir=/var/lib/nfs
563 # Check whether --with-statduser or --without-statduser was given.
564 if test "${with_statduser+set}" = set; then
565 withval="$with_statduser"
568 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
576 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
577 if test "${enable_nfsv3+set}" = set; then
578 enableval="$enable_nfsv3"
579 enable_nfsv3=$enableval
584 if test "$enable_nfsv3" = yes; then
585 cat >> confdefs.h <<\EOF
586 #define NFS3_SUPPORTED 1
593 # Check whether --enable-kprefix or --disable-kprefix was given.
594 if test "${enable_kprefix+set}" = set; then
595 enableval="$enable_kprefix"
596 test "$enableval" = "yes" && kprefix=k
602 # Check whether --enable-secure-statd or --disable-secure-statd was given.
603 if test "${enable_secure_statd+set}" = set; then
604 enableval="$enable_secure_statd"
605 test "$enableval" = "yes" && secure_statd=yes
610 if test "$secure_statd" = yes; then
611 cat >> confdefs.h <<\EOF
612 #define RESTRICTED_STATD 1
617 # Check whether --enable-rquotad or --disable-rquotad was given.
618 if test "${enable_rquotad+set}" = set; then
619 enableval="$enable_rquotad"
620 enable_rquotad=$enableval
625 if test "$enable_rquotad" = yes; then
633 # Extract the first word of "gcc", so it can be a program name with args.
634 set dummy gcc; ac_word=$2
635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
636 echo "configure:637: checking for $ac_word" >&5
637 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
638 echo $ac_n "(cached) $ac_c" 1>&6
640 if test -n "$CC"; then
641 ac_cv_prog_CC="$CC" # Let the user override the test.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
645 for ac_dir in $ac_dummy; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
656 if test -n "$CC"; then
657 echo "$ac_t""$CC" 1>&6
659 echo "$ac_t""no" 1>&6
662 if test -z "$CC"; then
663 # Extract the first word of "cc", so it can be a program name with args.
664 set dummy cc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
676 for ac_dir in $ac_dummy; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
679 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
688 if test $ac_prog_rejected = yes; then
689 # We found a bogon in the path, so make sure we never use it.
690 set dummy $ac_cv_prog_CC
692 if test $# -gt 0; then
693 # We chose a different compiler from the bogus one.
694 # However, it has the same basename, so the bogon will be chosen
695 # first if we set CC to just the basename; use the full file name.
697 set dummy "$ac_dir/$ac_word" "$@"
705 if test -n "$CC"; then
706 echo "$ac_t""$CC" 1>&6
708 echo "$ac_t""no" 1>&6
711 if test -z "$CC"; then
714 # Extract the first word of "cl", so it can be a program name with args.
715 set dummy cl; ac_word=$2
716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717 echo "configure:718: checking for $ac_word" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
721 if test -n "$CC"; then
722 ac_cv_prog_CC="$CC" # Let the user override the test.
724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
726 for ac_dir in $ac_dummy; do
727 test -z "$ac_dir" && ac_dir=.
728 if test -f $ac_dir/$ac_word; then
737 if test -n "$CC"; then
738 echo "$ac_t""$CC" 1>&6
740 echo "$ac_t""no" 1>&6
745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
748 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
749 echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
758 cat > conftest.$ac_ext << EOF
760 #line 761 "configure"
761 #include "confdefs.h"
765 if { (eval echo configure:766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
766 ac_cv_prog_cc_works=yes
767 # If we can't run a trivial program, we are probably using a cross compiler.
768 if (./conftest; exit) 2>/dev/null; then
769 ac_cv_prog_cc_cross=no
771 ac_cv_prog_cc_cross=yes
774 echo "configure: failed program was:" >&5
775 cat conftest.$ac_ext >&5
776 ac_cv_prog_cc_works=no
780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781 ac_cpp='$CPP $CPPFLAGS'
782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784 cross_compiling=$ac_cv_prog_cc_cross
786 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
787 if test $ac_cv_prog_cc_works = no; then
788 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
790 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
791 echo "configure:792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
792 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
793 cross_compiling=$ac_cv_prog_cc_cross
795 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
796 echo "configure:797: checking whether we are using GNU C" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 cat > conftest.c <<EOF
805 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
812 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
814 if test $ac_cv_prog_gcc = yes; then
820 ac_test_CFLAGS="${CFLAGS+set}"
821 ac_save_CFLAGS="$CFLAGS"
823 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
824 echo "configure:825: checking whether ${CC-cc} accepts -g" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 echo 'void f(){}' > conftest.c
829 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
838 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
839 if test "$ac_test_CFLAGS" = set; then
840 CFLAGS="$ac_save_CFLAGS"
841 elif test $ac_cv_prog_cc_g = yes; then
842 if test "$GCC" = yes; then
848 if test "$GCC" = yes; then
855 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
856 echo "configure:857: checking how to run the C preprocessor" >&5
857 # On Suns, sometimes $CPP names a directory.
858 if test -n "$CPP" && test -d "$CPP"; then
861 if test -z "$CPP"; then
862 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 # This must be in double quotes, not single quotes, because CPP may get
866 # substituted into the Makefile and "${CC-cc}" will confuse make.
868 # On the NeXT, cc -E runs the code through the compiler's parser,
869 # not just through cpp.
870 cat > conftest.$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
886 CPP="${CC-cc} -E -traditional-cpp"
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
903 CPP="${CC-cc} -nologo -E"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911 { (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913 if test -z "$ac_err"; then
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
927 ac_cv_prog_CPP="$CPP"
929 CPP="$ac_cv_prog_CPP"
931 ac_cv_prog_CPP="$CPP"
933 echo "$ac_t""$CPP" 1>&6
936 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
937 if test -f $ac_dir/install-sh; then
939 ac_install_sh="$ac_aux_dir/install-sh -c"
941 elif test -f $ac_dir/install.sh; then
943 ac_install_sh="$ac_aux_dir/install.sh -c"
947 if test -z "$ac_aux_dir"; then
948 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
950 ac_config_guess=$ac_aux_dir/config.guess
951 ac_config_sub=$ac_aux_dir/config.sub
952 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
954 # Find a good install program. We prefer a C program (faster),
955 # so one script is as good as another. But avoid the broken or
956 # incompatible versions:
957 # SysV /etc/install, /usr/sbin/install
958 # SunOS /usr/etc/install
961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
964 # ./install, which can be erroneously created by make from ./install.sh.
965 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
966 echo "configure:967: checking for a BSD compatible install" >&5
967 if test -z "$INSTALL"; then
968 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
972 for ac_dir in $PATH; do
973 # Account for people who put trailing slashes in PATH elements.
975 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
977 # OSF1 and SCO ODT 3.0 have their own names for install.
978 # Don't use installbsd from OSF since it installs stuff as root
980 for ac_prog in ginstall scoinst install; do
981 if test -f $ac_dir/$ac_prog; then
982 if test $ac_prog = install &&
983 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
984 # AIX install. It has an incompatible calling convention.
987 ac_cv_path_install="$ac_dir/$ac_prog -c"
998 if test "${ac_cv_path_install+set}" = set; then
999 INSTALL="$ac_cv_path_install"
1001 # As a last resort, use the slow shell script. We don't cache a
1002 # path for INSTALL within a source directory, because that will
1003 # break other packages using the cache if that directory is
1004 # removed, or if the path is relative.
1005 INSTALL="$ac_install_sh"
1008 echo "$ac_t""$INSTALL" 1>&6
1010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1011 # It thinks the first close brace ends the variable substitution.
1012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1019 test "${CC_FOR_BUILD+set}" = set || CC_FOR_BUILD="$CC"
1023 # Make sure we can run config.sub.
1024 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1025 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1028 echo $ac_n "checking host system type""... $ac_c" 1>&6
1029 echo "configure:1030: checking host system type" >&5
1032 case "$host_alias" in
1036 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1037 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1039 *) host_alias=$nonopt ;;
1043 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1044 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$host" 1>&6
1049 echo $ac_n "checking build system type""... $ac_c" 1>&6
1050 echo "configure:1051: checking build system type" >&5
1053 case "$build_alias" in
1056 NONE) build_alias=$host_alias ;;
1057 *) build_alias=$nonopt ;;
1061 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1062 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$build" 1>&6
1067 if test $host != $build; then
1068 ac_tool_prefix=${host_alias}-
1073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 if test -n "$RANLIB"; then
1081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1085 for ac_dir in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir=.
1087 if test -f $ac_dir/$ac_word; then
1088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1095 RANLIB="$ac_cv_prog_RANLIB"
1096 if test -n "$RANLIB"; then
1097 echo "$ac_t""$RANLIB" 1>&6
1099 echo "$ac_t""no" 1>&6
1103 if test -z "$ac_cv_prog_RANLIB"; then
1104 if test -n "$ac_tool_prefix"; then
1105 # Extract the first word of "ranlib", so it can be a program name with args.
1106 set dummy ranlib; ac_word=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1109: checking for $ac_word" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 if test -n "$RANLIB"; then
1113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1117 for ac_dir in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir=.
1119 if test -f $ac_dir/$ac_word; then
1120 ac_cv_prog_RANLIB="ranlib"
1125 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1128 RANLIB="$ac_cv_prog_RANLIB"
1129 if test -n "$RANLIB"; then
1130 echo "$ac_t""$RANLIB" 1>&6
1132 echo "$ac_t""no" 1>&6
1140 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1141 set dummy ${ac_tool_prefix}ar; ac_word=$2
1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1144: checking for $ac_word" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 if test -n "$AR"; then
1148 ac_cv_prog_AR="$AR" # Let the user override the test.
1150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 if test -f $ac_dir/$ac_word; then
1155 ac_cv_prog_AR="${ac_tool_prefix}ar"
1160 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1164 if test -n "$AR"; then
1165 echo "$ac_t""$AR" 1>&6
1167 echo "$ac_t""no" 1>&6
1172 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
1173 set dummy ${ac_tool_prefix}ld; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 if test -n "$LD"; then
1180 ac_cv_prog_LD="$LD" # Let the user override the test.
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 for ac_dir in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_prog_LD="${ac_tool_prefix}ld"
1192 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1196 if test -n "$LD"; then
1197 echo "$ac_t""$LD" 1>&6
1199 echo "$ac_t""no" 1>&6
1205 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1206 echo "configure:1207: checking for ANSI C header files" >&5
1207 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219 { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1221 if test -z "$ac_err"; then
1223 ac_cv_header_stdc=yes
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1229 ac_cv_header_stdc=no
1233 if test $ac_cv_header_stdc = yes; then
1234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1241 egrep "memchr" >/dev/null 2>&1; then
1245 ac_cv_header_stdc=no
1251 if test $ac_cv_header_stdc = yes; then
1252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1253 cat > conftest.$ac_ext <<EOF
1254 #line 1255 "configure"
1255 #include "confdefs.h"
1258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1259 egrep "free" >/dev/null 2>&1; then
1263 ac_cv_header_stdc=no
1269 if test $ac_cv_header_stdc = yes; then
1270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1271 if test "$cross_compiling" = yes; then
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1278 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1279 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1281 int main () { int i; for (i = 0; i < 256; i++)
1282 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1293 ac_cv_header_stdc=no
1301 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1302 if test $ac_cv_header_stdc = yes; then
1303 cat >> confdefs.h <<\EOF
1304 #define STDC_HEADERS 1
1309 echo $ac_n "checking for GNU libc2""... $ac_c" 1>&6
1310 echo "configure:1311: checking for GNU libc2" >&5
1311 if eval "test \"`echo '$''{'knfsd_cv_glibc2'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1318 #include <features.h>
1319 #if !defined(__GLIBC__)
1323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1324 { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326 if test -z "$ac_err"; then
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1339 echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1340 if test $knfsd_cv_glibc2 = yes; then
1341 CFLAGS="$CFLAGS -D_GNU_SOURCE"
1342 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1346 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1347 echo "configure:1348: checking for main in -lsocket" >&5
1348 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 ac_save_LIBS="$LIBS"
1353 LIBS="-lsocket $LIBS"
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1364 eval "ac_cv_lib_$ac_lib_var=yes"
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1369 eval "ac_cv_lib_$ac_lib_var=no"
1372 LIBS="$ac_save_LIBS"
1375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1379 echo "$ac_t""no" 1>&6
1382 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1383 echo "configure:1384: checking for main in -lnsl" >&5
1384 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 ac_save_LIBS="$LIBS"
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 eval "ac_cv_lib_$ac_lib_var=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_lib_$ac_lib_var=no"
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1418 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1419 echo "configure:1420: checking for crypt in -lcrypt" >&5
1420 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 ac_save_LIBS="$LIBS"
1425 LIBS="-lcrypt $LIBS"
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 /* Override any gcc2 internal prototype to avoid an error. */
1430 /* We use char because int might match the return type of a gcc2
1431 builtin and then its argument prototype would still apply. */
1438 if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440 eval "ac_cv_lib_$ac_lib_var=yes"
1442 echo "configure: failed program was:" >&5
1443 cat conftest.$ac_ext >&5
1445 eval "ac_cv_lib_$ac_lib_var=no"
1448 LIBS="$ac_save_LIBS"
1451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1452 echo "$ac_t""yes" 1>&6
1455 echo "$ac_t""no" 1>&6
1458 if test "$knfsd_cv_glibc2" = no; then
1459 echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
1460 echo "configure:1461: checking for daemon in -lbsd" >&5
1461 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
1462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_save_LIBS="$LIBS"
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1470 /* Override any gcc2 internal prototype to avoid an error. */
1471 /* We use char because int might match the return type of a gcc2
1472 builtin and then its argument prototype would still apply. */
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1481 eval "ac_cv_lib_$ac_lib_var=yes"
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1486 eval "ac_cv_lib_$ac_lib_var=no"
1489 LIBS="$ac_save_LIBS"
1492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1496 echo "$ac_t""no" 1>&6
1505 echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6
1506 echo "configure:1507: checking for the tcp wrapper library" >&5
1507 if eval "test \"`echo '$''{'knfsd_cv_tcp_wrapper'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1511 LIBS="$LIBS -lwrap $LIBNSL"
1512 cat > conftest.$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1516 int deny_severity = 0;
1517 int allow_severity = 0;
1519 return hosts_ctl ("nfsd", "", "")
1522 if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524 knfsd_cv_tcp_wrapper=yes
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1529 knfsd_cv_tcp_wrapper=no
1535 echo "$ac_t""$knfsd_cv_tcp_wrapper" 1>&6
1536 if test "$knfsd_cv_tcp_wrapper" = yes; then
1537 CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER"
1538 CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER"
1545 for ac_func in innetgr
1547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1548 echo "configure:1549: checking for $ac_func" >&5
1549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 /* System header to define __stub macros and hopefully few prototypes,
1556 which can conflict with char $ac_func(); below. */
1558 /* Override any gcc2 internal prototype to avoid an error. */
1559 /* We use char because int might match the return type of a gcc2
1560 builtin and then its argument prototype would still apply. */
1565 /* The GNU C library defines this for functions which it implements
1566 to always fail with ENOSYS. Some functions are actually named
1567 something starting with __ and the normal name is an alias. */
1568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1578 eval "ac_cv_func_$ac_func=yes"
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1583 eval "ac_cv_func_$ac_func=no"
1588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1591 cat >> confdefs.h <<EOF
1592 #define $ac_tr_func 1
1596 echo "$ac_t""no" 1>&6
1601 cat >> confdefs.h <<EOF
1602 #define NFS_STATEDIR "$statedir"
1610 cat > confcache <<\EOF
1611 # This file is a shell script that caches the results of configure
1612 # tests run on this system so they can be shared between configure
1613 # scripts and configure runs. It is not useful on other systems.
1614 # If it contains results you don't want to keep, you may remove or edit it.
1616 # By default, configure uses ./config.cache as the cache file,
1617 # creating it if it does not exist already. You can give configure
1618 # the --cache-file=FILE option to use a different cache file; that is
1619 # what configure does when it calls configure scripts in
1620 # subdirectories, so they share the cache.
1621 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1622 # config.status only pays attention to the cache file if you give it the
1623 # --recheck option to rerun configure.
1626 # The following way of writing the cache mishandles newlines in values,
1627 # but we know of no workaround that is simple, portable, and efficient.
1628 # So, don't put newlines in cache variables' values.
1629 # Ultrix sh set writes to stderr and can't be redirected directly,
1630 # and sets the high bit in the cache file unless we assign to the vars.
1632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1634 # `set' does not quote correctly, so add quotes (double-quote substitution
1635 # turns \\\\ into \\, and sed turns \\ into \).
1637 -e "s/'/'\\\\''/g" \
1638 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1641 # `set' quotes correctly as required by POSIX, so do not add quotes.
1642 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1645 if cmp -s $cache_file confcache; then
1648 if test -w $cache_file; then
1649 echo "updating cache $cache_file"
1650 cat confcache > $cache_file
1652 echo "not updating unwritable cache $cache_file"
1657 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1660 # Let make expand exec_prefix.
1661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1663 # Any assignment to VPATH causes Sun make to only execute
1664 # the first set of double-colon rules, so remove it if not needed.
1665 # If there is a colon in the path, we need to keep it.
1666 if test "x$srcdir" = x.; then
1667 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1670 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1672 DEFS=-DHAVE_CONFIG_H
1674 # Without the "./", some shells look in PATH for config.status.
1675 : ${CONFIG_STATUS=./config.status}
1677 echo creating $CONFIG_STATUS
1678 rm -f $CONFIG_STATUS
1679 cat > $CONFIG_STATUS <<EOF
1681 # Generated automatically by configure.
1682 # Run this file to recreate the current configuration.
1683 # This directory was configured as follows,
1684 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1686 # $0 $ac_configure_args
1688 # Compiler output produced by configure, useful for debugging
1689 # configure, is in ./config.log if it exists.
1691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1694 case "\$ac_option" in
1695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1696 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1697 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1698 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1699 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1701 -help | --help | --hel | --he | --h)
1702 echo "\$ac_cs_usage"; exit 0 ;;
1703 *) echo "\$ac_cs_usage"; exit 1 ;;
1707 ac_given_srcdir=$srcdir
1708 ac_given_INSTALL="$INSTALL"
1710 trap 'rm -fr `echo "config.mk nfs-utils.spec utils/Makefile support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1712 cat >> $CONFIG_STATUS <<EOF
1714 # Protect against being on the right side of a sed subst in config.status.
1715 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1720 s%@CFLAGS@%$CFLAGS%g
1721 s%@CPPFLAGS@%$CPPFLAGS%g
1722 s%@CXXFLAGS@%$CXXFLAGS%g
1723 s%@FFLAGS@%$FFLAGS%g
1725 s%@LDFLAGS@%$LDFLAGS%g
1727 s%@exec_prefix@%$exec_prefix%g
1728 s%@prefix@%$prefix%g
1729 s%@program_transform_name@%$program_transform_name%g
1730 s%@bindir@%$bindir%g
1731 s%@sbindir@%$sbindir%g
1732 s%@libexecdir@%$libexecdir%g
1733 s%@datadir@%$datadir%g
1734 s%@sysconfdir@%$sysconfdir%g
1735 s%@sharedstatedir@%$sharedstatedir%g
1736 s%@localstatedir@%$localstatedir%g
1737 s%@libdir@%$libdir%g
1738 s%@includedir@%$includedir%g
1739 s%@oldincludedir@%$oldincludedir%g
1740 s%@infodir@%$infodir%g
1741 s%@mandir@%$mandir%g
1742 s%@VERSION@%$VERSION%g
1743 s%@RELEASE@%$RELEASE%g
1744 s%@statedir@%$statedir%g
1745 s%@statduser@%$statduser%g
1746 s%@enable_nfsv3@%$enable_nfsv3%g
1747 s%@kprefix@%$kprefix%g
1748 s%@secure_statd@%$secure_statd%g
1749 s%@RQUOTAD@%$RQUOTAD%g
1752 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1753 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1754 s%@INSTALL_DATA@%$INSTALL_DATA%g
1755 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1757 s%@host_alias@%$host_alias%g
1758 s%@host_cpu@%$host_cpu%g
1759 s%@host_vendor@%$host_vendor%g
1760 s%@host_os@%$host_os%g
1762 s%@build_alias@%$build_alias%g
1763 s%@build_cpu@%$build_cpu%g
1764 s%@build_vendor@%$build_vendor%g
1765 s%@build_os@%$build_os%g
1766 s%@RANLIB@%$RANLIB%g
1769 s%@LIBSOCKET@%$LIBSOCKET%g
1770 s%@LIBNSL@%$LIBNSL%g
1771 s%@LIBCRYPT@%$LIBCRYPT%g
1772 s%@LIBBSD@%$LIBBSD%g
1773 s%@LIBWRAP@%$LIBWRAP%g
1778 cat >> $CONFIG_STATUS <<\EOF
1780 # Split the substitutions into bite-sized pieces for seds with
1781 # small command number limits, like on Digital OSF/1 and HP-UX.
1782 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1783 ac_file=1 # Number of current file.
1784 ac_beg=1 # First line for current file.
1785 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1788 while $ac_more_lines; do
1789 if test $ac_beg -gt 1; then
1790 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1792 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1794 if test ! -s conftest.s$ac_file; then
1796 rm -f conftest.s$ac_file
1798 if test -z "$ac_sed_cmds"; then
1799 ac_sed_cmds="sed -f conftest.s$ac_file"
1801 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1803 ac_file=`expr $ac_file + 1`
1805 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1808 if test -z "$ac_sed_cmds"; then
1813 cat >> $CONFIG_STATUS <<EOF
1815 CONFIG_FILES=\${CONFIG_FILES-"config.mk nfs-utils.spec utils/Makefile"}
1817 cat >> $CONFIG_STATUS <<\EOF
1818 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1821 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1822 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1823 *) ac_file_in="${ac_file}.in" ;;
1826 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1828 # Remove last slash and all that follows it. Not all systems have dirname.
1829 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1830 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1831 # The file is in a subdirectory.
1832 test ! -d "$ac_dir" && mkdir "$ac_dir"
1833 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1834 # A "../" for each directory in $ac_dir_suffix.
1835 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1837 ac_dir_suffix= ac_dots=
1840 case "$ac_given_srcdir" in
1842 if test -z "$ac_dots"; then top_srcdir=.
1843 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1844 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1846 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1847 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1850 case "$ac_given_INSTALL" in
1851 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1852 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1855 echo creating "$ac_file"
1857 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1859 *Makefile*) ac_comsub="1i\\
1860 # $configure_input" ;;
1864 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1866 s%@configure_input@%$configure_input%g
1867 s%@srcdir@%$srcdir%g
1868 s%@top_srcdir@%$top_srcdir%g
1869 s%@INSTALL@%$INSTALL%g
1870 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1874 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1875 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1877 # ac_d sets the value in "#define NAME VALUE" lines.
1878 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1879 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1882 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1883 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1884 ac_uB='\([ ]\)%\1#\2define\3'
1887 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1888 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1889 ac_eB='$%\1#\2define\3'
1893 if test "${CONFIG_HEADERS+set}" != set; then
1895 cat >> $CONFIG_STATUS <<EOF
1896 CONFIG_HEADERS="support/include/config.h"
1898 cat >> $CONFIG_STATUS <<\EOF
1900 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1901 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1903 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1904 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1905 *) ac_file_in="${ac_file}.in" ;;
1908 echo creating $ac_file
1910 rm -f conftest.frag conftest.in conftest.out
1911 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1912 cat $ac_file_inputs > conftest.in
1916 # Transform confdefs.h into a sed script conftest.vals that substitutes
1917 # the proper values into config.h.in to produce config.h. And first:
1918 # Protect against being on the right side of a sed subst in config.status.
1919 # Protect against being in an unquoted here document in config.status.
1921 cat > conftest.hdr <<\EOF
1924 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1928 sed -n -f conftest.hdr confdefs.h > conftest.vals
1931 # This sed command replaces #undef with comments. This is necessary, for
1932 # example, in the case of _POSIX_SOURCE, which is predefined and required
1933 # on some systems where configure will not decide to define it.
1934 cat >> conftest.vals <<\EOF
1935 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1938 # Break up conftest.vals because some shells have a limit on
1939 # the size of here documents, and old seds have small limits too.
1944 ac_lines=`grep -c . conftest.vals`
1945 # grep -c gives empty output for an empty file on some AIX systems.
1946 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1947 # Write a limited-size here document to conftest.frag.
1948 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1949 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1951 sed -f conftest.frag conftest.in > conftest.out
1953 mv conftest.out conftest.in
1955 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1957 mv conftest.tail conftest.vals
1961 cat >> $CONFIG_STATUS <<\EOF
1962 rm -f conftest.frag conftest.h
1963 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1964 cat conftest.in >> conftest.h
1966 if cmp -s $ac_file conftest.h 2>/dev/null; then
1967 echo "$ac_file is unchanged"
1970 # Remove last slash and all that follows it. Not all systems have dirname.
1971 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1972 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1973 # The file is in a subdirectory.
1974 test ! -d "$ac_dir" && mkdir "$ac_dir"
1977 mv conftest.h $ac_file
1982 cat >> $CONFIG_STATUS <<EOF
1985 cat >> $CONFIG_STATUS <<\EOF
1989 chmod +x $CONFIG_STATUS
1990 rm -fr confdefs* $ac_clean_files
1991 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1