]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
b425e8dca2fbc85c4bd27181e11ef42d8962e536
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated automatically using Autoconf version 2.14.1 
4 # Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
5 #
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8
9 # Defaults:
10 ac_arg_with_help=
11 ac_arg_enable_help=
12 ac_arg_var_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_default_prefix=/usr
16 ac_arg_with_help="$ac_arg_with_help
17   --with-statedir=/foo    use state dir /foo [/var/lib/nfs]"
18 ac_arg_enable_help="$ac_arg_enable_help
19   --enable-nfsv3          enable support for NFSv3"
20 ac_arg_enable_help="$ac_arg_enable_help
21   --enable-kprefix       install progs as rpc.knfsd etc"
22 ac_arg_enable_help="$ac_arg_enable_help
23   --enable-secure-statd  Only lockd can use statd (security)"
24 ac_arg_var_help="$ac_arg_var_help
25   CFLAGS      Extra flags for the C compiler"
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 : ${ac_max_here_lines=12}
67 # Sed expression to map a string onto a valid sh and CPP variable names.
68 ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
69 ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
70
71 ac_prev=
72 for ac_option
73 do
74
75   # If the previous option needs an argument, assign it.
76   if test -n "$ac_prev"; then
77     eval "$ac_prev=\$ac_option"
78     ac_prev=
79     continue
80   fi
81
82   case "$ac_option" in
83   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84   *) ac_optarg= ;;
85   esac
86
87   # Accept the important Cygnus configure options, so we can diagnose typos.
88
89   case "$ac_option" in
90
91   -bindir | --bindir | --bindi | --bind | --bin | --bi)
92     ac_prev=bindir ;;
93   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94     bindir="$ac_optarg" ;;
95
96   -build | --build | --buil | --bui | --bu)
97     ac_prev=build ;;
98   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99     build="$ac_optarg" ;;
100
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" ;;
107
108   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109     ac_prev=datadir ;;
110   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111   | --da=*)
112     datadir="$ac_optarg" ;;
113
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; }
119     fi
120     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121     eval "enable_${ac_feature}=no" ;;
122
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; }
128     fi
129     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130     case "$ac_option" in
131       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
132       *) ac_optarg=yes ;;
133     esac
134     eval "enable_${ac_feature}='$ac_optarg'" ;;
135
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" ;;
144
145   -gas | --gas | --ga | --g)
146     # Obsolete; use --with-gas.
147     with_gas=yes ;;
148
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.
152     cat << \EOF
153 `configure' configures software source code packages to adapt to many kinds
154 of systems.
155
156 Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
157
158 To safely assign special values to environment variables (e.g., CC,
159 CFLAGS...), give to `configure' the definition as VAR=VALUE.
160
161 Defaults for the options are specified in brackets.
162
163 Configuration:
164   --cache-file=FILE       cache test results in FILE
165   --help                  print this message
166   --no-create             do not create output files
167   --quiet, --silent       do not print \`checking...' messages
168   --version               print the version of autoconf that created configure
169
170 Directory and file names:
171   --prefix=PREFIX         install architecture-independent files in PREFIX
172                           [$ac_default_prefix]
173   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
174                           [same as prefix]
175   --bindir=DIR            user executables in DIR [EPREFIX/bin]
176   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
177   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
178   --datadir=DIR           read-only architecture-independent data in DIR
179                           [PREFIX/share]
180   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
181   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
182                           [PREFIX/com]
183   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
184   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
185   --includedir=DIR        C header files in DIR [PREFIX/include]
186   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
187   --infodir=DIR           info documentation in DIR [PREFIX/info]
188   --mandir=DIR            man documentation in DIR [PREFIX/man]
189   --srcdir=DIR            find the sources in DIR [configure dir or ..]
190
191 Program names:
192   --program-prefix=PREFIX prepend PREFIX to installed program names
193   --program-suffix=SUFFIX append SUFFIX to installed program names
194   --program-transform-name=PROGRAM
195                           run sed PROGRAM on installed program names
196
197 EOF
198     cat << \EOF
199 Host type:
200   --build=BUILD           configure for building on BUILD [BUILD=HOST]
201   --host=HOST             configure for HOST [guessed]
202   --target=TARGET         configure for TARGET [TARGET=HOST]
203
204 Features and packages:
205   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
206   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
207   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
208   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
209   --x-includes=DIR        X include files are in DIR
210   --x-libraries=DIR       X library files are in DIR
211 EOF
212     test -n "$ac_arg_enable_help" && echo "
213 --enable options recognized:$ac_arg_enable_help"
214     test -n "$ac_arg_with_help" && echo "
215 --with options recognized:$ac_arg_with_help"
216     test -n "$ac_arg_var_help" && echo "
217 Some of the influent environment variables:$ac_arg_var_help"
218     exit 0 ;;
219
220   -host | --host | --hos | --ho)
221     ac_prev=host ;;
222   -host=* | --host=* | --hos=* | --ho=*)
223     host="$ac_optarg" ;;
224
225   -includedir | --includedir | --includedi | --included | --include \
226   | --includ | --inclu | --incl | --inc)
227     ac_prev=includedir ;;
228   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229   | --includ=* | --inclu=* | --incl=* | --inc=*)
230     includedir="$ac_optarg" ;;
231
232   -infodir | --infodir | --infodi | --infod | --info | --inf)
233     ac_prev=infodir ;;
234   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235     infodir="$ac_optarg" ;;
236
237   -libdir | --libdir | --libdi | --libd)
238     ac_prev=libdir ;;
239   -libdir=* | --libdir=* | --libdi=* | --libd=*)
240     libdir="$ac_optarg" ;;
241
242   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243   | --libexe | --libex | --libe)
244     ac_prev=libexecdir ;;
245   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246   | --libexe=* | --libex=* | --libe=*)
247     libexecdir="$ac_optarg" ;;
248
249   -localstatedir | --localstatedir | --localstatedi | --localstated \
250   | --localstate | --localstat | --localsta | --localst \
251   | --locals | --local | --loca | --loc | --lo)
252     ac_prev=localstatedir ;;
253   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256     localstatedir="$ac_optarg" ;;
257
258   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259     ac_prev=mandir ;;
260   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261     mandir="$ac_optarg" ;;
262
263   -nfp | --nfp | --nf)
264     # Obsolete; use --without-fp.
265     with_fp=no ;;
266
267   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268   | --no-cr | --no-c)
269     no_create=yes ;;
270
271   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273     no_recursion=yes ;;
274
275   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277   | --oldin | --oldi | --old | --ol | --o)
278     ac_prev=oldincludedir ;;
279   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282     oldincludedir="$ac_optarg" ;;
283
284   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285     ac_prev=prefix ;;
286   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287     prefix="$ac_optarg" ;;
288
289   -program-prefix | --program-prefix | --program-prefi | --program-pref \
290   | --program-pre | --program-pr | --program-p)
291     ac_prev=program_prefix ;;
292   -program-prefix=* | --program-prefix=* | --program-prefi=* \
293   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294     program_prefix="$ac_optarg" ;;
295
296   -program-suffix | --program-suffix | --program-suffi | --program-suff \
297   | --program-suf | --program-su | --program-s)
298     ac_prev=program_suffix ;;
299   -program-suffix=* | --program-suffix=* | --program-suffi=* \
300   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301     program_suffix="$ac_optarg" ;;
302
303   -program-transform-name | --program-transform-name \
304   | --program-transform-nam | --program-transform-na \
305   | --program-transform-n | --program-transform- \
306   | --program-transform | --program-transfor \
307   | --program-transfo | --program-transf \
308   | --program-trans | --program-tran \
309   | --progr-tra | --program-tr | --program-t)
310     ac_prev=program_transform_name ;;
311   -program-transform-name=* | --program-transform-name=* \
312   | --program-transform-nam=* | --program-transform-na=* \
313   | --program-transform-n=* | --program-transform-=* \
314   | --program-transform=* | --program-transfor=* \
315   | --program-transfo=* | --program-transf=* \
316   | --program-trans=* | --program-tran=* \
317   | --progr-tra=* | --program-tr=* | --program-t=*)
318     program_transform_name="$ac_optarg" ;;
319
320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321   | -silent | --silent | --silen | --sile | --sil)
322     silent=yes ;;
323
324   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325     ac_prev=sbindir ;;
326   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327   | --sbi=* | --sb=*)
328     sbindir="$ac_optarg" ;;
329
330   -sharedstatedir | --sharedstatedir | --sharedstatedi \
331   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332   | --sharedst | --shareds | --shared | --share | --shar \
333   | --sha | --sh)
334     ac_prev=sharedstatedir ;;
335   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338   | --sha=* | --sh=*)
339     sharedstatedir="$ac_optarg" ;;
340
341   -site | --site | --sit)
342     ac_prev=site ;;
343   -site=* | --site=* | --sit=*)
344     site="$ac_optarg" ;;
345
346   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347     ac_prev=srcdir ;;
348   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349     srcdir="$ac_optarg" ;;
350
351   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352   | --syscon | --sysco | --sysc | --sys | --sy)
353     ac_prev=sysconfdir ;;
354   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356     sysconfdir="$ac_optarg" ;;
357
358   -target | --target | --targe | --targ | --tar | --ta | --t)
359     ac_prev=target ;;
360   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361     target="$ac_optarg" ;;
362
363   -v | -verbose | --verbose | --verbos | --verbo | --verb)
364     verbose=yes ;;
365
366   -version | --version | --versio | --versi | --vers)
367     echo "configure generated by autoconf version 2.14.1"
368     exit 0 ;;
369
370   -with-* | --with-*)
371     ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo "$ac_package"| sed 's/[-_a-zA-Z0-9]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     case "$ac_option" in
378       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379       *) ac_optarg=yes ;;
380     esac
381     eval "with_${ac_package}='$ac_optarg'" ;;
382
383   -without-* | --without-*)
384     ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
385     # Reject names that are not valid shell variable names.
386     if test -n "`echo "$ac_package"| sed 's/[-a-zA-Z0-9_]//g'`"; then
387       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388     fi
389     ac_package=`echo $ac_package| sed 's/-/_/g'`
390     eval "with_${ac_package}=no" ;;
391
392   --x)
393     # Obsolete; use --with-x.
394     with_x=yes ;;
395
396   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397   | --x-incl | --x-inc | --x-in | --x-i)
398     ac_prev=x_includes ;;
399   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401     x_includes="$ac_optarg" ;;
402
403   -x-libraries | --x-libraries | --x-librarie | --x-librari \
404   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405     ac_prev=x_libraries ;;
406   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408     x_libraries="$ac_optarg" ;;
409
410   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411     ;;
412
413   *=*)
414     ac_envvar=`echo $ac_option|sed -e 's/=.*//'`
415     # Reject names that are not valid shell variable names.
416     if test -n "`echo $ac_envvar| sed 's/[_a-zA-Z0-9]//g'`"; then
417       { echo "configure: error: $ac_envvar: invalid variable name" 1>&2; exit 1; }
418     fi
419     eval "${ac_envvar}='$ac_optarg'"
420     export $ac_envvar ;;
421
422   *)
423     if test -n "`echo "$ac_option"| sed 's/[-a-z0-9.]//g'`"; then
424       echo "configure: warning: $ac_option: invalid host type" 1>&2
425     fi
426     if test "x$nonopt" != xNONE; then
427       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428     fi
429     nonopt="$ac_option"
430     ;;
431
432   esac
433 done
434
435 if test -n "$ac_prev"; then
436   { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
437 fi
438
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440
441 # File descriptor usage:
442 # 0 standard input
443 # 1 file creation
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
450   exec 6>/dev/null
451 else
452   exec 6>&1
453 fi
454 exec 5>./config.log
455
456 echo "\
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
459 " 1>&5
460
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell meta-characters.
463 ac_configure_args=
464 for ac_arg
465 do
466   case "$ac_arg" in
467   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468   | --no-cr | --no-c) ;;
469   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472   ac_arg=`echo "$ac_arg"|sed "s/'/'\\\\\\\\''/g"`
473   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475   esac
476 done
477
478 # NLS nuisances.
479 # Only set these to C if already set.  These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
487
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 echo > confdefs.h
492
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=rules.mk
496
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499   ac_srcdir_defaulted=yes
500   # Try the directory containing this script, then its parent.
501   ac_prog=$0
502   ac_confdir=`echo "$ac_prog"|sed 's%/[^/][^/]*$%%'`
503   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504   srcdir=$ac_confdir
505   if test ! -r $srcdir/$ac_unique_file; then
506     srcdir=..
507   fi
508 else
509   ac_srcdir_defaulted=no
510 fi
511 if test ! -r $srcdir/$ac_unique_file; then
512   if test "$ac_srcdir_defaulted" = yes; then
513     { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
514   else
515     { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
516   fi
517 fi
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522   if test "x$prefix" != xNONE; then
523     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524   else
525     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526   fi
527 fi
528 for ac_site_file in $CONFIG_SITE; do
529   if test -r "$ac_site_file"; then
530     echo "loading site script $ac_site_file"
531     . "$ac_site_file"
532   fi
533 done
534
535 if test -r "$cache_file"; then
536   echo "loading cache $cache_file"
537       test -f "$cache_file" && . $cache_file
538 else
539   echo "creating cache $cache_file"
540   > $cache_file
541 fi
542
543 ac_ext=c
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
549
550 ac_exeext=
551 ac_objext=o
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555     ac_n= ac_c='
556 ' ac_t='        '
557   else
558     ac_n=-n ac_c= ac_t=
559   fi
560 else
561   ac_n= ac_c='\c' ac_t=
562 fi
563
564
565
566
567 # The nfs-utils version
568 VERSION="0.1.6"
569
570
571 # Check whether --with-statedir or --without-statedir was given.
572 if test "${with_statedir+set}" = set; then
573   withval="$with_statedir"
574   statedir=$withval
575 else
576   statedir=/var/lib/nfs
577 fi
578
579         
580 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
581 if test "${enable_nfsv3+set}" = set; then
582   enableval="$enable_nfsv3"
583   enable_nfsv3=$enableval
584 else
585   enable_nfsv3=no
586 fi
587
588         if test "$enable_nfsv3" = yes; then
589                 cat >> confdefs.h <<\EOF
590 #define NFS3_SUPPORTED 1
591 EOF
592
593         else
594                 enable_nfsv3=
595         fi
596         
597 # Check whether --enable-kprefix or --disable-kprefix was given.
598 if test "${enable_kprefix+set}" = set; then
599   enableval="$enable_kprefix"
600   test "$enableval" = "yes" && kprefix=k
601 else
602   kprefix=
603 fi
604
605         
606 # Check whether --enable-secure-statd or --disable-secure-statd was given.
607 if test "${enable_secure_statd+set}" = set; then
608   enableval="$enable_secure_statd"
609   test "$enableval" = "yes" && secure_statd=yes
610 else
611   secure_statd=no
612 fi
613
614         if test "$secure_statd" = yes; then
615                 cat >> confdefs.h <<\EOF
616 #define RESTRICTED_STATD 1
617 EOF
618
619         fi
620         
621
622
623 case "${CFLAGS+set} $ac_configure_args" in
624  *" CFLAGS="* );;
625  "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
626 esac
627
628   # Extract the first word of "gcc", so it can be a program name with args.
629 set dummy gcc; ac_word=$2
630 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
631 echo "configure:632: checking for $ac_word" 1>&5
632 if test "${ac_cv_prog_CC+set}" = set; then
633   echo $ac_n "(cached) $ac_c" 1>&6
634 else
635   if test -n "$CC"; then
636   ac_cv_prog_CC="$CC" # Let the user override the test.
637 else
638   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
639   ac_dummy="$PATH"
640   for ac_dir in $ac_dummy; do
641     test -z "$ac_dir" && ac_dir=.
642     if test -f $ac_dir/$ac_word; then
643       ac_cv_prog_CC="gcc"
644       break
645     fi
646   done
647   IFS="$ac_save_ifs"
648 fi
649 fi
650 CC="$ac_cv_prog_CC"
651 if test -n "$CC"; then
652   echo "$ac_t""$CC" 1>&6
653 else
654   echo "$ac_t""no" 1>&6
655 fi
656
657   if test -z "$CC"; then
658     # Extract the first word of "cc", so it can be a program name with args.
659 set dummy cc; ac_word=$2
660 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" 1>&5
662 if test "${ac_cv_prog_CC+set}" = set; then
663   echo $ac_n "(cached) $ac_c" 1>&6
664 else
665   if test -n "$CC"; then
666   ac_cv_prog_CC="$CC" # Let the user override the test.
667 else
668   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
669   ac_prog_rejected=no
670   ac_dummy="$PATH"
671   for ac_dir in $ac_dummy; do
672     test -z "$ac_dir" && ac_dir=.
673     if test -f $ac_dir/$ac_word; then
674       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
675         ac_prog_rejected=yes
676         continue
677       fi
678       ac_cv_prog_CC="cc"
679       break
680     fi
681   done
682   IFS="$ac_save_ifs"
683 if test $ac_prog_rejected = yes; then
684   # We found a bogon in the path, so make sure we never use it.
685   set dummy $ac_cv_prog_CC
686   shift
687   if test $# -gt 0; then
688     # We chose a different compiler from the bogus one.
689     # However, it has the same basename, so the bogon will be chosen
690     # first if we set CC to just the basename; use the full file name.
691     shift
692     set dummy "$ac_dir/$ac_word" "$@"
693     shift
694     ac_cv_prog_CC="$@"
695   fi
696 fi
697 fi
698 fi
699 CC="$ac_cv_prog_CC"
700 if test -n "$CC"; then
701   echo "$ac_t""$CC" 1>&6
702 else
703   echo "$ac_t""no" 1>&6
704 fi
705
706     if test -z "$CC"; then
707       for ac_prog in cl
708 do
709 # Extract the first word of "$ac_prog", so it can be a program name with args.
710 set dummy $ac_prog; ac_word=$2
711 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
712 echo "configure:713: checking for $ac_word" 1>&5
713 if test "${ac_cv_prog_CC+set}" = set; then
714   echo $ac_n "(cached) $ac_c" 1>&6
715 else
716   if test -n "$CC"; then
717   ac_cv_prog_CC="$CC" # Let the user override the test.
718 else
719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
720   ac_dummy="$PATH"
721   for ac_dir in $ac_dummy; do
722     test -z "$ac_dir" && ac_dir=.
723     if test -f $ac_dir/$ac_word; then
724       ac_cv_prog_CC="$ac_prog"
725       break
726     fi
727   done
728   IFS="$ac_save_ifs"
729 fi
730 fi
731 CC="$ac_cv_prog_CC"
732 if test -n "$CC"; then
733   echo "$ac_t""$CC" 1>&6
734 else
735   echo "$ac_t""no" 1>&6
736 fi
737
738 test -n "$CC" && break
739 done
740
741     fi
742   fi
743
744
745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
746
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
749
750 ac_ext=c
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp='$CPP $CPPFLAGS'
753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling=$ac_cv_prog_cc_cross
756
757 cat > conftest.$ac_ext << EOF
758
759 #line 760 "configure"
760 #include "confdefs.h"
761
762 int main(){return(0);}
763 EOF
764 if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
765   ac_cv_prog_cc_works=yes
766   # If we can't run a trivial program, we are probably using a cross compiler.
767   if (./conftest; exit) 2>/dev/null; then
768     ac_cv_prog_cc_cross=no
769   else
770     ac_cv_prog_cc_cross=yes
771   fi
772 else
773   echo "configure: failed program was:" >&5
774   cat conftest.$ac_ext >&5
775   ac_cv_prog_cc_works=no
776 fi
777 rm -fr conftest*
778 ac_ext=c
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp='$CPP $CPPFLAGS'
781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling=$ac_cv_prog_cc_cross
784
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
788 fi
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
793
794 echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" 1>&5
796 if test "${ac_cv_prog_gcc+set}" = set; then
797   echo $ac_n "(cached) $ac_c" 1>&6
798 else
799   cat > conftest.c <<EOF
800 #ifdef __GNUC__
801   yes;
802 #endif
803 EOF
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
805   ac_cv_prog_gcc=yes
806 else
807   ac_cv_prog_gcc=no
808 fi
809 fi
810 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
811
812 if test $ac_cv_prog_gcc = yes; then
813   GCC=yes
814 else
815   GCC=
816 fi
817
818 ac_test_CFLAGS="${CFLAGS+set}"
819 ac_save_CFLAGS="$CFLAGS"
820 CFLAGS=
821 echo $ac_n "checking whether ${CC-cc} accepts -g... $ac_c" 1>&6
822 echo "configure:823: checking whether ${CC-cc} accepts -g" 1>&5
823 if test "${ac_cv_prog_cc_g+set}" = set; then
824   echo $ac_n "(cached) $ac_c" 1>&6
825 else
826   echo 'void f(){}' > conftest.c
827 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
828   ac_cv_prog_cc_g=yes
829 else
830   ac_cv_prog_cc_g=no
831 fi
832 rm -f conftest*
833
834 fi
835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
836 if test "$ac_test_CFLAGS" = set; then
837   CFLAGS="$ac_save_CFLAGS"
838 elif test $ac_cv_prog_cc_g = yes; then
839   if test "$GCC" = yes; then
840     CFLAGS="-g -O2"
841   else
842     CFLAGS="-g"
843   fi
844 else
845   if test "$GCC" = yes; then
846     CFLAGS="-O2"
847   else
848     CFLAGS=
849   fi
850 fi
851
852 for ac_prog in $CCC c++ g++ gpp CC cxx cc++ cl
853 do
854 # Extract the first word of "$ac_prog", so it can be a program name with args.
855 set dummy $ac_prog; ac_word=$2
856 echo $ac_n "checking for $ac_word... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" 1>&5
858 if test "${ac_cv_prog_CXX+set}" = set; then
859   echo $ac_n "(cached) $ac_c" 1>&6
860 else
861   if test -n "$CXX"; then
862   ac_cv_prog_CXX="$CXX" # Let the user override the test.
863 else
864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
865   ac_dummy="$PATH"
866   for ac_dir in $ac_dummy; do
867     test -z "$ac_dir" && ac_dir=.
868     if test -f $ac_dir/$ac_word; then
869       ac_cv_prog_CXX="$ac_prog"
870       break
871     fi
872   done
873   IFS="$ac_save_ifs"
874 fi
875 fi
876 CXX="$ac_cv_prog_CXX"
877 if test -n "$CXX"; then
878   echo "$ac_t""$CXX" 1>&6
879 else
880   echo "$ac_t""no" 1>&6
881 fi
882
883 test -n "$CXX" && break
884 done
885 test -n "$CXX" || CXX="g++"
886
887
888 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works... $ac_c" 1>&6
889 echo "configure:890: checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
890
891 ac_ext=C
892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp='$CXXCPP $CPPFLAGS'
894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling=$ac_cv_prog_cxx_cross
897
898 cat > conftest.$ac_ext << EOF
899
900 #line 901 "configure"
901 #include "confdefs.h"
902
903 int main(){return(0);}
904 EOF
905 if { (eval echo configure:906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
906   ac_cv_prog_cxx_works=yes
907   # If we can't run a trivial program, we are probably using a cross compiler.
908   if (./conftest; exit) 2>/dev/null; then
909     ac_cv_prog_cxx_cross=no
910   else
911     ac_cv_prog_cxx_cross=yes
912   fi
913 else
914   echo "configure: failed program was:" >&5
915   cat conftest.$ac_ext >&5
916   ac_cv_prog_cxx_works=no
917 fi
918 rm -fr conftest*
919 ac_ext=c
920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
921 ac_cpp='$CPP $CPPFLAGS'
922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
924 cross_compiling=$ac_cv_prog_cc_cross
925
926 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
927 if test $ac_cv_prog_cxx_works = no; then
928   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
929 fi
930 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ac_c" 1>&6
931 echo "configure:932: checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
932 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cxx_cross
934
935 echo $ac_n "checking whether we are using GNU C++... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C++" 1>&5
937 if test "${ac_cv_prog_gxx+set}" = set; then
938   echo $ac_n "(cached) $ac_c" 1>&6
939 else
940   cat > conftest.C <<EOF
941 #ifdef __GNUC__
942   yes;
943 #endif
944 EOF
945 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
946   ac_cv_prog_gxx=yes
947 else
948   ac_cv_prog_gxx=no
949 fi
950 fi
951 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
952
953 if test $ac_cv_prog_gxx = yes; then
954   GXX=yes
955 else
956   GXX=
957 fi
958
959 ac_test_CXXFLAGS="${CXXFLAGS+set}"
960 ac_save_CXXFLAGS="$CXXFLAGS"
961 CXXFLAGS=
962 echo $ac_n "checking whether ${CXX-g++} accepts -g... $ac_c" 1>&6
963 echo "configure:964: checking whether ${CXX-g++} accepts -g" 1>&5
964 if test "${ac_cv_prog_cxx_g+set}" = set; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   echo 'void f(){}' > conftest.cc
968 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
969   ac_cv_prog_cxx_g=yes
970 else
971   ac_cv_prog_cxx_g=no
972 fi
973 rm -f conftest*
974
975 fi
976 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
977 if test "$ac_test_CXXFLAGS" = set; then
978   CXXFLAGS="$ac_save_CXXFLAGS"
979 elif test $ac_cv_prog_cxx_g = yes; then
980   if test "$GXX" = yes; then
981     CXXFLAGS="-g -O2"
982   else
983     CXXFLAGS="-g"
984   fi
985 else
986   if test "$GXX" = yes; then
987     CXXFLAGS="-O2"
988   else
989     CXXFLAGS=
990   fi
991 fi
992
993 echo $ac_n "checking how to run the C preprocessor... $ac_c" 1>&6
994 echo "configure:995: checking how to run the C preprocessor" 1>&5
995 # On Suns, sometimes $CPP names a directory.
996 if test -n "$CPP" && test -d "$CPP"; then
997   CPP=
998 fi
999 if test -z "$CPP"; then
1000 if test "${ac_cv_prog_CPP+set}" = set; then
1001   echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003     # This must be in double quotes, not single quotes, because CPP may get
1004   # substituted into the Makefile and "${CC-cc}" will confuse make.
1005   CPP="${CC-cc} -E"
1006   # On the NeXT, cc -E runs the code through the compiler's parser,
1007   # not just through cpp.
1008   cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011 #include <assert.h>
1012 Syntax Error
1013 EOF
1014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1015 { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1017 if test -z "$ac_err"; then
1018   :
1019 else
1020   echo "$ac_err" >&5
1021   echo "configure: failed program was:" >&5
1022   cat conftest.$ac_ext >&5
1023   rm -rf conftest*
1024   CPP="${CC-cc} -E -traditional-cpp"
1025   cat > conftest.$ac_ext <<EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1028 #include <assert.h>
1029 Syntax Error
1030 EOF
1031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1032 { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1034 if test -z "$ac_err"; then
1035   :
1036 else
1037   echo "$ac_err" >&5
1038   echo "configure: failed program was:" >&5
1039   cat conftest.$ac_ext >&5
1040   rm -rf conftest*
1041   CPP="${CC-cc} -nologo -E"
1042   cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <assert.h>
1046 Syntax Error
1047 EOF
1048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1049 { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1051 if test -z "$ac_err"; then
1052   :
1053 else
1054   echo "$ac_err" >&5
1055   echo "configure: failed program was:" >&5
1056   cat conftest.$ac_ext >&5
1057   rm -rf conftest*
1058   CPP=/lib/cpp
1059 fi
1060 rm -f conftest*
1061 fi
1062 rm -f conftest*
1063 fi
1064 rm -f conftest*
1065   ac_cv_prog_CPP="$CPP"
1066 fi
1067   CPP="$ac_cv_prog_CPP"
1068 else
1069   ac_cv_prog_CPP="$CPP"
1070 fi
1071 echo "$ac_t""$CPP" 1>&6
1072
1073 ac_aux_dir=
1074 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1075   if test -f $ac_dir/install-sh; then
1076     ac_aux_dir=$ac_dir
1077     ac_install_sh="$ac_aux_dir/install-sh -c"
1078     break
1079   elif test -f $ac_dir/install.sh; then
1080     ac_aux_dir=$ac_dir
1081     ac_install_sh="$ac_aux_dir/install.sh -c"
1082     break
1083   elif test -f $ac_dir/shtool; then
1084     ac_aux_dir=$ac_dir
1085     ac_install_sh="$ac_aux_dir/shtool install -c"
1086     break
1087   fi
1088 done
1089 if test -z "$ac_aux_dir"; then
1090   { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1091 fi
1092 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1093 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1094 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1095
1096 # Find a good install program.  We prefer a C program (faster),
1097 # so one script is as good as another.  But avoid the broken or
1098 # incompatible versions:
1099 # SysV /etc/install, /usr/sbin/install
1100 # SunOS /usr/etc/install
1101 # IRIX /sbin/install
1102 # AIX /bin/install
1103 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1104 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1105 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1106 # ./install, which can be erroneously created by make from ./install.sh.
1107 echo $ac_n "checking for a BSD compatible install... $ac_c" 1>&6
1108 echo "configure:1109: checking for a BSD compatible install" 1>&5
1109 if test -z "$INSTALL"; then
1110 if test "${ac_cv_path_install+set}" = set; then
1111   echo $ac_n "(cached) $ac_c" 1>&6
1112 else
1113     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1114   for ac_dir in $PATH; do
1115     # Account for people who put trailing slashes in PATH elements.
1116     case "$ac_dir/" in
1117     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1118     *)
1119       # OSF1 and SCO ODT 3.0 have their own names for install.
1120       # Don't use installbsd from OSF since it installs stuff as root
1121       # by default.
1122       for ac_prog in ginstall scoinst install; do
1123         if test -f $ac_dir/$ac_prog; then
1124           if test $ac_prog = install &&
1125             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1126             # AIX install.  It has an incompatible calling convention.
1127             :
1128           elif test $ac_prog = install &&
1129             grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1130             # program-specific install script used by HP pwplus--don't use.
1131             :
1132           else
1133             ac_cv_path_install="$ac_dir/$ac_prog -c"
1134             break 2
1135           fi
1136         fi
1137       done
1138       ;;
1139     esac
1140   done
1141   IFS="$ac_save_IFS"
1142
1143 fi
1144   if test "${ac_cv_path_install+set}" = set; then
1145     INSTALL="$ac_cv_path_install"
1146   else
1147     # As a last resort, use the slow shell script.  We don't cache a
1148     # path for INSTALL within a source directory, because that will
1149     # break other packages using the cache if that directory is
1150     # removed, or if the path is relative.
1151     INSTALL="$ac_install_sh"
1152   fi
1153 fi
1154 echo "$ac_t""$INSTALL" 1>&6
1155
1156 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1157 # It thinks the first close brace ends the variable substitution.
1158 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1159
1160 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1161
1162 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1163
1164 echo $ac_n "checking for ANSI C header files... $ac_c" 1>&6
1165 echo "configure:1166: checking for ANSI C header files" 1>&5
1166 if test "${ac_cv_header_stdc+set}" = set; then
1167   echo $ac_n "(cached) $ac_c" 1>&6
1168 else
1169   cat > conftest.$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1172 #include <stdlib.h>
1173 #include <stdarg.h>
1174 #include <string.h>
1175 #include <float.h>
1176 EOF
1177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1180 if test -z "$ac_err"; then
1181   rm -rf conftest*
1182   ac_cv_header_stdc=yes
1183 else
1184   echo "$ac_err" >&5
1185   echo "configure: failed program was:" >&5
1186   cat conftest.$ac_ext >&5
1187   rm -rf conftest*
1188   ac_cv_header_stdc=no
1189 fi
1190 rm -f conftest*
1191
1192 if test $ac_cv_header_stdc = yes; then
1193   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1194 cat > conftest.$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #include <string.h>
1198 EOF
1199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1200   egrep "memchr" >/dev/null 2>&1; then
1201   :
1202 else
1203   rm -rf conftest*
1204   ac_cv_header_stdc=no
1205 fi
1206 rm -f conftest*
1207
1208 fi
1209
1210 if test $ac_cv_header_stdc = yes; then
1211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1212 cat > conftest.$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1215 #include <stdlib.h>
1216 EOF
1217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218   egrep "free" >/dev/null 2>&1; then
1219   :
1220 else
1221   rm -rf conftest*
1222   ac_cv_header_stdc=no
1223 fi
1224 rm -f conftest*
1225
1226 fi
1227
1228 if test $ac_cv_header_stdc = yes; then
1229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1230 if test "$cross_compiling" = yes; then
1231   :
1232 else
1233   cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <ctype.h>
1237 #if ((' ' & 0x0FF) == 0x020)
1238 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1239 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1240 #else
1241 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1242  || ('j' <= (c) && (c) <= 'r') \
1243  || ('s' <= (c) && (c) <= 'z'))
1244 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1245 #endif
1246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1247 int main () { int i; for (i = 0; i < 256; i++)
1248 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1249 exit (0); }
1250
1251 EOF
1252 if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1253 then
1254   :
1255 else
1256   echo "configure: failed program was:" >&5
1257   cat conftest.$ac_ext >&5
1258   rm -fr conftest*
1259   ac_cv_header_stdc=no
1260 fi
1261 rm -fr conftest*
1262 fi
1263
1264 fi
1265 fi
1266 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1267 if test $ac_cv_header_stdc = yes; then
1268   cat >> confdefs.h <<\EOF
1269 #define STDC_HEADERS 1
1270 EOF
1271
1272 fi
1273
1274 echo $ac_n "checking for GNU libc2... $ac_c" 1>&6
1275 echo "configure:1276: checking for GNU libc2" 1>&5
1276   if test "${knfsd_cv_glibc2+set}" = set; then
1277   echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279   cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282
1283       #include <features.h>
1284       #if !defined(__GLIBC__)
1285       # error Nope
1286       #endif
1287 EOF
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1292   rm -rf conftest*
1293   knfsd_cv_glibc2=yes
1294 else
1295   echo "$ac_err" >&5
1296   echo "configure: failed program was:" >&5
1297   cat conftest.$ac_ext >&5
1298   rm -rf conftest*
1299   knfsd_cv_glibc2=no
1300 fi
1301 rm -f conftest*
1302 fi
1303
1304   echo "$ac_t""$knfsd_cv_glibc2" 1>&6
1305   if test $knfsd_cv_glibc2 = yes; then
1306     CFLAGS="$CFLAGS -D_GNU_SOURCE"
1307     CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1308   fi
1309
1310
1311 echo $ac_n "checking for main in -lsocket... $ac_c" 1>&6
1312 echo "configure:1313: checking for main in -lsocket" 1>&5
1313 if test "${ac_cv_lib_socket_main+set}" = set; then
1314   echo $ac_n "(cached) $ac_c" 1>&6
1315 else
1316   ac_save_LIBS="$LIBS"
1317 LIBS="-lsocket  $LIBS"
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1321
1322 int main() {
1323 main()
1324 ; return 0; }
1325 EOF
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1327   rm -rf conftest*
1328   ac_cv_lib_socket_main=yes
1329 else
1330   echo "configure: failed program was:" >&5
1331   cat conftest.$ac_ext >&5
1332   rm -rf conftest*
1333   ac_cv_lib_socket_main=no
1334 fi
1335 rm -f conftest*
1336 LIBS="$ac_save_LIBS"
1337 fi
1338 echo "$ac_t""$ac_cv_lib_socket_main" 1>&6
1339 if test $ac_cv_lib_socket_main = yes; then
1340   LIBSOCKET="-lnsl"
1341 fi
1342
1343 echo $ac_n "checking for main in -lnsl... $ac_c" 1>&6
1344 echo "configure:1345: checking for main in -lnsl" 1>&5
1345 if test "${ac_cv_lib_nsl_main+set}" = set; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   ac_save_LIBS="$LIBS"
1349 LIBS="-lnsl  $LIBS"
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1353
1354 int main() {
1355 main()
1356 ; return 0; }
1357 EOF
1358 if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1359   rm -rf conftest*
1360   ac_cv_lib_nsl_main=yes
1361 else
1362   echo "configure: failed program was:" >&5
1363   cat conftest.$ac_ext >&5
1364   rm -rf conftest*
1365   ac_cv_lib_nsl_main=no
1366 fi
1367 rm -f conftest*
1368 LIBS="$ac_save_LIBS"
1369 fi
1370 echo "$ac_t""$ac_cv_lib_nsl_main" 1>&6
1371 if test $ac_cv_lib_nsl_main = yes; then
1372   LIBNSL="-lnsl"
1373 fi
1374
1375 echo $ac_n "checking for crypt in -lcrypt... $ac_c" 1>&6
1376 echo "configure:1377: checking for crypt in -lcrypt" 1>&5
1377 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1378   echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380   ac_save_LIBS="$LIBS"
1381 LIBS="-lcrypt  $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error.  */
1386 /* We use char because int might match the return type of a gcc2
1387     builtin and then its argument prototype would still apply.  */
1388 char crypt();
1389
1390 int main() {
1391 crypt()
1392 ; return 0; }
1393 EOF
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395   rm -rf conftest*
1396   ac_cv_lib_crypt_crypt=yes
1397 else
1398   echo "configure: failed program was:" >&5
1399   cat conftest.$ac_ext >&5
1400   rm -rf conftest*
1401   ac_cv_lib_crypt_crypt=no
1402 fi
1403 rm -f conftest*
1404 LIBS="$ac_save_LIBS"
1405 fi
1406 echo "$ac_t""$ac_cv_lib_crypt_crypt" 1>&6
1407 if test $ac_cv_lib_crypt_crypt = yes; then
1408   LIBCRYPT="-lcrypt"
1409 fi
1410
1411 if test "$knfsd_cv_glibc2" = no; then
1412     echo $ac_n "checking for daemon in -lbsd... $ac_c" 1>&6
1413 echo "configure:1414: checking for daemon in -lbsd" 1>&5
1414 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
1415   echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417   ac_save_LIBS="$LIBS"
1418 LIBS="-lbsd  $LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* Override any gcc2 internal prototype to avoid an error.  */
1423 /* We use char because int might match the return type of a gcc2
1424     builtin and then its argument prototype would still apply.  */
1425 char daemon();
1426
1427 int main() {
1428 daemon()
1429 ; return 0; }
1430 EOF
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432   rm -rf conftest*
1433   ac_cv_lib_bsd_daemon=yes
1434 else
1435   echo "configure: failed program was:" >&5
1436   cat conftest.$ac_ext >&5
1437   rm -rf conftest*
1438   ac_cv_lib_bsd_daemon=no
1439 fi
1440 rm -f conftest*
1441 LIBS="$ac_save_LIBS"
1442 fi
1443 echo "$ac_t""$ac_cv_lib_bsd_daemon" 1>&6
1444 if test $ac_cv_lib_bsd_daemon = yes; then
1445   LIBBSD="-lbsd"
1446 fi
1447
1448 fi
1449
1450
1451
1452
1453
1454
1455 for ac_func in innetgr
1456 do
1457 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
1458 echo $ac_n "checking for $ac_func... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_func" 1>&5
1460 if eval "test \"\${$ac_ac_var+set}\" = set"; then
1461   echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463   cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* System header to define __stub macros and hopefully few prototypes,
1467     which can conflict with char $ac_func(); below.  */
1468 #include <assert.h>
1469 /* Override any gcc2 internal prototype to avoid an error.  */
1470 /* We use char because int might match the return type of a gcc2
1471     builtin and then its argument prototype would still apply.  */
1472 char $ac_func();
1473 char (*f)();
1474
1475 int main() {
1476
1477 /* The GNU C library defines this for functions which it implements
1478     to always fail with ENOSYS.  Some functions are actually named
1479     something starting with __ and the normal name is an alias.  */
1480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1481 choke me
1482 #else
1483 f = $ac_func;
1484 #endif
1485
1486 ; return 0; }
1487 EOF
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1489   rm -rf conftest*
1490   eval "$ac_ac_var=yes"
1491 else
1492   echo "configure: failed program was:" >&5
1493   cat conftest.$ac_ext >&5
1494   rm -rf conftest*
1495   eval "$ac_ac_var=no"
1496 fi
1497 rm -f conftest*
1498 fi
1499 echo "$ac_t""`eval echo '${'$ac_ac_var'}'`" 1>&6
1500 if test `eval echo '${'$ac_ac_var'}'` = yes; then
1501   cat >> confdefs.h <<EOF
1502 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
1503 EOF
1504  
1505 fi
1506 done
1507
1508
1509 cat >> confdefs.h <<EOF
1510 #define NFS_STATEDIR "$statedir"
1511 EOF
1512
1513
1514
1515
1516
1517 trap '' 1 2 15
1518 cat > confcache <<\EOF
1519 # This file is a shell script that caches the results of configure
1520 # tests run on this system so they can be shared between configure
1521 # scripts and configure runs.  It is not useful on other systems.
1522 # If it contains results you don't want to keep, you may remove or edit it.
1523 #
1524 # By default, configure uses ./config.cache as the cache file,
1525 # creating it if it does not exist already.  You can give configure
1526 # the --cache-file=FILE option to use a different cache file; that is
1527 # what configure does when it calls configure scripts in
1528 # subdirectories, so they share the cache.
1529 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1530 # config.status only pays attention to the cache file if you give it the
1531 # --recheck option to rerun configure.
1532 #
1533 EOF
1534 # The following way of writing the cache mishandles newlines in values,
1535 # but we know of no workaround that is simple, portable, and efficient.
1536 # So, don't put newlines in cache variables' values.
1537 # Ultrix sh set writes to stderr and can't be redirected directly,
1538 # and sets the high bit in the cache file unless we assign to the vars.
1539 (set) 2>&1 |
1540   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1541   *ac_space=\ *)
1542     # `set' does not quote correctly, so add quotes (double-quote substitution
1543     # turns \\\\ into \\, and sed turns \\ into \).
1544     sed -n \
1545       -e "s/'/'\\\\''/g" \
1546       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1547     ;;
1548   *)
1549     # `set' quotes correctly as required by POSIX, so do not add quotes.
1550     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1551     ;;
1552   esac >> confcache
1553 if cmp -s $cache_file confcache; then
1554   :
1555 else
1556   if test -w $cache_file; then
1557     echo "updating cache $cache_file"
1558     cat confcache > $cache_file
1559   else
1560     echo "not updating unwritable cache $cache_file"
1561   fi
1562 fi
1563 rm -f confcache
1564
1565 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1566
1567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1568 # Let make expand exec_prefix.
1569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1570
1571 # Any assignment to VPATH causes Sun make to only execute
1572 # the first set of double-colon rules, so remove it if not needed.
1573 # If there is a colon in the path, we need to keep it.
1574 if test "x$srcdir" = x.; then
1575   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1576 fi
1577
1578 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1579
1580 DEFS=-DHAVE_CONFIG_H
1581
1582 # Without the "./", some shells look in PATH for config.status.
1583 : ${CONFIG_STATUS=./config.status}
1584
1585 echo creating $CONFIG_STATUS
1586 rm -f $CONFIG_STATUS
1587 cat > $CONFIG_STATUS <<EOF
1588 #! /bin/sh
1589 # Generated automatically by configure.
1590 # Run this file to recreate the current configuration.
1591 # This directory was configured as follows,
1592 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1593 #
1594 # $0 $ac_configure_args
1595 #
1596 # Compiler output produced by configure, useful for debugging
1597 # configure, is in ./config.log if it exists.
1598
1599 # Files that config.status was made for.
1600 config_files="\\
1601     config.mk nfs-utils.spec"
1602 config_headers="\\
1603     support/include/config.h"
1604 config_links="\\
1605     :"
1606
1607 ac_cs_usage="\\
1608 \\\`$CONFIG_STATUS' instantiates files from templates according to the
1609 current configuration.
1610
1611 Usage: $CONFIG_STATUS [OPTIONS] FILE...
1612
1613   --recheck    Update $CONFIG_STATUS by reconfiguring in the same conditions
1614   --version    Print the version of Autoconf and exit
1615   --help       Display this help and exit
1616
1617 Files to instantiate:
1618   Configuration files:
1619 \$config_files
1620   Configuration headers:
1621 \$config_headers
1622   Links to install:
1623 \$config_links
1624
1625 Report bugs to <bug-autoconf@gnu.org>."
1626
1627 ac_cs_version="\\
1628 $CONFIG_STATUS generated by autoconf version 2.14.1.
1629 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by running
1630   $0 $ac_configure_args"
1631
1632 # Root of the tmp file names.  Use pid to allow concurrent executions.
1633 ac_cs_root=cs\$\$
1634 ac_given_srcdir=$srcdir
1635 ac_given_INSTALL="$INSTALL"
1636
1637 for ac_option
1638 do
1639   case "\$ac_option" in
1640   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1641     echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
1642     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1643   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1644     echo "\$ac_cs_version"; exit 0 ;;
1645   -help | --help | --hel | --he | --h)
1646     echo "\$ac_cs_usage"; exit 0 ;;
1647   *) # Find out the files to process.
1648     for ac_file in \$config_files
1649     do
1650       case \$ac_file in
1651         \$ac_option | \$ac_option:* )
1652           CONFIG_FILES="\$CONFIG_FILES \$ac_file"
1653           ac_option=
1654           break ;;
1655       esac
1656     done
1657     test -z "\$ac_option" && continue
1658     for ac_file in \$config_headers
1659     do
1660       case \$ac_file in
1661         \$ac_option | \$ac_option:* )
1662           CONFIG_HEADERS="\$CONFIG_HEADERS \$ac_file"
1663           ac_option=
1664           break ;;
1665       esac
1666     done
1667     test -z "\$ac_option" && continue
1668     for ac_file in \$config_links
1669     do
1670       case \$ac_file in
1671         \$ac_option | \$ac_option:* )
1672           CONFIG_LINKS="\$CONFIG_LINKS \$ac_file"
1673           ac_option=
1674           break ;;
1675       esac
1676     done
1677     test -z "\$ac_option" && continue
1678     echo "$CONFIG_STATUS: invalid argument: \$ac_option"; exit 1
1679    ;;
1680   esac
1681 done
1682
1683 EOF
1684
1685 cat >> $CONFIG_STATUS <<EOF
1686 # If there were arguments, don't assign a default value.
1687 if test \$# = 0; then
1688   : \${CONFIG_FILES="\$config_files"}
1689   : \${CONFIG_HEADERS="\$config_headers"}
1690   : \${CONFIG_LINKS="\$config_links"}
1691 fi
1692
1693 # Remove all the CONFIG_FILES, and trap to remove the temp files.
1694 rm -fr \`echo "\$CONFIG_FILES" | sed "s/:[^ ]*//g"\`
1695 trap 'rm -fr \$ac_cs_root*; exit 1' 1 2 15
1696
1697 EOF
1698
1699
1700 cat >>$CONFIG_STATUS <<EOF
1701 # Protect against being on the right side of a sed subst in config.status.
1702 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
1703  s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' > \$ac_cs_root.subs <<\\CEOF
1704 s%@SHELL@%$SHELL%;t t
1705 s%@CFLAGS@%$CFLAGS%;t t
1706 s%@CPPFLAGS@%$CPPFLAGS%;t t
1707 s%@CXXFLAGS@%$CXXFLAGS%;t t
1708 s%@FFLAGS@%$FFLAGS%;t t
1709 s%@DEFS@%$DEFS%;t t
1710 s%@LDFLAGS@%$LDFLAGS%;t t
1711 s%@LIBS@%$LIBS%;t t
1712 s%@exec_prefix@%$exec_prefix%;t t
1713 s%@prefix@%$prefix%;t t
1714 s%@program_transform_name@%$program_transform_name%;t t
1715 s%@bindir@%$bindir%;t t
1716 s%@sbindir@%$sbindir%;t t
1717 s%@libexecdir@%$libexecdir%;t t
1718 s%@datadir@%$datadir%;t t
1719 s%@sysconfdir@%$sysconfdir%;t t
1720 s%@sharedstatedir@%$sharedstatedir%;t t
1721 s%@localstatedir@%$localstatedir%;t t
1722 s%@libdir@%$libdir%;t t
1723 s%@includedir@%$includedir%;t t
1724 s%@oldincludedir@%$oldincludedir%;t t
1725 s%@infodir@%$infodir%;t t
1726 s%@mandir@%$mandir%;t t
1727 s%@VERSION@%$VERSION%;t t
1728 s%@statedir@%$statedir%;t t
1729 s%@enable_nfsv3@%$enable_nfsv3%;t t
1730 s%@kprefix@%$kprefix%;t t
1731 s%@secure_statd@%$secure_statd%;t t
1732 s%@CC@%$CC%;t t
1733 s%@CXX@%$CXX%;t t
1734 s%@CPP@%$CPP%;t t
1735 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
1736 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
1737 s%@INSTALL_DATA@%$INSTALL_DATA%;t t
1738 s%@LIBSOCKET@%$LIBSOCKET%;t t
1739 s%@LIBNSL@%$LIBNSL%;t t
1740 s%@LIBCRYPT@%$LIBCRYPT%;t t
1741 s%@LIBBSD@%$LIBBSD%;t t
1742 CEOF
1743
1744 EOF
1745
1746 cat >> $CONFIG_STATUS <<\EOF
1747 # Split the substitutions into bite-sized pieces for seds with
1748 # small command number limits, like on Digital OSF/1 and HP-UX.
1749 ac_max_sed_lines=48
1750 ac_sed_frag=1 # Number of current file.
1751 ac_beg=1 # First line for current file.
1752 ac_end=$ac_max_sed_lines # Line after last line for current file.
1753 ac_more_lines=:
1754 ac_sed_cmds=""
1755 while $ac_more_lines; do
1756   if test $ac_beg -gt 1; then
1757     sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs > $ac_cs_root.sfrag
1758   else
1759     sed "${ac_end}q" $ac_cs_root.subs > $ac_cs_root.sfrag
1760   fi
1761   if test ! -s $ac_cs_root.sfrag; then
1762     ac_more_lines=false
1763     rm -f $ac_cs_root.sfrag
1764   else
1765     # The purpose of the label and of the branching condition is to
1766     # speed up the sed processing (if there are no `@' at all, there
1767     # is no need to browse any of the substitutions).
1768     # These are the two extra sed commands mentioned above.
1769     (echo ':t
1770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) > $ac_cs_root.s$ac_sed_frag
1771     if test -z "$ac_sed_cmds"; then
1772       ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag"
1773     else
1774       ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
1775     fi
1776     ac_sed_frag=`expr $ac_sed_frag + 1`
1777     ac_beg=$ac_end
1778     ac_end=`expr $ac_end + $ac_max_sed_lines`
1779   fi
1780 done
1781 if test -z "$ac_sed_cmds"; then
1782   ac_sed_cmds=cat
1783 fi
1784
1785 EOF
1786
1787 cat >> $CONFIG_STATUS <<\EOF
1788 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1789   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1790   case "$ac_file" in
1791   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1792        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1793   *) ac_file_in="${ac_file}.in" ;;
1794   esac
1795
1796   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1797
1798   # Remove last slash and all that follows it.  Not all systems have dirname.
1799   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1800   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1801     # The file is in a subdirectory.
1802     test ! -d "$ac_dir" && mkdir "$ac_dir"
1803     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1804     # A "../" for each directory in $ac_dir_suffix.
1805     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1806   else
1807     ac_dir_suffix= ac_dots=
1808   fi
1809
1810   case "$ac_given_srcdir" in
1811   .)  srcdir=.
1812       if test -z "$ac_dots"; then top_srcdir=.
1813       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1814   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1815   *) # Relative path.
1816     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1817     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1818   esac
1819
1820   case "$ac_given_INSTALL" in
1821   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1822   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1823   esac
1824
1825   echo creating "$ac_file"
1826   rm -f "$ac_file"
1827   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1828   case "$ac_file" in
1829   *[Mm]akefile*) ac_comsub="1i\\
1830 # $configure_input" ;;
1831   *) ac_comsub= ;;
1832   esac
1833
1834 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
1835 # is atomic, and doesn't need trapping.
1836   ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1837 EOF
1838 cat >>$CONFIG_STATUS <<EOF
1839   sed -e "$ac_comsub
1840 $ac_vpsub
1841 $extrasub
1842 EOF
1843 cat >>$CONFIG_STATUS <<\EOF
1844 :t
1845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1846 s%@configure_input@%$configure_input%;t t
1847 s%@srcdir@%$srcdir%;t t
1848 s%@top_srcdir@%$top_srcdir%;t t
1849 s%@INSTALL@%$INSTALL%;t t
1850 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_cs_root.out
1851   mv $ac_cs_root.out $ac_file
1852 fi; done
1853 rm -f $ac_cs_root.s*
1854 EOF
1855 cat >>$CONFIG_STATUS <<\EOF
1856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1858 #
1859 # ac_d sets the value in "#define NAME VALUE" lines.
1860 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1861 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1862 ac_dC='\3'
1863 ac_dD='%g'
1864 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1865 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1866 ac_uB='\([      ]\)%\1#\2define\3'
1867 ac_uC=' '
1868 ac_uD='\4%g'
1869 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1870 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1871 ac_eB='$%\1#\2define\3'
1872 ac_eC=' '
1873 ac_eD='%g'
1874
1875 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1876   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1877   case "$ac_file" in
1878   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1879        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1880   *) ac_file_in="${ac_file}.in" ;;
1881   esac
1882
1883   echo creating $ac_file
1884
1885   rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
1886   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1887   cat $ac_file_inputs > $ac_cs_root.in
1888
1889 EOF
1890
1891 # Transform confdefs.h into a sed script conftest.vals that substitutes
1892 # the proper values into config.h.in to produce config.h.  And first:
1893 # Protect against being on the right side of a sed subst in config.status.
1894 # Protect against being in an unquoted here document in config.status.
1895 rm -f conftest.vals
1896 cat > $ac_cs_root.hdr <<\EOF
1897 s/[\\&%]/\\&/g
1898 s%[\\$`]%\\&%g
1899 t clear
1900 : clear
1901 s%^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
1902 t cleanup
1903 s%^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1904 : cleanup
1905 s%ac_d%ac_u%gp
1906 s%ac_u%ac_e%gp
1907 EOF
1908 # If some macros were called several times there might be several times
1909 # the same #defines, which is useless.  Nevertheless, we may not want to
1910 # sort them, since we want the *last* AC_DEFINE to be honored.
1911 uniq confdefs.h | sed -n -f $ac_cs_root.hdr > conftest.vals
1912 rm -f $ac_cs_root.hdr
1913
1914 # This sed command replaces #undef with comments.  This is necessary, for
1915 # example, in the case of _POSIX_SOURCE, which is predefined and required
1916 # on some systems where configure will not decide to define it.
1917 cat >> conftest.vals <<\EOF
1918 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1919 EOF
1920
1921 # Break up conftest.vals because some shells have a limit on the size
1922 # of here documents, and old seds have small limits too (100 cmds).
1923 rm -f conftest.tail
1924 while :
1925 do
1926   ac_lines=`grep -c . conftest.vals`
1927   # grep -c gives empty output for an empty file on some AIX systems.
1928   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1929   # Write a limited-size here document to $ac_cs_root.frag.
1930   echo '  cat > $ac_cs_root.frag <<CEOF' >> $CONFIG_STATUS
1931   echo '/^#[    ]*u*n*d*e*f*/!b' >> $CONFIG_STATUS
1932   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1933   echo 'CEOF
1934   sed -f $ac_cs_root.frag $ac_cs_root.in > $ac_cs_root.out
1935   rm -f $ac_cs_root.in
1936   mv $ac_cs_root.out $ac_cs_root.in
1937 ' >> $CONFIG_STATUS
1938   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1939   rm -f conftest.vals
1940   mv conftest.tail conftest.vals
1941 done
1942 rm -f conftest.vals
1943
1944 cat >> $CONFIG_STATUS <<\EOF
1945   rm -f $ac_cs_root.frag $ac_cs_root.h
1946   echo "/* $ac_file.  Generated automatically by configure.  */" > $ac_cs_root.h
1947   cat $ac_cs_root.in >> $ac_cs_root.h
1948   rm -f $ac_cs_root.in
1949   if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
1950     echo "$ac_file is unchanged"
1951     rm -f $ac_cs_root.h
1952   else
1953     # Remove last slash and all that follows it.  Not all systems have dirname.
1954       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1955       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1956       # The file is in a subdirectory.
1957       test ! -d "$ac_dir" && mkdir "$ac_dir"
1958     fi
1959     rm -f $ac_file
1960     mv $ac_cs_root.h $ac_file
1961   fi
1962 fi; done
1963 EOF
1964 cat >> $CONFIG_STATUS <<\EOF
1965 srcdir=$ac_given_srcdir
1966
1967 for ac_file in : $CONFIG_LINKS; do if test "x$ac_file" != x:; then
1968   ac_dest=`echo "$ac_file"|sed 's%:.*%%'`
1969   ac_source=`echo "$ac_file"|sed 's%[^:]*:%%'`
1970
1971   echo "linking $srcdir/$ac_source to $ac_dest"
1972
1973   if test ! -r $srcdir/$ac_source; then
1974     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1975   fi
1976   rm -f $ac_dest
1977
1978   # Make relative symlinks.
1979   # Remove last slash and all that follows it.  Not all systems have dirname.
1980   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1981   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1982     # The dest file is in a subdirectory.
1983     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1984     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1985     # A "../" for each directory in $ac_dest_dir_suffix.
1986     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1987   else
1988     ac_dest_dir_suffix= ac_dots=
1989   fi
1990
1991   case "$srcdir" in
1992   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1993   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1994   esac
1995
1996   # Make a symlink if possible; otherwise try a hard link.
1997   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1998      ln $srcdir/$ac_source $ac_dest; then :
1999   else
2000     { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2001   fi
2002 fi; done
2003 EOF
2004
2005 cat >> $CONFIG_STATUS <<EOF
2006
2007 EOF
2008 cat >> $CONFIG_STATUS <<\EOF
2009
2010 exit 0
2011 EOF
2012 chmod +x $CONFIG_STATUS
2013 rm -fr confdefs* $ac_clean_files
2014 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
2015