122347Spst#! /bin/sh
222347Spst
322347Spst# Guess values for system-dependent variables and create Makefiles.
492906Smarkm# Generated automatically using autoconf version 2.13 
522347Spst# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
622347Spst#
722347Spst# This configure script is free software; the Free Software Foundation
822347Spst# gives unlimited permission to copy, distribute and modify it.
922347Spst
1022347Spst# Defaults:
1122347Spstac_help=
1222347Spstac_default_prefix=/usr/local
1322347Spst# Any additions from configure.in:
1422347Spstac_help="$ac_help
1529964Sache  --enable-access-file=FILENAME
1629964Sache                          Enable the OPIE access file FILENAME"
1722347Spstac_help="$ac_help
1829964Sache  --enable-server-md4     Use MD4 instead of MD5 for the server"
1929964Sacheac_help="$ac_help
2029964Sache  --disable-user-locking  Disable user locking
2129964Sache  --enable-user-locking[=DIR]
2229964Sache                          Put user lock files in DIR [/etc/opielocks]"
2329964Sacheac_help="$ac_help
2429964Sache  --enable-retype         Ask users to re-type their secret pass phrases"
2529964Sacheac_help="$ac_help
2629964Sache  --enable-su-star-check  Refuse to switch to disabled accounts"
2729964Sacheac_help="$ac_help
2829964Sache  --disable-new-prompts   Use more compatible (but less informative) prompts"
2929964Sacheac_help="$ac_help
3029964Sache  --enable-insecure-override
3129964Sache                          Allow users to override insecure checks"
3229964Sacheac_help="$ac_help
3322347Spst  --enable-anonymous-ftp  Enable anonymous FTP support"
3429964Sacheac_help="$ac_help
3529964Sache  --disable-utmp          Disable utmp logging"
3629964Sacheac_help="$ac_help
3729964Sache  --disable-wtmp          Disable wtmp logging"
3892906Smarkmac_help="$ac_help
3992906Smarkm  --enable-opieauto       Enable support for opieauto"
4022347Spst
4122347Spst# Initialize some variables set by options.
4222347Spst# The variables have the same names as the options, with
4322347Spst# dashes changed to underlines.
4422347Spstbuild=NONE
4522347Spstcache_file=./config.cache
4622347Spstexec_prefix=NONE
4722347Spsthost=NONE
4822347Spstno_create=
4922347Spstnonopt=NONE
5022347Spstno_recursion=
5122347Spstprefix=NONE
5222347Spstprogram_prefix=NONE
5322347Spstprogram_suffix=NONE
5422347Spstprogram_transform_name=s,x,x,
5522347Spstsilent=
5622347Spstsite=
5722347Spstsrcdir=
5822347Spsttarget=NONE
5922347Spstverbose=
6022347Spstx_includes=NONE
6122347Spstx_libraries=NONE
6222347Spstbindir='${exec_prefix}/bin'
6322347Spstsbindir='${exec_prefix}/sbin'
6422347Spstlibexecdir='${exec_prefix}/libexec'
6522347Spstdatadir='${prefix}/share'
6622347Spstsysconfdir='${prefix}/etc'
6722347Spstsharedstatedir='${prefix}/com'
6822347Spstlocalstatedir='${prefix}/var'
6922347Spstlibdir='${exec_prefix}/lib'
7022347Spstincludedir='${prefix}/include'
7122347Spstoldincludedir='/usr/include'
7222347Spstinfodir='${prefix}/info'
7322347Spstmandir='${prefix}/man'
7422347Spst
7522347Spst# Initialize some other variables.
7622347Spstsubdirs=
7722347SpstMFLAGS= MAKEFLAGS=
7892906SmarkmSHELL=${CONFIG_SHELL-/bin/sh}
7929964Sache# Maximum number of lines to put in a shell here document.
8029964Sacheac_max_here_lines=12
8122347Spst
8222347Spstac_prev=
8322347Spstfor ac_option
8422347Spstdo
8522347Spst
8622347Spst  # If the previous option needs an argument, assign it.
8722347Spst  if test -n "$ac_prev"; then
8822347Spst    eval "$ac_prev=\$ac_option"
8922347Spst    ac_prev=
9022347Spst    continue
9122347Spst  fi
9222347Spst
9322347Spst  case "$ac_option" in
9422347Spst  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
9522347Spst  *) ac_optarg= ;;
9622347Spst  esac
9722347Spst
9822347Spst  # Accept the important Cygnus configure options, so we can diagnose typos.
9922347Spst
10022347Spst  case "$ac_option" in
10122347Spst
10222347Spst  -bindir | --bindir | --bindi | --bind | --bin | --bi)
10322347Spst    ac_prev=bindir ;;
10422347Spst  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
10522347Spst    bindir="$ac_optarg" ;;
10622347Spst
10722347Spst  -build | --build | --buil | --bui | --bu)
10822347Spst    ac_prev=build ;;
10922347Spst  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
11022347Spst    build="$ac_optarg" ;;
11122347Spst
11222347Spst  -cache-file | --cache-file | --cache-fil | --cache-fi \
11322347Spst  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11422347Spst    ac_prev=cache_file ;;
11522347Spst  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11622347Spst  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11722347Spst    cache_file="$ac_optarg" ;;
11822347Spst
11922347Spst  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
12022347Spst    ac_prev=datadir ;;
12122347Spst  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
12222347Spst  | --da=*)
12322347Spst    datadir="$ac_optarg" ;;
12422347Spst
12522347Spst  -disable-* | --disable-*)
12622347Spst    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
12722347Spst    # Reject names that are not valid shell variable names.
12822347Spst    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
12922347Spst      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
13022347Spst    fi
13122347Spst    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
13222347Spst    eval "enable_${ac_feature}=no" ;;
13322347Spst
13422347Spst  -enable-* | --enable-*)
13522347Spst    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
13622347Spst    # Reject names that are not valid shell variable names.
13722347Spst    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
13822347Spst      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
13922347Spst    fi
14022347Spst    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
14122347Spst    case "$ac_option" in
14222347Spst      *=*) ;;
14322347Spst      *) ac_optarg=yes ;;
14422347Spst    esac
14522347Spst    eval "enable_${ac_feature}='$ac_optarg'" ;;
14622347Spst
14722347Spst  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
14822347Spst  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
14922347Spst  | --exec | --exe | --ex)
15022347Spst    ac_prev=exec_prefix ;;
15122347Spst  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
15222347Spst  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
15322347Spst  | --exec=* | --exe=* | --ex=*)
15422347Spst    exec_prefix="$ac_optarg" ;;
15522347Spst
15622347Spst  -gas | --gas | --ga | --g)
15722347Spst    # Obsolete; use --with-gas.
15822347Spst    with_gas=yes ;;
15922347Spst
16022347Spst  -help | --help | --hel | --he)
16122347Spst    # Omit some internal or obsolete options to make the list less imposing.
16222347Spst    # This message is too long to be a string in the A/UX 3.1 sh.
16322347Spst    cat << EOF
16422347SpstUsage: configure [options] [host]
16522347SpstOptions: [defaults in brackets after descriptions]
16622347SpstConfiguration:
16722347Spst  --cache-file=FILE       cache test results in FILE
16822347Spst  --help                  print this message
16922347Spst  --no-create             do not create output files
17022347Spst  --quiet, --silent       do not print \`checking...' messages
17122347Spst  --version               print the version of autoconf that created configure
17222347SpstDirectory and file names:
17322347Spst  --prefix=PREFIX         install architecture-independent files in PREFIX
17422347Spst                          [$ac_default_prefix]
17522347Spst  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
17622347Spst                          [same as prefix]
17722347Spst  --bindir=DIR            user executables in DIR [EPREFIX/bin]
17822347Spst  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
17922347Spst  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
18022347Spst  --datadir=DIR           read-only architecture-independent data in DIR
18122347Spst                          [PREFIX/share]
18222347Spst  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
18322347Spst  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
18422347Spst                          [PREFIX/com]
18522347Spst  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
18622347Spst  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
18722347Spst  --includedir=DIR        C header files in DIR [PREFIX/include]
18822347Spst  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
18922347Spst  --infodir=DIR           info documentation in DIR [PREFIX/info]
19022347Spst  --mandir=DIR            man documentation in DIR [PREFIX/man]
19122347Spst  --srcdir=DIR            find the sources in DIR [configure dir or ..]
19222347Spst  --program-prefix=PREFIX prepend PREFIX to installed program names
19322347Spst  --program-suffix=SUFFIX append SUFFIX to installed program names
19422347Spst  --program-transform-name=PROGRAM
19522347Spst                          run sed PROGRAM on installed program names
19622347SpstEOF
19722347Spst    cat << EOF
19822347SpstHost type:
19922347Spst  --build=BUILD           configure for building on BUILD [BUILD=HOST]
20022347Spst  --host=HOST             configure for HOST [guessed]
20122347Spst  --target=TARGET         configure for TARGET [TARGET=HOST]
20222347SpstFeatures and packages:
20322347Spst  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
20422347Spst  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
20522347Spst  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
20622347Spst  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
20722347Spst  --x-includes=DIR        X include files are in DIR
20822347Spst  --x-libraries=DIR       X library files are in DIR
20922347SpstEOF
21022347Spst    if test -n "$ac_help"; then
21122347Spst      echo "--enable and --with options recognized:$ac_help"
21222347Spst    fi
21322347Spst    exit 0 ;;
21422347Spst
21522347Spst  -host | --host | --hos | --ho)
21622347Spst    ac_prev=host ;;
21722347Spst  -host=* | --host=* | --hos=* | --ho=*)
21822347Spst    host="$ac_optarg" ;;
21922347Spst
22022347Spst  -includedir | --includedir | --includedi | --included | --include \
22122347Spst  | --includ | --inclu | --incl | --inc)
22222347Spst    ac_prev=includedir ;;
22322347Spst  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
22422347Spst  | --includ=* | --inclu=* | --incl=* | --inc=*)
22522347Spst    includedir="$ac_optarg" ;;
22622347Spst
22722347Spst  -infodir | --infodir | --infodi | --infod | --info | --inf)
22822347Spst    ac_prev=infodir ;;
22922347Spst  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
23022347Spst    infodir="$ac_optarg" ;;
23122347Spst
23222347Spst  -libdir | --libdir | --libdi | --libd)
23322347Spst    ac_prev=libdir ;;
23422347Spst  -libdir=* | --libdir=* | --libdi=* | --libd=*)
23522347Spst    libdir="$ac_optarg" ;;
23622347Spst
23722347Spst  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
23822347Spst  | --libexe | --libex | --libe)
23922347Spst    ac_prev=libexecdir ;;
24022347Spst  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
24122347Spst  | --libexe=* | --libex=* | --libe=*)
24222347Spst    libexecdir="$ac_optarg" ;;
24322347Spst
24422347Spst  -localstatedir | --localstatedir | --localstatedi | --localstated \
24522347Spst  | --localstate | --localstat | --localsta | --localst \
24622347Spst  | --locals | --local | --loca | --loc | --lo)
24722347Spst    ac_prev=localstatedir ;;
24822347Spst  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
24922347Spst  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
25022347Spst  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
25122347Spst    localstatedir="$ac_optarg" ;;
25222347Spst
25322347Spst  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
25422347Spst    ac_prev=mandir ;;
25522347Spst  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
25622347Spst    mandir="$ac_optarg" ;;
25722347Spst
25822347Spst  -nfp | --nfp | --nf)
25922347Spst    # Obsolete; use --without-fp.
26022347Spst    with_fp=no ;;
26122347Spst
26222347Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
26322347Spst  | --no-cr | --no-c)
26422347Spst    no_create=yes ;;
26522347Spst
26622347Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
26722347Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
26822347Spst    no_recursion=yes ;;
26922347Spst
27022347Spst  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
27122347Spst  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
27222347Spst  | --oldin | --oldi | --old | --ol | --o)
27322347Spst    ac_prev=oldincludedir ;;
27422347Spst  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
27522347Spst  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
27622347Spst  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
27722347Spst    oldincludedir="$ac_optarg" ;;
27822347Spst
27922347Spst  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28022347Spst    ac_prev=prefix ;;
28122347Spst  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28222347Spst    prefix="$ac_optarg" ;;
28322347Spst
28422347Spst  -program-prefix | --program-prefix | --program-prefi | --program-pref \
28522347Spst  | --program-pre | --program-pr | --program-p)
28622347Spst    ac_prev=program_prefix ;;
28722347Spst  -program-prefix=* | --program-prefix=* | --program-prefi=* \
28822347Spst  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
28922347Spst    program_prefix="$ac_optarg" ;;
29022347Spst
29122347Spst  -program-suffix | --program-suffix | --program-suffi | --program-suff \
29222347Spst  | --program-suf | --program-su | --program-s)
29322347Spst    ac_prev=program_suffix ;;
29422347Spst  -program-suffix=* | --program-suffix=* | --program-suffi=* \
29522347Spst  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
29622347Spst    program_suffix="$ac_optarg" ;;
29722347Spst
29822347Spst  -program-transform-name | --program-transform-name \
29922347Spst  | --program-transform-nam | --program-transform-na \
30022347Spst  | --program-transform-n | --program-transform- \
30122347Spst  | --program-transform | --program-transfor \
30222347Spst  | --program-transfo | --program-transf \
30322347Spst  | --program-trans | --program-tran \
30422347Spst  | --progr-tra | --program-tr | --program-t)
30522347Spst    ac_prev=program_transform_name ;;
30622347Spst  -program-transform-name=* | --program-transform-name=* \
30722347Spst  | --program-transform-nam=* | --program-transform-na=* \
30822347Spst  | --program-transform-n=* | --program-transform-=* \
30922347Spst  | --program-transform=* | --program-transfor=* \
31022347Spst  | --program-transfo=* | --program-transf=* \
31122347Spst  | --program-trans=* | --program-tran=* \
31222347Spst  | --progr-tra=* | --program-tr=* | --program-t=*)
31322347Spst    program_transform_name="$ac_optarg" ;;
31422347Spst
31522347Spst  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31622347Spst  | -silent | --silent | --silen | --sile | --sil)
31722347Spst    silent=yes ;;
31822347Spst
31922347Spst  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
32022347Spst    ac_prev=sbindir ;;
32122347Spst  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
32222347Spst  | --sbi=* | --sb=*)
32322347Spst    sbindir="$ac_optarg" ;;
32422347Spst
32522347Spst  -sharedstatedir | --sharedstatedir | --sharedstatedi \
32622347Spst  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
32722347Spst  | --sharedst | --shareds | --shared | --share | --shar \
32822347Spst  | --sha | --sh)
32922347Spst    ac_prev=sharedstatedir ;;
33022347Spst  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
33122347Spst  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
33222347Spst  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
33322347Spst  | --sha=* | --sh=*)
33422347Spst    sharedstatedir="$ac_optarg" ;;
33522347Spst
33622347Spst  -site | --site | --sit)
33722347Spst    ac_prev=site ;;
33822347Spst  -site=* | --site=* | --sit=*)
33922347Spst    site="$ac_optarg" ;;
34022347Spst
34122347Spst  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34222347Spst    ac_prev=srcdir ;;
34322347Spst  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34422347Spst    srcdir="$ac_optarg" ;;
34522347Spst
34622347Spst  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
34722347Spst  | --syscon | --sysco | --sysc | --sys | --sy)
34822347Spst    ac_prev=sysconfdir ;;
34922347Spst  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
35022347Spst  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
35122347Spst    sysconfdir="$ac_optarg" ;;
35222347Spst
35322347Spst  -target | --target | --targe | --targ | --tar | --ta | --t)
35422347Spst    ac_prev=target ;;
35522347Spst  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
35622347Spst    target="$ac_optarg" ;;
35722347Spst
35822347Spst  -v | -verbose | --verbose | --verbos | --verbo | --verb)
35922347Spst    verbose=yes ;;
36022347Spst
36122347Spst  -version | --version | --versio | --versi | --vers)
36292906Smarkm    echo "configure generated by autoconf version 2.13"
36322347Spst    exit 0 ;;
36422347Spst
36522347Spst  -with-* | --with-*)
36622347Spst    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
36722347Spst    # Reject names that are not valid shell variable names.
36822347Spst    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
36922347Spst      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
37022347Spst    fi
37122347Spst    ac_package=`echo $ac_package| sed 's/-/_/g'`
37222347Spst    case "$ac_option" in
37322347Spst      *=*) ;;
37422347Spst      *) ac_optarg=yes ;;
37522347Spst    esac
37622347Spst    eval "with_${ac_package}='$ac_optarg'" ;;
37722347Spst
37822347Spst  -without-* | --without-*)
37922347Spst    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
38022347Spst    # Reject names that are not valid shell variable names.
38122347Spst    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
38222347Spst      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
38322347Spst    fi
38422347Spst    ac_package=`echo $ac_package| sed 's/-/_/g'`
38522347Spst    eval "with_${ac_package}=no" ;;
38622347Spst
38722347Spst  --x)
38822347Spst    # Obsolete; use --with-x.
38922347Spst    with_x=yes ;;
39022347Spst
39122347Spst  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
39222347Spst  | --x-incl | --x-inc | --x-in | --x-i)
39322347Spst    ac_prev=x_includes ;;
39422347Spst  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
39522347Spst  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
39622347Spst    x_includes="$ac_optarg" ;;
39722347Spst
39822347Spst  -x-libraries | --x-libraries | --x-librarie | --x-librari \
39922347Spst  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
40022347Spst    ac_prev=x_libraries ;;
40122347Spst  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
40222347Spst  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
40322347Spst    x_libraries="$ac_optarg" ;;
40422347Spst
40522347Spst  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
40622347Spst    ;;
40722347Spst
40822347Spst  *)
40922347Spst    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
41022347Spst      echo "configure: warning: $ac_option: invalid host type" 1>&2
41122347Spst    fi
41222347Spst    if test "x$nonopt" != xNONE; then
41322347Spst      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
41422347Spst    fi
41522347Spst    nonopt="$ac_option"
41622347Spst    ;;
41722347Spst
41822347Spst  esac
41922347Spstdone
42022347Spst
42122347Spstif test -n "$ac_prev"; then
42222347Spst  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
42322347Spstfi
42422347Spst
42522347Spsttrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
42622347Spst
42722347Spst# File descriptor usage:
42822347Spst# 0 standard input
42922347Spst# 1 file creation
43022347Spst# 2 errors and warnings
43122347Spst# 3 some systems may open it to /dev/tty
43222347Spst# 4 used on the Kubota Titan
43322347Spst# 6 checking for... messages and results
43422347Spst# 5 compiler messages saved in config.log
43522347Spstif test "$silent" = yes; then
43622347Spst  exec 6>/dev/null
43722347Spstelse
43822347Spst  exec 6>&1
43922347Spstfi
44022347Spstexec 5>./config.log
44122347Spst
44222347Spstecho "\
44322347SpstThis file contains any messages produced by compilers while
44422347Spstrunning configure, to aid debugging if configure makes a mistake.
44522347Spst" 1>&5
44622347Spst
44722347Spst# Strip out --no-create and --no-recursion so they do not pile up.
44822347Spst# Also quote any args containing shell metacharacters.
44922347Spstac_configure_args=
45022347Spstfor ac_arg
45122347Spstdo
45222347Spst  case "$ac_arg" in
45322347Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
45422347Spst  | --no-cr | --no-c) ;;
45522347Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
45622347Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
45722347Spst  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
45822347Spst  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
45922347Spst  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
46022347Spst  esac
46122347Spstdone
46222347Spst
46322347Spst# NLS nuisances.
46429964Sache# Only set these to C if already set.  These must not be set unconditionally
46529964Sache# because not all systems understand e.g. LANG=C (notably SCO).
46629964Sache# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
46729964Sache# Non-C LC_CTYPE values break the ctype check.
46829964Sacheif test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
46922347Spstif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
47029964Sacheif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
47129964Sacheif test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
47222347Spst
47322347Spst# confdefs.h avoids OS command line length limits that DEFS can exceed.
47422347Spstrm -rf conftest* confdefs.h
47522347Spst# AIX cpp loses on an empty file, so make sure it contains at least a newline.
47622347Spstecho > confdefs.h
47722347Spst
47822347Spst# A filename unique to this package, relative to the directory that
47922347Spst# configure is in, which we can look for to find out if srcdir is correct.
48022347Spstac_unique_file=README
48122347Spst
48222347Spst# Find the source files, if location was not specified.
48322347Spstif test -z "$srcdir"; then
48422347Spst  ac_srcdir_defaulted=yes
48522347Spst  # Try the directory containing this script, then its parent.
48622347Spst  ac_prog=$0
48722347Spst  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
48822347Spst  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
48922347Spst  srcdir=$ac_confdir
49022347Spst  if test ! -r $srcdir/$ac_unique_file; then
49122347Spst    srcdir=..
49222347Spst  fi
49322347Spstelse
49422347Spst  ac_srcdir_defaulted=no
49522347Spstfi
49622347Spstif test ! -r $srcdir/$ac_unique_file; then
49722347Spst  if test "$ac_srcdir_defaulted" = yes; then
49822347Spst    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
49922347Spst  else
50022347Spst    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
50122347Spst  fi
50222347Spstfi
50322347Spstsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
50422347Spst
50522347Spst# Prefer explicitly selected file to automatically selected ones.
50622347Spstif test -z "$CONFIG_SITE"; then
50722347Spst  if test "x$prefix" != xNONE; then
50822347Spst    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
50922347Spst  else
51022347Spst    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
51122347Spst  fi
51222347Spstfi
51322347Spstfor ac_site_file in $CONFIG_SITE; do
51422347Spst  if test -r "$ac_site_file"; then
51522347Spst    echo "loading site script $ac_site_file"
51622347Spst    . "$ac_site_file"
51722347Spst  fi
51822347Spstdone
51922347Spst
52022347Spstif test -r "$cache_file"; then
52122347Spst  echo "loading cache $cache_file"
52222347Spst  . $cache_file
52322347Spstelse
52422347Spst  echo "creating cache $cache_file"
52522347Spst  > $cache_file
52622347Spstfi
52722347Spst
52822347Spstac_ext=c
52922347Spst# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
53022347Spstac_cpp='$CPP $CPPFLAGS'
53122347Spstac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
53292906Smarkmac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
53329964Sachecross_compiling=$ac_cv_prog_cc_cross
53422347Spst
53592906Smarkmac_exeext=
53692906Smarkmac_objext=o
53722347Spstif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
53822347Spst  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
53922347Spst  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
54022347Spst    ac_n= ac_c='
54122347Spst' ac_t='	'
54222347Spst  else
54322347Spst    ac_n=-n ac_c= ac_t=
54422347Spst  fi
54522347Spstelse
54622347Spst  ac_n= ac_c='\c' ac_t=
54722347Spstfi
54822347Spst
54922347Spst
55022347Spst
55122347Spst# Check whether --enable-access-file or --disable-access-file was given.
55222347Spstif test "${enable_access_file+set}" = set; then
55322347Spst  enableval="$enable_access_file"
55422347Spst  cat >> confdefs.h <<EOF
55522347Spst#define PATH_ACCESS_FILE "$enable_access_file"
55622347SpstEOF
55722347Spst echo "Using the access file in $enable_access_file -- don't say we didn't warn you!"
55822347Spstfi
55922347Spst
56029964SacheACCESS_FILE="$enable_access_file"
56129964Sache
56229964Sache# Check whether --enable-server-md4 or --disable-server-md4 was given.
56329964Sacheif test "${enable_server_md4+set}" = set; then
56429964Sache  enableval="$enable_server_md4"
56529964Sache  cat >> confdefs.h <<\EOF
56629964Sache#define MDX 4
56729964SacheEOF
56829964Sache
56929964Sacheelse
57029964Sache  cat >> confdefs.h <<\EOF
57129964Sache#define MDX 5
57229964SacheEOF
57329964Sache
57429964Sachefi
57529964Sache
57629964Sache
57729964Sache# Check whether --enable-user-locking or --disable-user-locking was given.
57829964Sacheif test "${enable_user_locking+set}" = set; then
57929964Sache  enableval="$enable_user_locking"
58029964Sache  :
58129964Sachefi
58229964Sache
58359118Skrisif test "$enable_user_locking" != no;
58429964Sachethen
58529964Sache  if test -z "$enable_user_locking"
58629964Sache  then
58729964Sache    cat >> confdefs.h <<\EOF
58829964Sache#define OPIE_LOCK_DIR "/etc/opielocks"
58929964SacheEOF
59029964Sache
59159118Skris    LOCK_DIR="/etc/opielocks"
59229964Sache  else
59329964Sache    cat >> confdefs.h <<EOF
59429964Sache#define OPIE_LOCK_DIR "$enable_user_locking"
59529964SacheEOF
59629964Sache
59759118Skris    LOCK_DIR="$enable_user_locking"
59829964Sache  fi
59929964Sachefi
60029964Sache
60129964Sache
60229964Sache# Check whether --enable-retype or --disable-retype was given.
60329964Sacheif test "${enable_retype+set}" = set; then
60429964Sache  enableval="$enable_retype"
60529964Sache  cat >> confdefs.h <<\EOF
60629964Sache#define RETYPE 1
60729964SacheEOF
60829964Sache
60929964Sachefi
61029964Sache
61129964Sache# Check whether --enable-su-star-check or --disable-su-star-check was given.
61229964Sacheif test "${enable_su_star_check+set}" = set; then
61329964Sache  enableval="$enable_su_star_check"
61429964Sache  cat >> confdefs.h <<\EOF
61529964Sache#define SU_STAR_CHECK 1
61629964SacheEOF
61729964Sache
61829964Sachefi
61929964Sache
62029964Sache# Check whether --enable-new-prompts or --disable-new-prompts was given.
62129964Sacheif test "${enable_new_prompts+set}" = set; then
62229964Sache  enableval="$enable_new_prompts"
62329964Sache  :
62429964Sacheelse
62529964Sache  cat >> confdefs.h <<\EOF
62629964Sache#define NEW_PROMPTS 1
62729964SacheEOF
62829964Sache
62929964Sachefi
63029964Sache
63129964Sache# Check whether --enable-insecure-override or --disable-insecure-override was given.
63229964Sacheif test "${enable_insecure_override+set}" = set; then
63329964Sache  enableval="$enable_insecure_override"
63429964Sache  cat >> confdefs.h <<\EOF
63529964Sache#define INSECURE_OVERRIDE 1
63629964SacheEOF
63729964Sache
63829964Sachefi
63929964Sache
64022347Spst# Check whether --enable-anonymous-ftp or --disable-anonymous-ftp was given.
64122347Spstif test "${enable_anonymous_ftp+set}" = set; then
64222347Spst  enableval="$enable_anonymous_ftp"
64322347Spst  cat >> confdefs.h <<\EOF
64422347Spst#define DOANONYMOUS 1
64522347SpstEOF
64692906Smarkm echo "enabling anonymous FTP support in ftp -- don't say we didn't warn you!"
64722347Spstfi
64822347Spst
64929964Sache# Check whether --enable-utmp or --disable-utmp was given.
65029964Sacheif test "${enable_utmp+set}" = set; then
65129964Sache  enableval="$enable_utmp"
65229964Sache  cat >> confdefs.h <<\EOF
65329964Sache#define DISABLE_UTMP 1
65429964SacheEOF
65592906Smarkm echo "disabling utmp logging"
65629964Sachefi
65722347Spst
65829964Sache# Check whether --enable-wtmp or --disable-wtmp was given.
65929964Sacheif test "${enable_wtmp+set}" = set; then
66029964Sache  enableval="$enable_wtmp"
66129964Sache  cat >> confdefs.h <<\EOF
66292906Smarkm#define DISABLE_WTMP 1
66329964SacheEOF
66492906Smarkm echo "disabling wtmp logging"
66529964Sachefi
66629964Sache
66792906Smarkm# Check whether --enable-opieauto or --disable-opieauto was given.
66892906Smarkmif test "${enable_opieauto+set}" = set; then
66992906Smarkm  enableval="$enable_opieauto"
67092906Smarkm  cat >> confdefs.h <<\EOF
67192906Smarkm#define OPIEAUTO 1
67292906SmarkmEOF
67392906Smarkm OPIEAUTO=opieauto; echo "enabling opieauto support"
67492906Smarkmfi
67529964Sache
67692906Smarkm
67792906Smarkm
67822347Spst# Extract the first word of "gcc", so it can be a program name with args.
67922347Spstset dummy gcc; ac_word=$2
68022347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
68192906Smarkmecho "configure:682: checking for $ac_word" >&5
68222347Spstif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
68322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
68422347Spstelse
68522347Spst  if test -n "$CC"; then
68622347Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
68722347Spstelse
68892906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
68992906Smarkm  ac_dummy="$PATH"
69092906Smarkm  for ac_dir in $ac_dummy; do
69122347Spst    test -z "$ac_dir" && ac_dir=.
69222347Spst    if test -f $ac_dir/$ac_word; then
69322347Spst      ac_cv_prog_CC="gcc"
69422347Spst      break
69522347Spst    fi
69622347Spst  done
69722347Spst  IFS="$ac_save_ifs"
69822347Spstfi
69922347Spstfi
70022347SpstCC="$ac_cv_prog_CC"
70122347Spstif test -n "$CC"; then
70222347Spst  echo "$ac_t""$CC" 1>&6
70322347Spstelse
70422347Spst  echo "$ac_t""no" 1>&6
70522347Spstfi
70622347Spst
70722347Spstif test -z "$CC"; then
70822347Spst  # Extract the first word of "cc", so it can be a program name with args.
70922347Spstset dummy cc; ac_word=$2
71022347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
71192906Smarkmecho "configure:712: checking for $ac_word" >&5
71222347Spstif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
71322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
71422347Spstelse
71522347Spst  if test -n "$CC"; then
71622347Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
71722347Spstelse
71892906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
71922347Spst  ac_prog_rejected=no
72092906Smarkm  ac_dummy="$PATH"
72192906Smarkm  for ac_dir in $ac_dummy; do
72222347Spst    test -z "$ac_dir" && ac_dir=.
72322347Spst    if test -f $ac_dir/$ac_word; then
72422347Spst      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
72522347Spst        ac_prog_rejected=yes
72622347Spst	continue
72722347Spst      fi
72822347Spst      ac_cv_prog_CC="cc"
72922347Spst      break
73022347Spst    fi
73122347Spst  done
73222347Spst  IFS="$ac_save_ifs"
73322347Spstif test $ac_prog_rejected = yes; then
73422347Spst  # We found a bogon in the path, so make sure we never use it.
73522347Spst  set dummy $ac_cv_prog_CC
73622347Spst  shift
73722347Spst  if test $# -gt 0; then
73822347Spst    # We chose a different compiler from the bogus one.
73922347Spst    # However, it has the same basename, so the bogon will be chosen
74022347Spst    # first if we set CC to just the basename; use the full file name.
74122347Spst    shift
74222347Spst    set dummy "$ac_dir/$ac_word" "$@"
74322347Spst    shift
74422347Spst    ac_cv_prog_CC="$@"
74522347Spst  fi
74622347Spstfi
74722347Spstfi
74822347Spstfi
74922347SpstCC="$ac_cv_prog_CC"
75022347Spstif test -n "$CC"; then
75122347Spst  echo "$ac_t""$CC" 1>&6
75222347Spstelse
75322347Spst  echo "$ac_t""no" 1>&6
75422347Spstfi
75522347Spst
75692906Smarkm  if test -z "$CC"; then
75792906Smarkm    case "`uname -s`" in
75892906Smarkm    *win32* | *WIN32*)
75992906Smarkm      # Extract the first word of "cl", so it can be a program name with args.
76092906Smarkmset dummy cl; ac_word=$2
76192906Smarkmecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
76292906Smarkmecho "configure:763: checking for $ac_word" >&5
76392906Smarkmif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
76492906Smarkm  echo $ac_n "(cached) $ac_c" 1>&6
76592906Smarkmelse
76692906Smarkm  if test -n "$CC"; then
76792906Smarkm  ac_cv_prog_CC="$CC" # Let the user override the test.
76892906Smarkmelse
76992906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
77092906Smarkm  ac_dummy="$PATH"
77192906Smarkm  for ac_dir in $ac_dummy; do
77292906Smarkm    test -z "$ac_dir" && ac_dir=.
77392906Smarkm    if test -f $ac_dir/$ac_word; then
77492906Smarkm      ac_cv_prog_CC="cl"
77592906Smarkm      break
77692906Smarkm    fi
77792906Smarkm  done
77892906Smarkm  IFS="$ac_save_ifs"
77992906Smarkmfi
78092906Smarkmfi
78192906SmarkmCC="$ac_cv_prog_CC"
78292906Smarkmif test -n "$CC"; then
78392906Smarkm  echo "$ac_t""$CC" 1>&6
78492906Smarkmelse
78592906Smarkm  echo "$ac_t""no" 1>&6
78692906Smarkmfi
78792906Smarkm ;;
78892906Smarkm    esac
78992906Smarkm  fi
79022347Spst  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
79122347Spstfi
79222347Spst
79329964Sacheecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
79492906Smarkmecho "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
79529964Sache
79629964Sacheac_ext=c
79729964Sache# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
79829964Sacheac_cpp='$CPP $CPPFLAGS'
79929964Sacheac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
80092906Smarkmac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
80129964Sachecross_compiling=$ac_cv_prog_cc_cross
80229964Sache
80392906Smarkmcat > conftest.$ac_ext << EOF
80492906Smarkm
80592906Smarkm#line 806 "configure"
80629964Sache#include "confdefs.h"
80792906Smarkm
80829964Sachemain(){return(0);}
80929964SacheEOF
81092906Smarkmif { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
81129964Sache  ac_cv_prog_cc_works=yes
81229964Sache  # If we can't run a trivial program, we are probably using a cross compiler.
81329964Sache  if (./conftest; exit) 2>/dev/null; then
81429964Sache    ac_cv_prog_cc_cross=no
81529964Sache  else
81629964Sache    ac_cv_prog_cc_cross=yes
81729964Sache  fi
81829964Sacheelse
81929964Sache  echo "configure: failed program was:" >&5
82029964Sache  cat conftest.$ac_ext >&5
82129964Sache  ac_cv_prog_cc_works=no
82229964Sachefi
82329964Sacherm -fr conftest*
82492906Smarkmac_ext=c
82592906Smarkm# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
82692906Smarkmac_cpp='$CPP $CPPFLAGS'
82792906Smarkmac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
82892906Smarkmac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
82992906Smarkmcross_compiling=$ac_cv_prog_cc_cross
83029964Sache
83129964Sacheecho "$ac_t""$ac_cv_prog_cc_works" 1>&6
83229964Sacheif test $ac_cv_prog_cc_works = no; then
83329964Sache  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
83429964Sachefi
83529964Sacheecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
83692906Smarkmecho "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
83729964Sacheecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6
83829964Sachecross_compiling=$ac_cv_prog_cc_cross
83929964Sache
84022347Spstecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
84192906Smarkmecho "configure:842: checking whether we are using GNU C" >&5
84222347Spstif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
84322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
84422347Spstelse
84522347Spst  cat > conftest.c <<EOF
84622347Spst#ifdef __GNUC__
84722347Spst  yes;
84822347Spst#endif
84922347SpstEOF
85092906Smarkmif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
85122347Spst  ac_cv_prog_gcc=yes
85222347Spstelse
85322347Spst  ac_cv_prog_gcc=no
85422347Spstfi
85522347Spstfi
85622347Spst
85722347Spstecho "$ac_t""$ac_cv_prog_gcc" 1>&6
85829964Sache
85922347Spstif test $ac_cv_prog_gcc = yes; then
86022347Spst  GCC=yes
86192906Smarkmelse
86292906Smarkm  GCC=
86392906Smarkmfi
86492906Smarkm
86592906Smarkmac_test_CFLAGS="${CFLAGS+set}"
86692906Smarkmac_save_CFLAGS="$CFLAGS"
86792906SmarkmCFLAGS=
86892906Smarkmecho $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
86992906Smarkmecho "configure:870: checking whether ${CC-cc} accepts -g" >&5
87029964Sacheif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
87122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
87222347Spstelse
87322347Spst  echo 'void f(){}' > conftest.c
87422347Spstif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
87529964Sache  ac_cv_prog_cc_g=yes
87622347Spstelse
87729964Sache  ac_cv_prog_cc_g=no
87822347Spstfi
87922347Spstrm -f conftest*
88022347Spst
88122347Spstfi
88222347Spst
88329964Sacheecho "$ac_t""$ac_cv_prog_cc_g" 1>&6
88492906Smarkmif test "$ac_test_CFLAGS" = set; then
88592906Smarkm  CFLAGS="$ac_save_CFLAGS"
88692906Smarkmelif test $ac_cv_prog_cc_g = yes; then
88792906Smarkm  if test "$GCC" = yes; then
88829964Sache    CFLAGS="-g -O2"
88929964Sache  else
89092906Smarkm    CFLAGS="-g"
89192906Smarkm  fi
89292906Smarkmelse
89392906Smarkm  if test "$GCC" = yes; then
89429964Sache    CFLAGS="-O2"
89592906Smarkm  else
89692906Smarkm    CFLAGS=
89722347Spst  fi
89822347Spstfi
89922347Spst
90022347Spstecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
90192906Smarkmecho "configure:902: checking how to run the C preprocessor" >&5
90222347Spst# On Suns, sometimes $CPP names a directory.
90322347Spstif test -n "$CPP" && test -d "$CPP"; then
90422347Spst  CPP=
90522347Spstfi
90622347Spstif test -z "$CPP"; then
90722347Spstif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
90822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
90922347Spstelse
91022347Spst    # This must be in double quotes, not single quotes, because CPP may get
91122347Spst  # substituted into the Makefile and "${CC-cc}" will confuse make.
91222347Spst  CPP="${CC-cc} -E"
91322347Spst  # On the NeXT, cc -E runs the code through the compiler's parser,
91422347Spst  # not just through cpp.
91522347Spst  cat > conftest.$ac_ext <<EOF
91692906Smarkm#line 917 "configure"
91722347Spst#include "confdefs.h"
91822347Spst#include <assert.h>
91922347SpstSyntax Error
92022347SpstEOF
92122347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
92292906Smarkm{ (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
92392906Smarkmac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
92422347Spstif test -z "$ac_err"; then
92522347Spst  :
92622347Spstelse
92722347Spst  echo "$ac_err" >&5
92829964Sache  echo "configure: failed program was:" >&5
92929964Sache  cat conftest.$ac_ext >&5
93022347Spst  rm -rf conftest*
93122347Spst  CPP="${CC-cc} -E -traditional-cpp"
93222347Spst  cat > conftest.$ac_ext <<EOF
93392906Smarkm#line 934 "configure"
93422347Spst#include "confdefs.h"
93522347Spst#include <assert.h>
93622347SpstSyntax Error
93722347SpstEOF
93822347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
93992906Smarkm{ (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
94092906Smarkmac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
94122347Spstif test -z "$ac_err"; then
94222347Spst  :
94322347Spstelse
94422347Spst  echo "$ac_err" >&5
94529964Sache  echo "configure: failed program was:" >&5
94629964Sache  cat conftest.$ac_ext >&5
94722347Spst  rm -rf conftest*
94892906Smarkm  CPP="${CC-cc} -nologo -E"
94992906Smarkm  cat > conftest.$ac_ext <<EOF
95092906Smarkm#line 951 "configure"
95192906Smarkm#include "confdefs.h"
95292906Smarkm#include <assert.h>
95392906SmarkmSyntax Error
95492906SmarkmEOF
95592906Smarkmac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
95692906Smarkm{ (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
95792906Smarkmac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
95892906Smarkmif test -z "$ac_err"; then
95992906Smarkm  :
96092906Smarkmelse
96192906Smarkm  echo "$ac_err" >&5
96292906Smarkm  echo "configure: failed program was:" >&5
96392906Smarkm  cat conftest.$ac_ext >&5
96492906Smarkm  rm -rf conftest*
96522347Spst  CPP=/lib/cpp
96622347Spstfi
96722347Spstrm -f conftest*
96822347Spstfi
96922347Spstrm -f conftest*
97092906Smarkmfi
97192906Smarkmrm -f conftest*
97222347Spst  ac_cv_prog_CPP="$CPP"
97322347Spstfi
97422347Spst  CPP="$ac_cv_prog_CPP"
97522347Spstelse
97622347Spst  ac_cv_prog_CPP="$CPP"
97722347Spstfi
97822347Spstecho "$ac_t""$CPP" 1>&6
97922347Spst
98022347Spstecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
98192906Smarkmecho "configure:982: checking whether ln -s works" >&5
98222347Spstif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
98322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
98422347Spstelse
98522347Spst  rm -f conftestdata
98622347Spstif ln -s X conftestdata 2>/dev/null
98722347Spstthen
98822347Spst  rm -f conftestdata
98922347Spst  ac_cv_prog_LN_S="ln -s"
99022347Spstelse
99122347Spst  ac_cv_prog_LN_S=ln
99222347Spstfi
99322347Spstfi
99422347SpstLN_S="$ac_cv_prog_LN_S"
99522347Spstif test "$ac_cv_prog_LN_S" = "ln -s"; then
99622347Spst  echo "$ac_t""yes" 1>&6
99722347Spstelse
99822347Spst  echo "$ac_t""no" 1>&6
99922347Spstfi
100022347Spst
100122347Spst# Extract the first word of "ranlib", so it can be a program name with args.
100222347Spstset dummy ranlib; ac_word=$2
100322347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
100492906Smarkmecho "configure:1005: checking for $ac_word" >&5
100522347Spstif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
100622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
100722347Spstelse
100822347Spst  if test -n "$RANLIB"; then
100922347Spst  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
101022347Spstelse
101192906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
101292906Smarkm  ac_dummy="$PATH"
101392906Smarkm  for ac_dir in $ac_dummy; do
101422347Spst    test -z "$ac_dir" && ac_dir=.
101522347Spst    if test -f $ac_dir/$ac_word; then
101622347Spst      ac_cv_prog_RANLIB="ranlib"
101722347Spst      break
101822347Spst    fi
101922347Spst  done
102022347Spst  IFS="$ac_save_ifs"
102122347Spst  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
102222347Spstfi
102322347Spstfi
102422347SpstRANLIB="$ac_cv_prog_RANLIB"
102522347Spstif test -n "$RANLIB"; then
102622347Spst  echo "$ac_t""$RANLIB" 1>&6
102722347Spstelse
102822347Spst  echo "$ac_t""no" 1>&6
102922347Spstfi
103022347Spst
103122347Spstfor ac_prog in 'bison -y' byacc
103222347Spstdo
103322347Spst# Extract the first word of "$ac_prog", so it can be a program name with args.
103422347Spstset dummy $ac_prog; ac_word=$2
103522347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
103692906Smarkmecho "configure:1037: checking for $ac_word" >&5
103722347Spstif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
103822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
103922347Spstelse
104022347Spst  if test -n "$YACC"; then
104122347Spst  ac_cv_prog_YACC="$YACC" # Let the user override the test.
104222347Spstelse
104392906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
104492906Smarkm  ac_dummy="$PATH"
104592906Smarkm  for ac_dir in $ac_dummy; do
104622347Spst    test -z "$ac_dir" && ac_dir=.
104722347Spst    if test -f $ac_dir/$ac_word; then
104822347Spst      ac_cv_prog_YACC="$ac_prog"
104922347Spst      break
105022347Spst    fi
105122347Spst  done
105222347Spst  IFS="$ac_save_ifs"
105322347Spstfi
105422347Spstfi
105522347SpstYACC="$ac_cv_prog_YACC"
105622347Spstif test -n "$YACC"; then
105722347Spst  echo "$ac_t""$YACC" 1>&6
105822347Spstelse
105922347Spst  echo "$ac_t""no" 1>&6
106022347Spstfi
106122347Spst
106222347Spsttest -n "$YACC" && break
106322347Spstdone
106422347Spsttest -n "$YACC" || YACC="yacc"
106522347Spst
106622347Spst
106722347Spstecho $ac_n "checking for AIX""... $ac_c" 1>&6
106892906Smarkmecho "configure:1069: checking for AIX" >&5
106922347Spstcat > conftest.$ac_ext <<EOF
107092906Smarkm#line 1071 "configure"
107122347Spst#include "confdefs.h"
107222347Spst#ifdef _AIX
107322347Spst  yes
107422347Spst#endif
107522347Spst
107622347SpstEOF
107722347Spstif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
107822347Spst  egrep "yes" >/dev/null 2>&1; then
107922347Spst  rm -rf conftest*
108022347Spst  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
108122347Spst#define _ALL_SOURCE 1
108222347SpstEOF
108322347Spst
108422347Spstelse
108522347Spst  rm -rf conftest*
108622347Spst  echo "$ac_t""no" 1>&6
108722347Spstfi
108822347Spstrm -f conftest*
108922347Spst
109022347Spst
109122347Spstecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
109292906Smarkmecho "configure:1093: checking for POSIXized ISC" >&5
109322347Spstif test -d /etc/conf/kconfig.d &&
109422347Spst  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
109522347Spstthen
109622347Spst  echo "$ac_t""yes" 1>&6
109722347Spst  ISC=yes # If later tests want to check for ISC.
109822347Spst  cat >> confdefs.h <<\EOF
109922347Spst#define _POSIX_SOURCE 1
110022347SpstEOF
110122347Spst
110222347Spst  if test "$GCC" = yes; then
110322347Spst    CC="$CC -posix"
110422347Spst  else
110522347Spst    CC="$CC -Xp"
110622347Spst  fi
110722347Spstelse
110822347Spst  echo "$ac_t""no" 1>&6
110922347Spst  ISC=
111022347Spstfi
111122347Spst
111229964Sacheac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
111322347Spstecho $ac_n "checking for minix/config.h""... $ac_c" 1>&6
111492906Smarkmecho "configure:1115: checking for minix/config.h" >&5
111522347Spstif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
111622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
111722347Spstelse
111822347Spst  cat > conftest.$ac_ext <<EOF
111992906Smarkm#line 1120 "configure"
112022347Spst#include "confdefs.h"
112122347Spst#include <minix/config.h>
112222347SpstEOF
112322347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
112492906Smarkm{ (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
112592906Smarkmac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
112622347Spstif test -z "$ac_err"; then
112722347Spst  rm -rf conftest*
112822347Spst  eval "ac_cv_header_$ac_safe=yes"
112922347Spstelse
113022347Spst  echo "$ac_err" >&5
113129964Sache  echo "configure: failed program was:" >&5
113229964Sache  cat conftest.$ac_ext >&5
113322347Spst  rm -rf conftest*
113422347Spst  eval "ac_cv_header_$ac_safe=no"
113522347Spstfi
113622347Spstrm -f conftest*
113722347Spstfi
113822347Spstif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
113922347Spst  echo "$ac_t""yes" 1>&6
114022347Spst  MINIX=yes
114122347Spstelse
114222347Spst  echo "$ac_t""no" 1>&6
114322347SpstMINIX=
114422347Spstfi
114522347Spst
114622347Spstif test "$MINIX" = yes; then
114722347Spst  cat >> confdefs.h <<\EOF
114822347Spst#define _POSIX_SOURCE 1
114922347SpstEOF
115022347Spst
115122347Spst  cat >> confdefs.h <<\EOF
115222347Spst#define _POSIX_1_SOURCE 2
115322347SpstEOF
115422347Spst
115522347Spst  cat >> confdefs.h <<\EOF
115622347Spst#define _MINIX 1
115722347SpstEOF
115822347Spst
115922347Spstfi
116022347Spst
116122347Spst
116222347Spst
116322347Spst# Extract the first word of "chown", so it can be a program name with args.
116422347Spstset dummy chown; ac_word=$2
116522347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
116692906Smarkmecho "configure:1167: checking for $ac_word" >&5
116722347Spstif eval "test \"`echo '$''{'ac_cv_path_CHOWN'+set}'`\" = set"; then
116822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
116922347Spstelse
117022347Spst  case "$CHOWN" in
117122347Spst  /*)
117222347Spst  ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
117322347Spst  ;;
117492906Smarkm  ?:/*)			 
117592906Smarkm  ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a dos path.
117692906Smarkm  ;;
117722347Spst  *)
117892906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
117992906Smarkm  ac_dummy="/usr/bin /bin /usr/sbin /sbin /usr/etc /etc"
118092906Smarkm  for ac_dir in $ac_dummy; do 
118122347Spst    test -z "$ac_dir" && ac_dir=.
118222347Spst    if test -f $ac_dir/$ac_word; then
118322347Spst      ac_cv_path_CHOWN="$ac_dir/$ac_word"
118422347Spst      break
118522347Spst    fi
118622347Spst  done
118722347Spst  IFS="$ac_save_ifs"
118822347Spst  test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/bin/chown"
118922347Spst  ;;
119022347Spstesac
119122347Spstfi
119222347SpstCHOWN="$ac_cv_path_CHOWN"
119322347Spstif test -n "$CHOWN"; then
119422347Spst  echo "$ac_t""$CHOWN" 1>&6
119522347Spstelse
119622347Spst  echo "$ac_t""no" 1>&6
119722347Spstfi
119822347Spst
119922347Spst
120022347Spst# Extract the first word of "su", so it can be a program name with args.
120122347Spstset dummy su; ac_word=$2
120222347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
120392906Smarkmecho "configure:1204: checking for $ac_word" >&5
120422347Spstif eval "test \"`echo '$''{'ac_cv_path_SU'+set}'`\" = set"; then
120522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
120622347Spstelse
120722347Spst  case "$SU" in
120822347Spst  /*)
120922347Spst  ac_cv_path_SU="$SU" # Let the user override the test with a path.
121022347Spst  ;;
121192906Smarkm  ?:/*)			 
121292906Smarkm  ac_cv_path_SU="$SU" # Let the user override the test with a dos path.
121392906Smarkm  ;;
121422347Spst  *)
121592906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
121692906Smarkm  ac_dummy="/usr/bin /bin"
121792906Smarkm  for ac_dir in $ac_dummy; do 
121822347Spst    test -z "$ac_dir" && ac_dir=.
121922347Spst    if test -f $ac_dir/$ac_word; then
122022347Spst      ac_cv_path_SU="$ac_dir/$ac_word"
122122347Spst      break
122222347Spst    fi
122322347Spst  done
122422347Spst  IFS="$ac_save_ifs"
122522347Spst  test -z "$ac_cv_path_SU" && ac_cv_path_SU="/bin/su"
122622347Spst  ;;
122722347Spstesac
122822347Spstfi
122922347SpstSU="$ac_cv_path_SU"
123022347Spstif test -n "$SU"; then
123122347Spst  echo "$ac_t""$SU" 1>&6
123222347Spstelse
123322347Spst  echo "$ac_t""no" 1>&6
123422347Spstfi
123522347Spst
123622347Spst# Extract the first word of "su", so it can be a program name with args.
123722347Spstset dummy su; ac_word=$2
123822347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
123992906Smarkmecho "configure:1240: checking for $ac_word" >&5
124022347Spstif eval "test \"`echo '$''{'ac_cv_path_ALT_SU'+set}'`\" = set"; then
124122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
124222347Spstelse
124322347Spst  case "$ALT_SU" in
124422347Spst  /*)
124522347Spst  ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a path.
124622347Spst  ;;
124792906Smarkm  ?:/*)			 
124892906Smarkm  ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a dos path.
124992906Smarkm  ;;
125022347Spst  *)
125192906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
125292906Smarkm  ac_dummy="/usr/sbin /sbin"
125392906Smarkm  for ac_dir in $ac_dummy; do 
125422347Spst    test -z "$ac_dir" && ac_dir=.
125522347Spst    if test -f $ac_dir/$ac_word; then
125622347Spst      ac_cv_path_ALT_SU="$ac_dir/$ac_word"
125722347Spst      break
125822347Spst    fi
125922347Spst  done
126022347Spst  IFS="$ac_save_ifs"
126122347Spst  ;;
126222347Spstesac
126322347Spstfi
126422347SpstALT_SU="$ac_cv_path_ALT_SU"
126522347Spstif test -n "$ALT_SU"; then
126622347Spst  echo "$ac_t""$ALT_SU" 1>&6
126722347Spstelse
126822347Spst  echo "$ac_t""no" 1>&6
126922347Spstfi
127022347Spst
127122347Spst
127222347Spst# Extract the first word of "scheme", so it can be a program name with args.
127322347Spstset dummy scheme; ac_word=$2
127422347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
127592906Smarkmecho "configure:1276: checking for $ac_word" >&5
127622347Spstif eval "test \"`echo '$''{'ac_cv_path_SCHEME'+set}'`\" = set"; then
127722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
127822347Spstelse
127922347Spst  case "$SCHEME" in
128022347Spst  /*)
128122347Spst  ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a path.
128222347Spst  ;;
128392906Smarkm  ?:/*)			 
128492906Smarkm  ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a dos path.
128592906Smarkm  ;;
128622347Spst  *)
128792906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
128892906Smarkm  ac_dummy="/usr/lib/iaf/scheme"
128992906Smarkm  for ac_dir in $ac_dummy; do 
129022347Spst    test -z "$ac_dir" && ac_dir=.
129122347Spst    if test -f $ac_dir/$ac_word; then
129222347Spst      ac_cv_path_SCHEME="$ac_dir/$ac_word"
129322347Spst      break
129422347Spst    fi
129522347Spst  done
129622347Spst  IFS="$ac_save_ifs"
129722347Spst  ;;
129822347Spstesac
129922347Spstfi
130022347SpstSCHEME="$ac_cv_path_SCHEME"
130122347Spstif test -n "$SCHEME"; then
130222347Spst  echo "$ac_t""$SCHEME" 1>&6
130322347Spstelse
130422347Spst  echo "$ac_t""no" 1>&6
130522347Spstfi
130622347Spst
130722347Spst# Extract the first word of "login", so it can be a program name with args.
130822347Spstset dummy login; ac_word=$2
130922347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
131092906Smarkmecho "configure:1311: checking for $ac_word" >&5
131122347Spstif eval "test \"`echo '$''{'ac_cv_path_LOGIN'+set}'`\" = set"; then
131222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
131322347Spstelse
131422347Spst  case "$LOGIN" in
131522347Spst  /*)
131622347Spst  ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a path.
131722347Spst  ;;
131892906Smarkm  ?:/*)			 
131992906Smarkm  ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a dos path.
132092906Smarkm  ;;
132122347Spst  *)
132292906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
132392906Smarkm  ac_dummy="/usr/bin /bin"
132492906Smarkm  for ac_dir in $ac_dummy; do 
132522347Spst    test -z "$ac_dir" && ac_dir=.
132622347Spst    if test -f $ac_dir/$ac_word; then
132722347Spst      ac_cv_path_LOGIN="$ac_dir/$ac_word"
132822347Spst      break
132922347Spst    fi
133022347Spst  done
133122347Spst  IFS="$ac_save_ifs"
133222347Spst  test -z "$ac_cv_path_LOGIN" && ac_cv_path_LOGIN="/bin/login"
133322347Spst  ;;
133422347Spstesac
133522347Spstfi
133622347SpstLOGIN="$ac_cv_path_LOGIN"
133722347Spstif test -n "$LOGIN"; then
133822347Spst  echo "$ac_t""$LOGIN" 1>&6
133922347Spstelse
134022347Spst  echo "$ac_t""no" 1>&6
134122347Spstfi
134222347Spst
134322347Spst
134422347Spstif test ! -z "$SCHEME";
134522347Spstthen
134622347Spst	LOGIN="$SCHEME";
134722347Spstfi
134822347Spst
134922347Spst# Extract the first word of "ftpd", so it can be a program name with args.
135022347Spstset dummy ftpd; ac_word=$2
135122347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
135292906Smarkmecho "configure:1353: checking for $ac_word" >&5
135322347Spstif eval "test \"`echo '$''{'ac_cv_path_FTPD'+set}'`\" = set"; then
135422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
135522347Spstelse
135622347Spst  case "$FTPD" in
135722347Spst  /*)
135822347Spst  ac_cv_path_FTPD="$FTPD" # Let the user override the test with a path.
135922347Spst  ;;
136092906Smarkm  ?:/*)			 
136192906Smarkm  ac_cv_path_FTPD="$FTPD" # Let the user override the test with a dos path.
136292906Smarkm  ;;
136322347Spst  *)
136492906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
136592906Smarkm  ac_dummy="/usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin"
136692906Smarkm  for ac_dir in $ac_dummy; do 
136722347Spst    test -z "$ac_dir" && ac_dir=.
136822347Spst    if test -f $ac_dir/$ac_word; then
136922347Spst      ac_cv_path_FTPD="$ac_dir/$ac_word"
137022347Spst      break
137122347Spst    fi
137222347Spst  done
137322347Spst  IFS="$ac_save_ifs"
137422347Spst  ;;
137522347Spstesac
137622347Spstfi
137722347SpstFTPD="$ac_cv_path_FTPD"
137822347Spstif test -n "$FTPD"; then
137922347Spst  echo "$ac_t""$FTPD" 1>&6
138022347Spstelse
138122347Spst  echo "$ac_t""no" 1>&6
138222347Spstfi
138322347Spst
138422347Spst# Extract the first word of "in.ftpd", so it can be a program name with args.
138522347Spstset dummy in.ftpd; ac_word=$2
138622347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
138792906Smarkmecho "configure:1388: checking for $ac_word" >&5
138822347Spstif eval "test \"`echo '$''{'ac_cv_path_INFTPD'+set}'`\" = set"; then
138922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
139022347Spstelse
139122347Spst  case "$INFTPD" in
139222347Spst  /*)
139322347Spst  ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a path.
139422347Spst  ;;
139592906Smarkm  ?:/*)			 
139692906Smarkm  ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a dos path.
139792906Smarkm  ;;
139822347Spst  *)
139992906Smarkm  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
140092906Smarkm  ac_dummy="/usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin"
140192906Smarkm  for ac_dir in $ac_dummy; do 
140222347Spst    test -z "$ac_dir" && ac_dir=.
140322347Spst    if test -f $ac_dir/$ac_word; then
140422347Spst      ac_cv_path_INFTPD="$ac_dir/$ac_word"
140522347Spst      break
140622347Spst    fi
140722347Spst  done
140822347Spst  IFS="$ac_save_ifs"
140922347Spst  ;;
141022347Spstesac
141122347Spstfi
141222347SpstINFTPD="$ac_cv_path_INFTPD"
141322347Spstif test -n "$INFTPD"; then
141422347Spst  echo "$ac_t""$INFTPD" 1>&6
141522347Spstelse
141622347Spst  echo "$ac_t""no" 1>&6
141722347Spstfi
141822347Spst
141922347Spst
142022347Spstif test -z "$FTPD"
142122347Spstthen
142222347Spst	if test ! -z "$INFTPD"
142322347Spst	then
142422347Spst		FTPD="$INFTPD"
142522347Spst	fi
142622347Spstfi
142722347Spst
142822347Spstecho $ac_n "checking for default PATH entries""... $ac_c" 1>&6
142992906Smarkmecho "configure:1430: checking for default PATH entries" >&5
143022347Spstdefault_path=""
143122347Spstsave_IFS="$IFS"
143222347SpstIFS=" "
143322347Spstfor 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
143422347Spstdo
143522347Spst	IFS=":"
143622347Spst	for j in $PATH
143722347Spst	do
143822347Spst		if test "$i" = "$j"
143922347Spst		then
144022347Spst			if test -d "$i"
144122347Spst			then
144222347Spst				if test -z "$default_path"
144322347Spst				then
144422347Spst					default_path="$i"
144522347Spst				else
144622347Spst					default_path="$default_path:$i"
144722347Spst				fi
144822347Spst			fi
144922347Spst		fi
145022347Spst	done
145122347Spst	IFS=" "
145222347Spstdone
145322347Spstcat >> confdefs.h <<EOF
145422347Spst#define DEFAULT_PATH "$default_path"
145522347SpstEOF
145622347Spst
145722347Spstecho "$ac_t""$default_path" 1>&6
145822347Spst
145922347Spstecho $ac_n "checking for test -e flag""... $ac_c" 1>&6
146092906Smarkmecho "configure:1461: checking for test -e flag" >&5
146122347Spstif sh config.testeflag
146222347Spstthen
146322347Spst	result=yes
146422347Spst	EXISTS="-e"
146522347Spstelse
146622347Spst	result=no
146722347Spst	EXISTS="-f"
146822347Spstfi
146922347Spst
147022347Spstecho "$ac_t""$result" 1>&6
147122347Spst
147222347Spstecho $ac_n "checking for mkdir -p flag""... $ac_c" 1>&6
147392906Smarkmecho "configure:1474: checking for mkdir -p flag" >&5
147422347Spstif test -d config.tmpdir
147522347Spstthen
147622347Spst	rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
147722347Spst	rmdir config.tmpdir/foo >/dev/null 2>/dev/null
147822347Spst	rmdir config.tmpdir >/dev/null 2>/dev/null
147922347Spstfi
148022347Spst
148122347Spstresult=no
148222347Spstif mkdir -p config.tmpdir/foo/bar >/dev/null 2>/dev/null
148322347Spstthen
148422347Spst	if test -d config.tmpdir
148522347Spst	then
148622347Spst		if test -d config.tmpdir/foo
148722347Spst		then
148822347Spst			if test -d config.tmpdir/foo/bar
148922347Spst			then
149022347Spst				result=yes
149122347Spst				rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
149222347Spst			fi
149322347Spst			rmdir config.tmpdir/foo >/dev/null 2>/dev/null
149422347Spst		fi
149522347Spst		rmdir config.tmpdir >/dev/null 2>/dev/null
149622347Spst	fi
149722347Spstfi
149822347Spst
149922347Spstif test "$result" = yes
150022347Spstthen
150122347Spst	MKDIR="mkdir -p"
150222347Spstelse
150322347Spst	MKDIR="mkdir"
150422347Spstfi
150522347Spst
150622347Spstecho "$ac_t""$result" 1>&6
150722347Spst
150822347Spstecho $ac_n "checking for ls group field""... $ac_c" 1>&6
150992906Smarkmecho "configure:1510: checking for ls group field" >&5
151022347Spstlsg=`/bin/ls -ldg / | wc -w | awk '{print $1}'`;
151122347Spstls=`/bin/ls -ld / | wc -w | awk '{print $1}'`;
151222347Spstresult="no"
151322347Spstif test $ls = 9;
151422347Spstthen
151522347Spst	result="yes"
151622347Spstelse
151722347Spst	if test "$ls" = 8 -a "$lsg" = 9;
151822347Spst	then
151922347Spst		result="yes, with -g"
152022347Spst		cat >> confdefs.h <<\EOF
152122347Spst#define HAVE_LS_G_FLAG 1
152222347SpstEOF
152322347Spst
152422347Spst	fi
152522347Spstfi
152622347Spstecho "$ac_t""$result" 1>&6
152722347Spst
152822347Spstecho $ac_n "checking for /etc/default/login""... $ac_c" 1>&6
152992906Smarkmecho "configure:1530: checking for /etc/default/login" >&5
153022347Spstif test $EXISTS /etc/default/login
153122347Spstthen
153222347Spst	result=yes
153322347Spst	cat >> confdefs.h <<\EOF
153422347Spst#define HAVE_ETC_DEFAULT_LOGIN 1
153522347SpstEOF
153622347Spst
153722347Spstelse
153822347Spst	result=no
153922347Spstfi
154022347Spstecho "$ac_t""$result" 1>&6
154122347Spst
154222347Spstecho $ac_n "checking for /etc/securetty""... $ac_c" 1>&6
154392906Smarkmecho "configure:1544: checking for /etc/securetty" >&5
154422347Spstif test $EXISTS /etc/securetty
154522347Spstthen
154622347Spst	result=yes
154722347Spst	cat >> confdefs.h <<\EOF
154822347Spst#define HAVE_SECURETTY 1
154922347SpstEOF
155022347Spst
155122347Spstelse
155222347Spst	result=no
155322347Spstfi
155422347Spstecho "$ac_t""$result" 1>&6
155522347Spst
155622347Spstecho $ac_n "checking for /etc/logindevperm""... $ac_c" 1>&6
155792906Smarkmecho "configure:1558: checking for /etc/logindevperm" >&5
155822347Spstif test $EXISTS /etc/logindevperm
155922347Spstthen
156022347Spst	echo "$ac_t""yes" 1>&6
156122347Spst	cat >> confdefs.h <<\EOF
156222347Spst#define HAVE_LOGIN_PERMFILE "/etc/logindevperm"
156322347SpstEOF
156422347Spst
156522347Spstelse
156622347Spst	echo "$ac_t""no" 1>&6
156722347Spst
156822347Spst	echo $ac_n "checking for /etc/fbtab""... $ac_c" 1>&6
156992906Smarkmecho "configure:1570: checking for /etc/fbtab" >&5
157022347Spst	if test $EXISTS /etc/fbtab
157122347Spst	then
157222347Spst		result=yes
157322347Spst		cat >> confdefs.h <<\EOF
157422347Spst#define HAVE_LOGIN_PERMFILE "/etc/fbtab"
157522347SpstEOF
157622347Spst
157722347Spst	else
157822347Spst		result=no
157922347Spst	fi
158022347Spst	echo "$ac_t""$result" 1>&6
158122347Spstfi
158222347Spst
158322347Spstecho $ac_n "checking for /etc/environment""... $ac_c" 1>&6
158492906Smarkmecho "configure:1585: checking for /etc/environment" >&5
158522347Spstif test $EXISTS /etc/environment
158622347Spstthen
158722347Spst	echo "$ac_t""yes" 1>&6
158822347Spst	cat >> confdefs.h <<\EOF
158922347Spst#define HAVE_LOGIN_ENVFILE "/etc/environment"
159022347SpstEOF
159122347Spst
159222347Spstelse
159322347Spst	echo "$ac_t""no" 1>&6
159422347Spst
159522347Spst	echo $ac_n "checking for /etc/src.sh""... $ac_c" 1>&6
159692906Smarkmecho "configure:1597: checking for /etc/src.sh" >&5
159722347Spst	if test $EXISTS /etc/src.sh
159822347Spst	then
159922347Spst		result=yes
160022347Spst		cat >> confdefs.h <<\EOF
160122347Spst#define HAVE_LOGIN_ENVFILE "/etc/src.sh"
160222347SpstEOF
160322347Spst
160422347Spst	else
160522347Spst		result=no
160622347Spst	fi
160722347Spst	echo "$ac_t""$result" 1>&6
160822347Spstfi
160922347Spst
161022347Spstecho $ac_n "checking for /etc/shadow""... $ac_c" 1>&6
161192906Smarkmecho "configure:1612: checking for /etc/shadow" >&5
161222347Spstif test $EXISTS /etc/shadow
161322347Spstthen
161422347Spst	result=yes
161522347Spst	cat >> confdefs.h <<\EOF
161622347Spst#define HAVE_ETC_SHADOW 1
161722347SpstEOF
161822347Spst
161922347Spstelse
162029964Sache	echo "$ac_t""no" 1>&6
162129964Sache
162229964Sache	echo $ac_n "checking for /etc/security/passwd.adjunct""... $ac_c" 1>&6
162392906Smarkmecho "configure:1624: checking for /etc/security/passwd.adjunct" >&5
162429964Sache	if test $EXISTS /etc/security/passwd.adjunct
162529964Sache	then
162629964Sache		result=yes
162729964Sache		cat >> confdefs.h <<\EOF
162829964Sache#define HAVE_SUNOS_C2_SHADOW 1
162929964SacheEOF
163029964Sache
163129964Sache		LIBOBJS="$LIBOBJS getspnam.o endspent.o"
163229964Sache	else
163329964Sache		result=no
163429964Sache	fi
163522347Spstfi
163622347Spstecho "$ac_t""$result" 1>&6
163722347Spst
163822347Spstecho $ac_n "checking for /var/adm/sulog""... $ac_c" 1>&6
163992906Smarkmecho "configure:1640: checking for /var/adm/sulog" >&5
164022347Spstif test $EXISTS /var/adm/sulog
164122347Spstthen
164222347Spst	result=yes
164322347Spst	cat >> confdefs.h <<\EOF
164422347Spst#define HAVE_SULOG 1
164522347SpstEOF
164622347Spst
164722347Spstelse
164822347Spst	result=no
164922347Spstfi
165022347Spstecho "$ac_t""$result" 1>&6
165122347Spst
165222347Spstecho $ac_n "checking mail spool location""... $ac_c" 1>&6
165392906Smarkmecho "configure:1654: checking mail spool location" >&5
165422347Spstmail_spool=""
165522347Spstfor i in /var/mail /usr/mail /var/spool/mail /usr/spool/mail
165622347Spstdo
165722347Spst	if test -d $i
165822347Spst	then
165922347Spst		mail_spool="$i"
166022347Spst	fi
166122347Spstdone
166222347Spstif test -z "$mail_spool"
166322347Spstthen
166422347Spst	result="not found"
166522347Spstelse
166622347Spst	result="$mail_spool"
166722347Spst	cat >> confdefs.h <<EOF
166822347Spst#define PATH_MAIL "$mail_spool"
166922347SpstEOF
167022347Spst
167122347Spstfi
167222347Spstecho "$ac_t""$result" 1>&6
167322347Spst
167429964Sacheecho $ac_n "checking where your system puts the utmp file""... $ac_c" 1>&6
167592906Smarkmecho "configure:1676: checking where your system puts the utmp file" >&5
167629964Sacheutmp_path=""
167729964Sachefor i in /var/run /var/adm /usr/adm /etc
167829964Sachedo
167929964Sache	if test $EXISTS $i/utmp
168029964Sache	then
168129964Sache		utmp_path="$i"
168229964Sache	fi
168329964Sachedone
168429964Sacheif test -z "$utmp_path"
168529964Sachethen
168629964Sache	result="not found"
168729964Sacheelse
168829964Sache	result="$utmp_path"
168929964Sache	cat >> confdefs.h <<EOF
169029964Sache#define PATH_UTMP_AC "$utmp_path/utmp"
169129964SacheEOF
169222347Spst
169329964Sachefi
169429964Sacheecho "$ac_t""$result" 1>&6
169522347Spst
169629964Sacheecho $ac_n "checking where your system puts the utmpx file""... $ac_c" 1>&6
169792906Smarkmecho "configure:1698: checking where your system puts the utmpx file" >&5
169829964Sacheutmp_path=""
169929964Sachefor i in /var/run /var/adm /usr/adm /etc
170029964Sachedo
170129964Sache	if test $EXISTS $i/utmp
170229964Sache	then
170329964Sache		utmp_path="$i"
170429964Sache	fi
170529964Sachedone
170629964Sacheif test -z "$utmp_path"
170729964Sachethen
170829964Sache	result="not found"
170929964Sache	cat >> confdefs.h <<EOF
171029964Sache#define PATH_UTMP_AC "$utmp_path/utmpx"
171129964SacheEOF
171229964Sache
171329964Sachefi
171429964Sacheecho "$ac_t""$result" 1>&6
171529964Sache
171629964Sacheecho $ac_n "checking where your system puts the wtmp file""... $ac_c" 1>&6
171792906Smarkmecho "configure:1718: checking where your system puts the wtmp file" >&5
171829964Sachewtmp_path=""
171929964Sachefor i in /var/run /var/log /var/adm /usr/adm /etc
172029964Sachedo
172129964Sache	if test $EXISTS $i/wtmp
172229964Sache	then
172329964Sache		wtmp_path="$i"
172429964Sache	fi
172529964Sachedone
172629964Sacheif test -z "$wtmp_path"
172729964Sachethen
172829964Sache	result="not found"
172929964Sacheelse
173029964Sache	result="$wtmp_path"
173129964Sache	cat >> confdefs.h <<EOF
173229964Sache#define PATH_WTMP_AC "$wtmp_path/wtmp"
173329964SacheEOF
173429964Sache
173529964Sachefi
173629964Sacheecho "$ac_t""$result" 1>&6
173729964Sache
173829964Sacheecho $ac_n "checking where your system puts the wtmpx file""... $ac_c" 1>&6
173992906Smarkmecho "configure:1740: checking where your system puts the wtmpx file" >&5
174029964Sachewtmpx_path=""
174129964Sachefor i in /var/run /var/log /var/adm /usr/adm /etc
174229964Sachedo
174329964Sache	if test $EXISTS $i/wtmpx
174429964Sache	then
174529964Sache		wtmpx_path="$i"
174629964Sache	fi
174729964Sachedone
174829964Sacheif test -z "$wtmpx_path"
174929964Sachethen
175029964Sache	result="not found"
175129964Sacheelse
175229964Sache	result="$wtmpx_path"
175329964Sache	cat >> confdefs.h <<EOF
175429964Sache#define PATH_WTMPX_AC "$wtmpx_path/wtmpx"
175529964SacheEOF
175629964Sache
175729964Sachefi
175829964Sacheecho "$ac_t""$result" 1>&6
175929964Sache
176022347Spstecho $ac_n "checking whether the system profile displays the motd""... $ac_c" 1>&6
176192906Smarkmecho "configure:1762: checking whether the system profile displays the motd" >&5
176222347Spstresult=no
176322347Spstif test $EXISTS /etc/profile
176422347Spstthen
176522347Spst	if grep motd /etc/profile >/dev/null 2>/dev/null
176622347Spst	then
176722347Spst		result=yes
176822347Spst	fi
176922347Spstfi
177022347Spstif test "$result" = yes
177122347Spstthen
177222347Spst	cat >> confdefs.h <<\EOF
177322347Spst#define HAVE_MOTD_IN_PROFILE 1
177422347SpstEOF
177522347Spst
177622347Spstfi
177722347Spstecho "$ac_t""$result" 1>&6
177822347Spst
177922347Spstecho $ac_n "checking whether the system profile checks for mail""... $ac_c" 1>&6
178092906Smarkmecho "configure:1781: checking whether the system profile checks for mail" >&5
178122347Spstresult=no
178222347Spstif test $EXISTS /etc/profile
178322347Spstthen
178422347Spst	if grep 'mail\.' /etc/profile >/dev/null 2>/dev/null
178522347Spst	then
178622347Spst		result=yes
178722347Spst	fi
178822347Spstfi
178922347Spstif test "$result" = yes
179022347Spstthen
179122347Spst	cat >> confdefs.h <<\EOF
179222347Spst#define HAVE_MAILCHECK_IN_PROFILE 1
179322347SpstEOF
179422347Spst
179522347Spstfi
179622347Spstecho "$ac_t""$result" 1>&6
179722347Spst
179822347Spstecho $ac_n "checking for working const""... $ac_c" 1>&6
179992906Smarkmecho "configure:1800: checking for working const" >&5
180022347Spstif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
180122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
180222347Spstelse
180322347Spst  cat > conftest.$ac_ext <<EOF
180492906Smarkm#line 1805 "configure"
180522347Spst#include "confdefs.h"
180622347Spst
180729964Sacheint main() {
180822347Spst
180922347Spst/* Ultrix mips cc rejects this.  */
181022347Spsttypedef int charset[2]; const charset x;
181122347Spst/* SunOS 4.1.1 cc rejects this.  */
181222347Spstchar const *const *ccp;
181322347Spstchar **p;
181422347Spst/* NEC SVR4.0.2 mips cc rejects this.  */
181522347Spststruct point {int x, y;};
181622347Spststatic struct point const zero = {0,0};
181722347Spst/* AIX XL C 1.02.0.0 rejects this.
181822347Spst   It does not let you subtract one const X* pointer from another in an arm
181922347Spst   of an if-expression whose if-part is not a constant expression */
182022347Spstconst char *g = "string";
182122347Spstccp = &g + (g ? g-g : 0);
182222347Spst/* HPUX 7.0 cc rejects these. */
182322347Spst++ccp;
182422347Spstp = (char**) ccp;
182522347Spstccp = (char const *const *) p;
182622347Spst{ /* SCO 3.2v4 cc rejects this.  */
182722347Spst  char *t;
182822347Spst  char const *s = 0 ? (char *) 0 : (char const *) 0;
182922347Spst
183022347Spst  *t++ = 0;
183122347Spst}
183222347Spst{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
183322347Spst  int x[] = {25, 17};
183422347Spst  const int *foo = &x[0];
183522347Spst  ++foo;
183622347Spst}
183722347Spst{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
183822347Spst  typedef const int *iptr;
183922347Spst  iptr p = 0;
184022347Spst  ++p;
184122347Spst}
184222347Spst{ /* AIX XL C 1.02.0.0 rejects this saying
184322347Spst     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
184422347Spst  struct s { int j; const int *ap[3]; };
184522347Spst  struct s *b; b->j = 5;
184622347Spst}
184722347Spst{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
184822347Spst  const int foo = 10;
184922347Spst}
185022347Spst
185122347Spst; return 0; }
185222347SpstEOF
185392906Smarkmif { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
185422347Spst  rm -rf conftest*
185522347Spst  ac_cv_c_const=yes
185622347Spstelse
185729964Sache  echo "configure: failed program was:" >&5
185829964Sache  cat conftest.$ac_ext >&5
185922347Spst  rm -rf conftest*
186022347Spst  ac_cv_c_const=no
186122347Spstfi
186222347Spstrm -f conftest*
186322347Spstfi
186422347Spst
186522347Spstecho "$ac_t""$ac_cv_c_const" 1>&6
186622347Spstif test $ac_cv_c_const = no; then
186722347Spst  cat >> confdefs.h <<\EOF
186822347Spst#define const 
186922347SpstEOF
187022347Spst
187122347Spstfi
187222347Spst
187322347Spst
187422347Spstecho $ac_n "checking to see if your compiler can handle void arguments""... $ac_c" 1>&6
187592906Smarkmecho "configure:1876: checking to see if your compiler can handle void arguments" >&5
187622347Spstcat > conftest.$ac_ext <<EOF
187792906Smarkm#line 1878 "configure"
187822347Spst#include "confdefs.h"
187922347Spstfoo(void) { }
188029964Sacheint main() {
188122347Spst
188222347Spst; return 0; }
188322347SpstEOF
188492906Smarkmif { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
188522347Spst  rm -rf conftest*
188622347Spst  cat >> confdefs.h <<\EOF
188722347Spst#define HAVE_VOIDARG 1
188822347SpstEOF
188922347Spst echo "$ac_t""yes" 1>&6
189022347Spstelse
189129964Sache  echo "configure: failed program was:" >&5
189229964Sache  cat conftest.$ac_ext >&5
189322347Spst  rm -rf conftest*
189422347Spst  echo "$ac_t""no" 1>&6
189522347Spstfi
189622347Spstrm -f conftest*
189722347Spst
189822347Spstecho $ac_n "checking to see if your compiler can handle void return values""... $ac_c" 1>&6
189992906Smarkmecho "configure:1900: checking to see if your compiler can handle void return values" >&5
190022347Spstcat > conftest.$ac_ext <<EOF
190192906Smarkm#line 1902 "configure"
190222347Spst#include "confdefs.h"
190322347Spstvoid foo() { }
190429964Sacheint main() {
190522347Spst
190622347Spst; return 0; }
190722347SpstEOF
190892906Smarkmif { (eval echo configure:1909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
190922347Spst  rm -rf conftest*
191022347Spst  cat >> confdefs.h <<\EOF
191122347Spst#define HAVE_VOIDRET 1
191222347SpstEOF
191322347Spst echo "$ac_t""yes" 1>&6
191422347Spstelse
191529964Sache  echo "configure: failed program was:" >&5
191629964Sache  cat conftest.$ac_ext >&5
191722347Spst  rm -rf conftest*
191822347Spst  echo "$ac_t""no" 1>&6
191922347Spstfi
192022347Spstrm -f conftest*
192122347Spst
192222347Spstecho $ac_n "checking to see if your compiler can handle void pointers""... $ac_c" 1>&6
192392906Smarkmecho "configure:1924: checking to see if your compiler can handle void pointers" >&5
192422347Spstcat > conftest.$ac_ext <<EOF
192592906Smarkm#line 1926 "configure"
192622347Spst#include "confdefs.h"
192722347Spstfoo() { void *bar = (void *)0x42; bar = bar + 1; }
192829964Sacheint main() {
192922347Spst
193022347Spst; return 0; }
193122347SpstEOF
193292906Smarkmif { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
193322347Spst  rm -rf conftest*
193422347Spst  cat >> confdefs.h <<\EOF
193522347Spst#define HAVE_VOIDPTR 1
193622347SpstEOF
193722347Spst echo "$ac_t""yes" 1>&6
193822347Spstelse
193929964Sache  echo "configure: failed program was:" >&5
194029964Sache  cat conftest.$ac_ext >&5
194122347Spst  rm -rf conftest*
194222347Spst  echo "$ac_t""no" 1>&6
194322347Spstfi
194422347Spstrm -f conftest*
194522347Spst
194622347Spstecho $ac_n "checking to see if your compiler can handle ANSI argument lists""... $ac_c" 1>&6
194792906Smarkmecho "configure:1948: checking to see if your compiler can handle ANSI argument lists" >&5
194822347Spstcat > conftest.$ac_ext <<EOF
194992906Smarkm#line 1950 "configure"
195022347Spst#include "confdefs.h"
195122347Spstint foo(int bar, int baz) { return 0; }
195229964Sacheint main() {
195322347Spst
195422347Spst; return 0; }
195522347SpstEOF
195692906Smarkmif { (eval echo configure:1957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
195722347Spst  rm -rf conftest*
195822347Spst  cat >> confdefs.h <<\EOF
195922347Spst#define HAVE_ANSIDECL 1
196022347SpstEOF
196122347Spst echo "$ac_t""yes" 1>&6
196222347Spstelse
196329964Sache  echo "configure: failed program was:" >&5
196429964Sache  cat conftest.$ac_ext >&5
196522347Spst  rm -rf conftest*
196622347Spst  echo "$ac_t""no" 1>&6
196722347Spstfi
196822347Spstrm -f conftest*
196922347Spst
197022347Spstecho $ac_n "checking to see if your compiler can handle ANSI prototypes""... $ac_c" 1>&6
197192906Smarkmecho "configure:1972: checking to see if your compiler can handle ANSI prototypes" >&5
197222347Spstcat > conftest.$ac_ext <<EOF
197392906Smarkm#line 1974 "configure"
197422347Spst#include "confdefs.h"
197522347Spstextern int foo(int, int);
197629964Sacheint main() {
197722347Spst
197822347Spst; return 0; }
197922347SpstEOF
198092906Smarkmif { (eval echo configure:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
198122347Spst  rm -rf conftest*
198222347Spst  cat >> confdefs.h <<\EOF
198322347Spst#define HAVE_ANSIPROTO 1
198422347SpstEOF
198522347Spst echo "$ac_t""yes" 1>&6
198622347Spstelse
198729964Sache  echo "configure: failed program was:" >&5
198829964Sache  cat conftest.$ac_ext >&5
198922347Spst  rm -rf conftest*
199022347Spst  echo "$ac_t""no" 1>&6
199122347Spstfi
199222347Spstrm -f conftest*
199322347Spst
199422347Spstecho $ac_n "checking to see if your compiler can handle ANSI variable arguments""... $ac_c" 1>&6
199592906Smarkmecho "configure:1996: checking to see if your compiler can handle ANSI variable arguments" >&5
199622347Spstcat > conftest.$ac_ext <<EOF
199792906Smarkm#line 1998 "configure"
199822347Spst#include "confdefs.h"
199922347Spst#include <stdarg.h>
200022347Spstint foo(int arg, ...) {
200122347Spst	va_list ap;
200222347Spst	va_start(ap, arg);
200322347Spst	va_end(ap);
200422347Spst	return 0;
200522347Spst}
200629964Sacheint main() {
200722347Spst
200822347Spst; return 0; }
200922347SpstEOF
201092906Smarkmif { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
201122347Spst  rm -rf conftest*
201222347Spst  cat >> confdefs.h <<\EOF
201322347Spst#define HAVE_ANSISTDARG 1
201422347SpstEOF
201522347Spst echo "$ac_t""yes" 1>&6
201622347Spstelse
201729964Sache  echo "configure: failed program was:" >&5
201829964Sache  cat conftest.$ac_ext >&5
201922347Spst  rm -rf conftest*
202022347Spst  echo "$ac_t""no" 1>&6
202122347Spstfi
202222347Spstrm -f conftest*
202322347Spst
202422347Spstecho $ac_n "checking to see if you have an ANSI-style sprintf""... $ac_c" 1>&6
202592906Smarkmecho "configure:2026: checking to see if you have an ANSI-style sprintf" >&5
202622347Spstif test "$cross_compiling" = yes; then
202722347Spst  echo "$ac_t""no" 1>&6
202822347Spstelse
202929964Sache  cat > conftest.$ac_ext <<EOF
203092906Smarkm#line 2031 "configure"
203122347Spst#include "confdefs.h"
203222347Spst#include <stdio.h>
203322347Spstint main(argc, argv)
203422347Spstint argc;
203522347Spstchar *argv[];
203622347Spst{
203722347Spst  char buf[5];
203822347Spst  int i = 2;
203922347Spst  i += sprintf(buf, "1234");
204022347Spst  return (i == 6) ? 0 : -1;
204122347Spst}
204222347SpstEOF
204392906Smarkmif { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
204429964Sachethen
204522347Spst  cat >> confdefs.h <<\EOF
204622347Spst#define HAVE_ANSISPRINTF 1
204722347SpstEOF
204822347Spst echo "$ac_t""yes" 1>&6
204922347Spstelse
205029964Sache  echo "configure: failed program was:" >&5
205129964Sache  cat conftest.$ac_ext >&5
205229964Sache  rm -fr conftest*
205322347Spst  echo "$ac_t""no" 1>&6
205422347Spstfi
205529964Sacherm -fr conftest*
205622347Spstfi
205722347Spst
205829964Sache
205929964Sacheecho $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
206092906Smarkmecho "configure:2061: checking for crypt in -lcrypt" >&5
206129964Sacheac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
206222347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
206322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
206422347Spstelse
206522347Spst  ac_save_LIBS="$LIBS"
206622347SpstLIBS="-lcrypt  $LIBS"
206722347Spstcat > conftest.$ac_ext <<EOF
206892906Smarkm#line 2069 "configure"
206922347Spst#include "confdefs.h"
207022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
207122347Spst/* We use char because int might match the return type of a gcc2
207222347Spst    builtin and then its argument prototype would still apply.  */
207322347Spstchar crypt();
207422347Spst
207529964Sacheint main() {
207622347Spstcrypt()
207722347Spst; return 0; }
207822347SpstEOF
207992906Smarkmif { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
208022347Spst  rm -rf conftest*
208122347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
208222347Spstelse
208329964Sache  echo "configure: failed program was:" >&5
208429964Sache  cat conftest.$ac_ext >&5
208522347Spst  rm -rf conftest*
208622347Spst  eval "ac_cv_lib_$ac_lib_var=no"
208722347Spstfi
208822347Spstrm -f conftest*
208922347SpstLIBS="$ac_save_LIBS"
209022347Spst
209122347Spstfi
209222347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
209322347Spst  echo "$ac_t""yes" 1>&6
209429964Sache    ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
209529964Sache    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
209622347Spst  cat >> confdefs.h <<EOF
209722347Spst#define $ac_tr_lib 1
209822347SpstEOF
209922347Spst
210022347Spst  LIBS="-lcrypt $LIBS"
210122347Spst
210222347Spstelse
210322347Spst  echo "$ac_t""no" 1>&6
210422347Spstfi
210522347Spst
210629964Sacheecho $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
210792906Smarkmecho "configure:2108: checking for gethostname in -lnsl" >&5
210829964Sacheac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
210922347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
211022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
211122347Spstelse
211222347Spst  ac_save_LIBS="$LIBS"
211322347SpstLIBS="-lnsl  $LIBS"
211422347Spstcat > conftest.$ac_ext <<EOF
211592906Smarkm#line 2116 "configure"
211622347Spst#include "confdefs.h"
211722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
211822347Spst/* We use char because int might match the return type of a gcc2
211922347Spst    builtin and then its argument prototype would still apply.  */
212022347Spstchar gethostname();
212122347Spst
212229964Sacheint main() {
212322347Spstgethostname()
212422347Spst; return 0; }
212522347SpstEOF
212692906Smarkmif { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
212722347Spst  rm -rf conftest*
212822347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
212922347Spstelse
213029964Sache  echo "configure: failed program was:" >&5
213129964Sache  cat conftest.$ac_ext >&5
213222347Spst  rm -rf conftest*
213322347Spst  eval "ac_cv_lib_$ac_lib_var=no"
213422347Spstfi
213522347Spstrm -f conftest*
213622347SpstLIBS="$ac_save_LIBS"
213722347Spst
213822347Spstfi
213922347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
214022347Spst  echo "$ac_t""yes" 1>&6
214129964Sache    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
214229964Sache    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
214322347Spst  cat >> confdefs.h <<EOF
214422347Spst#define $ac_tr_lib 1
214522347SpstEOF
214622347Spst
214722347Spst  LIBS="-lnsl $LIBS"
214822347Spst
214922347Spstelse
215022347Spst  echo "$ac_t""no" 1>&6
215122347Spstfi
215222347Spst
215329964Sacheecho $ac_n "checking for main in -lposix""... $ac_c" 1>&6
215492906Smarkmecho "configure:2155: checking for main in -lposix" >&5
215529964Sacheac_lib_var=`echo posix'_'main | sed 'y%./+-%__p_%'`
215622347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
215722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
215822347Spstelse
215922347Spst  ac_save_LIBS="$LIBS"
216022347SpstLIBS="-lposix  $LIBS"
216122347Spstcat > conftest.$ac_ext <<EOF
216292906Smarkm#line 2163 "configure"
216322347Spst#include "confdefs.h"
216422347Spst
216529964Sacheint main() {
216622347Spstmain()
216722347Spst; return 0; }
216822347SpstEOF
216992906Smarkmif { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
217022347Spst  rm -rf conftest*
217122347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
217222347Spstelse
217329964Sache  echo "configure: failed program was:" >&5
217429964Sache  cat conftest.$ac_ext >&5
217522347Spst  rm -rf conftest*
217622347Spst  eval "ac_cv_lib_$ac_lib_var=no"
217722347Spstfi
217822347Spstrm -f conftest*
217922347SpstLIBS="$ac_save_LIBS"
218022347Spst
218122347Spstfi
218222347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
218322347Spst  echo "$ac_t""yes" 1>&6
218429964Sache    ac_tr_lib=HAVE_LIB`echo posix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
218529964Sache    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
218622347Spst  cat >> confdefs.h <<EOF
218722347Spst#define $ac_tr_lib 1
218822347SpstEOF
218922347Spst
219022347Spst  LIBS="-lposix $LIBS"
219122347Spst
219222347Spstelse
219322347Spst  echo "$ac_t""no" 1>&6
219422347Spstfi
219522347Spst
219629964Sacheecho $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
219792906Smarkmecho "configure:2198: checking for socket in -lsocket" >&5
219829964Sacheac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
219922347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
220022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
220122347Spstelse
220222347Spst  ac_save_LIBS="$LIBS"
220322347SpstLIBS="-lsocket  $LIBS"
220422347Spstcat > conftest.$ac_ext <<EOF
220592906Smarkm#line 2206 "configure"
220622347Spst#include "confdefs.h"
220722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
220822347Spst/* We use char because int might match the return type of a gcc2
220922347Spst    builtin and then its argument prototype would still apply.  */
221022347Spstchar socket();
221122347Spst
221229964Sacheint main() {
221322347Spstsocket()
221422347Spst; return 0; }
221522347SpstEOF
221692906Smarkmif { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
221722347Spst  rm -rf conftest*
221822347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
221922347Spstelse
222029964Sache  echo "configure: failed program was:" >&5
222129964Sache  cat conftest.$ac_ext >&5
222222347Spst  rm -rf conftest*
222322347Spst  eval "ac_cv_lib_$ac_lib_var=no"
222422347Spstfi
222522347Spstrm -f conftest*
222622347SpstLIBS="$ac_save_LIBS"
222722347Spst
222822347Spstfi
222922347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
223022347Spst  echo "$ac_t""yes" 1>&6
223129964Sache    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
223229964Sache    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
223322347Spst  cat >> confdefs.h <<EOF
223422347Spst#define $ac_tr_lib 1
223522347SpstEOF
223622347Spst
223722347Spst  LIBS="-lsocket $LIBS"
223822347Spst
223922347Spstelse
224022347Spst  echo "$ac_t""no" 1>&6
224122347Spstfi
224222347Spst
224322347Spst
224422347Spstac_header_dirent=no
224522347Spstfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
224622347Spstdo
224729964Sacheac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
224822347Spstecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
224992906Smarkmecho "configure:2250: checking for $ac_hdr that defines DIR" >&5
225022347Spstif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
225122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
225222347Spstelse
225322347Spst  cat > conftest.$ac_ext <<EOF
225492906Smarkm#line 2255 "configure"
225522347Spst#include "confdefs.h"
225622347Spst#include <sys/types.h>
225722347Spst#include <$ac_hdr>
225829964Sacheint main() {
225922347SpstDIR *dirp = 0;
226022347Spst; return 0; }
226122347SpstEOF
226292906Smarkmif { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
226322347Spst  rm -rf conftest*
226422347Spst  eval "ac_cv_header_dirent_$ac_safe=yes"
226522347Spstelse
226629964Sache  echo "configure: failed program was:" >&5
226729964Sache  cat conftest.$ac_ext >&5
226822347Spst  rm -rf conftest*
226922347Spst  eval "ac_cv_header_dirent_$ac_safe=no"
227022347Spstfi
227122347Spstrm -f conftest*
227222347Spstfi
227322347Spstif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
227422347Spst  echo "$ac_t""yes" 1>&6
227529964Sache    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
227622347Spst  cat >> confdefs.h <<EOF
227722347Spst#define $ac_tr_hdr 1
227822347SpstEOF
227922347Spst ac_header_dirent=$ac_hdr; break
228022347Spstelse
228122347Spst  echo "$ac_t""no" 1>&6
228222347Spstfi
228322347Spstdone
228422347Spst# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
228522347Spstif test $ac_header_dirent = dirent.h; then
228629964Sacheecho $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
228792906Smarkmecho "configure:2288: checking for opendir in -ldir" >&5
228829964Sacheac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
228922347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
229022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
229122347Spstelse
229222347Spst  ac_save_LIBS="$LIBS"
229322347SpstLIBS="-ldir  $LIBS"
229422347Spstcat > conftest.$ac_ext <<EOF
229592906Smarkm#line 2296 "configure"
229622347Spst#include "confdefs.h"
229722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
229822347Spst/* We use char because int might match the return type of a gcc2
229922347Spst    builtin and then its argument prototype would still apply.  */
230022347Spstchar opendir();
230122347Spst
230229964Sacheint main() {
230322347Spstopendir()
230422347Spst; return 0; }
230522347SpstEOF
230692906Smarkmif { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
230722347Spst  rm -rf conftest*
230822347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
230922347Spstelse
231029964Sache  echo "configure: failed program was:" >&5
231129964Sache  cat conftest.$ac_ext >&5
231222347Spst  rm -rf conftest*
231322347Spst  eval "ac_cv_lib_$ac_lib_var=no"
231422347Spstfi
231522347Spstrm -f conftest*
231622347SpstLIBS="$ac_save_LIBS"
231722347Spst
231822347Spstfi
231922347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
232022347Spst  echo "$ac_t""yes" 1>&6
232122347Spst  LIBS="$LIBS -ldir"
232222347Spstelse
232322347Spst  echo "$ac_t""no" 1>&6
232422347Spstfi
232522347Spst
232622347Spstelse
232729964Sacheecho $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
232892906Smarkmecho "configure:2329: checking for opendir in -lx" >&5
232929964Sacheac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
233022347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
233122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
233222347Spstelse
233322347Spst  ac_save_LIBS="$LIBS"
233422347SpstLIBS="-lx  $LIBS"
233522347Spstcat > conftest.$ac_ext <<EOF
233692906Smarkm#line 2337 "configure"
233722347Spst#include "confdefs.h"
233822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
233922347Spst/* We use char because int might match the return type of a gcc2
234022347Spst    builtin and then its argument prototype would still apply.  */
234122347Spstchar opendir();
234222347Spst
234329964Sacheint main() {
234422347Spstopendir()
234522347Spst; return 0; }
234622347SpstEOF
234792906Smarkmif { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
234822347Spst  rm -rf conftest*
234922347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
235022347Spstelse
235129964Sache  echo "configure: failed program was:" >&5
235229964Sache  cat conftest.$ac_ext >&5
235322347Spst  rm -rf conftest*
235422347Spst  eval "ac_cv_lib_$ac_lib_var=no"
235522347Spstfi
235622347Spstrm -f conftest*
235722347SpstLIBS="$ac_save_LIBS"
235822347Spst
235922347Spstfi
236022347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
236122347Spst  echo "$ac_t""yes" 1>&6
236222347Spst  LIBS="$LIBS -lx"
236322347Spstelse
236422347Spst  echo "$ac_t""no" 1>&6
236522347Spstfi
236622347Spst
236722347Spstfi
236822347Spst
236922347Spstecho $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
237092906Smarkmecho "configure:2371: checking for sys/wait.h that is POSIX.1 compatible" >&5
237122347Spstif eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
237222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
237322347Spstelse
237422347Spst  cat > conftest.$ac_ext <<EOF
237592906Smarkm#line 2376 "configure"
237622347Spst#include "confdefs.h"
237722347Spst#include <sys/types.h>
237822347Spst#include <sys/wait.h>
237922347Spst#ifndef WEXITSTATUS
238022347Spst#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
238122347Spst#endif
238222347Spst#ifndef WIFEXITED
238322347Spst#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
238422347Spst#endif
238529964Sacheint main() {
238622347Spstint s;
238722347Spstwait (&s);
238822347Spsts = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
238922347Spst; return 0; }
239022347SpstEOF
239192906Smarkmif { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
239222347Spst  rm -rf conftest*
239322347Spst  ac_cv_header_sys_wait_h=yes
239422347Spstelse
239529964Sache  echo "configure: failed program was:" >&5
239629964Sache  cat conftest.$ac_ext >&5
239722347Spst  rm -rf conftest*
239822347Spst  ac_cv_header_sys_wait_h=no
239922347Spstfi
240022347Spstrm -f conftest*
240122347Spstfi
240222347Spst
240322347Spstecho "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
240422347Spstif test $ac_cv_header_sys_wait_h = yes; then
240522347Spst  cat >> confdefs.h <<\EOF
240622347Spst#define HAVE_SYS_WAIT_H 1
240722347SpstEOF
240822347Spst
240922347Spstfi
241022347Spst
241129964Sachefor ac_hdr in crypt.h fcntl.h limits.h termios.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h paths.h shadow.h signal.h sys/signal.h lastlog.h sys/utsname.h pwd.h sys/param.h string.h stdlib.h utmpx.h sys/select.h
241222347Spstdo
241329964Sacheac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
241422347Spstecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
241592906Smarkmecho "configure:2416: checking for $ac_hdr" >&5
241622347Spstif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
241722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
241822347Spstelse
241922347Spst  cat > conftest.$ac_ext <<EOF
242092906Smarkm#line 2421 "configure"
242122347Spst#include "confdefs.h"
242222347Spst#include <$ac_hdr>
242322347SpstEOF
242422347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
242592906Smarkm{ (eval echo configure:2426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
242692906Smarkmac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
242722347Spstif test -z "$ac_err"; then
242822347Spst  rm -rf conftest*
242922347Spst  eval "ac_cv_header_$ac_safe=yes"
243022347Spstelse
243122347Spst  echo "$ac_err" >&5
243229964Sache  echo "configure: failed program was:" >&5
243329964Sache  cat conftest.$ac_ext >&5
243422347Spst  rm -rf conftest*
243522347Spst  eval "ac_cv_header_$ac_safe=no"
243622347Spstfi
243722347Spstrm -f conftest*
243822347Spstfi
243922347Spstif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
244022347Spst  echo "$ac_t""yes" 1>&6
244129964Sache    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
244222347Spst  cat >> confdefs.h <<EOF
244322347Spst#define $ac_tr_hdr 1
244422347SpstEOF
244522347Spst 
244622347Spstelse
244722347Spst  echo "$ac_t""no" 1>&6
244822347Spstfi
244922347Spstdone
245022347Spst
245122347Spst
245222347Spst
245322347Spstecho $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
245492906Smarkmecho "configure:2455: checking for ut_pid in struct utmp" >&5
245522347Spstcat > conftest.$ac_ext <<EOF
245692906Smarkm#line 2457 "configure"
245722347Spst#include "confdefs.h"
245822347Spst#include <sys/types.h>
245922347Spst#include <utmp.h>
246029964Sacheint main() {
246122347Spststruct utmp foo; return (int)foo.ut_pid;
246222347Spst; return 0; }
246322347SpstEOF
246492906Smarkmif { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
246522347Spst  rm -rf conftest*
246622347Spst  cat >> confdefs.h <<\EOF
246722347Spst#define HAVE_UT_PID 1
246822347SpstEOF
246922347Spst echo "$ac_t""yes" 1>&6
247022347Spstelse
247129964Sache  echo "configure: failed program was:" >&5
247229964Sache  cat conftest.$ac_ext >&5
247322347Spst  rm -rf conftest*
247422347Spst  echo "$ac_t""no" 1>&6
247522347Spstfi
247622347Spstrm -f conftest*
247722347Spstecho $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
247892906Smarkmecho "configure:2479: checking for ut_type in struct utmp" >&5
247922347Spstcat > conftest.$ac_ext <<EOF
248092906Smarkm#line 2481 "configure"
248122347Spst#include "confdefs.h"
248222347Spst#include <sys/types.h>
248322347Spst#include <utmp.h>
248429964Sacheint main() {
248522347Spststruct utmp foo; return (int)foo.ut_type;
248622347Spst; return 0; }
248722347SpstEOF
248892906Smarkmif { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
248922347Spst  rm -rf conftest*
249022347Spst  cat >> confdefs.h <<\EOF
249122347Spst#define HAVE_UT_TYPE 1
249222347SpstEOF
249322347Spst echo "$ac_t""yes" 1>&6
249422347Spstelse
249529964Sache  echo "configure: failed program was:" >&5
249629964Sache  cat conftest.$ac_ext >&5
249722347Spst  rm -rf conftest*
249822347Spst  echo "$ac_t""no" 1>&6
249922347Spstfi
250022347Spstrm -f conftest*
250122347Spstecho $ac_n "checking for ut_name in struct utmp""... $ac_c" 1>&6
250292906Smarkmecho "configure:2503: checking for ut_name in struct utmp" >&5
250322347Spstcat > conftest.$ac_ext <<EOF
250492906Smarkm#line 2505 "configure"
250522347Spst#include "confdefs.h"
250622347Spst#include <sys/types.h>
250722347Spst#include <utmp.h>
250829964Sacheint main() {
250922347Spststruct utmp foo; return (int)foo.ut_name[0];
251022347Spst; return 0; }
251122347SpstEOF
251292906Smarkmif { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
251322347Spst  rm -rf conftest*
251422347Spst  cat >> confdefs.h <<\EOF
251522347Spst#define HAVE_UT_NAME 1
251622347SpstEOF
251722347Spst echo "$ac_t""yes" 1>&6
251822347Spstelse
251929964Sache  echo "configure: failed program was:" >&5
252029964Sache  cat conftest.$ac_ext >&5
252122347Spst  rm -rf conftest*
252222347Spst  echo "$ac_t""no" 1>&6
252322347Spstfi
252422347Spstrm -f conftest*
252559118Skrisecho $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
252692906Smarkmecho "configure:2527: checking for ut_host in struct utmp" >&5
252759118Skriscat > conftest.$ac_ext <<EOF
252892906Smarkm#line 2529 "configure"
252959118Skris#include "confdefs.h"
253059118Skris#include <sys/types.h>
253159118Skris#include <utmp.h>
253259118Skrisint main() {
253359118Skrisstruct utmp foo; return (int)foo.ut_host[0];
253459118Skris; return 0; }
253559118SkrisEOF
253692906Smarkmif { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
253759118Skris  rm -rf conftest*
253859118Skris  cat >> confdefs.h <<\EOF
253922347Spst#define HAVE_UT_HOST 1
254022347SpstEOF
254159118Skris echo "$ac_t""yes" 1>&6
254259118Skriselse
254359118Skris  echo "configure: failed program was:" >&5
254459118Skris  cat conftest.$ac_ext >&5
254559118Skris  rm -rf conftest*
254659118Skris  echo "$ac_t""no" 1>&6
254759118Skrisfi
254859118Skrisrm -f conftest*
254992906Smarkmecho $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
255092906Smarkmecho "configure:2551: checking for ut_id in struct utmp" >&5
255192906Smarkmcat > conftest.$ac_ext <<EOF
255292906Smarkm#line 2553 "configure"
255392906Smarkm#include "confdefs.h"
255492906Smarkm#include <sys/types.h>
255592906Smarkm#include <utmp.h>
255692906Smarkmint main() {
255792906Smarkmstruct utmp foo; return (int)foo.ut_id[0];
255892906Smarkm; return 0; }
255992906SmarkmEOF
256092906Smarkmif { (eval echo configure:2561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
256192906Smarkm  rm -rf conftest*
256292906Smarkm  cat >> confdefs.h <<\EOF
256392906Smarkm#define HAVE_UT_ID 1
256492906SmarkmEOF
256592906Smarkm echo "$ac_t""yes" 1>&6
256692906Smarkmelse
256792906Smarkm  echo "configure: failed program was:" >&5
256892906Smarkm  cat conftest.$ac_ext >&5
256992906Smarkm  rm -rf conftest*
257092906Smarkm  echo "$ac_t""no" 1>&6
257192906Smarkmfi
257292906Smarkmrm -f conftest*
257392906Smarkm#AC_MSG_CHECKING(for ut_syslen in struct utmp)
257492906Smarkm#AC_TRY_COMPILE([#include <sys/types.h>
257592906Smarkm##include <utmp.h>], [struct utmp foo; return (int)foo.ut_syslen;], AC_DEFINE(HAVE_UT_SYSLEN) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
257692906Smarkmecho $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
257792906Smarkmecho "configure:2578: checking for ut_syslen in struct utmpx" >&5
257892906Smarkmcat > conftest.$ac_ext <<EOF
257992906Smarkm#line 2580 "configure"
258092906Smarkm#include "confdefs.h"
258192906Smarkm#include <sys/types.h>
258292906Smarkm#include <utmpx.h>
258392906Smarkmint main() {
258492906Smarkmstruct utmpx foo; return (int)foo.ut_syslen;
258592906Smarkm; return 0; }
258692906SmarkmEOF
258792906Smarkmif { (eval echo configure:2588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
258892906Smarkm  rm -rf conftest*
258992906Smarkm  cat >> confdefs.h <<\EOF
259092906Smarkm#define HAVE_UTX_SYSLEN 1
259192906SmarkmEOF
259292906Smarkm echo "$ac_t""yes" 1>&6
259392906Smarkmelse
259492906Smarkm  echo "configure: failed program was:" >&5
259592906Smarkm  cat conftest.$ac_ext >&5
259692906Smarkm  rm -rf conftest*
259792906Smarkm  echo "$ac_t""no" 1>&6
259892906Smarkmfi
259992906Smarkmrm -f conftest*
260022347Spst
260122347Spstecho $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
260292906Smarkmecho "configure:2603: checking return type of signal handlers" >&5
260322347Spstif eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
260422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
260522347Spstelse
260622347Spst  cat > conftest.$ac_ext <<EOF
260792906Smarkm#line 2608 "configure"
260822347Spst#include "confdefs.h"
260922347Spst#include <sys/types.h>
261022347Spst#include <signal.h>
261122347Spst#ifdef signal
261222347Spst#undef signal
261322347Spst#endif
261422347Spst#ifdef __cplusplus
261522347Spstextern "C" void (*signal (int, void (*)(int)))(int);
261622347Spst#else
261722347Spstvoid (*signal ()) ();
261822347Spst#endif
261922347Spst
262029964Sacheint main() {
262122347Spstint i;
262222347Spst; return 0; }
262322347SpstEOF
262492906Smarkmif { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
262522347Spst  rm -rf conftest*
262622347Spst  ac_cv_type_signal=void
262722347Spstelse
262829964Sache  echo "configure: failed program was:" >&5
262929964Sache  cat conftest.$ac_ext >&5
263022347Spst  rm -rf conftest*
263122347Spst  ac_cv_type_signal=int
263222347Spstfi
263322347Spstrm -f conftest*
263422347Spstfi
263522347Spst
263622347Spstecho "$ac_t""$ac_cv_type_signal" 1>&6
263722347Spstcat >> confdefs.h <<EOF
263822347Spst#define RETSIGTYPE $ac_cv_type_signal
263922347SpstEOF
264022347Spst
264122347Spst
264229964Sachefor ac_func in gettimeofday socket strftime strstr setpriority getttynam setvbuf getspnam endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline usleep
264322347Spstdo
264422347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
264592906Smarkmecho "configure:2646: checking for $ac_func" >&5
264622347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
264722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
264822347Spstelse
264922347Spst  cat > conftest.$ac_ext <<EOF
265092906Smarkm#line 2651 "configure"
265122347Spst#include "confdefs.h"
265222347Spst/* System header to define __stub macros and hopefully few prototypes,
265322347Spst    which can conflict with char $ac_func(); below.  */
265422347Spst#include <assert.h>
265522347Spst/* Override any gcc2 internal prototype to avoid an error.  */
265622347Spst/* We use char because int might match the return type of a gcc2
265722347Spst    builtin and then its argument prototype would still apply.  */
265822347Spstchar $ac_func();
265922347Spst
266029964Sacheint main() {
266122347Spst
266222347Spst/* The GNU C library defines this for functions which it implements
266322347Spst    to always fail with ENOSYS.  Some functions are actually named
266422347Spst    something starting with __ and the normal name is an alias.  */
266522347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
266622347Spstchoke me
266722347Spst#else
266822347Spst$ac_func();
266922347Spst#endif
267022347Spst
267122347Spst; return 0; }
267222347SpstEOF
267392906Smarkmif { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
267422347Spst  rm -rf conftest*
267522347Spst  eval "ac_cv_func_$ac_func=yes"
267622347Spstelse
267729964Sache  echo "configure: failed program was:" >&5
267829964Sache  cat conftest.$ac_ext >&5
267922347Spst  rm -rf conftest*
268022347Spst  eval "ac_cv_func_$ac_func=no"
268122347Spstfi
268222347Spstrm -f conftest*
268329964Sachefi
268422347Spst
268522347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
268622347Spst  echo "$ac_t""yes" 1>&6
268722347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
268822347Spst  cat >> confdefs.h <<EOF
268922347Spst#define $ac_tr_func 1
269022347SpstEOF
269122347Spst 
269222347Spstelse
269322347Spst  echo "$ac_t""no" 1>&6
269422347Spstfi
269522347Spstdone
269622347Spst
269722347Spst
269822347Spstecho $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
269992906Smarkmecho "configure:2700: checking for 8-bit clean memcmp" >&5
270029964Sacheif eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
270122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
270222347Spstelse
270322347Spst  if test "$cross_compiling" = yes; then
270429964Sache  ac_cv_func_memcmp_clean=no
270522347Spstelse
270629964Sache  cat > conftest.$ac_ext <<EOF
270792906Smarkm#line 2708 "configure"
270822347Spst#include "confdefs.h"
270922347Spst
271022347Spstmain()
271122347Spst{
271222347Spst  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
271322347Spst  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
271422347Spst}
271522347Spst
271622347SpstEOF
271792906Smarkmif { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
271829964Sachethen
271929964Sache  ac_cv_func_memcmp_clean=yes
272022347Spstelse
272129964Sache  echo "configure: failed program was:" >&5
272229964Sache  cat conftest.$ac_ext >&5
272329964Sache  rm -fr conftest*
272429964Sache  ac_cv_func_memcmp_clean=no
272522347Spstfi
272622347Spstrm -fr conftest*
272722347Spstfi
272822347Spst
272929964Sachefi
273022347Spst
273129964Sacheecho "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
273292906Smarkmtest $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
273329964Sache
273422347Spst# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
273522347Spst# for constant arguments.  Useless!
273622347Spstecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6
273792906Smarkmecho "configure:2738: checking for working alloca.h" >&5
273822347Spstif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
273922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
274022347Spstelse
274122347Spst  cat > conftest.$ac_ext <<EOF
274292906Smarkm#line 2743 "configure"
274322347Spst#include "confdefs.h"
274422347Spst#include <alloca.h>
274529964Sacheint main() {
274622347Spstchar *p = alloca(2 * sizeof(int));
274722347Spst; return 0; }
274822347SpstEOF
274992906Smarkmif { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
275022347Spst  rm -rf conftest*
275122347Spst  ac_cv_header_alloca_h=yes
275222347Spstelse
275329964Sache  echo "configure: failed program was:" >&5
275429964Sache  cat conftest.$ac_ext >&5
275522347Spst  rm -rf conftest*
275622347Spst  ac_cv_header_alloca_h=no
275722347Spstfi
275822347Spstrm -f conftest*
275922347Spstfi
276022347Spst
276122347Spstecho "$ac_t""$ac_cv_header_alloca_h" 1>&6
276222347Spstif test $ac_cv_header_alloca_h = yes; then
276322347Spst  cat >> confdefs.h <<\EOF
276422347Spst#define HAVE_ALLOCA_H 1
276522347SpstEOF
276622347Spst
276722347Spstfi
276822347Spst
276922347Spstecho $ac_n "checking for alloca""... $ac_c" 1>&6
277092906Smarkmecho "configure:2771: checking for alloca" >&5
277129964Sacheif eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
277222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
277322347Spstelse
277422347Spst  cat > conftest.$ac_ext <<EOF
277592906Smarkm#line 2776 "configure"
277622347Spst#include "confdefs.h"
277722347Spst
277822347Spst#ifdef __GNUC__
277922347Spst# define alloca __builtin_alloca
278022347Spst#else
278192906Smarkm# ifdef _MSC_VER
278292906Smarkm#  include <malloc.h>
278392906Smarkm#  define alloca _alloca
278422347Spst# else
278592906Smarkm#  if HAVE_ALLOCA_H
278692906Smarkm#   include <alloca.h>
278792906Smarkm#  else
278892906Smarkm#   ifdef _AIX
278922347Spst #pragma alloca
279092906Smarkm#   else
279192906Smarkm#    ifndef alloca /* predefined by HP cc +Olibcalls */
279222347Spstchar *alloca ();
279392906Smarkm#    endif
279422347Spst#   endif
279522347Spst#  endif
279622347Spst# endif
279722347Spst#endif
279822347Spst
279929964Sacheint main() {
280022347Spstchar *p = (char *) alloca(1);
280122347Spst; return 0; }
280222347SpstEOF
280392906Smarkmif { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
280422347Spst  rm -rf conftest*
280529964Sache  ac_cv_func_alloca_works=yes
280622347Spstelse
280729964Sache  echo "configure: failed program was:" >&5
280829964Sache  cat conftest.$ac_ext >&5
280922347Spst  rm -rf conftest*
281029964Sache  ac_cv_func_alloca_works=no
281122347Spstfi
281222347Spstrm -f conftest*
281322347Spstfi
281422347Spst
281529964Sacheecho "$ac_t""$ac_cv_func_alloca_works" 1>&6
281629964Sacheif test $ac_cv_func_alloca_works = yes; then
281722347Spst  cat >> confdefs.h <<\EOF
281822347Spst#define HAVE_ALLOCA 1
281922347SpstEOF
282022347Spst
282122347Spstfi
282222347Spst
282329964Sacheif test $ac_cv_func_alloca_works = no; then
282422347Spst  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
282522347Spst  # that cause trouble.  Some versions do not even contain alloca or
282622347Spst  # contain a buggy version.  If you still want to use their alloca,
282722347Spst  # use ar to extract alloca.o from them instead of compiling alloca.c.
282892906Smarkm  ALLOCA=alloca.${ac_objext}
282922347Spst  cat >> confdefs.h <<\EOF
283022347Spst#define C_ALLOCA 1
283122347SpstEOF
283222347Spst
283322347Spst
283422347Spstecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
283592906Smarkmecho "configure:2836: checking whether alloca needs Cray hooks" >&5
283622347Spstif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
283722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
283822347Spstelse
283922347Spst  cat > conftest.$ac_ext <<EOF
284092906Smarkm#line 2841 "configure"
284122347Spst#include "confdefs.h"
284222347Spst#if defined(CRAY) && ! defined(CRAY2)
284322347Spstwebecray
284422347Spst#else
284522347Spstwenotbecray
284622347Spst#endif
284722347Spst
284822347SpstEOF
284922347Spstif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
285022347Spst  egrep "webecray" >/dev/null 2>&1; then
285122347Spst  rm -rf conftest*
285222347Spst  ac_cv_os_cray=yes
285322347Spstelse
285422347Spst  rm -rf conftest*
285522347Spst  ac_cv_os_cray=no
285622347Spstfi
285722347Spstrm -f conftest*
285822347Spst
285922347Spstfi
286022347Spst
286122347Spstecho "$ac_t""$ac_cv_os_cray" 1>&6
286222347Spstif test $ac_cv_os_cray = yes; then
286322347Spstfor ac_func in _getb67 GETB67 getb67; do
286422347Spst  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
286592906Smarkmecho "configure:2866: checking for $ac_func" >&5
286622347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
286722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
286822347Spstelse
286922347Spst  cat > conftest.$ac_ext <<EOF
287092906Smarkm#line 2871 "configure"
287122347Spst#include "confdefs.h"
287222347Spst/* System header to define __stub macros and hopefully few prototypes,
287322347Spst    which can conflict with char $ac_func(); below.  */
287422347Spst#include <assert.h>
287522347Spst/* Override any gcc2 internal prototype to avoid an error.  */
287622347Spst/* We use char because int might match the return type of a gcc2
287722347Spst    builtin and then its argument prototype would still apply.  */
287822347Spstchar $ac_func();
287922347Spst
288029964Sacheint main() {
288122347Spst
288222347Spst/* The GNU C library defines this for functions which it implements
288322347Spst    to always fail with ENOSYS.  Some functions are actually named
288422347Spst    something starting with __ and the normal name is an alias.  */
288522347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
288622347Spstchoke me
288722347Spst#else
288822347Spst$ac_func();
288922347Spst#endif
289022347Spst
289122347Spst; return 0; }
289222347SpstEOF
289392906Smarkmif { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
289422347Spst  rm -rf conftest*
289522347Spst  eval "ac_cv_func_$ac_func=yes"
289622347Spstelse
289729964Sache  echo "configure: failed program was:" >&5
289829964Sache  cat conftest.$ac_ext >&5
289922347Spst  rm -rf conftest*
290022347Spst  eval "ac_cv_func_$ac_func=no"
290122347Spstfi
290222347Spstrm -f conftest*
290329964Sachefi
290422347Spst
290522347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
290622347Spst  echo "$ac_t""yes" 1>&6
290722347Spst  cat >> confdefs.h <<EOF
290822347Spst#define CRAY_STACKSEG_END $ac_func
290922347SpstEOF
291022347Spst
291122347Spst  break
291222347Spstelse
291322347Spst  echo "$ac_t""no" 1>&6
291422347Spstfi
291522347Spst
291622347Spstdone
291722347Spstfi
291822347Spst
291922347Spstecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
292092906Smarkmecho "configure:2921: checking stack direction for C alloca" >&5
292122347Spstif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
292222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
292322347Spstelse
292422347Spst  if test "$cross_compiling" = yes; then
292522347Spst  ac_cv_c_stack_direction=0
292622347Spstelse
292729964Sache  cat > conftest.$ac_ext <<EOF
292892906Smarkm#line 2929 "configure"
292922347Spst#include "confdefs.h"
293022347Spstfind_stack_direction ()
293122347Spst{
293222347Spst  static char *addr = 0;
293322347Spst  auto char dummy;
293422347Spst  if (addr == 0)
293522347Spst    {
293622347Spst      addr = &dummy;
293722347Spst      return find_stack_direction ();
293822347Spst    }
293922347Spst  else
294022347Spst    return (&dummy > addr) ? 1 : -1;
294122347Spst}
294222347Spstmain ()
294322347Spst{
294422347Spst  exit (find_stack_direction() < 0);
294522347Spst}
294622347SpstEOF
294792906Smarkmif { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
294829964Sachethen
294922347Spst  ac_cv_c_stack_direction=1
295022347Spstelse
295129964Sache  echo "configure: failed program was:" >&5
295229964Sache  cat conftest.$ac_ext >&5
295329964Sache  rm -fr conftest*
295422347Spst  ac_cv_c_stack_direction=-1
295522347Spstfi
295622347Spstrm -fr conftest*
295722347Spstfi
295822347Spst
295929964Sachefi
296029964Sache
296122347Spstecho "$ac_t""$ac_cv_c_stack_direction" 1>&6
296222347Spstcat >> confdefs.h <<EOF
296322347Spst#define STACK_DIRECTION $ac_cv_c_stack_direction
296422347SpstEOF
296522347Spst
296622347Spstfi
296722347Spst
296822347Spstfor ac_func in getusershell sigaddset sigemptyset strerror strncasecmp
296922347Spstdo
297022347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
297192906Smarkmecho "configure:2972: checking for $ac_func" >&5
297222347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
297322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
297422347Spstelse
297522347Spst  cat > conftest.$ac_ext <<EOF
297692906Smarkm#line 2977 "configure"
297722347Spst#include "confdefs.h"
297822347Spst/* System header to define __stub macros and hopefully few prototypes,
297922347Spst    which can conflict with char $ac_func(); below.  */
298022347Spst#include <assert.h>
298122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
298222347Spst/* We use char because int might match the return type of a gcc2
298322347Spst    builtin and then its argument prototype would still apply.  */
298422347Spstchar $ac_func();
298522347Spst
298629964Sacheint main() {
298722347Spst
298822347Spst/* The GNU C library defines this for functions which it implements
298922347Spst    to always fail with ENOSYS.  Some functions are actually named
299022347Spst    something starting with __ and the normal name is an alias.  */
299122347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
299222347Spstchoke me
299322347Spst#else
299422347Spst$ac_func();
299522347Spst#endif
299622347Spst
299722347Spst; return 0; }
299822347SpstEOF
299992906Smarkmif { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
300022347Spst  rm -rf conftest*
300122347Spst  eval "ac_cv_func_$ac_func=yes"
300222347Spstelse
300329964Sache  echo "configure: failed program was:" >&5
300429964Sache  cat conftest.$ac_ext >&5
300522347Spst  rm -rf conftest*
300622347Spst  eval "ac_cv_func_$ac_func=no"
300722347Spstfi
300822347Spstrm -f conftest*
300929964Sachefi
301022347Spst
301122347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
301222347Spst  echo "$ac_t""yes" 1>&6
301329964Sache    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
301429964Sache  cat >> confdefs.h <<EOF
301529964Sache#define $ac_tr_func 1
301629964SacheEOF
301729964Sache 
301822347Spstelse
301922347Spst  echo "$ac_t""no" 1>&6
302092906SmarkmLIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
302122347Spstfi
302222347Spstdone
302322347Spst
302429964Sache
302529964SacheMISSING="$LIBOBJS $ALLOCA " ;
302692906Smarkm
302722347Spstecho $ac_n "checking for atexit""... $ac_c" 1>&6
302892906Smarkmecho "configure:3029: checking for atexit" >&5
302922347Spstif eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
303022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
303122347Spstelse
303222347Spst  cat > conftest.$ac_ext <<EOF
303392906Smarkm#line 3034 "configure"
303422347Spst#include "confdefs.h"
303522347Spst/* System header to define __stub macros and hopefully few prototypes,
303622347Spst    which can conflict with char atexit(); below.  */
303722347Spst#include <assert.h>
303822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
303922347Spst/* We use char because int might match the return type of a gcc2
304022347Spst    builtin and then its argument prototype would still apply.  */
304122347Spstchar atexit();
304222347Spst
304329964Sacheint main() {
304422347Spst
304522347Spst/* The GNU C library defines this for functions which it implements
304622347Spst    to always fail with ENOSYS.  Some functions are actually named
304722347Spst    something starting with __ and the normal name is an alias.  */
304822347Spst#if defined (__stub_atexit) || defined (__stub___atexit)
304922347Spstchoke me
305022347Spst#else
305122347Spstatexit();
305222347Spst#endif
305322347Spst
305422347Spst; return 0; }
305522347SpstEOF
305692906Smarkmif { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
305722347Spst  rm -rf conftest*
305822347Spst  eval "ac_cv_func_atexit=yes"
305922347Spstelse
306029964Sache  echo "configure: failed program was:" >&5
306129964Sache  cat conftest.$ac_ext >&5
306222347Spst  rm -rf conftest*
306322347Spst  eval "ac_cv_func_atexit=no"
306422347Spstfi
306522347Spstrm -f conftest*
306629964Sachefi
306722347Spst
306822347Spstif eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
306922347Spst  echo "$ac_t""yes" 1>&6
307092906Smarkm  cat >> confdefs.h <<\EOF
307192906Smarkm#define HAVE_ATEXIT 1
307292906SmarkmEOF
307392906Smarkm
307422347Spstelse
307522347Spst  echo "$ac_t""no" 1>&6
307629964SacheMISSING="${MISSING}atexit.o "; for ac_func in on_exit
307729964Sachedo
307829964Sacheecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
307992906Smarkmecho "configure:3080: checking for $ac_func" >&5
308029964Sacheif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
308129964Sache  echo $ac_n "(cached) $ac_c" 1>&6
308229964Sacheelse
308329964Sache  cat > conftest.$ac_ext <<EOF
308492906Smarkm#line 3085 "configure"
308529964Sache#include "confdefs.h"
308629964Sache/* System header to define __stub macros and hopefully few prototypes,
308729964Sache    which can conflict with char $ac_func(); below.  */
308829964Sache#include <assert.h>
308929964Sache/* Override any gcc2 internal prototype to avoid an error.  */
309029964Sache/* We use char because int might match the return type of a gcc2
309129964Sache    builtin and then its argument prototype would still apply.  */
309229964Sachechar $ac_func();
309329964Sache
309429964Sacheint main() {
309529964Sache
309629964Sache/* The GNU C library defines this for functions which it implements
309729964Sache    to always fail with ENOSYS.  Some functions are actually named
309829964Sache    something starting with __ and the normal name is an alias.  */
309929964Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
310029964Sachechoke me
310129964Sache#else
310229964Sache$ac_func();
310329964Sache#endif
310429964Sache
310529964Sache; return 0; }
310629964SacheEOF
310792906Smarkmif { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
310829964Sache  rm -rf conftest*
310929964Sache  eval "ac_cv_func_$ac_func=yes"
311029964Sacheelse
311129964Sache  echo "configure: failed program was:" >&5
311229964Sache  cat conftest.$ac_ext >&5
311329964Sache  rm -rf conftest*
311429964Sache  eval "ac_cv_func_$ac_func=no"
311522347Spstfi
311629964Sacherm -f conftest*
311729964Sachefi
311822347Spst
311929964Sacheif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
312029964Sache  echo "$ac_t""yes" 1>&6
312129964Sache    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
312229964Sache  cat >> confdefs.h <<EOF
312329964Sache#define $ac_tr_func 1
312429964SacheEOF
312529964Sache 
312629964Sacheelse
312729964Sache  echo "$ac_t""no" 1>&6
312829964Sachefi
312929964Sachedone
313029964Sache
313129964Sachefi
313229964Sache
313329964Sacheecho $ac_n "checking for endutent""... $ac_c" 1>&6
313492906Smarkmecho "configure:3135: checking for endutent" >&5
313529964Sacheif eval "test \"`echo '$''{'ac_cv_func_endutent'+set}'`\" = set"; then
313622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
313722347Spstelse
313822347Spst  cat > conftest.$ac_ext <<EOF
313992906Smarkm#line 3140 "configure"
314022347Spst#include "confdefs.h"
314122347Spst/* System header to define __stub macros and hopefully few prototypes,
314229964Sache    which can conflict with char endutent(); below.  */
314322347Spst#include <assert.h>
314422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
314522347Spst/* We use char because int might match the return type of a gcc2
314622347Spst    builtin and then its argument prototype would still apply.  */
314729964Sachechar endutent();
314822347Spst
314929964Sacheint main() {
315022347Spst
315122347Spst/* The GNU C library defines this for functions which it implements
315222347Spst    to always fail with ENOSYS.  Some functions are actually named
315322347Spst    something starting with __ and the normal name is an alias.  */
315429964Sache#if defined (__stub_endutent) || defined (__stub___endutent)
315522347Spstchoke me
315622347Spst#else
315729964Sacheendutent();
315822347Spst#endif
315922347Spst
316022347Spst; return 0; }
316122347SpstEOF
316292906Smarkmif { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
316322347Spst  rm -rf conftest*
316429964Sache  eval "ac_cv_func_endutent=yes"
316522347Spstelse
316629964Sache  echo "configure: failed program was:" >&5
316729964Sache  cat conftest.$ac_ext >&5
316822347Spst  rm -rf conftest*
316929964Sache  eval "ac_cv_func_endutent=no"
317022347Spstfi
317122347Spstrm -f conftest*
317229964Sachefi
317322347Spst
317429964Sacheif eval "test \"`echo '$ac_cv_func_'endutent`\" = yes"; then
317522347Spst  echo "$ac_t""yes" 1>&6
317692906Smarkm  cat >> confdefs.h <<\EOF
317792906Smarkm#define HAVE_ENDUTENT 1
317892906SmarkmEOF
317992906Smarkm
318022347Spstelse
318122347Spst  echo "$ac_t""no" 1>&6
318222347SpstMISSING="${MISSING}endutent.o "
318322347Spstfi
318422347Spst
318592906Smarkmecho $ac_n "checking for initgroups""... $ac_c" 1>&6
318692906Smarkmecho "configure:3187: checking for initgroups" >&5
318792906Smarkmif eval "test \"`echo '$''{'ac_cv_func_initgroups'+set}'`\" = set"; then
318892906Smarkm  echo $ac_n "(cached) $ac_c" 1>&6
318992906Smarkmelse
319092906Smarkm  cat > conftest.$ac_ext <<EOF
319192906Smarkm#line 3192 "configure"
319292906Smarkm#include "confdefs.h"
319392906Smarkm/* System header to define __stub macros and hopefully few prototypes,
319492906Smarkm    which can conflict with char initgroups(); below.  */
319592906Smarkm#include <assert.h>
319692906Smarkm/* Override any gcc2 internal prototype to avoid an error.  */
319792906Smarkm/* We use char because int might match the return type of a gcc2
319892906Smarkm    builtin and then its argument prototype would still apply.  */
319992906Smarkmchar initgroups();
320092906Smarkm
320192906Smarkmint main() {
320292906Smarkm
320392906Smarkm/* The GNU C library defines this for functions which it implements
320492906Smarkm    to always fail with ENOSYS.  Some functions are actually named
320592906Smarkm    something starting with __ and the normal name is an alias.  */
320692906Smarkm#if defined (__stub_initgroups) || defined (__stub___initgroups)
320792906Smarkmchoke me
320892906Smarkm#else
320992906Smarkminitgroups();
321092906Smarkm#endif
321192906Smarkm
321292906Smarkm; return 0; }
321392906SmarkmEOF
321492906Smarkmif { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
321592906Smarkm  rm -rf conftest*
321692906Smarkm  eval "ac_cv_func_initgroups=yes"
321792906Smarkmelse
321892906Smarkm  echo "configure: failed program was:" >&5
321992906Smarkm  cat conftest.$ac_ext >&5
322092906Smarkm  rm -rf conftest*
322192906Smarkm  eval "ac_cv_func_initgroups=no"
322292906Smarkmfi
322392906Smarkmrm -f conftest*
322492906Smarkmfi
322592906Smarkm
322692906Smarkmif eval "test \"`echo '$ac_cv_func_'initgroups`\" = yes"; then
322792906Smarkm  echo "$ac_t""yes" 1>&6
322892906Smarkm  cat >> confdefs.h <<\EOF
322992906Smarkm#define HAVE_INITGROUPS 1
323092906SmarkmEOF
323192906Smarkm
323292906Smarkmelse
323392906Smarkm  echo "$ac_t""no" 1>&6
323492906SmarkmMISSING="${MISSING}initgroups.o "
323592906Smarkmfi
323692906Smarkm
323792906Smarkmecho $ac_n "checking for memcmp""... $ac_c" 1>&6
323892906Smarkmecho "configure:3239: checking for memcmp" >&5
323992906Smarkmif eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
324092906Smarkm  echo $ac_n "(cached) $ac_c" 1>&6
324192906Smarkmelse
324292906Smarkm  cat > conftest.$ac_ext <<EOF
324392906Smarkm#line 3244 "configure"
324492906Smarkm#include "confdefs.h"
324592906Smarkm/* System header to define __stub macros and hopefully few prototypes,
324692906Smarkm    which can conflict with char memcmp(); below.  */
324792906Smarkm#include <assert.h>
324892906Smarkm/* Override any gcc2 internal prototype to avoid an error.  */
324992906Smarkm/* We use char because int might match the return type of a gcc2
325092906Smarkm    builtin and then its argument prototype would still apply.  */
325192906Smarkmchar memcmp();
325292906Smarkm
325392906Smarkmint main() {
325492906Smarkm
325592906Smarkm/* The GNU C library defines this for functions which it implements
325692906Smarkm    to always fail with ENOSYS.  Some functions are actually named
325792906Smarkm    something starting with __ and the normal name is an alias.  */
325892906Smarkm#if defined (__stub_memcmp) || defined (__stub___memcmp)
325992906Smarkmchoke me
326092906Smarkm#else
326192906Smarkmmemcmp();
326292906Smarkm#endif
326392906Smarkm
326492906Smarkm; return 0; }
326592906SmarkmEOF
326692906Smarkmif { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
326792906Smarkm  rm -rf conftest*
326892906Smarkm  eval "ac_cv_func_memcmp=yes"
326992906Smarkmelse
327092906Smarkm  echo "configure: failed program was:" >&5
327192906Smarkm  cat conftest.$ac_ext >&5
327292906Smarkm  rm -rf conftest*
327392906Smarkm  eval "ac_cv_func_memcmp=no"
327492906Smarkmfi
327592906Smarkmrm -f conftest*
327692906Smarkmfi
327792906Smarkm
327892906Smarkmif eval "test \"`echo '$ac_cv_func_'memcmp`\" = yes"; then
327992906Smarkm  echo "$ac_t""yes" 1>&6
328092906Smarkm  cat >> confdefs.h <<\EOF
328192906Smarkm#define HAVE_MEMCMP 1
328292906SmarkmEOF
328392906Smarkm
328492906Smarkmelse
328592906Smarkm  echo "$ac_t""no" 1>&6
328692906SmarkmMISSING="${MISSING}memcmp.o "
328792906Smarkmfi
328892906Smarkm
328922347Spstecho $ac_n "checking for memcpy""... $ac_c" 1>&6
329092906Smarkmecho "configure:3291: checking for memcpy" >&5
329122347Spstif eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
329222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
329322347Spstelse
329422347Spst  cat > conftest.$ac_ext <<EOF
329592906Smarkm#line 3296 "configure"
329622347Spst#include "confdefs.h"
329722347Spst/* System header to define __stub macros and hopefully few prototypes,
329822347Spst    which can conflict with char memcpy(); below.  */
329922347Spst#include <assert.h>
330022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
330122347Spst/* We use char because int might match the return type of a gcc2
330222347Spst    builtin and then its argument prototype would still apply.  */
330322347Spstchar memcpy();
330422347Spst
330529964Sacheint main() {
330622347Spst
330722347Spst/* The GNU C library defines this for functions which it implements
330822347Spst    to always fail with ENOSYS.  Some functions are actually named
330922347Spst    something starting with __ and the normal name is an alias.  */
331022347Spst#if defined (__stub_memcpy) || defined (__stub___memcpy)
331122347Spstchoke me
331222347Spst#else
331322347Spstmemcpy();
331422347Spst#endif
331522347Spst
331622347Spst; return 0; }
331722347SpstEOF
331892906Smarkmif { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
331922347Spst  rm -rf conftest*
332022347Spst  eval "ac_cv_func_memcpy=yes"
332122347Spstelse
332229964Sache  echo "configure: failed program was:" >&5
332329964Sache  cat conftest.$ac_ext >&5
332422347Spst  rm -rf conftest*
332522347Spst  eval "ac_cv_func_memcpy=no"
332622347Spstfi
332722347Spstrm -f conftest*
332829964Sachefi
332922347Spst
333022347Spstif eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
333122347Spst  echo "$ac_t""yes" 1>&6
333292906Smarkm  cat >> confdefs.h <<\EOF
333392906Smarkm#define HAVE_MEMCPY 1
333492906SmarkmEOF
333592906Smarkm
333622347Spstelse
333722347Spst  echo "$ac_t""no" 1>&6
333822347SpstMISSING="${MISSING}memcpy.o "; for ac_func in bcopy
333922347Spstdo
334022347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
334192906Smarkmecho "configure:3342: checking for $ac_func" >&5
334222347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
334322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
334422347Spstelse
334522347Spst  cat > conftest.$ac_ext <<EOF
334692906Smarkm#line 3347 "configure"
334722347Spst#include "confdefs.h"
334822347Spst/* System header to define __stub macros and hopefully few prototypes,
334922347Spst    which can conflict with char $ac_func(); below.  */
335022347Spst#include <assert.h>
335122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
335222347Spst/* We use char because int might match the return type of a gcc2
335322347Spst    builtin and then its argument prototype would still apply.  */
335422347Spstchar $ac_func();
335522347Spst
335629964Sacheint main() {
335722347Spst
335822347Spst/* The GNU C library defines this for functions which it implements
335922347Spst    to always fail with ENOSYS.  Some functions are actually named
336022347Spst    something starting with __ and the normal name is an alias.  */
336122347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
336222347Spstchoke me
336322347Spst#else
336422347Spst$ac_func();
336522347Spst#endif
336622347Spst
336722347Spst; return 0; }
336822347SpstEOF
336992906Smarkmif { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
337022347Spst  rm -rf conftest*
337122347Spst  eval "ac_cv_func_$ac_func=yes"
337222347Spstelse
337329964Sache  echo "configure: failed program was:" >&5
337429964Sache  cat conftest.$ac_ext >&5
337522347Spst  rm -rf conftest*
337622347Spst  eval "ac_cv_func_$ac_func=no"
337722347Spstfi
337822347Spstrm -f conftest*
337929964Sachefi
338022347Spst
338122347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
338222347Spst  echo "$ac_t""yes" 1>&6
338322347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
338422347Spst  cat >> confdefs.h <<EOF
338522347Spst#define $ac_tr_func 1
338622347SpstEOF
338722347Spst 
338822347Spstelse
338922347Spst  echo "$ac_t""no" 1>&6
339022347Spstfi
339122347Spstdone
339222347Spst
339322347Spstfi
339422347Spst
339522347Spstecho $ac_n "checking for memset""... $ac_c" 1>&6
339692906Smarkmecho "configure:3397: checking for memset" >&5
339722347Spstif eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then
339822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
339922347Spstelse
340022347Spst  cat > conftest.$ac_ext <<EOF
340192906Smarkm#line 3402 "configure"
340222347Spst#include "confdefs.h"
340322347Spst/* System header to define __stub macros and hopefully few prototypes,
340422347Spst    which can conflict with char memset(); below.  */
340522347Spst#include <assert.h>
340622347Spst/* Override any gcc2 internal prototype to avoid an error.  */
340722347Spst/* We use char because int might match the return type of a gcc2
340822347Spst    builtin and then its argument prototype would still apply.  */
340922347Spstchar memset();
341022347Spst
341129964Sacheint main() {
341222347Spst
341322347Spst/* The GNU C library defines this for functions which it implements
341422347Spst    to always fail with ENOSYS.  Some functions are actually named
341522347Spst    something starting with __ and the normal name is an alias.  */
341622347Spst#if defined (__stub_memset) || defined (__stub___memset)
341722347Spstchoke me
341822347Spst#else
341922347Spstmemset();
342022347Spst#endif
342122347Spst
342222347Spst; return 0; }
342322347SpstEOF
342492906Smarkmif { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
342522347Spst  rm -rf conftest*
342622347Spst  eval "ac_cv_func_memset=yes"
342722347Spstelse
342829964Sache  echo "configure: failed program was:" >&5
342929964Sache  cat conftest.$ac_ext >&5
343022347Spst  rm -rf conftest*
343122347Spst  eval "ac_cv_func_memset=no"
343222347Spstfi
343322347Spstrm -f conftest*
343429964Sachefi
343522347Spst
343622347Spstif eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then
343722347Spst  echo "$ac_t""yes" 1>&6
343892906Smarkm  cat >> confdefs.h <<\EOF
343992906Smarkm#define HAVE_MEMSET 1
344092906SmarkmEOF
344192906Smarkm
344222347Spstelse
344322347Spst  echo "$ac_t""no" 1>&6
344422347SpstMISSING="${MISSING}memset.o "; for ac_func in bzero
344522347Spstdo
344622347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
344792906Smarkmecho "configure:3448: checking for $ac_func" >&5
344822347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
344922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
345022347Spstelse
345122347Spst  cat > conftest.$ac_ext <<EOF
345292906Smarkm#line 3453 "configure"
345322347Spst#include "confdefs.h"
345422347Spst/* System header to define __stub macros and hopefully few prototypes,
345522347Spst    which can conflict with char $ac_func(); below.  */
345622347Spst#include <assert.h>
345722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
345822347Spst/* We use char because int might match the return type of a gcc2
345922347Spst    builtin and then its argument prototype would still apply.  */
346022347Spstchar $ac_func();
346122347Spst
346229964Sacheint main() {
346322347Spst
346422347Spst/* The GNU C library defines this for functions which it implements
346522347Spst    to always fail with ENOSYS.  Some functions are actually named
346622347Spst    something starting with __ and the normal name is an alias.  */
346722347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
346822347Spstchoke me
346922347Spst#else
347022347Spst$ac_func();
347122347Spst#endif
347222347Spst
347322347Spst; return 0; }
347422347SpstEOF
347592906Smarkmif { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
347622347Spst  rm -rf conftest*
347722347Spst  eval "ac_cv_func_$ac_func=yes"
347822347Spstelse
347929964Sache  echo "configure: failed program was:" >&5
348029964Sache  cat conftest.$ac_ext >&5
348122347Spst  rm -rf conftest*
348222347Spst  eval "ac_cv_func_$ac_func=no"
348322347Spstfi
348422347Spstrm -f conftest*
348529964Sachefi
348622347Spst
348722347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
348822347Spst  echo "$ac_t""yes" 1>&6
348922347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
349022347Spst  cat >> confdefs.h <<EOF
349122347Spst#define $ac_tr_func 1
349222347SpstEOF
349322347Spst 
349422347Spstelse
349522347Spst  echo "$ac_t""no" 1>&6
349622347Spstfi
349722347Spstdone
349822347Spst
349922347Spstfi
350022347Spst
350122347Spstecho $ac_n "checking for getcwd""... $ac_c" 1>&6
350292906Smarkmecho "configure:3503: checking for getcwd" >&5
350322347Spstif eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
350422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
350522347Spstelse
350622347Spst  cat > conftest.$ac_ext <<EOF
350792906Smarkm#line 3508 "configure"
350822347Spst#include "confdefs.h"
350922347Spst/* System header to define __stub macros and hopefully few prototypes,
351022347Spst    which can conflict with char getcwd(); below.  */
351122347Spst#include <assert.h>
351222347Spst/* Override any gcc2 internal prototype to avoid an error.  */
351322347Spst/* We use char because int might match the return type of a gcc2
351422347Spst    builtin and then its argument prototype would still apply.  */
351522347Spstchar getcwd();
351622347Spst
351729964Sacheint main() {
351822347Spst
351922347Spst/* The GNU C library defines this for functions which it implements
352022347Spst    to always fail with ENOSYS.  Some functions are actually named
352122347Spst    something starting with __ and the normal name is an alias.  */
352222347Spst#if defined (__stub_getcwd) || defined (__stub___getcwd)
352322347Spstchoke me
352422347Spst#else
352522347Spstgetcwd();
352622347Spst#endif
352722347Spst
352822347Spst; return 0; }
352922347SpstEOF
353092906Smarkmif { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
353122347Spst  rm -rf conftest*
353222347Spst  eval "ac_cv_func_getcwd=yes"
353322347Spstelse
353429964Sache  echo "configure: failed program was:" >&5
353529964Sache  cat conftest.$ac_ext >&5
353622347Spst  rm -rf conftest*
353722347Spst  eval "ac_cv_func_getcwd=no"
353822347Spstfi
353922347Spstrm -f conftest*
354029964Sachefi
354122347Spst
354222347Spstif eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
354322347Spst  echo "$ac_t""yes" 1>&6
354492906Smarkm  cat >> confdefs.h <<\EOF
354592906Smarkm#define HAVE_GETCWD 1
354692906SmarkmEOF
354792906Smarkm
354822347Spstelse
354922347Spst  echo "$ac_t""no" 1>&6
355022347SpstMISSING="${MISSING}getcwd.o "; for ac_func in getwd
355122347Spstdo
355222347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
355392906Smarkmecho "configure:3554: checking for $ac_func" >&5
355422347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
355522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
355622347Spstelse
355722347Spst  cat > conftest.$ac_ext <<EOF
355892906Smarkm#line 3559 "configure"
355922347Spst#include "confdefs.h"
356022347Spst/* System header to define __stub macros and hopefully few prototypes,
356122347Spst    which can conflict with char $ac_func(); below.  */
356222347Spst#include <assert.h>
356322347Spst/* Override any gcc2 internal prototype to avoid an error.  */
356422347Spst/* We use char because int might match the return type of a gcc2
356522347Spst    builtin and then its argument prototype would still apply.  */
356622347Spstchar $ac_func();
356722347Spst
356829964Sacheint main() {
356922347Spst
357022347Spst/* The GNU C library defines this for functions which it implements
357122347Spst    to always fail with ENOSYS.  Some functions are actually named
357222347Spst    something starting with __ and the normal name is an alias.  */
357322347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
357422347Spstchoke me
357522347Spst#else
357622347Spst$ac_func();
357722347Spst#endif
357822347Spst
357922347Spst; return 0; }
358022347SpstEOF
358192906Smarkmif { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
358222347Spst  rm -rf conftest*
358322347Spst  eval "ac_cv_func_$ac_func=yes"
358422347Spstelse
358529964Sache  echo "configure: failed program was:" >&5
358629964Sache  cat conftest.$ac_ext >&5
358722347Spst  rm -rf conftest*
358822347Spst  eval "ac_cv_func_$ac_func=no"
358922347Spstfi
359022347Spstrm -f conftest*
359129964Sachefi
359222347Spst
359322347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
359422347Spst  echo "$ac_t""yes" 1>&6
359522347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
359622347Spst  cat >> confdefs.h <<EOF
359722347Spst#define $ac_tr_func 1
359822347SpstEOF
359922347Spst 
360022347Spstelse
360122347Spst  echo "$ac_t""no" 1>&6
360222347Spstfi
360322347Spstdone
360422347Spst
360522347Spstfi
360622347Spst
360722347Spstecho $ac_n "checking for getenv""... $ac_c" 1>&6
360892906Smarkmecho "configure:3609: checking for getenv" >&5
360922347Spstif eval "test \"`echo '$''{'ac_cv_func_getenv'+set}'`\" = set"; then
361022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
361122347Spstelse
361222347Spst  cat > conftest.$ac_ext <<EOF
361392906Smarkm#line 3614 "configure"
361422347Spst#include "confdefs.h"
361522347Spst/* System header to define __stub macros and hopefully few prototypes,
361622347Spst    which can conflict with char getenv(); below.  */
361722347Spst#include <assert.h>
361822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
361922347Spst/* We use char because int might match the return type of a gcc2
362022347Spst    builtin and then its argument prototype would still apply.  */
362122347Spstchar getenv();
362222347Spst
362329964Sacheint main() {
362422347Spst
362522347Spst/* The GNU C library defines this for functions which it implements
362622347Spst    to always fail with ENOSYS.  Some functions are actually named
362722347Spst    something starting with __ and the normal name is an alias.  */
362822347Spst#if defined (__stub_getenv) || defined (__stub___getenv)
362922347Spstchoke me
363022347Spst#else
363122347Spstgetenv();
363222347Spst#endif
363322347Spst
363422347Spst; return 0; }
363522347SpstEOF
363692906Smarkmif { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
363722347Spst  rm -rf conftest*
363822347Spst  eval "ac_cv_func_getenv=yes"
363922347Spstelse
364029964Sache  echo "configure: failed program was:" >&5
364129964Sache  cat conftest.$ac_ext >&5
364222347Spst  rm -rf conftest*
364322347Spst  eval "ac_cv_func_getenv=no"
364422347Spstfi
364522347Spstrm -f conftest*
364629964Sachefi
364722347Spst
364822347Spstif eval "test \"`echo '$ac_cv_func_'getenv`\" = yes"; then
364922347Spst  echo "$ac_t""yes" 1>&6
365022347Spst  cat >> confdefs.h <<\EOF
365122347Spst#define HAVE_GETENV 1
365222347SpstEOF
365322347Spst
365422347Spstelse
365522347Spst  echo "$ac_t""no" 1>&6
365622347SpstMISSING="${MISSING}env.o "
365722347Spstfi
365822347Spst
365922347Spstecho $ac_n "checking for getutline""... $ac_c" 1>&6
366092906Smarkmecho "configure:3661: checking for getutline" >&5
366122347Spstif eval "test \"`echo '$''{'ac_cv_func_getutline'+set}'`\" = set"; then
366222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
366322347Spstelse
366422347Spst  cat > conftest.$ac_ext <<EOF
366592906Smarkm#line 3666 "configure"
366622347Spst#include "confdefs.h"
366722347Spst/* System header to define __stub macros and hopefully few prototypes,
366822347Spst    which can conflict with char getutline(); below.  */
366922347Spst#include <assert.h>
367022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
367122347Spst/* We use char because int might match the return type of a gcc2
367222347Spst    builtin and then its argument prototype would still apply.  */
367322347Spstchar getutline();
367422347Spst
367529964Sacheint main() {
367622347Spst
367722347Spst/* The GNU C library defines this for functions which it implements
367822347Spst    to always fail with ENOSYS.  Some functions are actually named
367922347Spst    something starting with __ and the normal name is an alias.  */
368022347Spst#if defined (__stub_getutline) || defined (__stub___getutline)
368122347Spstchoke me
368222347Spst#else
368322347Spstgetutline();
368422347Spst#endif
368522347Spst
368622347Spst; return 0; }
368722347SpstEOF
368892906Smarkmif { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
368922347Spst  rm -rf conftest*
369022347Spst  eval "ac_cv_func_getutline=yes"
369122347Spstelse
369229964Sache  echo "configure: failed program was:" >&5
369329964Sache  cat conftest.$ac_ext >&5
369422347Spst  rm -rf conftest*
369522347Spst  eval "ac_cv_func_getutline=no"
369622347Spstfi
369722347Spstrm -f conftest*
369829964Sachefi
369922347Spst
370022347Spstif eval "test \"`echo '$ac_cv_func_'getutline`\" = yes"; then
370122347Spst  echo "$ac_t""yes" 1>&6
370229964Sache  cat >> confdefs.h <<\EOF
370329964Sache#define HAVE_GETUTLINE 1
370429964SacheEOF
370529964Sache
370622347Spstelse
370722347Spst  echo "$ac_t""no" 1>&6
370822347SpstMISSING="${MISSING}getutline.o "; for ac_func in ttyslot
370922347Spstdo
371022347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
371192906Smarkmecho "configure:3712: checking for $ac_func" >&5
371222347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
371322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
371422347Spstelse
371522347Spst  cat > conftest.$ac_ext <<EOF
371692906Smarkm#line 3717 "configure"
371722347Spst#include "confdefs.h"
371822347Spst/* System header to define __stub macros and hopefully few prototypes,
371922347Spst    which can conflict with char $ac_func(); below.  */
372022347Spst#include <assert.h>
372122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
372222347Spst/* We use char because int might match the return type of a gcc2
372322347Spst    builtin and then its argument prototype would still apply.  */
372422347Spstchar $ac_func();
372522347Spst
372629964Sacheint main() {
372722347Spst
372822347Spst/* The GNU C library defines this for functions which it implements
372922347Spst    to always fail with ENOSYS.  Some functions are actually named
373022347Spst    something starting with __ and the normal name is an alias.  */
373122347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
373222347Spstchoke me
373322347Spst#else
373422347Spst$ac_func();
373522347Spst#endif
373622347Spst
373722347Spst; return 0; }
373822347SpstEOF
373992906Smarkmif { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
374022347Spst  rm -rf conftest*
374122347Spst  eval "ac_cv_func_$ac_func=yes"
374222347Spstelse
374329964Sache  echo "configure: failed program was:" >&5
374429964Sache  cat conftest.$ac_ext >&5
374522347Spst  rm -rf conftest*
374622347Spst  eval "ac_cv_func_$ac_func=no"
374722347Spstfi
374822347Spstrm -f conftest*
374929964Sachefi
375022347Spst
375122347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
375222347Spst  echo "$ac_t""yes" 1>&6
375322347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
375422347Spst  cat >> confdefs.h <<EOF
375522347Spst#define $ac_tr_func 1
375622347SpstEOF
375722347Spst 
375822347Spstelse
375922347Spst  echo "$ac_t""no" 1>&6
376022347Spstfi
376122347Spstdone
376222347Spst
376322347Spstfi
376422347Spst
376522347Spstecho $ac_n "checking for pututline""... $ac_c" 1>&6
376692906Smarkmecho "configure:3767: checking for pututline" >&5
376722347Spstif eval "test \"`echo '$''{'ac_cv_func_pututline'+set}'`\" = set"; then
376822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
376922347Spstelse
377022347Spst  cat > conftest.$ac_ext <<EOF
377192906Smarkm#line 3772 "configure"
377222347Spst#include "confdefs.h"
377322347Spst/* System header to define __stub macros and hopefully few prototypes,
377422347Spst    which can conflict with char pututline(); below.  */
377522347Spst#include <assert.h>
377622347Spst/* Override any gcc2 internal prototype to avoid an error.  */
377722347Spst/* We use char because int might match the return type of a gcc2
377822347Spst    builtin and then its argument prototype would still apply.  */
377922347Spstchar pututline();
378022347Spst
378129964Sacheint main() {
378222347Spst
378322347Spst/* The GNU C library defines this for functions which it implements
378422347Spst    to always fail with ENOSYS.  Some functions are actually named
378522347Spst    something starting with __ and the normal name is an alias.  */
378622347Spst#if defined (__stub_pututline) || defined (__stub___pututline)
378722347Spstchoke me
378822347Spst#else
378922347Spstpututline();
379022347Spst#endif
379122347Spst
379222347Spst; return 0; }
379322347SpstEOF
379492906Smarkmif { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
379522347Spst  rm -rf conftest*
379622347Spst  eval "ac_cv_func_pututline=yes"
379722347Spstelse
379829964Sache  echo "configure: failed program was:" >&5
379929964Sache  cat conftest.$ac_ext >&5
380022347Spst  rm -rf conftest*
380122347Spst  eval "ac_cv_func_pututline=no"
380222347Spstfi
380322347Spstrm -f conftest*
380429964Sachefi
380522347Spst
380622347Spstif eval "test \"`echo '$ac_cv_func_'pututline`\" = yes"; then
380722347Spst  echo "$ac_t""yes" 1>&6
380892906Smarkm  cat >> confdefs.h <<\EOF
380992906Smarkm#define HAVE_PUTUTLINE 1
381092906SmarkmEOF
381192906Smarkm
381222347Spstelse
381322347Spst  echo "$ac_t""no" 1>&6
381422347SpstMISSING="${MISSING}pututline.o "; for ac_func in ttyslot
381522347Spstdo
381622347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
381792906Smarkmecho "configure:3818: checking for $ac_func" >&5
381822347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
381922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
382022347Spstelse
382122347Spst  cat > conftest.$ac_ext <<EOF
382292906Smarkm#line 3823 "configure"
382322347Spst#include "confdefs.h"
382422347Spst/* System header to define __stub macros and hopefully few prototypes,
382522347Spst    which can conflict with char $ac_func(); below.  */
382622347Spst#include <assert.h>
382722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
382822347Spst/* We use char because int might match the return type of a gcc2
382922347Spst    builtin and then its argument prototype would still apply.  */
383022347Spstchar $ac_func();
383122347Spst
383229964Sacheint main() {
383322347Spst
383422347Spst/* The GNU C library defines this for functions which it implements
383522347Spst    to always fail with ENOSYS.  Some functions are actually named
383622347Spst    something starting with __ and the normal name is an alias.  */
383722347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
383822347Spstchoke me
383922347Spst#else
384022347Spst$ac_func();
384122347Spst#endif
384222347Spst
384322347Spst; return 0; }
384422347SpstEOF
384592906Smarkmif { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
384622347Spst  rm -rf conftest*
384722347Spst  eval "ac_cv_func_$ac_func=yes"
384822347Spstelse
384929964Sache  echo "configure: failed program was:" >&5
385029964Sache  cat conftest.$ac_ext >&5
385122347Spst  rm -rf conftest*
385222347Spst  eval "ac_cv_func_$ac_func=no"
385322347Spstfi
385422347Spstrm -f conftest*
385529964Sachefi
385622347Spst
385722347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
385822347Spst  echo "$ac_t""yes" 1>&6
385922347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
386022347Spst  cat >> confdefs.h <<EOF
386122347Spst#define $ac_tr_func 1
386222347SpstEOF
386322347Spst 
386422347Spstelse
386522347Spst  echo "$ac_t""no" 1>&6
386622347Spstfi
386722347Spstdone
386822347Spst
386922347Spstfi
387022347Spst
387122347Spstecho $ac_n "checking for setenv""... $ac_c" 1>&6
387292906Smarkmecho "configure:3873: checking for setenv" >&5
387322347Spstif eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
387422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
387522347Spstelse
387622347Spst  cat > conftest.$ac_ext <<EOF
387792906Smarkm#line 3878 "configure"
387822347Spst#include "confdefs.h"
387922347Spst/* System header to define __stub macros and hopefully few prototypes,
388022347Spst    which can conflict with char setenv(); below.  */
388122347Spst#include <assert.h>
388222347Spst/* Override any gcc2 internal prototype to avoid an error.  */
388322347Spst/* We use char because int might match the return type of a gcc2
388422347Spst    builtin and then its argument prototype would still apply.  */
388522347Spstchar setenv();
388622347Spst
388729964Sacheint main() {
388822347Spst
388922347Spst/* The GNU C library defines this for functions which it implements
389022347Spst    to always fail with ENOSYS.  Some functions are actually named
389122347Spst    something starting with __ and the normal name is an alias.  */
389222347Spst#if defined (__stub_setenv) || defined (__stub___setenv)
389322347Spstchoke me
389422347Spst#else
389522347Spstsetenv();
389622347Spst#endif
389722347Spst
389822347Spst; return 0; }
389922347SpstEOF
390092906Smarkmif { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
390122347Spst  rm -rf conftest*
390222347Spst  eval "ac_cv_func_setenv=yes"
390322347Spstelse
390429964Sache  echo "configure: failed program was:" >&5
390529964Sache  cat conftest.$ac_ext >&5
390622347Spst  rm -rf conftest*
390722347Spst  eval "ac_cv_func_setenv=no"
390822347Spstfi
390922347Spstrm -f conftest*
391029964Sachefi
391122347Spst
391222347Spstif eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
391322347Spst  echo "$ac_t""yes" 1>&6
391422347Spst  cat >> confdefs.h <<\EOF
391522347Spst#define HAVE_SETENV 1
391622347SpstEOF
391722347Spst
391822347Spstelse
391922347Spst  echo "$ac_t""no" 1>&6
392022347SpstMISSING="${MISSING}env.o "
392122347Spstfi
392222347Spst
392329964Sacheecho $ac_n "checking for setegid""... $ac_c" 1>&6
392492906Smarkmecho "configure:3925: checking for setegid" >&5
392529964Sacheif eval "test \"`echo '$''{'ac_cv_func_setegid'+set}'`\" = set"; then
392629964Sache  echo $ac_n "(cached) $ac_c" 1>&6
392729964Sacheelse
392829964Sache  cat > conftest.$ac_ext <<EOF
392992906Smarkm#line 3930 "configure"
393029964Sache#include "confdefs.h"
393129964Sache/* System header to define __stub macros and hopefully few prototypes,
393229964Sache    which can conflict with char setegid(); below.  */
393329964Sache#include <assert.h>
393429964Sache/* Override any gcc2 internal prototype to avoid an error.  */
393529964Sache/* We use char because int might match the return type of a gcc2
393629964Sache    builtin and then its argument prototype would still apply.  */
393729964Sachechar setegid();
393829964Sache
393929964Sacheint main() {
394029964Sache
394129964Sache/* The GNU C library defines this for functions which it implements
394229964Sache    to always fail with ENOSYS.  Some functions are actually named
394329964Sache    something starting with __ and the normal name is an alias.  */
394429964Sache#if defined (__stub_setegid) || defined (__stub___setegid)
394529964Sachechoke me
394629964Sache#else
394729964Sachesetegid();
394829964Sache#endif
394929964Sache
395029964Sache; return 0; }
395129964SacheEOF
395292906Smarkmif { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
395329964Sache  rm -rf conftest*
395429964Sache  eval "ac_cv_func_setegid=yes"
395529964Sacheelse
395629964Sache  echo "configure: failed program was:" >&5
395729964Sache  cat conftest.$ac_ext >&5
395829964Sache  rm -rf conftest*
395929964Sache  eval "ac_cv_func_setegid=no"
396029964Sachefi
396129964Sacherm -f conftest*
396229964Sachefi
396329964Sache
396429964Sacheif eval "test \"`echo '$ac_cv_func_'setegid`\" = yes"; then
396529964Sache  echo "$ac_t""yes" 1>&6
396692906Smarkm  cat >> confdefs.h <<\EOF
396792906Smarkm#define HAVE_SETEGID 1
396892906SmarkmEOF
396992906Smarkm
397029964Sacheelse
397129964Sache  echo "$ac_t""no" 1>&6
397229964SacheMISSING="${MISSING}setegid.o "; for ac_func in setregid setresgid
397329964Sachedo
397429964Sacheecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
397592906Smarkmecho "configure:3976: checking for $ac_func" >&5
397629964Sacheif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
397729964Sache  echo $ac_n "(cached) $ac_c" 1>&6
397829964Sacheelse
397929964Sache  cat > conftest.$ac_ext <<EOF
398092906Smarkm#line 3981 "configure"
398129964Sache#include "confdefs.h"
398229964Sache/* System header to define __stub macros and hopefully few prototypes,
398329964Sache    which can conflict with char $ac_func(); below.  */
398429964Sache#include <assert.h>
398529964Sache/* Override any gcc2 internal prototype to avoid an error.  */
398629964Sache/* We use char because int might match the return type of a gcc2
398729964Sache    builtin and then its argument prototype would still apply.  */
398829964Sachechar $ac_func();
398929964Sache
399029964Sacheint main() {
399129964Sache
399229964Sache/* The GNU C library defines this for functions which it implements
399329964Sache    to always fail with ENOSYS.  Some functions are actually named
399429964Sache    something starting with __ and the normal name is an alias.  */
399529964Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
399629964Sachechoke me
399729964Sache#else
399829964Sache$ac_func();
399929964Sache#endif
400029964Sache
400129964Sache; return 0; }
400229964SacheEOF
400392906Smarkmif { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
400429964Sache  rm -rf conftest*
400529964Sache  eval "ac_cv_func_$ac_func=yes"
400629964Sacheelse
400729964Sache  echo "configure: failed program was:" >&5
400829964Sache  cat conftest.$ac_ext >&5
400929964Sache  rm -rf conftest*
401029964Sache  eval "ac_cv_func_$ac_func=no"
401129964Sachefi
401229964Sacherm -f conftest*
401329964Sachefi
401429964Sache
401529964Sacheif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
401629964Sache  echo "$ac_t""yes" 1>&6
401729964Sache    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
401829964Sache  cat >> confdefs.h <<EOF
401929964Sache#define $ac_tr_func 1
402029964SacheEOF
402129964Sache 
402229964Sacheelse
402329964Sache  echo "$ac_t""no" 1>&6
402429964Sachefi
402529964Sachedone
402629964Sache
402729964Sachefi
402829964Sache
402929964Sacheecho $ac_n "checking for seteuid""... $ac_c" 1>&6
403092906Smarkmecho "configure:4031: checking for seteuid" >&5
403129964Sacheif eval "test \"`echo '$''{'ac_cv_func_seteuid'+set}'`\" = set"; then
403229964Sache  echo $ac_n "(cached) $ac_c" 1>&6
403329964Sacheelse
403429964Sache  cat > conftest.$ac_ext <<EOF
403592906Smarkm#line 4036 "configure"
403629964Sache#include "confdefs.h"
403729964Sache/* System header to define __stub macros and hopefully few prototypes,
403829964Sache    which can conflict with char seteuid(); below.  */
403929964Sache#include <assert.h>
404029964Sache/* Override any gcc2 internal prototype to avoid an error.  */
404129964Sache/* We use char because int might match the return type of a gcc2
404229964Sache    builtin and then its argument prototype would still apply.  */
404329964Sachechar seteuid();
404429964Sache
404529964Sacheint main() {
404629964Sache
404729964Sache/* The GNU C library defines this for functions which it implements
404829964Sache    to always fail with ENOSYS.  Some functions are actually named
404929964Sache    something starting with __ and the normal name is an alias.  */
405029964Sache#if defined (__stub_seteuid) || defined (__stub___seteuid)
405129964Sachechoke me
405229964Sache#else
405329964Sacheseteuid();
405429964Sache#endif
405529964Sache
405629964Sache; return 0; }
405729964SacheEOF
405892906Smarkmif { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
405929964Sache  rm -rf conftest*
406029964Sache  eval "ac_cv_func_seteuid=yes"
406129964Sacheelse
406229964Sache  echo "configure: failed program was:" >&5
406329964Sache  cat conftest.$ac_ext >&5
406429964Sache  rm -rf conftest*
406529964Sache  eval "ac_cv_func_seteuid=no"
406629964Sachefi
406729964Sacherm -f conftest*
406829964Sachefi
406929964Sache
407029964Sacheif eval "test \"`echo '$ac_cv_func_'seteuid`\" = yes"; then
407129964Sache  echo "$ac_t""yes" 1>&6
407292906Smarkm  cat >> confdefs.h <<\EOF
407392906Smarkm#define HAVE_SETEUID 1
407492906SmarkmEOF
407592906Smarkm
407629964Sacheelse
407729964Sache  echo "$ac_t""no" 1>&6
407829964SacheMISSING="${MISSING}seteuid.o "; for ac_func in setreuid setresuid
407929964Sachedo
408029964Sacheecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
408192906Smarkmecho "configure:4082: checking for $ac_func" >&5
408229964Sacheif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
408329964Sache  echo $ac_n "(cached) $ac_c" 1>&6
408429964Sacheelse
408529964Sache  cat > conftest.$ac_ext <<EOF
408692906Smarkm#line 4087 "configure"
408729964Sache#include "confdefs.h"
408829964Sache/* System header to define __stub macros and hopefully few prototypes,
408929964Sache    which can conflict with char $ac_func(); below.  */
409029964Sache#include <assert.h>
409129964Sache/* Override any gcc2 internal prototype to avoid an error.  */
409229964Sache/* We use char because int might match the return type of a gcc2
409329964Sache    builtin and then its argument prototype would still apply.  */
409429964Sachechar $ac_func();
409529964Sache
409629964Sacheint main() {
409729964Sache
409829964Sache/* The GNU C library defines this for functions which it implements
409929964Sache    to always fail with ENOSYS.  Some functions are actually named
410029964Sache    something starting with __ and the normal name is an alias.  */
410129964Sache#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
410229964Sachechoke me
410329964Sache#else
410429964Sache$ac_func();
410529964Sache#endif
410629964Sache
410729964Sache; return 0; }
410829964SacheEOF
410992906Smarkmif { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
411029964Sache  rm -rf conftest*
411129964Sache  eval "ac_cv_func_$ac_func=yes"
411229964Sacheelse
411329964Sache  echo "configure: failed program was:" >&5
411429964Sache  cat conftest.$ac_ext >&5
411529964Sache  rm -rf conftest*
411629964Sache  eval "ac_cv_func_$ac_func=no"
411729964Sachefi
411829964Sacherm -f conftest*
411929964Sachefi
412029964Sache
412129964Sacheif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
412229964Sache  echo "$ac_t""yes" 1>&6
412329964Sache    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
412429964Sache  cat >> confdefs.h <<EOF
412529964Sache#define $ac_tr_func 1
412629964SacheEOF
412729964Sache 
412829964Sacheelse
412929964Sache  echo "$ac_t""no" 1>&6
413029964Sachefi
413129964Sachedone
413229964Sache
413329964Sachefi
413429964Sache
413529964Sacheecho $ac_n "checking for setutent""... $ac_c" 1>&6
413692906Smarkmecho "configure:4137: checking for setutent" >&5
413729964Sacheif eval "test \"`echo '$''{'ac_cv_func_setutent'+set}'`\" = set"; then
413829964Sache  echo $ac_n "(cached) $ac_c" 1>&6
413929964Sacheelse
414029964Sache  cat > conftest.$ac_ext <<EOF
414192906Smarkm#line 4142 "configure"
414229964Sache#include "confdefs.h"
414329964Sache/* System header to define __stub macros and hopefully few prototypes,
414429964Sache    which can conflict with char setutent(); below.  */
414529964Sache#include <assert.h>
414629964Sache/* Override any gcc2 internal prototype to avoid an error.  */
414729964Sache/* We use char because int might match the return type of a gcc2
414829964Sache    builtin and then its argument prototype would still apply.  */
414929964Sachechar setutent();
415029964Sache
415129964Sacheint main() {
415229964Sache
415329964Sache/* The GNU C library defines this for functions which it implements
415429964Sache    to always fail with ENOSYS.  Some functions are actually named
415529964Sache    something starting with __ and the normal name is an alias.  */
415629964Sache#if defined (__stub_setutent) || defined (__stub___setutent)
415729964Sachechoke me
415829964Sache#else
415929964Sachesetutent();
416029964Sache#endif
416129964Sache
416229964Sache; return 0; }
416329964SacheEOF
416492906Smarkmif { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
416529964Sache  rm -rf conftest*
416629964Sache  eval "ac_cv_func_setutent=yes"
416729964Sacheelse
416829964Sache  echo "configure: failed program was:" >&5
416929964Sache  cat conftest.$ac_ext >&5
417029964Sache  rm -rf conftest*
417129964Sache  eval "ac_cv_func_setutent=no"
417229964Sachefi
417329964Sacherm -f conftest*
417429964Sachefi
417529964Sache
417629964Sacheif eval "test \"`echo '$ac_cv_func_'setutent`\" = yes"; then
417729964Sache  echo "$ac_t""yes" 1>&6
417892906Smarkm  cat >> confdefs.h <<\EOF
417992906Smarkm#define HAVE_SETUTENT 1
418092906SmarkmEOF
418192906Smarkm
418229964Sacheelse
418329964Sache  echo "$ac_t""no" 1>&6
418429964SacheMISSING="${MISSING}setutent.o "
418529964Sachefi
418629964Sache
418722347Spstecho $ac_n "checking for sigprocmask""... $ac_c" 1>&6
418892906Smarkmecho "configure:4189: checking for sigprocmask" >&5
418922347Spstif eval "test \"`echo '$''{'ac_cv_func_sigprocmask'+set}'`\" = set"; then
419022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
419122347Spstelse
419222347Spst  cat > conftest.$ac_ext <<EOF
419392906Smarkm#line 4194 "configure"
419422347Spst#include "confdefs.h"
419522347Spst/* System header to define __stub macros and hopefully few prototypes,
419622347Spst    which can conflict with char sigprocmask(); below.  */
419722347Spst#include <assert.h>
419822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
419922347Spst/* We use char because int might match the return type of a gcc2
420022347Spst    builtin and then its argument prototype would still apply.  */
420122347Spstchar sigprocmask();
420222347Spst
420329964Sacheint main() {
420422347Spst
420522347Spst/* The GNU C library defines this for functions which it implements
420622347Spst    to always fail with ENOSYS.  Some functions are actually named
420722347Spst    something starting with __ and the normal name is an alias.  */
420822347Spst#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
420922347Spstchoke me
421022347Spst#else
421122347Spstsigprocmask();
421222347Spst#endif
421322347Spst
421422347Spst; return 0; }
421522347SpstEOF
421692906Smarkmif { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
421722347Spst  rm -rf conftest*
421822347Spst  eval "ac_cv_func_sigprocmask=yes"
421922347Spstelse
422029964Sache  echo "configure: failed program was:" >&5
422129964Sache  cat conftest.$ac_ext >&5
422222347Spst  rm -rf conftest*
422322347Spst  eval "ac_cv_func_sigprocmask=no"
422422347Spstfi
422522347Spstrm -f conftest*
422629964Sachefi
422722347Spst
422822347Spstif eval "test \"`echo '$ac_cv_func_'sigprocmask`\" = yes"; then
422922347Spst  echo "$ac_t""yes" 1>&6
423092906Smarkm  cat >> confdefs.h <<\EOF
423192906Smarkm#define HAVE_SIGPROCMASK 1
423292906SmarkmEOF
423392906Smarkm
423422347Spstelse
423522347Spst  echo "$ac_t""no" 1>&6
423622347SpstMISSING="${MISSING}sigprocmask.o "; for ac_func in sigblock sigsetmask
423722347Spstdo
423822347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
423992906Smarkmecho "configure:4240: checking for $ac_func" >&5
424022347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
424122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
424222347Spstelse
424322347Spst  cat > conftest.$ac_ext <<EOF
424492906Smarkm#line 4245 "configure"
424522347Spst#include "confdefs.h"
424622347Spst/* System header to define __stub macros and hopefully few prototypes,
424722347Spst    which can conflict with char $ac_func(); below.  */
424822347Spst#include <assert.h>
424922347Spst/* Override any gcc2 internal prototype to avoid an error.  */
425022347Spst/* We use char because int might match the return type of a gcc2
425122347Spst    builtin and then its argument prototype would still apply.  */
425222347Spstchar $ac_func();
425322347Spst
425429964Sacheint main() {
425522347Spst
425622347Spst/* The GNU C library defines this for functions which it implements
425722347Spst    to always fail with ENOSYS.  Some functions are actually named
425822347Spst    something starting with __ and the normal name is an alias.  */
425922347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
426022347Spstchoke me
426122347Spst#else
426222347Spst$ac_func();
426322347Spst#endif
426422347Spst
426522347Spst; return 0; }
426622347SpstEOF
426792906Smarkmif { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
426822347Spst  rm -rf conftest*
426922347Spst  eval "ac_cv_func_$ac_func=yes"
427022347Spstelse
427129964Sache  echo "configure: failed program was:" >&5
427229964Sache  cat conftest.$ac_ext >&5
427322347Spst  rm -rf conftest*
427422347Spst  eval "ac_cv_func_$ac_func=no"
427522347Spstfi
427622347Spstrm -f conftest*
427729964Sachefi
427822347Spst
427922347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
428022347Spst  echo "$ac_t""yes" 1>&6
428122347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
428222347Spst  cat >> confdefs.h <<EOF
428322347Spst#define $ac_tr_func 1
428422347SpstEOF
428522347Spst 
428622347Spstelse
428722347Spst  echo "$ac_t""no" 1>&6
428822347Spstfi
428922347Spstdone
429022347Spst
429122347Spstfi
429222347Spst
429322347Spstecho $ac_n "checking for strchr""... $ac_c" 1>&6
429492906Smarkmecho "configure:4295: checking for strchr" >&5
429522347Spstif eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
429622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
429722347Spstelse
429822347Spst  cat > conftest.$ac_ext <<EOF
429992906Smarkm#line 4300 "configure"
430022347Spst#include "confdefs.h"
430122347Spst/* System header to define __stub macros and hopefully few prototypes,
430222347Spst    which can conflict with char strchr(); below.  */
430322347Spst#include <assert.h>
430422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
430522347Spst/* We use char because int might match the return type of a gcc2
430622347Spst    builtin and then its argument prototype would still apply.  */
430722347Spstchar strchr();
430822347Spst
430929964Sacheint main() {
431022347Spst
431122347Spst/* The GNU C library defines this for functions which it implements
431222347Spst    to always fail with ENOSYS.  Some functions are actually named
431322347Spst    something starting with __ and the normal name is an alias.  */
431422347Spst#if defined (__stub_strchr) || defined (__stub___strchr)
431522347Spstchoke me
431622347Spst#else
431722347Spststrchr();
431822347Spst#endif
431922347Spst
432022347Spst; return 0; }
432122347SpstEOF
432292906Smarkmif { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
432322347Spst  rm -rf conftest*
432422347Spst  eval "ac_cv_func_strchr=yes"
432522347Spstelse
432629964Sache  echo "configure: failed program was:" >&5
432729964Sache  cat conftest.$ac_ext >&5
432822347Spst  rm -rf conftest*
432922347Spst  eval "ac_cv_func_strchr=no"
433022347Spstfi
433122347Spstrm -f conftest*
433229964Sachefi
433322347Spst
433422347Spstif eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
433522347Spst  echo "$ac_t""yes" 1>&6
433692906Smarkm  cat >> confdefs.h <<\EOF
433792906Smarkm#define HAVE_STRCHR 1
433892906SmarkmEOF
433992906Smarkm
434022347Spstelse
434122347Spst  echo "$ac_t""no" 1>&6
434222347SpstMISSING="${MISSING}strchr.o "; for ac_func in index
434322347Spstdo
434422347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
434592906Smarkmecho "configure:4346: checking for $ac_func" >&5
434622347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
434722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
434822347Spstelse
434922347Spst  cat > conftest.$ac_ext <<EOF
435092906Smarkm#line 4351 "configure"
435122347Spst#include "confdefs.h"
435222347Spst/* System header to define __stub macros and hopefully few prototypes,
435322347Spst    which can conflict with char $ac_func(); below.  */
435422347Spst#include <assert.h>
435522347Spst/* Override any gcc2 internal prototype to avoid an error.  */
435622347Spst/* We use char because int might match the return type of a gcc2
435722347Spst    builtin and then its argument prototype would still apply.  */
435822347Spstchar $ac_func();
435922347Spst
436029964Sacheint main() {
436122347Spst
436222347Spst/* The GNU C library defines this for functions which it implements
436322347Spst    to always fail with ENOSYS.  Some functions are actually named
436422347Spst    something starting with __ and the normal name is an alias.  */
436522347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
436622347Spstchoke me
436722347Spst#else
436822347Spst$ac_func();
436922347Spst#endif
437022347Spst
437122347Spst; return 0; }
437222347SpstEOF
437392906Smarkmif { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
437422347Spst  rm -rf conftest*
437522347Spst  eval "ac_cv_func_$ac_func=yes"
437622347Spstelse
437729964Sache  echo "configure: failed program was:" >&5
437829964Sache  cat conftest.$ac_ext >&5
437922347Spst  rm -rf conftest*
438022347Spst  eval "ac_cv_func_$ac_func=no"
438122347Spstfi
438222347Spstrm -f conftest*
438329964Sachefi
438422347Spst
438522347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
438622347Spst  echo "$ac_t""yes" 1>&6
438722347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
438822347Spst  cat >> confdefs.h <<EOF
438922347Spst#define $ac_tr_func 1
439022347SpstEOF
439122347Spst 
439222347Spstelse
439322347Spst  echo "$ac_t""no" 1>&6
439422347Spstfi
439522347Spstdone
439622347Spst
439722347Spstfi
439822347Spst
439922347Spstecho $ac_n "checking for strrchr""... $ac_c" 1>&6
440092906Smarkmecho "configure:4401: checking for strrchr" >&5
440122347Spstif eval "test \"`echo '$''{'ac_cv_func_strrchr'+set}'`\" = set"; then
440222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
440322347Spstelse
440422347Spst  cat > conftest.$ac_ext <<EOF
440592906Smarkm#line 4406 "configure"
440622347Spst#include "confdefs.h"
440722347Spst/* System header to define __stub macros and hopefully few prototypes,
440822347Spst    which can conflict with char strrchr(); below.  */
440922347Spst#include <assert.h>
441022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
441122347Spst/* We use char because int might match the return type of a gcc2
441222347Spst    builtin and then its argument prototype would still apply.  */
441322347Spstchar strrchr();
441422347Spst
441529964Sacheint main() {
441622347Spst
441722347Spst/* The GNU C library defines this for functions which it implements
441822347Spst    to always fail with ENOSYS.  Some functions are actually named
441922347Spst    something starting with __ and the normal name is an alias.  */
442022347Spst#if defined (__stub_strrchr) || defined (__stub___strrchr)
442122347Spstchoke me
442222347Spst#else
442322347Spststrrchr();
442422347Spst#endif
442522347Spst
442622347Spst; return 0; }
442722347SpstEOF
442892906Smarkmif { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
442922347Spst  rm -rf conftest*
443022347Spst  eval "ac_cv_func_strrchr=yes"
443122347Spstelse
443229964Sache  echo "configure: failed program was:" >&5
443329964Sache  cat conftest.$ac_ext >&5
443422347Spst  rm -rf conftest*
443522347Spst  eval "ac_cv_func_strrchr=no"
443622347Spstfi
443722347Spstrm -f conftest*
443829964Sachefi
443922347Spst
444022347Spstif eval "test \"`echo '$ac_cv_func_'strrchr`\" = yes"; then
444122347Spst  echo "$ac_t""yes" 1>&6
444292906Smarkm  cat >> confdefs.h <<\EOF
444392906Smarkm#define HAVE_STRRCHR 1
444492906SmarkmEOF
444592906Smarkm
444622347Spstelse
444722347Spst  echo "$ac_t""no" 1>&6
444822347SpstMISSING="${MISSING}strrchr.o "; for ac_func in rindex
444922347Spstdo
445022347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
445192906Smarkmecho "configure:4452: checking for $ac_func" >&5
445222347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
445322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
445422347Spstelse
445522347Spst  cat > conftest.$ac_ext <<EOF
445692906Smarkm#line 4457 "configure"
445722347Spst#include "confdefs.h"
445822347Spst/* System header to define __stub macros and hopefully few prototypes,
445922347Spst    which can conflict with char $ac_func(); below.  */
446022347Spst#include <assert.h>
446122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
446222347Spst/* We use char because int might match the return type of a gcc2
446322347Spst    builtin and then its argument prototype would still apply.  */
446422347Spstchar $ac_func();
446522347Spst
446629964Sacheint main() {
446722347Spst
446822347Spst/* The GNU C library defines this for functions which it implements
446922347Spst    to always fail with ENOSYS.  Some functions are actually named
447022347Spst    something starting with __ and the normal name is an alias.  */
447122347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
447222347Spstchoke me
447322347Spst#else
447422347Spst$ac_func();
447522347Spst#endif
447622347Spst
447722347Spst; return 0; }
447822347SpstEOF
447992906Smarkmif { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
448022347Spst  rm -rf conftest*
448122347Spst  eval "ac_cv_func_$ac_func=yes"
448222347Spstelse
448329964Sache  echo "configure: failed program was:" >&5
448429964Sache  cat conftest.$ac_ext >&5
448522347Spst  rm -rf conftest*
448622347Spst  eval "ac_cv_func_$ac_func=no"
448722347Spstfi
448822347Spstrm -f conftest*
448929964Sachefi
449022347Spst
449122347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
449222347Spst  echo "$ac_t""yes" 1>&6
449322347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
449422347Spst  cat >> confdefs.h <<EOF
449522347Spst#define $ac_tr_func 1
449622347SpstEOF
449722347Spst 
449822347Spstelse
449922347Spst  echo "$ac_t""no" 1>&6
450022347Spstfi
450122347Spstdone
450222347Spst
450322347Spstfi
450422347Spst
450529964Sacheecho $ac_n "checking for strtoul""... $ac_c" 1>&6
450692906Smarkmecho "configure:4507: checking for strtoul" >&5
450729964Sacheif eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
450829964Sache  echo $ac_n "(cached) $ac_c" 1>&6
450929964Sacheelse
451029964Sache  cat > conftest.$ac_ext <<EOF
451192906Smarkm#line 4512 "configure"
451229964Sache#include "confdefs.h"
451329964Sache/* System header to define __stub macros and hopefully few prototypes,
451429964Sache    which can conflict with char strtoul(); below.  */
451529964Sache#include <assert.h>
451629964Sache/* Override any gcc2 internal prototype to avoid an error.  */
451729964Sache/* We use char because int might match the return type of a gcc2
451829964Sache    builtin and then its argument prototype would still apply.  */
451929964Sachechar strtoul();
452029964Sache
452129964Sacheint main() {
452229964Sache
452329964Sache/* The GNU C library defines this for functions which it implements
452429964Sache    to always fail with ENOSYS.  Some functions are actually named
452529964Sache    something starting with __ and the normal name is an alias.  */
452629964Sache#if defined (__stub_strtoul) || defined (__stub___strtoul)
452729964Sachechoke me
452829964Sache#else
452929964Sachestrtoul();
453029964Sache#endif
453129964Sache
453229964Sache; return 0; }
453329964SacheEOF
453492906Smarkmif { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
453529964Sache  rm -rf conftest*
453629964Sache  eval "ac_cv_func_strtoul=yes"
453729964Sacheelse
453829964Sache  echo "configure: failed program was:" >&5
453929964Sache  cat conftest.$ac_ext >&5
454029964Sache  rm -rf conftest*
454129964Sache  eval "ac_cv_func_strtoul=no"
454229964Sachefi
454329964Sacherm -f conftest*
454429964Sachefi
454529964Sache
454629964Sacheif eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
454729964Sache  echo "$ac_t""yes" 1>&6
454892906Smarkm  cat >> confdefs.h <<\EOF
454992906Smarkm#define HAVE_STRTOUL 1
455092906SmarkmEOF
455192906Smarkm
455229964Sacheelse
455329964Sache  echo "$ac_t""no" 1>&6
455429964SacheMISSING="${MISSING}strtoul.o "
455529964Sachefi
455629964Sache
455722347Spstecho $ac_n "checking for sysconf""... $ac_c" 1>&6
455892906Smarkmecho "configure:4559: checking for sysconf" >&5
455922347Spstif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
456022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
456122347Spstelse
456222347Spst  cat > conftest.$ac_ext <<EOF
456392906Smarkm#line 4564 "configure"
456422347Spst#include "confdefs.h"
456522347Spst/* System header to define __stub macros and hopefully few prototypes,
456622347Spst    which can conflict with char sysconf(); below.  */
456722347Spst#include <assert.h>
456822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
456922347Spst/* We use char because int might match the return type of a gcc2
457022347Spst    builtin and then its argument prototype would still apply.  */
457122347Spstchar sysconf();
457222347Spst
457329964Sacheint main() {
457422347Spst
457522347Spst/* The GNU C library defines this for functions which it implements
457622347Spst    to always fail with ENOSYS.  Some functions are actually named
457722347Spst    something starting with __ and the normal name is an alias.  */
457822347Spst#if defined (__stub_sysconf) || defined (__stub___sysconf)
457922347Spstchoke me
458022347Spst#else
458122347Spstsysconf();
458222347Spst#endif
458322347Spst
458422347Spst; return 0; }
458522347SpstEOF
458692906Smarkmif { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
458722347Spst  rm -rf conftest*
458822347Spst  eval "ac_cv_func_sysconf=yes"
458922347Spstelse
459029964Sache  echo "configure: failed program was:" >&5
459129964Sache  cat conftest.$ac_ext >&5
459222347Spst  rm -rf conftest*
459322347Spst  eval "ac_cv_func_sysconf=no"
459422347Spstfi
459522347Spstrm -f conftest*
459629964Sachefi
459722347Spst
459822347Spstif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
459922347Spst  echo "$ac_t""yes" 1>&6
460092906Smarkm  cat >> confdefs.h <<\EOF
460192906Smarkm#define HAVE_SYSCONF 1
460292906SmarkmEOF
460392906Smarkm
460422347Spstelse
460522347Spst  echo "$ac_t""no" 1>&6
460622347SpstMISSING="${MISSING}sysconf.o "; for ac_func in getdtablesize
460722347Spstdo
460822347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
460992906Smarkmecho "configure:4610: checking for $ac_func" >&5
461022347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
461122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
461222347Spstelse
461322347Spst  cat > conftest.$ac_ext <<EOF
461492906Smarkm#line 4615 "configure"
461522347Spst#include "confdefs.h"
461622347Spst/* System header to define __stub macros and hopefully few prototypes,
461722347Spst    which can conflict with char $ac_func(); below.  */
461822347Spst#include <assert.h>
461922347Spst/* Override any gcc2 internal prototype to avoid an error.  */
462022347Spst/* We use char because int might match the return type of a gcc2
462122347Spst    builtin and then its argument prototype would still apply.  */
462222347Spstchar $ac_func();
462322347Spst
462429964Sacheint main() {
462522347Spst
462622347Spst/* The GNU C library defines this for functions which it implements
462722347Spst    to always fail with ENOSYS.  Some functions are actually named
462822347Spst    something starting with __ and the normal name is an alias.  */
462922347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
463022347Spstchoke me
463122347Spst#else
463222347Spst$ac_func();
463322347Spst#endif
463422347Spst
463522347Spst; return 0; }
463622347SpstEOF
463792906Smarkmif { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
463822347Spst  rm -rf conftest*
463922347Spst  eval "ac_cv_func_$ac_func=yes"
464022347Spstelse
464129964Sache  echo "configure: failed program was:" >&5
464229964Sache  cat conftest.$ac_ext >&5
464322347Spst  rm -rf conftest*
464422347Spst  eval "ac_cv_func_$ac_func=no"
464522347Spstfi
464622347Spstrm -f conftest*
464729964Sachefi
464822347Spst
464922347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
465022347Spst  echo "$ac_t""yes" 1>&6
465122347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
465222347Spst  cat >> confdefs.h <<EOF
465322347Spst#define $ac_tr_func 1
465422347SpstEOF
465522347Spst 
465622347Spstelse
465722347Spst  echo "$ac_t""no" 1>&6
465822347Spstfi
465922347Spstdone
466022347Spst
466122347Spstfi
466222347Spst
466322347Spstecho $ac_n "checking for uname""... $ac_c" 1>&6
466492906Smarkmecho "configure:4665: checking for uname" >&5
466522347Spstif eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
466622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
466722347Spstelse
466822347Spst  cat > conftest.$ac_ext <<EOF
466992906Smarkm#line 4670 "configure"
467022347Spst#include "confdefs.h"
467122347Spst/* System header to define __stub macros and hopefully few prototypes,
467222347Spst    which can conflict with char uname(); below.  */
467322347Spst#include <assert.h>
467422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
467522347Spst/* We use char because int might match the return type of a gcc2
467622347Spst    builtin and then its argument prototype would still apply.  */
467722347Spstchar uname();
467822347Spst
467929964Sacheint main() {
468022347Spst
468122347Spst/* The GNU C library defines this for functions which it implements
468222347Spst    to always fail with ENOSYS.  Some functions are actually named
468322347Spst    something starting with __ and the normal name is an alias.  */
468422347Spst#if defined (__stub_uname) || defined (__stub___uname)
468522347Spstchoke me
468622347Spst#else
468722347Spstuname();
468822347Spst#endif
468922347Spst
469022347Spst; return 0; }
469122347SpstEOF
469292906Smarkmif { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
469322347Spst  rm -rf conftest*
469422347Spst  eval "ac_cv_func_uname=yes"
469522347Spstelse
469629964Sache  echo "configure: failed program was:" >&5
469729964Sache  cat conftest.$ac_ext >&5
469822347Spst  rm -rf conftest*
469922347Spst  eval "ac_cv_func_uname=no"
470022347Spstfi
470122347Spstrm -f conftest*
470229964Sachefi
470322347Spst
470422347Spstif eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
470522347Spst  echo "$ac_t""yes" 1>&6
470692906Smarkm  cat >> confdefs.h <<\EOF
470792906Smarkm#define HAVE_UNAME 1
470892906SmarkmEOF
470992906Smarkm
471022347Spstelse
471122347Spst  echo "$ac_t""no" 1>&6
471222347SpstMISSING="${MISSING}uname.o "; for ac_func in gethostname
471322347Spstdo
471422347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
471592906Smarkmecho "configure:4716: checking for $ac_func" >&5
471622347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
471722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
471822347Spstelse
471922347Spst  cat > conftest.$ac_ext <<EOF
472092906Smarkm#line 4721 "configure"
472122347Spst#include "confdefs.h"
472222347Spst/* System header to define __stub macros and hopefully few prototypes,
472322347Spst    which can conflict with char $ac_func(); below.  */
472422347Spst#include <assert.h>
472522347Spst/* Override any gcc2 internal prototype to avoid an error.  */
472622347Spst/* We use char because int might match the return type of a gcc2
472722347Spst    builtin and then its argument prototype would still apply.  */
472822347Spstchar $ac_func();
472922347Spst
473029964Sacheint main() {
473122347Spst
473222347Spst/* The GNU C library defines this for functions which it implements
473322347Spst    to always fail with ENOSYS.  Some functions are actually named
473422347Spst    something starting with __ and the normal name is an alias.  */
473522347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
473622347Spstchoke me
473722347Spst#else
473822347Spst$ac_func();
473922347Spst#endif
474022347Spst
474122347Spst; return 0; }
474222347SpstEOF
474392906Smarkmif { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
474422347Spst  rm -rf conftest*
474522347Spst  eval "ac_cv_func_$ac_func=yes"
474622347Spstelse
474729964Sache  echo "configure: failed program was:" >&5
474829964Sache  cat conftest.$ac_ext >&5
474922347Spst  rm -rf conftest*
475022347Spst  eval "ac_cv_func_$ac_func=no"
475122347Spstfi
475222347Spstrm -f conftest*
475329964Sachefi
475422347Spst
475522347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
475622347Spst  echo "$ac_t""yes" 1>&6
475722347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
475822347Spst  cat >> confdefs.h <<EOF
475922347Spst#define $ac_tr_func 1
476022347SpstEOF
476122347Spst 
476222347Spstelse
476322347Spst  echo "$ac_t""no" 1>&6
476422347Spstfi
476522347Spstdone
476622347Spst
476722347Spstfi
476822347Spst
476922347Spstecho $ac_n "checking for unsetenv""... $ac_c" 1>&6
477092906Smarkmecho "configure:4771: checking for unsetenv" >&5
477122347Spstif eval "test \"`echo '$''{'ac_cv_func_unsetenv'+set}'`\" = set"; then
477222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
477322347Spstelse
477422347Spst  cat > conftest.$ac_ext <<EOF
477592906Smarkm#line 4776 "configure"
477622347Spst#include "confdefs.h"
477722347Spst/* System header to define __stub macros and hopefully few prototypes,
477822347Spst    which can conflict with char unsetenv(); below.  */
477922347Spst#include <assert.h>
478022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
478122347Spst/* We use char because int might match the return type of a gcc2
478222347Spst    builtin and then its argument prototype would still apply.  */
478322347Spstchar unsetenv();
478422347Spst
478529964Sacheint main() {
478622347Spst
478722347Spst/* The GNU C library defines this for functions which it implements
478822347Spst    to always fail with ENOSYS.  Some functions are actually named
478922347Spst    something starting with __ and the normal name is an alias.  */
479022347Spst#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
479122347Spstchoke me
479222347Spst#else
479322347Spstunsetenv();
479422347Spst#endif
479522347Spst
479622347Spst; return 0; }
479722347SpstEOF
479892906Smarkmif { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
479922347Spst  rm -rf conftest*
480022347Spst  eval "ac_cv_func_unsetenv=yes"
480122347Spstelse
480229964Sache  echo "configure: failed program was:" >&5
480329964Sache  cat conftest.$ac_ext >&5
480422347Spst  rm -rf conftest*
480522347Spst  eval "ac_cv_func_unsetenv=no"
480622347Spstfi
480722347Spstrm -f conftest*
480829964Sachefi
480922347Spst
481022347Spstif eval "test \"`echo '$ac_cv_func_'unsetenv`\" = yes"; then
481122347Spst  echo "$ac_t""yes" 1>&6
481222347Spst  cat >> confdefs.h <<\EOF
481322347Spst#define HAVE_UNSETENV 1
481422347SpstEOF
481522347Spst
481622347Spstelse
481722347Spst  echo "$ac_t""no" 1>&6
481822347SpstMISSING="${MISSING}env.o "
481922347Spstfi
482022347Spst
482122347Spst
482222347Spst
482322347Spstecho $ac_n "checking for nonstandard gettimeofday""... $ac_c" 1>&6
482492906Smarkmecho "configure:4825: checking for nonstandard gettimeofday" >&5
482522347Spstcat > conftest.$ac_ext <<EOF
482692906Smarkm#line 4827 "configure"
482722347Spst#include "confdefs.h"
482822347Spst
482922347Spst#if HAVE_SYS_TIME_H
483022347Spst#include <sys/time.h>
483122347Spst#endif /* HAVE_SYS_TIME_H */
483222347Spst#if HAVE_UNISTD_H
483322347Spst#include <unistd.h>
483422347Spst#endif /* HAVE_UNISTD_H */
483522347Spst
483629964Sacheint main() {
483722347Spststruct timeval tv;
483822347Spstgettimeofday(&tv, NULL)
483922347Spst; return 0; }
484022347SpstEOF
484192906Smarkmif { (eval echo configure:4842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
484222347Spst  rm -rf conftest*
484322347Spst  echo "$ac_t""no" 1>&6
484422347Spstelse
484529964Sache  echo "configure: failed program was:" >&5
484629964Sache  cat conftest.$ac_ext >&5
484722347Spst  rm -rf conftest*
484822347Spst  echo "$ac_t""maybe" 1>&6 cat > conftest.$ac_ext <<EOF
484992906Smarkm#line 4850 "configure"
485022347Spst#include "confdefs.h"
485122347Spst
485222347Spst#if HAVE_SYS_TIME_H
485322347Spst#include <sys/time.h>
485422347Spst#endif /* HAVE_SYS_TIME_H */
485522347Spst#if HAVE_UNISTD_H
485622347Spst#include <unistd.h>
485722347Spst#endif /* HAVE_UNISTD_H */
485822347Spst
485929964Sacheint main() {
486022347Spststruct timeval tv;
486122347Spstgettimeofday(&tv)
486222347Spst; return 0; }
486322347SpstEOF
486492906Smarkmif { (eval echo configure:4865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
486522347Spst  rm -rf conftest*
486622347Spst  cat >> confdefs.h <<\EOF
486722347Spst#define HAVE_ONE_ARG_GETTIMEOFDAY 1
486822347SpstEOF
486922347Spst echo "$ac_t""yes" 1>&6
487022347Spstelse
487129964Sache  echo "configure: failed program was:" >&5
487229964Sache  cat conftest.$ac_ext >&5
487322347Spst  rm -rf conftest*
487422347Spst  echo "$ac_t""no" 1>&6
487522347Spstfi
487622347Spstrm -f conftest*
487722347Spstfi
487822347Spstrm -f conftest*
487922347Spst
488022347Spst# Munge out LOCALBIN and LOCALMAN in canonical (no bletch) form
488122347Spsttrap '' 1 2 15
488222347Spstcat > confcache <<\EOF
488322347Spst# This file is a shell script that caches the results of configure
488422347Spst# tests run on this system so they can be shared between configure
488522347Spst# scripts and configure runs.  It is not useful on other systems.
488622347Spst# If it contains results you don't want to keep, you may remove or edit it.
488722347Spst#
488822347Spst# By default, configure uses ./config.cache as the cache file,
488922347Spst# creating it if it does not exist already.  You can give configure
489022347Spst# the --cache-file=FILE option to use a different cache file; that is
489122347Spst# what configure does when it calls configure scripts in
489222347Spst# subdirectories, so they share the cache.
489322347Spst# Giving --cache-file=/dev/null disables caching, for debugging configure.
489422347Spst# config.status only pays attention to the cache file if you give it the
489522347Spst# --recheck option to rerun configure.
489622347Spst#
489722347SpstEOF
489829964Sache# The following way of writing the cache mishandles newlines in values,
489929964Sache# but we know of no workaround that is simple, portable, and efficient.
490029964Sache# So, don't put newlines in cache variables' values.
490122347Spst# Ultrix sh set writes to stderr and can't be redirected directly,
490222347Spst# and sets the high bit in the cache file unless we assign to the vars.
490322347Spst(set) 2>&1 |
490492906Smarkm  case `(ac_space=' '; set | grep ac_space) 2>&1` in
490529964Sache  *ac_space=\ *)
490629964Sache    # `set' does not quote correctly, so add quotes (double-quote substitution
490729964Sache    # turns \\\\ into \\, and sed turns \\ into \).
490829964Sache    sed -n \
490929964Sache      -e "s/'/'\\\\''/g" \
491029964Sache      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
491129964Sache    ;;
491229964Sache  *)
491329964Sache    # `set' quotes correctly as required by POSIX, so do not add quotes.
491429964Sache    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
491529964Sache    ;;
491629964Sache  esac >> confcache
491722347Spstif cmp -s $cache_file confcache; then
491822347Spst  :
491922347Spstelse
492022347Spst  if test -w $cache_file; then
492122347Spst    echo "updating cache $cache_file"
492222347Spst    cat confcache > $cache_file
492322347Spst  else
492422347Spst    echo "not updating unwritable cache $cache_file"
492522347Spst  fi
492622347Spstfi
492722347Spstrm -f confcache
492822347Spst
492922347Spsttrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
493022347Spst
493122347Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix
493222347Spst# Let make expand exec_prefix.
493322347Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
493422347Spst
493522347Spst# Any assignment to VPATH causes Sun make to only execute
493622347Spst# the first set of double-colon rules, so remove it if not needed.
493722347Spst# If there is a colon in the path, we need to keep it.
493822347Spstif test "x$srcdir" = x.; then
493922347Spst  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
494022347Spstfi
494122347Spst
494222347Spsttrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
494322347Spst
494422347SpstDEFS=-DHAVE_CONFIG_H
494522347Spst
494622347Spst# Without the "./", some shells look in PATH for config.status.
494722347Spst: ${CONFIG_STATUS=./config.status}
494822347Spst
494922347Spstecho creating $CONFIG_STATUS
495022347Spstrm -f $CONFIG_STATUS
495122347Spstcat > $CONFIG_STATUS <<EOF
495222347Spst#! /bin/sh
495322347Spst# Generated automatically by configure.
495422347Spst# Run this file to recreate the current configuration.
495522347Spst# This directory was configured as follows,
495622347Spst# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
495722347Spst#
495822347Spst# $0 $ac_configure_args
495922347Spst#
496022347Spst# Compiler output produced by configure, useful for debugging
496122347Spst# configure, is in ./config.log if it exists.
496222347Spst
496322347Spstac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
496422347Spstfor ac_option
496522347Spstdo
496622347Spst  case "\$ac_option" in
496722347Spst  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
496822347Spst    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
496922347Spst    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
497022347Spst  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
497192906Smarkm    echo "$CONFIG_STATUS generated by autoconf version 2.13"
497222347Spst    exit 0 ;;
497322347Spst  -help | --help | --hel | --he | --h)
497422347Spst    echo "\$ac_cs_usage"; exit 0 ;;
497522347Spst  *) echo "\$ac_cs_usage"; exit 1 ;;
497622347Spst  esac
497722347Spstdone
497822347Spst
497922347Spstac_given_srcdir=$srcdir
498022347Spst
498122347Spsttrap 'rm -fr `echo "configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
498222347SpstEOF
498322347Spstcat >> $CONFIG_STATUS <<EOF
498422347Spst
498522347Spst# Protect against being on the right side of a sed subst in config.status.
498622347Spstsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
498722347Spst s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
498822347Spst$ac_vpsub
498922347Spst$extrasub
499092906Smarkms%@SHELL@%$SHELL%g
499122347Spsts%@CFLAGS@%$CFLAGS%g
499222347Spsts%@CPPFLAGS@%$CPPFLAGS%g
499322347Spsts%@CXXFLAGS@%$CXXFLAGS%g
499492906Smarkms%@FFLAGS@%$FFLAGS%g
499522347Spsts%@DEFS@%$DEFS%g
499622347Spsts%@LDFLAGS@%$LDFLAGS%g
499722347Spsts%@LIBS@%$LIBS%g
499822347Spsts%@exec_prefix@%$exec_prefix%g
499922347Spsts%@prefix@%$prefix%g
500022347Spsts%@program_transform_name@%$program_transform_name%g
500122347Spsts%@bindir@%$bindir%g
500222347Spsts%@sbindir@%$sbindir%g
500322347Spsts%@libexecdir@%$libexecdir%g
500422347Spsts%@datadir@%$datadir%g
500522347Spsts%@sysconfdir@%$sysconfdir%g
500622347Spsts%@sharedstatedir@%$sharedstatedir%g
500722347Spsts%@localstatedir@%$localstatedir%g
500822347Spsts%@libdir@%$libdir%g
500922347Spsts%@includedir@%$includedir%g
501022347Spsts%@oldincludedir@%$oldincludedir%g
501122347Spsts%@infodir@%$infodir%g
501222347Spsts%@mandir@%$mandir%g
501329964Saches%@ACCESS_FILE@%$ACCESS_FILE%g
501429964Saches%@LOCK_DIR@%$LOCK_DIR%g
501592906Smarkms%@OPIEAUTO@%$OPIEAUTO%g
501622347Spsts%@CC@%$CC%g
501722347Spsts%@CPP@%$CPP%g
501822347Spsts%@LN_S@%$LN_S%g
501922347Spsts%@RANLIB@%$RANLIB%g
502022347Spsts%@YACC@%$YACC%g
502122347Spsts%@CHOWN@%$CHOWN%g
502222347Spsts%@SU@%$SU%g
502322347Spsts%@ALT_SU@%$ALT_SU%g
502422347Spsts%@SCHEME@%$SCHEME%g
502522347Spsts%@LOGIN@%$LOGIN%g
502622347Spsts%@FTPD@%$FTPD%g
502722347Spsts%@INFTPD@%$INFTPD%g
502822347Spsts%@EXISTS@%$EXISTS%g
502922347Spsts%@MKDIR@%$MKDIR%g
503022347Spsts%@LIBOBJS@%$LIBOBJS%g
503122347Spsts%@ALLOCA@%$ALLOCA%g
503222347Spsts%@MISSING@%$MISSING%g
503322347Spst
503422347SpstCEOF
503522347SpstEOF
503629964Sache
503729964Sachecat >> $CONFIG_STATUS <<\EOF
503829964Sache
503929964Sache# Split the substitutions into bite-sized pieces for seds with
504029964Sache# small command number limits, like on Digital OSF/1 and HP-UX.
504129964Sacheac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
504229964Sacheac_file=1 # Number of current file.
504329964Sacheac_beg=1 # First line for current file.
504429964Sacheac_end=$ac_max_sed_cmds # Line after last line for current file.
504529964Sacheac_more_lines=:
504629964Sacheac_sed_cmds=""
504729964Sachewhile $ac_more_lines; do
504829964Sache  if test $ac_beg -gt 1; then
504929964Sache    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
505029964Sache  else
505129964Sache    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
505229964Sache  fi
505329964Sache  if test ! -s conftest.s$ac_file; then
505429964Sache    ac_more_lines=false
505529964Sache    rm -f conftest.s$ac_file
505629964Sache  else
505729964Sache    if test -z "$ac_sed_cmds"; then
505829964Sache      ac_sed_cmds="sed -f conftest.s$ac_file"
505929964Sache    else
506029964Sache      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
506129964Sache    fi
506229964Sache    ac_file=`expr $ac_file + 1`
506329964Sache    ac_beg=$ac_end
506429964Sache    ac_end=`expr $ac_end + $ac_max_sed_cmds`
506529964Sache  fi
506629964Sachedone
506729964Sacheif test -z "$ac_sed_cmds"; then
506829964Sache  ac_sed_cmds=cat
506929964Sachefi
507029964SacheEOF
507129964Sache
507222347Spstcat >> $CONFIG_STATUS <<EOF
507322347Spst
507422347SpstCONFIG_FILES=\${CONFIG_FILES-"configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in"}
507522347SpstEOF
507622347Spstcat >> $CONFIG_STATUS <<\EOF
507722347Spstfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
507829964Sache  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
507922347Spst  case "$ac_file" in
508029964Sache  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
508122347Spst       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
508222347Spst  *) ac_file_in="${ac_file}.in" ;;
508322347Spst  esac
508422347Spst
508529964Sache  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
508622347Spst
508722347Spst  # Remove last slash and all that follows it.  Not all systems have dirname.
508822347Spst  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
508922347Spst  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
509022347Spst    # The file is in a subdirectory.
509122347Spst    test ! -d "$ac_dir" && mkdir "$ac_dir"
509222347Spst    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
509322347Spst    # A "../" for each directory in $ac_dir_suffix.
509422347Spst    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
509522347Spst  else
509622347Spst    ac_dir_suffix= ac_dots=
509722347Spst  fi
509822347Spst
509922347Spst  case "$ac_given_srcdir" in
510022347Spst  .)  srcdir=.
510122347Spst      if test -z "$ac_dots"; then top_srcdir=.
510222347Spst      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
510322347Spst  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
510422347Spst  *) # Relative path.
510522347Spst    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
510622347Spst    top_srcdir="$ac_dots$ac_given_srcdir" ;;
510722347Spst  esac
510822347Spst
510929964Sache
511022347Spst  echo creating "$ac_file"
511122347Spst  rm -f "$ac_file"
511222347Spst  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
511322347Spst  case "$ac_file" in
511422347Spst  *Makefile*) ac_comsub="1i\\
511522347Spst# $configure_input" ;;
511622347Spst  *) ac_comsub= ;;
511722347Spst  esac
511829964Sache
511929964Sache  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
512022347Spst  sed -e "$ac_comsub
512122347Spsts%@configure_input@%$configure_input%g
512222347Spsts%@srcdir@%$srcdir%g
512322347Spsts%@top_srcdir@%$top_srcdir%g
512429964Sache" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
512522347Spstfi; done
512629964Sacherm -f conftest.s*
512722347Spst
512822347Spst# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
512922347Spst# NAME is the cpp macro being defined and VALUE is the value it is being given.
513022347Spst#
513122347Spst# ac_d sets the value in "#define NAME VALUE" lines.
513222347Spstac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
513322347Spstac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
513422347Spstac_dC='\3'
513522347Spstac_dD='%g'
513622347Spst# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
513722347Spstac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
513822347Spstac_uB='\([ 	]\)%\1#\2define\3'
513922347Spstac_uC=' '
514022347Spstac_uD='\4%g'
514122347Spst# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
514222347Spstac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
514322347Spstac_eB='$%\1#\2define\3'
514422347Spstac_eC=' '
514522347Spstac_eD='%g'
514622347Spst
514729964Sacheif test "${CONFIG_HEADERS+set}" != set; then
514829964SacheEOF
514929964Sachecat >> $CONFIG_STATUS <<EOF
515029964Sache  CONFIG_HEADERS="config.h"
515129964SacheEOF
515229964Sachecat >> $CONFIG_STATUS <<\EOF
515329964Sachefi
515422347Spstfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
515529964Sache  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
515622347Spst  case "$ac_file" in
515729964Sache  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
515822347Spst       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
515922347Spst  *) ac_file_in="${ac_file}.in" ;;
516022347Spst  esac
516122347Spst
516222347Spst  echo creating $ac_file
516322347Spst
516422347Spst  rm -f conftest.frag conftest.in conftest.out
516529964Sache  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
516629964Sache  cat $ac_file_inputs > conftest.in
516722347Spst
516822347SpstEOF
516922347Spst
517022347Spst# Transform confdefs.h into a sed script conftest.vals that substitutes
517122347Spst# the proper values into config.h.in to produce config.h.  And first:
517222347Spst# Protect against being on the right side of a sed subst in config.status.
517322347Spst# Protect against being in an unquoted here document in config.status.
517422347Spstrm -f conftest.vals
517522347Spstcat > conftest.hdr <<\EOF
517622347Spsts/[\\&%]/\\&/g
517722347Spsts%[\\$`]%\\&%g
517822347Spsts%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
517922347Spsts%ac_d%ac_u%gp
518022347Spsts%ac_u%ac_e%gp
518122347SpstEOF
518222347Spstsed -n -f conftest.hdr confdefs.h > conftest.vals
518322347Spstrm -f conftest.hdr
518422347Spst
518522347Spst# This sed command replaces #undef with comments.  This is necessary, for
518622347Spst# example, in the case of _POSIX_SOURCE, which is predefined and required
518722347Spst# on some systems where configure will not decide to define it.
518822347Spstcat >> conftest.vals <<\EOF
518922347Spsts%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
519022347SpstEOF
519122347Spst
519222347Spst# Break up conftest.vals because some shells have a limit on
519322347Spst# the size of here documents, and old seds have small limits too.
519422347Spst
519522347Spstrm -f conftest.tail
519622347Spstwhile :
519722347Spstdo
519822347Spst  ac_lines=`grep -c . conftest.vals`
519922347Spst  # grep -c gives empty output for an empty file on some AIX systems.
520022347Spst  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
520122347Spst  # Write a limited-size here document to conftest.frag.
520222347Spst  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
520322347Spst  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
520422347Spst  echo 'CEOF
520522347Spst  sed -f conftest.frag conftest.in > conftest.out
520622347Spst  rm -f conftest.in
520722347Spst  mv conftest.out conftest.in
520822347Spst' >> $CONFIG_STATUS
520922347Spst  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
521022347Spst  rm -f conftest.vals
521122347Spst  mv conftest.tail conftest.vals
521222347Spstdone
521322347Spstrm -f conftest.vals
521422347Spst
521522347Spstcat >> $CONFIG_STATUS <<\EOF
521622347Spst  rm -f conftest.frag conftest.h
521722347Spst  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
521822347Spst  cat conftest.in >> conftest.h
521922347Spst  rm -f conftest.in
522022347Spst  if cmp -s $ac_file conftest.h 2>/dev/null; then
522122347Spst    echo "$ac_file is unchanged"
522222347Spst    rm -f conftest.h
522322347Spst  else
522422347Spst    # Remove last slash and all that follows it.  Not all systems have dirname.
522522347Spst      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
522622347Spst      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
522722347Spst      # The file is in a subdirectory.
522822347Spst      test ! -d "$ac_dir" && mkdir "$ac_dir"
522922347Spst    fi
523022347Spst    rm -f $ac_file
523122347Spst    mv conftest.h $ac_file
523222347Spst  fi
523322347Spstfi; done
523422347Spst
523529964SacheEOF
523629964Sachecat >> $CONFIG_STATUS <<EOF
523722347Spst
523829964SacheEOF
523929964Sachecat >> $CONFIG_STATUS <<\EOF
524022347Spst
524122347Spstexit 0
524222347SpstEOF
524322347Spstchmod +x $CONFIG_STATUS
524422347Spstrm -fr confdefs* $ac_clean_files
524522347Spsttest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
524622347Spst
524722347Spstsh configure.munger
5248