]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/opie/configure
This commit was generated by cvs2svn to compensate for changes in r92444,
[FreeBSD/FreeBSD.git] / contrib / opie / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-access-file=FILENAME
16                           Enable the OPIE access file FILENAME"
17 ac_help="$ac_help
18   --enable-server-md4     Use MD4 instead of MD5 for the server"
19 ac_help="$ac_help
20   --disable-user-locking  Disable user locking
21   --enable-user-locking[=DIR]
22                           Put user lock files in DIR [/etc/opielocks]"
23 ac_help="$ac_help
24   --enable-retype         Ask users to re-type their secret pass phrases"
25 ac_help="$ac_help
26   --enable-su-star-check  Refuse to switch to disabled accounts"
27 ac_help="$ac_help
28   --disable-new-prompts   Use more compatible (but less informative) prompts"
29 ac_help="$ac_help
30   --enable-insecure-override
31                           Allow users to override insecure checks"
32 ac_help="$ac_help
33   --enable-anonymous-ftp  Enable anonymous FTP support"
34 ac_help="$ac_help
35   --disable-utmp          Disable utmp logging"
36 ac_help="$ac_help
37   --disable-wtmp          Disable wtmp logging"
38
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
42 build=NONE
43 cache_file=./config.cache
44 exec_prefix=NONE
45 host=NONE
46 no_create=
47 nonopt=NONE
48 no_recursion=
49 prefix=NONE
50 program_prefix=NONE
51 program_suffix=NONE
52 program_transform_name=s,x,x,
53 silent=
54 site=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
72
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 # Maximum number of lines to put in a shell here document.
77 ac_max_here_lines=12
78
79 ac_prev=
80 for ac_option
81 do
82
83   # If the previous option needs an argument, assign it.
84   if test -n "$ac_prev"; then
85     eval "$ac_prev=\$ac_option"
86     ac_prev=
87     continue
88   fi
89
90   case "$ac_option" in
91   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92   *) ac_optarg= ;;
93   esac
94
95   # Accept the important Cygnus configure options, so we can diagnose typos.
96
97   case "$ac_option" in
98
99   -bindir | --bindir | --bindi | --bind | --bin | --bi)
100     ac_prev=bindir ;;
101   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102     bindir="$ac_optarg" ;;
103
104   -build | --build | --buil | --bui | --bu)
105     ac_prev=build ;;
106   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107     build="$ac_optarg" ;;
108
109   -cache-file | --cache-file | --cache-fil | --cache-fi \
110   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111     ac_prev=cache_file ;;
112   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114     cache_file="$ac_optarg" ;;
115
116   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117     ac_prev=datadir ;;
118   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119   | --da=*)
120     datadir="$ac_optarg" ;;
121
122   -disable-* | --disable-*)
123     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124     # Reject names that are not valid shell variable names.
125     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127     fi
128     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129     eval "enable_${ac_feature}=no" ;;
130
131   -enable-* | --enable-*)
132     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133     # Reject names that are not valid shell variable names.
134     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136     fi
137     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138     case "$ac_option" in
139       *=*) ;;
140       *) ac_optarg=yes ;;
141     esac
142     eval "enable_${ac_feature}='$ac_optarg'" ;;
143
144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146   | --exec | --exe | --ex)
147     ac_prev=exec_prefix ;;
148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150   | --exec=* | --exe=* | --ex=*)
151     exec_prefix="$ac_optarg" ;;
152
153   -gas | --gas | --ga | --g)
154     # Obsolete; use --with-gas.
155     with_gas=yes ;;
156
157   -help | --help | --hel | --he)
158     # Omit some internal or obsolete options to make the list less imposing.
159     # This message is too long to be a string in the A/UX 3.1 sh.
160     cat << EOF
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
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 Directory and file names:
170   --prefix=PREFIX         install architecture-independent files in PREFIX
171                           [$ac_default_prefix]
172   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
173                           [same as prefix]
174   --bindir=DIR            user executables in DIR [EPREFIX/bin]
175   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
176   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
177   --datadir=DIR           read-only architecture-independent data in DIR
178                           [PREFIX/share]
179   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
180   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
181                           [PREFIX/com]
182   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
183   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
184   --includedir=DIR        C header files in DIR [PREFIX/include]
185   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
186   --infodir=DIR           info documentation in DIR [PREFIX/info]
187   --mandir=DIR            man documentation in DIR [PREFIX/man]
188   --srcdir=DIR            find the sources in DIR [configure dir or ..]
189   --program-prefix=PREFIX prepend PREFIX to installed program names
190   --program-suffix=SUFFIX append SUFFIX to installed program names
191   --program-transform-name=PROGRAM
192                           run sed PROGRAM on installed program names
193 EOF
194     cat << EOF
195 Host type:
196   --build=BUILD           configure for building on BUILD [BUILD=HOST]
197   --host=HOST             configure for HOST [guessed]
198   --target=TARGET         configure for TARGET [TARGET=HOST]
199 Features and packages:
200   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
201   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
202   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
203   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
204   --x-includes=DIR        X include files are in DIR
205   --x-libraries=DIR       X library files are in DIR
206 EOF
207     if test -n "$ac_help"; then
208       echo "--enable and --with options recognized:$ac_help"
209     fi
210     exit 0 ;;
211
212   -host | --host | --hos | --ho)
213     ac_prev=host ;;
214   -host=* | --host=* | --hos=* | --ho=*)
215     host="$ac_optarg" ;;
216
217   -includedir | --includedir | --includedi | --included | --include \
218   | --includ | --inclu | --incl | --inc)
219     ac_prev=includedir ;;
220   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221   | --includ=* | --inclu=* | --incl=* | --inc=*)
222     includedir="$ac_optarg" ;;
223
224   -infodir | --infodir | --infodi | --infod | --info | --inf)
225     ac_prev=infodir ;;
226   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227     infodir="$ac_optarg" ;;
228
229   -libdir | --libdir | --libdi | --libd)
230     ac_prev=libdir ;;
231   -libdir=* | --libdir=* | --libdi=* | --libd=*)
232     libdir="$ac_optarg" ;;
233
234   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235   | --libexe | --libex | --libe)
236     ac_prev=libexecdir ;;
237   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238   | --libexe=* | --libex=* | --libe=*)
239     libexecdir="$ac_optarg" ;;
240
241   -localstatedir | --localstatedir | --localstatedi | --localstated \
242   | --localstate | --localstat | --localsta | --localst \
243   | --locals | --local | --loca | --loc | --lo)
244     ac_prev=localstatedir ;;
245   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248     localstatedir="$ac_optarg" ;;
249
250   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
251     ac_prev=mandir ;;
252   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253     mandir="$ac_optarg" ;;
254
255   -nfp | --nfp | --nf)
256     # Obsolete; use --without-fp.
257     with_fp=no ;;
258
259   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260   | --no-cr | --no-c)
261     no_create=yes ;;
262
263   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
265     no_recursion=yes ;;
266
267   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269   | --oldin | --oldi | --old | --ol | --o)
270     ac_prev=oldincludedir ;;
271   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274     oldincludedir="$ac_optarg" ;;
275
276   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
277     ac_prev=prefix ;;
278   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279     prefix="$ac_optarg" ;;
280
281   -program-prefix | --program-prefix | --program-prefi | --program-pref \
282   | --program-pre | --program-pr | --program-p)
283     ac_prev=program_prefix ;;
284   -program-prefix=* | --program-prefix=* | --program-prefi=* \
285   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286     program_prefix="$ac_optarg" ;;
287
288   -program-suffix | --program-suffix | --program-suffi | --program-suff \
289   | --program-suf | --program-su | --program-s)
290     ac_prev=program_suffix ;;
291   -program-suffix=* | --program-suffix=* | --program-suffi=* \
292   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293     program_suffix="$ac_optarg" ;;
294
295   -program-transform-name | --program-transform-name \
296   | --program-transform-nam | --program-transform-na \
297   | --program-transform-n | --program-transform- \
298   | --program-transform | --program-transfor \
299   | --program-transfo | --program-transf \
300   | --program-trans | --program-tran \
301   | --progr-tra | --program-tr | --program-t)
302     ac_prev=program_transform_name ;;
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     program_transform_name="$ac_optarg" ;;
311
312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313   | -silent | --silent | --silen | --sile | --sil)
314     silent=yes ;;
315
316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
317     ac_prev=sbindir ;;
318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
319   | --sbi=* | --sb=*)
320     sbindir="$ac_optarg" ;;
321
322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324   | --sharedst | --shareds | --shared | --share | --shar \
325   | --sha | --sh)
326     ac_prev=sharedstatedir ;;
327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
330   | --sha=* | --sh=*)
331     sharedstatedir="$ac_optarg" ;;
332
333   -site | --site | --sit)
334     ac_prev=site ;;
335   -site=* | --site=* | --sit=*)
336     site="$ac_optarg" ;;
337
338   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
339     ac_prev=srcdir ;;
340   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341     srcdir="$ac_optarg" ;;
342
343   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344   | --syscon | --sysco | --sysc | --sys | --sy)
345     ac_prev=sysconfdir ;;
346   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348     sysconfdir="$ac_optarg" ;;
349
350   -target | --target | --targe | --targ | --tar | --ta | --t)
351     ac_prev=target ;;
352   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353     target="$ac_optarg" ;;
354
355   -v | -verbose | --verbose | --verbos | --verbo | --verb)
356     verbose=yes ;;
357
358   -version | --version | --versio | --versi | --vers)
359     echo "configure generated by autoconf version 2.12"
360     exit 0 ;;
361
362   -with-* | --with-*)
363     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364     # Reject names that are not valid shell variable names.
365     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367     fi
368     ac_package=`echo $ac_package| sed 's/-/_/g'`
369     case "$ac_option" in
370       *=*) ;;
371       *) ac_optarg=yes ;;
372     esac
373     eval "with_${ac_package}='$ac_optarg'" ;;
374
375   -without-* | --without-*)
376     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377     # Reject names that are not valid shell variable names.
378     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380     fi
381     ac_package=`echo $ac_package| sed 's/-/_/g'`
382     eval "with_${ac_package}=no" ;;
383
384   --x)
385     # Obsolete; use --with-x.
386     with_x=yes ;;
387
388   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389   | --x-incl | --x-inc | --x-in | --x-i)
390     ac_prev=x_includes ;;
391   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393     x_includes="$ac_optarg" ;;
394
395   -x-libraries | --x-libraries | --x-librarie | --x-librari \
396   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397     ac_prev=x_libraries ;;
398   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400     x_libraries="$ac_optarg" ;;
401
402   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403     ;;
404
405   *)
406     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407       echo "configure: warning: $ac_option: invalid host type" 1>&2
408     fi
409     if test "x$nonopt" != xNONE; then
410       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411     fi
412     nonopt="$ac_option"
413     ;;
414
415   esac
416 done
417
418 if test -n "$ac_prev"; then
419   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 fi
421
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423
424 # File descriptor usage:
425 # 0 standard input
426 # 1 file creation
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
433   exec 6>/dev/null
434 else
435   exec 6>&1
436 fi
437 exec 5>./config.log
438
439 echo "\
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
442 " 1>&5
443
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
446 ac_configure_args=
447 for ac_arg
448 do
449   case "$ac_arg" in
450   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451   | --no-cr | --no-c) ;;
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
457   esac
458 done
459
460 # NLS nuisances.
461 # Only set these to C if already set.  These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
469
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 echo > confdefs.h
474
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=README
478
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481   ac_srcdir_defaulted=yes
482   # Try the directory containing this script, then its parent.
483   ac_prog=$0
484   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
486   srcdir=$ac_confdir
487   if test ! -r $srcdir/$ac_unique_file; then
488     srcdir=..
489   fi
490 else
491   ac_srcdir_defaulted=no
492 fi
493 if test ! -r $srcdir/$ac_unique_file; then
494   if test "$ac_srcdir_defaulted" = yes; then
495     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496   else
497     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498   fi
499 fi
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504   if test "x$prefix" != xNONE; then
505     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
506   else
507     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508   fi
509 fi
510 for ac_site_file in $CONFIG_SITE; do
511   if test -r "$ac_site_file"; then
512     echo "loading site script $ac_site_file"
513     . "$ac_site_file"
514   fi
515 done
516
517 if test -r "$cache_file"; then
518   echo "loading cache $cache_file"
519   . $cache_file
520 else
521   echo "creating cache $cache_file"
522   > $cache_file
523 fi
524
525 ac_ext=c
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
531
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535     ac_n= ac_c='
536 ' ac_t='        '
537   else
538     ac_n=-n ac_c= ac_t=
539   fi
540 else
541   ac_n= ac_c='\c' ac_t=
542 fi
543
544
545
546 # Check whether --enable-access-file or --disable-access-file was given.
547 if test "${enable_access_file+set}" = set; then
548   enableval="$enable_access_file"
549   cat >> confdefs.h <<EOF
550 #define PATH_ACCESS_FILE "$enable_access_file"
551 EOF
552  echo "Using the access file in $enable_access_file -- don't say we didn't warn you!"
553 fi
554
555 ACCESS_FILE="$enable_access_file"
556
557 # Check whether --enable-server-md4 or --disable-server-md4 was given.
558 if test "${enable_server_md4+set}" = set; then
559   enableval="$enable_server_md4"
560   cat >> confdefs.h <<\EOF
561 #define MDX 4
562 EOF
563
564 else
565   cat >> confdefs.h <<\EOF
566 #define MDX 5
567 EOF
568
569 fi
570
571
572 # Check whether --enable-user-locking or --disable-user-locking was given.
573 if test "${enable_user_locking+set}" = set; then
574   enableval="$enable_user_locking"
575   :
576 fi
577
578 if test "$enable_user_locking" != no;
579 then
580   if test -z "$enable_user_locking"
581   then
582     cat >> confdefs.h <<\EOF
583 #define OPIE_LOCK_DIR "/etc/opielocks"
584 EOF
585
586     LOCK_DIR="/etc/opielocks"
587   else
588     cat >> confdefs.h <<EOF
589 #define OPIE_LOCK_DIR "$enable_user_locking"
590 EOF
591
592     LOCK_DIR="$enable_user_locking"
593   fi
594 fi
595
596
597 # Check whether --enable-retype or --disable-retype was given.
598 if test "${enable_retype+set}" = set; then
599   enableval="$enable_retype"
600   cat >> confdefs.h <<\EOF
601 #define RETYPE 1
602 EOF
603
604 fi
605
606 # Check whether --enable-su-star-check or --disable-su-star-check was given.
607 if test "${enable_su_star_check+set}" = set; then
608   enableval="$enable_su_star_check"
609   cat >> confdefs.h <<\EOF
610 #define SU_STAR_CHECK 1
611 EOF
612
613 fi
614
615 # Check whether --enable-new-prompts or --disable-new-prompts was given.
616 if test "${enable_new_prompts+set}" = set; then
617   enableval="$enable_new_prompts"
618   :
619 else
620   cat >> confdefs.h <<\EOF
621 #define NEW_PROMPTS 1
622 EOF
623
624 fi
625
626 # Check whether --enable-insecure-override or --disable-insecure-override was given.
627 if test "${enable_insecure_override+set}" = set; then
628   enableval="$enable_insecure_override"
629   cat >> confdefs.h <<\EOF
630 #define INSECURE_OVERRIDE 1
631 EOF
632
633 fi
634
635 # Check whether --enable-anonymous-ftp or --disable-anonymous-ftp was given.
636 if test "${enable_anonymous_ftp+set}" = set; then
637   enableval="$enable_anonymous_ftp"
638   cat >> confdefs.h <<\EOF
639 #define DOANONYMOUS 1
640 EOF
641  echo "Enabling anonymous FTP support in ftp -- don't say we didn't warn you!"
642 fi
643
644 # Check whether --enable-utmp or --disable-utmp was given.
645 if test "${enable_utmp+set}" = set; then
646   enableval="$enable_utmp"
647   cat >> confdefs.h <<\EOF
648 #define DISABLE_UTMP 1
649 EOF
650  echo "Disabling utmp logging"
651 fi
652
653 # Check whether --enable-wtmp or --disable-wtmp was given.
654 if test "${enable_wtmp+set}" = set; then
655   enableval="$enable_wtmp"
656   cat >> confdefs.h <<\EOF
657 #define DISABLE_UTMP 1
658 EOF
659  echo "Disabling wtmp logging"
660 fi
661
662
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668   echo $ac_n "(cached) $ac_c" 1>&6
669 else
670   if test -n "$CC"; then
671   ac_cv_prog_CC="$CC" # Let the user override the test.
672 else
673   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
674   for ac_dir in $PATH; do
675     test -z "$ac_dir" && ac_dir=.
676     if test -f $ac_dir/$ac_word; then
677       ac_cv_prog_CC="gcc"
678       break
679     fi
680   done
681   IFS="$ac_save_ifs"
682 fi
683 fi
684 CC="$ac_cv_prog_CC"
685 if test -n "$CC"; then
686   echo "$ac_t""$CC" 1>&6
687 else
688   echo "$ac_t""no" 1>&6
689 fi
690
691 if test -z "$CC"; then
692   # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697   echo $ac_n "(cached) $ac_c" 1>&6
698 else
699   if test -n "$CC"; then
700   ac_cv_prog_CC="$CC" # Let the user override the test.
701 else
702   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
703   ac_prog_rejected=no
704   for ac_dir in $PATH; do
705     test -z "$ac_dir" && ac_dir=.
706     if test -f $ac_dir/$ac_word; then
707       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
708         ac_prog_rejected=yes
709         continue
710       fi
711       ac_cv_prog_CC="cc"
712       break
713     fi
714   done
715   IFS="$ac_save_ifs"
716 if test $ac_prog_rejected = yes; then
717   # We found a bogon in the path, so make sure we never use it.
718   set dummy $ac_cv_prog_CC
719   shift
720   if test $# -gt 0; then
721     # We chose a different compiler from the bogus one.
722     # However, it has the same basename, so the bogon will be chosen
723     # first if we set CC to just the basename; use the full file name.
724     shift
725     set dummy "$ac_dir/$ac_word" "$@"
726     shift
727     ac_cv_prog_CC="$@"
728   fi
729 fi
730 fi
731 fi
732 CC="$ac_cv_prog_CC"
733 if test -n "$CC"; then
734   echo "$ac_t""$CC" 1>&6
735 else
736   echo "$ac_t""no" 1>&6
737 fi
738
739   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 fi
741
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744
745 ac_ext=c
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
751
752 cat > conftest.$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
755 main(){return(0);}
756 EOF
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
758   ac_cv_prog_cc_works=yes
759   # If we can't run a trivial program, we are probably using a cross compiler.
760   if (./conftest; exit) 2>/dev/null; then
761     ac_cv_prog_cc_cross=no
762   else
763     ac_cv_prog_cc_cross=yes
764   fi
765 else
766   echo "configure: failed program was:" >&5
767   cat conftest.$ac_ext >&5
768   ac_cv_prog_cc_works=no
769 fi
770 rm -fr conftest*
771
772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
773 if test $ac_cv_prog_cc_works = no; then
774   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
775 fi
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
779 cross_compiling=$ac_cv_prog_cc_cross
780
781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
782 echo "configure:783: checking whether we are using GNU C" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
784   echo $ac_n "(cached) $ac_c" 1>&6
785 else
786   cat > conftest.c <<EOF
787 #ifdef __GNUC__
788   yes;
789 #endif
790 EOF
791 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
792   ac_cv_prog_gcc=yes
793 else
794   ac_cv_prog_gcc=no
795 fi
796 fi
797
798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
799
800 if test $ac_cv_prog_gcc = yes; then
801   GCC=yes
802   ac_test_CFLAGS="${CFLAGS+set}"
803   ac_save_CFLAGS="$CFLAGS"
804   CFLAGS=
805   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808   echo $ac_n "(cached) $ac_c" 1>&6
809 else
810   echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812   ac_cv_prog_cc_g=yes
813 else
814   ac_cv_prog_cc_g=no
815 fi
816 rm -f conftest*
817
818 fi
819
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821   if test "$ac_test_CFLAGS" = set; then
822     CFLAGS="$ac_save_CFLAGS"
823   elif test $ac_cv_prog_cc_g = yes; then
824     CFLAGS="-g -O2"
825   else
826     CFLAGS="-O2"
827   fi
828 else
829   GCC=
830   test "${CFLAGS+set}" = set || CFLAGS="-g"
831 fi
832
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
837   CPP=
838 fi
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841   echo $ac_n "(cached) $ac_c" 1>&6
842 else
843     # This must be in double quotes, not single quotes, because CPP may get
844   # substituted into the Makefile and "${CC-cc}" will confuse make.
845   CPP="${CC-cc} -E"
846   # On the NeXT, cc -E runs the code through the compiler's parser,
847   # not just through cpp.
848   cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851 #include <assert.h>
852 Syntax Error
853 EOF
854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err=`grep -v '^ *+' conftest.out`
857 if test -z "$ac_err"; then
858   :
859 else
860   echo "$ac_err" >&5
861   echo "configure: failed program was:" >&5
862   cat conftest.$ac_ext >&5
863   rm -rf conftest*
864   CPP="${CC-cc} -E -traditional-cpp"
865   cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
868 #include <assert.h>
869 Syntax Error
870 EOF
871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
875   :
876 else
877   echo "$ac_err" >&5
878   echo "configure: failed program was:" >&5
879   cat conftest.$ac_ext >&5
880   rm -rf conftest*
881   CPP=/lib/cpp
882 fi
883 rm -f conftest*
884 fi
885 rm -f conftest*
886   ac_cv_prog_CPP="$CPP"
887 fi
888   CPP="$ac_cv_prog_CPP"
889 else
890   ac_cv_prog_CPP="$CPP"
891 fi
892 echo "$ac_t""$CPP" 1>&6
893
894 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
895 echo "configure:896: checking whether ln -s works" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
897   echo $ac_n "(cached) $ac_c" 1>&6
898 else
899   rm -f conftestdata
900 if ln -s X conftestdata 2>/dev/null
901 then
902   rm -f conftestdata
903   ac_cv_prog_LN_S="ln -s"
904 else
905   ac_cv_prog_LN_S=ln
906 fi
907 fi
908 LN_S="$ac_cv_prog_LN_S"
909 if test "$ac_cv_prog_LN_S" = "ln -s"; then
910   echo "$ac_t""yes" 1>&6
911 else
912   echo "$ac_t""no" 1>&6
913 fi
914
915 # Extract the first word of "ranlib", so it can be a program name with args.
916 set dummy ranlib; ac_word=$2
917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918 echo "configure:919: checking for $ac_word" >&5
919 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
920   echo $ac_n "(cached) $ac_c" 1>&6
921 else
922   if test -n "$RANLIB"; then
923   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
924 else
925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
926   for ac_dir in $PATH; do
927     test -z "$ac_dir" && ac_dir=.
928     if test -f $ac_dir/$ac_word; then
929       ac_cv_prog_RANLIB="ranlib"
930       break
931     fi
932   done
933   IFS="$ac_save_ifs"
934   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
935 fi
936 fi
937 RANLIB="$ac_cv_prog_RANLIB"
938 if test -n "$RANLIB"; then
939   echo "$ac_t""$RANLIB" 1>&6
940 else
941   echo "$ac_t""no" 1>&6
942 fi
943
944 for ac_prog in 'bison -y' byacc
945 do
946 # Extract the first word of "$ac_prog", so it can be a program name with args.
947 set dummy $ac_prog; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
951   echo $ac_n "(cached) $ac_c" 1>&6
952 else
953   if test -n "$YACC"; then
954   ac_cv_prog_YACC="$YACC" # Let the user override the test.
955 else
956   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
957   for ac_dir in $PATH; do
958     test -z "$ac_dir" && ac_dir=.
959     if test -f $ac_dir/$ac_word; then
960       ac_cv_prog_YACC="$ac_prog"
961       break
962     fi
963   done
964   IFS="$ac_save_ifs"
965 fi
966 fi
967 YACC="$ac_cv_prog_YACC"
968 if test -n "$YACC"; then
969   echo "$ac_t""$YACC" 1>&6
970 else
971   echo "$ac_t""no" 1>&6
972 fi
973
974 test -n "$YACC" && break
975 done
976 test -n "$YACC" || YACC="yacc"
977
978
979 echo $ac_n "checking for AIX""... $ac_c" 1>&6
980 echo "configure:981: checking for AIX" >&5
981 cat > conftest.$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
984 #ifdef _AIX
985   yes
986 #endif
987
988 EOF
989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
990   egrep "yes" >/dev/null 2>&1; then
991   rm -rf conftest*
992   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
993 #define _ALL_SOURCE 1
994 EOF
995
996 else
997   rm -rf conftest*
998   echo "$ac_t""no" 1>&6
999 fi
1000 rm -f conftest*
1001
1002
1003 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1004 echo "configure:1005: checking for POSIXized ISC" >&5
1005 if test -d /etc/conf/kconfig.d &&
1006   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1007 then
1008   echo "$ac_t""yes" 1>&6
1009   ISC=yes # If later tests want to check for ISC.
1010   cat >> confdefs.h <<\EOF
1011 #define _POSIX_SOURCE 1
1012 EOF
1013
1014   if test "$GCC" = yes; then
1015     CC="$CC -posix"
1016   else
1017     CC="$CC -Xp"
1018   fi
1019 else
1020   echo "$ac_t""no" 1>&6
1021   ISC=
1022 fi
1023
1024 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1025 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1026 echo "configure:1027: checking for minix/config.h" >&5
1027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1028   echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030   cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1033 #include <minix/config.h>
1034 EOF
1035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1036 { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1037 ac_err=`grep -v '^ *+' conftest.out`
1038 if test -z "$ac_err"; then
1039   rm -rf conftest*
1040   eval "ac_cv_header_$ac_safe=yes"
1041 else
1042   echo "$ac_err" >&5
1043   echo "configure: failed program was:" >&5
1044   cat conftest.$ac_ext >&5
1045   rm -rf conftest*
1046   eval "ac_cv_header_$ac_safe=no"
1047 fi
1048 rm -f conftest*
1049 fi
1050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1051   echo "$ac_t""yes" 1>&6
1052   MINIX=yes
1053 else
1054   echo "$ac_t""no" 1>&6
1055 MINIX=
1056 fi
1057
1058 if test "$MINIX" = yes; then
1059   cat >> confdefs.h <<\EOF
1060 #define _POSIX_SOURCE 1
1061 EOF
1062
1063   cat >> confdefs.h <<\EOF
1064 #define _POSIX_1_SOURCE 2
1065 EOF
1066
1067   cat >> confdefs.h <<\EOF
1068 #define _MINIX 1
1069 EOF
1070
1071 fi
1072
1073
1074
1075 # Extract the first word of "chown", so it can be a program name with args.
1076 set dummy chown; ac_word=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_path_CHOWN'+set}'`\" = set"; then
1080   echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082   case "$CHOWN" in
1083   /*)
1084   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
1085   ;;
1086   *)
1087   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1088   for ac_dir in /usr/bin /bin /usr/sbin /sbin /usr/etc /etc$ac_dummy; do
1089     test -z "$ac_dir" && ac_dir=.
1090     if test -f $ac_dir/$ac_word; then
1091       ac_cv_path_CHOWN="$ac_dir/$ac_word"
1092       break
1093     fi
1094   done
1095   IFS="$ac_save_ifs"
1096   test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/bin/chown"
1097   ;;
1098 esac
1099 fi
1100 CHOWN="$ac_cv_path_CHOWN"
1101 if test -n "$CHOWN"; then
1102   echo "$ac_t""$CHOWN" 1>&6
1103 else
1104   echo "$ac_t""no" 1>&6
1105 fi
1106
1107
1108 # Extract the first word of "su", so it can be a program name with args.
1109 set dummy su; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_path_SU'+set}'`\" = set"; then
1113   echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115   case "$SU" in
1116   /*)
1117   ac_cv_path_SU="$SU" # Let the user override the test with a path.
1118   ;;
1119   *)
1120   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1121   for ac_dir in /usr/bin /bin$ac_dummy; do
1122     test -z "$ac_dir" && ac_dir=.
1123     if test -f $ac_dir/$ac_word; then
1124       ac_cv_path_SU="$ac_dir/$ac_word"
1125       break
1126     fi
1127   done
1128   IFS="$ac_save_ifs"
1129   test -z "$ac_cv_path_SU" && ac_cv_path_SU="/bin/su"
1130   ;;
1131 esac
1132 fi
1133 SU="$ac_cv_path_SU"
1134 if test -n "$SU"; then
1135   echo "$ac_t""$SU" 1>&6
1136 else
1137   echo "$ac_t""no" 1>&6
1138 fi
1139
1140 # Extract the first word of "su", so it can be a program name with args.
1141 set dummy su; ac_word=$2
1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1144: checking for $ac_word" >&5
1144 if eval "test \"`echo '$''{'ac_cv_path_ALT_SU'+set}'`\" = set"; then
1145   echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1147   case "$ALT_SU" in
1148   /*)
1149   ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a path.
1150   ;;
1151   *)
1152   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1153   for ac_dir in /usr/sbin /sbin$ac_dummy; do
1154     test -z "$ac_dir" && ac_dir=.
1155     if test -f $ac_dir/$ac_word; then
1156       ac_cv_path_ALT_SU="$ac_dir/$ac_word"
1157       break
1158     fi
1159   done
1160   IFS="$ac_save_ifs"
1161   ;;
1162 esac
1163 fi
1164 ALT_SU="$ac_cv_path_ALT_SU"
1165 if test -n "$ALT_SU"; then
1166   echo "$ac_t""$ALT_SU" 1>&6
1167 else
1168   echo "$ac_t""no" 1>&6
1169 fi
1170
1171
1172 # Extract the first word of "scheme", so it can be a program name with args.
1173 set dummy scheme; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_path_SCHEME'+set}'`\" = set"; then
1177   echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179   case "$SCHEME" in
1180   /*)
1181   ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a path.
1182   ;;
1183   *)
1184   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1185   for ac_dir in /usr/lib/iaf/scheme$ac_dummy; do
1186     test -z "$ac_dir" && ac_dir=.
1187     if test -f $ac_dir/$ac_word; then
1188       ac_cv_path_SCHEME="$ac_dir/$ac_word"
1189       break
1190     fi
1191   done
1192   IFS="$ac_save_ifs"
1193   ;;
1194 esac
1195 fi
1196 SCHEME="$ac_cv_path_SCHEME"
1197 if test -n "$SCHEME"; then
1198   echo "$ac_t""$SCHEME" 1>&6
1199 else
1200   echo "$ac_t""no" 1>&6
1201 fi
1202
1203 # Extract the first word of "login", so it can be a program name with args.
1204 set dummy login; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_path_LOGIN'+set}'`\" = set"; then
1208   echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210   case "$LOGIN" in
1211   /*)
1212   ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a path.
1213   ;;
1214   *)
1215   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1216   for ac_dir in /usr/bin /bin$ac_dummy; do
1217     test -z "$ac_dir" && ac_dir=.
1218     if test -f $ac_dir/$ac_word; then
1219       ac_cv_path_LOGIN="$ac_dir/$ac_word"
1220       break
1221     fi
1222   done
1223   IFS="$ac_save_ifs"
1224   test -z "$ac_cv_path_LOGIN" && ac_cv_path_LOGIN="/bin/login"
1225   ;;
1226 esac
1227 fi
1228 LOGIN="$ac_cv_path_LOGIN"
1229 if test -n "$LOGIN"; then
1230   echo "$ac_t""$LOGIN" 1>&6
1231 else
1232   echo "$ac_t""no" 1>&6
1233 fi
1234
1235
1236 if test ! -z "$SCHEME";
1237 then
1238         LOGIN="$SCHEME";
1239 fi
1240
1241 # Extract the first word of "ftpd", so it can be a program name with args.
1242 set dummy ftpd; ac_word=$2
1243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1244 echo "configure:1245: checking for $ac_word" >&5
1245 if eval "test \"`echo '$''{'ac_cv_path_FTPD'+set}'`\" = set"; then
1246   echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248   case "$FTPD" in
1249   /*)
1250   ac_cv_path_FTPD="$FTPD" # Let the user override the test with a path.
1251   ;;
1252   *)
1253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1254   for ac_dir in /usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin$ac_dummy; do
1255     test -z "$ac_dir" && ac_dir=.
1256     if test -f $ac_dir/$ac_word; then
1257       ac_cv_path_FTPD="$ac_dir/$ac_word"
1258       break
1259     fi
1260   done
1261   IFS="$ac_save_ifs"
1262   ;;
1263 esac
1264 fi
1265 FTPD="$ac_cv_path_FTPD"
1266 if test -n "$FTPD"; then
1267   echo "$ac_t""$FTPD" 1>&6
1268 else
1269   echo "$ac_t""no" 1>&6
1270 fi
1271
1272 # Extract the first word of "in.ftpd", so it can be a program name with args.
1273 set dummy in.ftpd; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_path_INFTPD'+set}'`\" = set"; then
1277   echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279   case "$INFTPD" in
1280   /*)
1281   ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a path.
1282   ;;
1283   *)
1284   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1285   for ac_dir in /usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin$ac_dummy; do
1286     test -z "$ac_dir" && ac_dir=.
1287     if test -f $ac_dir/$ac_word; then
1288       ac_cv_path_INFTPD="$ac_dir/$ac_word"
1289       break
1290     fi
1291   done
1292   IFS="$ac_save_ifs"
1293   ;;
1294 esac
1295 fi
1296 INFTPD="$ac_cv_path_INFTPD"
1297 if test -n "$INFTPD"; then
1298   echo "$ac_t""$INFTPD" 1>&6
1299 else
1300   echo "$ac_t""no" 1>&6
1301 fi
1302
1303
1304 if test -z "$FTPD"
1305 then
1306         if test ! -z "$INFTPD"
1307         then
1308                 FTPD="$INFTPD"
1309         fi
1310 fi
1311
1312 echo $ac_n "checking for default PATH entries""... $ac_c" 1>&6
1313 echo "configure:1314: checking for default PATH entries" >&5
1314 default_path=""
1315 save_IFS="$IFS"
1316 IFS=" "
1317 for i in /usr/bin /bin /usr/ucb /usr/sbin /usr/bsd /sbin /usr/bin/X11 /etc /usr/local/X11/bin /usr/X11R6/bin /your-system-is-broken
1318 do
1319         IFS=":"
1320         for j in $PATH
1321         do
1322                 if test "$i" = "$j"
1323                 then
1324                         if test -d "$i"
1325                         then
1326                                 if test -z "$default_path"
1327                                 then
1328                                         default_path="$i"
1329                                 else
1330                                         default_path="$default_path:$i"
1331                                 fi
1332                         fi
1333                 fi
1334         done
1335         IFS=" "
1336 done
1337 cat >> confdefs.h <<EOF
1338 #define DEFAULT_PATH "$default_path"
1339 EOF
1340
1341 echo "$ac_t""$default_path" 1>&6
1342
1343 echo $ac_n "checking for test -e flag""... $ac_c" 1>&6
1344 echo "configure:1345: checking for test -e flag" >&5
1345 if sh config.testeflag
1346 then
1347         result=yes
1348         EXISTS="-e"
1349 else
1350         result=no
1351         EXISTS="-f"
1352 fi
1353
1354 echo "$ac_t""$result" 1>&6
1355
1356 echo $ac_n "checking for mkdir -p flag""... $ac_c" 1>&6
1357 echo "configure:1358: checking for mkdir -p flag" >&5
1358 if test -d config.tmpdir
1359 then
1360         rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
1361         rmdir config.tmpdir/foo >/dev/null 2>/dev/null
1362         rmdir config.tmpdir >/dev/null 2>/dev/null
1363 fi
1364
1365 result=no
1366 if mkdir -p config.tmpdir/foo/bar >/dev/null 2>/dev/null
1367 then
1368         if test -d config.tmpdir
1369         then
1370                 if test -d config.tmpdir/foo
1371                 then
1372                         if test -d config.tmpdir/foo/bar
1373                         then
1374                                 result=yes
1375                                 rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
1376                         fi
1377                         rmdir config.tmpdir/foo >/dev/null 2>/dev/null
1378                 fi
1379                 rmdir config.tmpdir >/dev/null 2>/dev/null
1380         fi
1381 fi
1382
1383 if test "$result" = yes
1384 then
1385         MKDIR="mkdir -p"
1386 else
1387         MKDIR="mkdir"
1388 fi
1389
1390 echo "$ac_t""$result" 1>&6
1391
1392 echo $ac_n "checking for ls group field""... $ac_c" 1>&6
1393 echo "configure:1394: checking for ls group field" >&5
1394 lsg=`/bin/ls -ldg / | wc -w | awk '{print $1}'`;
1395 ls=`/bin/ls -ld / | wc -w | awk '{print $1}'`;
1396 result="no"
1397 if test $ls = 9;
1398 then
1399         result="yes"
1400 else
1401         if test "$ls" = 8 -a "$lsg" = 9;
1402         then
1403                 result="yes, with -g"
1404                 cat >> confdefs.h <<\EOF
1405 #define HAVE_LS_G_FLAG 1
1406 EOF
1407
1408         fi
1409 fi
1410 echo "$ac_t""$result" 1>&6
1411
1412 echo $ac_n "checking for /etc/default/login""... $ac_c" 1>&6
1413 echo "configure:1414: checking for /etc/default/login" >&5
1414 if test $EXISTS /etc/default/login
1415 then
1416         result=yes
1417         cat >> confdefs.h <<\EOF
1418 #define HAVE_ETC_DEFAULT_LOGIN 1
1419 EOF
1420
1421 else
1422         result=no
1423 fi
1424 echo "$ac_t""$result" 1>&6
1425
1426 echo $ac_n "checking for /etc/securetty""... $ac_c" 1>&6
1427 echo "configure:1428: checking for /etc/securetty" >&5
1428 if test $EXISTS /etc/securetty
1429 then
1430         result=yes
1431         cat >> confdefs.h <<\EOF
1432 #define HAVE_SECURETTY 1
1433 EOF
1434
1435 else
1436         result=no
1437 fi
1438 echo "$ac_t""$result" 1>&6
1439
1440 echo $ac_n "checking for /etc/logindevperm""... $ac_c" 1>&6
1441 echo "configure:1442: checking for /etc/logindevperm" >&5
1442 if test $EXISTS /etc/logindevperm
1443 then
1444         echo "$ac_t""yes" 1>&6
1445         cat >> confdefs.h <<\EOF
1446 #define HAVE_LOGIN_PERMFILE "/etc/logindevperm"
1447 EOF
1448
1449 else
1450         echo "$ac_t""no" 1>&6
1451
1452         echo $ac_n "checking for /etc/fbtab""... $ac_c" 1>&6
1453 echo "configure:1454: checking for /etc/fbtab" >&5
1454         if test $EXISTS /etc/fbtab
1455         then
1456                 result=yes
1457                 cat >> confdefs.h <<\EOF
1458 #define HAVE_LOGIN_PERMFILE "/etc/fbtab"
1459 EOF
1460
1461         else
1462                 result=no
1463         fi
1464         echo "$ac_t""$result" 1>&6
1465 fi
1466
1467 echo $ac_n "checking for /etc/environment""... $ac_c" 1>&6
1468 echo "configure:1469: checking for /etc/environment" >&5
1469 if test $EXISTS /etc/environment
1470 then
1471         echo "$ac_t""yes" 1>&6
1472         cat >> confdefs.h <<\EOF
1473 #define HAVE_LOGIN_ENVFILE "/etc/environment"
1474 EOF
1475
1476 else
1477         echo "$ac_t""no" 1>&6
1478
1479         echo $ac_n "checking for /etc/src.sh""... $ac_c" 1>&6
1480 echo "configure:1481: checking for /etc/src.sh" >&5
1481         if test $EXISTS /etc/src.sh
1482         then
1483                 result=yes
1484                 cat >> confdefs.h <<\EOF
1485 #define HAVE_LOGIN_ENVFILE "/etc/src.sh"
1486 EOF
1487
1488         else
1489                 result=no
1490         fi
1491         echo "$ac_t""$result" 1>&6
1492 fi
1493
1494 echo $ac_n "checking for /etc/shadow""... $ac_c" 1>&6
1495 echo "configure:1496: checking for /etc/shadow" >&5
1496 if test $EXISTS /etc/shadow
1497 then
1498         result=yes
1499         cat >> confdefs.h <<\EOF
1500 #define HAVE_ETC_SHADOW 1
1501 EOF
1502
1503 else
1504         echo "$ac_t""no" 1>&6
1505
1506         echo $ac_n "checking for /etc/security/passwd.adjunct""... $ac_c" 1>&6
1507 echo "configure:1508: checking for /etc/security/passwd.adjunct" >&5
1508         if test $EXISTS /etc/security/passwd.adjunct
1509         then
1510                 result=yes
1511                 cat >> confdefs.h <<\EOF
1512 #define HAVE_SUNOS_C2_SHADOW 1
1513 EOF
1514
1515                 LIBOBJS="$LIBOBJS getspnam.o endspent.o"
1516         else
1517                 result=no
1518         fi
1519 fi
1520 echo "$ac_t""$result" 1>&6
1521
1522 echo $ac_n "checking for /var/adm/sulog""... $ac_c" 1>&6
1523 echo "configure:1524: checking for /var/adm/sulog" >&5
1524 if test $EXISTS /var/adm/sulog
1525 then
1526         result=yes
1527         cat >> confdefs.h <<\EOF
1528 #define HAVE_SULOG 1
1529 EOF
1530
1531 else
1532         result=no
1533 fi
1534 echo "$ac_t""$result" 1>&6
1535
1536 echo $ac_n "checking mail spool location""... $ac_c" 1>&6
1537 echo "configure:1538: checking mail spool location" >&5
1538 mail_spool=""
1539 for i in /var/mail /usr/mail /var/spool/mail /usr/spool/mail
1540 do
1541         if test -d $i
1542         then
1543                 mail_spool="$i"
1544         fi
1545 done
1546 if test -z "$mail_spool"
1547 then
1548         result="not found"
1549 else
1550         result="$mail_spool"
1551         cat >> confdefs.h <<EOF
1552 #define PATH_MAIL "$mail_spool"
1553 EOF
1554
1555 fi
1556 echo "$ac_t""$result" 1>&6
1557
1558 echo $ac_n "checking where your system puts the utmp file""... $ac_c" 1>&6
1559 echo "configure:1560: checking where your system puts the utmp file" >&5
1560 utmp_path=""
1561 for i in /var/run /var/adm /usr/adm /etc
1562 do
1563         if test $EXISTS $i/utmp
1564         then
1565                 utmp_path="$i"
1566         fi
1567 done
1568 if test -z "$utmp_path"
1569 then
1570         result="not found"
1571 else
1572         result="$utmp_path"
1573         cat >> confdefs.h <<EOF
1574 #define PATH_UTMP_AC "$utmp_path/utmp"
1575 EOF
1576
1577 fi
1578 echo "$ac_t""$result" 1>&6
1579
1580 echo $ac_n "checking where your system puts the utmpx file""... $ac_c" 1>&6
1581 echo "configure:1582: checking where your system puts the utmpx file" >&5
1582 utmp_path=""
1583 for i in /var/run /var/adm /usr/adm /etc
1584 do
1585         if test $EXISTS $i/utmp
1586         then
1587                 utmp_path="$i"
1588         fi
1589 done
1590 if test -z "$utmp_path"
1591 then
1592         result="not found"
1593         cat >> confdefs.h <<EOF
1594 #define PATH_UTMP_AC "$utmp_path/utmpx"
1595 EOF
1596
1597 fi
1598 echo "$ac_t""$result" 1>&6
1599
1600 echo $ac_n "checking where your system puts the wtmp file""... $ac_c" 1>&6
1601 echo "configure:1602: checking where your system puts the wtmp file" >&5
1602 wtmp_path=""
1603 for i in /var/run /var/log /var/adm /usr/adm /etc
1604 do
1605         if test $EXISTS $i/wtmp
1606         then
1607                 wtmp_path="$i"
1608         fi
1609 done
1610 if test -z "$wtmp_path"
1611 then
1612         result="not found"
1613 else
1614         result="$wtmp_path"
1615         cat >> confdefs.h <<EOF
1616 #define PATH_WTMP_AC "$wtmp_path/wtmp"
1617 EOF
1618
1619 fi
1620 echo "$ac_t""$result" 1>&6
1621
1622 echo $ac_n "checking where your system puts the wtmpx file""... $ac_c" 1>&6
1623 echo "configure:1624: checking where your system puts the wtmpx file" >&5
1624 wtmpx_path=""
1625 for i in /var/run /var/log /var/adm /usr/adm /etc
1626 do
1627         if test $EXISTS $i/wtmpx
1628         then
1629                 wtmpx_path="$i"
1630         fi
1631 done
1632 if test -z "$wtmpx_path"
1633 then
1634         result="not found"
1635 else
1636         result="$wtmpx_path"
1637         cat >> confdefs.h <<EOF
1638 #define PATH_WTMPX_AC "$wtmpx_path/wtmpx"
1639 EOF
1640
1641 fi
1642 echo "$ac_t""$result" 1>&6
1643
1644 echo $ac_n "checking whether the system profile displays the motd""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether the system profile displays the motd" >&5
1646 result=no
1647 if test $EXISTS /etc/profile
1648 then
1649         if grep motd /etc/profile >/dev/null 2>/dev/null
1650         then
1651                 result=yes
1652         fi
1653 fi
1654 if test "$result" = yes
1655 then
1656         cat >> confdefs.h <<\EOF
1657 #define HAVE_MOTD_IN_PROFILE 1
1658 EOF
1659
1660 fi
1661 echo "$ac_t""$result" 1>&6
1662
1663 echo $ac_n "checking whether the system profile checks for mail""... $ac_c" 1>&6
1664 echo "configure:1665: checking whether the system profile checks for mail" >&5
1665 result=no
1666 if test $EXISTS /etc/profile
1667 then
1668         if grep 'mail\.' /etc/profile >/dev/null 2>/dev/null
1669         then
1670                 result=yes
1671         fi
1672 fi
1673 if test "$result" = yes
1674 then
1675         cat >> confdefs.h <<\EOF
1676 #define HAVE_MAILCHECK_IN_PROFILE 1
1677 EOF
1678
1679 fi
1680 echo "$ac_t""$result" 1>&6
1681
1682 echo $ac_n "checking for working const""... $ac_c" 1>&6
1683 echo "configure:1684: checking for working const" >&5
1684 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1685   echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687   cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690
1691 int main() {
1692
1693 /* Ultrix mips cc rejects this.  */
1694 typedef int charset[2]; const charset x;
1695 /* SunOS 4.1.1 cc rejects this.  */
1696 char const *const *ccp;
1697 char **p;
1698 /* NEC SVR4.0.2 mips cc rejects this.  */
1699 struct point {int x, y;};
1700 static struct point const zero = {0,0};
1701 /* AIX XL C 1.02.0.0 rejects this.
1702    It does not let you subtract one const X* pointer from another in an arm
1703    of an if-expression whose if-part is not a constant expression */
1704 const char *g = "string";
1705 ccp = &g + (g ? g-g : 0);
1706 /* HPUX 7.0 cc rejects these. */
1707 ++ccp;
1708 p = (char**) ccp;
1709 ccp = (char const *const *) p;
1710 { /* SCO 3.2v4 cc rejects this.  */
1711   char *t;
1712   char const *s = 0 ? (char *) 0 : (char const *) 0;
1713
1714   *t++ = 0;
1715 }
1716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1717   int x[] = {25, 17};
1718   const int *foo = &x[0];
1719   ++foo;
1720 }
1721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1722   typedef const int *iptr;
1723   iptr p = 0;
1724   ++p;
1725 }
1726 { /* AIX XL C 1.02.0.0 rejects this saying
1727      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1728   struct s { int j; const int *ap[3]; };
1729   struct s *b; b->j = 5;
1730 }
1731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1732   const int foo = 10;
1733 }
1734
1735 ; return 0; }
1736 EOF
1737 if { (eval echo configure:1738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1738   rm -rf conftest*
1739   ac_cv_c_const=yes
1740 else
1741   echo "configure: failed program was:" >&5
1742   cat conftest.$ac_ext >&5
1743   rm -rf conftest*
1744   ac_cv_c_const=no
1745 fi
1746 rm -f conftest*
1747 fi
1748
1749 echo "$ac_t""$ac_cv_c_const" 1>&6
1750 if test $ac_cv_c_const = no; then
1751   cat >> confdefs.h <<\EOF
1752 #define const 
1753 EOF
1754
1755 fi
1756
1757
1758 echo $ac_n "checking to see if your compiler can handle void arguments""... $ac_c" 1>&6
1759 echo "configure:1760: checking to see if your compiler can handle void arguments" >&5
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1763 foo(void) { }
1764 int main() {
1765
1766 ; return 0; }
1767 EOF
1768 if { (eval echo configure:1769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1769   rm -rf conftest*
1770   cat >> confdefs.h <<\EOF
1771 #define HAVE_VOIDARG 1
1772 EOF
1773  echo "$ac_t""yes" 1>&6
1774 else
1775   echo "configure: failed program was:" >&5
1776   cat conftest.$ac_ext >&5
1777   rm -rf conftest*
1778   echo "$ac_t""no" 1>&6
1779 fi
1780 rm -f conftest*
1781
1782 echo $ac_n "checking to see if your compiler can handle void return values""... $ac_c" 1>&6
1783 echo "configure:1784: checking to see if your compiler can handle void return values" >&5
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 void foo() { }
1788 int main() {
1789
1790 ; return 0; }
1791 EOF
1792 if { (eval echo configure:1793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1793   rm -rf conftest*
1794   cat >> confdefs.h <<\EOF
1795 #define HAVE_VOIDRET 1
1796 EOF
1797  echo "$ac_t""yes" 1>&6
1798 else
1799   echo "configure: failed program was:" >&5
1800   cat conftest.$ac_ext >&5
1801   rm -rf conftest*
1802   echo "$ac_t""no" 1>&6
1803 fi
1804 rm -f conftest*
1805
1806 echo $ac_n "checking to see if your compiler can handle void pointers""... $ac_c" 1>&6
1807 echo "configure:1808: checking to see if your compiler can handle void pointers" >&5
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 foo() { void *bar = (void *)0x42; bar = bar + 1; }
1812 int main() {
1813
1814 ; return 0; }
1815 EOF
1816 if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817   rm -rf conftest*
1818   cat >> confdefs.h <<\EOF
1819 #define HAVE_VOIDPTR 1
1820 EOF
1821  echo "$ac_t""yes" 1>&6
1822 else
1823   echo "configure: failed program was:" >&5
1824   cat conftest.$ac_ext >&5
1825   rm -rf conftest*
1826   echo "$ac_t""no" 1>&6
1827 fi
1828 rm -f conftest*
1829
1830 echo $ac_n "checking to see if your compiler can handle ANSI argument lists""... $ac_c" 1>&6
1831 echo "configure:1832: checking to see if your compiler can handle ANSI argument lists" >&5
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 int foo(int bar, int baz) { return 0; }
1836 int main() {
1837
1838 ; return 0; }
1839 EOF
1840 if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1841   rm -rf conftest*
1842   cat >> confdefs.h <<\EOF
1843 #define HAVE_ANSIDECL 1
1844 EOF
1845  echo "$ac_t""yes" 1>&6
1846 else
1847   echo "configure: failed program was:" >&5
1848   cat conftest.$ac_ext >&5
1849   rm -rf conftest*
1850   echo "$ac_t""no" 1>&6
1851 fi
1852 rm -f conftest*
1853
1854 echo $ac_n "checking to see if your compiler can handle ANSI prototypes""... $ac_c" 1>&6
1855 echo "configure:1856: checking to see if your compiler can handle ANSI prototypes" >&5
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1859 extern int foo(int, int);
1860 int main() {
1861
1862 ; return 0; }
1863 EOF
1864 if { (eval echo configure:1865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1865   rm -rf conftest*
1866   cat >> confdefs.h <<\EOF
1867 #define HAVE_ANSIPROTO 1
1868 EOF
1869  echo "$ac_t""yes" 1>&6
1870 else
1871   echo "configure: failed program was:" >&5
1872   cat conftest.$ac_ext >&5
1873   rm -rf conftest*
1874   echo "$ac_t""no" 1>&6
1875 fi
1876 rm -f conftest*
1877
1878 echo $ac_n "checking to see if your compiler can handle ANSI variable arguments""... $ac_c" 1>&6
1879 echo "configure:1880: checking to see if your compiler can handle ANSI variable arguments" >&5
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <stdarg.h>
1884 int foo(int arg, ...) {
1885         va_list ap;
1886         va_start(ap, arg);
1887         va_end(ap);
1888         return 0;
1889 }
1890 int main() {
1891
1892 ; return 0; }
1893 EOF
1894 if { (eval echo configure:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1895   rm -rf conftest*
1896   cat >> confdefs.h <<\EOF
1897 #define HAVE_ANSISTDARG 1
1898 EOF
1899  echo "$ac_t""yes" 1>&6
1900 else
1901   echo "configure: failed program was:" >&5
1902   cat conftest.$ac_ext >&5
1903   rm -rf conftest*
1904   echo "$ac_t""no" 1>&6
1905 fi
1906 rm -f conftest*
1907
1908 echo $ac_n "checking to see if you have an ANSI-style sprintf""... $ac_c" 1>&6
1909 echo "configure:1910: checking to see if you have an ANSI-style sprintf" >&5
1910 if test "$cross_compiling" = yes; then
1911   echo "$ac_t""no" 1>&6
1912 else
1913   cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 #include <stdio.h>
1917 int main(argc, argv)
1918 int argc;
1919 char *argv[];
1920 {
1921   char buf[5];
1922   int i = 2;
1923   i += sprintf(buf, "1234");
1924   return (i == 6) ? 0 : -1;
1925 }
1926 EOF
1927 if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1928 then
1929   cat >> confdefs.h <<\EOF
1930 #define HAVE_ANSISPRINTF 1
1931 EOF
1932  echo "$ac_t""yes" 1>&6
1933 else
1934   echo "configure: failed program was:" >&5
1935   cat conftest.$ac_ext >&5
1936   rm -fr conftest*
1937   echo "$ac_t""no" 1>&6
1938 fi
1939 rm -fr conftest*
1940 fi
1941
1942
1943 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1944 echo "configure:1945: checking for crypt in -lcrypt" >&5
1945 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1947   echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949   ac_save_LIBS="$LIBS"
1950 LIBS="-lcrypt  $LIBS"
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 /* Override any gcc2 internal prototype to avoid an error.  */
1955 /* We use char because int might match the return type of a gcc2
1956     builtin and then its argument prototype would still apply.  */
1957 char crypt();
1958
1959 int main() {
1960 crypt()
1961 ; return 0; }
1962 EOF
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1964   rm -rf conftest*
1965   eval "ac_cv_lib_$ac_lib_var=yes"
1966 else
1967   echo "configure: failed program was:" >&5
1968   cat conftest.$ac_ext >&5
1969   rm -rf conftest*
1970   eval "ac_cv_lib_$ac_lib_var=no"
1971 fi
1972 rm -f conftest*
1973 LIBS="$ac_save_LIBS"
1974
1975 fi
1976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1977   echo "$ac_t""yes" 1>&6
1978     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1979     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1980   cat >> confdefs.h <<EOF
1981 #define $ac_tr_lib 1
1982 EOF
1983
1984   LIBS="-lcrypt $LIBS"
1985
1986 else
1987   echo "$ac_t""no" 1>&6
1988 fi
1989
1990 echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
1991 echo "configure:1992: checking for gethostname in -lnsl" >&5
1992 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
1993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1994   echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996   ac_save_LIBS="$LIBS"
1997 LIBS="-lnsl  $LIBS"
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 /* Override any gcc2 internal prototype to avoid an error.  */
2002 /* We use char because int might match the return type of a gcc2
2003     builtin and then its argument prototype would still apply.  */
2004 char gethostname();
2005
2006 int main() {
2007 gethostname()
2008 ; return 0; }
2009 EOF
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2011   rm -rf conftest*
2012   eval "ac_cv_lib_$ac_lib_var=yes"
2013 else
2014   echo "configure: failed program was:" >&5
2015   cat conftest.$ac_ext >&5
2016   rm -rf conftest*
2017   eval "ac_cv_lib_$ac_lib_var=no"
2018 fi
2019 rm -f conftest*
2020 LIBS="$ac_save_LIBS"
2021
2022 fi
2023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2024   echo "$ac_t""yes" 1>&6
2025     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2026     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2027   cat >> confdefs.h <<EOF
2028 #define $ac_tr_lib 1
2029 EOF
2030
2031   LIBS="-lnsl $LIBS"
2032
2033 else
2034   echo "$ac_t""no" 1>&6
2035 fi
2036
2037 echo $ac_n "checking for main in -lposix""... $ac_c" 1>&6
2038 echo "configure:2039: checking for main in -lposix" >&5
2039 ac_lib_var=`echo posix'_'main | sed 'y%./+-%__p_%'`
2040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2041   echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043   ac_save_LIBS="$LIBS"
2044 LIBS="-lposix  $LIBS"
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048
2049 int main() {
2050 main()
2051 ; return 0; }
2052 EOF
2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2054   rm -rf conftest*
2055   eval "ac_cv_lib_$ac_lib_var=yes"
2056 else
2057   echo "configure: failed program was:" >&5
2058   cat conftest.$ac_ext >&5
2059   rm -rf conftest*
2060   eval "ac_cv_lib_$ac_lib_var=no"
2061 fi
2062 rm -f conftest*
2063 LIBS="$ac_save_LIBS"
2064
2065 fi
2066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2067   echo "$ac_t""yes" 1>&6
2068     ac_tr_lib=HAVE_LIB`echo posix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2069     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2070   cat >> confdefs.h <<EOF
2071 #define $ac_tr_lib 1
2072 EOF
2073
2074   LIBS="-lposix $LIBS"
2075
2076 else
2077   echo "$ac_t""no" 1>&6
2078 fi
2079
2080 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2081 echo "configure:2082: checking for socket in -lsocket" >&5
2082 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084   echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086   ac_save_LIBS="$LIBS"
2087 LIBS="-lsocket  $LIBS"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* Override any gcc2 internal prototype to avoid an error.  */
2092 /* We use char because int might match the return type of a gcc2
2093     builtin and then its argument prototype would still apply.  */
2094 char socket();
2095
2096 int main() {
2097 socket()
2098 ; return 0; }
2099 EOF
2100 if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2101   rm -rf conftest*
2102   eval "ac_cv_lib_$ac_lib_var=yes"
2103 else
2104   echo "configure: failed program was:" >&5
2105   cat conftest.$ac_ext >&5
2106   rm -rf conftest*
2107   eval "ac_cv_lib_$ac_lib_var=no"
2108 fi
2109 rm -f conftest*
2110 LIBS="$ac_save_LIBS"
2111
2112 fi
2113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2114   echo "$ac_t""yes" 1>&6
2115     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2116     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2117   cat >> confdefs.h <<EOF
2118 #define $ac_tr_lib 1
2119 EOF
2120
2121   LIBS="-lsocket $LIBS"
2122
2123 else
2124   echo "$ac_t""no" 1>&6
2125 fi
2126
2127
2128 ac_header_dirent=no
2129 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2130 do
2131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2132 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_hdr that defines DIR" >&5
2134 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2135   echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137   cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 #include <sys/types.h>
2141 #include <$ac_hdr>
2142 int main() {
2143 DIR *dirp = 0;
2144 ; return 0; }
2145 EOF
2146 if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2147   rm -rf conftest*
2148   eval "ac_cv_header_dirent_$ac_safe=yes"
2149 else
2150   echo "configure: failed program was:" >&5
2151   cat conftest.$ac_ext >&5
2152   rm -rf conftest*
2153   eval "ac_cv_header_dirent_$ac_safe=no"
2154 fi
2155 rm -f conftest*
2156 fi
2157 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2158   echo "$ac_t""yes" 1>&6
2159     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2160   cat >> confdefs.h <<EOF
2161 #define $ac_tr_hdr 1
2162 EOF
2163  ac_header_dirent=$ac_hdr; break
2164 else
2165   echo "$ac_t""no" 1>&6
2166 fi
2167 done
2168 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2169 if test $ac_header_dirent = dirent.h; then
2170 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2171 echo "configure:2172: checking for opendir in -ldir" >&5
2172 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2174   echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176   ac_save_LIBS="$LIBS"
2177 LIBS="-ldir  $LIBS"
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 /* Override any gcc2 internal prototype to avoid an error.  */
2182 /* We use char because int might match the return type of a gcc2
2183     builtin and then its argument prototype would still apply.  */
2184 char opendir();
2185
2186 int main() {
2187 opendir()
2188 ; return 0; }
2189 EOF
2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2191   rm -rf conftest*
2192   eval "ac_cv_lib_$ac_lib_var=yes"
2193 else
2194   echo "configure: failed program was:" >&5
2195   cat conftest.$ac_ext >&5
2196   rm -rf conftest*
2197   eval "ac_cv_lib_$ac_lib_var=no"
2198 fi
2199 rm -f conftest*
2200 LIBS="$ac_save_LIBS"
2201
2202 fi
2203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2204   echo "$ac_t""yes" 1>&6
2205   LIBS="$LIBS -ldir"
2206 else
2207   echo "$ac_t""no" 1>&6
2208 fi
2209
2210 else
2211 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2212 echo "configure:2213: checking for opendir in -lx" >&5
2213 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2215   echo $ac_n "(cached) $ac_c" 1>&6
2216 else
2217   ac_save_LIBS="$LIBS"
2218 LIBS="-lx  $LIBS"
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 /* Override any gcc2 internal prototype to avoid an error.  */
2223 /* We use char because int might match the return type of a gcc2
2224     builtin and then its argument prototype would still apply.  */
2225 char opendir();
2226
2227 int main() {
2228 opendir()
2229 ; return 0; }
2230 EOF
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2232   rm -rf conftest*
2233   eval "ac_cv_lib_$ac_lib_var=yes"
2234 else
2235   echo "configure: failed program was:" >&5
2236   cat conftest.$ac_ext >&5
2237   rm -rf conftest*
2238   eval "ac_cv_lib_$ac_lib_var=no"
2239 fi
2240 rm -f conftest*
2241 LIBS="$ac_save_LIBS"
2242
2243 fi
2244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245   echo "$ac_t""yes" 1>&6
2246   LIBS="$LIBS -lx"
2247 else
2248   echo "$ac_t""no" 1>&6
2249 fi
2250
2251 fi
2252
2253 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2254 echo "configure:2255: checking for sys/wait.h that is POSIX.1 compatible" >&5
2255 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2256   echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258   cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 #include <sys/types.h>
2262 #include <sys/wait.h>
2263 #ifndef WEXITSTATUS
2264 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2265 #endif
2266 #ifndef WIFEXITED
2267 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2268 #endif
2269 int main() {
2270 int s;
2271 wait (&s);
2272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2273 ; return 0; }
2274 EOF
2275 if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276   rm -rf conftest*
2277   ac_cv_header_sys_wait_h=yes
2278 else
2279   echo "configure: failed program was:" >&5
2280   cat conftest.$ac_ext >&5
2281   rm -rf conftest*
2282   ac_cv_header_sys_wait_h=no
2283 fi
2284 rm -f conftest*
2285 fi
2286
2287 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2288 if test $ac_cv_header_sys_wait_h = yes; then
2289   cat >> confdefs.h <<\EOF
2290 #define HAVE_SYS_WAIT_H 1
2291 EOF
2292
2293 fi
2294
2295 for ac_hdr in crypt.h fcntl.h limits.h termios.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h paths.h shadow.h signal.h sys/signal.h lastlog.h sys/utsname.h pwd.h sys/param.h string.h stdlib.h utmpx.h sys/select.h
2296 do
2297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_hdr" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <$ac_hdr>
2307 EOF
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out`
2311 if test -z "$ac_err"; then
2312   rm -rf conftest*
2313   eval "ac_cv_header_$ac_safe=yes"
2314 else
2315   echo "$ac_err" >&5
2316   echo "configure: failed program was:" >&5
2317   cat conftest.$ac_ext >&5
2318   rm -rf conftest*
2319   eval "ac_cv_header_$ac_safe=no"
2320 fi
2321 rm -f conftest*
2322 fi
2323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2324   echo "$ac_t""yes" 1>&6
2325     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2326   cat >> confdefs.h <<EOF
2327 #define $ac_tr_hdr 1
2328 EOF
2329  
2330 else
2331   echo "$ac_t""no" 1>&6
2332 fi
2333 done
2334
2335
2336
2337 echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
2338 echo "configure:2339: checking for ut_pid in struct utmp" >&5
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 #include <sys/types.h>
2343 #include <utmp.h>
2344 int main() {
2345 struct utmp foo; return (int)foo.ut_pid;
2346 ; return 0; }
2347 EOF
2348 if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349   rm -rf conftest*
2350   cat >> confdefs.h <<\EOF
2351 #define HAVE_UT_PID 1
2352 EOF
2353  echo "$ac_t""yes" 1>&6
2354 else
2355   echo "configure: failed program was:" >&5
2356   cat conftest.$ac_ext >&5
2357   rm -rf conftest*
2358   echo "$ac_t""no" 1>&6
2359 fi
2360 rm -f conftest*
2361 echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
2362 echo "configure:2363: checking for ut_type in struct utmp" >&5
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <sys/types.h>
2367 #include <utmp.h>
2368 int main() {
2369 struct utmp foo; return (int)foo.ut_type;
2370 ; return 0; }
2371 EOF
2372 if { (eval echo configure:2373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2373   rm -rf conftest*
2374   cat >> confdefs.h <<\EOF
2375 #define HAVE_UT_TYPE 1
2376 EOF
2377  echo "$ac_t""yes" 1>&6
2378 else
2379   echo "configure: failed program was:" >&5
2380   cat conftest.$ac_ext >&5
2381   rm -rf conftest*
2382   echo "$ac_t""no" 1>&6
2383 fi
2384 rm -f conftest*
2385 echo $ac_n "checking for ut_name in struct utmp""... $ac_c" 1>&6
2386 echo "configure:2387: checking for ut_name in struct utmp" >&5
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <sys/types.h>
2391 #include <utmp.h>
2392 int main() {
2393 struct utmp foo; return (int)foo.ut_name[0];
2394 ; return 0; }
2395 EOF
2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2397   rm -rf conftest*
2398   cat >> confdefs.h <<\EOF
2399 #define HAVE_UT_NAME 1
2400 EOF
2401  echo "$ac_t""yes" 1>&6
2402 else
2403   echo "configure: failed program was:" >&5
2404   cat conftest.$ac_ext >&5
2405   rm -rf conftest*
2406   echo "$ac_t""no" 1>&6
2407 fi
2408 rm -f conftest*
2409 echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
2410 echo "configure:2411: checking for ut_host in struct utmp" >&5
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <sys/types.h>
2415 #include <utmp.h>
2416 int main() {
2417 struct utmp foo; return (int)foo.ut_host[0];
2418 ; return 0; }
2419 EOF
2420 if { (eval echo configure:2421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2421   rm -rf conftest*
2422   cat >> confdefs.h <<\EOF
2423 #define HAVE_UT_HOST 1
2424 EOF
2425  echo "$ac_t""yes" 1>&6
2426 else
2427   echo "configure: failed program was:" >&5
2428   cat conftest.$ac_ext >&5
2429   rm -rf conftest*
2430   echo "$ac_t""no" 1>&6
2431 fi
2432 rm -f conftest*
2433
2434 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2435 echo "configure:2436: checking return type of signal handlers" >&5
2436 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2437   echo $ac_n "(cached) $ac_c" 1>&6
2438 else
2439   cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 #include <sys/types.h>
2443 #include <signal.h>
2444 #ifdef signal
2445 #undef signal
2446 #endif
2447 #ifdef __cplusplus
2448 extern "C" void (*signal (int, void (*)(int)))(int);
2449 #else
2450 void (*signal ()) ();
2451 #endif
2452
2453 int main() {
2454 int i;
2455 ; return 0; }
2456 EOF
2457 if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458   rm -rf conftest*
2459   ac_cv_type_signal=void
2460 else
2461   echo "configure: failed program was:" >&5
2462   cat conftest.$ac_ext >&5
2463   rm -rf conftest*
2464   ac_cv_type_signal=int
2465 fi
2466 rm -f conftest*
2467 fi
2468
2469 echo "$ac_t""$ac_cv_type_signal" 1>&6
2470 cat >> confdefs.h <<EOF
2471 #define RETSIGTYPE $ac_cv_type_signal
2472 EOF
2473
2474
2475 for ac_func in gettimeofday socket strftime strstr setpriority getttynam setvbuf getspnam endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline usleep
2476 do
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480   echo $ac_n "(cached) $ac_c" 1>&6
2481 else
2482   cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486     which can conflict with char $ac_func(); below.  */
2487 #include <assert.h>
2488 /* Override any gcc2 internal prototype to avoid an error.  */
2489 /* We use char because int might match the return type of a gcc2
2490     builtin and then its argument prototype would still apply.  */
2491 char $ac_func();
2492
2493 int main() {
2494
2495 /* The GNU C library defines this for functions which it implements
2496     to always fail with ENOSYS.  Some functions are actually named
2497     something starting with __ and the normal name is an alias.  */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2499 choke me
2500 #else
2501 $ac_func();
2502 #endif
2503
2504 ; return 0; }
2505 EOF
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2507   rm -rf conftest*
2508   eval "ac_cv_func_$ac_func=yes"
2509 else
2510   echo "configure: failed program was:" >&5
2511   cat conftest.$ac_ext >&5
2512   rm -rf conftest*
2513   eval "ac_cv_func_$ac_func=no"
2514 fi
2515 rm -f conftest*
2516 fi
2517
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519   echo "$ac_t""yes" 1>&6
2520     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521   cat >> confdefs.h <<EOF
2522 #define $ac_tr_func 1
2523 EOF
2524  
2525 else
2526   echo "$ac_t""no" 1>&6
2527 fi
2528 done
2529
2530
2531 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2532 echo "configure:2533: checking for 8-bit clean memcmp" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2534   echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2536   if test "$cross_compiling" = yes; then
2537   ac_cv_func_memcmp_clean=no
2538 else
2539   cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542
2543 main()
2544 {
2545   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2546   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2547 }
2548
2549 EOF
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2551 then
2552   ac_cv_func_memcmp_clean=yes
2553 else
2554   echo "configure: failed program was:" >&5
2555   cat conftest.$ac_ext >&5
2556   rm -fr conftest*
2557   ac_cv_func_memcmp_clean=no
2558 fi
2559 rm -fr conftest*
2560 fi
2561
2562 fi
2563
2564 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2565 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2566
2567 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2568 # for constant arguments.  Useless!
2569 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2570 echo "configure:2571: checking for working alloca.h" >&5
2571 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2572   echo $ac_n "(cached) $ac_c" 1>&6
2573 else
2574   cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <alloca.h>
2578 int main() {
2579 char *p = alloca(2 * sizeof(int));
2580 ; return 0; }
2581 EOF
2582 if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2583   rm -rf conftest*
2584   ac_cv_header_alloca_h=yes
2585 else
2586   echo "configure: failed program was:" >&5
2587   cat conftest.$ac_ext >&5
2588   rm -rf conftest*
2589   ac_cv_header_alloca_h=no
2590 fi
2591 rm -f conftest*
2592 fi
2593
2594 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2595 if test $ac_cv_header_alloca_h = yes; then
2596   cat >> confdefs.h <<\EOF
2597 #define HAVE_ALLOCA_H 1
2598 EOF
2599
2600 fi
2601
2602 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2603 echo "configure:2604: checking for alloca" >&5
2604 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2605   echo $ac_n "(cached) $ac_c" 1>&6
2606 else
2607   cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610
2611 #ifdef __GNUC__
2612 # define alloca __builtin_alloca
2613 #else
2614 # if HAVE_ALLOCA_H
2615 #  include <alloca.h>
2616 # else
2617 #  ifdef _AIX
2618  #pragma alloca
2619 #  else
2620 #   ifndef alloca /* predefined by HP cc +Olibcalls */
2621 char *alloca ();
2622 #   endif
2623 #  endif
2624 # endif
2625 #endif
2626
2627 int main() {
2628 char *p = (char *) alloca(1);
2629 ; return 0; }
2630 EOF
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2632   rm -rf conftest*
2633   ac_cv_func_alloca_works=yes
2634 else
2635   echo "configure: failed program was:" >&5
2636   cat conftest.$ac_ext >&5
2637   rm -rf conftest*
2638   ac_cv_func_alloca_works=no
2639 fi
2640 rm -f conftest*
2641 fi
2642
2643 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2644 if test $ac_cv_func_alloca_works = yes; then
2645   cat >> confdefs.h <<\EOF
2646 #define HAVE_ALLOCA 1
2647 EOF
2648
2649 fi
2650
2651 if test $ac_cv_func_alloca_works = no; then
2652   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2653   # that cause trouble.  Some versions do not even contain alloca or
2654   # contain a buggy version.  If you still want to use their alloca,
2655   # use ar to extract alloca.o from them instead of compiling alloca.c.
2656   ALLOCA=alloca.o
2657   cat >> confdefs.h <<\EOF
2658 #define C_ALLOCA 1
2659 EOF
2660
2661
2662 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether alloca needs Cray hooks" >&5
2664 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2665   echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667   cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #if defined(CRAY) && ! defined(CRAY2)
2671 webecray
2672 #else
2673 wenotbecray
2674 #endif
2675
2676 EOF
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678   egrep "webecray" >/dev/null 2>&1; then
2679   rm -rf conftest*
2680   ac_cv_os_cray=yes
2681 else
2682   rm -rf conftest*
2683   ac_cv_os_cray=no
2684 fi
2685 rm -f conftest*
2686
2687 fi
2688
2689 echo "$ac_t""$ac_cv_os_cray" 1>&6
2690 if test $ac_cv_os_cray = yes; then
2691 for ac_func in _getb67 GETB67 getb67; do
2692   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_func" >&5
2694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697   cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 /* System header to define __stub macros and hopefully few prototypes,
2701     which can conflict with char $ac_func(); below.  */
2702 #include <assert.h>
2703 /* Override any gcc2 internal prototype to avoid an error.  */
2704 /* We use char because int might match the return type of a gcc2
2705     builtin and then its argument prototype would still apply.  */
2706 char $ac_func();
2707
2708 int main() {
2709
2710 /* The GNU C library defines this for functions which it implements
2711     to always fail with ENOSYS.  Some functions are actually named
2712     something starting with __ and the normal name is an alias.  */
2713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2714 choke me
2715 #else
2716 $ac_func();
2717 #endif
2718
2719 ; return 0; }
2720 EOF
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2722   rm -rf conftest*
2723   eval "ac_cv_func_$ac_func=yes"
2724 else
2725   echo "configure: failed program was:" >&5
2726   cat conftest.$ac_ext >&5
2727   rm -rf conftest*
2728   eval "ac_cv_func_$ac_func=no"
2729 fi
2730 rm -f conftest*
2731 fi
2732
2733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2734   echo "$ac_t""yes" 1>&6
2735   cat >> confdefs.h <<EOF
2736 #define CRAY_STACKSEG_END $ac_func
2737 EOF
2738
2739   break
2740 else
2741   echo "$ac_t""no" 1>&6
2742 fi
2743
2744 done
2745 fi
2746
2747 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2748 echo "configure:2749: checking stack direction for C alloca" >&5
2749 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2750   echo $ac_n "(cached) $ac_c" 1>&6
2751 else
2752   if test "$cross_compiling" = yes; then
2753   ac_cv_c_stack_direction=0
2754 else
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 find_stack_direction ()
2759 {
2760   static char *addr = 0;
2761   auto char dummy;
2762   if (addr == 0)
2763     {
2764       addr = &dummy;
2765       return find_stack_direction ();
2766     }
2767   else
2768     return (&dummy > addr) ? 1 : -1;
2769 }
2770 main ()
2771 {
2772   exit (find_stack_direction() < 0);
2773 }
2774 EOF
2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2776 then
2777   ac_cv_c_stack_direction=1
2778 else
2779   echo "configure: failed program was:" >&5
2780   cat conftest.$ac_ext >&5
2781   rm -fr conftest*
2782   ac_cv_c_stack_direction=-1
2783 fi
2784 rm -fr conftest*
2785 fi
2786
2787 fi
2788
2789 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2790 cat >> confdefs.h <<EOF
2791 #define STACK_DIRECTION $ac_cv_c_stack_direction
2792 EOF
2793
2794 fi
2795
2796 for ac_func in getusershell sigaddset sigemptyset strerror strncasecmp
2797 do
2798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2799 echo "configure:2800: checking for $ac_func" >&5
2800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2801   echo $ac_n "(cached) $ac_c" 1>&6
2802 else
2803   cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 /* System header to define __stub macros and hopefully few prototypes,
2807     which can conflict with char $ac_func(); below.  */
2808 #include <assert.h>
2809 /* Override any gcc2 internal prototype to avoid an error.  */
2810 /* We use char because int might match the return type of a gcc2
2811     builtin and then its argument prototype would still apply.  */
2812 char $ac_func();
2813
2814 int main() {
2815
2816 /* The GNU C library defines this for functions which it implements
2817     to always fail with ENOSYS.  Some functions are actually named
2818     something starting with __ and the normal name is an alias.  */
2819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2820 choke me
2821 #else
2822 $ac_func();
2823 #endif
2824
2825 ; return 0; }
2826 EOF
2827 if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2828   rm -rf conftest*
2829   eval "ac_cv_func_$ac_func=yes"
2830 else
2831   echo "configure: failed program was:" >&5
2832   cat conftest.$ac_ext >&5
2833   rm -rf conftest*
2834   eval "ac_cv_func_$ac_func=no"
2835 fi
2836 rm -f conftest*
2837 fi
2838
2839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2840   echo "$ac_t""yes" 1>&6
2841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2842   cat >> confdefs.h <<EOF
2843 #define $ac_tr_func 1
2844 EOF
2845  
2846 else
2847   echo "$ac_t""no" 1>&6
2848 LIBOBJS="$LIBOBJS ${ac_func}.o"
2849 fi
2850 done
2851
2852
2853 MISSING="$LIBOBJS $ALLOCA " ;
2854 echo $ac_n "checking for atexit""... $ac_c" 1>&6
2855 echo "configure:2856: checking for atexit" >&5
2856 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
2857   echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859   cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 /* System header to define __stub macros and hopefully few prototypes,
2863     which can conflict with char atexit(); below.  */
2864 #include <assert.h>
2865 /* Override any gcc2 internal prototype to avoid an error.  */
2866 /* We use char because int might match the return type of a gcc2
2867     builtin and then its argument prototype would still apply.  */
2868 char atexit();
2869
2870 int main() {
2871
2872 /* The GNU C library defines this for functions which it implements
2873     to always fail with ENOSYS.  Some functions are actually named
2874     something starting with __ and the normal name is an alias.  */
2875 #if defined (__stub_atexit) || defined (__stub___atexit)
2876 choke me
2877 #else
2878 atexit();
2879 #endif
2880
2881 ; return 0; }
2882 EOF
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2884   rm -rf conftest*
2885   eval "ac_cv_func_atexit=yes"
2886 else
2887   echo "configure: failed program was:" >&5
2888   cat conftest.$ac_ext >&5
2889   rm -rf conftest*
2890   eval "ac_cv_func_atexit=no"
2891 fi
2892 rm -f conftest*
2893 fi
2894
2895 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
2896   echo "$ac_t""yes" 1>&6
2897   :
2898 else
2899   echo "$ac_t""no" 1>&6
2900 MISSING="${MISSING}atexit.o "; for ac_func in on_exit
2901 do
2902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_func" >&5
2904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2905   echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907   cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 /* System header to define __stub macros and hopefully few prototypes,
2911     which can conflict with char $ac_func(); below.  */
2912 #include <assert.h>
2913 /* Override any gcc2 internal prototype to avoid an error.  */
2914 /* We use char because int might match the return type of a gcc2
2915     builtin and then its argument prototype would still apply.  */
2916 char $ac_func();
2917
2918 int main() {
2919
2920 /* The GNU C library defines this for functions which it implements
2921     to always fail with ENOSYS.  Some functions are actually named
2922     something starting with __ and the normal name is an alias.  */
2923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2924 choke me
2925 #else
2926 $ac_func();
2927 #endif
2928
2929 ; return 0; }
2930 EOF
2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2932   rm -rf conftest*
2933   eval "ac_cv_func_$ac_func=yes"
2934 else
2935   echo "configure: failed program was:" >&5
2936   cat conftest.$ac_ext >&5
2937   rm -rf conftest*
2938   eval "ac_cv_func_$ac_func=no"
2939 fi
2940 rm -f conftest*
2941 fi
2942
2943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2944   echo "$ac_t""yes" 1>&6
2945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2946   cat >> confdefs.h <<EOF
2947 #define $ac_tr_func 1
2948 EOF
2949  
2950 else
2951   echo "$ac_t""no" 1>&6
2952 fi
2953 done
2954
2955 fi
2956
2957 echo $ac_n "checking for endutent""... $ac_c" 1>&6
2958 echo "configure:2959: checking for endutent" >&5
2959 if eval "test \"`echo '$''{'ac_cv_func_endutent'+set}'`\" = set"; then
2960   echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962   cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* System header to define __stub macros and hopefully few prototypes,
2966     which can conflict with char endutent(); below.  */
2967 #include <assert.h>
2968 /* Override any gcc2 internal prototype to avoid an error.  */
2969 /* We use char because int might match the return type of a gcc2
2970     builtin and then its argument prototype would still apply.  */
2971 char endutent();
2972
2973 int main() {
2974
2975 /* The GNU C library defines this for functions which it implements
2976     to always fail with ENOSYS.  Some functions are actually named
2977     something starting with __ and the normal name is an alias.  */
2978 #if defined (__stub_endutent) || defined (__stub___endutent)
2979 choke me
2980 #else
2981 endutent();
2982 #endif
2983
2984 ; return 0; }
2985 EOF
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2987   rm -rf conftest*
2988   eval "ac_cv_func_endutent=yes"
2989 else
2990   echo "configure: failed program was:" >&5
2991   cat conftest.$ac_ext >&5
2992   rm -rf conftest*
2993   eval "ac_cv_func_endutent=no"
2994 fi
2995 rm -f conftest*
2996 fi
2997
2998 if eval "test \"`echo '$ac_cv_func_'endutent`\" = yes"; then
2999   echo "$ac_t""yes" 1>&6
3000   :
3001 else
3002   echo "$ac_t""no" 1>&6
3003 MISSING="${MISSING}endutent.o "
3004 fi
3005
3006 echo $ac_n "checking for memcpy""... $ac_c" 1>&6
3007 echo "configure:3008: checking for memcpy" >&5
3008 if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
3009   echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011   cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 /* System header to define __stub macros and hopefully few prototypes,
3015     which can conflict with char memcpy(); below.  */
3016 #include <assert.h>
3017 /* Override any gcc2 internal prototype to avoid an error.  */
3018 /* We use char because int might match the return type of a gcc2
3019     builtin and then its argument prototype would still apply.  */
3020 char memcpy();
3021
3022 int main() {
3023
3024 /* The GNU C library defines this for functions which it implements
3025     to always fail with ENOSYS.  Some functions are actually named
3026     something starting with __ and the normal name is an alias.  */
3027 #if defined (__stub_memcpy) || defined (__stub___memcpy)
3028 choke me
3029 #else
3030 memcpy();
3031 #endif
3032
3033 ; return 0; }
3034 EOF
3035 if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3036   rm -rf conftest*
3037   eval "ac_cv_func_memcpy=yes"
3038 else
3039   echo "configure: failed program was:" >&5
3040   cat conftest.$ac_ext >&5
3041   rm -rf conftest*
3042   eval "ac_cv_func_memcpy=no"
3043 fi
3044 rm -f conftest*
3045 fi
3046
3047 if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
3048   echo "$ac_t""yes" 1>&6
3049   :
3050 else
3051   echo "$ac_t""no" 1>&6
3052 MISSING="${MISSING}memcpy.o "; for ac_func in bcopy
3053 do
3054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_func" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3057   echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059   cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* System header to define __stub macros and hopefully few prototypes,
3063     which can conflict with char $ac_func(); below.  */
3064 #include <assert.h>
3065 /* Override any gcc2 internal prototype to avoid an error.  */
3066 /* We use char because int might match the return type of a gcc2
3067     builtin and then its argument prototype would still apply.  */
3068 char $ac_func();
3069
3070 int main() {
3071
3072 /* The GNU C library defines this for functions which it implements
3073     to always fail with ENOSYS.  Some functions are actually named
3074     something starting with __ and the normal name is an alias.  */
3075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3076 choke me
3077 #else
3078 $ac_func();
3079 #endif
3080
3081 ; return 0; }
3082 EOF
3083 if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3084   rm -rf conftest*
3085   eval "ac_cv_func_$ac_func=yes"
3086 else
3087   echo "configure: failed program was:" >&5
3088   cat conftest.$ac_ext >&5
3089   rm -rf conftest*
3090   eval "ac_cv_func_$ac_func=no"
3091 fi
3092 rm -f conftest*
3093 fi
3094
3095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3096   echo "$ac_t""yes" 1>&6
3097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3098   cat >> confdefs.h <<EOF
3099 #define $ac_tr_func 1
3100 EOF
3101  
3102 else
3103   echo "$ac_t""no" 1>&6
3104 fi
3105 done
3106
3107 fi
3108
3109 echo $ac_n "checking for memset""... $ac_c" 1>&6
3110 echo "configure:3111: checking for memset" >&5
3111 if eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then
3112   echo $ac_n "(cached) $ac_c" 1>&6
3113 else
3114   cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 /* System header to define __stub macros and hopefully few prototypes,
3118     which can conflict with char memset(); below.  */
3119 #include <assert.h>
3120 /* Override any gcc2 internal prototype to avoid an error.  */
3121 /* We use char because int might match the return type of a gcc2
3122     builtin and then its argument prototype would still apply.  */
3123 char memset();
3124
3125 int main() {
3126
3127 /* The GNU C library defines this for functions which it implements
3128     to always fail with ENOSYS.  Some functions are actually named
3129     something starting with __ and the normal name is an alias.  */
3130 #if defined (__stub_memset) || defined (__stub___memset)
3131 choke me
3132 #else
3133 memset();
3134 #endif
3135
3136 ; return 0; }
3137 EOF
3138 if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3139   rm -rf conftest*
3140   eval "ac_cv_func_memset=yes"
3141 else
3142   echo "configure: failed program was:" >&5
3143   cat conftest.$ac_ext >&5
3144   rm -rf conftest*
3145   eval "ac_cv_func_memset=no"
3146 fi
3147 rm -f conftest*
3148 fi
3149
3150 if eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then
3151   echo "$ac_t""yes" 1>&6
3152   :
3153 else
3154   echo "$ac_t""no" 1>&6
3155 MISSING="${MISSING}memset.o "; for ac_func in bzero
3156 do
3157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_func" >&5
3159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3160   echo $ac_n "(cached) $ac_c" 1>&6
3161 else
3162   cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 /* System header to define __stub macros and hopefully few prototypes,
3166     which can conflict with char $ac_func(); below.  */
3167 #include <assert.h>
3168 /* Override any gcc2 internal prototype to avoid an error.  */
3169 /* We use char because int might match the return type of a gcc2
3170     builtin and then its argument prototype would still apply.  */
3171 char $ac_func();
3172
3173 int main() {
3174
3175 /* The GNU C library defines this for functions which it implements
3176     to always fail with ENOSYS.  Some functions are actually named
3177     something starting with __ and the normal name is an alias.  */
3178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3179 choke me
3180 #else
3181 $ac_func();
3182 #endif
3183
3184 ; return 0; }
3185 EOF
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3187   rm -rf conftest*
3188   eval "ac_cv_func_$ac_func=yes"
3189 else
3190   echo "configure: failed program was:" >&5
3191   cat conftest.$ac_ext >&5
3192   rm -rf conftest*
3193   eval "ac_cv_func_$ac_func=no"
3194 fi
3195 rm -f conftest*
3196 fi
3197
3198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3199   echo "$ac_t""yes" 1>&6
3200     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3201   cat >> confdefs.h <<EOF
3202 #define $ac_tr_func 1
3203 EOF
3204  
3205 else
3206   echo "$ac_t""no" 1>&6
3207 fi
3208 done
3209
3210 fi
3211
3212 echo $ac_n "checking for getcwd""... $ac_c" 1>&6
3213 echo "configure:3214: checking for getcwd" >&5
3214 if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
3215   echo $ac_n "(cached) $ac_c" 1>&6
3216 else
3217   cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 /* System header to define __stub macros and hopefully few prototypes,
3221     which can conflict with char getcwd(); below.  */
3222 #include <assert.h>
3223 /* Override any gcc2 internal prototype to avoid an error.  */
3224 /* We use char because int might match the return type of a gcc2
3225     builtin and then its argument prototype would still apply.  */
3226 char getcwd();
3227
3228 int main() {
3229
3230 /* The GNU C library defines this for functions which it implements
3231     to always fail with ENOSYS.  Some functions are actually named
3232     something starting with __ and the normal name is an alias.  */
3233 #if defined (__stub_getcwd) || defined (__stub___getcwd)
3234 choke me
3235 #else
3236 getcwd();
3237 #endif
3238
3239 ; return 0; }
3240 EOF
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3242   rm -rf conftest*
3243   eval "ac_cv_func_getcwd=yes"
3244 else
3245   echo "configure: failed program was:" >&5
3246   cat conftest.$ac_ext >&5
3247   rm -rf conftest*
3248   eval "ac_cv_func_getcwd=no"
3249 fi
3250 rm -f conftest*
3251 fi
3252
3253 if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
3254   echo "$ac_t""yes" 1>&6
3255   :
3256 else
3257   echo "$ac_t""no" 1>&6
3258 MISSING="${MISSING}getcwd.o "; for ac_func in getwd
3259 do
3260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_func" >&5
3262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3263   echo $ac_n "(cached) $ac_c" 1>&6
3264 else
3265   cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* System header to define __stub macros and hopefully few prototypes,
3269     which can conflict with char $ac_func(); below.  */
3270 #include <assert.h>
3271 /* Override any gcc2 internal prototype to avoid an error.  */
3272 /* We use char because int might match the return type of a gcc2
3273     builtin and then its argument prototype would still apply.  */
3274 char $ac_func();
3275
3276 int main() {
3277
3278 /* The GNU C library defines this for functions which it implements
3279     to always fail with ENOSYS.  Some functions are actually named
3280     something starting with __ and the normal name is an alias.  */
3281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3282 choke me
3283 #else
3284 $ac_func();
3285 #endif
3286
3287 ; return 0; }
3288 EOF
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3290   rm -rf conftest*
3291   eval "ac_cv_func_$ac_func=yes"
3292 else
3293   echo "configure: failed program was:" >&5
3294   cat conftest.$ac_ext >&5
3295   rm -rf conftest*
3296   eval "ac_cv_func_$ac_func=no"
3297 fi
3298 rm -f conftest*
3299 fi
3300
3301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3302   echo "$ac_t""yes" 1>&6
3303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3304   cat >> confdefs.h <<EOF
3305 #define $ac_tr_func 1
3306 EOF
3307  
3308 else
3309   echo "$ac_t""no" 1>&6
3310 fi
3311 done
3312
3313 fi
3314
3315 echo $ac_n "checking for getenv""... $ac_c" 1>&6
3316 echo "configure:3317: checking for getenv" >&5
3317 if eval "test \"`echo '$''{'ac_cv_func_getenv'+set}'`\" = set"; then
3318   echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320   cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* System header to define __stub macros and hopefully few prototypes,
3324     which can conflict with char getenv(); below.  */
3325 #include <assert.h>
3326 /* Override any gcc2 internal prototype to avoid an error.  */
3327 /* We use char because int might match the return type of a gcc2
3328     builtin and then its argument prototype would still apply.  */
3329 char getenv();
3330
3331 int main() {
3332
3333 /* The GNU C library defines this for functions which it implements
3334     to always fail with ENOSYS.  Some functions are actually named
3335     something starting with __ and the normal name is an alias.  */
3336 #if defined (__stub_getenv) || defined (__stub___getenv)
3337 choke me
3338 #else
3339 getenv();
3340 #endif
3341
3342 ; return 0; }
3343 EOF
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3345   rm -rf conftest*
3346   eval "ac_cv_func_getenv=yes"
3347 else
3348   echo "configure: failed program was:" >&5
3349   cat conftest.$ac_ext >&5
3350   rm -rf conftest*
3351   eval "ac_cv_func_getenv=no"
3352 fi
3353 rm -f conftest*
3354 fi
3355
3356 if eval "test \"`echo '$ac_cv_func_'getenv`\" = yes"; then
3357   echo "$ac_t""yes" 1>&6
3358   cat >> confdefs.h <<\EOF
3359 #define HAVE_GETENV 1
3360 EOF
3361
3362 else
3363   echo "$ac_t""no" 1>&6
3364 MISSING="${MISSING}env.o "
3365 fi
3366
3367 echo $ac_n "checking for getutline""... $ac_c" 1>&6
3368 echo "configure:3369: checking for getutline" >&5
3369 if eval "test \"`echo '$''{'ac_cv_func_getutline'+set}'`\" = set"; then
3370   echo $ac_n "(cached) $ac_c" 1>&6
3371 else
3372   cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 /* System header to define __stub macros and hopefully few prototypes,
3376     which can conflict with char getutline(); below.  */
3377 #include <assert.h>
3378 /* Override any gcc2 internal prototype to avoid an error.  */
3379 /* We use char because int might match the return type of a gcc2
3380     builtin and then its argument prototype would still apply.  */
3381 char getutline();
3382
3383 int main() {
3384
3385 /* The GNU C library defines this for functions which it implements
3386     to always fail with ENOSYS.  Some functions are actually named
3387     something starting with __ and the normal name is an alias.  */
3388 #if defined (__stub_getutline) || defined (__stub___getutline)
3389 choke me
3390 #else
3391 getutline();
3392 #endif
3393
3394 ; return 0; }
3395 EOF
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3397   rm -rf conftest*
3398   eval "ac_cv_func_getutline=yes"
3399 else
3400   echo "configure: failed program was:" >&5
3401   cat conftest.$ac_ext >&5
3402   rm -rf conftest*
3403   eval "ac_cv_func_getutline=no"
3404 fi
3405 rm -f conftest*
3406 fi
3407
3408 if eval "test \"`echo '$ac_cv_func_'getutline`\" = yes"; then
3409   echo "$ac_t""yes" 1>&6
3410   cat >> confdefs.h <<\EOF
3411 #define HAVE_GETUTLINE 1
3412 EOF
3413
3414 else
3415   echo "$ac_t""no" 1>&6
3416 MISSING="${MISSING}getutline.o "; for ac_func in ttyslot
3417 do
3418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3419 echo "configure:3420: checking for $ac_func" >&5
3420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3421   echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423   cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* System header to define __stub macros and hopefully few prototypes,
3427     which can conflict with char $ac_func(); below.  */
3428 #include <assert.h>
3429 /* Override any gcc2 internal prototype to avoid an error.  */
3430 /* We use char because int might match the return type of a gcc2
3431     builtin and then its argument prototype would still apply.  */
3432 char $ac_func();
3433
3434 int main() {
3435
3436 /* The GNU C library defines this for functions which it implements
3437     to always fail with ENOSYS.  Some functions are actually named
3438     something starting with __ and the normal name is an alias.  */
3439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3440 choke me
3441 #else
3442 $ac_func();
3443 #endif
3444
3445 ; return 0; }
3446 EOF
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3448   rm -rf conftest*
3449   eval "ac_cv_func_$ac_func=yes"
3450 else
3451   echo "configure: failed program was:" >&5
3452   cat conftest.$ac_ext >&5
3453   rm -rf conftest*
3454   eval "ac_cv_func_$ac_func=no"
3455 fi
3456 rm -f conftest*
3457 fi
3458
3459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3460   echo "$ac_t""yes" 1>&6
3461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3462   cat >> confdefs.h <<EOF
3463 #define $ac_tr_func 1
3464 EOF
3465  
3466 else
3467   echo "$ac_t""no" 1>&6
3468 fi
3469 done
3470
3471 fi
3472
3473 echo $ac_n "checking for pututline""... $ac_c" 1>&6
3474 echo "configure:3475: checking for pututline" >&5
3475 if eval "test \"`echo '$''{'ac_cv_func_pututline'+set}'`\" = set"; then
3476   echo $ac_n "(cached) $ac_c" 1>&6
3477 else
3478   cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 /* System header to define __stub macros and hopefully few prototypes,
3482     which can conflict with char pututline(); below.  */
3483 #include <assert.h>
3484 /* Override any gcc2 internal prototype to avoid an error.  */
3485 /* We use char because int might match the return type of a gcc2
3486     builtin and then its argument prototype would still apply.  */
3487 char pututline();
3488
3489 int main() {
3490
3491 /* The GNU C library defines this for functions which it implements
3492     to always fail with ENOSYS.  Some functions are actually named
3493     something starting with __ and the normal name is an alias.  */
3494 #if defined (__stub_pututline) || defined (__stub___pututline)
3495 choke me
3496 #else
3497 pututline();
3498 #endif
3499
3500 ; return 0; }
3501 EOF
3502 if { (eval echo configure:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3503   rm -rf conftest*
3504   eval "ac_cv_func_pututline=yes"
3505 else
3506   echo "configure: failed program was:" >&5
3507   cat conftest.$ac_ext >&5
3508   rm -rf conftest*
3509   eval "ac_cv_func_pututline=no"
3510 fi
3511 rm -f conftest*
3512 fi
3513
3514 if eval "test \"`echo '$ac_cv_func_'pututline`\" = yes"; then
3515   echo "$ac_t""yes" 1>&6
3516   :
3517 else
3518   echo "$ac_t""no" 1>&6
3519 MISSING="${MISSING}pututline.o "; for ac_func in ttyslot
3520 do
3521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3522 echo "configure:3523: checking for $ac_func" >&5
3523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3524   echo $ac_n "(cached) $ac_c" 1>&6
3525 else
3526   cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 /* System header to define __stub macros and hopefully few prototypes,
3530     which can conflict with char $ac_func(); below.  */
3531 #include <assert.h>
3532 /* Override any gcc2 internal prototype to avoid an error.  */
3533 /* We use char because int might match the return type of a gcc2
3534     builtin and then its argument prototype would still apply.  */
3535 char $ac_func();
3536
3537 int main() {
3538
3539 /* The GNU C library defines this for functions which it implements
3540     to always fail with ENOSYS.  Some functions are actually named
3541     something starting with __ and the normal name is an alias.  */
3542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3543 choke me
3544 #else
3545 $ac_func();
3546 #endif
3547
3548 ; return 0; }
3549 EOF
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3551   rm -rf conftest*
3552   eval "ac_cv_func_$ac_func=yes"
3553 else
3554   echo "configure: failed program was:" >&5
3555   cat conftest.$ac_ext >&5
3556   rm -rf conftest*
3557   eval "ac_cv_func_$ac_func=no"
3558 fi
3559 rm -f conftest*
3560 fi
3561
3562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3563   echo "$ac_t""yes" 1>&6
3564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3565   cat >> confdefs.h <<EOF
3566 #define $ac_tr_func 1
3567 EOF
3568  
3569 else
3570   echo "$ac_t""no" 1>&6
3571 fi
3572 done
3573
3574 fi
3575
3576 echo $ac_n "checking for setenv""... $ac_c" 1>&6
3577 echo "configure:3578: checking for setenv" >&5
3578 if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
3579   echo $ac_n "(cached) $ac_c" 1>&6
3580 else
3581   cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* System header to define __stub macros and hopefully few prototypes,
3585     which can conflict with char setenv(); below.  */
3586 #include <assert.h>
3587 /* Override any gcc2 internal prototype to avoid an error.  */
3588 /* We use char because int might match the return type of a gcc2
3589     builtin and then its argument prototype would still apply.  */
3590 char setenv();
3591
3592 int main() {
3593
3594 /* The GNU C library defines this for functions which it implements
3595     to always fail with ENOSYS.  Some functions are actually named
3596     something starting with __ and the normal name is an alias.  */
3597 #if defined (__stub_setenv) || defined (__stub___setenv)
3598 choke me
3599 #else
3600 setenv();
3601 #endif
3602
3603 ; return 0; }
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3606   rm -rf conftest*
3607   eval "ac_cv_func_setenv=yes"
3608 else
3609   echo "configure: failed program was:" >&5
3610   cat conftest.$ac_ext >&5
3611   rm -rf conftest*
3612   eval "ac_cv_func_setenv=no"
3613 fi
3614 rm -f conftest*
3615 fi
3616
3617 if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
3618   echo "$ac_t""yes" 1>&6
3619   cat >> confdefs.h <<\EOF
3620 #define HAVE_SETENV 1
3621 EOF
3622
3623 else
3624   echo "$ac_t""no" 1>&6
3625 MISSING="${MISSING}env.o "
3626 fi
3627
3628 echo $ac_n "checking for setegid""... $ac_c" 1>&6
3629 echo "configure:3630: checking for setegid" >&5
3630 if eval "test \"`echo '$''{'ac_cv_func_setegid'+set}'`\" = set"; then
3631   echo $ac_n "(cached) $ac_c" 1>&6
3632 else
3633   cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* System header to define __stub macros and hopefully few prototypes,
3637     which can conflict with char setegid(); below.  */
3638 #include <assert.h>
3639 /* Override any gcc2 internal prototype to avoid an error.  */
3640 /* We use char because int might match the return type of a gcc2
3641     builtin and then its argument prototype would still apply.  */
3642 char setegid();
3643
3644 int main() {
3645
3646 /* The GNU C library defines this for functions which it implements
3647     to always fail with ENOSYS.  Some functions are actually named
3648     something starting with __ and the normal name is an alias.  */
3649 #if defined (__stub_setegid) || defined (__stub___setegid)
3650 choke me
3651 #else
3652 setegid();
3653 #endif
3654
3655 ; return 0; }
3656 EOF
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3658   rm -rf conftest*
3659   eval "ac_cv_func_setegid=yes"
3660 else
3661   echo "configure: failed program was:" >&5
3662   cat conftest.$ac_ext >&5
3663   rm -rf conftest*
3664   eval "ac_cv_func_setegid=no"
3665 fi
3666 rm -f conftest*
3667 fi
3668
3669 if eval "test \"`echo '$ac_cv_func_'setegid`\" = yes"; then
3670   echo "$ac_t""yes" 1>&6
3671   :
3672 else
3673   echo "$ac_t""no" 1>&6
3674 MISSING="${MISSING}setegid.o "; for ac_func in setregid setresgid
3675 do
3676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3677 echo "configure:3678: checking for $ac_func" >&5
3678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3679   echo $ac_n "(cached) $ac_c" 1>&6
3680 else
3681   cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* System header to define __stub macros and hopefully few prototypes,
3685     which can conflict with char $ac_func(); below.  */
3686 #include <assert.h>
3687 /* Override any gcc2 internal prototype to avoid an error.  */
3688 /* We use char because int might match the return type of a gcc2
3689     builtin and then its argument prototype would still apply.  */
3690 char $ac_func();
3691
3692 int main() {
3693
3694 /* The GNU C library defines this for functions which it implements
3695     to always fail with ENOSYS.  Some functions are actually named
3696     something starting with __ and the normal name is an alias.  */
3697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3698 choke me
3699 #else
3700 $ac_func();
3701 #endif
3702
3703 ; return 0; }
3704 EOF
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3706   rm -rf conftest*
3707   eval "ac_cv_func_$ac_func=yes"
3708 else
3709   echo "configure: failed program was:" >&5
3710   cat conftest.$ac_ext >&5
3711   rm -rf conftest*
3712   eval "ac_cv_func_$ac_func=no"
3713 fi
3714 rm -f conftest*
3715 fi
3716
3717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3718   echo "$ac_t""yes" 1>&6
3719     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3720   cat >> confdefs.h <<EOF
3721 #define $ac_tr_func 1
3722 EOF
3723  
3724 else
3725   echo "$ac_t""no" 1>&6
3726 fi
3727 done
3728
3729 fi
3730
3731 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
3732 echo "configure:3733: checking for seteuid" >&5
3733 if eval "test \"`echo '$''{'ac_cv_func_seteuid'+set}'`\" = set"; then
3734   echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736   cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 /* System header to define __stub macros and hopefully few prototypes,
3740     which can conflict with char seteuid(); below.  */
3741 #include <assert.h>
3742 /* Override any gcc2 internal prototype to avoid an error.  */
3743 /* We use char because int might match the return type of a gcc2
3744     builtin and then its argument prototype would still apply.  */
3745 char seteuid();
3746
3747 int main() {
3748
3749 /* The GNU C library defines this for functions which it implements
3750     to always fail with ENOSYS.  Some functions are actually named
3751     something starting with __ and the normal name is an alias.  */
3752 #if defined (__stub_seteuid) || defined (__stub___seteuid)
3753 choke me
3754 #else
3755 seteuid();
3756 #endif
3757
3758 ; return 0; }
3759 EOF
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3761   rm -rf conftest*
3762   eval "ac_cv_func_seteuid=yes"
3763 else
3764   echo "configure: failed program was:" >&5
3765   cat conftest.$ac_ext >&5
3766   rm -rf conftest*
3767   eval "ac_cv_func_seteuid=no"
3768 fi
3769 rm -f conftest*
3770 fi
3771
3772 if eval "test \"`echo '$ac_cv_func_'seteuid`\" = yes"; then
3773   echo "$ac_t""yes" 1>&6
3774   :
3775 else
3776   echo "$ac_t""no" 1>&6
3777 MISSING="${MISSING}seteuid.o "; for ac_func in setreuid setresuid
3778 do
3779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3780 echo "configure:3781: checking for $ac_func" >&5
3781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3782   echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784   cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* System header to define __stub macros and hopefully few prototypes,
3788     which can conflict with char $ac_func(); below.  */
3789 #include <assert.h>
3790 /* Override any gcc2 internal prototype to avoid an error.  */
3791 /* We use char because int might match the return type of a gcc2
3792     builtin and then its argument prototype would still apply.  */
3793 char $ac_func();
3794
3795 int main() {
3796
3797 /* The GNU C library defines this for functions which it implements
3798     to always fail with ENOSYS.  Some functions are actually named
3799     something starting with __ and the normal name is an alias.  */
3800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3801 choke me
3802 #else
3803 $ac_func();
3804 #endif
3805
3806 ; return 0; }
3807 EOF
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3809   rm -rf conftest*
3810   eval "ac_cv_func_$ac_func=yes"
3811 else
3812   echo "configure: failed program was:" >&5
3813   cat conftest.$ac_ext >&5
3814   rm -rf conftest*
3815   eval "ac_cv_func_$ac_func=no"
3816 fi
3817 rm -f conftest*
3818 fi
3819
3820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3821   echo "$ac_t""yes" 1>&6
3822     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3823   cat >> confdefs.h <<EOF
3824 #define $ac_tr_func 1
3825 EOF
3826  
3827 else
3828   echo "$ac_t""no" 1>&6
3829 fi
3830 done
3831
3832 fi
3833
3834 echo $ac_n "checking for setutent""... $ac_c" 1>&6
3835 echo "configure:3836: checking for setutent" >&5
3836 if eval "test \"`echo '$''{'ac_cv_func_setutent'+set}'`\" = set"; then
3837   echo $ac_n "(cached) $ac_c" 1>&6
3838 else
3839   cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843     which can conflict with char setutent(); below.  */
3844 #include <assert.h>
3845 /* Override any gcc2 internal prototype to avoid an error.  */
3846 /* We use char because int might match the return type of a gcc2
3847     builtin and then its argument prototype would still apply.  */
3848 char setutent();
3849
3850 int main() {
3851
3852 /* The GNU C library defines this for functions which it implements
3853     to always fail with ENOSYS.  Some functions are actually named
3854     something starting with __ and the normal name is an alias.  */
3855 #if defined (__stub_setutent) || defined (__stub___setutent)
3856 choke me
3857 #else
3858 setutent();
3859 #endif
3860
3861 ; return 0; }
3862 EOF
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3864   rm -rf conftest*
3865   eval "ac_cv_func_setutent=yes"
3866 else
3867   echo "configure: failed program was:" >&5
3868   cat conftest.$ac_ext >&5
3869   rm -rf conftest*
3870   eval "ac_cv_func_setutent=no"
3871 fi
3872 rm -f conftest*
3873 fi
3874
3875 if eval "test \"`echo '$ac_cv_func_'setutent`\" = yes"; then
3876   echo "$ac_t""yes" 1>&6
3877   :
3878 else
3879   echo "$ac_t""no" 1>&6
3880 MISSING="${MISSING}setutent.o "
3881 fi
3882
3883 echo $ac_n "checking for sigprocmask""... $ac_c" 1>&6
3884 echo "configure:3885: checking for sigprocmask" >&5
3885 if eval "test \"`echo '$''{'ac_cv_func_sigprocmask'+set}'`\" = set"; then
3886   echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3888   cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 /* System header to define __stub macros and hopefully few prototypes,
3892     which can conflict with char sigprocmask(); below.  */
3893 #include <assert.h>
3894 /* Override any gcc2 internal prototype to avoid an error.  */
3895 /* We use char because int might match the return type of a gcc2
3896     builtin and then its argument prototype would still apply.  */
3897 char sigprocmask();
3898
3899 int main() {
3900
3901 /* The GNU C library defines this for functions which it implements
3902     to always fail with ENOSYS.  Some functions are actually named
3903     something starting with __ and the normal name is an alias.  */
3904 #if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
3905 choke me
3906 #else
3907 sigprocmask();
3908 #endif
3909
3910 ; return 0; }
3911 EOF
3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3913   rm -rf conftest*
3914   eval "ac_cv_func_sigprocmask=yes"
3915 else
3916   echo "configure: failed program was:" >&5
3917   cat conftest.$ac_ext >&5
3918   rm -rf conftest*
3919   eval "ac_cv_func_sigprocmask=no"
3920 fi
3921 rm -f conftest*
3922 fi
3923
3924 if eval "test \"`echo '$ac_cv_func_'sigprocmask`\" = yes"; then
3925   echo "$ac_t""yes" 1>&6
3926   :
3927 else
3928   echo "$ac_t""no" 1>&6
3929 MISSING="${MISSING}sigprocmask.o "; for ac_func in sigblock sigsetmask
3930 do
3931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3932 echo "configure:3933: checking for $ac_func" >&5
3933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3934   echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3936   cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3939 /* System header to define __stub macros and hopefully few prototypes,
3940     which can conflict with char $ac_func(); below.  */
3941 #include <assert.h>
3942 /* Override any gcc2 internal prototype to avoid an error.  */
3943 /* We use char because int might match the return type of a gcc2
3944     builtin and then its argument prototype would still apply.  */
3945 char $ac_func();
3946
3947 int main() {
3948
3949 /* The GNU C library defines this for functions which it implements
3950     to always fail with ENOSYS.  Some functions are actually named
3951     something starting with __ and the normal name is an alias.  */
3952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3953 choke me
3954 #else
3955 $ac_func();
3956 #endif
3957
3958 ; return 0; }
3959 EOF
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3961   rm -rf conftest*
3962   eval "ac_cv_func_$ac_func=yes"
3963 else
3964   echo "configure: failed program was:" >&5
3965   cat conftest.$ac_ext >&5
3966   rm -rf conftest*
3967   eval "ac_cv_func_$ac_func=no"
3968 fi
3969 rm -f conftest*
3970 fi
3971
3972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3973   echo "$ac_t""yes" 1>&6
3974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3975   cat >> confdefs.h <<EOF
3976 #define $ac_tr_func 1
3977 EOF
3978  
3979 else
3980   echo "$ac_t""no" 1>&6
3981 fi
3982 done
3983
3984 fi
3985
3986 echo $ac_n "checking for strchr""... $ac_c" 1>&6
3987 echo "configure:3988: checking for strchr" >&5
3988 if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
3989   echo $ac_n "(cached) $ac_c" 1>&6
3990 else
3991   cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 /* System header to define __stub macros and hopefully few prototypes,
3995     which can conflict with char strchr(); below.  */
3996 #include <assert.h>
3997 /* Override any gcc2 internal prototype to avoid an error.  */
3998 /* We use char because int might match the return type of a gcc2
3999     builtin and then its argument prototype would still apply.  */
4000 char strchr();
4001
4002 int main() {
4003
4004 /* The GNU C library defines this for functions which it implements
4005     to always fail with ENOSYS.  Some functions are actually named
4006     something starting with __ and the normal name is an alias.  */
4007 #if defined (__stub_strchr) || defined (__stub___strchr)
4008 choke me
4009 #else
4010 strchr();
4011 #endif
4012
4013 ; return 0; }
4014 EOF
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4016   rm -rf conftest*
4017   eval "ac_cv_func_strchr=yes"
4018 else
4019   echo "configure: failed program was:" >&5
4020   cat conftest.$ac_ext >&5
4021   rm -rf conftest*
4022   eval "ac_cv_func_strchr=no"
4023 fi
4024 rm -f conftest*
4025 fi
4026
4027 if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
4028   echo "$ac_t""yes" 1>&6
4029   :
4030 else
4031   echo "$ac_t""no" 1>&6
4032 MISSING="${MISSING}strchr.o "; for ac_func in index
4033 do
4034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4035 echo "configure:4036: checking for $ac_func" >&5
4036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4037   echo $ac_n "(cached) $ac_c" 1>&6
4038 else
4039   cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes,
4043     which can conflict with char $ac_func(); below.  */
4044 #include <assert.h>
4045 /* Override any gcc2 internal prototype to avoid an error.  */
4046 /* We use char because int might match the return type of a gcc2
4047     builtin and then its argument prototype would still apply.  */
4048 char $ac_func();
4049
4050 int main() {
4051
4052 /* The GNU C library defines this for functions which it implements
4053     to always fail with ENOSYS.  Some functions are actually named
4054     something starting with __ and the normal name is an alias.  */
4055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4056 choke me
4057 #else
4058 $ac_func();
4059 #endif
4060
4061 ; return 0; }
4062 EOF
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4064   rm -rf conftest*
4065   eval "ac_cv_func_$ac_func=yes"
4066 else
4067   echo "configure: failed program was:" >&5
4068   cat conftest.$ac_ext >&5
4069   rm -rf conftest*
4070   eval "ac_cv_func_$ac_func=no"
4071 fi
4072 rm -f conftest*
4073 fi
4074
4075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4076   echo "$ac_t""yes" 1>&6
4077     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4078   cat >> confdefs.h <<EOF
4079 #define $ac_tr_func 1
4080 EOF
4081  
4082 else
4083   echo "$ac_t""no" 1>&6
4084 fi
4085 done
4086
4087 fi
4088
4089 echo $ac_n "checking for strrchr""... $ac_c" 1>&6
4090 echo "configure:4091: checking for strrchr" >&5
4091 if eval "test \"`echo '$''{'ac_cv_func_strrchr'+set}'`\" = set"; then
4092   echo $ac_n "(cached) $ac_c" 1>&6
4093 else
4094   cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 /* System header to define __stub macros and hopefully few prototypes,
4098     which can conflict with char strrchr(); below.  */
4099 #include <assert.h>
4100 /* Override any gcc2 internal prototype to avoid an error.  */
4101 /* We use char because int might match the return type of a gcc2
4102     builtin and then its argument prototype would still apply.  */
4103 char strrchr();
4104
4105 int main() {
4106
4107 /* The GNU C library defines this for functions which it implements
4108     to always fail with ENOSYS.  Some functions are actually named
4109     something starting with __ and the normal name is an alias.  */
4110 #if defined (__stub_strrchr) || defined (__stub___strrchr)
4111 choke me
4112 #else
4113 strrchr();
4114 #endif
4115
4116 ; return 0; }
4117 EOF
4118 if { (eval echo configure:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4119   rm -rf conftest*
4120   eval "ac_cv_func_strrchr=yes"
4121 else
4122   echo "configure: failed program was:" >&5
4123   cat conftest.$ac_ext >&5
4124   rm -rf conftest*
4125   eval "ac_cv_func_strrchr=no"
4126 fi
4127 rm -f conftest*
4128 fi
4129
4130 if eval "test \"`echo '$ac_cv_func_'strrchr`\" = yes"; then
4131   echo "$ac_t""yes" 1>&6
4132   :
4133 else
4134   echo "$ac_t""no" 1>&6
4135 MISSING="${MISSING}strrchr.o "; for ac_func in rindex
4136 do
4137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4138 echo "configure:4139: checking for $ac_func" >&5
4139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4140   echo $ac_n "(cached) $ac_c" 1>&6
4141 else
4142   cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* System header to define __stub macros and hopefully few prototypes,
4146     which can conflict with char $ac_func(); below.  */
4147 #include <assert.h>
4148 /* Override any gcc2 internal prototype to avoid an error.  */
4149 /* We use char because int might match the return type of a gcc2
4150     builtin and then its argument prototype would still apply.  */
4151 char $ac_func();
4152
4153 int main() {
4154
4155 /* The GNU C library defines this for functions which it implements
4156     to always fail with ENOSYS.  Some functions are actually named
4157     something starting with __ and the normal name is an alias.  */
4158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4159 choke me
4160 #else
4161 $ac_func();
4162 #endif
4163
4164 ; return 0; }
4165 EOF
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4167   rm -rf conftest*
4168   eval "ac_cv_func_$ac_func=yes"
4169 else
4170   echo "configure: failed program was:" >&5
4171   cat conftest.$ac_ext >&5
4172   rm -rf conftest*
4173   eval "ac_cv_func_$ac_func=no"
4174 fi
4175 rm -f conftest*
4176 fi
4177
4178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4179   echo "$ac_t""yes" 1>&6
4180     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4181   cat >> confdefs.h <<EOF
4182 #define $ac_tr_func 1
4183 EOF
4184  
4185 else
4186   echo "$ac_t""no" 1>&6
4187 fi
4188 done
4189
4190 fi
4191
4192 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
4193 echo "configure:4194: checking for strtoul" >&5
4194 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
4195   echo $ac_n "(cached) $ac_c" 1>&6
4196 else
4197   cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4200 /* System header to define __stub macros and hopefully few prototypes,
4201     which can conflict with char strtoul(); below.  */
4202 #include <assert.h>
4203 /* Override any gcc2 internal prototype to avoid an error.  */
4204 /* We use char because int might match the return type of a gcc2
4205     builtin and then its argument prototype would still apply.  */
4206 char strtoul();
4207
4208 int main() {
4209
4210 /* The GNU C library defines this for functions which it implements
4211     to always fail with ENOSYS.  Some functions are actually named
4212     something starting with __ and the normal name is an alias.  */
4213 #if defined (__stub_strtoul) || defined (__stub___strtoul)
4214 choke me
4215 #else
4216 strtoul();
4217 #endif
4218
4219 ; return 0; }
4220 EOF
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4222   rm -rf conftest*
4223   eval "ac_cv_func_strtoul=yes"
4224 else
4225   echo "configure: failed program was:" >&5
4226   cat conftest.$ac_ext >&5
4227   rm -rf conftest*
4228   eval "ac_cv_func_strtoul=no"
4229 fi
4230 rm -f conftest*
4231 fi
4232
4233 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
4234   echo "$ac_t""yes" 1>&6
4235   :
4236 else
4237   echo "$ac_t""no" 1>&6
4238 MISSING="${MISSING}strtoul.o "
4239 fi
4240
4241 echo $ac_n "checking for sysconf""... $ac_c" 1>&6
4242 echo "configure:4243: checking for sysconf" >&5
4243 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
4244   echo $ac_n "(cached) $ac_c" 1>&6
4245 else
4246   cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* System header to define __stub macros and hopefully few prototypes,
4250     which can conflict with char sysconf(); below.  */
4251 #include <assert.h>
4252 /* Override any gcc2 internal prototype to avoid an error.  */
4253 /* We use char because int might match the return type of a gcc2
4254     builtin and then its argument prototype would still apply.  */
4255 char sysconf();
4256
4257 int main() {
4258
4259 /* The GNU C library defines this for functions which it implements
4260     to always fail with ENOSYS.  Some functions are actually named
4261     something starting with __ and the normal name is an alias.  */
4262 #if defined (__stub_sysconf) || defined (__stub___sysconf)
4263 choke me
4264 #else
4265 sysconf();
4266 #endif
4267
4268 ; return 0; }
4269 EOF
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4271   rm -rf conftest*
4272   eval "ac_cv_func_sysconf=yes"
4273 else
4274   echo "configure: failed program was:" >&5
4275   cat conftest.$ac_ext >&5
4276   rm -rf conftest*
4277   eval "ac_cv_func_sysconf=no"
4278 fi
4279 rm -f conftest*
4280 fi
4281
4282 if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
4283   echo "$ac_t""yes" 1>&6
4284   :
4285 else
4286   echo "$ac_t""no" 1>&6
4287 MISSING="${MISSING}sysconf.o "; for ac_func in getdtablesize
4288 do
4289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4290 echo "configure:4291: checking for $ac_func" >&5
4291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4292   echo $ac_n "(cached) $ac_c" 1>&6
4293 else
4294   cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 /* System header to define __stub macros and hopefully few prototypes,
4298     which can conflict with char $ac_func(); below.  */
4299 #include <assert.h>
4300 /* Override any gcc2 internal prototype to avoid an error.  */
4301 /* We use char because int might match the return type of a gcc2
4302     builtin and then its argument prototype would still apply.  */
4303 char $ac_func();
4304
4305 int main() {
4306
4307 /* The GNU C library defines this for functions which it implements
4308     to always fail with ENOSYS.  Some functions are actually named
4309     something starting with __ and the normal name is an alias.  */
4310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4311 choke me
4312 #else
4313 $ac_func();
4314 #endif
4315
4316 ; return 0; }
4317 EOF
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4319   rm -rf conftest*
4320   eval "ac_cv_func_$ac_func=yes"
4321 else
4322   echo "configure: failed program was:" >&5
4323   cat conftest.$ac_ext >&5
4324   rm -rf conftest*
4325   eval "ac_cv_func_$ac_func=no"
4326 fi
4327 rm -f conftest*
4328 fi
4329
4330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4331   echo "$ac_t""yes" 1>&6
4332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4333   cat >> confdefs.h <<EOF
4334 #define $ac_tr_func 1
4335 EOF
4336  
4337 else
4338   echo "$ac_t""no" 1>&6
4339 fi
4340 done
4341
4342 fi
4343
4344 echo $ac_n "checking for uname""... $ac_c" 1>&6
4345 echo "configure:4346: checking for uname" >&5
4346 if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
4347   echo $ac_n "(cached) $ac_c" 1>&6
4348 else
4349   cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 /* System header to define __stub macros and hopefully few prototypes,
4353     which can conflict with char uname(); below.  */
4354 #include <assert.h>
4355 /* Override any gcc2 internal prototype to avoid an error.  */
4356 /* We use char because int might match the return type of a gcc2
4357     builtin and then its argument prototype would still apply.  */
4358 char uname();
4359
4360 int main() {
4361
4362 /* The GNU C library defines this for functions which it implements
4363     to always fail with ENOSYS.  Some functions are actually named
4364     something starting with __ and the normal name is an alias.  */
4365 #if defined (__stub_uname) || defined (__stub___uname)
4366 choke me
4367 #else
4368 uname();
4369 #endif
4370
4371 ; return 0; }
4372 EOF
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4374   rm -rf conftest*
4375   eval "ac_cv_func_uname=yes"
4376 else
4377   echo "configure: failed program was:" >&5
4378   cat conftest.$ac_ext >&5
4379   rm -rf conftest*
4380   eval "ac_cv_func_uname=no"
4381 fi
4382 rm -f conftest*
4383 fi
4384
4385 if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
4386   echo "$ac_t""yes" 1>&6
4387   :
4388 else
4389   echo "$ac_t""no" 1>&6
4390 MISSING="${MISSING}uname.o "; for ac_func in gethostname
4391 do
4392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_func" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4395   echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4397   cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* System header to define __stub macros and hopefully few prototypes,
4401     which can conflict with char $ac_func(); below.  */
4402 #include <assert.h>
4403 /* Override any gcc2 internal prototype to avoid an error.  */
4404 /* We use char because int might match the return type of a gcc2
4405     builtin and then its argument prototype would still apply.  */
4406 char $ac_func();
4407
4408 int main() {
4409
4410 /* The GNU C library defines this for functions which it implements
4411     to always fail with ENOSYS.  Some functions are actually named
4412     something starting with __ and the normal name is an alias.  */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 choke me
4415 #else
4416 $ac_func();
4417 #endif
4418
4419 ; return 0; }
4420 EOF
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4422   rm -rf conftest*
4423   eval "ac_cv_func_$ac_func=yes"
4424 else
4425   echo "configure: failed program was:" >&5
4426   cat conftest.$ac_ext >&5
4427   rm -rf conftest*
4428   eval "ac_cv_func_$ac_func=no"
4429 fi
4430 rm -f conftest*
4431 fi
4432
4433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4434   echo "$ac_t""yes" 1>&6
4435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4436   cat >> confdefs.h <<EOF
4437 #define $ac_tr_func 1
4438 EOF
4439  
4440 else
4441   echo "$ac_t""no" 1>&6
4442 fi
4443 done
4444
4445 fi
4446
4447 echo $ac_n "checking for unsetenv""... $ac_c" 1>&6
4448 echo "configure:4449: checking for unsetenv" >&5
4449 if eval "test \"`echo '$''{'ac_cv_func_unsetenv'+set}'`\" = set"; then
4450   echo $ac_n "(cached) $ac_c" 1>&6
4451 else
4452   cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* System header to define __stub macros and hopefully few prototypes,
4456     which can conflict with char unsetenv(); below.  */
4457 #include <assert.h>
4458 /* Override any gcc2 internal prototype to avoid an error.  */
4459 /* We use char because int might match the return type of a gcc2
4460     builtin and then its argument prototype would still apply.  */
4461 char unsetenv();
4462
4463 int main() {
4464
4465 /* The GNU C library defines this for functions which it implements
4466     to always fail with ENOSYS.  Some functions are actually named
4467     something starting with __ and the normal name is an alias.  */
4468 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
4469 choke me
4470 #else
4471 unsetenv();
4472 #endif
4473
4474 ; return 0; }
4475 EOF
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4477   rm -rf conftest*
4478   eval "ac_cv_func_unsetenv=yes"
4479 else
4480   echo "configure: failed program was:" >&5
4481   cat conftest.$ac_ext >&5
4482   rm -rf conftest*
4483   eval "ac_cv_func_unsetenv=no"
4484 fi
4485 rm -f conftest*
4486 fi
4487
4488 if eval "test \"`echo '$ac_cv_func_'unsetenv`\" = yes"; then
4489   echo "$ac_t""yes" 1>&6
4490   cat >> confdefs.h <<\EOF
4491 #define HAVE_UNSETENV 1
4492 EOF
4493
4494 else
4495   echo "$ac_t""no" 1>&6
4496 MISSING="${MISSING}env.o "
4497 fi
4498
4499
4500
4501 echo $ac_n "checking for nonstandard gettimeofday""... $ac_c" 1>&6
4502 echo "configure:4503: checking for nonstandard gettimeofday" >&5
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506
4507 #if HAVE_SYS_TIME_H
4508 #include <sys/time.h>
4509 #endif /* HAVE_SYS_TIME_H */
4510 #if HAVE_UNISTD_H
4511 #include <unistd.h>
4512 #endif /* HAVE_UNISTD_H */
4513
4514 int main() {
4515 struct timeval tv;
4516 gettimeofday(&tv, NULL)
4517 ; return 0; }
4518 EOF
4519 if { (eval echo configure:4520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4520   rm -rf conftest*
4521   echo "$ac_t""no" 1>&6
4522 else
4523   echo "configure: failed program was:" >&5
4524   cat conftest.$ac_ext >&5
4525   rm -rf conftest*
4526   echo "$ac_t""maybe" 1>&6 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure"
4528 #include "confdefs.h"
4529
4530 #if HAVE_SYS_TIME_H
4531 #include <sys/time.h>
4532 #endif /* HAVE_SYS_TIME_H */
4533 #if HAVE_UNISTD_H
4534 #include <unistd.h>
4535 #endif /* HAVE_UNISTD_H */
4536
4537 int main() {
4538 struct timeval tv;
4539 gettimeofday(&tv)
4540 ; return 0; }
4541 EOF
4542 if { (eval echo configure:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543   rm -rf conftest*
4544   cat >> confdefs.h <<\EOF
4545 #define HAVE_ONE_ARG_GETTIMEOFDAY 1
4546 EOF
4547  echo "$ac_t""yes" 1>&6
4548 else
4549   echo "configure: failed program was:" >&5
4550   cat conftest.$ac_ext >&5
4551   rm -rf conftest*
4552   echo "$ac_t""no" 1>&6
4553 fi
4554 rm -f conftest*
4555 fi
4556 rm -f conftest*
4557
4558 # Munge out LOCALBIN and LOCALMAN in canonical (no bletch) form
4559 trap '' 1 2 15
4560 cat > confcache <<\EOF
4561 # This file is a shell script that caches the results of configure
4562 # tests run on this system so they can be shared between configure
4563 # scripts and configure runs.  It is not useful on other systems.
4564 # If it contains results you don't want to keep, you may remove or edit it.
4565 #
4566 # By default, configure uses ./config.cache as the cache file,
4567 # creating it if it does not exist already.  You can give configure
4568 # the --cache-file=FILE option to use a different cache file; that is
4569 # what configure does when it calls configure scripts in
4570 # subdirectories, so they share the cache.
4571 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4572 # config.status only pays attention to the cache file if you give it the
4573 # --recheck option to rerun configure.
4574 #
4575 EOF
4576 # The following way of writing the cache mishandles newlines in values,
4577 # but we know of no workaround that is simple, portable, and efficient.
4578 # So, don't put newlines in cache variables' values.
4579 # Ultrix sh set writes to stderr and can't be redirected directly,
4580 # and sets the high bit in the cache file unless we assign to the vars.
4581 (set) 2>&1 |
4582   case `(ac_space=' '; set) 2>&1` in
4583   *ac_space=\ *)
4584     # `set' does not quote correctly, so add quotes (double-quote substitution
4585     # turns \\\\ into \\, and sed turns \\ into \).
4586     sed -n \
4587       -e "s/'/'\\\\''/g" \
4588       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4589     ;;
4590   *)
4591     # `set' quotes correctly as required by POSIX, so do not add quotes.
4592     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4593     ;;
4594   esac >> confcache
4595 if cmp -s $cache_file confcache; then
4596   :
4597 else
4598   if test -w $cache_file; then
4599     echo "updating cache $cache_file"
4600     cat confcache > $cache_file
4601   else
4602     echo "not updating unwritable cache $cache_file"
4603   fi
4604 fi
4605 rm -f confcache
4606
4607 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4608
4609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4610 # Let make expand exec_prefix.
4611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4612
4613 # Any assignment to VPATH causes Sun make to only execute
4614 # the first set of double-colon rules, so remove it if not needed.
4615 # If there is a colon in the path, we need to keep it.
4616 if test "x$srcdir" = x.; then
4617   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4618 fi
4619
4620 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4621
4622 DEFS=-DHAVE_CONFIG_H
4623
4624 # Without the "./", some shells look in PATH for config.status.
4625 : ${CONFIG_STATUS=./config.status}
4626
4627 echo creating $CONFIG_STATUS
4628 rm -f $CONFIG_STATUS
4629 cat > $CONFIG_STATUS <<EOF
4630 #! /bin/sh
4631 # Generated automatically by configure.
4632 # Run this file to recreate the current configuration.
4633 # This directory was configured as follows,
4634 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4635 #
4636 # $0 $ac_configure_args
4637 #
4638 # Compiler output produced by configure, useful for debugging
4639 # configure, is in ./config.log if it exists.
4640
4641 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4642 for ac_option
4643 do
4644   case "\$ac_option" in
4645   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4646     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4647     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4648   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4649     echo "$CONFIG_STATUS generated by autoconf version 2.12"
4650     exit 0 ;;
4651   -help | --help | --hel | --he | --h)
4652     echo "\$ac_cs_usage"; exit 0 ;;
4653   *) echo "\$ac_cs_usage"; exit 1 ;;
4654   esac
4655 done
4656
4657 ac_given_srcdir=$srcdir
4658
4659 trap 'rm -fr `echo "configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4660 EOF
4661 cat >> $CONFIG_STATUS <<EOF
4662
4663 # Protect against being on the right side of a sed subst in config.status.
4664 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4665  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4666 $ac_vpsub
4667 $extrasub
4668 s%@CFLAGS@%$CFLAGS%g
4669 s%@CPPFLAGS@%$CPPFLAGS%g
4670 s%@CXXFLAGS@%$CXXFLAGS%g
4671 s%@DEFS@%$DEFS%g
4672 s%@LDFLAGS@%$LDFLAGS%g
4673 s%@LIBS@%$LIBS%g
4674 s%@exec_prefix@%$exec_prefix%g
4675 s%@prefix@%$prefix%g
4676 s%@program_transform_name@%$program_transform_name%g
4677 s%@bindir@%$bindir%g
4678 s%@sbindir@%$sbindir%g
4679 s%@libexecdir@%$libexecdir%g
4680 s%@datadir@%$datadir%g
4681 s%@sysconfdir@%$sysconfdir%g
4682 s%@sharedstatedir@%$sharedstatedir%g
4683 s%@localstatedir@%$localstatedir%g
4684 s%@libdir@%$libdir%g
4685 s%@includedir@%$includedir%g
4686 s%@oldincludedir@%$oldincludedir%g
4687 s%@infodir@%$infodir%g
4688 s%@mandir@%$mandir%g
4689 s%@ACCESS_FILE@%$ACCESS_FILE%g
4690 s%@LOCK_DIR@%$LOCK_DIR%g
4691 s%@CC@%$CC%g
4692 s%@CPP@%$CPP%g
4693 s%@LN_S@%$LN_S%g
4694 s%@RANLIB@%$RANLIB%g
4695 s%@YACC@%$YACC%g
4696 s%@CHOWN@%$CHOWN%g
4697 s%@SU@%$SU%g
4698 s%@ALT_SU@%$ALT_SU%g
4699 s%@SCHEME@%$SCHEME%g
4700 s%@LOGIN@%$LOGIN%g
4701 s%@FTPD@%$FTPD%g
4702 s%@INFTPD@%$INFTPD%g
4703 s%@EXISTS@%$EXISTS%g
4704 s%@MKDIR@%$MKDIR%g
4705 s%@LIBOBJS@%$LIBOBJS%g
4706 s%@ALLOCA@%$ALLOCA%g
4707 s%@MISSING@%$MISSING%g
4708
4709 CEOF
4710 EOF
4711
4712 cat >> $CONFIG_STATUS <<\EOF
4713
4714 # Split the substitutions into bite-sized pieces for seds with
4715 # small command number limits, like on Digital OSF/1 and HP-UX.
4716 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4717 ac_file=1 # Number of current file.
4718 ac_beg=1 # First line for current file.
4719 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4720 ac_more_lines=:
4721 ac_sed_cmds=""
4722 while $ac_more_lines; do
4723   if test $ac_beg -gt 1; then
4724     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4725   else
4726     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4727   fi
4728   if test ! -s conftest.s$ac_file; then
4729     ac_more_lines=false
4730     rm -f conftest.s$ac_file
4731   else
4732     if test -z "$ac_sed_cmds"; then
4733       ac_sed_cmds="sed -f conftest.s$ac_file"
4734     else
4735       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4736     fi
4737     ac_file=`expr $ac_file + 1`
4738     ac_beg=$ac_end
4739     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4740   fi
4741 done
4742 if test -z "$ac_sed_cmds"; then
4743   ac_sed_cmds=cat
4744 fi
4745 EOF
4746
4747 cat >> $CONFIG_STATUS <<EOF
4748
4749 CONFIG_FILES=\${CONFIG_FILES-"configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in"}
4750 EOF
4751 cat >> $CONFIG_STATUS <<\EOF
4752 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4753   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4754   case "$ac_file" in
4755   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4756        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4757   *) ac_file_in="${ac_file}.in" ;;
4758   esac
4759
4760   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4761
4762   # Remove last slash and all that follows it.  Not all systems have dirname.
4763   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4764   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4765     # The file is in a subdirectory.
4766     test ! -d "$ac_dir" && mkdir "$ac_dir"
4767     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4768     # A "../" for each directory in $ac_dir_suffix.
4769     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4770   else
4771     ac_dir_suffix= ac_dots=
4772   fi
4773
4774   case "$ac_given_srcdir" in
4775   .)  srcdir=.
4776       if test -z "$ac_dots"; then top_srcdir=.
4777       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4778   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4779   *) # Relative path.
4780     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4781     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4782   esac
4783
4784
4785   echo creating "$ac_file"
4786   rm -f "$ac_file"
4787   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4788   case "$ac_file" in
4789   *Makefile*) ac_comsub="1i\\
4790 # $configure_input" ;;
4791   *) ac_comsub= ;;
4792   esac
4793
4794   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4795   sed -e "$ac_comsub
4796 s%@configure_input@%$configure_input%g
4797 s%@srcdir@%$srcdir%g
4798 s%@top_srcdir@%$top_srcdir%g
4799 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4800 fi; done
4801 rm -f conftest.s*
4802
4803 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4804 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4805 #
4806 # ac_d sets the value in "#define NAME VALUE" lines.
4807 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4808 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4809 ac_dC='\3'
4810 ac_dD='%g'
4811 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4812 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4813 ac_uB='\([      ]\)%\1#\2define\3'
4814 ac_uC=' '
4815 ac_uD='\4%g'
4816 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4817 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4818 ac_eB='$%\1#\2define\3'
4819 ac_eC=' '
4820 ac_eD='%g'
4821
4822 if test "${CONFIG_HEADERS+set}" != set; then
4823 EOF
4824 cat >> $CONFIG_STATUS <<EOF
4825   CONFIG_HEADERS="config.h"
4826 EOF
4827 cat >> $CONFIG_STATUS <<\EOF
4828 fi
4829 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4830   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4831   case "$ac_file" in
4832   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4833        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4834   *) ac_file_in="${ac_file}.in" ;;
4835   esac
4836
4837   echo creating $ac_file
4838
4839   rm -f conftest.frag conftest.in conftest.out
4840   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4841   cat $ac_file_inputs > conftest.in
4842
4843 EOF
4844
4845 # Transform confdefs.h into a sed script conftest.vals that substitutes
4846 # the proper values into config.h.in to produce config.h.  And first:
4847 # Protect against being on the right side of a sed subst in config.status.
4848 # Protect against being in an unquoted here document in config.status.
4849 rm -f conftest.vals
4850 cat > conftest.hdr <<\EOF
4851 s/[\\&%]/\\&/g
4852 s%[\\$`]%\\&%g
4853 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4854 s%ac_d%ac_u%gp
4855 s%ac_u%ac_e%gp
4856 EOF
4857 sed -n -f conftest.hdr confdefs.h > conftest.vals
4858 rm -f conftest.hdr
4859
4860 # This sed command replaces #undef with comments.  This is necessary, for
4861 # example, in the case of _POSIX_SOURCE, which is predefined and required
4862 # on some systems where configure will not decide to define it.
4863 cat >> conftest.vals <<\EOF
4864 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4865 EOF
4866
4867 # Break up conftest.vals because some shells have a limit on
4868 # the size of here documents, and old seds have small limits too.
4869
4870 rm -f conftest.tail
4871 while :
4872 do
4873   ac_lines=`grep -c . conftest.vals`
4874   # grep -c gives empty output for an empty file on some AIX systems.
4875   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4876   # Write a limited-size here document to conftest.frag.
4877   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4878   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4879   echo 'CEOF
4880   sed -f conftest.frag conftest.in > conftest.out
4881   rm -f conftest.in
4882   mv conftest.out conftest.in
4883 ' >> $CONFIG_STATUS
4884   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4885   rm -f conftest.vals
4886   mv conftest.tail conftest.vals
4887 done
4888 rm -f conftest.vals
4889
4890 cat >> $CONFIG_STATUS <<\EOF
4891   rm -f conftest.frag conftest.h
4892   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4893   cat conftest.in >> conftest.h
4894   rm -f conftest.in
4895   if cmp -s $ac_file conftest.h 2>/dev/null; then
4896     echo "$ac_file is unchanged"
4897     rm -f conftest.h
4898   else
4899     # Remove last slash and all that follows it.  Not all systems have dirname.
4900       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4901       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4902       # The file is in a subdirectory.
4903       test ! -d "$ac_dir" && mkdir "$ac_dir"
4904     fi
4905     rm -f $ac_file
4906     mv conftest.h $ac_file
4907   fi
4908 fi; done
4909
4910 EOF
4911 cat >> $CONFIG_STATUS <<EOF
4912
4913 EOF
4914 cat >> $CONFIG_STATUS <<\EOF
4915
4916 exit 0
4917 EOF
4918 chmod +x $CONFIG_STATUS
4919 rm -fr confdefs* $ac_clean_files
4920 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4921
4922 sh configure.munger