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 --enable-nfsv3 enable support for NFSv3"
22 --enable-kprefix install progs as rpc.knfsd etc"
24 --enable-secure-statd Only lockd can use statd (security)"
26 --enable-rquotad enable rquotad"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=rules.mk
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='\c' ac_t=
539 # The nfs-utils version
543 # Check whether --with-release or --without-release was given.
544 if test "${with_release+set}" = set; then
545 withval="$with_release"
552 # Check whether --with-statedir or --without-statedir was given.
553 if test "${with_statedir+set}" = set; then
554 withval="$with_statedir"
557 statedir=/var/lib/nfs
561 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
562 if test "${enable_nfsv3+set}" = set; then
563 enableval="$enable_nfsv3"
564 enable_nfsv3=$enableval
569 if test "$enable_nfsv3" = yes; then
570 cat >> confdefs.h <<\EOF
571 #define NFS3_SUPPORTED 1
578 # Check whether --enable-kprefix or --disable-kprefix was given.
579 if test "${enable_kprefix+set}" = set; then
580 enableval="$enable_kprefix"
581 test "$enableval" = "yes" && kprefix=k
587 # Check whether --enable-secure-statd or --disable-secure-statd was given.
588 if test "${enable_secure_statd+set}" = set; then
589 enableval="$enable_secure_statd"
590 test "$enableval" = "yes" && secure_statd=yes
595 if test "$secure_statd" = yes; then
596 cat >> confdefs.h <<\EOF
597 #define RESTRICTED_STATD 1
602 # Check whether --enable-rquotad or --disable-rquotad was given.
603 if test "${enable_rquotad+set}" = set; then
604 enableval="$enable_rquotad"
605 enable_rquotad=$enableval
610 if test "$enable_rquotad" = yes; then
618 # Extract the first word of "gcc", so it can be a program name with args.
619 set dummy gcc; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
644 echo "$ac_t""no" 1>&6
647 if test -z "$CC"; then
648 # Extract the first word of "cc", so it can be a program name with args.
649 set dummy cc; ac_word=$2
650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
651 echo "configure:652: checking for $ac_word" >&5
652 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
655 if test -n "$CC"; then
656 ac_cv_prog_CC="$CC" # Let the user override the test.
658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 for ac_dir in $ac_dummy; do
662 test -z "$ac_dir" && ac_dir=.
663 if test -f $ac_dir/$ac_word; then
664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
673 if test $ac_prog_rejected = yes; then
674 # We found a bogon in the path, so make sure we never use it.
675 set dummy $ac_cv_prog_CC
677 if test $# -gt 0; then
678 # We chose a different compiler from the bogus one.
679 # However, it has the same basename, so the bogon will be chosen
680 # first if we set CC to just the basename; use the full file name.
682 set dummy "$ac_dir/$ac_word" "$@"
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
699 # Extract the first word of "cl", so it can be a program name with args.
700 set dummy cl; ac_word=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$CC"; then
707 ac_cv_prog_CC="$CC" # Let the user override the test.
709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
711 for ac_dir in $ac_dummy; do
712 test -z "$ac_dir" && ac_dir=.
713 if test -f $ac_dir/$ac_word; then
722 if test -n "$CC"; then
723 echo "$ac_t""$CC" 1>&6
725 echo "$ac_t""no" 1>&6
730 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
734 echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
738 ac_cpp='$CPP $CPPFLAGS'
739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
741 cross_compiling=$ac_cv_prog_cc_cross
743 cat > conftest.$ac_ext << EOF
745 #line 746 "configure"
746 #include "confdefs.h"
750 if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
751 ac_cv_prog_cc_works=yes
752 # If we can't run a trivial program, we are probably using a cross compiler.
753 if (./conftest; exit) 2>/dev/null; then
754 ac_cv_prog_cc_cross=no
756 ac_cv_prog_cc_cross=yes
759 echo "configure: failed program was:" >&5
760 cat conftest.$ac_ext >&5
761 ac_cv_prog_cc_works=no
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
772 if test $ac_cv_prog_cc_works = no; then
773 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
776 echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
777 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
778 cross_compiling=$ac_cv_prog_cc_cross
780 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
781 echo "configure:782: checking whether we are using GNU C" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 cat > conftest.c <<EOF
790 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
797 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799 if test $ac_cv_prog_gcc = yes; then
805 ac_test_CFLAGS="${CFLAGS+set}"
806 ac_save_CFLAGS="$CFLAGS"
808 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 echo 'void f(){}' > conftest.c
814 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
823 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
824 if test "$ac_test_CFLAGS" = set; then
825 CFLAGS="$ac_save_CFLAGS"
826 elif test $ac_cv_prog_cc_g = yes; then
827 if test "$GCC" = yes; then
833 if test "$GCC" = yes; then
840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
841 echo "configure:842: checking how to run the C preprocessor" >&5
842 # On Suns, sometimes $CPP names a directory.
843 if test -n "$CPP" && test -d "$CPP"; then
846 if test -z "$CPP"; then
847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 # This must be in double quotes, not single quotes, because CPP may get
851 # substituted into the Makefile and "${CC-cc}" will confuse make.
853 # On the NeXT, cc -E runs the code through the compiler's parser,
854 # not just through cpp.
855 cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
864 if test -z "$ac_err"; then
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
871 CPP="${CC-cc} -E -traditional-cpp"
872 cat > conftest.$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
879 { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
881 if test -z "$ac_err"; then
885 echo "configure: failed program was:" >&5
886 cat conftest.$ac_ext >&5
888 CPP="${CC-cc} -nologo -E"
889 cat > conftest.$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
896 { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
898 if test -z "$ac_err"; then
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
912 ac_cv_prog_CPP="$CPP"
914 CPP="$ac_cv_prog_CPP"
916 ac_cv_prog_CPP="$CPP"
918 echo "$ac_t""$CPP" 1>&6
921 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
922 if test -f $ac_dir/install-sh; then
924 ac_install_sh="$ac_aux_dir/install-sh -c"
926 elif test -f $ac_dir/install.sh; then
928 ac_install_sh="$ac_aux_dir/install.sh -c"
932 if test -z "$ac_aux_dir"; then
933 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
935 ac_config_guess=$ac_aux_dir/config.guess
936 ac_config_sub=$ac_aux_dir/config.sub
937 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
939 # Find a good install program. We prefer a C program (faster),
940 # so one script is as good as another. But avoid the broken or
941 # incompatible versions:
942 # SysV /etc/install, /usr/sbin/install
943 # SunOS /usr/etc/install
946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
949 # ./install, which can be erroneously created by make from ./install.sh.
950 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
951 echo "configure:952: checking for a BSD compatible install" >&5
952 if test -z "$INSTALL"; then
953 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
957 for ac_dir in $PATH; do
958 # Account for people who put trailing slashes in PATH elements.
960 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
962 # OSF1 and SCO ODT 3.0 have their own names for install.
963 # Don't use installbsd from OSF since it installs stuff as root
965 for ac_prog in ginstall scoinst install; do
966 if test -f $ac_dir/$ac_prog; then
967 if test $ac_prog = install &&
968 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
969 # AIX install. It has an incompatible calling convention.
972 ac_cv_path_install="$ac_dir/$ac_prog -c"
983 if test "${ac_cv_path_install+set}" = set; then
984 INSTALL="$ac_cv_path_install"
986 # As a last resort, use the slow shell script. We don't cache a
987 # path for INSTALL within a source directory, because that will
988 # break other packages using the cache if that directory is
989 # removed, or if the path is relative.
990 INSTALL="$ac_install_sh"
993 echo "$ac_t""$INSTALL" 1>&6
995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
996 # It thinks the first close brace ends the variable substitution.
997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1004 test "${CC_FOR_BUILD+set}" = set || CC_FOR_BUILD="$CC"
1008 # Make sure we can run config.sub.
1009 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1010 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1013 echo $ac_n "checking host system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking host system type" >&5
1017 case "$host_alias" in
1021 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1022 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1024 *) host_alias=$nonopt ;;
1028 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1029 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$host" 1>&6
1034 echo $ac_n "checking build system type""... $ac_c" 1>&6
1035 echo "configure:1036: checking build system type" >&5
1038 case "$build_alias" in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1046 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$build" 1>&6
1052 if test $host != $build; then
1053 ac_tool_prefix=${host_alias}-
1058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$RANLIB"; then
1066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1080 RANLIB="$ac_cv_prog_RANLIB"
1081 if test -n "$RANLIB"; then
1082 echo "$ac_t""$RANLIB" 1>&6
1084 echo "$ac_t""no" 1>&6
1088 if test -z "$ac_cv_prog_RANLIB"; then
1089 if test -n "$ac_tool_prefix"; then
1090 # Extract the first word of "ranlib", so it can be a program name with args.
1091 set dummy ranlib; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$RANLIB"; then
1098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_RANLIB="ranlib"
1110 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1113 RANLIB="$ac_cv_prog_RANLIB"
1114 if test -n "$RANLIB"; then
1115 echo "$ac_t""$RANLIB" 1>&6
1117 echo "$ac_t""no" 1>&6
1125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}ar; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 if test -n "$AR"; then
1133 ac_cv_prog_AR="$AR" # Let the user override the test.
1135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1137 for ac_dir in $ac_dummy; do
1138 test -z "$ac_dir" && ac_dir=.
1139 if test -f $ac_dir/$ac_word; then
1140 ac_cv_prog_AR="${ac_tool_prefix}ar"
1145 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1149 if test -n "$AR"; then
1150 echo "$ac_t""$AR" 1>&6
1152 echo "$ac_t""no" 1>&6
1157 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
1158 set dummy ${ac_tool_prefix}ld; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$LD"; then
1165 ac_cv_prog_LD="$LD" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_LD="${ac_tool_prefix}ld"
1177 test -z "$ac_cv_prog_LD" && ac_cv_prog_LD="ld"
1181 if test -n "$LD"; then
1182 echo "$ac_t""$LD" 1>&6
1184 echo "$ac_t""no" 1>&6
1190 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1191 echo "configure:1192: checking for ANSI C header files" >&5
1192 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1204 { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1206 if test -z "$ac_err"; then
1208 ac_cv_header_stdc=yes
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1214 ac_cv_header_stdc=no
1218 if test $ac_cv_header_stdc = yes; then
1219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1226 egrep "memchr" >/dev/null 2>&1; then
1230 ac_cv_header_stdc=no
1236 if test $ac_cv_header_stdc = yes; then
1237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1238 cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1244 egrep "free" >/dev/null 2>&1; then
1248 ac_cv_header_stdc=no
1254 if test $ac_cv_header_stdc = yes; then
1255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1256 if test "$cross_compiling" = yes; then
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1263 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1264 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1266 int main () { int i; for (i = 0; i < 256; i++)
1267 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 ac_cv_header_stdc=no
1286 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1287 if test $ac_cv_header_stdc = yes; then
1288 cat >> confdefs.h <<\EOF
1289 #define STDC_HEADERS 1
1294 echo $ac_n "checking for GNU libc2""... $ac_c" 1>&6
1295 echo "configure:1296: checking for GNU libc2" >&5
1296 if eval "test \"`echo '$''{'knfsd_cv_glibc2'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1303 #include <features.h>
1304 #if !defined(__GLIBC__)
1308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1309 { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1311 if test -z "$ac_err"; then
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1324 echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1325 if test $knfsd_cv_glibc2 = yes; then
1326 CFLAGS="$CFLAGS -D_GNU_SOURCE"
1327 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1331 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1332 echo "configure:1333: checking for main in -lsocket" >&5
1333 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 ac_save_LIBS="$LIBS"
1338 LIBS="-lsocket $LIBS"
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 eval "ac_cv_lib_$ac_lib_var=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1354 eval "ac_cv_lib_$ac_lib_var=no"
1357 LIBS="$ac_save_LIBS"
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1364 echo "$ac_t""no" 1>&6
1367 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1368 echo "configure:1369: checking for main in -lnsl" >&5
1369 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 ac_save_LIBS="$LIBS"
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1390 eval "ac_cv_lib_$ac_lib_var=no"
1393 LIBS="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1403 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1404 echo "configure:1405: checking for crypt in -lcrypt" >&5
1405 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1409 ac_save_LIBS="$LIBS"
1410 LIBS="-lcrypt $LIBS"
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414 /* Override any gcc2 internal prototype to avoid an error. */
1415 /* We use char because int might match the return type of a gcc2
1416 builtin and then its argument prototype would still apply. */
1423 if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1425 eval "ac_cv_lib_$ac_lib_var=yes"
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1430 eval "ac_cv_lib_$ac_lib_var=no"
1433 LIBS="$ac_save_LIBS"
1436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1437 echo "$ac_t""yes" 1>&6
1440 echo "$ac_t""no" 1>&6
1443 if test "$knfsd_cv_glibc2" = no; then
1444 echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6
1445 echo "configure:1446: checking for daemon in -lbsd" >&5
1446 ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'`
1447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 ac_save_LIBS="$LIBS"
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* Override any gcc2 internal prototype to avoid an error. */
1456 /* We use char because int might match the return type of a gcc2
1457 builtin and then its argument prototype would still apply. */
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466 eval "ac_cv_lib_$ac_lib_var=yes"
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1471 eval "ac_cv_lib_$ac_lib_var=no"
1474 LIBS="$ac_save_LIBS"
1477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1481 echo "$ac_t""no" 1>&6
1490 echo $ac_n "checking for the tcp wrapper library""... $ac_c" 1>&6
1491 echo "configure:1492: checking for the tcp wrapper library" >&5
1492 if eval "test \"`echo '$''{'knfsd_cv_tcp_wrapper'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1496 LIBS="$LIBS -lwrap $LIBNSL"
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1501 int deny_severity = 0;
1502 int allow_severity = 0;
1504 return hosts_ctl ("nfsd", "", "")
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1509 knfsd_cv_tcp_wrapper=yes
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1514 knfsd_cv_tcp_wrapper=no
1520 echo "$ac_t""$knfsd_cv_tcp_wrapper" 1>&6
1521 if test "$knfsd_cv_tcp_wrapper" = yes; then
1522 CFLAGS="$CFLAGS -DHAVE_TCP_WRAPPER"
1523 CXXFLAGS="$CXXFLAGS -DHAVE_TCP_WRAPPER"
1530 for ac_func in innetgr
1532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1533 echo "configure:1534: checking for $ac_func" >&5
1534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1540 /* System header to define __stub macros and hopefully few prototypes,
1541 which can conflict with char $ac_func(); below. */
1543 /* Override any gcc2 internal prototype to avoid an error. */
1544 /* We use char because int might match the return type of a gcc2
1545 builtin and then its argument prototype would still apply. */
1550 /* The GNU C library defines this for functions which it implements
1551 to always fail with ENOSYS. Some functions are actually named
1552 something starting with __ and the normal name is an alias. */
1553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1563 eval "ac_cv_func_$ac_func=yes"
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1568 eval "ac_cv_func_$ac_func=no"
1573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1576 cat >> confdefs.h <<EOF
1577 #define $ac_tr_func 1
1581 echo "$ac_t""no" 1>&6
1586 cat >> confdefs.h <<EOF
1587 #define NFS_STATEDIR "$statedir"
1595 cat > confcache <<\EOF
1596 # This file is a shell script that caches the results of configure
1597 # tests run on this system so they can be shared between configure
1598 # scripts and configure runs. It is not useful on other systems.
1599 # If it contains results you don't want to keep, you may remove or edit it.
1601 # By default, configure uses ./config.cache as the cache file,
1602 # creating it if it does not exist already. You can give configure
1603 # the --cache-file=FILE option to use a different cache file; that is
1604 # what configure does when it calls configure scripts in
1605 # subdirectories, so they share the cache.
1606 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1607 # config.status only pays attention to the cache file if you give it the
1608 # --recheck option to rerun configure.
1611 # The following way of writing the cache mishandles newlines in values,
1612 # but we know of no workaround that is simple, portable, and efficient.
1613 # So, don't put newlines in cache variables' values.
1614 # Ultrix sh set writes to stderr and can't be redirected directly,
1615 # and sets the high bit in the cache file unless we assign to the vars.
1617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1619 # `set' does not quote correctly, so add quotes (double-quote substitution
1620 # turns \\\\ into \\, and sed turns \\ into \).
1622 -e "s/'/'\\\\''/g" \
1623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1626 # `set' quotes correctly as required by POSIX, so do not add quotes.
1627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1630 if cmp -s $cache_file confcache; then
1633 if test -w $cache_file; then
1634 echo "updating cache $cache_file"
1635 cat confcache > $cache_file
1637 echo "not updating unwritable cache $cache_file"
1642 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1645 # Let make expand exec_prefix.
1646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1648 # Any assignment to VPATH causes Sun make to only execute
1649 # the first set of double-colon rules, so remove it if not needed.
1650 # If there is a colon in the path, we need to keep it.
1651 if test "x$srcdir" = x.; then
1652 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1655 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1657 DEFS=-DHAVE_CONFIG_H
1659 # Without the "./", some shells look in PATH for config.status.
1660 : ${CONFIG_STATUS=./config.status}
1662 echo creating $CONFIG_STATUS
1663 rm -f $CONFIG_STATUS
1664 cat > $CONFIG_STATUS <<EOF
1666 # Generated automatically by configure.
1667 # Run this file to recreate the current configuration.
1668 # This directory was configured as follows,
1669 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1671 # $0 $ac_configure_args
1673 # Compiler output produced by configure, useful for debugging
1674 # configure, is in ./config.log if it exists.
1676 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1679 case "\$ac_option" in
1680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1681 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1682 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1683 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1684 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1686 -help | --help | --hel | --he | --h)
1687 echo "\$ac_cs_usage"; exit 0 ;;
1688 *) echo "\$ac_cs_usage"; exit 1 ;;
1692 ac_given_srcdir=$srcdir
1693 ac_given_INSTALL="$INSTALL"
1695 trap 'rm -fr `echo "config.mk nfs-utils.spec utils/Makefile support/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1697 cat >> $CONFIG_STATUS <<EOF
1699 # Protect against being on the right side of a sed subst in config.status.
1700 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1701 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1705 s%@CFLAGS@%$CFLAGS%g
1706 s%@CPPFLAGS@%$CPPFLAGS%g
1707 s%@CXXFLAGS@%$CXXFLAGS%g
1708 s%@FFLAGS@%$FFLAGS%g
1710 s%@LDFLAGS@%$LDFLAGS%g
1712 s%@exec_prefix@%$exec_prefix%g
1713 s%@prefix@%$prefix%g
1714 s%@program_transform_name@%$program_transform_name%g
1715 s%@bindir@%$bindir%g
1716 s%@sbindir@%$sbindir%g
1717 s%@libexecdir@%$libexecdir%g
1718 s%@datadir@%$datadir%g
1719 s%@sysconfdir@%$sysconfdir%g
1720 s%@sharedstatedir@%$sharedstatedir%g
1721 s%@localstatedir@%$localstatedir%g
1722 s%@libdir@%$libdir%g
1723 s%@includedir@%$includedir%g
1724 s%@oldincludedir@%$oldincludedir%g
1725 s%@infodir@%$infodir%g
1726 s%@mandir@%$mandir%g
1727 s%@VERSION@%$VERSION%g
1728 s%@RELEASE@%$RELEASE%g
1729 s%@statedir@%$statedir%g
1730 s%@enable_nfsv3@%$enable_nfsv3%g
1731 s%@kprefix@%$kprefix%g
1732 s%@secure_statd@%$secure_statd%g
1733 s%@RQUOTAD@%$RQUOTAD%g
1736 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1737 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1738 s%@INSTALL_DATA@%$INSTALL_DATA%g
1739 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
1741 s%@host_alias@%$host_alias%g
1742 s%@host_cpu@%$host_cpu%g
1743 s%@host_vendor@%$host_vendor%g
1744 s%@host_os@%$host_os%g
1746 s%@build_alias@%$build_alias%g
1747 s%@build_cpu@%$build_cpu%g
1748 s%@build_vendor@%$build_vendor%g
1749 s%@build_os@%$build_os%g
1750 s%@RANLIB@%$RANLIB%g
1753 s%@LIBSOCKET@%$LIBSOCKET%g
1754 s%@LIBNSL@%$LIBNSL%g
1755 s%@LIBCRYPT@%$LIBCRYPT%g
1756 s%@LIBBSD@%$LIBBSD%g
1757 s%@LIBWRAP@%$LIBWRAP%g
1762 cat >> $CONFIG_STATUS <<\EOF
1764 # Split the substitutions into bite-sized pieces for seds with
1765 # small command number limits, like on Digital OSF/1 and HP-UX.
1766 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1767 ac_file=1 # Number of current file.
1768 ac_beg=1 # First line for current file.
1769 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1772 while $ac_more_lines; do
1773 if test $ac_beg -gt 1; then
1774 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1776 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1778 if test ! -s conftest.s$ac_file; then
1780 rm -f conftest.s$ac_file
1782 if test -z "$ac_sed_cmds"; then
1783 ac_sed_cmds="sed -f conftest.s$ac_file"
1785 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1787 ac_file=`expr $ac_file + 1`
1789 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1792 if test -z "$ac_sed_cmds"; then
1797 cat >> $CONFIG_STATUS <<EOF
1799 CONFIG_FILES=\${CONFIG_FILES-"config.mk nfs-utils.spec utils/Makefile"}
1801 cat >> $CONFIG_STATUS <<\EOF
1802 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1805 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1806 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1807 *) ac_file_in="${ac_file}.in" ;;
1810 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1812 # Remove last slash and all that follows it. Not all systems have dirname.
1813 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1814 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1815 # The file is in a subdirectory.
1816 test ! -d "$ac_dir" && mkdir "$ac_dir"
1817 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1818 # A "../" for each directory in $ac_dir_suffix.
1819 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1821 ac_dir_suffix= ac_dots=
1824 case "$ac_given_srcdir" in
1826 if test -z "$ac_dots"; then top_srcdir=.
1827 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1828 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1830 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1831 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1834 case "$ac_given_INSTALL" in
1835 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1836 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1839 echo creating "$ac_file"
1841 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1843 *Makefile*) ac_comsub="1i\\
1844 # $configure_input" ;;
1848 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1850 s%@configure_input@%$configure_input%g
1851 s%@srcdir@%$srcdir%g
1852 s%@top_srcdir@%$top_srcdir%g
1853 s%@INSTALL@%$INSTALL%g
1854 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1858 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1859 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1861 # ac_d sets the value in "#define NAME VALUE" lines.
1862 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1863 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1866 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1867 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1868 ac_uB='\([ ]\)%\1#\2define\3'
1871 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1872 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1873 ac_eB='$%\1#\2define\3'
1877 if test "${CONFIG_HEADERS+set}" != set; then
1879 cat >> $CONFIG_STATUS <<EOF
1880 CONFIG_HEADERS="support/include/config.h"
1882 cat >> $CONFIG_STATUS <<\EOF
1884 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1885 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1887 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1888 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1889 *) ac_file_in="${ac_file}.in" ;;
1892 echo creating $ac_file
1894 rm -f conftest.frag conftest.in conftest.out
1895 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1896 cat $ac_file_inputs > conftest.in
1900 # Transform confdefs.h into a sed script conftest.vals that substitutes
1901 # the proper values into config.h.in to produce config.h. And first:
1902 # Protect against being on the right side of a sed subst in config.status.
1903 # Protect against being in an unquoted here document in config.status.
1905 cat > conftest.hdr <<\EOF
1908 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1912 sed -n -f conftest.hdr confdefs.h > conftest.vals
1915 # This sed command replaces #undef with comments. This is necessary, for
1916 # example, in the case of _POSIX_SOURCE, which is predefined and required
1917 # on some systems where configure will not decide to define it.
1918 cat >> conftest.vals <<\EOF
1919 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1922 # Break up conftest.vals because some shells have a limit on
1923 # the size of here documents, and old seds have small limits too.
1928 ac_lines=`grep -c . conftest.vals`
1929 # grep -c gives empty output for an empty file on some AIX systems.
1930 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1931 # Write a limited-size here document to conftest.frag.
1932 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1933 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1935 sed -f conftest.frag conftest.in > conftest.out
1937 mv conftest.out conftest.in
1939 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1941 mv conftest.tail conftest.vals
1945 cat >> $CONFIG_STATUS <<\EOF
1946 rm -f conftest.frag conftest.h
1947 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1948 cat conftest.in >> conftest.h
1950 if cmp -s $ac_file conftest.h 2>/dev/null; then
1951 echo "$ac_file is unchanged"
1954 # Remove last slash and all that follows it. Not all systems have dirname.
1955 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1956 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1957 # The file is in a subdirectory.
1958 test ! -d "$ac_dir" && mkdir "$ac_dir"
1961 mv conftest.h $ac_file
1966 cat >> $CONFIG_STATUS <<EOF
1969 cat >> $CONFIG_STATUS <<\EOF
1973 chmod +x $CONFIG_STATUS
1974 rm -fr confdefs* $ac_clean_files
1975 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1