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