configure revision 22347
122347Spst#! /bin/sh
222347Spst
322347Spst# Guess values for system-dependent variables and create Makefiles.
422347Spst# Generated automatically using autoconf version 2.10 
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
1522347Spst  --enable-access-file=PATH  Use the OPIE access file PATH as a transition aid"
1622347Spstac_help="$ac_help
1722347Spst  --enable-anonymous-ftp  Enable anonymous FTP support"
1822347Spst
1922347Spst# Initialize some variables set by options.
2022347Spst# The variables have the same names as the options, with
2122347Spst# dashes changed to underlines.
2222347Spstbuild=NONE
2322347Spstcache_file=./config.cache
2422347Spstexec_prefix=NONE
2522347Spsthost=NONE
2622347Spstno_create=
2722347Spstnonopt=NONE
2822347Spstno_recursion=
2922347Spstprefix=NONE
3022347Spstprogram_prefix=NONE
3122347Spstprogram_suffix=NONE
3222347Spstprogram_transform_name=s,x,x,
3322347Spstsilent=
3422347Spstsite=
3522347Spstsrcdir=
3622347Spsttarget=NONE
3722347Spstverbose=
3822347Spstx_includes=NONE
3922347Spstx_libraries=NONE
4022347Spstbindir='${exec_prefix}/bin'
4122347Spstsbindir='${exec_prefix}/sbin'
4222347Spstlibexecdir='${exec_prefix}/libexec'
4322347Spstdatadir='${prefix}/share'
4422347Spstsysconfdir='${prefix}/etc'
4522347Spstsharedstatedir='${prefix}/com'
4622347Spstlocalstatedir='${prefix}/var'
4722347Spstlibdir='${exec_prefix}/lib'
4822347Spstincludedir='${prefix}/include'
4922347Spstoldincludedir='/usr/include'
5022347Spstinfodir='${prefix}/info'
5122347Spstmandir='${prefix}/man'
5222347Spst
5322347Spst# Initialize some other variables.
5422347Spstsubdirs=
5522347SpstMFLAGS= MAKEFLAGS=
5622347Spst
5722347Spstac_prev=
5822347Spstfor ac_option
5922347Spstdo
6022347Spst
6122347Spst  # If the previous option needs an argument, assign it.
6222347Spst  if test -n "$ac_prev"; then
6322347Spst    eval "$ac_prev=\$ac_option"
6422347Spst    ac_prev=
6522347Spst    continue
6622347Spst  fi
6722347Spst
6822347Spst  case "$ac_option" in
6922347Spst  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
7022347Spst  *) ac_optarg= ;;
7122347Spst  esac
7222347Spst
7322347Spst  # Accept the important Cygnus configure options, so we can diagnose typos.
7422347Spst
7522347Spst  case "$ac_option" in
7622347Spst
7722347Spst  -bindir | --bindir | --bindi | --bind | --bin | --bi)
7822347Spst    ac_prev=bindir ;;
7922347Spst  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8022347Spst    bindir="$ac_optarg" ;;
8122347Spst
8222347Spst  -build | --build | --buil | --bui | --bu)
8322347Spst    ac_prev=build ;;
8422347Spst  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8522347Spst    build="$ac_optarg" ;;
8622347Spst
8722347Spst  -cache-file | --cache-file | --cache-fil | --cache-fi \
8822347Spst  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8922347Spst    ac_prev=cache_file ;;
9022347Spst  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9122347Spst  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9222347Spst    cache_file="$ac_optarg" ;;
9322347Spst
9422347Spst  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
9522347Spst    ac_prev=datadir ;;
9622347Spst  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
9722347Spst  | --da=*)
9822347Spst    datadir="$ac_optarg" ;;
9922347Spst
10022347Spst  -disable-* | --disable-*)
10122347Spst    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10222347Spst    # Reject names that are not valid shell variable names.
10322347Spst    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
10422347Spst      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
10522347Spst    fi
10622347Spst    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
10722347Spst    eval "enable_${ac_feature}=no" ;;
10822347Spst
10922347Spst  -enable-* | --enable-*)
11022347Spst    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
11122347Spst    # Reject names that are not valid shell variable names.
11222347Spst    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
11322347Spst      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
11422347Spst    fi
11522347Spst    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
11622347Spst    case "$ac_option" in
11722347Spst      *=*) ;;
11822347Spst      *) ac_optarg=yes ;;
11922347Spst    esac
12022347Spst    eval "enable_${ac_feature}='$ac_optarg'" ;;
12122347Spst
12222347Spst  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
12322347Spst  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
12422347Spst  | --exec | --exe | --ex)
12522347Spst    ac_prev=exec_prefix ;;
12622347Spst  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
12722347Spst  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
12822347Spst  | --exec=* | --exe=* | --ex=*)
12922347Spst    exec_prefix="$ac_optarg" ;;
13022347Spst
13122347Spst  -gas | --gas | --ga | --g)
13222347Spst    # Obsolete; use --with-gas.
13322347Spst    with_gas=yes ;;
13422347Spst
13522347Spst  -help | --help | --hel | --he)
13622347Spst    # Omit some internal or obsolete options to make the list less imposing.
13722347Spst    # This message is too long to be a string in the A/UX 3.1 sh.
13822347Spst    cat << EOF
13922347SpstUsage: configure [options] [host]
14022347SpstOptions: [defaults in brackets after descriptions]
14122347SpstConfiguration:
14222347Spst  --cache-file=FILE       cache test results in FILE
14322347Spst  --help                  print this message
14422347Spst  --no-create             do not create output files
14522347Spst  --quiet, --silent       do not print \`checking...' messages
14622347Spst  --version               print the version of autoconf that created configure
14722347SpstDirectory and file names:
14822347Spst  --prefix=PREFIX         install architecture-independent files in PREFIX
14922347Spst                          [$ac_default_prefix]
15022347Spst  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
15122347Spst                          [same as prefix]
15222347Spst  --bindir=DIR            user executables in DIR [EPREFIX/bin]
15322347Spst  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
15422347Spst  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
15522347Spst  --datadir=DIR           read-only architecture-independent data in DIR
15622347Spst                          [PREFIX/share]
15722347Spst  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
15822347Spst  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
15922347Spst                          [PREFIX/com]
16022347Spst  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
16122347Spst  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
16222347Spst  --includedir=DIR        C header files in DIR [PREFIX/include]
16322347Spst  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
16422347Spst  --infodir=DIR           info documentation in DIR [PREFIX/info]
16522347Spst  --mandir=DIR            man documentation in DIR [PREFIX/man]
16622347Spst  --srcdir=DIR            find the sources in DIR [configure dir or ..]
16722347Spst  --program-prefix=PREFIX prepend PREFIX to installed program names
16822347Spst  --program-suffix=SUFFIX append SUFFIX to installed program names
16922347Spst  --program-transform-name=PROGRAM
17022347Spst                          run sed PROGRAM on installed program names
17122347SpstEOF
17222347Spst    cat << EOF
17322347SpstHost type:
17422347Spst  --build=BUILD           configure for building on BUILD [BUILD=HOST]
17522347Spst  --host=HOST             configure for HOST [guessed]
17622347Spst  --target=TARGET         configure for TARGET [TARGET=HOST]
17722347SpstFeatures and packages:
17822347Spst  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
17922347Spst  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
18022347Spst  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
18122347Spst  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
18222347Spst  --x-includes=DIR        X include files are in DIR
18322347Spst  --x-libraries=DIR       X library files are in DIR
18422347SpstEOF
18522347Spst    if test -n "$ac_help"; then
18622347Spst      echo "--enable and --with options recognized:$ac_help"
18722347Spst    fi
18822347Spst    exit 0 ;;
18922347Spst
19022347Spst  -host | --host | --hos | --ho)
19122347Spst    ac_prev=host ;;
19222347Spst  -host=* | --host=* | --hos=* | --ho=*)
19322347Spst    host="$ac_optarg" ;;
19422347Spst
19522347Spst  -includedir | --includedir | --includedi | --included | --include \
19622347Spst  | --includ | --inclu | --incl | --inc)
19722347Spst    ac_prev=includedir ;;
19822347Spst  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
19922347Spst  | --includ=* | --inclu=* | --incl=* | --inc=*)
20022347Spst    includedir="$ac_optarg" ;;
20122347Spst
20222347Spst  -infodir | --infodir | --infodi | --infod | --info | --inf)
20322347Spst    ac_prev=infodir ;;
20422347Spst  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
20522347Spst    infodir="$ac_optarg" ;;
20622347Spst
20722347Spst  -libdir | --libdir | --libdi | --libd)
20822347Spst    ac_prev=libdir ;;
20922347Spst  -libdir=* | --libdir=* | --libdi=* | --libd=*)
21022347Spst    libdir="$ac_optarg" ;;
21122347Spst
21222347Spst  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
21322347Spst  | --libexe | --libex | --libe)
21422347Spst    ac_prev=libexecdir ;;
21522347Spst  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
21622347Spst  | --libexe=* | --libex=* | --libe=*)
21722347Spst    libexecdir="$ac_optarg" ;;
21822347Spst
21922347Spst  -localstatedir | --localstatedir | --localstatedi | --localstated \
22022347Spst  | --localstate | --localstat | --localsta | --localst \
22122347Spst  | --locals | --local | --loca | --loc | --lo)
22222347Spst    ac_prev=localstatedir ;;
22322347Spst  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
22422347Spst  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
22522347Spst  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
22622347Spst    localstatedir="$ac_optarg" ;;
22722347Spst
22822347Spst  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
22922347Spst    ac_prev=mandir ;;
23022347Spst  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
23122347Spst    mandir="$ac_optarg" ;;
23222347Spst
23322347Spst  -nfp | --nfp | --nf)
23422347Spst    # Obsolete; use --without-fp.
23522347Spst    with_fp=no ;;
23622347Spst
23722347Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
23822347Spst  | --no-cr | --no-c)
23922347Spst    no_create=yes ;;
24022347Spst
24122347Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
24222347Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
24322347Spst    no_recursion=yes ;;
24422347Spst
24522347Spst  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
24622347Spst  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
24722347Spst  | --oldin | --oldi | --old | --ol | --o)
24822347Spst    ac_prev=oldincludedir ;;
24922347Spst  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
25022347Spst  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
25122347Spst  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
25222347Spst    oldincludedir="$ac_optarg" ;;
25322347Spst
25422347Spst  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25522347Spst    ac_prev=prefix ;;
25622347Spst  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25722347Spst    prefix="$ac_optarg" ;;
25822347Spst
25922347Spst  -program-prefix | --program-prefix | --program-prefi | --program-pref \
26022347Spst  | --program-pre | --program-pr | --program-p)
26122347Spst    ac_prev=program_prefix ;;
26222347Spst  -program-prefix=* | --program-prefix=* | --program-prefi=* \
26322347Spst  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
26422347Spst    program_prefix="$ac_optarg" ;;
26522347Spst
26622347Spst  -program-suffix | --program-suffix | --program-suffi | --program-suff \
26722347Spst  | --program-suf | --program-su | --program-s)
26822347Spst    ac_prev=program_suffix ;;
26922347Spst  -program-suffix=* | --program-suffix=* | --program-suffi=* \
27022347Spst  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
27122347Spst    program_suffix="$ac_optarg" ;;
27222347Spst
27322347Spst  -program-transform-name | --program-transform-name \
27422347Spst  | --program-transform-nam | --program-transform-na \
27522347Spst  | --program-transform-n | --program-transform- \
27622347Spst  | --program-transform | --program-transfor \
27722347Spst  | --program-transfo | --program-transf \
27822347Spst  | --program-trans | --program-tran \
27922347Spst  | --progr-tra | --program-tr | --program-t)
28022347Spst    ac_prev=program_transform_name ;;
28122347Spst  -program-transform-name=* | --program-transform-name=* \
28222347Spst  | --program-transform-nam=* | --program-transform-na=* \
28322347Spst  | --program-transform-n=* | --program-transform-=* \
28422347Spst  | --program-transform=* | --program-transfor=* \
28522347Spst  | --program-transfo=* | --program-transf=* \
28622347Spst  | --program-trans=* | --program-tran=* \
28722347Spst  | --progr-tra=* | --program-tr=* | --program-t=*)
28822347Spst    program_transform_name="$ac_optarg" ;;
28922347Spst
29022347Spst  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29122347Spst  | -silent | --silent | --silen | --sile | --sil)
29222347Spst    silent=yes ;;
29322347Spst
29422347Spst  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
29522347Spst    ac_prev=sbindir ;;
29622347Spst  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
29722347Spst  | --sbi=* | --sb=*)
29822347Spst    sbindir="$ac_optarg" ;;
29922347Spst
30022347Spst  -sharedstatedir | --sharedstatedir | --sharedstatedi \
30122347Spst  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
30222347Spst  | --sharedst | --shareds | --shared | --share | --shar \
30322347Spst  | --sha | --sh)
30422347Spst    ac_prev=sharedstatedir ;;
30522347Spst  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
30622347Spst  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
30722347Spst  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
30822347Spst  | --sha=* | --sh=*)
30922347Spst    sharedstatedir="$ac_optarg" ;;
31022347Spst
31122347Spst  -site | --site | --sit)
31222347Spst    ac_prev=site ;;
31322347Spst  -site=* | --site=* | --sit=*)
31422347Spst    site="$ac_optarg" ;;
31522347Spst
31622347Spst  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31722347Spst    ac_prev=srcdir ;;
31822347Spst  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31922347Spst    srcdir="$ac_optarg" ;;
32022347Spst
32122347Spst  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
32222347Spst  | --syscon | --sysco | --sysc | --sys | --sy)
32322347Spst    ac_prev=sysconfdir ;;
32422347Spst  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
32522347Spst  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
32622347Spst    sysconfdir="$ac_optarg" ;;
32722347Spst
32822347Spst  -target | --target | --targe | --targ | --tar | --ta | --t)
32922347Spst    ac_prev=target ;;
33022347Spst  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
33122347Spst    target="$ac_optarg" ;;
33222347Spst
33322347Spst  -v | -verbose | --verbose | --verbos | --verbo | --verb)
33422347Spst    verbose=yes ;;
33522347Spst
33622347Spst  -version | --version | --versio | --versi | --vers)
33722347Spst    echo "configure generated by autoconf version 2.10"
33822347Spst    exit 0 ;;
33922347Spst
34022347Spst  -with-* | --with-*)
34122347Spst    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
34222347Spst    # Reject names that are not valid shell variable names.
34322347Spst    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
34422347Spst      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
34522347Spst    fi
34622347Spst    ac_package=`echo $ac_package| sed 's/-/_/g'`
34722347Spst    case "$ac_option" in
34822347Spst      *=*) ;;
34922347Spst      *) ac_optarg=yes ;;
35022347Spst    esac
35122347Spst    eval "with_${ac_package}='$ac_optarg'" ;;
35222347Spst
35322347Spst  -without-* | --without-*)
35422347Spst    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
35522347Spst    # Reject names that are not valid shell variable names.
35622347Spst    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
35722347Spst      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
35822347Spst    fi
35922347Spst    ac_package=`echo $ac_package| sed 's/-/_/g'`
36022347Spst    eval "with_${ac_package}=no" ;;
36122347Spst
36222347Spst  --x)
36322347Spst    # Obsolete; use --with-x.
36422347Spst    with_x=yes ;;
36522347Spst
36622347Spst  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
36722347Spst  | --x-incl | --x-inc | --x-in | --x-i)
36822347Spst    ac_prev=x_includes ;;
36922347Spst  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
37022347Spst  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
37122347Spst    x_includes="$ac_optarg" ;;
37222347Spst
37322347Spst  -x-libraries | --x-libraries | --x-librarie | --x-librari \
37422347Spst  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
37522347Spst    ac_prev=x_libraries ;;
37622347Spst  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
37722347Spst  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
37822347Spst    x_libraries="$ac_optarg" ;;
37922347Spst
38022347Spst  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
38122347Spst    ;;
38222347Spst
38322347Spst  *)
38422347Spst    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
38522347Spst      echo "configure: warning: $ac_option: invalid host type" 1>&2
38622347Spst    fi
38722347Spst    if test "x$nonopt" != xNONE; then
38822347Spst      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
38922347Spst    fi
39022347Spst    nonopt="$ac_option"
39122347Spst    ;;
39222347Spst
39322347Spst  esac
39422347Spstdone
39522347Spst
39622347Spstif test -n "$ac_prev"; then
39722347Spst  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
39822347Spstfi
39922347Spst
40022347Spsttrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
40122347Spst
40222347Spst# File descriptor usage:
40322347Spst# 0 standard input
40422347Spst# 1 file creation
40522347Spst# 2 errors and warnings
40622347Spst# 3 some systems may open it to /dev/tty
40722347Spst# 4 used on the Kubota Titan
40822347Spst# 6 checking for... messages and results
40922347Spst# 5 compiler messages saved in config.log
41022347Spstif test "$silent" = yes; then
41122347Spst  exec 6>/dev/null
41222347Spstelse
41322347Spst  exec 6>&1
41422347Spstfi
41522347Spstexec 5>./config.log
41622347Spst
41722347Spstecho "\
41822347SpstThis file contains any messages produced by compilers while
41922347Spstrunning configure, to aid debugging if configure makes a mistake.
42022347Spst" 1>&5
42122347Spst
42222347Spst# Strip out --no-create and --no-recursion so they do not pile up.
42322347Spst# Also quote any args containing shell metacharacters.
42422347Spstac_configure_args=
42522347Spstfor ac_arg
42622347Spstdo
42722347Spst  case "$ac_arg" in
42822347Spst  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42922347Spst  | --no-cr | --no-c) ;;
43022347Spst  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
43122347Spst  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
43222347Spst  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
43322347Spst  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
43422347Spst  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
43522347Spst  esac
43622347Spstdone
43722347Spst
43822347Spst# NLS nuisances.
43922347Spst# Only set LANG and LC_ALL to C if already set.
44022347Spst# These must not be set unconditionally because not all systems understand
44122347Spst# e.g. LANG=C (notably SCO).
44222347Spstif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
44322347Spstif test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
44422347Spst
44522347Spst# confdefs.h avoids OS command line length limits that DEFS can exceed.
44622347Spstrm -rf conftest* confdefs.h
44722347Spst# AIX cpp loses on an empty file, so make sure it contains at least a newline.
44822347Spstecho > confdefs.h
44922347Spst
45022347Spst# A filename unique to this package, relative to the directory that
45122347Spst# configure is in, which we can look for to find out if srcdir is correct.
45222347Spstac_unique_file=README
45322347Spst
45422347Spst# Find the source files, if location was not specified.
45522347Spstif test -z "$srcdir"; then
45622347Spst  ac_srcdir_defaulted=yes
45722347Spst  # Try the directory containing this script, then its parent.
45822347Spst  ac_prog=$0
45922347Spst  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
46022347Spst  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
46122347Spst  srcdir=$ac_confdir
46222347Spst  if test ! -r $srcdir/$ac_unique_file; then
46322347Spst    srcdir=..
46422347Spst  fi
46522347Spstelse
46622347Spst  ac_srcdir_defaulted=no
46722347Spstfi
46822347Spstif test ! -r $srcdir/$ac_unique_file; then
46922347Spst  if test "$ac_srcdir_defaulted" = yes; then
47022347Spst    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
47122347Spst  else
47222347Spst    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
47322347Spst  fi
47422347Spstfi
47522347Spstsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
47622347Spst
47722347Spst# Prefer explicitly selected file to automatically selected ones.
47822347Spstif test -z "$CONFIG_SITE"; then
47922347Spst  if test "x$prefix" != xNONE; then
48022347Spst    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
48122347Spst  else
48222347Spst    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
48322347Spst  fi
48422347Spstfi
48522347Spstfor ac_site_file in $CONFIG_SITE; do
48622347Spst  if test -r "$ac_site_file"; then
48722347Spst    echo "loading site script $ac_site_file"
48822347Spst    . "$ac_site_file"
48922347Spst  fi
49022347Spstdone
49122347Spst
49222347Spstif test -r "$cache_file"; then
49322347Spst  echo "loading cache $cache_file"
49422347Spst  . $cache_file
49522347Spstelse
49622347Spst  echo "creating cache $cache_file"
49722347Spst  > $cache_file
49822347Spstfi
49922347Spst
50022347Spstac_ext=c
50122347Spst# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
50222347Spstac_cpp='$CPP $CPPFLAGS'
50322347Spstac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
50422347Spstac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
50522347Spst
50622347Spstif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
50722347Spst  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
50822347Spst  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
50922347Spst    ac_n= ac_c='
51022347Spst' ac_t='	'
51122347Spst  else
51222347Spst    ac_n=-n ac_c= ac_t=
51322347Spst  fi
51422347Spstelse
51522347Spst  ac_n= ac_c='\c' ac_t=
51622347Spstfi
51722347Spst
51822347Spst
51922347Spst
52022347Spst# Check whether --enable-access-file or --disable-access-file was given.
52122347Spstif test "${enable_access_file+set}" = set; then
52222347Spst  enableval="$enable_access_file"
52322347Spst  cat >> confdefs.h <<EOF
52422347Spst#define PATH_ACCESS_FILE "$enable_access_file"
52522347SpstEOF
52622347Spst echo "Using the access file in $enable_access_file -- don't say we didn't warn you!"
52722347Spstfi
52822347Spst
52922347Spst# Check whether --enable-anonymous-ftp or --disable-anonymous-ftp was given.
53022347Spstif test "${enable_anonymous_ftp+set}" = set; then
53122347Spst  enableval="$enable_anonymous_ftp"
53222347Spst  cat >> confdefs.h <<\EOF
53322347Spst#define DOANONYMOUS 1
53422347SpstEOF
53522347Spst echo "Enabling anonymous FTP support in ftp -- don't say we didn't warn you!"
53622347Spstfi
53722347Spst
53822347Spst
53922347Spst# Extract the first word of "gcc", so it can be a program name with args.
54022347Spstset dummy gcc; ac_word=$2
54122347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
54222347Spstif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
54322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
54422347Spstelse
54522347Spst  if test -n "$CC"; then
54622347Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
54722347Spstelse
54822347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
54922347Spst  for ac_dir in $PATH; do
55022347Spst    test -z "$ac_dir" && ac_dir=.
55122347Spst    if test -f $ac_dir/$ac_word; then
55222347Spst      ac_cv_prog_CC="gcc"
55322347Spst      break
55422347Spst    fi
55522347Spst  done
55622347Spst  IFS="$ac_save_ifs"
55722347Spstfi
55822347Spstfi
55922347SpstCC="$ac_cv_prog_CC"
56022347Spstif test -n "$CC"; then
56122347Spst  echo "$ac_t""$CC" 1>&6
56222347Spstelse
56322347Spst  echo "$ac_t""no" 1>&6
56422347Spstfi
56522347Spst
56622347Spstif test -z "$CC"; then
56722347Spst  # Extract the first word of "cc", so it can be a program name with args.
56822347Spstset dummy cc; ac_word=$2
56922347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
57022347Spstif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
57122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
57222347Spstelse
57322347Spst  if test -n "$CC"; then
57422347Spst  ac_cv_prog_CC="$CC" # Let the user override the test.
57522347Spstelse
57622347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
57722347Spst  ac_prog_rejected=no
57822347Spst  for ac_dir in $PATH; do
57922347Spst    test -z "$ac_dir" && ac_dir=.
58022347Spst    if test -f $ac_dir/$ac_word; then
58122347Spst      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
58222347Spst        ac_prog_rejected=yes
58322347Spst	continue
58422347Spst      fi
58522347Spst      ac_cv_prog_CC="cc"
58622347Spst      break
58722347Spst    fi
58822347Spst  done
58922347Spst  IFS="$ac_save_ifs"
59022347Spstif test $ac_prog_rejected = yes; then
59122347Spst  # We found a bogon in the path, so make sure we never use it.
59222347Spst  set dummy $ac_cv_prog_CC
59322347Spst  shift
59422347Spst  if test $# -gt 0; then
59522347Spst    # We chose a different compiler from the bogus one.
59622347Spst    # However, it has the same basename, so the bogon will be chosen
59722347Spst    # first if we set CC to just the basename; use the full file name.
59822347Spst    shift
59922347Spst    set dummy "$ac_dir/$ac_word" "$@"
60022347Spst    shift
60122347Spst    ac_cv_prog_CC="$@"
60222347Spst  fi
60322347Spstfi
60422347Spstfi
60522347Spstfi
60622347SpstCC="$ac_cv_prog_CC"
60722347Spstif test -n "$CC"; then
60822347Spst  echo "$ac_t""$CC" 1>&6
60922347Spstelse
61022347Spst  echo "$ac_t""no" 1>&6
61122347Spstfi
61222347Spst
61322347Spst  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
61422347Spstfi
61522347Spst
61622347Spstecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
61722347Spstif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
61822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
61922347Spstelse
62022347Spst  cat > conftest.c <<EOF
62122347Spst#ifdef __GNUC__
62222347Spst  yes;
62322347Spst#endif
62422347SpstEOF
62522347Spstif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
62622347Spst  ac_cv_prog_gcc=yes
62722347Spstelse
62822347Spst  ac_cv_prog_gcc=no
62922347Spstfi
63022347Spstfi
63122347Spst
63222347Spstecho "$ac_t""$ac_cv_prog_gcc" 1>&6
63322347Spstif test $ac_cv_prog_gcc = yes; then
63422347Spst  GCC=yes
63522347Spst  if test "${CFLAGS+set}" != set; then
63622347Spst    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
63722347Spstif eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
63822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
63922347Spstelse
64022347Spst  echo 'void f(){}' > conftest.c
64122347Spstif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
64222347Spst  ac_cv_prog_gcc_g=yes
64322347Spstelse
64422347Spst  ac_cv_prog_gcc_g=no
64522347Spstfi
64622347Spstrm -f conftest*
64722347Spst
64822347Spstfi
64922347Spst
65022347Spstecho "$ac_t""$ac_cv_prog_gcc_g" 1>&6
65122347Spst    if test $ac_cv_prog_gcc_g = yes; then
65222347Spst      CFLAGS="-g -O"
65322347Spst    else
65422347Spst      CFLAGS="-O"
65522347Spst    fi
65622347Spst  fi
65722347Spstelse
65822347Spst  GCC=
65922347Spst  test "${CFLAGS+set}" = set || CFLAGS="-g"
66022347Spstfi
66122347Spst
66222347Spstecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
66322347Spst# On Suns, sometimes $CPP names a directory.
66422347Spstif test -n "$CPP" && test -d "$CPP"; then
66522347Spst  CPP=
66622347Spstfi
66722347Spstif test -z "$CPP"; then
66822347Spstif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
66922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
67022347Spstelse
67122347Spst    # This must be in double quotes, not single quotes, because CPP may get
67222347Spst  # substituted into the Makefile and "${CC-cc}" will confuse make.
67322347Spst  CPP="${CC-cc} -E"
67422347Spst  # On the NeXT, cc -E runs the code through the compiler's parser,
67522347Spst  # not just through cpp.
67622347Spst  cat > conftest.$ac_ext <<EOF
67722347Spst#line 678 "configure"
67822347Spst#include "confdefs.h"
67922347Spst#include <assert.h>
68022347SpstSyntax Error
68122347SpstEOF
68222347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
68322347Spst{ (eval echo configure:684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
68422347Spstac_err=`grep -v '^ *+' conftest.out`
68522347Spstif test -z "$ac_err"; then
68622347Spst  :
68722347Spstelse
68822347Spst  echo "$ac_err" >&5
68922347Spst  rm -rf conftest*
69022347Spst  CPP="${CC-cc} -E -traditional-cpp"
69122347Spst  cat > conftest.$ac_ext <<EOF
69222347Spst#line 693 "configure"
69322347Spst#include "confdefs.h"
69422347Spst#include <assert.h>
69522347SpstSyntax Error
69622347SpstEOF
69722347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69822347Spst{ (eval echo configure:699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
69922347Spstac_err=`grep -v '^ *+' conftest.out`
70022347Spstif test -z "$ac_err"; then
70122347Spst  :
70222347Spstelse
70322347Spst  echo "$ac_err" >&5
70422347Spst  rm -rf conftest*
70522347Spst  CPP=/lib/cpp
70622347Spstfi
70722347Spstrm -f conftest*
70822347Spstfi
70922347Spstrm -f conftest*
71022347Spst  ac_cv_prog_CPP="$CPP"
71122347Spstfi
71222347Spst  CPP="$ac_cv_prog_CPP"
71322347Spstelse
71422347Spst  ac_cv_prog_CPP="$CPP"
71522347Spstfi
71622347Spstecho "$ac_t""$CPP" 1>&6
71722347Spst
71822347Spstecho $ac_n "checking whether ln -s works""... $ac_c" 1>&6
71922347Spstif eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
72022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
72122347Spstelse
72222347Spst  rm -f conftestdata
72322347Spstif ln -s X conftestdata 2>/dev/null
72422347Spstthen
72522347Spst  rm -f conftestdata
72622347Spst  ac_cv_prog_LN_S="ln -s"
72722347Spstelse
72822347Spst  ac_cv_prog_LN_S=ln
72922347Spstfi
73022347Spstfi
73122347SpstLN_S="$ac_cv_prog_LN_S"
73222347Spstif test "$ac_cv_prog_LN_S" = "ln -s"; then
73322347Spst  echo "$ac_t""yes" 1>&6
73422347Spstelse
73522347Spst  echo "$ac_t""no" 1>&6
73622347Spstfi
73722347Spst
73822347Spst# Extract the first word of "ranlib", so it can be a program name with args.
73922347Spstset dummy ranlib; ac_word=$2
74022347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
74122347Spstif eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
74222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
74322347Spstelse
74422347Spst  if test -n "$RANLIB"; then
74522347Spst  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
74622347Spstelse
74722347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
74822347Spst  for ac_dir in $PATH; do
74922347Spst    test -z "$ac_dir" && ac_dir=.
75022347Spst    if test -f $ac_dir/$ac_word; then
75122347Spst      ac_cv_prog_RANLIB="ranlib"
75222347Spst      break
75322347Spst    fi
75422347Spst  done
75522347Spst  IFS="$ac_save_ifs"
75622347Spst  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
75722347Spstfi
75822347Spstfi
75922347SpstRANLIB="$ac_cv_prog_RANLIB"
76022347Spstif test -n "$RANLIB"; then
76122347Spst  echo "$ac_t""$RANLIB" 1>&6
76222347Spstelse
76322347Spst  echo "$ac_t""no" 1>&6
76422347Spstfi
76522347Spst
76622347Spstfor ac_prog in 'bison -y' byacc
76722347Spstdo
76822347Spst# Extract the first word of "$ac_prog", so it can be a program name with args.
76922347Spstset dummy $ac_prog; ac_word=$2
77022347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
77122347Spstif eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
77222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
77322347Spstelse
77422347Spst  if test -n "$YACC"; then
77522347Spst  ac_cv_prog_YACC="$YACC" # Let the user override the test.
77622347Spstelse
77722347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
77822347Spst  for ac_dir in $PATH; do
77922347Spst    test -z "$ac_dir" && ac_dir=.
78022347Spst    if test -f $ac_dir/$ac_word; then
78122347Spst      ac_cv_prog_YACC="$ac_prog"
78222347Spst      break
78322347Spst    fi
78422347Spst  done
78522347Spst  IFS="$ac_save_ifs"
78622347Spstfi
78722347Spstfi
78822347SpstYACC="$ac_cv_prog_YACC"
78922347Spstif test -n "$YACC"; then
79022347Spst  echo "$ac_t""$YACC" 1>&6
79122347Spstelse
79222347Spst  echo "$ac_t""no" 1>&6
79322347Spstfi
79422347Spst
79522347Spsttest -n "$YACC" && break
79622347Spstdone
79722347Spsttest -n "$YACC" || YACC="yacc"
79822347Spst
79922347Spst
80022347Spstecho $ac_n "checking for AIX""... $ac_c" 1>&6
80122347Spstcat > conftest.$ac_ext <<EOF
80222347Spst#line 803 "configure"
80322347Spst#include "confdefs.h"
80422347Spst#ifdef _AIX
80522347Spst  yes
80622347Spst#endif
80722347Spst
80822347SpstEOF
80922347Spstif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81022347Spst  egrep "yes" >/dev/null 2>&1; then
81122347Spst  rm -rf conftest*
81222347Spst  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
81322347Spst#define _ALL_SOURCE 1
81422347SpstEOF
81522347Spst
81622347Spstelse
81722347Spst  rm -rf conftest*
81822347Spst  echo "$ac_t""no" 1>&6
81922347Spstfi
82022347Spstrm -f conftest*
82122347Spst
82222347Spst
82322347Spstecho $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
82422347Spstif test -d /etc/conf/kconfig.d &&
82522347Spst  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
82622347Spstthen
82722347Spst  echo "$ac_t""yes" 1>&6
82822347Spst  ISC=yes # If later tests want to check for ISC.
82922347Spst  cat >> confdefs.h <<\EOF
83022347Spst#define _POSIX_SOURCE 1
83122347SpstEOF
83222347Spst
83322347Spst  if test "$GCC" = yes; then
83422347Spst    CC="$CC -posix"
83522347Spst  else
83622347Spst    CC="$CC -Xp"
83722347Spst  fi
83822347Spstelse
83922347Spst  echo "$ac_t""no" 1>&6
84022347Spst  ISC=
84122347Spstfi
84222347Spst
84322347Spstac_safe=`echo "minix/config.h" | tr './\055' '___'`
84422347Spstecho $ac_n "checking for minix/config.h""... $ac_c" 1>&6
84522347Spstif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
84622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
84722347Spstelse
84822347Spst  cat > conftest.$ac_ext <<EOF
84922347Spst#line 850 "configure"
85022347Spst#include "confdefs.h"
85122347Spst#include <minix/config.h>
85222347SpstEOF
85322347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
85422347Spst{ (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
85522347Spstac_err=`grep -v '^ *+' conftest.out`
85622347Spstif test -z "$ac_err"; then
85722347Spst  rm -rf conftest*
85822347Spst  eval "ac_cv_header_$ac_safe=yes"
85922347Spstelse
86022347Spst  echo "$ac_err" >&5
86122347Spst  rm -rf conftest*
86222347Spst  eval "ac_cv_header_$ac_safe=no"
86322347Spstfi
86422347Spstrm -f conftest*
86522347Spstfi
86622347Spstif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
86722347Spst  echo "$ac_t""yes" 1>&6
86822347Spst  MINIX=yes
86922347Spstelse
87022347Spst  echo "$ac_t""no" 1>&6
87122347SpstMINIX=
87222347Spstfi
87322347Spst
87422347Spstif test "$MINIX" = yes; then
87522347Spst  cat >> confdefs.h <<\EOF
87622347Spst#define _POSIX_SOURCE 1
87722347SpstEOF
87822347Spst
87922347Spst  cat >> confdefs.h <<\EOF
88022347Spst#define _POSIX_1_SOURCE 2
88122347SpstEOF
88222347Spst
88322347Spst  cat >> confdefs.h <<\EOF
88422347Spst#define _MINIX 1
88522347SpstEOF
88622347Spst
88722347Spstfi
88822347Spst
88922347Spst
89022347Spst# If we cannot run a trivial program, we must be cross compiling.
89122347Spstecho $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
89222347Spstif eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
89322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
89422347Spstelse
89522347Spst  if test "$cross_compiling" = yes; then
89622347Spst  ac_cv_c_cross=yes
89722347Spstelse
89822347Spstcat > conftest.$ac_ext <<EOF
89922347Spst#line 900 "configure"
90022347Spst#include "confdefs.h"
90122347Spstmain(){return(0);}
90222347SpstEOF
90322347Spst{ (eval echo configure:904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
90422347Spstif test -s conftest && (./conftest; exit) 2>/dev/null; then
90522347Spst  ac_cv_c_cross=no
90622347Spstelse
90722347Spst  ac_cv_c_cross=yes
90822347Spstfi
90922347Spstfi
91022347Spstrm -fr conftest*
91122347Spstfi
91222347Spst
91322347Spstecho "$ac_t""$ac_cv_c_cross" 1>&6
91422347Spstcross_compiling=$ac_cv_c_cross
91522347Spst
91622347Spst
91722347Spst
91822347Spst# Extract the first word of "chown", so it can be a program name with args.
91922347Spstset dummy chown; ac_word=$2
92022347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
92122347Spstif eval "test \"`echo '$''{'ac_cv_path_CHOWN'+set}'`\" = set"; then
92222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
92322347Spstelse
92422347Spst  case "$CHOWN" in
92522347Spst  /*)
92622347Spst  ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
92722347Spst  ;;
92822347Spst  *)
92922347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
93022347Spst  for ac_dir in /usr/bin /bin /usr/sbin /sbin /usr/etc /etc; do
93122347Spst    test -z "$ac_dir" && ac_dir=.
93222347Spst    if test -f $ac_dir/$ac_word; then
93322347Spst      ac_cv_path_CHOWN="$ac_dir/$ac_word"
93422347Spst      break
93522347Spst    fi
93622347Spst  done
93722347Spst  IFS="$ac_save_ifs"
93822347Spst  test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/bin/chown"
93922347Spst  ;;
94022347Spstesac
94122347Spstfi
94222347SpstCHOWN="$ac_cv_path_CHOWN"
94322347Spstif test -n "$CHOWN"; then
94422347Spst  echo "$ac_t""$CHOWN" 1>&6
94522347Spstelse
94622347Spst  echo "$ac_t""no" 1>&6
94722347Spstfi
94822347Spst
94922347Spst
95022347Spst# Extract the first word of "su", so it can be a program name with args.
95122347Spstset dummy su; ac_word=$2
95222347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
95322347Spstif eval "test \"`echo '$''{'ac_cv_path_SU'+set}'`\" = set"; then
95422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
95522347Spstelse
95622347Spst  case "$SU" in
95722347Spst  /*)
95822347Spst  ac_cv_path_SU="$SU" # Let the user override the test with a path.
95922347Spst  ;;
96022347Spst  *)
96122347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96222347Spst  for ac_dir in /usr/bin /bin; do
96322347Spst    test -z "$ac_dir" && ac_dir=.
96422347Spst    if test -f $ac_dir/$ac_word; then
96522347Spst      ac_cv_path_SU="$ac_dir/$ac_word"
96622347Spst      break
96722347Spst    fi
96822347Spst  done
96922347Spst  IFS="$ac_save_ifs"
97022347Spst  test -z "$ac_cv_path_SU" && ac_cv_path_SU="/bin/su"
97122347Spst  ;;
97222347Spstesac
97322347Spstfi
97422347SpstSU="$ac_cv_path_SU"
97522347Spstif test -n "$SU"; then
97622347Spst  echo "$ac_t""$SU" 1>&6
97722347Spstelse
97822347Spst  echo "$ac_t""no" 1>&6
97922347Spstfi
98022347Spst
98122347Spst# Extract the first word of "su", so it can be a program name with args.
98222347Spstset dummy su; ac_word=$2
98322347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
98422347Spstif eval "test \"`echo '$''{'ac_cv_path_ALT_SU'+set}'`\" = set"; then
98522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
98622347Spstelse
98722347Spst  case "$ALT_SU" in
98822347Spst  /*)
98922347Spst  ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a path.
99022347Spst  ;;
99122347Spst  *)
99222347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
99322347Spst  for ac_dir in /usr/sbin /sbin; do
99422347Spst    test -z "$ac_dir" && ac_dir=.
99522347Spst    if test -f $ac_dir/$ac_word; then
99622347Spst      ac_cv_path_ALT_SU="$ac_dir/$ac_word"
99722347Spst      break
99822347Spst    fi
99922347Spst  done
100022347Spst  IFS="$ac_save_ifs"
100122347Spst  ;;
100222347Spstesac
100322347Spstfi
100422347SpstALT_SU="$ac_cv_path_ALT_SU"
100522347Spstif test -n "$ALT_SU"; then
100622347Spst  echo "$ac_t""$ALT_SU" 1>&6
100722347Spstelse
100822347Spst  echo "$ac_t""no" 1>&6
100922347Spstfi
101022347Spst
101122347Spst
101222347Spst# Extract the first word of "scheme", so it can be a program name with args.
101322347Spstset dummy scheme; ac_word=$2
101422347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
101522347Spstif eval "test \"`echo '$''{'ac_cv_path_SCHEME'+set}'`\" = set"; then
101622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
101722347Spstelse
101822347Spst  case "$SCHEME" in
101922347Spst  /*)
102022347Spst  ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a path.
102122347Spst  ;;
102222347Spst  *)
102322347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
102422347Spst  for ac_dir in /usr/lib/iaf/scheme; do
102522347Spst    test -z "$ac_dir" && ac_dir=.
102622347Spst    if test -f $ac_dir/$ac_word; then
102722347Spst      ac_cv_path_SCHEME="$ac_dir/$ac_word"
102822347Spst      break
102922347Spst    fi
103022347Spst  done
103122347Spst  IFS="$ac_save_ifs"
103222347Spst  ;;
103322347Spstesac
103422347Spstfi
103522347SpstSCHEME="$ac_cv_path_SCHEME"
103622347Spstif test -n "$SCHEME"; then
103722347Spst  echo "$ac_t""$SCHEME" 1>&6
103822347Spstelse
103922347Spst  echo "$ac_t""no" 1>&6
104022347Spstfi
104122347Spst
104222347Spst# Extract the first word of "login", so it can be a program name with args.
104322347Spstset dummy login; ac_word=$2
104422347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
104522347Spstif eval "test \"`echo '$''{'ac_cv_path_LOGIN'+set}'`\" = set"; then
104622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
104722347Spstelse
104822347Spst  case "$LOGIN" in
104922347Spst  /*)
105022347Spst  ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a path.
105122347Spst  ;;
105222347Spst  *)
105322347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
105422347Spst  for ac_dir in /usr/bin /bin; do
105522347Spst    test -z "$ac_dir" && ac_dir=.
105622347Spst    if test -f $ac_dir/$ac_word; then
105722347Spst      ac_cv_path_LOGIN="$ac_dir/$ac_word"
105822347Spst      break
105922347Spst    fi
106022347Spst  done
106122347Spst  IFS="$ac_save_ifs"
106222347Spst  test -z "$ac_cv_path_LOGIN" && ac_cv_path_LOGIN="/bin/login"
106322347Spst  ;;
106422347Spstesac
106522347Spstfi
106622347SpstLOGIN="$ac_cv_path_LOGIN"
106722347Spstif test -n "$LOGIN"; then
106822347Spst  echo "$ac_t""$LOGIN" 1>&6
106922347Spstelse
107022347Spst  echo "$ac_t""no" 1>&6
107122347Spstfi
107222347Spst
107322347Spst
107422347Spstif test ! -z "$SCHEME";
107522347Spstthen
107622347Spst	LOGIN="$SCHEME";
107722347Spstfi
107822347Spst
107922347Spst# Extract the first word of "ftpd", so it can be a program name with args.
108022347Spstset dummy ftpd; ac_word=$2
108122347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
108222347Spstif eval "test \"`echo '$''{'ac_cv_path_FTPD'+set}'`\" = set"; then
108322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
108422347Spstelse
108522347Spst  case "$FTPD" in
108622347Spst  /*)
108722347Spst  ac_cv_path_FTPD="$FTPD" # Let the user override the test with a path.
108822347Spst  ;;
108922347Spst  *)
109022347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
109122347Spst  for ac_dir in /usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin; do
109222347Spst    test -z "$ac_dir" && ac_dir=.
109322347Spst    if test -f $ac_dir/$ac_word; then
109422347Spst      ac_cv_path_FTPD="$ac_dir/$ac_word"
109522347Spst      break
109622347Spst    fi
109722347Spst  done
109822347Spst  IFS="$ac_save_ifs"
109922347Spst  ;;
110022347Spstesac
110122347Spstfi
110222347SpstFTPD="$ac_cv_path_FTPD"
110322347Spstif test -n "$FTPD"; then
110422347Spst  echo "$ac_t""$FTPD" 1>&6
110522347Spstelse
110622347Spst  echo "$ac_t""no" 1>&6
110722347Spstfi
110822347Spst
110922347Spst# Extract the first word of "in.ftpd", so it can be a program name with args.
111022347Spstset dummy in.ftpd; ac_word=$2
111122347Spstecho $ac_n "checking for $ac_word""... $ac_c" 1>&6
111222347Spstif eval "test \"`echo '$''{'ac_cv_path_INFTPD'+set}'`\" = set"; then
111322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
111422347Spstelse
111522347Spst  case "$INFTPD" in
111622347Spst  /*)
111722347Spst  ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a path.
111822347Spst  ;;
111922347Spst  *)
112022347Spst  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
112122347Spst  for ac_dir in /usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin; do
112222347Spst    test -z "$ac_dir" && ac_dir=.
112322347Spst    if test -f $ac_dir/$ac_word; then
112422347Spst      ac_cv_path_INFTPD="$ac_dir/$ac_word"
112522347Spst      break
112622347Spst    fi
112722347Spst  done
112822347Spst  IFS="$ac_save_ifs"
112922347Spst  ;;
113022347Spstesac
113122347Spstfi
113222347SpstINFTPD="$ac_cv_path_INFTPD"
113322347Spstif test -n "$INFTPD"; then
113422347Spst  echo "$ac_t""$INFTPD" 1>&6
113522347Spstelse
113622347Spst  echo "$ac_t""no" 1>&6
113722347Spstfi
113822347Spst
113922347Spst
114022347Spstif test -z "$FTPD"
114122347Spstthen
114222347Spst	if test ! -z "$INFTPD"
114322347Spst	then
114422347Spst		FTPD="$INFTPD"
114522347Spst	fi
114622347Spstfi
114722347Spst
114822347Spstecho $ac_n "checking for default PATH entries""... $ac_c" 1>&6
114922347Spstdefault_path=""
115022347Spstsave_IFS="$IFS"
115122347SpstIFS=" "
115222347Spstfor 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
115322347Spstdo
115422347Spst	IFS=":"
115522347Spst	for j in $PATH
115622347Spst	do
115722347Spst		if test "$i" = "$j"
115822347Spst		then
115922347Spst			if test -d "$i"
116022347Spst			then
116122347Spst				if test -z "$default_path"
116222347Spst				then
116322347Spst					default_path="$i"
116422347Spst				else
116522347Spst					default_path="$default_path:$i"
116622347Spst				fi
116722347Spst			fi
116822347Spst		fi
116922347Spst	done
117022347Spst	IFS=" "
117122347Spstdone
117222347Spstcat >> confdefs.h <<EOF
117322347Spst#define DEFAULT_PATH "$default_path"
117422347SpstEOF
117522347Spst
117622347Spstecho "$ac_t""$default_path" 1>&6
117722347Spst
117822347Spstecho $ac_n "checking for test -e flag""... $ac_c" 1>&6
117922347Spstif sh config.testeflag
118022347Spstthen
118122347Spst	result=yes
118222347Spst	EXISTS="-e"
118322347Spstelse
118422347Spst	result=no
118522347Spst	EXISTS="-f"
118622347Spstfi
118722347Spst
118822347Spstecho "$ac_t""$result" 1>&6
118922347Spst
119022347Spstecho $ac_n "checking for mkdir -p flag""... $ac_c" 1>&6
119122347Spstif test -d config.tmpdir
119222347Spstthen
119322347Spst	rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
119422347Spst	rmdir config.tmpdir/foo >/dev/null 2>/dev/null
119522347Spst	rmdir config.tmpdir >/dev/null 2>/dev/null
119622347Spstfi
119722347Spst
119822347Spstresult=no
119922347Spstif mkdir -p config.tmpdir/foo/bar >/dev/null 2>/dev/null
120022347Spstthen
120122347Spst	if test -d config.tmpdir
120222347Spst	then
120322347Spst		if test -d config.tmpdir/foo
120422347Spst		then
120522347Spst			if test -d config.tmpdir/foo/bar
120622347Spst			then
120722347Spst				result=yes
120822347Spst				rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
120922347Spst			fi
121022347Spst			rmdir config.tmpdir/foo >/dev/null 2>/dev/null
121122347Spst		fi
121222347Spst		rmdir config.tmpdir >/dev/null 2>/dev/null
121322347Spst	fi
121422347Spstfi
121522347Spst
121622347Spstif test "$result" = yes
121722347Spstthen
121822347Spst	MKDIR="mkdir -p"
121922347Spstelse
122022347Spst	MKDIR="mkdir"
122122347Spstfi
122222347Spst
122322347Spstecho "$ac_t""$result" 1>&6
122422347Spst
122522347Spstecho $ac_n "checking for ls group field""... $ac_c" 1>&6
122622347Spstlsg=`/bin/ls -ldg / | wc -w | awk '{print $1}'`;
122722347Spstls=`/bin/ls -ld / | wc -w | awk '{print $1}'`;
122822347Spstresult="no"
122922347Spstif test $ls = 9;
123022347Spstthen
123122347Spst	result="yes"
123222347Spstelse
123322347Spst	if test "$ls" = 8 -a "$lsg" = 9;
123422347Spst	then
123522347Spst		result="yes, with -g"
123622347Spst		cat >> confdefs.h <<\EOF
123722347Spst#define HAVE_LS_G_FLAG 1
123822347SpstEOF
123922347Spst
124022347Spst	fi
124122347Spstfi
124222347Spstecho "$ac_t""$result" 1>&6
124322347Spst
124422347Spstecho $ac_n "checking for /etc/default/login""... $ac_c" 1>&6
124522347Spstif test $EXISTS /etc/default/login
124622347Spstthen
124722347Spst	result=yes
124822347Spst	cat >> confdefs.h <<\EOF
124922347Spst#define HAVE_ETC_DEFAULT_LOGIN 1
125022347SpstEOF
125122347Spst
125222347Spstelse
125322347Spst	result=no
125422347Spstfi
125522347Spstecho "$ac_t""$result" 1>&6
125622347Spst
125722347Spstecho $ac_n "checking for /etc/securetty""... $ac_c" 1>&6
125822347Spstif test $EXISTS /etc/securetty
125922347Spstthen
126022347Spst	result=yes
126122347Spst	cat >> confdefs.h <<\EOF
126222347Spst#define HAVE_SECURETTY 1
126322347SpstEOF
126422347Spst
126522347Spstelse
126622347Spst	result=no
126722347Spstfi
126822347Spstecho "$ac_t""$result" 1>&6
126922347Spst
127022347Spstecho $ac_n "checking for /etc/logindevperm""... $ac_c" 1>&6
127122347Spstif test $EXISTS /etc/logindevperm
127222347Spstthen
127322347Spst	echo "$ac_t""yes" 1>&6
127422347Spst	cat >> confdefs.h <<\EOF
127522347Spst#define HAVE_LOGIN_PERMFILE "/etc/logindevperm"
127622347SpstEOF
127722347Spst
127822347Spstelse
127922347Spst	echo "$ac_t""no" 1>&6
128022347Spst
128122347Spst	echo $ac_n "checking for /etc/fbtab""... $ac_c" 1>&6
128222347Spst	if test $EXISTS /etc/fbtab
128322347Spst	then
128422347Spst		result=yes
128522347Spst		cat >> confdefs.h <<\EOF
128622347Spst#define HAVE_LOGIN_PERMFILE "/etc/fbtab"
128722347SpstEOF
128822347Spst
128922347Spst	else
129022347Spst		result=no
129122347Spst	fi
129222347Spst	echo "$ac_t""$result" 1>&6
129322347Spstfi
129422347Spst
129522347Spstecho $ac_n "checking for /etc/environment""... $ac_c" 1>&6
129622347Spstif test $EXISTS /etc/environment
129722347Spstthen
129822347Spst	echo "$ac_t""yes" 1>&6
129922347Spst	cat >> confdefs.h <<\EOF
130022347Spst#define HAVE_LOGIN_ENVFILE "/etc/environment"
130122347SpstEOF
130222347Spst
130322347Spstelse
130422347Spst	echo "$ac_t""no" 1>&6
130522347Spst
130622347Spst	echo $ac_n "checking for /etc/src.sh""... $ac_c" 1>&6
130722347Spst	if test $EXISTS /etc/src.sh
130822347Spst	then
130922347Spst		result=yes
131022347Spst		cat >> confdefs.h <<\EOF
131122347Spst#define HAVE_LOGIN_ENVFILE "/etc/src.sh"
131222347SpstEOF
131322347Spst
131422347Spst	else
131522347Spst		result=no
131622347Spst	fi
131722347Spst	echo "$ac_t""$result" 1>&6
131822347Spstfi
131922347Spst
132022347Spstecho $ac_n "checking for /etc/shadow""... $ac_c" 1>&6
132122347Spstif test $EXISTS /etc/shadow
132222347Spstthen
132322347Spst	result=yes
132422347Spst	cat >> confdefs.h <<\EOF
132522347Spst#define HAVE_ETC_SHADOW 1
132622347SpstEOF
132722347Spst
132822347Spstelse
132922347Spst	result=no
133022347Spstfi
133122347Spstecho "$ac_t""$result" 1>&6
133222347Spst
133322347Spstecho $ac_n "checking for /var/adm/sulog""... $ac_c" 1>&6
133422347Spstif test $EXISTS /var/adm/sulog
133522347Spstthen
133622347Spst	result=yes
133722347Spst	cat >> confdefs.h <<\EOF
133822347Spst#define HAVE_SULOG 1
133922347SpstEOF
134022347Spst
134122347Spstelse
134222347Spst	result=no
134322347Spstfi
134422347Spstecho "$ac_t""$result" 1>&6
134522347Spst
134622347Spstecho $ac_n "checking mail spool location""... $ac_c" 1>&6
134722347Spstmail_spool=""
134822347Spstfor i in /var/mail /usr/mail /var/spool/mail /usr/spool/mail
134922347Spstdo
135022347Spst	if test -d $i
135122347Spst	then
135222347Spst		mail_spool="$i"
135322347Spst	fi
135422347Spstdone
135522347Spstif test -z "$mail_spool"
135622347Spstthen
135722347Spst	result="not found"
135822347Spstelse
135922347Spst	result="$mail_spool"
136022347Spst	cat >> confdefs.h <<EOF
136122347Spst#define PATH_MAIL "$mail_spool"
136222347SpstEOF
136322347Spst
136422347Spstfi
136522347Spstecho "$ac_t""$result" 1>&6
136622347Spst
136722347Spst
136822347Spst
136922347Spstecho $ac_n "checking whether the system profile displays the motd""... $ac_c" 1>&6
137022347Spstresult=no
137122347Spstif test $EXISTS /etc/profile
137222347Spstthen
137322347Spst	if grep motd /etc/profile >/dev/null 2>/dev/null
137422347Spst	then
137522347Spst		result=yes
137622347Spst	fi
137722347Spstfi
137822347Spstif test "$result" = yes
137922347Spstthen
138022347Spst	cat >> confdefs.h <<\EOF
138122347Spst#define HAVE_MOTD_IN_PROFILE 1
138222347SpstEOF
138322347Spst
138422347Spstfi
138522347Spstecho "$ac_t""$result" 1>&6
138622347Spst
138722347Spstecho $ac_n "checking whether the system profile checks for mail""... $ac_c" 1>&6
138822347Spstresult=no
138922347Spstif test $EXISTS /etc/profile
139022347Spstthen
139122347Spst	if grep 'mail\.' /etc/profile >/dev/null 2>/dev/null
139222347Spst	then
139322347Spst		result=yes
139422347Spst	fi
139522347Spstfi
139622347Spstif test "$result" = yes
139722347Spstthen
139822347Spst	cat >> confdefs.h <<\EOF
139922347Spst#define HAVE_MAILCHECK_IN_PROFILE 1
140022347SpstEOF
140122347Spst
140222347Spstfi
140322347Spstecho "$ac_t""$result" 1>&6
140422347Spst
140522347Spstecho $ac_n "checking for working const""... $ac_c" 1>&6
140622347Spstif eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
140722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
140822347Spstelse
140922347Spst  cat > conftest.$ac_ext <<EOF
141022347Spst#line 1411 "configure"
141122347Spst#include "confdefs.h"
141222347Spst
141322347Spstint main() { return 0; }
141422347Spstint t() {
141522347Spst
141622347Spst/* Ultrix mips cc rejects this.  */
141722347Spsttypedef int charset[2]; const charset x;
141822347Spst/* SunOS 4.1.1 cc rejects this.  */
141922347Spstchar const *const *ccp;
142022347Spstchar **p;
142122347Spst/* NEC SVR4.0.2 mips cc rejects this.  */
142222347Spststruct point {int x, y;};
142322347Spststatic struct point const zero = {0,0};
142422347Spst/* AIX XL C 1.02.0.0 rejects this.
142522347Spst   It does not let you subtract one const X* pointer from another in an arm
142622347Spst   of an if-expression whose if-part is not a constant expression */
142722347Spstconst char *g = "string";
142822347Spstccp = &g + (g ? g-g : 0);
142922347Spst/* HPUX 7.0 cc rejects these. */
143022347Spst++ccp;
143122347Spstp = (char**) ccp;
143222347Spstccp = (char const *const *) p;
143322347Spst{ /* SCO 3.2v4 cc rejects this.  */
143422347Spst  char *t;
143522347Spst  char const *s = 0 ? (char *) 0 : (char const *) 0;
143622347Spst
143722347Spst  *t++ = 0;
143822347Spst}
143922347Spst{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
144022347Spst  int x[] = {25, 17};
144122347Spst  const int *foo = &x[0];
144222347Spst  ++foo;
144322347Spst}
144422347Spst{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
144522347Spst  typedef const int *iptr;
144622347Spst  iptr p = 0;
144722347Spst  ++p;
144822347Spst}
144922347Spst{ /* AIX XL C 1.02.0.0 rejects this saying
145022347Spst     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
145122347Spst  struct s { int j; const int *ap[3]; };
145222347Spst  struct s *b; b->j = 5;
145322347Spst}
145422347Spst{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
145522347Spst  const int foo = 10;
145622347Spst}
145722347Spst
145822347Spst; return 0; }
145922347SpstEOF
146022347Spstif { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
146122347Spst  rm -rf conftest*
146222347Spst  ac_cv_c_const=yes
146322347Spstelse
146422347Spst  rm -rf conftest*
146522347Spst  ac_cv_c_const=no
146622347Spstfi
146722347Spstrm -f conftest*
146822347Spst
146922347Spstfi
147022347Spst
147122347Spstecho "$ac_t""$ac_cv_c_const" 1>&6
147222347Spstif test $ac_cv_c_const = no; then
147322347Spst  cat >> confdefs.h <<\EOF
147422347Spst#define const 
147522347SpstEOF
147622347Spst
147722347Spstfi
147822347Spst
147922347Spst
148022347Spstecho $ac_n "checking to see if your compiler can handle void arguments""... $ac_c" 1>&6
148122347Spstcat > conftest.$ac_ext <<EOF
148222347Spst#line 1483 "configure"
148322347Spst#include "confdefs.h"
148422347Spstfoo(void) { }
148522347Spstint main() { return 0; }
148622347Spstint t() {
148722347Spst
148822347Spst; return 0; }
148922347SpstEOF
149022347Spstif { (eval echo configure:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
149122347Spst  rm -rf conftest*
149222347Spst  cat >> confdefs.h <<\EOF
149322347Spst#define HAVE_VOIDARG 1
149422347SpstEOF
149522347Spst echo "$ac_t""yes" 1>&6
149622347Spstelse
149722347Spst  rm -rf conftest*
149822347Spst  echo "$ac_t""no" 1>&6
149922347Spstfi
150022347Spstrm -f conftest*
150122347Spst
150222347Spst
150322347Spstecho $ac_n "checking to see if your compiler can handle void return values""... $ac_c" 1>&6
150422347Spstcat > conftest.$ac_ext <<EOF
150522347Spst#line 1506 "configure"
150622347Spst#include "confdefs.h"
150722347Spstvoid foo() { }
150822347Spstint main() { return 0; }
150922347Spstint t() {
151022347Spst
151122347Spst; return 0; }
151222347SpstEOF
151322347Spstif { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
151422347Spst  rm -rf conftest*
151522347Spst  cat >> confdefs.h <<\EOF
151622347Spst#define HAVE_VOIDRET 1
151722347SpstEOF
151822347Spst echo "$ac_t""yes" 1>&6
151922347Spstelse
152022347Spst  rm -rf conftest*
152122347Spst  echo "$ac_t""no" 1>&6
152222347Spstfi
152322347Spstrm -f conftest*
152422347Spst
152522347Spst
152622347Spstecho $ac_n "checking to see if your compiler can handle void pointers""... $ac_c" 1>&6
152722347Spstcat > conftest.$ac_ext <<EOF
152822347Spst#line 1529 "configure"
152922347Spst#include "confdefs.h"
153022347Spstfoo() { void *bar = (void *)0x42; bar = bar + 1; }
153122347Spstint main() { return 0; }
153222347Spstint t() {
153322347Spst
153422347Spst; return 0; }
153522347SpstEOF
153622347Spstif { (eval echo configure:1537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
153722347Spst  rm -rf conftest*
153822347Spst  cat >> confdefs.h <<\EOF
153922347Spst#define HAVE_VOIDPTR 1
154022347SpstEOF
154122347Spst echo "$ac_t""yes" 1>&6
154222347Spstelse
154322347Spst  rm -rf conftest*
154422347Spst  echo "$ac_t""no" 1>&6
154522347Spstfi
154622347Spstrm -f conftest*
154722347Spst
154822347Spst
154922347Spstecho $ac_n "checking to see if your compiler can handle ANSI argument lists""... $ac_c" 1>&6
155022347Spstcat > conftest.$ac_ext <<EOF
155122347Spst#line 1552 "configure"
155222347Spst#include "confdefs.h"
155322347Spstint foo(int bar, int baz) { return 0; }
155422347Spstint main() { return 0; }
155522347Spstint t() {
155622347Spst
155722347Spst; return 0; }
155822347SpstEOF
155922347Spstif { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
156022347Spst  rm -rf conftest*
156122347Spst  cat >> confdefs.h <<\EOF
156222347Spst#define HAVE_ANSIDECL 1
156322347SpstEOF
156422347Spst echo "$ac_t""yes" 1>&6
156522347Spstelse
156622347Spst  rm -rf conftest*
156722347Spst  echo "$ac_t""no" 1>&6
156822347Spstfi
156922347Spstrm -f conftest*
157022347Spst
157122347Spst
157222347Spstecho $ac_n "checking to see if your compiler can handle ANSI prototypes""... $ac_c" 1>&6
157322347Spstcat > conftest.$ac_ext <<EOF
157422347Spst#line 1575 "configure"
157522347Spst#include "confdefs.h"
157622347Spstextern int foo(int, int);
157722347Spstint main() { return 0; }
157822347Spstint t() {
157922347Spst
158022347Spst; return 0; }
158122347SpstEOF
158222347Spstif { (eval echo configure:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
158322347Spst  rm -rf conftest*
158422347Spst  cat >> confdefs.h <<\EOF
158522347Spst#define HAVE_ANSIPROTO 1
158622347SpstEOF
158722347Spst echo "$ac_t""yes" 1>&6
158822347Spstelse
158922347Spst  rm -rf conftest*
159022347Spst  echo "$ac_t""no" 1>&6
159122347Spstfi
159222347Spstrm -f conftest*
159322347Spst
159422347Spst
159522347Spstecho $ac_n "checking to see if your compiler can handle ANSI variable arguments""... $ac_c" 1>&6
159622347Spstcat > conftest.$ac_ext <<EOF
159722347Spst#line 1598 "configure"
159822347Spst#include "confdefs.h"
159922347Spst#include <stdarg.h>
160022347Spstint foo(int arg, ...) {
160122347Spst	va_list ap;
160222347Spst	va_start(ap, arg);
160322347Spst	va_end(ap);
160422347Spst	return 0;
160522347Spst}
160622347Spstint main() { return 0; }
160722347Spstint t() {
160822347Spst
160922347Spst; return 0; }
161022347SpstEOF
161122347Spstif { (eval echo configure:1612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
161222347Spst  rm -rf conftest*
161322347Spst  cat >> confdefs.h <<\EOF
161422347Spst#define HAVE_ANSISTDARG 1
161522347SpstEOF
161622347Spst echo "$ac_t""yes" 1>&6
161722347Spstelse
161822347Spst  rm -rf conftest*
161922347Spst  echo "$ac_t""no" 1>&6
162022347Spstfi
162122347Spstrm -f conftest*
162222347Spst
162322347Spst
162422347Spstecho $ac_n "checking to see if you have an ANSI-style sprintf""... $ac_c" 1>&6
162522347Spstif test "$cross_compiling" = yes; then
162622347Spst  echo "$ac_t""no" 1>&6
162722347Spstelse
162822347Spstcat > conftest.$ac_ext <<EOF
162922347Spst#line 1630 "configure"
163022347Spst#include "confdefs.h"
163122347Spst#include <stdio.h>
163222347Spstint main(argc, argv)
163322347Spstint argc;
163422347Spstchar *argv[];
163522347Spst{
163622347Spst  char buf[5];
163722347Spst  int i = 2;
163822347Spst  i += sprintf(buf, "1234");
163922347Spst  return (i == 6) ? 0 : -1;
164022347Spst}
164122347SpstEOF
164222347Spst{ (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
164322347Spstif test -s conftest && (./conftest; exit) 2>/dev/null; then
164422347Spst  cat >> confdefs.h <<\EOF
164522347Spst#define HAVE_ANSISPRINTF 1
164622347SpstEOF
164722347Spst echo "$ac_t""yes" 1>&6
164822347Spstelse
164922347Spst  echo "$ac_t""no" 1>&6
165022347Spstfi
165122347Spstfi
165222347Spstrm -fr conftest*
165322347Spst
165422347Spstecho $ac_n "checking for -lcrypt""... $ac_c" 1>&6
165522347Spstac_lib_var=`echo crypt'_'crypt | tr './+\055' '__p_'`
165622347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
165722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
165822347Spstelse
165922347Spst  ac_save_LIBS="$LIBS"
166022347SpstLIBS="-lcrypt  $LIBS"
166122347Spstcat > conftest.$ac_ext <<EOF
166222347Spst#line 1663 "configure"
166322347Spst#include "confdefs.h"
166422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
166522347Spst/* We use char because int might match the return type of a gcc2
166622347Spst    builtin and then its argument prototype would still apply.  */
166722347Spstchar crypt();
166822347Spst
166922347Spstint main() { return 0; }
167022347Spstint t() {
167122347Spstcrypt()
167222347Spst; return 0; }
167322347SpstEOF
167422347Spstif { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
167522347Spst  rm -rf conftest*
167622347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
167722347Spstelse
167822347Spst  rm -rf conftest*
167922347Spst  eval "ac_cv_lib_$ac_lib_var=no"
168022347Spstfi
168122347Spstrm -f conftest*
168222347SpstLIBS="$ac_save_LIBS"
168322347Spst
168422347Spstfi
168522347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
168622347Spst  echo "$ac_t""yes" 1>&6
168722347Spst    ac_tr_lib=HAVE_LIB`echo crypt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
168822347Spst  cat >> confdefs.h <<EOF
168922347Spst#define $ac_tr_lib 1
169022347SpstEOF
169122347Spst
169222347Spst  LIBS="-lcrypt $LIBS"
169322347Spst
169422347Spstelse
169522347Spst  echo "$ac_t""no" 1>&6
169622347Spstfi
169722347Spst
169822347Spstecho $ac_n "checking for -lnsl""... $ac_c" 1>&6
169922347Spstac_lib_var=`echo nsl'_'gethostname | tr './+\055' '__p_'`
170022347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
170122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
170222347Spstelse
170322347Spst  ac_save_LIBS="$LIBS"
170422347SpstLIBS="-lnsl  $LIBS"
170522347Spstcat > conftest.$ac_ext <<EOF
170622347Spst#line 1707 "configure"
170722347Spst#include "confdefs.h"
170822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
170922347Spst/* We use char because int might match the return type of a gcc2
171022347Spst    builtin and then its argument prototype would still apply.  */
171122347Spstchar gethostname();
171222347Spst
171322347Spstint main() { return 0; }
171422347Spstint t() {
171522347Spstgethostname()
171622347Spst; return 0; }
171722347SpstEOF
171822347Spstif { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
171922347Spst  rm -rf conftest*
172022347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
172122347Spstelse
172222347Spst  rm -rf conftest*
172322347Spst  eval "ac_cv_lib_$ac_lib_var=no"
172422347Spstfi
172522347Spstrm -f conftest*
172622347SpstLIBS="$ac_save_LIBS"
172722347Spst
172822347Spstfi
172922347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
173022347Spst  echo "$ac_t""yes" 1>&6
173122347Spst    ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
173222347Spst  cat >> confdefs.h <<EOF
173322347Spst#define $ac_tr_lib 1
173422347SpstEOF
173522347Spst
173622347Spst  LIBS="-lnsl $LIBS"
173722347Spst
173822347Spstelse
173922347Spst  echo "$ac_t""no" 1>&6
174022347Spstfi
174122347Spst
174222347Spstecho $ac_n "checking for -lposix""... $ac_c" 1>&6
174322347Spstac_lib_var=`echo posix'_'main | tr './+\055' '__p_'`
174422347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
174522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
174622347Spstelse
174722347Spst  ac_save_LIBS="$LIBS"
174822347SpstLIBS="-lposix  $LIBS"
174922347Spstcat > conftest.$ac_ext <<EOF
175022347Spst#line 1751 "configure"
175122347Spst#include "confdefs.h"
175222347Spst
175322347Spstint main() { return 0; }
175422347Spstint t() {
175522347Spstmain()
175622347Spst; return 0; }
175722347SpstEOF
175822347Spstif { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
175922347Spst  rm -rf conftest*
176022347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
176122347Spstelse
176222347Spst  rm -rf conftest*
176322347Spst  eval "ac_cv_lib_$ac_lib_var=no"
176422347Spstfi
176522347Spstrm -f conftest*
176622347SpstLIBS="$ac_save_LIBS"
176722347Spst
176822347Spstfi
176922347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
177022347Spst  echo "$ac_t""yes" 1>&6
177122347Spst    ac_tr_lib=HAVE_LIB`echo posix | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
177222347Spst  cat >> confdefs.h <<EOF
177322347Spst#define $ac_tr_lib 1
177422347SpstEOF
177522347Spst
177622347Spst  LIBS="-lposix $LIBS"
177722347Spst
177822347Spstelse
177922347Spst  echo "$ac_t""no" 1>&6
178022347Spstfi
178122347Spst
178222347Spstecho $ac_n "checking for -lsocket""... $ac_c" 1>&6
178322347Spstac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
178422347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
178522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
178622347Spstelse
178722347Spst  ac_save_LIBS="$LIBS"
178822347SpstLIBS="-lsocket  $LIBS"
178922347Spstcat > conftest.$ac_ext <<EOF
179022347Spst#line 1791 "configure"
179122347Spst#include "confdefs.h"
179222347Spst/* Override any gcc2 internal prototype to avoid an error.  */
179322347Spst/* We use char because int might match the return type of a gcc2
179422347Spst    builtin and then its argument prototype would still apply.  */
179522347Spstchar socket();
179622347Spst
179722347Spstint main() { return 0; }
179822347Spstint t() {
179922347Spstsocket()
180022347Spst; return 0; }
180122347SpstEOF
180222347Spstif { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
180322347Spst  rm -rf conftest*
180422347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
180522347Spstelse
180622347Spst  rm -rf conftest*
180722347Spst  eval "ac_cv_lib_$ac_lib_var=no"
180822347Spstfi
180922347Spstrm -f conftest*
181022347SpstLIBS="$ac_save_LIBS"
181122347Spst
181222347Spstfi
181322347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
181422347Spst  echo "$ac_t""yes" 1>&6
181522347Spst    ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
181622347Spst  cat >> confdefs.h <<EOF
181722347Spst#define $ac_tr_lib 1
181822347SpstEOF
181922347Spst
182022347Spst  LIBS="-lsocket $LIBS"
182122347Spst
182222347Spstelse
182322347Spst  echo "$ac_t""no" 1>&6
182422347Spstfi
182522347Spst
182622347Spst
182722347Spstac_header_dirent=no
182822347Spstfor ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
182922347Spstdo
183022347Spstac_safe=`echo "$ac_hdr" | tr './\055' '___'`
183122347Spstecho $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
183222347Spstif eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
183322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
183422347Spstelse
183522347Spst  cat > conftest.$ac_ext <<EOF
183622347Spst#line 1837 "configure"
183722347Spst#include "confdefs.h"
183822347Spst#include <sys/types.h>
183922347Spst#include <$ac_hdr>
184022347Spstint main() { return 0; }
184122347Spstint t() {
184222347SpstDIR *dirp = 0;
184322347Spst; return 0; }
184422347SpstEOF
184522347Spstif { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
184622347Spst  rm -rf conftest*
184722347Spst  eval "ac_cv_header_dirent_$ac_safe=yes"
184822347Spstelse
184922347Spst  rm -rf conftest*
185022347Spst  eval "ac_cv_header_dirent_$ac_safe=no"
185122347Spstfi
185222347Spstrm -f conftest*
185322347Spst
185422347Spstfi
185522347Spstif eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
185622347Spst  echo "$ac_t""yes" 1>&6
185722347Spst    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
185822347Spst  cat >> confdefs.h <<EOF
185922347Spst#define $ac_tr_hdr 1
186022347SpstEOF
186122347Spst ac_header_dirent=$ac_hdr; break
186222347Spstelse
186322347Spst  echo "$ac_t""no" 1>&6
186422347Spstfi
186522347Spstdone
186622347Spst# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
186722347Spstif test $ac_header_dirent = dirent.h; then
186822347Spstecho $ac_n "checking for -ldir""... $ac_c" 1>&6
186922347Spstac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
187022347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
187122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
187222347Spstelse
187322347Spst  ac_save_LIBS="$LIBS"
187422347SpstLIBS="-ldir  $LIBS"
187522347Spstcat > conftest.$ac_ext <<EOF
187622347Spst#line 1877 "configure"
187722347Spst#include "confdefs.h"
187822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
187922347Spst/* We use char because int might match the return type of a gcc2
188022347Spst    builtin and then its argument prototype would still apply.  */
188122347Spstchar opendir();
188222347Spst
188322347Spstint main() { return 0; }
188422347Spstint t() {
188522347Spstopendir()
188622347Spst; return 0; }
188722347SpstEOF
188822347Spstif { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
188922347Spst  rm -rf conftest*
189022347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
189122347Spstelse
189222347Spst  rm -rf conftest*
189322347Spst  eval "ac_cv_lib_$ac_lib_var=no"
189422347Spstfi
189522347Spstrm -f conftest*
189622347SpstLIBS="$ac_save_LIBS"
189722347Spst
189822347Spstfi
189922347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
190022347Spst  echo "$ac_t""yes" 1>&6
190122347Spst  LIBS="$LIBS -ldir"
190222347Spstelse
190322347Spst  echo "$ac_t""no" 1>&6
190422347Spstfi
190522347Spst
190622347Spstelse
190722347Spstecho $ac_n "checking for -lx""... $ac_c" 1>&6
190822347Spstac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
190922347Spstif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
191022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
191122347Spstelse
191222347Spst  ac_save_LIBS="$LIBS"
191322347SpstLIBS="-lx  $LIBS"
191422347Spstcat > conftest.$ac_ext <<EOF
191522347Spst#line 1916 "configure"
191622347Spst#include "confdefs.h"
191722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
191822347Spst/* We use char because int might match the return type of a gcc2
191922347Spst    builtin and then its argument prototype would still apply.  */
192022347Spstchar opendir();
192122347Spst
192222347Spstint main() { return 0; }
192322347Spstint t() {
192422347Spstopendir()
192522347Spst; return 0; }
192622347SpstEOF
192722347Spstif { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
192822347Spst  rm -rf conftest*
192922347Spst  eval "ac_cv_lib_$ac_lib_var=yes"
193022347Spstelse
193122347Spst  rm -rf conftest*
193222347Spst  eval "ac_cv_lib_$ac_lib_var=no"
193322347Spstfi
193422347Spstrm -f conftest*
193522347SpstLIBS="$ac_save_LIBS"
193622347Spst
193722347Spstfi
193822347Spstif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
193922347Spst  echo "$ac_t""yes" 1>&6
194022347Spst  LIBS="$LIBS -lx"
194122347Spstelse
194222347Spst  echo "$ac_t""no" 1>&6
194322347Spstfi
194422347Spst
194522347Spstfi
194622347Spst
194722347Spstecho $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
194822347Spstif eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
194922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
195022347Spstelse
195122347Spst  cat > conftest.$ac_ext <<EOF
195222347Spst#line 1953 "configure"
195322347Spst#include "confdefs.h"
195422347Spst#include <sys/types.h>
195522347Spst#include <sys/wait.h>
195622347Spst#ifndef WEXITSTATUS
195722347Spst#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
195822347Spst#endif
195922347Spst#ifndef WIFEXITED
196022347Spst#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
196122347Spst#endif
196222347Spstint main() { return 0; }
196322347Spstint t() {
196422347Spstint s;
196522347Spstwait (&s);
196622347Spsts = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
196722347Spst; return 0; }
196822347SpstEOF
196922347Spstif { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
197022347Spst  rm -rf conftest*
197122347Spst  ac_cv_header_sys_wait_h=yes
197222347Spstelse
197322347Spst  rm -rf conftest*
197422347Spst  ac_cv_header_sys_wait_h=no
197522347Spstfi
197622347Spstrm -f conftest*
197722347Spst
197822347Spstfi
197922347Spst
198022347Spstecho "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
198122347Spstif test $ac_cv_header_sys_wait_h = yes; then
198222347Spst  cat >> confdefs.h <<\EOF
198322347Spst#define HAVE_SYS_WAIT_H 1
198422347SpstEOF
198522347Spst
198622347Spstfi
198722347Spst
198822347Spstfor 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
198922347Spstdo
199022347Spstac_safe=`echo "$ac_hdr" | tr './\055' '___'`
199122347Spstecho $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
199222347Spstif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
199322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
199422347Spstelse
199522347Spst  cat > conftest.$ac_ext <<EOF
199622347Spst#line 1997 "configure"
199722347Spst#include "confdefs.h"
199822347Spst#include <$ac_hdr>
199922347SpstEOF
200022347Spstac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
200122347Spst{ (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
200222347Spstac_err=`grep -v '^ *+' conftest.out`
200322347Spstif test -z "$ac_err"; then
200422347Spst  rm -rf conftest*
200522347Spst  eval "ac_cv_header_$ac_safe=yes"
200622347Spstelse
200722347Spst  echo "$ac_err" >&5
200822347Spst  rm -rf conftest*
200922347Spst  eval "ac_cv_header_$ac_safe=no"
201022347Spstfi
201122347Spstrm -f conftest*
201222347Spstfi
201322347Spstif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
201422347Spst  echo "$ac_t""yes" 1>&6
201522347Spst    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
201622347Spst  cat >> confdefs.h <<EOF
201722347Spst#define $ac_tr_hdr 1
201822347SpstEOF
201922347Spst 
202022347Spstelse
202122347Spst  echo "$ac_t""no" 1>&6
202222347Spstfi
202322347Spstdone
202422347Spst
202522347Spst
202622347Spst
202722347Spstecho $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
202822347Spstcat > conftest.$ac_ext <<EOF
202922347Spst#line 2030 "configure"
203022347Spst#include "confdefs.h"
203122347Spst#include <sys/types.h>
203222347Spst#include <utmp.h>
203322347Spstint main() { return 0; }
203422347Spstint t() {
203522347Spststruct utmp foo; return (int)foo.ut_pid;
203622347Spst; return 0; }
203722347SpstEOF
203822347Spstif { (eval echo configure:2039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
203922347Spst  rm -rf conftest*
204022347Spst  cat >> confdefs.h <<\EOF
204122347Spst#define HAVE_UT_PID 1
204222347SpstEOF
204322347Spst echo "$ac_t""yes" 1>&6
204422347Spstelse
204522347Spst  rm -rf conftest*
204622347Spst  echo "$ac_t""no" 1>&6
204722347Spstfi
204822347Spstrm -f conftest*
204922347Spst
205022347Spstecho $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
205122347Spstcat > conftest.$ac_ext <<EOF
205222347Spst#line 2053 "configure"
205322347Spst#include "confdefs.h"
205422347Spst#include <sys/types.h>
205522347Spst#include <utmp.h>
205622347Spstint main() { return 0; }
205722347Spstint t() {
205822347Spststruct utmp foo; return (int)foo.ut_type;
205922347Spst; return 0; }
206022347SpstEOF
206122347Spstif { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
206222347Spst  rm -rf conftest*
206322347Spst  cat >> confdefs.h <<\EOF
206422347Spst#define HAVE_UT_TYPE 1
206522347SpstEOF
206622347Spst echo "$ac_t""yes" 1>&6
206722347Spstelse
206822347Spst  rm -rf conftest*
206922347Spst  echo "$ac_t""no" 1>&6
207022347Spstfi
207122347Spstrm -f conftest*
207222347Spst
207322347Spstecho $ac_n "checking for ut_name in struct utmp""... $ac_c" 1>&6
207422347Spstcat > conftest.$ac_ext <<EOF
207522347Spst#line 2076 "configure"
207622347Spst#include "confdefs.h"
207722347Spst#include <sys/types.h>
207822347Spst#include <utmp.h>
207922347Spstint main() { return 0; }
208022347Spstint t() {
208122347Spststruct utmp foo; return (int)foo.ut_name[0];
208222347Spst; return 0; }
208322347SpstEOF
208422347Spstif { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
208522347Spst  rm -rf conftest*
208622347Spst  cat >> confdefs.h <<\EOF
208722347Spst#define HAVE_UT_NAME 1
208822347SpstEOF
208922347Spst echo "$ac_t""yes" 1>&6
209022347Spstelse
209122347Spst  rm -rf conftest*
209222347Spst  echo "$ac_t""no" 1>&6
209322347Spstfi
209422347Spstrm -f conftest*
209522347Spst
209622347Spstcat >> confdefs.h <<\EOF
209722347Spst#define HAVE_UT_HOST 1
209822347SpstEOF
209922347Spst
210022347Spst
210122347Spstecho $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
210222347Spstif eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
210322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
210422347Spstelse
210522347Spst  cat > conftest.$ac_ext <<EOF
210622347Spst#line 2107 "configure"
210722347Spst#include "confdefs.h"
210822347Spst#include <sys/types.h>
210922347Spst#include <signal.h>
211022347Spst#ifdef signal
211122347Spst#undef signal
211222347Spst#endif
211322347Spst#ifdef __cplusplus
211422347Spstextern "C" void (*signal (int, void (*)(int)))(int);
211522347Spst#else
211622347Spstvoid (*signal ()) ();
211722347Spst#endif
211822347Spst
211922347Spstint main() { return 0; }
212022347Spstint t() {
212122347Spstint i;
212222347Spst; return 0; }
212322347SpstEOF
212422347Spstif { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
212522347Spst  rm -rf conftest*
212622347Spst  ac_cv_type_signal=void
212722347Spstelse
212822347Spst  rm -rf conftest*
212922347Spst  ac_cv_type_signal=int
213022347Spstfi
213122347Spstrm -f conftest*
213222347Spst
213322347Spstfi
213422347Spst
213522347Spstecho "$ac_t""$ac_cv_type_signal" 1>&6
213622347Spstcat >> confdefs.h <<EOF
213722347Spst#define RETSIGTYPE $ac_cv_type_signal
213822347SpstEOF
213922347Spst
214022347Spst
214122347Spstfor ac_func in gettimeofday socket strftime strstr setpriority seteuid setreuid setegid setregid setresuid setresgid getttynam sysconf setvbuf getspent endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline
214222347Spstdo
214322347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
214422347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
214522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
214622347Spstelse
214722347Spst  cat > conftest.$ac_ext <<EOF
214822347Spst#line 2149 "configure"
214922347Spst#include "confdefs.h"
215022347Spst/* System header to define __stub macros and hopefully few prototypes,
215122347Spst    which can conflict with char $ac_func(); below.  */
215222347Spst#include <assert.h>
215322347Spst/* Override any gcc2 internal prototype to avoid an error.  */
215422347Spst/* We use char because int might match the return type of a gcc2
215522347Spst    builtin and then its argument prototype would still apply.  */
215622347Spstchar $ac_func();
215722347Spst
215822347Spstint main() { return 0; }
215922347Spstint t() {
216022347Spst
216122347Spst/* The GNU C library defines this for functions which it implements
216222347Spst    to always fail with ENOSYS.  Some functions are actually named
216322347Spst    something starting with __ and the normal name is an alias.  */
216422347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
216522347Spstchoke me
216622347Spst#else
216722347Spst$ac_func();
216822347Spst#endif
216922347Spst
217022347Spst; return 0; }
217122347SpstEOF
217222347Spstif { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
217322347Spst  rm -rf conftest*
217422347Spst  eval "ac_cv_func_$ac_func=yes"
217522347Spstelse
217622347Spst  rm -rf conftest*
217722347Spst  eval "ac_cv_func_$ac_func=no"
217822347Spstfi
217922347Spstrm -f conftest*
218022347Spst
218122347Spstfi
218222347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
218322347Spst  echo "$ac_t""yes" 1>&6
218422347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
218522347Spst  cat >> confdefs.h <<EOF
218622347Spst#define $ac_tr_func 1
218722347SpstEOF
218822347Spst 
218922347Spstelse
219022347Spst  echo "$ac_t""no" 1>&6
219122347Spstfi
219222347Spstdone
219322347Spst
219422347Spst
219522347Spstecho $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
219622347Spstif eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
219722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
219822347Spstelse
219922347Spst  if test "$cross_compiling" = yes; then
220022347Spst  ac_cv_func_memcmp=no
220122347Spstelse
220222347Spstcat > conftest.$ac_ext <<EOF
220322347Spst#line 2204 "configure"
220422347Spst#include "confdefs.h"
220522347Spst
220622347Spstmain()
220722347Spst{
220822347Spst  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
220922347Spst  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
221022347Spst}
221122347Spst
221222347SpstEOF
221322347Spst{ (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
221422347Spstif test -s conftest && (./conftest; exit) 2>/dev/null; then
221522347Spst  ac_cv_func_memcmp=yes
221622347Spstelse
221722347Spst  ac_cv_func_memcmp=no
221822347Spstfi
221922347Spstfi
222022347Spstrm -fr conftest*
222122347Spstfi
222222347Spst
222322347Spstecho "$ac_t""$ac_cv_func_memcmp" 1>&6
222422347Spsttest $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
222522347Spst
222622347Spst# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
222722347Spst# for constant arguments.  Useless!
222822347Spstecho $ac_n "checking for working alloca.h""... $ac_c" 1>&6
222922347Spstif eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
223022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
223122347Spstelse
223222347Spst  cat > conftest.$ac_ext <<EOF
223322347Spst#line 2234 "configure"
223422347Spst#include "confdefs.h"
223522347Spst#include <alloca.h>
223622347Spstint main() { return 0; }
223722347Spstint t() {
223822347Spstchar *p = alloca(2 * sizeof(int));
223922347Spst; return 0; }
224022347SpstEOF
224122347Spstif { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
224222347Spst  rm -rf conftest*
224322347Spst  ac_cv_header_alloca_h=yes
224422347Spstelse
224522347Spst  rm -rf conftest*
224622347Spst  ac_cv_header_alloca_h=no
224722347Spstfi
224822347Spstrm -f conftest*
224922347Spst
225022347Spstfi
225122347Spst
225222347Spstecho "$ac_t""$ac_cv_header_alloca_h" 1>&6
225322347Spstif test $ac_cv_header_alloca_h = yes; then
225422347Spst  cat >> confdefs.h <<\EOF
225522347Spst#define HAVE_ALLOCA_H 1
225622347SpstEOF
225722347Spst
225822347Spstfi
225922347Spst
226022347Spstecho $ac_n "checking for alloca""... $ac_c" 1>&6
226122347Spstif eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
226222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
226322347Spstelse
226422347Spst  cat > conftest.$ac_ext <<EOF
226522347Spst#line 2266 "configure"
226622347Spst#include "confdefs.h"
226722347Spst
226822347Spst#ifdef __GNUC__
226922347Spst# define alloca __builtin_alloca
227022347Spst#else
227122347Spst# if HAVE_ALLOCA_H
227222347Spst#  include <alloca.h>
227322347Spst# else
227422347Spst#  ifdef _AIX
227522347Spst #pragma alloca
227622347Spst#  else
227722347Spst#   ifndef alloca /* predefined by HP cc +Olibcalls */
227822347Spstchar *alloca ();
227922347Spst#   endif
228022347Spst#  endif
228122347Spst# endif
228222347Spst#endif
228322347Spst
228422347Spstint main() { return 0; }
228522347Spstint t() {
228622347Spstchar *p = (char *) alloca(1);
228722347Spst; return 0; }
228822347SpstEOF
228922347Spstif { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
229022347Spst  rm -rf conftest*
229122347Spst  ac_cv_func_alloca=yes
229222347Spstelse
229322347Spst  rm -rf conftest*
229422347Spst  ac_cv_func_alloca=no
229522347Spstfi
229622347Spstrm -f conftest*
229722347Spst
229822347Spstfi
229922347Spst
230022347Spstecho "$ac_t""$ac_cv_func_alloca" 1>&6
230122347Spstif test $ac_cv_func_alloca = yes; then
230222347Spst  cat >> confdefs.h <<\EOF
230322347Spst#define HAVE_ALLOCA 1
230422347SpstEOF
230522347Spst
230622347Spstfi
230722347Spst
230822347Spstif test $ac_cv_func_alloca = no; then
230922347Spst  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
231022347Spst  # that cause trouble.  Some versions do not even contain alloca or
231122347Spst  # contain a buggy version.  If you still want to use their alloca,
231222347Spst  # use ar to extract alloca.o from them instead of compiling alloca.c.
231322347Spst  ALLOCA=alloca.o
231422347Spst  cat >> confdefs.h <<\EOF
231522347Spst#define C_ALLOCA 1
231622347SpstEOF
231722347Spst
231822347Spst
231922347Spstecho $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
232022347Spstif eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
232122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
232222347Spstelse
232322347Spst  cat > conftest.$ac_ext <<EOF
232422347Spst#line 2325 "configure"
232522347Spst#include "confdefs.h"
232622347Spst#if defined(CRAY) && ! defined(CRAY2)
232722347Spstwebecray
232822347Spst#else
232922347Spstwenotbecray
233022347Spst#endif
233122347Spst
233222347SpstEOF
233322347Spstif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
233422347Spst  egrep "webecray" >/dev/null 2>&1; then
233522347Spst  rm -rf conftest*
233622347Spst  ac_cv_os_cray=yes
233722347Spstelse
233822347Spst  rm -rf conftest*
233922347Spst  ac_cv_os_cray=no
234022347Spstfi
234122347Spstrm -f conftest*
234222347Spst
234322347Spstfi
234422347Spst
234522347Spstecho "$ac_t""$ac_cv_os_cray" 1>&6
234622347Spstif test $ac_cv_os_cray = yes; then
234722347Spstfor ac_func in _getb67 GETB67 getb67; do
234822347Spst  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
234922347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
235022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
235122347Spstelse
235222347Spst  cat > conftest.$ac_ext <<EOF
235322347Spst#line 2354 "configure"
235422347Spst#include "confdefs.h"
235522347Spst/* System header to define __stub macros and hopefully few prototypes,
235622347Spst    which can conflict with char $ac_func(); below.  */
235722347Spst#include <assert.h>
235822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
235922347Spst/* We use char because int might match the return type of a gcc2
236022347Spst    builtin and then its argument prototype would still apply.  */
236122347Spstchar $ac_func();
236222347Spst
236322347Spstint main() { return 0; }
236422347Spstint t() {
236522347Spst
236622347Spst/* The GNU C library defines this for functions which it implements
236722347Spst    to always fail with ENOSYS.  Some functions are actually named
236822347Spst    something starting with __ and the normal name is an alias.  */
236922347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
237022347Spstchoke me
237122347Spst#else
237222347Spst$ac_func();
237322347Spst#endif
237422347Spst
237522347Spst; return 0; }
237622347SpstEOF
237722347Spstif { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
237822347Spst  rm -rf conftest*
237922347Spst  eval "ac_cv_func_$ac_func=yes"
238022347Spstelse
238122347Spst  rm -rf conftest*
238222347Spst  eval "ac_cv_func_$ac_func=no"
238322347Spstfi
238422347Spstrm -f conftest*
238522347Spst
238622347Spstfi
238722347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
238822347Spst  echo "$ac_t""yes" 1>&6
238922347Spst  cat >> confdefs.h <<EOF
239022347Spst#define CRAY_STACKSEG_END $ac_func
239122347SpstEOF
239222347Spst
239322347Spst  break
239422347Spstelse
239522347Spst  echo "$ac_t""no" 1>&6
239622347Spstfi
239722347Spst
239822347Spstdone
239922347Spstfi
240022347Spst
240122347Spstecho $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
240222347Spstif eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
240322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
240422347Spstelse
240522347Spst  if test "$cross_compiling" = yes; then
240622347Spst  ac_cv_c_stack_direction=0
240722347Spstelse
240822347Spstcat > conftest.$ac_ext <<EOF
240922347Spst#line 2410 "configure"
241022347Spst#include "confdefs.h"
241122347Spstfind_stack_direction ()
241222347Spst{
241322347Spst  static char *addr = 0;
241422347Spst  auto char dummy;
241522347Spst  if (addr == 0)
241622347Spst    {
241722347Spst      addr = &dummy;
241822347Spst      return find_stack_direction ();
241922347Spst    }
242022347Spst  else
242122347Spst    return (&dummy > addr) ? 1 : -1;
242222347Spst}
242322347Spstmain ()
242422347Spst{
242522347Spst  exit (find_stack_direction() < 0);
242622347Spst}
242722347SpstEOF
242822347Spst{ (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
242922347Spstif test -s conftest && (./conftest; exit) 2>/dev/null; then
243022347Spst  ac_cv_c_stack_direction=1
243122347Spstelse
243222347Spst  ac_cv_c_stack_direction=-1
243322347Spstfi
243422347Spstfi
243522347Spstrm -fr conftest*
243622347Spstfi
243722347Spst
243822347Spstecho "$ac_t""$ac_cv_c_stack_direction" 1>&6
243922347Spstcat >> confdefs.h <<EOF
244022347Spst#define STACK_DIRECTION $ac_cv_c_stack_direction
244122347SpstEOF
244222347Spst
244322347Spstfi
244422347Spst
244522347Spstfor ac_func in getusershell sigaddset sigemptyset strerror strncasecmp
244622347Spstdo
244722347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
244822347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
244922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
245022347Spstelse
245122347Spst  cat > conftest.$ac_ext <<EOF
245222347Spst#line 2453 "configure"
245322347Spst#include "confdefs.h"
245422347Spst/* System header to define __stub macros and hopefully few prototypes,
245522347Spst    which can conflict with char $ac_func(); below.  */
245622347Spst#include <assert.h>
245722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
245822347Spst/* We use char because int might match the return type of a gcc2
245922347Spst    builtin and then its argument prototype would still apply.  */
246022347Spstchar $ac_func();
246122347Spst
246222347Spstint main() { return 0; }
246322347Spstint t() {
246422347Spst
246522347Spst/* The GNU C library defines this for functions which it implements
246622347Spst    to always fail with ENOSYS.  Some functions are actually named
246722347Spst    something starting with __ and the normal name is an alias.  */
246822347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
246922347Spstchoke me
247022347Spst#else
247122347Spst$ac_func();
247222347Spst#endif
247322347Spst
247422347Spst; return 0; }
247522347SpstEOF
247622347Spstif { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
247722347Spst  rm -rf conftest*
247822347Spst  eval "ac_cv_func_$ac_func=yes"
247922347Spstelse
248022347Spst  rm -rf conftest*
248122347Spst  eval "ac_cv_func_$ac_func=no"
248222347Spstfi
248322347Spstrm -f conftest*
248422347Spst
248522347Spstfi
248622347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
248722347Spst  echo "$ac_t""yes" 1>&6
248822347Spst  :
248922347Spstelse
249022347Spst  echo "$ac_t""no" 1>&6
249122347SpstLIBOBJS="$LIBOBJS ${ac_func}.o"
249222347Spstfi
249322347Spst
249422347Spstdone
249522347Spst
249622347SpstMISSING="$LIBOBJS $ALLOCA "
249722347Spstecho $ac_n "checking for atexit""... $ac_c" 1>&6
249822347Spstif eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
249922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
250022347Spstelse
250122347Spst  cat > conftest.$ac_ext <<EOF
250222347Spst#line 2503 "configure"
250322347Spst#include "confdefs.h"
250422347Spst/* System header to define __stub macros and hopefully few prototypes,
250522347Spst    which can conflict with char atexit(); below.  */
250622347Spst#include <assert.h>
250722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
250822347Spst/* We use char because int might match the return type of a gcc2
250922347Spst    builtin and then its argument prototype would still apply.  */
251022347Spstchar atexit();
251122347Spst
251222347Spstint main() { return 0; }
251322347Spstint t() {
251422347Spst
251522347Spst/* The GNU C library defines this for functions which it implements
251622347Spst    to always fail with ENOSYS.  Some functions are actually named
251722347Spst    something starting with __ and the normal name is an alias.  */
251822347Spst#if defined (__stub_atexit) || defined (__stub___atexit)
251922347Spstchoke me
252022347Spst#else
252122347Spstatexit();
252222347Spst#endif
252322347Spst
252422347Spst; return 0; }
252522347SpstEOF
252622347Spstif { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
252722347Spst  rm -rf conftest*
252822347Spst  eval "ac_cv_func_atexit=yes"
252922347Spstelse
253022347Spst  rm -rf conftest*
253122347Spst  eval "ac_cv_func_atexit=no"
253222347Spstfi
253322347Spstrm -f conftest*
253422347Spst
253522347Spstfi
253622347Spstif eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
253722347Spst  echo "$ac_t""yes" 1>&6
253822347Spst  :
253922347Spstelse
254022347Spst  echo "$ac_t""no" 1>&6
254122347SpstMISSING="${MISSING}atexit.o "
254222347Spstfi
254322347Spst
254422347Spstecho $ac_n "checking for entutent""... $ac_c" 1>&6
254522347Spstif eval "test \"`echo '$''{'ac_cv_func_entutent'+set}'`\" = set"; then
254622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
254722347Spstelse
254822347Spst  cat > conftest.$ac_ext <<EOF
254922347Spst#line 2550 "configure"
255022347Spst#include "confdefs.h"
255122347Spst/* System header to define __stub macros and hopefully few prototypes,
255222347Spst    which can conflict with char entutent(); below.  */
255322347Spst#include <assert.h>
255422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
255522347Spst/* We use char because int might match the return type of a gcc2
255622347Spst    builtin and then its argument prototype would still apply.  */
255722347Spstchar entutent();
255822347Spst
255922347Spstint main() { return 0; }
256022347Spstint t() {
256122347Spst
256222347Spst/* The GNU C library defines this for functions which it implements
256322347Spst    to always fail with ENOSYS.  Some functions are actually named
256422347Spst    something starting with __ and the normal name is an alias.  */
256522347Spst#if defined (__stub_entutent) || defined (__stub___entutent)
256622347Spstchoke me
256722347Spst#else
256822347Spstentutent();
256922347Spst#endif
257022347Spst
257122347Spst; return 0; }
257222347SpstEOF
257322347Spstif { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
257422347Spst  rm -rf conftest*
257522347Spst  eval "ac_cv_func_entutent=yes"
257622347Spstelse
257722347Spst  rm -rf conftest*
257822347Spst  eval "ac_cv_func_entutent=no"
257922347Spstfi
258022347Spstrm -f conftest*
258122347Spst
258222347Spstfi
258322347Spstif eval "test \"`echo '$ac_cv_func_'entutent`\" = yes"; then
258422347Spst  echo "$ac_t""yes" 1>&6
258522347Spst  :
258622347Spstelse
258722347Spst  echo "$ac_t""no" 1>&6
258822347SpstMISSING="${MISSING}endutent.o "
258922347Spstfi
259022347Spst
259122347Spstecho $ac_n "checking for memcpy""... $ac_c" 1>&6
259222347Spstif eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
259322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
259422347Spstelse
259522347Spst  cat > conftest.$ac_ext <<EOF
259622347Spst#line 2597 "configure"
259722347Spst#include "confdefs.h"
259822347Spst/* System header to define __stub macros and hopefully few prototypes,
259922347Spst    which can conflict with char memcpy(); below.  */
260022347Spst#include <assert.h>
260122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
260222347Spst/* We use char because int might match the return type of a gcc2
260322347Spst    builtin and then its argument prototype would still apply.  */
260422347Spstchar memcpy();
260522347Spst
260622347Spstint main() { return 0; }
260722347Spstint t() {
260822347Spst
260922347Spst/* The GNU C library defines this for functions which it implements
261022347Spst    to always fail with ENOSYS.  Some functions are actually named
261122347Spst    something starting with __ and the normal name is an alias.  */
261222347Spst#if defined (__stub_memcpy) || defined (__stub___memcpy)
261322347Spstchoke me
261422347Spst#else
261522347Spstmemcpy();
261622347Spst#endif
261722347Spst
261822347Spst; return 0; }
261922347SpstEOF
262022347Spstif { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
262122347Spst  rm -rf conftest*
262222347Spst  eval "ac_cv_func_memcpy=yes"
262322347Spstelse
262422347Spst  rm -rf conftest*
262522347Spst  eval "ac_cv_func_memcpy=no"
262622347Spstfi
262722347Spstrm -f conftest*
262822347Spst
262922347Spstfi
263022347Spstif eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
263122347Spst  echo "$ac_t""yes" 1>&6
263222347Spst  :
263322347Spstelse
263422347Spst  echo "$ac_t""no" 1>&6
263522347SpstMISSING="${MISSING}memcpy.o "; for ac_func in bcopy
263622347Spstdo
263722347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
263822347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
263922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
264022347Spstelse
264122347Spst  cat > conftest.$ac_ext <<EOF
264222347Spst#line 2643 "configure"
264322347Spst#include "confdefs.h"
264422347Spst/* System header to define __stub macros and hopefully few prototypes,
264522347Spst    which can conflict with char $ac_func(); below.  */
264622347Spst#include <assert.h>
264722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
264822347Spst/* We use char because int might match the return type of a gcc2
264922347Spst    builtin and then its argument prototype would still apply.  */
265022347Spstchar $ac_func();
265122347Spst
265222347Spstint main() { return 0; }
265322347Spstint t() {
265422347Spst
265522347Spst/* The GNU C library defines this for functions which it implements
265622347Spst    to always fail with ENOSYS.  Some functions are actually named
265722347Spst    something starting with __ and the normal name is an alias.  */
265822347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
265922347Spstchoke me
266022347Spst#else
266122347Spst$ac_func();
266222347Spst#endif
266322347Spst
266422347Spst; return 0; }
266522347SpstEOF
266622347Spstif { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
266722347Spst  rm -rf conftest*
266822347Spst  eval "ac_cv_func_$ac_func=yes"
266922347Spstelse
267022347Spst  rm -rf conftest*
267122347Spst  eval "ac_cv_func_$ac_func=no"
267222347Spstfi
267322347Spstrm -f conftest*
267422347Spst
267522347Spstfi
267622347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
267722347Spst  echo "$ac_t""yes" 1>&6
267822347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
267922347Spst  cat >> confdefs.h <<EOF
268022347Spst#define $ac_tr_func 1
268122347SpstEOF
268222347Spst 
268322347Spstelse
268422347Spst  echo "$ac_t""no" 1>&6
268522347Spstfi
268622347Spstdone
268722347Spst
268822347Spstfi
268922347Spst
269022347Spstecho $ac_n "checking for memset""... $ac_c" 1>&6
269122347Spstif eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then
269222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
269322347Spstelse
269422347Spst  cat > conftest.$ac_ext <<EOF
269522347Spst#line 2696 "configure"
269622347Spst#include "confdefs.h"
269722347Spst/* System header to define __stub macros and hopefully few prototypes,
269822347Spst    which can conflict with char memset(); below.  */
269922347Spst#include <assert.h>
270022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
270122347Spst/* We use char because int might match the return type of a gcc2
270222347Spst    builtin and then its argument prototype would still apply.  */
270322347Spstchar memset();
270422347Spst
270522347Spstint main() { return 0; }
270622347Spstint t() {
270722347Spst
270822347Spst/* The GNU C library defines this for functions which it implements
270922347Spst    to always fail with ENOSYS.  Some functions are actually named
271022347Spst    something starting with __ and the normal name is an alias.  */
271122347Spst#if defined (__stub_memset) || defined (__stub___memset)
271222347Spstchoke me
271322347Spst#else
271422347Spstmemset();
271522347Spst#endif
271622347Spst
271722347Spst; return 0; }
271822347SpstEOF
271922347Spstif { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
272022347Spst  rm -rf conftest*
272122347Spst  eval "ac_cv_func_memset=yes"
272222347Spstelse
272322347Spst  rm -rf conftest*
272422347Spst  eval "ac_cv_func_memset=no"
272522347Spstfi
272622347Spstrm -f conftest*
272722347Spst
272822347Spstfi
272922347Spstif eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then
273022347Spst  echo "$ac_t""yes" 1>&6
273122347Spst  :
273222347Spstelse
273322347Spst  echo "$ac_t""no" 1>&6
273422347SpstMISSING="${MISSING}memset.o "; for ac_func in bzero
273522347Spstdo
273622347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
273722347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
273822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
273922347Spstelse
274022347Spst  cat > conftest.$ac_ext <<EOF
274122347Spst#line 2742 "configure"
274222347Spst#include "confdefs.h"
274322347Spst/* System header to define __stub macros and hopefully few prototypes,
274422347Spst    which can conflict with char $ac_func(); below.  */
274522347Spst#include <assert.h>
274622347Spst/* Override any gcc2 internal prototype to avoid an error.  */
274722347Spst/* We use char because int might match the return type of a gcc2
274822347Spst    builtin and then its argument prototype would still apply.  */
274922347Spstchar $ac_func();
275022347Spst
275122347Spstint main() { return 0; }
275222347Spstint t() {
275322347Spst
275422347Spst/* The GNU C library defines this for functions which it implements
275522347Spst    to always fail with ENOSYS.  Some functions are actually named
275622347Spst    something starting with __ and the normal name is an alias.  */
275722347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
275822347Spstchoke me
275922347Spst#else
276022347Spst$ac_func();
276122347Spst#endif
276222347Spst
276322347Spst; return 0; }
276422347SpstEOF
276522347Spstif { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
276622347Spst  rm -rf conftest*
276722347Spst  eval "ac_cv_func_$ac_func=yes"
276822347Spstelse
276922347Spst  rm -rf conftest*
277022347Spst  eval "ac_cv_func_$ac_func=no"
277122347Spstfi
277222347Spstrm -f conftest*
277322347Spst
277422347Spstfi
277522347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
277622347Spst  echo "$ac_t""yes" 1>&6
277722347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
277822347Spst  cat >> confdefs.h <<EOF
277922347Spst#define $ac_tr_func 1
278022347SpstEOF
278122347Spst 
278222347Spstelse
278322347Spst  echo "$ac_t""no" 1>&6
278422347Spstfi
278522347Spstdone
278622347Spst
278722347Spstfi
278822347Spst
278922347Spstecho $ac_n "checking for getcwd""... $ac_c" 1>&6
279022347Spstif eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
279122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
279222347Spstelse
279322347Spst  cat > conftest.$ac_ext <<EOF
279422347Spst#line 2795 "configure"
279522347Spst#include "confdefs.h"
279622347Spst/* System header to define __stub macros and hopefully few prototypes,
279722347Spst    which can conflict with char getcwd(); below.  */
279822347Spst#include <assert.h>
279922347Spst/* Override any gcc2 internal prototype to avoid an error.  */
280022347Spst/* We use char because int might match the return type of a gcc2
280122347Spst    builtin and then its argument prototype would still apply.  */
280222347Spstchar getcwd();
280322347Spst
280422347Spstint main() { return 0; }
280522347Spstint t() {
280622347Spst
280722347Spst/* The GNU C library defines this for functions which it implements
280822347Spst    to always fail with ENOSYS.  Some functions are actually named
280922347Spst    something starting with __ and the normal name is an alias.  */
281022347Spst#if defined (__stub_getcwd) || defined (__stub___getcwd)
281122347Spstchoke me
281222347Spst#else
281322347Spstgetcwd();
281422347Spst#endif
281522347Spst
281622347Spst; return 0; }
281722347SpstEOF
281822347Spstif { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
281922347Spst  rm -rf conftest*
282022347Spst  eval "ac_cv_func_getcwd=yes"
282122347Spstelse
282222347Spst  rm -rf conftest*
282322347Spst  eval "ac_cv_func_getcwd=no"
282422347Spstfi
282522347Spstrm -f conftest*
282622347Spst
282722347Spstfi
282822347Spstif eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
282922347Spst  echo "$ac_t""yes" 1>&6
283022347Spst  :
283122347Spstelse
283222347Spst  echo "$ac_t""no" 1>&6
283322347SpstMISSING="${MISSING}getcwd.o "; for ac_func in getwd
283422347Spstdo
283522347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
283622347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
283722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
283822347Spstelse
283922347Spst  cat > conftest.$ac_ext <<EOF
284022347Spst#line 2841 "configure"
284122347Spst#include "confdefs.h"
284222347Spst/* System header to define __stub macros and hopefully few prototypes,
284322347Spst    which can conflict with char $ac_func(); below.  */
284422347Spst#include <assert.h>
284522347Spst/* Override any gcc2 internal prototype to avoid an error.  */
284622347Spst/* We use char because int might match the return type of a gcc2
284722347Spst    builtin and then its argument prototype would still apply.  */
284822347Spstchar $ac_func();
284922347Spst
285022347Spstint main() { return 0; }
285122347Spstint t() {
285222347Spst
285322347Spst/* The GNU C library defines this for functions which it implements
285422347Spst    to always fail with ENOSYS.  Some functions are actually named
285522347Spst    something starting with __ and the normal name is an alias.  */
285622347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
285722347Spstchoke me
285822347Spst#else
285922347Spst$ac_func();
286022347Spst#endif
286122347Spst
286222347Spst; return 0; }
286322347SpstEOF
286422347Spstif { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
286522347Spst  rm -rf conftest*
286622347Spst  eval "ac_cv_func_$ac_func=yes"
286722347Spstelse
286822347Spst  rm -rf conftest*
286922347Spst  eval "ac_cv_func_$ac_func=no"
287022347Spstfi
287122347Spstrm -f conftest*
287222347Spst
287322347Spstfi
287422347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
287522347Spst  echo "$ac_t""yes" 1>&6
287622347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
287722347Spst  cat >> confdefs.h <<EOF
287822347Spst#define $ac_tr_func 1
287922347SpstEOF
288022347Spst 
288122347Spstelse
288222347Spst  echo "$ac_t""no" 1>&6
288322347Spstfi
288422347Spstdone
288522347Spst
288622347Spstfi
288722347Spst
288822347Spstecho $ac_n "checking for getenv""... $ac_c" 1>&6
288922347Spstif eval "test \"`echo '$''{'ac_cv_func_getenv'+set}'`\" = set"; then
289022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
289122347Spstelse
289222347Spst  cat > conftest.$ac_ext <<EOF
289322347Spst#line 2894 "configure"
289422347Spst#include "confdefs.h"
289522347Spst/* System header to define __stub macros and hopefully few prototypes,
289622347Spst    which can conflict with char getenv(); below.  */
289722347Spst#include <assert.h>
289822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
289922347Spst/* We use char because int might match the return type of a gcc2
290022347Spst    builtin and then its argument prototype would still apply.  */
290122347Spstchar getenv();
290222347Spst
290322347Spstint main() { return 0; }
290422347Spstint t() {
290522347Spst
290622347Spst/* The GNU C library defines this for functions which it implements
290722347Spst    to always fail with ENOSYS.  Some functions are actually named
290822347Spst    something starting with __ and the normal name is an alias.  */
290922347Spst#if defined (__stub_getenv) || defined (__stub___getenv)
291022347Spstchoke me
291122347Spst#else
291222347Spstgetenv();
291322347Spst#endif
291422347Spst
291522347Spst; return 0; }
291622347SpstEOF
291722347Spstif { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
291822347Spst  rm -rf conftest*
291922347Spst  eval "ac_cv_func_getenv=yes"
292022347Spstelse
292122347Spst  rm -rf conftest*
292222347Spst  eval "ac_cv_func_getenv=no"
292322347Spstfi
292422347Spstrm -f conftest*
292522347Spst
292622347Spstfi
292722347Spstif eval "test \"`echo '$ac_cv_func_'getenv`\" = yes"; then
292822347Spst  echo "$ac_t""yes" 1>&6
292922347Spst  cat >> confdefs.h <<\EOF
293022347Spst#define HAVE_GETENV 1
293122347SpstEOF
293222347Spst
293322347Spstelse
293422347Spst  echo "$ac_t""no" 1>&6
293522347SpstMISSING="${MISSING}env.o "
293622347Spstfi
293722347Spst
293822347Spstecho $ac_n "checking for getutline""... $ac_c" 1>&6
293922347Spstif eval "test \"`echo '$''{'ac_cv_func_getutline'+set}'`\" = set"; then
294022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
294122347Spstelse
294222347Spst  cat > conftest.$ac_ext <<EOF
294322347Spst#line 2944 "configure"
294422347Spst#include "confdefs.h"
294522347Spst/* System header to define __stub macros and hopefully few prototypes,
294622347Spst    which can conflict with char getutline(); below.  */
294722347Spst#include <assert.h>
294822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
294922347Spst/* We use char because int might match the return type of a gcc2
295022347Spst    builtin and then its argument prototype would still apply.  */
295122347Spstchar getutline();
295222347Spst
295322347Spstint main() { return 0; }
295422347Spstint t() {
295522347Spst
295622347Spst/* The GNU C library defines this for functions which it implements
295722347Spst    to always fail with ENOSYS.  Some functions are actually named
295822347Spst    something starting with __ and the normal name is an alias.  */
295922347Spst#if defined (__stub_getutline) || defined (__stub___getutline)
296022347Spstchoke me
296122347Spst#else
296222347Spstgetutline();
296322347Spst#endif
296422347Spst
296522347Spst; return 0; }
296622347SpstEOF
296722347Spstif { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
296822347Spst  rm -rf conftest*
296922347Spst  eval "ac_cv_func_getutline=yes"
297022347Spstelse
297122347Spst  rm -rf conftest*
297222347Spst  eval "ac_cv_func_getutline=no"
297322347Spstfi
297422347Spstrm -f conftest*
297522347Spst
297622347Spstfi
297722347Spstif eval "test \"`echo '$ac_cv_func_'getutline`\" = yes"; then
297822347Spst  echo "$ac_t""yes" 1>&6
297922347Spst  :
298022347Spstelse
298122347Spst  echo "$ac_t""no" 1>&6
298222347SpstMISSING="${MISSING}getutline.o "; for ac_func in ttyslot
298322347Spstdo
298422347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
298522347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
298622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
298722347Spstelse
298822347Spst  cat > conftest.$ac_ext <<EOF
298922347Spst#line 2990 "configure"
299022347Spst#include "confdefs.h"
299122347Spst/* System header to define __stub macros and hopefully few prototypes,
299222347Spst    which can conflict with char $ac_func(); below.  */
299322347Spst#include <assert.h>
299422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
299522347Spst/* We use char because int might match the return type of a gcc2
299622347Spst    builtin and then its argument prototype would still apply.  */
299722347Spstchar $ac_func();
299822347Spst
299922347Spstint main() { return 0; }
300022347Spstint t() {
300122347Spst
300222347Spst/* The GNU C library defines this for functions which it implements
300322347Spst    to always fail with ENOSYS.  Some functions are actually named
300422347Spst    something starting with __ and the normal name is an alias.  */
300522347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
300622347Spstchoke me
300722347Spst#else
300822347Spst$ac_func();
300922347Spst#endif
301022347Spst
301122347Spst; return 0; }
301222347SpstEOF
301322347Spstif { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
301422347Spst  rm -rf conftest*
301522347Spst  eval "ac_cv_func_$ac_func=yes"
301622347Spstelse
301722347Spst  rm -rf conftest*
301822347Spst  eval "ac_cv_func_$ac_func=no"
301922347Spstfi
302022347Spstrm -f conftest*
302122347Spst
302222347Spstfi
302322347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
302422347Spst  echo "$ac_t""yes" 1>&6
302522347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
302622347Spst  cat >> confdefs.h <<EOF
302722347Spst#define $ac_tr_func 1
302822347SpstEOF
302922347Spst 
303022347Spstelse
303122347Spst  echo "$ac_t""no" 1>&6
303222347Spstfi
303322347Spstdone
303422347Spst
303522347Spstfi
303622347Spst
303722347Spstecho $ac_n "checking for pututline""... $ac_c" 1>&6
303822347Spstif eval "test \"`echo '$''{'ac_cv_func_pututline'+set}'`\" = set"; then
303922347Spst  echo $ac_n "(cached) $ac_c" 1>&6
304022347Spstelse
304122347Spst  cat > conftest.$ac_ext <<EOF
304222347Spst#line 3043 "configure"
304322347Spst#include "confdefs.h"
304422347Spst/* System header to define __stub macros and hopefully few prototypes,
304522347Spst    which can conflict with char pututline(); below.  */
304622347Spst#include <assert.h>
304722347Spst/* Override any gcc2 internal prototype to avoid an error.  */
304822347Spst/* We use char because int might match the return type of a gcc2
304922347Spst    builtin and then its argument prototype would still apply.  */
305022347Spstchar pututline();
305122347Spst
305222347Spstint main() { return 0; }
305322347Spstint t() {
305422347Spst
305522347Spst/* The GNU C library defines this for functions which it implements
305622347Spst    to always fail with ENOSYS.  Some functions are actually named
305722347Spst    something starting with __ and the normal name is an alias.  */
305822347Spst#if defined (__stub_pututline) || defined (__stub___pututline)
305922347Spstchoke me
306022347Spst#else
306122347Spstpututline();
306222347Spst#endif
306322347Spst
306422347Spst; return 0; }
306522347SpstEOF
306622347Spstif { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
306722347Spst  rm -rf conftest*
306822347Spst  eval "ac_cv_func_pututline=yes"
306922347Spstelse
307022347Spst  rm -rf conftest*
307122347Spst  eval "ac_cv_func_pututline=no"
307222347Spstfi
307322347Spstrm -f conftest*
307422347Spst
307522347Spstfi
307622347Spstif eval "test \"`echo '$ac_cv_func_'pututline`\" = yes"; then
307722347Spst  echo "$ac_t""yes" 1>&6
307822347Spst  :
307922347Spstelse
308022347Spst  echo "$ac_t""no" 1>&6
308122347SpstMISSING="${MISSING}pututline.o "; for ac_func in ttyslot
308222347Spstdo
308322347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
308422347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
308522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
308622347Spstelse
308722347Spst  cat > conftest.$ac_ext <<EOF
308822347Spst#line 3089 "configure"
308922347Spst#include "confdefs.h"
309022347Spst/* System header to define __stub macros and hopefully few prototypes,
309122347Spst    which can conflict with char $ac_func(); below.  */
309222347Spst#include <assert.h>
309322347Spst/* Override any gcc2 internal prototype to avoid an error.  */
309422347Spst/* We use char because int might match the return type of a gcc2
309522347Spst    builtin and then its argument prototype would still apply.  */
309622347Spstchar $ac_func();
309722347Spst
309822347Spstint main() { return 0; }
309922347Spstint t() {
310022347Spst
310122347Spst/* The GNU C library defines this for functions which it implements
310222347Spst    to always fail with ENOSYS.  Some functions are actually named
310322347Spst    something starting with __ and the normal name is an alias.  */
310422347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
310522347Spstchoke me
310622347Spst#else
310722347Spst$ac_func();
310822347Spst#endif
310922347Spst
311022347Spst; return 0; }
311122347SpstEOF
311222347Spstif { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
311322347Spst  rm -rf conftest*
311422347Spst  eval "ac_cv_func_$ac_func=yes"
311522347Spstelse
311622347Spst  rm -rf conftest*
311722347Spst  eval "ac_cv_func_$ac_func=no"
311822347Spstfi
311922347Spstrm -f conftest*
312022347Spst
312122347Spstfi
312222347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
312322347Spst  echo "$ac_t""yes" 1>&6
312422347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
312522347Spst  cat >> confdefs.h <<EOF
312622347Spst#define $ac_tr_func 1
312722347SpstEOF
312822347Spst 
312922347Spstelse
313022347Spst  echo "$ac_t""no" 1>&6
313122347Spstfi
313222347Spstdone
313322347Spst
313422347Spstfi
313522347Spst
313622347Spstecho $ac_n "checking for setenv""... $ac_c" 1>&6
313722347Spstif eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
313822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
313922347Spstelse
314022347Spst  cat > conftest.$ac_ext <<EOF
314122347Spst#line 3142 "configure"
314222347Spst#include "confdefs.h"
314322347Spst/* System header to define __stub macros and hopefully few prototypes,
314422347Spst    which can conflict with char setenv(); below.  */
314522347Spst#include <assert.h>
314622347Spst/* Override any gcc2 internal prototype to avoid an error.  */
314722347Spst/* We use char because int might match the return type of a gcc2
314822347Spst    builtin and then its argument prototype would still apply.  */
314922347Spstchar setenv();
315022347Spst
315122347Spstint main() { return 0; }
315222347Spstint t() {
315322347Spst
315422347Spst/* The GNU C library defines this for functions which it implements
315522347Spst    to always fail with ENOSYS.  Some functions are actually named
315622347Spst    something starting with __ and the normal name is an alias.  */
315722347Spst#if defined (__stub_setenv) || defined (__stub___setenv)
315822347Spstchoke me
315922347Spst#else
316022347Spstsetenv();
316122347Spst#endif
316222347Spst
316322347Spst; return 0; }
316422347SpstEOF
316522347Spstif { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
316622347Spst  rm -rf conftest*
316722347Spst  eval "ac_cv_func_setenv=yes"
316822347Spstelse
316922347Spst  rm -rf conftest*
317022347Spst  eval "ac_cv_func_setenv=no"
317122347Spstfi
317222347Spstrm -f conftest*
317322347Spst
317422347Spstfi
317522347Spstif eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
317622347Spst  echo "$ac_t""yes" 1>&6
317722347Spst  cat >> confdefs.h <<\EOF
317822347Spst#define HAVE_SETENV 1
317922347SpstEOF
318022347Spst
318122347Spstelse
318222347Spst  echo "$ac_t""no" 1>&6
318322347SpstMISSING="${MISSING}env.o "
318422347Spstfi
318522347Spst
318622347Spstecho $ac_n "checking for sigprocmask""... $ac_c" 1>&6
318722347Spstif eval "test \"`echo '$''{'ac_cv_func_sigprocmask'+set}'`\" = set"; then
318822347Spst  echo $ac_n "(cached) $ac_c" 1>&6
318922347Spstelse
319022347Spst  cat > conftest.$ac_ext <<EOF
319122347Spst#line 3192 "configure"
319222347Spst#include "confdefs.h"
319322347Spst/* System header to define __stub macros and hopefully few prototypes,
319422347Spst    which can conflict with char sigprocmask(); below.  */
319522347Spst#include <assert.h>
319622347Spst/* Override any gcc2 internal prototype to avoid an error.  */
319722347Spst/* We use char because int might match the return type of a gcc2
319822347Spst    builtin and then its argument prototype would still apply.  */
319922347Spstchar sigprocmask();
320022347Spst
320122347Spstint main() { return 0; }
320222347Spstint t() {
320322347Spst
320422347Spst/* The GNU C library defines this for functions which it implements
320522347Spst    to always fail with ENOSYS.  Some functions are actually named
320622347Spst    something starting with __ and the normal name is an alias.  */
320722347Spst#if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
320822347Spstchoke me
320922347Spst#else
321022347Spstsigprocmask();
321122347Spst#endif
321222347Spst
321322347Spst; return 0; }
321422347SpstEOF
321522347Spstif { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
321622347Spst  rm -rf conftest*
321722347Spst  eval "ac_cv_func_sigprocmask=yes"
321822347Spstelse
321922347Spst  rm -rf conftest*
322022347Spst  eval "ac_cv_func_sigprocmask=no"
322122347Spstfi
322222347Spstrm -f conftest*
322322347Spst
322422347Spstfi
322522347Spstif eval "test \"`echo '$ac_cv_func_'sigprocmask`\" = yes"; then
322622347Spst  echo "$ac_t""yes" 1>&6
322722347Spst  :
322822347Spstelse
322922347Spst  echo "$ac_t""no" 1>&6
323022347SpstMISSING="${MISSING}sigprocmask.o "; for ac_func in sigblock sigsetmask
323122347Spstdo
323222347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
323322347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
323422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
323522347Spstelse
323622347Spst  cat > conftest.$ac_ext <<EOF
323722347Spst#line 3238 "configure"
323822347Spst#include "confdefs.h"
323922347Spst/* System header to define __stub macros and hopefully few prototypes,
324022347Spst    which can conflict with char $ac_func(); below.  */
324122347Spst#include <assert.h>
324222347Spst/* Override any gcc2 internal prototype to avoid an error.  */
324322347Spst/* We use char because int might match the return type of a gcc2
324422347Spst    builtin and then its argument prototype would still apply.  */
324522347Spstchar $ac_func();
324622347Spst
324722347Spstint main() { return 0; }
324822347Spstint t() {
324922347Spst
325022347Spst/* The GNU C library defines this for functions which it implements
325122347Spst    to always fail with ENOSYS.  Some functions are actually named
325222347Spst    something starting with __ and the normal name is an alias.  */
325322347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
325422347Spstchoke me
325522347Spst#else
325622347Spst$ac_func();
325722347Spst#endif
325822347Spst
325922347Spst; return 0; }
326022347SpstEOF
326122347Spstif { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
326222347Spst  rm -rf conftest*
326322347Spst  eval "ac_cv_func_$ac_func=yes"
326422347Spstelse
326522347Spst  rm -rf conftest*
326622347Spst  eval "ac_cv_func_$ac_func=no"
326722347Spstfi
326822347Spstrm -f conftest*
326922347Spst
327022347Spstfi
327122347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
327222347Spst  echo "$ac_t""yes" 1>&6
327322347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
327422347Spst  cat >> confdefs.h <<EOF
327522347Spst#define $ac_tr_func 1
327622347SpstEOF
327722347Spst 
327822347Spstelse
327922347Spst  echo "$ac_t""no" 1>&6
328022347Spstfi
328122347Spstdone
328222347Spst
328322347Spstfi
328422347Spst
328522347Spstecho $ac_n "checking for strchr""... $ac_c" 1>&6
328622347Spstif eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
328722347Spst  echo $ac_n "(cached) $ac_c" 1>&6
328822347Spstelse
328922347Spst  cat > conftest.$ac_ext <<EOF
329022347Spst#line 3291 "configure"
329122347Spst#include "confdefs.h"
329222347Spst/* System header to define __stub macros and hopefully few prototypes,
329322347Spst    which can conflict with char strchr(); below.  */
329422347Spst#include <assert.h>
329522347Spst/* Override any gcc2 internal prototype to avoid an error.  */
329622347Spst/* We use char because int might match the return type of a gcc2
329722347Spst    builtin and then its argument prototype would still apply.  */
329822347Spstchar strchr();
329922347Spst
330022347Spstint main() { return 0; }
330122347Spstint t() {
330222347Spst
330322347Spst/* The GNU C library defines this for functions which it implements
330422347Spst    to always fail with ENOSYS.  Some functions are actually named
330522347Spst    something starting with __ and the normal name is an alias.  */
330622347Spst#if defined (__stub_strchr) || defined (__stub___strchr)
330722347Spstchoke me
330822347Spst#else
330922347Spststrchr();
331022347Spst#endif
331122347Spst
331222347Spst; return 0; }
331322347SpstEOF
331422347Spstif { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
331522347Spst  rm -rf conftest*
331622347Spst  eval "ac_cv_func_strchr=yes"
331722347Spstelse
331822347Spst  rm -rf conftest*
331922347Spst  eval "ac_cv_func_strchr=no"
332022347Spstfi
332122347Spstrm -f conftest*
332222347Spst
332322347Spstfi
332422347Spstif eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
332522347Spst  echo "$ac_t""yes" 1>&6
332622347Spst  :
332722347Spstelse
332822347Spst  echo "$ac_t""no" 1>&6
332922347SpstMISSING="${MISSING}strchr.o "; for ac_func in index
333022347Spstdo
333122347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
333222347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
333322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
333422347Spstelse
333522347Spst  cat > conftest.$ac_ext <<EOF
333622347Spst#line 3337 "configure"
333722347Spst#include "confdefs.h"
333822347Spst/* System header to define __stub macros and hopefully few prototypes,
333922347Spst    which can conflict with char $ac_func(); below.  */
334022347Spst#include <assert.h>
334122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
334222347Spst/* We use char because int might match the return type of a gcc2
334322347Spst    builtin and then its argument prototype would still apply.  */
334422347Spstchar $ac_func();
334522347Spst
334622347Spstint main() { return 0; }
334722347Spstint t() {
334822347Spst
334922347Spst/* The GNU C library defines this for functions which it implements
335022347Spst    to always fail with ENOSYS.  Some functions are actually named
335122347Spst    something starting with __ and the normal name is an alias.  */
335222347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
335322347Spstchoke me
335422347Spst#else
335522347Spst$ac_func();
335622347Spst#endif
335722347Spst
335822347Spst; return 0; }
335922347SpstEOF
336022347Spstif { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
336122347Spst  rm -rf conftest*
336222347Spst  eval "ac_cv_func_$ac_func=yes"
336322347Spstelse
336422347Spst  rm -rf conftest*
336522347Spst  eval "ac_cv_func_$ac_func=no"
336622347Spstfi
336722347Spstrm -f conftest*
336822347Spst
336922347Spstfi
337022347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
337122347Spst  echo "$ac_t""yes" 1>&6
337222347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
337322347Spst  cat >> confdefs.h <<EOF
337422347Spst#define $ac_tr_func 1
337522347SpstEOF
337622347Spst 
337722347Spstelse
337822347Spst  echo "$ac_t""no" 1>&6
337922347Spstfi
338022347Spstdone
338122347Spst
338222347Spstfi
338322347Spst
338422347Spstecho $ac_n "checking for strrchr""... $ac_c" 1>&6
338522347Spstif eval "test \"`echo '$''{'ac_cv_func_strrchr'+set}'`\" = set"; then
338622347Spst  echo $ac_n "(cached) $ac_c" 1>&6
338722347Spstelse
338822347Spst  cat > conftest.$ac_ext <<EOF
338922347Spst#line 3390 "configure"
339022347Spst#include "confdefs.h"
339122347Spst/* System header to define __stub macros and hopefully few prototypes,
339222347Spst    which can conflict with char strrchr(); below.  */
339322347Spst#include <assert.h>
339422347Spst/* Override any gcc2 internal prototype to avoid an error.  */
339522347Spst/* We use char because int might match the return type of a gcc2
339622347Spst    builtin and then its argument prototype would still apply.  */
339722347Spstchar strrchr();
339822347Spst
339922347Spstint main() { return 0; }
340022347Spstint t() {
340122347Spst
340222347Spst/* The GNU C library defines this for functions which it implements
340322347Spst    to always fail with ENOSYS.  Some functions are actually named
340422347Spst    something starting with __ and the normal name is an alias.  */
340522347Spst#if defined (__stub_strrchr) || defined (__stub___strrchr)
340622347Spstchoke me
340722347Spst#else
340822347Spststrrchr();
340922347Spst#endif
341022347Spst
341122347Spst; return 0; }
341222347SpstEOF
341322347Spstif { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
341422347Spst  rm -rf conftest*
341522347Spst  eval "ac_cv_func_strrchr=yes"
341622347Spstelse
341722347Spst  rm -rf conftest*
341822347Spst  eval "ac_cv_func_strrchr=no"
341922347Spstfi
342022347Spstrm -f conftest*
342122347Spst
342222347Spstfi
342322347Spstif eval "test \"`echo '$ac_cv_func_'strrchr`\" = yes"; then
342422347Spst  echo "$ac_t""yes" 1>&6
342522347Spst  :
342622347Spstelse
342722347Spst  echo "$ac_t""no" 1>&6
342822347SpstMISSING="${MISSING}strrchr.o "; for ac_func in rindex
342922347Spstdo
343022347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
343122347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
343222347Spst  echo $ac_n "(cached) $ac_c" 1>&6
343322347Spstelse
343422347Spst  cat > conftest.$ac_ext <<EOF
343522347Spst#line 3436 "configure"
343622347Spst#include "confdefs.h"
343722347Spst/* System header to define __stub macros and hopefully few prototypes,
343822347Spst    which can conflict with char $ac_func(); below.  */
343922347Spst#include <assert.h>
344022347Spst/* Override any gcc2 internal prototype to avoid an error.  */
344122347Spst/* We use char because int might match the return type of a gcc2
344222347Spst    builtin and then its argument prototype would still apply.  */
344322347Spstchar $ac_func();
344422347Spst
344522347Spstint main() { return 0; }
344622347Spstint t() {
344722347Spst
344822347Spst/* The GNU C library defines this for functions which it implements
344922347Spst    to always fail with ENOSYS.  Some functions are actually named
345022347Spst    something starting with __ and the normal name is an alias.  */
345122347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
345222347Spstchoke me
345322347Spst#else
345422347Spst$ac_func();
345522347Spst#endif
345622347Spst
345722347Spst; return 0; }
345822347SpstEOF
345922347Spstif { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
346022347Spst  rm -rf conftest*
346122347Spst  eval "ac_cv_func_$ac_func=yes"
346222347Spstelse
346322347Spst  rm -rf conftest*
346422347Spst  eval "ac_cv_func_$ac_func=no"
346522347Spstfi
346622347Spstrm -f conftest*
346722347Spst
346822347Spstfi
346922347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
347022347Spst  echo "$ac_t""yes" 1>&6
347122347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
347222347Spst  cat >> confdefs.h <<EOF
347322347Spst#define $ac_tr_func 1
347422347SpstEOF
347522347Spst 
347622347Spstelse
347722347Spst  echo "$ac_t""no" 1>&6
347822347Spstfi
347922347Spstdone
348022347Spst
348122347Spstfi
348222347Spst
348322347Spstecho $ac_n "checking for sysconf""... $ac_c" 1>&6
348422347Spstif eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
348522347Spst  echo $ac_n "(cached) $ac_c" 1>&6
348622347Spstelse
348722347Spst  cat > conftest.$ac_ext <<EOF
348822347Spst#line 3489 "configure"
348922347Spst#include "confdefs.h"
349022347Spst/* System header to define __stub macros and hopefully few prototypes,
349122347Spst    which can conflict with char sysconf(); below.  */
349222347Spst#include <assert.h>
349322347Spst/* Override any gcc2 internal prototype to avoid an error.  */
349422347Spst/* We use char because int might match the return type of a gcc2
349522347Spst    builtin and then its argument prototype would still apply.  */
349622347Spstchar sysconf();
349722347Spst
349822347Spstint main() { return 0; }
349922347Spstint t() {
350022347Spst
350122347Spst/* The GNU C library defines this for functions which it implements
350222347Spst    to always fail with ENOSYS.  Some functions are actually named
350322347Spst    something starting with __ and the normal name is an alias.  */
350422347Spst#if defined (__stub_sysconf) || defined (__stub___sysconf)
350522347Spstchoke me
350622347Spst#else
350722347Spstsysconf();
350822347Spst#endif
350922347Spst
351022347Spst; return 0; }
351122347SpstEOF
351222347Spstif { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
351322347Spst  rm -rf conftest*
351422347Spst  eval "ac_cv_func_sysconf=yes"
351522347Spstelse
351622347Spst  rm -rf conftest*
351722347Spst  eval "ac_cv_func_sysconf=no"
351822347Spstfi
351922347Spstrm -f conftest*
352022347Spst
352122347Spstfi
352222347Spstif eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
352322347Spst  echo "$ac_t""yes" 1>&6
352422347Spst  :
352522347Spstelse
352622347Spst  echo "$ac_t""no" 1>&6
352722347SpstMISSING="${MISSING}sysconf.o "; for ac_func in getdtablesize
352822347Spstdo
352922347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
353022347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
353122347Spst  echo $ac_n "(cached) $ac_c" 1>&6
353222347Spstelse
353322347Spst  cat > conftest.$ac_ext <<EOF
353422347Spst#line 3535 "configure"
353522347Spst#include "confdefs.h"
353622347Spst/* System header to define __stub macros and hopefully few prototypes,
353722347Spst    which can conflict with char $ac_func(); below.  */
353822347Spst#include <assert.h>
353922347Spst/* Override any gcc2 internal prototype to avoid an error.  */
354022347Spst/* We use char because int might match the return type of a gcc2
354122347Spst    builtin and then its argument prototype would still apply.  */
354222347Spstchar $ac_func();
354322347Spst
354422347Spstint main() { return 0; }
354522347Spstint t() {
354622347Spst
354722347Spst/* The GNU C library defines this for functions which it implements
354822347Spst    to always fail with ENOSYS.  Some functions are actually named
354922347Spst    something starting with __ and the normal name is an alias.  */
355022347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
355122347Spstchoke me
355222347Spst#else
355322347Spst$ac_func();
355422347Spst#endif
355522347Spst
355622347Spst; return 0; }
355722347SpstEOF
355822347Spstif { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
355922347Spst  rm -rf conftest*
356022347Spst  eval "ac_cv_func_$ac_func=yes"
356122347Spstelse
356222347Spst  rm -rf conftest*
356322347Spst  eval "ac_cv_func_$ac_func=no"
356422347Spstfi
356522347Spstrm -f conftest*
356622347Spst
356722347Spstfi
356822347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
356922347Spst  echo "$ac_t""yes" 1>&6
357022347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
357122347Spst  cat >> confdefs.h <<EOF
357222347Spst#define $ac_tr_func 1
357322347SpstEOF
357422347Spst 
357522347Spstelse
357622347Spst  echo "$ac_t""no" 1>&6
357722347Spstfi
357822347Spstdone
357922347Spst
358022347Spstfi
358122347Spst
358222347Spstecho $ac_n "checking for uname""... $ac_c" 1>&6
358322347Spstif eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
358422347Spst  echo $ac_n "(cached) $ac_c" 1>&6
358522347Spstelse
358622347Spst  cat > conftest.$ac_ext <<EOF
358722347Spst#line 3588 "configure"
358822347Spst#include "confdefs.h"
358922347Spst/* System header to define __stub macros and hopefully few prototypes,
359022347Spst    which can conflict with char uname(); below.  */
359122347Spst#include <assert.h>
359222347Spst/* Override any gcc2 internal prototype to avoid an error.  */
359322347Spst/* We use char because int might match the return type of a gcc2
359422347Spst    builtin and then its argument prototype would still apply.  */
359522347Spstchar uname();
359622347Spst
359722347Spstint main() { return 0; }
359822347Spstint t() {
359922347Spst
360022347Spst/* The GNU C library defines this for functions which it implements
360122347Spst    to always fail with ENOSYS.  Some functions are actually named
360222347Spst    something starting with __ and the normal name is an alias.  */
360322347Spst#if defined (__stub_uname) || defined (__stub___uname)
360422347Spstchoke me
360522347Spst#else
360622347Spstuname();
360722347Spst#endif
360822347Spst
360922347Spst; return 0; }
361022347SpstEOF
361122347Spstif { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
361222347Spst  rm -rf conftest*
361322347Spst  eval "ac_cv_func_uname=yes"
361422347Spstelse
361522347Spst  rm -rf conftest*
361622347Spst  eval "ac_cv_func_uname=no"
361722347Spstfi
361822347Spstrm -f conftest*
361922347Spst
362022347Spstfi
362122347Spstif eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
362222347Spst  echo "$ac_t""yes" 1>&6
362322347Spst  :
362422347Spstelse
362522347Spst  echo "$ac_t""no" 1>&6
362622347SpstMISSING="${MISSING}uname.o "; for ac_func in gethostname
362722347Spstdo
362822347Spstecho $ac_n "checking for $ac_func""... $ac_c" 1>&6
362922347Spstif eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
363022347Spst  echo $ac_n "(cached) $ac_c" 1>&6
363122347Spstelse
363222347Spst  cat > conftest.$ac_ext <<EOF
363322347Spst#line 3634 "configure"
363422347Spst#include "confdefs.h"
363522347Spst/* System header to define __stub macros and hopefully few prototypes,
363622347Spst    which can conflict with char $ac_func(); below.  */
363722347Spst#include <assert.h>
363822347Spst/* Override any gcc2 internal prototype to avoid an error.  */
363922347Spst/* We use char because int might match the return type of a gcc2
364022347Spst    builtin and then its argument prototype would still apply.  */
364122347Spstchar $ac_func();
364222347Spst
364322347Spstint main() { return 0; }
364422347Spstint t() {
364522347Spst
364622347Spst/* The GNU C library defines this for functions which it implements
364722347Spst    to always fail with ENOSYS.  Some functions are actually named
364822347Spst    something starting with __ and the normal name is an alias.  */
364922347Spst#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
365022347Spstchoke me
365122347Spst#else
365222347Spst$ac_func();
365322347Spst#endif
365422347Spst
365522347Spst; return 0; }
365622347SpstEOF
365722347Spstif { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
365822347Spst  rm -rf conftest*
365922347Spst  eval "ac_cv_func_$ac_func=yes"
366022347Spstelse
366122347Spst  rm -rf conftest*
366222347Spst  eval "ac_cv_func_$ac_func=no"
366322347Spstfi
366422347Spstrm -f conftest*
366522347Spst
366622347Spstfi
366722347Spstif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
366822347Spst  echo "$ac_t""yes" 1>&6
366922347Spst    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
367022347Spst  cat >> confdefs.h <<EOF
367122347Spst#define $ac_tr_func 1
367222347SpstEOF
367322347Spst 
367422347Spstelse
367522347Spst  echo "$ac_t""no" 1>&6
367622347Spstfi
367722347Spstdone
367822347Spst
367922347Spstfi
368022347Spst
368122347Spstecho $ac_n "checking for unsetenv""... $ac_c" 1>&6
368222347Spstif eval "test \"`echo '$''{'ac_cv_func_unsetenv'+set}'`\" = set"; then
368322347Spst  echo $ac_n "(cached) $ac_c" 1>&6
368422347Spstelse
368522347Spst  cat > conftest.$ac_ext <<EOF
368622347Spst#line 3687 "configure"
368722347Spst#include "confdefs.h"
368822347Spst/* System header to define __stub macros and hopefully few prototypes,
368922347Spst    which can conflict with char unsetenv(); below.  */
369022347Spst#include <assert.h>
369122347Spst/* Override any gcc2 internal prototype to avoid an error.  */
369222347Spst/* We use char because int might match the return type of a gcc2
369322347Spst    builtin and then its argument prototype would still apply.  */
369422347Spstchar unsetenv();
369522347Spst
369622347Spstint main() { return 0; }
369722347Spstint t() {
369822347Spst
369922347Spst/* The GNU C library defines this for functions which it implements
370022347Spst    to always fail with ENOSYS.  Some functions are actually named
370122347Spst    something starting with __ and the normal name is an alias.  */
370222347Spst#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
370322347Spstchoke me
370422347Spst#else
370522347Spstunsetenv();
370622347Spst#endif
370722347Spst
370822347Spst; return 0; }
370922347SpstEOF
371022347Spstif { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
371122347Spst  rm -rf conftest*
371222347Spst  eval "ac_cv_func_unsetenv=yes"
371322347Spstelse
371422347Spst  rm -rf conftest*
371522347Spst  eval "ac_cv_func_unsetenv=no"
371622347Spstfi
371722347Spstrm -f conftest*
371822347Spst
371922347Spstfi
372022347Spstif eval "test \"`echo '$ac_cv_func_'unsetenv`\" = yes"; then
372122347Spst  echo "$ac_t""yes" 1>&6
372222347Spst  cat >> confdefs.h <<\EOF
372322347Spst#define HAVE_UNSETENV 1
372422347SpstEOF
372522347Spst
372622347Spstelse
372722347Spst  echo "$ac_t""no" 1>&6
372822347SpstMISSING="${MISSING}env.o "
372922347Spstfi
373022347Spst
373122347Spst
373222347Spst
373322347Spstecho $ac_n "checking for nonstandard gettimeofday""... $ac_c" 1>&6
373422347Spstcat > conftest.$ac_ext <<EOF
373522347Spst#line 3736 "configure"
373622347Spst#include "confdefs.h"
373722347Spst
373822347Spst#if HAVE_SYS_TIME_H
373922347Spst#include <sys/time.h>
374022347Spst#endif /* HAVE_SYS_TIME_H */
374122347Spst#if HAVE_UNISTD_H
374222347Spst#include <unistd.h>
374322347Spst#endif /* HAVE_UNISTD_H */
374422347Spst
374522347Spstint main() { return 0; }
374622347Spstint t() {
374722347Spststruct timeval tv;
374822347Spstgettimeofday(&tv, NULL)
374922347Spst; return 0; }
375022347SpstEOF
375122347Spstif { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
375222347Spst  rm -rf conftest*
375322347Spst  echo "$ac_t""no" 1>&6
375422347Spstelse
375522347Spst  rm -rf conftest*
375622347Spst  echo "$ac_t""maybe" 1>&6 cat > conftest.$ac_ext <<EOF
375722347Spst#line 3758 "configure"
375822347Spst#include "confdefs.h"
375922347Spst
376022347Spst#if HAVE_SYS_TIME_H
376122347Spst#include <sys/time.h>
376222347Spst#endif /* HAVE_SYS_TIME_H */
376322347Spst#if HAVE_UNISTD_H
376422347Spst#include <unistd.h>
376522347Spst#endif /* HAVE_UNISTD_H */
376622347Spst
376722347Spstint main() { return 0; }
376822347Spstint t() {
376922347Spststruct timeval tv;
377022347Spstgettimeofday(&tv)
377122347Spst; return 0; }
377222347SpstEOF
377322347Spstif { (eval echo configure:3774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
377422347Spst  rm -rf conftest*
377522347Spst  cat >> confdefs.h <<\EOF
377622347Spst#define HAVE_ONE_ARG_GETTIMEOFDAY 1
377722347SpstEOF
377822347Spst echo "$ac_t""yes" 1>&6
377922347Spstelse
378022347Spst  rm -rf conftest*
378122347Spst  echo "$ac_t""no" 1>&6
378222347Spstfi
378322347Spstrm -f conftest*
378422347Spst
378522347Spstfi
378622347Spstrm -f conftest*
378722347Spst
378822347Spst
378922347Spst# Munge out LOCALBIN and LOCALMAN in canonical (no bletch) form
379022347Spsttrap '' 1 2 15
379122347Spstcat > confcache <<\EOF
379222347Spst# This file is a shell script that caches the results of configure
379322347Spst# tests run on this system so they can be shared between configure
379422347Spst# scripts and configure runs.  It is not useful on other systems.
379522347Spst# If it contains results you don't want to keep, you may remove or edit it.
379622347Spst#
379722347Spst# By default, configure uses ./config.cache as the cache file,
379822347Spst# creating it if it does not exist already.  You can give configure
379922347Spst# the --cache-file=FILE option to use a different cache file; that is
380022347Spst# what configure does when it calls configure scripts in
380122347Spst# subdirectories, so they share the cache.
380222347Spst# Giving --cache-file=/dev/null disables caching, for debugging configure.
380322347Spst# config.status only pays attention to the cache file if you give it the
380422347Spst# --recheck option to rerun configure.
380522347Spst#
380622347SpstEOF
380722347Spst# Ultrix sh set writes to stderr and can't be redirected directly,
380822347Spst# and sets the high bit in the cache file unless we assign to the vars.
380922347Spst(set) 2>&1 |
381022347Spst  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
381122347Spst  >> confcache
381222347Spstif cmp -s $cache_file confcache; then
381322347Spst  :
381422347Spstelse
381522347Spst  if test -w $cache_file; then
381622347Spst    echo "updating cache $cache_file"
381722347Spst    cat confcache > $cache_file
381822347Spst  else
381922347Spst    echo "not updating unwritable cache $cache_file"
382022347Spst  fi
382122347Spstfi
382222347Spstrm -f confcache
382322347Spst
382422347Spsttrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
382522347Spst
382622347Spsttest "x$prefix" = xNONE && prefix=$ac_default_prefix
382722347Spst# Let make expand exec_prefix.
382822347Spsttest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
382922347Spst
383022347Spst# Any assignment to VPATH causes Sun make to only execute
383122347Spst# the first set of double-colon rules, so remove it if not needed.
383222347Spst# If there is a colon in the path, we need to keep it.
383322347Spstif test "x$srcdir" = x.; then
383422347Spst  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
383522347Spstfi
383622347Spst
383722347Spsttrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
383822347Spst
383922347SpstDEFS=-DHAVE_CONFIG_H
384022347Spst
384122347Spst# Without the "./", some shells look in PATH for config.status.
384222347Spst: ${CONFIG_STATUS=./config.status}
384322347Spst
384422347Spstecho creating $CONFIG_STATUS
384522347Spstrm -f $CONFIG_STATUS
384622347Spstcat > $CONFIG_STATUS <<EOF
384722347Spst#! /bin/sh
384822347Spst# Generated automatically by configure.
384922347Spst# Run this file to recreate the current configuration.
385022347Spst# This directory was configured as follows,
385122347Spst# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
385222347Spst#
385322347Spst# $0 $ac_configure_args
385422347Spst#
385522347Spst# Compiler output produced by configure, useful for debugging
385622347Spst# configure, is in ./config.log if it exists.
385722347Spst
385822347Spstac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
385922347Spstfor ac_option
386022347Spstdo
386122347Spst  case "\$ac_option" in
386222347Spst  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
386322347Spst    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
386422347Spst    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
386522347Spst  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
386622347Spst    echo "$CONFIG_STATUS generated by autoconf version 2.10"
386722347Spst    exit 0 ;;
386822347Spst  -help | --help | --hel | --he | --h)
386922347Spst    echo "\$ac_cs_usage"; exit 0 ;;
387022347Spst  *) echo "\$ac_cs_usage"; exit 1 ;;
387122347Spst  esac
387222347Spstdone
387322347Spst
387422347Spstac_given_srcdir=$srcdir
387522347Spst
387622347Spsttrap 'rm -fr `echo "configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
387722347SpstEOF
387822347Spstcat >> $CONFIG_STATUS <<EOF
387922347Spst
388022347Spst# Protect against being on the right side of a sed subst in config.status.
388122347Spstsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
388222347Spst s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
388322347Spst$ac_vpsub
388422347Spst$extrasub
388522347Spsts%@CFLAGS@%$CFLAGS%g
388622347Spsts%@CPPFLAGS@%$CPPFLAGS%g
388722347Spsts%@CXXFLAGS@%$CXXFLAGS%g
388822347Spsts%@DEFS@%$DEFS%g
388922347Spsts%@LDFLAGS@%$LDFLAGS%g
389022347Spsts%@LIBS@%$LIBS%g
389122347Spsts%@exec_prefix@%$exec_prefix%g
389222347Spsts%@prefix@%$prefix%g
389322347Spsts%@program_transform_name@%$program_transform_name%g
389422347Spsts%@bindir@%$bindir%g
389522347Spsts%@sbindir@%$sbindir%g
389622347Spsts%@libexecdir@%$libexecdir%g
389722347Spsts%@datadir@%$datadir%g
389822347Spsts%@sysconfdir@%$sysconfdir%g
389922347Spsts%@sharedstatedir@%$sharedstatedir%g
390022347Spsts%@localstatedir@%$localstatedir%g
390122347Spsts%@libdir@%$libdir%g
390222347Spsts%@includedir@%$includedir%g
390322347Spsts%@oldincludedir@%$oldincludedir%g
390422347Spsts%@infodir@%$infodir%g
390522347Spsts%@mandir@%$mandir%g
390622347Spsts%@CC@%$CC%g
390722347Spsts%@CPP@%$CPP%g
390822347Spsts%@LN_S@%$LN_S%g
390922347Spsts%@RANLIB@%$RANLIB%g
391022347Spsts%@YACC@%$YACC%g
391122347Spsts%@CHOWN@%$CHOWN%g
391222347Spsts%@SU@%$SU%g
391322347Spsts%@ALT_SU@%$ALT_SU%g
391422347Spsts%@SCHEME@%$SCHEME%g
391522347Spsts%@LOGIN@%$LOGIN%g
391622347Spsts%@FTPD@%$FTPD%g
391722347Spsts%@INFTPD@%$INFTPD%g
391822347Spsts%@EXISTS@%$EXISTS%g
391922347Spsts%@MKDIR@%$MKDIR%g
392022347Spsts%@LIBOBJS@%$LIBOBJS%g
392122347Spsts%@ALLOCA@%$ALLOCA%g
392222347Spsts%@MISSING@%$MISSING%g
392322347Spst
392422347SpstCEOF
392522347SpstEOF
392622347Spstcat >> $CONFIG_STATUS <<EOF
392722347Spst
392822347SpstCONFIG_FILES=\${CONFIG_FILES-"configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in"}
392922347SpstEOF
393022347Spstcat >> $CONFIG_STATUS <<\EOF
393122347Spstfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
393222347Spst  # Support "outfile[:infile]", defaulting infile="outfile.in".
393322347Spst  case "$ac_file" in
393422347Spst  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
393522347Spst       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
393622347Spst  *) ac_file_in="${ac_file}.in" ;;
393722347Spst  esac
393822347Spst
393922347Spst  # Adjust relative srcdir, etc. for subdirectories.
394022347Spst
394122347Spst  # Remove last slash and all that follows it.  Not all systems have dirname.
394222347Spst  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
394322347Spst  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
394422347Spst    # The file is in a subdirectory.
394522347Spst    test ! -d "$ac_dir" && mkdir "$ac_dir"
394622347Spst    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
394722347Spst    # A "../" for each directory in $ac_dir_suffix.
394822347Spst    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
394922347Spst  else
395022347Spst    ac_dir_suffix= ac_dots=
395122347Spst  fi
395222347Spst
395322347Spst  case "$ac_given_srcdir" in
395422347Spst  .)  srcdir=.
395522347Spst      if test -z "$ac_dots"; then top_srcdir=.
395622347Spst      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
395722347Spst  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
395822347Spst  *) # Relative path.
395922347Spst    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
396022347Spst    top_srcdir="$ac_dots$ac_given_srcdir" ;;
396122347Spst  esac
396222347Spst
396322347Spst  echo creating "$ac_file"
396422347Spst  rm -f "$ac_file"
396522347Spst  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
396622347Spst  case "$ac_file" in
396722347Spst  *Makefile*) ac_comsub="1i\\
396822347Spst# $configure_input" ;;
396922347Spst  *) ac_comsub= ;;
397022347Spst  esac
397122347Spst  sed -e "$ac_comsub
397222347Spsts%@configure_input@%$configure_input%g
397322347Spsts%@srcdir@%$srcdir%g
397422347Spsts%@top_srcdir@%$top_srcdir%g
397522347Spst" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
397622347Spstfi; done
397722347Spstrm -f conftest.subs
397822347Spst
397922347Spst# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
398022347Spst# NAME is the cpp macro being defined and VALUE is the value it is being given.
398122347Spst#
398222347Spst# ac_d sets the value in "#define NAME VALUE" lines.
398322347Spstac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
398422347Spstac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
398522347Spstac_dC='\3'
398622347Spstac_dD='%g'
398722347Spst# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
398822347Spstac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
398922347Spstac_uB='\([ 	]\)%\1#\2define\3'
399022347Spstac_uC=' '
399122347Spstac_uD='\4%g'
399222347Spst# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
399322347Spstac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
399422347Spstac_eB='$%\1#\2define\3'
399522347Spstac_eC=' '
399622347Spstac_eD='%g'
399722347Spst
399822347SpstCONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
399922347Spstfor ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
400022347Spst  # Support "outfile[:infile]", defaulting infile="outfile.in".
400122347Spst  case "$ac_file" in
400222347Spst  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
400322347Spst       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
400422347Spst  *) ac_file_in="${ac_file}.in" ;;
400522347Spst  esac
400622347Spst
400722347Spst  echo creating $ac_file
400822347Spst
400922347Spst  rm -f conftest.frag conftest.in conftest.out
401022347Spst  cp $ac_given_srcdir/$ac_file_in conftest.in
401122347Spst
401222347SpstEOF
401322347Spst
401422347Spst# Transform confdefs.h into a sed script conftest.vals that substitutes
401522347Spst# the proper values into config.h.in to produce config.h.  And first:
401622347Spst# Protect against being on the right side of a sed subst in config.status.
401722347Spst# Protect against being in an unquoted here document in config.status.
401822347Spstrm -f conftest.vals
401922347Spstcat > conftest.hdr <<\EOF
402022347Spsts/[\\&%]/\\&/g
402122347Spsts%[\\$`]%\\&%g
402222347Spsts%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
402322347Spsts%ac_d%ac_u%gp
402422347Spsts%ac_u%ac_e%gp
402522347SpstEOF
402622347Spstsed -n -f conftest.hdr confdefs.h > conftest.vals
402722347Spstrm -f conftest.hdr
402822347Spst
402922347Spst# This sed command replaces #undef with comments.  This is necessary, for
403022347Spst# example, in the case of _POSIX_SOURCE, which is predefined and required
403122347Spst# on some systems where configure will not decide to define it.
403222347Spstcat >> conftest.vals <<\EOF
403322347Spsts%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
403422347SpstEOF
403522347Spst
403622347Spst# Break up conftest.vals because some shells have a limit on
403722347Spst# the size of here documents, and old seds have small limits too.
403822347Spst# Maximum number of lines to put in a single here document.
403922347Spstac_max_here_lines=12
404022347Spst
404122347Spstrm -f conftest.tail
404222347Spstwhile :
404322347Spstdo
404422347Spst  ac_lines=`grep -c . conftest.vals`
404522347Spst  # grep -c gives empty output for an empty file on some AIX systems.
404622347Spst  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
404722347Spst  # Write a limited-size here document to conftest.frag.
404822347Spst  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
404922347Spst  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
405022347Spst  echo 'CEOF
405122347Spst  sed -f conftest.frag conftest.in > conftest.out
405222347Spst  rm -f conftest.in
405322347Spst  mv conftest.out conftest.in
405422347Spst' >> $CONFIG_STATUS
405522347Spst  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
405622347Spst  rm -f conftest.vals
405722347Spst  mv conftest.tail conftest.vals
405822347Spstdone
405922347Spstrm -f conftest.vals
406022347Spst
406122347Spstcat >> $CONFIG_STATUS <<\EOF
406222347Spst  rm -f conftest.frag conftest.h
406322347Spst  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
406422347Spst  cat conftest.in >> conftest.h
406522347Spst  rm -f conftest.in
406622347Spst  if cmp -s $ac_file conftest.h 2>/dev/null; then
406722347Spst    echo "$ac_file is unchanged"
406822347Spst    rm -f conftest.h
406922347Spst  else
407022347Spst    # Remove last slash and all that follows it.  Not all systems have dirname.
407122347Spst      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
407222347Spst      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
407322347Spst      # The file is in a subdirectory.
407422347Spst      test ! -d "$ac_dir" && mkdir "$ac_dir"
407522347Spst    fi
407622347Spst    rm -f $ac_file
407722347Spst    mv conftest.h $ac_file
407822347Spst  fi
407922347Spstfi; done
408022347Spst
408122347Spst
408222347Spst
408322347Spstexit 0
408422347SpstEOF
408522347Spstchmod +x $CONFIG_STATUS
408622347Spstrm -fr confdefs* $ac_clean_files
408722347Spsttest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
408822347Spst
408922347Spstsh configure.munger
4090