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