#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.3 
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_default_prefix=/usr/local/ilu
ac_help="$ac_help
  --enable-debugging          Enable -g on compile and add debugging print statements"
ac_help="$ac_help
  --enable-sunrpc-protocol    Add ILU version of the Sun RPC v2 protocol"
ac_help="$ac_help
  --enable-courier-protocol   Add Xerox Courier protocol"
ac_help="$ac_help
  --enable-corba-iiop         Add OMG CORBA 2 IIOP protocol & transport, version 1.0"
ac_help="$ac_help
  --enable-w3ng-protocol      Add W3C HTTP-NG protocol"
ac_help="$ac_help
  --enable-sunrpcrm-transport Add Sun RPC record marking transport filter"
ac_help="$ac_help
  --enable-w3mux-transport    Add W3C multiplexing record marking transport filter"
ac_help="$ac_help
  --enable-tcp-transport      Add TCP/IP transport"
ac_help="$ac_help
  --enable-udp-transport      Add UDP/IP transport"
ac_help="$ac_help
  --enable-xns-transport      Add XNS/SPP transport"
ac_help="$ac_help
  --enable-c-support          Include support for ANSI C"
ac_help="$ac_help
  --enable-cplusplus-support  Include support for C++"
ac_help="$ac_help
  --enable-modula3-support    Include support for Modula-3"
ac_help="$ac_help
  --enable-python-support     Include support for Python"
ac_help="$ac_help
  --enable-lisp-support       Include support for Common Lisp"
ac_help="$ac_help
  --enable-security           Add security transport filter"
ac_help="$ac_help
  --enable-ssl-security       Add SSL security mechanism"
ac_help="$ac_help
  --enable-omg-idl-support    Include support for using OMG IDL with ILU"
ac_help="$ac_help
  --enable-xview-support      Include support for the XView GUI toolkit"
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --enable-tk-support         Include support for the Tk GUI toolkit"
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --enable-xt-support         Include support for the Xt GUI toolkit"
ac_help="$ac_help
  --with-x                use the X Window System"
ac_help="$ac_help
  --with-iluhome=PATH         Specify PATH to root of ILU installation"
ac_help="$ac_help
  --with-destdir=PATH         Specify PATH to install ILU in"
ac_help="$ac_help
  --with-binding-dir=PATH     Specify PATH for use as ILU simple binding directory"
ac_help="$ac_help
  --with-binding-server=H[:P] Specify HOST and PORT for binding server (e.g. 123.4.92.68:10003)"
ac_help="$ac_help
  --with-binding-multicast=IPADDR:PORT Specify IPADDR and PORT for multicast (e.g. 238.4.92.68:10003)"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE

# Initialize some other variables.
subdirs=

ac_prev=
for ac_option
do

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -build | --build | --buil | --bui | --bu | --b)
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
    build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
                          [same as prefix]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:$ac_help
EOF
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.3"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *) 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
# Only set LANG and LC_ALL to C if already set.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=iludefs.in

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'

if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi




ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.


# Make sure we can run config.sub.
if $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`$ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`$ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6




if test "$ac_cv_prog_ANSI_C" != ""; then
  ac_tv_prog_ANSI_C="$ac_cv_prog_ANSI_C"
else
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CC" in
  /*)
  ac_cv_path_CC="$CC" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_CC="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_CC" && ac_cv_path_CC=""""
  ;;
esac
fi
CC="$ac_cv_path_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test "$CC" != ""; then
    echo $ac_n "checking to see if $CC can handle ANSI C""... $ac_c" 1>&6
cat >/tmp/conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
int main(int ac, char **av){
 int i = INT_MAX;
 char *p = (char *) malloc(1048);
 memmove(p, *av, strlen(*av)+1);
 printf("%s\n", p);
 return 0;
}
EOF
if test -z "`$CC -o /tmp/conftest1 /tmp/conftest.c 2>&1`"; then
  ac_tv_prog_ANSI_C="$CC"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  fi
  if test "$ac_tv_prog_ANSI_C" = ""; then
    echo "$ac_t"""  perhaps gcc is properly installed..."" 1>&6
    # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_CC2'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CC2" in
  /*)
  ac_cv_path_CC2="$CC2" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_CC2="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_CC2" && ac_cv_path_CC2=""""
  ;;
esac
fi
CC2="$ac_cv_path_CC2"
if test -n "$CC2"; then
  echo "$ac_t""$CC2" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

    if test "$CC2" != ""; then
      echo $ac_n "checking to see if $CC2 can handle ANSI C""... $ac_c" 1>&6
cat >/tmp/conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
int main(int ac, char **av){
 int i = INT_MAX;
 char *p = (char *) malloc(1048);
 memmove(p, *av, strlen(*av)+1);
 printf("%s\n", p);
 return 0;
}
EOF
if test -z "`$CC2 -o /tmp/conftest1 /tmp/conftest.c 2>&1`"; then
  ac_tv_prog_ANSI_C="$CC2"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

    fi
    if test "$ac_tv_prog_ANSI_C" = ""; then
      echo "$ac_t""*** Can't find an ANSI C compiler to use." 1>&6
      { echo "configure: error: *** Please set the environment variable CC to valid ANSI C compilation command." 1>&2; exit 1; }
    fi
  fi
  if eval "test \"`echo '$''{'ac_cv_prog_ANSI_C'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_prog_ANSI_C="$ac_tv_prog_ANSI_C"
fi

fi
if test "$ac_tv_prog_ANSI_C" != ""; then
  CC="$ac_tv_prog_ANSI_C"
  echo "$ac_t""using $ac_tv_prog_ANSI_C for ANSI C compilation" 1>&6
else
  echo "$ac_t""*** Can't find an ANSI C compiler to use." 1>&6
  { echo "configure: error: *** Please set the environment variable CC to valid ANSI C compilation command." 1>&2; exit 1; }
  exit 1
fi

echo $ac_n "checking to see if -lm is needed when linking ANSI C""... $ac_c" 1>&6
cat >/tmp/conftest.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int ac, char **av){
 double f1 = 2.0;
 printf("%f %f\n", sqrt(f1), floor(f1));
 return 0;
}
EOF
if test -z "`$ac_cv_prog_ANSI_C -o /tmp/conftest1 /tmp/conftest.c 2>&1`"; then
  echo "$ac_t""no" 1>&6
else
  ac_tv_prog_ANSI_C="$1"
  if test -z "`$ac_cv_prog_ANSI_C -o /tmp/conftest1 /tmp/conftest.c -lm 2>&1`"; then
    echo "$ac_t""yes" 1>&6
    ANSI_C_LIBRARY="$ANSI_C_LIBRARY -lm"
  else
    { echo "configure: error: Cannot use math library calls" 1>&2; exit 1; }
  fi
fi

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    case "$ac_dir/" in
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
    *)
      # OSF1 and SCO ODT 3.0 have their own names for install.
      for ac_prog in ginstall installbsd scoinst install; do
        if test -f $ac_dir/$ac_prog; then
	  if test $ac_prog = install &&
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    # OSF/1 installbsd also uses dspmsg, but is usable.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_save_ifs"
  # As a last resort, use the slow shell script.
  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
fi
  INSTALL="$ac_cv_path_install"
fi
echo "$ac_t""$INSTALL" 1>&6

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

if test "$INSTALL" = "./install-sh -c" ; then
  INSTALL="`pwd`/install-sh -c"
fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="true"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


ac_save_path="$PATH"
PATH=$PATH:/usr/bin/X11
# Extract the first word of "imake", so it can be a program name with args.
set dummy imake; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_IMAKE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$IMAKE" in
  /*)
  ac_cv_path_IMAKE="$IMAKE" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_IMAKE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_IMAKE" && ac_cv_path_IMAKE=""""
  ;;
esac
fi
IMAKE="$ac_cv_path_IMAKE"
if test -n "$IMAKE"; then
  echo "$ac_t""$IMAKE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

PATH=$ac_save_path
if test -z "$IMAKE" ; then
  { echo "configure: error: Can't find imake.  Please make sure imake is on your path and start over." 1>&2; exit 1; }
fi


for ac_prog in ar aal
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_AR="$ac_prog"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
AR="$ac_cv_prog_AR"
if test -n "$AR"; then
  echo "$ac_t""$AR" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$AR" && break
done
test -n "$AR" || AR="ar"

echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

for ac_prog in sh bash
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_BOURNE_SHELL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$BOURNE_SHELL" in
  /*)
  ac_cv_path_BOURNE_SHELL="$BOURNE_SHELL" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_BOURNE_SHELL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
BOURNE_SHELL="$ac_cv_path_BOURNE_SHELL"
if test -n "$BOURNE_SHELL"; then
  echo "$ac_t""$BOURNE_SHELL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$BOURNE_SHELL" && break
done
test -n "$BOURNE_SHELL" || BOURNE_SHELL=""""

# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PERL" in
  /*)
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PERL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=""""
  ;;
esac
fi
PERL="$ac_cv_path_PERL"
if test -n "$PERL"; then
  echo "$ac_t""$PERL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "bison", so it can be a program name with args.
set dummy bison; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$BISON" in
  /*)
  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_BISON="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=""""
  ;;
esac
fi
BISON="$ac_cv_path_BISON"
if test -n "$BISON"; then
  echo "$ac_t""$BISON" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "dvips", so it can be a program name with args.
set dummy dvips; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$DVIPS" in
  /*)
  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_DVIPS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
  ;;
esac
fi
DVIPS="$ac_cv_path_DVIPS"
if test -n "$DVIPS"; then
  echo "$ac_t""$DVIPS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "4050dvips", so it can be a program name with args.
set dummy 4050dvips; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_DVIPS4050'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$DVIPS4050" in
  /*)
  ac_cv_path_DVIPS4050="$DVIPS4050" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_DVIPS4050="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_DVIPS4050" && ac_cv_path_DVIPS4050=""""
  ;;
esac
fi
DVIPS4050="$ac_cv_path_DVIPS4050"
if test -n "$DVIPS4050"; then
  echo "$ac_t""$DVIPS4050" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "gs", so it can be a program name with args.
set dummy gs; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_GHOSTSCRIPT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GHOSTSCRIPT" in
  /*)
  ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GHOSTSCRIPT="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GHOSTSCRIPT" && ac_cv_path_GHOSTSCRIPT=""""
  ;;
esac
fi
GHOSTSCRIPT="$ac_cv_path_GHOSTSCRIPT"
if test -n "$GHOSTSCRIPT"; then
  echo "$ac_t""$GHOSTSCRIPT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "makeinfo", so it can be a program name with args.
set dummy makeinfo; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_MAKEINFO'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MAKEINFO" in
  /*)
  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_MAKEINFO="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=""""
  ;;
esac
fi
MAKEINFO="$ac_cv_path_MAKEINFO"
if test -n "$MAKEINFO"; then
  echo "$ac_t""$MAKEINFO" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "texindex", so it can be a program name with args.
set dummy texindex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_TEXINDEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$TEXINDEX" in
  /*)
  ac_cv_path_TEXINDEX="$TEXINDEX" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_TEXINDEX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_TEXINDEX" && ac_cv_path_TEXINDEX=""""
  ;;
esac
fi
TEXINDEX="$ac_cv_path_TEXINDEX"
if test -n "$TEXINDEX"; then
  echo "$ac_t""$TEXINDEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "tex", so it can be a program name with args.
set dummy tex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_TEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$TEX" in
  /*)
  ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_TEX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_TEX" && ac_cv_path_TEX=""""
  ;;
esac
fi
TEX="$ac_cv_path_TEX"
if test -n "$TEX"; then
  echo "$ac_t""$TEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "giftoppm", so it can be a program name with args.
set dummy giftoppm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_GIFTOPPM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$GIFTOPPM" in
  /*)
  ac_cv_path_GIFTOPPM="$GIFTOPPM" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_GIFTOPPM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_GIFTOPPM" && ac_cv_path_GIFTOPPM=""""
  ;;
esac
fi
GIFTOPPM="$ac_cv_path_GIFTOPPM"
if test -n "$GIFTOPPM"; then
  echo "$ac_t""$GIFTOPPM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "ppmquant", so it can be a program name with args.
set dummy ppmquant; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PPMQUANT'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PPMQUANT" in
  /*)
  ac_cv_path_PPMQUANT="$PPMQUANT" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PPMQUANT="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PPMQUANT" && ac_cv_path_PPMQUANT=""""
  ;;
esac
fi
PPMQUANT="$ac_cv_path_PPMQUANT"
if test -n "$PPMQUANT"; then
  echo "$ac_t""$PPMQUANT" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "ppmtopgm", so it can be a program name with args.
set dummy ppmtopgm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PPMTOPGM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PPMTOPGM" in
  /*)
  ac_cv_path_PPMTOPGM="$PPMTOPGM" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PPMTOPGM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PPMTOPGM" && ac_cv_path_PPMTOPGM=""""
  ;;
esac
fi
PPMTOPGM="$ac_cv_path_PPMTOPGM"
if test -n "$PPMTOPGM"; then
  echo "$ac_t""$PPMTOPGM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "pnmscale", so it can be a program name with args.
set dummy pnmscale; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PNMSCALE'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PNMSCALE" in
  /*)
  ac_cv_path_PNMSCALE="$PNMSCALE" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PNMSCALE="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PNMSCALE" && ac_cv_path_PNMSCALE=""""
  ;;
esac
fi
PNMSCALE="$ac_cv_path_PNMSCALE"
if test -n "$PNMSCALE"; then
  echo "$ac_t""$PNMSCALE" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "pgmtopbm", so it can be a program name with args.
set dummy pgmtopbm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PGMTOPBM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PGMTOPBM" in
  /*)
  ac_cv_path_PGMTOPBM="$PGMTOPBM" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PGMTOPBM="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PGMTOPBM" && ac_cv_path_PGMTOPBM=""""
  ;;
esac
fi
PGMTOPBM="$ac_cv_path_PGMTOPBM"
if test -n "$PGMTOPBM"; then
  echo "$ac_t""$PGMTOPBM" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "pbmtoascii", so it can be a program name with args.
set dummy pbmtoascii; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PBMTOASCII'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PBMTOASCII" in
  /*)
  ac_cv_path_PBMTOASCII="$PBMTOASCII" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PBMTOASCII="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PBMTOASCII" && ac_cv_path_PBMTOASCII=""""
  ;;
esac
fi
PBMTOASCII="$ac_cv_path_PBMTOASCII"
if test -n "$PBMTOASCII"; then
  echo "$ac_t""$PBMTOASCII" 1>&6
else
  echo "$ac_t""no" 1>&6
fi


if test "x$PERL" != "x" -a "x$DVIPS" != "x" -a "x$GHOSTSCRIPT" != "x" -a "x$MAKEINFO" != "x" -a "x$TEXINDEX" != "x" -a "x$TEX" != "x" -a "x$GIFTOPPM" != "x" -a "x$PPMTOPGM" != "x" -a "x$PNMSCALE" != "x" -a "x$PGMTOPBM" != "x" -a "x$PBMTOASCII" != "x"; then
  cat >> confdefs.h <<\EOF
#define ADD_TIM_TOOLS 1
EOF

fi

echo $ac_n "checking how to index man pages on $host_os""... $ac_c" 1>&6
case "$host_os" in
  sunos4* | solaris1*)
	ac_save_path="$PATH"
	PATH="/etc:/usr/etc:/usr/lib:$PATH"
	# Extract the first word of "makewhatis", so it can be a program name with args.
set dummy makewhatis; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_MAKEWHATIS'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$MAKEWHATIS" in
  /*)
  ac_cv_path_MAKEWHATIS="$MAKEWHATIS" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_MAKEWHATIS="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_MAKEWHATIS" && ac_cv_path_MAKEWHATIS=""""
  ;;
esac
fi
MAKEWHATIS="$ac_cv_path_MAKEWHATIS"
if test -n "$MAKEWHATIS"; then
  echo "$ac_t""$MAKEWHATIS" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

	PATH="$ac_save_path"
	if test "$MAKEWHATIS" != ""; then
	  MAKEWHATIS="$MAKEWHATIS -w -M"
	fi
	;;
  solaris2*)
	MAKEWHATIS="/usr/lib/makewhatis"
	;;
  *)
	;;
esac
if test "$MAKEWHATIS" != ""; then
  echo "$ac_t""$MAKEWHATIS" 1>&6
else
  echo "$ac_t""Don't know -- won't try" 1>&6
  MAKEWHATIS="echo Remember to re-index the man pages"
fi

for ac_func in accept
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1383 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

if test "x$HAVE_ACCEPT" = "x"; then
  echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lsocket -lnsl $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1435 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
accept()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_lib_socket=yes"
else
  rm -rf conftest*
  eval "ac_cv_lib_socket=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBS="${LIBS} -lsocket -lnsl"
else
  echo "$ac_t""no" 1>&6
fi

fi
unset ac_cv_func_accept

for ac_func in alloca
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1471 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 1531 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 1545 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
fi
CPP="$ac_cv_prog_CPP"
echo "$ac_t""$CPP" 1>&6

for ac_hdr in widec.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1576 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


# If we cannot run a trivial program, we must be cross compiling.
echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_cross=yes
else
cat > conftest.$ac_ext <<EOF
#line 1614 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_cross=no
else
  ac_cv_c_cross=yes
fi
fi
rm -fr conftest*
fi
cross_compiling=$ac_cv_c_cross
echo "$ac_t""$ac_cv_c_cross" 1>&6

echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1635 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1657 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1675 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  ac_cv_header_stdc=no
else
cat > conftest.$ac_ext <<EOF
#line 1696 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  :
else
  ac_cv_header_stdc=no
fi
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

echo $ac_n "checking for pid_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1730 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "pid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
if test $ac_cv_type_pid_t = no; then
  cat >> confdefs.h <<\EOF
#define pid_t int
EOF

fi

echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1764 "configure"
#include "confdefs.h"
/* Exit 0 (true) if wait returns something other than -1,
   i.e. the pid of the child, which means that wait was restarted
   after getting the signal.  */
#include <sys/types.h>
#include <signal.h>
ucatch (isig) { }
main () {
  int i = fork (), status;
  if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
  signal (SIGINT, ucatch);
  status = wait(&i);
  if (status == -1) wait(&i);
  exit (status == -1);
}

EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sys_restartable_syscalls=yes
else
  ac_cv_sys_restartable_syscalls=no
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
if test $ac_cv_sys_restartable_syscalls = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_RESTARTABLE_SYSCALLS 1
EOF

fi

echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 1806 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() { return 0; }
int t() {

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 1822 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() { return 0; }
int t() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_cv_c_bigendian=yes
else
  rm -rf conftest*
  ac_cv_c_bigendian=no
fi
rm -f conftest*

fi
rm -f conftest*

if test $ac_cv_c_bigendian = unknown; then
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1851 "configure"
#include "confdefs.h"
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi

echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$GCC" = yes; then
  # GCC predefines this symbol on systems where it applies.
cat > conftest.$ac_ext <<EOF
#line 1889 "configure"
#include "confdefs.h"
#ifdef __CHAR_UNSIGNED__
  yes
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_c_char_unsigned=yes
else
  rm -rf conftest*
  ac_cv_c_char_unsigned=no
fi
rm -f conftest*

else
if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1911 "configure"
#include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
#if !defined(__STDC__) || __STDC__ != 1
#define volatile
#endif
main() {
  volatile char c = 255; exit(c < 0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_c_char_unsigned=yes
else
  ac_cv_c_char_unsigned=no
fi
fi
rm -fr conftest*
fi
fi
echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  cat >> confdefs.h <<\EOF
#define __CHAR_UNSIGNED__ 1
EOF

fi

echo $ac_n "checking size of char""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1947 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(char));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_char=`cat conftestval`
else
  ac_cv_sizeof_char=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_char" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
EOF


echo $ac_n "checking size of short""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 1981 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(short));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_short=`cat conftestval`
else
  ac_cv_sizeof_short=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
EOF


echo $ac_n "checking size of int""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2015 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(int));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_int=`cat conftestval`
else
  ac_cv_sizeof_int=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_INT $ac_cv_sizeof_int
EOF


echo $ac_n "checking size of long""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2049 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_long=`cat conftestval`
else
  ac_cv_sizeof_long=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG $ac_cv_sizeof_long
EOF


echo $ac_n "checking size of long long""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2083 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long long));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_long_long=`cat conftestval`
else
  ac_cv_sizeof_long_long=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
EOF


echo $ac_n "checking size of float""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2117 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(float));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_float=`cat conftestval`
else
  ac_cv_sizeof_float=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
EOF


echo $ac_n "checking size of double""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2151 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(double));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_double=`cat conftestval`
else
  ac_cv_sizeof_double=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
EOF


echo $ac_n "checking size of long double""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2185 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(long double));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_long_double=`cat conftestval`
else
  ac_cv_sizeof_long_double=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
EOF


echo $ac_n "checking size of void *""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2219 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void *));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_void_p=`cat conftestval`
else
  ac_cv_sizeof_void_p=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
EOF



echo $ac_n "checking size of function pointer""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_fn_p'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2254 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(void (*)(void)));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_fn_p=`cat conftestval`
else
  ac_cv_sizeof_fn_p=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_fn_p" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_FN_P $ac_cv_sizeof_fn_p
EOF


echo $ac_n "checking size of enum type""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_sizeof_enum'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2288 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  enum color { red, blue, green };
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(enum color));
  exit(0);
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_sizeof_enum=`cat conftestval`
else
  ac_cv_sizeof_enum=0
fi
fi
rm -fr conftest*
fi
echo "$ac_t""$ac_cv_sizeof_enum" 1>&6
cat >> confdefs.h <<EOF
#define SIZEOF_ENUM $ac_cv_sizeof_enum
EOF


if test $ac_cv_sizeof_long -eq 8; then
  cat >> confdefs.h <<\EOF
#define LONG_CARDINAL_TYPE unsigned long
EOF

  cat >> confdefs.h <<\EOF
#define LONG_INTEGER_TYPE long
EOF

elif test $ac_cv_sizeof_long_long -eq 8; then
  cat >> confdefs.h <<\EOF
#define LONG_CARDINAL_TYPE unsigned long long
EOF

  cat >> confdefs.h <<\EOF
#define LONG_INTEGER_TYPE long long
EOF

fi

if test $ac_cv_sizeof_double -eq 16; then
  cat >> confdefs.h <<\EOF
#define LONG_REAL_TYPE double
EOF

elif test $ac_cv_sizeof_long_double -eq 16; then
  cat >> confdefs.h <<\EOF
#define LONG_REAL_TYPE long double
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_has_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else
cat > conftest.$ac_ext <<EOF
#line 2355 "configure"
#include "confdefs.h"

#include <stdlib.h>
main()
{
  size_t i;

  i = 10;
  return 0;
}
EOF
eval $ac_link
if test -s conftest && (./conftest; exit) 2>/dev/null; then
  ac_cv_has_size_t="yes"
else
  ac_cv_has_size_t="no"
fi
fi
rm -fr conftest*
fi
if test "$ac_cv_has_size_t" = "yes"; then
  cat >> confdefs.h <<\EOF
#define SIZE_T size_t
EOF

  echo "$ac_t""yes" 1>&6
else
  cat >> confdefs.h <<\EOF
#define SIZE_T unsigned
EOF

  echo "$ac_t""no -- using 'unsigned' instead" 1>&6
fi

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2395 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C"
#endif
void (*signal ()) ();
int main() { return 0; }
int t() {
int i;
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_cv_type_signal=void
else
  rm -rf conftest*
  ac_cv_type_signal=int
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF


echo $ac_n "checking for vprintf""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2432 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vprintf(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char vprintf(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vprintf) || defined (__stub___vprintf)
choke me
#else
vprintf();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_vprintf=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_vprintf=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_VPRINTF 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

if test "$ac_cv_func_vprintf" != yes; then
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2480 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _doprnt(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char _doprnt(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__doprnt) || defined (__stub____doprnt)
choke me
#else
_doprnt();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func__doprnt=yes"
else
  rm -rf conftest*
  eval "ac_cv_func__doprnt=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_DOPRNT 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

fi

for ac_func in gettimeofday strdup memmove
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2531 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


echo $ac_n "checking if definition of SIG_IGN is broken for C""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_decl_sig_ign_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2581 "configure"
#include "confdefs.h"
#include <signal.h>
int main() { return 0; }
int t() {
(void) signal(SIGPIPE, SIG_IGN)
; return 0; }
EOF
if eval $ac_compile; then
  rm -rf conftest*
  ac_cv_decl_sig_ign_broken=no
else
  rm -rf conftest*
  ac_cv_decl_sig_ign_broken=yes
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_decl_sig_ign_broken" 1>&6
if test $ac_cv_decl_sig_ign_broken = yes; then
    cat >> confdefs.h <<\EOF
#define SIG_IGN_BROKEN 1
EOF

fi


echo $ac_n "checking for Solaris 1 POSIX non-blocking I/O bug""... $ac_c" 1>&6
case "$host_os" in
  sunos4* | solaris1*)
	cat >> confdefs.h <<\EOF
#define HAS_SOLARIS1_NONBLOCKING_BUG 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
  *)
	echo "$ac_t""don't know -- assuming no" 1>&6
	;;
esac


echo $ac_n "checking for Solaris 2 send/recv bug on TCP sockets""... $ac_c" 1>&6
case "$host_os" in
  solaris2*)
	cat >> confdefs.h <<\EOF
#define HAS_SOLARIS2_TCP_SOCKET_BUG 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
  *)
	echo "$ac_t""don't know -- assuming no" 1>&6
	;;
esac


echo $ac_n "checking how to build shared libraries""... $ac_c" 1>&6
case "$host_os" in
  irix5*)
	LDSHARED_COMMAND="ld -shared"
	LDSHARED_FILE_EXT="so"
	;;
  sunos4* | solaris1*)
	LDSHARED_COMMAND="ld"
	LDSHARED_FILE_EXT="so"
	;;
  solaris2* | sunos5* | DYNIX/ptx*)
	LDSHARED_COMMAND="ld -G"
	LDSHARED_FILE_EXT="so"
	;;
  hpux*)
	LDSHARED_COMMAND="ld -b"
	LDSHARED_FILE_EXT="sl"
	;;
  osf*)
	LDSHARED_COMMAND="ld -shared -expect_unresolved \"*\""
	LDSHARED_FILE_EXT="so"
	;;
  *)
	LDSHARED_COMMAND=""
	LDSHARED_FILE_EXT=""
	;;
esac
if test "$LDSHARED_COMMAND" != ""; then
  echo "$ac_t""$LDSHARED_COMMAND with file extension of .$LDSHARED_FILE_EXT" 1>&6
  cat >> confdefs.h <<\EOF
#define PYTHON_USES_SHARED_LIBRARIES_FOR_EXTENSIONS 1
EOF

else
  echo "$ac_t""don't know" 1>&6
fi


for ac_hdr in sys/select.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2684 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 cat >> confdefs.h <<\EOF
#define _NEEDS_SELECT_H 1
EOF

else
  echo "$ac_t""no" 1>&6
fi
done


if eval "test \"`echo '$''{'ac_cv_ilu_socket_element_missing'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_ilu_socket_element_missing=""
 for ac_hdr in sys/socket.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2728 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
ac_cv_ilu_socket_element_missing="yes"
fi
done

 for ac_func in socket accept connect listen bind
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2764 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
ac_cv_ilu_socket_element_missing="yes"
fi
done

fi

if test "$ac_cv_ilu_socket_element_missing" = "" ; then
  echo "$ac_t""the OS supports BSD sockets" 1>&6
  cat >> confdefs.h <<\EOF
#define _HAS_SOCKETS 1
EOF

else
  echo "$ac_t""socket support is not provided" 1>&6
fi

for ac_func in getwd
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2828 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done


if eval "test \"`echo '$''{'ac_cv_ilu_bsd_element_missing'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_ilu_bsd_element_missing=""
 for ac_func in gethostname gettimeofday select
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2884 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
ac_cv_ilu_bsd_element_missing="yes"
fi
done

 for ac_hdr in netinet/in.h netdb.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2937 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
ac_cv_ilu_bsd_element_missing="yes"
fi
done

fi

if test "$ac_cv_ilu_bsd_element_missing" = ""; then
  echo "$ac_t""the OS has sufficient BSD-ness for ILU purposes" 1>&6
  cat >> confdefs.h <<\EOF
#define _IS_BSD 1
EOF

else
  echo "$ac_t""the OS can\'t be thought of as BSD-compatible" 1>&6  
fi

if eval "test \"`echo '$''{'ac_cv_ilu_posix_element_missing'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_ilu_posix_element_missing=""
 for ac_hdr in sys/utsname.h
do
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 2990 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
ac_cv_ilu_posix_element_missing="yes"
fi
done

 for ac_func in sigaction read write sleep getpid uname unlink access chmod getgid geteuid getgroups getcwd
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3026 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
char $ac_func(); 

int main() { return 0; }
int t() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*

fi
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
ac_cv_ilu_posix_element_missing="yes"
fi
done

fi

if test "$ac_cv_ilu_posix_element_missing" = ""; then
  echo "$ac_t""the OS has the necessary POSIX system calls" 1>&6
  cat >> confdefs.h <<\EOF
#define _IS_POSIX 1
EOF

else
  { echo "configure: error: ILU requires a POSIX-compatible OS" 1>&2; exit 1; }
fi


echo "$ac_t""*" 1>&6
echo "$ac_t""*  checking ILU specifics..." 1>&6
echo "$ac_t""*" 1>&6



echo $ac_n "checking whether to include support for debugging""... $ac_c" 1>&6
# Check whether --enable-debugging or --disable-debugging was given.
enableval="$enable_debugging"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ENABLE_DEBUGGING 1
EOF

  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  cat >> confdefs.h <<\EOF
#define ENABLE_DEBUGGING 1
EOF

echo "$ac_t""yes" 1>&6
fi




ac_cv_protocols=""
ac_cv_transports=""

echo $ac_n "checking whether to include support for the ILU sunrpc protocol""... $ac_c" 1>&6
# Check whether --enable-sunrpc-protocol or --disable-sunrpc-protocol was given.
enableval="$enable_sunrpc_protocol"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPC_PROTOCOL 1
EOF

  cat >> confdefs.h <<\EOF
#define SUNRPC_PROTOCOL 1
EOF

  ac_cv_protocols="$ac_cv_protocols sunrpc"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPC_PROTOCOL 1
EOF

cat >> confdefs.h <<\EOF
#define SUNRPC_PROTOCOL 1
EOF

ac_cv_protocols="$ac_cv_protocols sunrpc"
echo "$ac_t""yes" 1>&6
fi


echo $ac_n "checking whether to include support for the Xerox Courier protocol""... $ac_c" 1>&6
# Check whether --enable-courier-protocol or --disable-courier-protocol was given.
enableval="$enable_courier_protocol"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_COURIER_PROTOCOL 1
EOF

  cat >> confdefs.h <<\EOF
#define COURIER_PROTOCOL 1
EOF

  ac_cv_protocols="$ac_cv_protocols courier"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking whether to include support for the CORBA IIOP protocol""... $ac_c" 1>&6
# Check whether --enable-corba-iiop or --disable-corba-iiop was given.
enableval="$enable_corba_iiop"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_IIOP_PROTOCOL 1
EOF

  cat >> confdefs.h <<\EOF
#define IIOP_PROTOCOL 1
EOF

  ac_cv_protocols="$ac_cv_protocols iiop"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking whether to include support for the W3C HTTP-NG protocol""... $ac_c" 1>&6
# Check whether --enable-w3ng-protocol or --disable-w3ng-protocol was given.
enableval="$enable_w3ng_protocol"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_W3NG_PROTOCOL 1
EOF

  cat >> confdefs.h <<\EOF
#define W3NG_PROTOCOL 1
EOF

  ac_cv_protocols="$ac_cv_protocols w3ng"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi




if test "$ac_cv_protocols" = ""; then
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPC_PROTOCOL 1
EOF

  cat >> confdefs.h <<\EOF
#define SUNRPC_PROTOCOL 1
EOF

  echo "$ac_t""including support for ILU sunrpc as default protocol" 1>&6
fi


echo $ac_n "checking whether to include support for the Sun RPC record-marking transport layer""... $ac_c" 1>&6
# Check whether --enable-sunrpcrm-transport or --disable-sunrpcrm-transport was given.
enableval="$enable_sunrpcrm_transport"
if test -n "$enableval"; then
  if test "$enableval" = "yes" ; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPCRM_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define SUNRPCRM_TRANSPORT 1
EOF

else
  echo "$ac_t""no" 1>&6
fi
else
   echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SUNRPCRM_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define SUNRPCRM_TRANSPORT 1
EOF


fi


echo $ac_n "checking whether to include support for the W3C multiplexing record-marking transport layer""... $ac_c" 1>&6
# Check whether --enable-w3mux-transport or --disable-w3mux-transport was given.
enableval="$enable_w3mux_transport"
if test -n "$enableval"; then
  if test "$enableval" = "yes" ; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_W3MUX_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define W3MUX_TRANSPORT 1
EOF

else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking whether to include support for the TCP/IP transport layer""... $ac_c" 1>&6
# Check whether --enable-tcp-transport or --disable-tcp-transport was given.
enableval="$enable_tcp_transport"
if test -n "$enableval"; then
  if test "$enableval" = "yes" -a "$ac_cv_ilu_socket_element_missing" = ""; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_TCPSOCKET_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define TCPIP_TRANSPORT 1
EOF

  ac_cv_transports="$ac_cv_transports tcp"
else
  echo "$ac_t""no -- no sockets" 1>&6
fi
else
  if test "$ac_cv_ilu_socket_element_missing" = ""; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_TCPSOCKET_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define TCPIP_TRANSPORT 1
EOF

  ac_cv_transports="$ac_cv_transports tcp"
else
  echo "$ac_t""no -- no sockets" 1>&6
fi
fi


echo $ac_n "checking whether to include support for the UDP/IP transport layer""... $ac_c" 1>&6
# Check whether --enable-udp-transport or --disable-udp-transport was given.
enableval="$enable_udp_transport"
if test -n "$enableval"; then
  if test "$enableval" = "yes" -a "$ac_cv_ilu_socket_element_missing" = ""; then
  cat >> confdefs.h <<\EOF
#define ADD_UDPSOCKET_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define UDPSOCKET_TRANSPORT 1
EOF

  ac_cv_transports="$ac_cv_transports udp"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking whether to include support for the XNS SPP transport layer""... $ac_c" 1>&6
# Check whether --enable-xnsspp-transport or --disable-xnsspp-transport was given.
enableval="$enable_xnsspp_transport"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  cat >> confdefs.h <<\EOF
#define ADD_XNSSPP_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define XNSSPP_TRANSPORT 1
EOF

  ac_cv_transports="$ac_cv_transports udp"
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi




if test "$ac_cv_transports" = "" -a "$ac_cv_ilu_socket_element_missing" = ""; then
  cat >> confdefs.h <<\EOF
#define ADD_TCP_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define TCPIP_TRANSPORT 1
EOF

  echo "$ac_t""including support for TCP/IP as default transport" 1>&6
fi 


echo $ac_n "checking whether to include support for use of ILU with ANSI C""... $ac_c" 1>&6
# Check whether --enable-c-support or --disable-c-support was given.
enableval="$enable_c_support"
if test -n "$enableval"; then
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_C_LANGUAGE 1
EOF

  echo "$ac_t""yes" 1>&6
fi
else
  echo "$ac_t""yes" 1>&6
 cat >> confdefs.h <<\EOF
#define ADD_C_LANGUAGE 1
EOF


fi


echo $ac_n "checking whether to include support for use of ILU with C++""... $ac_c" 1>&6
# Check whether --enable-cplusplus-support or --disable-cplusplus-support was given.
enableval="$enable_cplusplus_support"
if test -n "$enableval"; then
  if test "$enableval" = yes; then
  cat >> confdefs.h <<\EOF
#define ADD_CPLUSPLUS_LANGUAGE 1
EOF

  echo "$ac_t""yes" 1>&6
  for ac_prog in $CCC CC cxx c++ g++
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CXX" in
  /*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_CXX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
CXX="$ac_cv_path_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$CXX" && break
done
test -n "$CXX" || CXX=""""

elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_CPLUSPLUS_LANGUAGE 1
EOF

  echo "$ac_t""$enableval" 1>&6
  CXX="$enableval"
fi
else
  echo "$ac_t""maybe" 1>&6
for ac_prog in $CCC CC c++ g++
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$CXX" in
  /*)
  ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_CXX="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
CXX="$ac_cv_path_CXX"
if test -n "$CXX"; then
  echo "$ac_t""$CXX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$CXX" && break
done
test -n "$CXX" || CXX=""""

if test "$CXX" != ""; then
  cat >> confdefs.h <<\EOF
#define ADD_CPLUSPLUS_LANGUAGE 1
EOF

fi
fi


echo $ac_n "checking whether to include support for use of ILU with Modula-3""... $ac_c" 1>&6
# Check whether --enable-modula3-support or --disable-modula3-support was given.
enableval="$enable_modula3_support"
if test -n "$enableval"; then
  if test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  for ac_prog in $M3 m3
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_M3'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$M3" in
  /*)
  ac_cv_path_M3="$M3" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_M3="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
M3="$ac_cv_path_M3"
if test -n "$M3"; then
  echo "$ac_t""$M3" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$M3" && break
done
test -n "$M3" || M3=""""

  if test "$M3" = ""; then
    { echo "configure: error: *** Modula-3 compiler not found.  Use --with-modula3=M3-COMMAND." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_MODULA3_LANGUAGE 1
EOF

  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_MODULA3_LANGUAGE 1
EOF

  M3_COMMAND="$enableval"
  echo "$ac_t""$M3" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi



if test "$M3_COMMAND" != ""; then
  echo $ac_n "checking proper value for M3_COMPILER""... $ac_c" 1>&6
  M3_COMPILER="$M3_COMMAND -Y2@`echo $CC | sed -e 's; ;@;g'`@"
  echo "$ac_t""$M3_COMPILER" 1>&6
fi

echo $ac_n "checking whether to include support for use of ILU with Python""... $ac_c" 1>&6

# Check whether --enable-python-support or --disable-python-support was given.
enableval="$enable_python_support"
if test -n "$enableval"; then
  if test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  # Extract the first word of "python", so it can be a program name with args.
set dummy python; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PYTHON" in
  /*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PYTHON="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=""""
  ;;
esac
fi
PYTHON="$ac_cv_path_PYTHON"
if test -n "$PYTHON"; then
  echo "$ac_t""$PYTHON" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  if test "$PYTHON" = ""; then
    { echo "configure: error: *** Python home directory not discernible.  Use --with-python=PYTHONHOME." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_PYTHON_LANGUAGE 1
EOF

    echo $ac_n "checking proper value for PYTHON_EXEC_PREFIX""... $ac_c" 1>&6
    PYTHONHOME=`echo $PYTHON | sed -e 's;/bin/python;;'`
    echo "$ac_t""$PYTHONHOME" 1>&6
  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  cat >> confdefs.h <<\EOF
#define ADD_PYTHON_LANGUAGE 1
EOF

  echo "$ac_t""$enableval" 1>&6
  PYTHONHOME="$enableval"
fi
else
  echo "$ac_t""maybe" 1>&6
# Extract the first word of "python", so it can be a program name with args.
set dummy python; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$PYTHON" in
  /*)
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_PYTHON="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=""""
  ;;
esac
fi
PYTHON="$ac_cv_path_PYTHON"
if test -n "$PYTHON"; then
  echo "$ac_t""$PYTHON" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test "$PYTHON" != ""; then
  cat >> confdefs.h <<\EOF
#define ADD_PYTHON_LANGUAGE 1
EOF

  echo $ac_n "checking proper value for PYTHON_EXEC_PREFIX""... $ac_c" 1>&6
  PYTHONHOME=`echo $PYTHON | sed -e 's;/bin/python;;'`
  echo "$ac_t""$PYTHONHOME" 1>&6
fi
fi

if test "x$PYTHONHOME" != "x"; then
  
  echo $ac_n "checking whether Python libraries are installed""... $ac_c" 1>&6
  if test -f "${PYTHONHOME}/lib/python/lib/libPython.a" ; then
    cat >> confdefs.h <<\EOF
#define PYTHON_LIBRARIES_INSTALLED 1
EOF

    echo "$ac_t""yes" 1>&6
  else
    echo "$ac_t""no" 1>&6
  fi
  echo $ac_n "checking Python version""... $ac_c" 1>&6
  PYTHONMAJORVERSION=`$PYTHONHOME/bin/python -c "import sys; import string; print string.splitfields(string.split(sys.version)[0], '.')[0]"`
  PYTHONMINORVERSION=`$PYTHONHOME/bin/python -c "import sys; import string; print string.splitfields(string.split(sys.version)[0], '.')[1]"`
  echo "$ac_t""$PYTHONMAJORVERSION . $PYTHONMINORVERSION" 1>&6
  cat >> confdefs.h <<EOF
#define PYTHON_MAJOR_VERSION $PYTHONMAJORVERSION
EOF

  cat >> confdefs.h <<EOF
#define PYTHON_MINOR_VERSION $PYTHONMINORVERSION
EOF

  echo $ac_n "checking proper value for PYTHON_PREFIX""... $ac_c" 1>&6
  PYTHON_PREFIX=`$PYTHONHOME/bin/python <./figpythonprefix`
  echo "$ac_t""$PYTHON_PREFIX" 1>&6
fi

echo $ac_n "checking whether to include support for use of ILU with Common Lisp""... $ac_c" 1>&6



# Check whether --enable-lisp-support or --disable-lisp-support was given.
enableval="$enable_lisp_support"
if test -n "$enableval"; then
  if test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  for ac_prog in franz cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_path_FRANZ'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$FRANZ" in
  /*)
  ac_cv_path_FRANZ="$FRANZ" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_FRANZ="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
FRANZ="$ac_cv_path_FRANZ"
if test -n "$FRANZ"; then
  echo "$ac_t""$FRANZ" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$FRANZ" && break
done
test -n "$FRANZ" || FRANZ=""""

  if test "$FRANZ" = ""; then
    { echo "configure: error: *** Franz Allegro Common Lisp not found.  Use --with-lisp=FRANZ-COMMAND." 1>&2; exit 1; }
  else
    LISP_BATCH_COMMAND="$FRANZ -qq -batch"
  fi
elif test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
    echo "$ac_t"""$enableval"" 1>&6
    LISP_BATCH_COMMAND="$enableval -qq -batch"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$LISP_BATCH_COMMAND" != ""; then
    cat >> confdefs.h <<\EOF
#define ADD_COMMONLISP_LANGUAGE 1
EOF

    echo $ac_n "checking file extensions for compiled lisp and object files""... $ac_c" 1>&6
    if eval "test \"`echo '$''{'ac_cv_lisp_bin_ext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  $FRANZ -qq -batch <./figlispext.lsp >/dev/null
       ac_cv_lisp_bin_ext=`cat conftestlispext`
       ac_cv_lisp_c_bin_ext=`cat conftestlispcext`
fi

    if eval "test \"`echo '$''{'ac_cv_lisp_c_bin_ext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  $FRANZ -qq -batch <./figlispext.lsp >/dev/null
       ac_cv_lisp_c_bin_ext=`cat conftestlispcext`
fi

    echo "$ac_t""\"$ac_cv_lisp_bin_ext\" and \"$ac_cv_lisp_c_bin_ext\"" 1>&6
    LISP_BIN_EXT="$ac_cv_lisp_bin_ext"
    LISP_C_BIN_EXT="$ac_cv_lisp_c_bin_ext"
fi


echo $ac_n "checking whether to include support for the security transport""... $ac_c" 1>&6


secure_transport="no"
# Check whether --enable-security or --disable-security was given.
enableval="$enable_security"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SECURE_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define SECURE_TRANSPORT 1
EOF

  GSS_LIBRARIES="`pwd`/../GSS/kernel/libgss.a"
  GSS_INCLUDE_DIR="`pwd`/../GSS/kernel"
  cat >> confdefs.h <<\EOF
#define USING_ILUGSS 1
EOF

  secure_transport="yes"
elif test "$enableval" = "no"; then
  echo "$ac_t""no" 1>&6
else
  echo "$ac_t""yes -- GSS libs in $enableval" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_SECURE_TRANSPORT 1
EOF

  cat >> confdefs.h <<\EOF
#define SECURE_TRANSPORT 1
EOF

  GSS_LIBRARIES="$enableval"
  GSS_INCLUDE_DIR=`echo ${enableval} | sed -e 's;/[^/]*$;;'`
  secure_transport="yes"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$secure_transport" = "yes"; then
  echo $ac_n "checking whether to include support for the SSL security protocols""... $ac_c" 1>&6
  # Check whether --enable-ssl-security or --disable-ssl-security was given.
enableval="$enable_ssl_security"
if test -n "$enableval"; then
  if test "$enableval" = "yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
#define INCLUDE_SSL_SECMECH 1
EOF

    
    
    
    
    echo -n "*** Where is RSAREF 2.0 installed?  "
    read RSAREF_DIR
    echo -n "*** What is the full path name for the RSAREF 2.0 library, rsaref.a?  "
    read RSAREF_LIB
    echo "$ac_t""RSA includes in $RSAREF_DIR, library is $RSAREF_LIB" 1>&6
    echo -n "*** Where are the include files for libdes 3.0 installed?  "
    read LIBDES_INCL_DIR
    echo -n "*** What is the full path name for the libdes 3.0 library, libdes.a?  "
    read LIBDES_LIB
    echo "$ac_t""LIBDES includes in $LIBDES_INCL_DIR, library is $LIBDES_LIB" 1>&6
  else
    echo "$ac_t""no" 1>&6
  fi
else
  echo "$ac_t""no" 1>&6
fi


fi


echo $ac_n "checking whether to include support for use of OMG IDL with ILU""... $ac_c" 1>&6

# Check whether --enable-omg-idl-support or --disable-omg-idl-support was given.
enableval="$enable_omg_idl_support"
if test -n "$enableval"; then
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$enableval" = yes; then
  case "$host_os" in
    sunos4*) IDL_CFE_OSV="SUNOS4" ;;
    solaris2*) IDL_CFE_OSV="SOLARIS2" ;;
    hpux*) IDL_CFE_OSV="hpux" ;;
    apollo*) IDL_CFE_OSV="apollo" ;;
    *) IDL_CFE_OSV="" ;;
  esac
  if test "$IDL_CFE_OSV" = ""; then
    echo "$ac_t""no" 1>&6
    echo "configure: warning: *** Sorry: IDL support hasn't been ported to $host_os yet." 1>&2
  else
    cat >> confdefs.h <<\EOF
#define ADD_IDL_SUPPORT 1
EOF

    echo "$ac_t""yes: OSV is $IDL_CFE_OSV" 1>&6
  fi
else
  IDL_CFE_OSV="$enableval"
  cat >> confdefs.h <<\EOF
#define ADD_IDL_SUPPORT 1
EOF

  echo "$ac_t""yes: OSV is $IDL_CFE_OSV" 1>&6
fi
else
  echo "$ac_t""no" 1>&6
fi



echo $ac_n "checking whether to include support for XView""... $ac_c" 1>&6

# Check whether --enable-xview-support or --disable-xview-support was given.
enableval="$enable_xview_support"
if test -n "$enableval"; then
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  # If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6

# Check whether --with-x or --without-x was given.
withval="$with_x"
if test -n "$withval"; then
  :
fi

if test "x$with_x" = xno; then
  no_x=yes
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    no_x=
  else
if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # One or both of the vars are not set, and there is no cached value.
no_x=yes
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    no_x=
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `make acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
    then
      ac_im_usrlibdir=$ac_im_libdir
    fi
    # Screen out bogus values from the imake configuration.
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi

if test "$no_x" = yes; then
test -z "$x_direct_test_library" && x_direct_test_library=Xt
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
cat > conftest.$ac_ext <<EOF
#line 3989 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  no_x= ac_x_includes=
else
  echo "$ac_err" >&5
  rm -rf conftest*
    for ac_dir in               \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X11/include          \
    /usr/include/X11          \
    /usr/local/X11/include    \
    /usr/local/include/X11    \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      no_x= ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*

# Check for the libraries.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4052 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
${x_direct_test_function}()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
else
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X11/lib          \
    /usr/lib/X11          \
    /usr/local/X11/lib    \
    /usr/local/lib/X11    \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      no_x= ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*

fi
if test "$no_x" = yes; then
  ac_cv_path_x="no_x=yes"
else
  ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
  fi
  eval "$ac_cv_path_x"
fi # $with_x != no

if test "$no_x" = yes; then
  echo "$ac_t""no" 1>&6
else
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

  if test "$x_includes" = "NONE"; then
    { echo "configure: error: *** Can't find X include files.  Must specify their location using --with-x=INCLUDEPATH." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_XVIEW_SUPPORT 1
EOF

    XVIEW_INCLUDES="-I$x_includes"
  fi
else
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_XVIEW_SUPPORT 1
EOF

  XVIEW_INCLUDES="$enableval"
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking whether to include support for Tk""... $ac_c" 1>&6

# Check whether --enable-tk-support or --disable-tk-support was given.
enableval="$enable_tk_support"
if test -n "$enableval"; then
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
else
  echo "$ac_t""yes" 1>&6
  if test "$x_includes" = "NONE"; then
    # If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6

# Check whether --with-x or --without-x was given.
withval="$with_x"
if test -n "$withval"; then
  :
fi

if test "x$with_x" = xno; then
  no_x=yes
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    no_x=
  else
if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # One or both of the vars are not set, and there is no cached value.
no_x=yes
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    no_x=
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `make acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
    then
      ac_im_usrlibdir=$ac_im_libdir
    fi
    # Screen out bogus values from the imake configuration.
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi

if test "$no_x" = yes; then
test -z "$x_direct_test_library" && x_direct_test_library=Xt
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
cat > conftest.$ac_ext <<EOF
#line 4225 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  no_x= ac_x_includes=
else
  echo "$ac_err" >&5
  rm -rf conftest*
    for ac_dir in               \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X11/include          \
    /usr/include/X11          \
    /usr/local/X11/include    \
    /usr/local/include/X11    \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      no_x= ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*

# Check for the libraries.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4288 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
${x_direct_test_function}()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
else
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X11/lib          \
    /usr/lib/X11          \
    /usr/local/X11/lib    \
    /usr/local/lib/X11    \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      no_x= ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*

fi
if test "$no_x" = yes; then
  ac_cv_path_x="no_x=yes"
else
  ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
  fi
  eval "$ac_cv_path_x"
fi # $with_x != no

if test "$no_x" = yes; then
  echo "$ac_t""no" 1>&6
else
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

  fi
  if test "$x_includes" = "NONE"; then
    { echo "configure: error: *** Can't find X include files.  Must specify their location using --with-x=INCLUDEPATH." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_TK_SUPPORT 1
EOF

    echo -n "*** Where are the Tk include files?  "
    read TK_INCLUDE_1
    echo -n "*** Where are the Tcl include files?  "
    read TK_INCLUDE_2
    TK_INCLUDES="-I$x_includes -I$TK_INCLUDE_1 -I$TK_INCLUDE_2"
    echo "$ac_t""tk includes are $TK_INCLUDES" 1>&6
  fi
fi
else
  echo "$ac_t""no" 1>&6
fi


echo $ac_n "checking whether to include support for Xt""... $ac_c" 1>&6

# Check whether --enable-xt-support or --disable-xt-support was given.
enableval="$enable_xt_support"
if test -n "$enableval"; then
  if test "$enableval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$enableval" = yes; then
  echo "$ac_t""yes" 1>&6
  if test "$x_includes" = "NONE"; then
    # If we find X, set shell vars x_includes and x_libraries to the
# paths, otherwise set no_x=yes.
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6

# Check whether --with-x or --without-x was given.
withval="$with_x"
if test -n "$withval"; then
  :
fi

if test "x$with_x" = xno; then
  no_x=yes
else
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
    no_x=
  else
if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  # One or both of the vars are not set, and there is no cached value.
no_x=yes
rm -fr conftestdir
if mkdir conftestdir; then
  cd conftestdir
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  cat > Imakefile <<'EOF'
acfindx:
	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
EOF
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
    no_x=
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    eval `make acfindx 2>/dev/null | grep -v make`
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
    if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
    then
      ac_im_usrlibdir=$ac_im_libdir
    fi
    # Screen out bogus values from the imake configuration.
    case "$ac_im_incroot" in
	/usr/include) ;;
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
    esac
    case "$ac_im_usrlibdir" in
	/usr/lib | /lib) ;;
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
    esac
  fi
  cd ..
  rm -fr conftestdir
fi

if test "$no_x" = yes; then
test -z "$x_direct_test_library" && x_direct_test_library=Xt
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
cat > conftest.$ac_ext <<EOF
#line 4460 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  no_x= ac_x_includes=
else
  echo "$ac_err" >&5
  rm -rf conftest*
    for ac_dir in               \
    /usr/X11R6/include        \
    /usr/X11R5/include        \
    /usr/X11R4/include        \
                              \
    /usr/include/X11R6        \
    /usr/include/X11R5        \
    /usr/include/X11R4        \
                              \
    /usr/local/X11R6/include  \
    /usr/local/X11R5/include  \
    /usr/local/X11R4/include  \
                              \
    /usr/local/include/X11R6  \
    /usr/local/include/X11R5  \
    /usr/local/include/X11R4  \
                              \
    /usr/X11/include          \
    /usr/include/X11          \
    /usr/local/X11/include    \
    /usr/local/include/X11    \
                              \
    /usr/X386/include         \
    /usr/x386/include         \
    /usr/XFree86/include/X11  \
                              \
    /usr/include              \
    /usr/local/include        \
    /usr/unsupported/include  \
    /usr/athena/include       \
    /usr/local/x11r5/include  \
    /usr/lpp/Xamples/include  \
                              \
    /usr/openwin/include      \
    /usr/openwin/share/include \
    ; \
  do
    if test -r "$ac_dir/$x_direct_test_include"; then
      no_x= ac_x_includes=$ac_dir
      break
    fi
  done
fi
rm -f conftest*

# Check for the libraries.
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4523 "configure"
#include "confdefs.h"

int main() { return 0; }
int t() {
${x_direct_test_function}()
; return 0; }
EOF
if eval $ac_link; then
  rm -rf conftest*
  LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
else
  rm -rf conftest*
  LIBS="$ac_save_LIBS"
# First see if replacing the include by lib works.
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
    /usr/X11R6/lib        \
    /usr/X11R5/lib        \
    /usr/X11R4/lib        \
                          \
    /usr/lib/X11R6        \
    /usr/lib/X11R5        \
    /usr/lib/X11R4        \
                          \
    /usr/local/X11R6/lib  \
    /usr/local/X11R5/lib  \
    /usr/local/X11R4/lib  \
                          \
    /usr/local/lib/X11R6  \
    /usr/local/lib/X11R5  \
    /usr/local/lib/X11R4  \
                          \
    /usr/X11/lib          \
    /usr/lib/X11          \
    /usr/local/X11/lib    \
    /usr/local/lib/X11    \
                          \
    /usr/X386/lib         \
    /usr/x386/lib         \
    /usr/XFree86/lib/X11  \
                          \
    /usr/lib              \
    /usr/local/lib        \
    /usr/unsupported/lib  \
    /usr/athena/lib       \
    /usr/local/x11r5/lib  \
    /usr/lpp/Xamples/lib  \
                          \
    /usr/openwin/lib      \
    /usr/openwin/share/lib \
    ; \
do
  for ac_extension in a so sl; do
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
      no_x= ac_x_libraries=$ac_dir
      break 2
    fi
  done
done
fi
rm -f conftest*

fi
if test "$no_x" = yes; then
  ac_cv_path_x="no_x=yes"
else
  ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi
fi
  fi
  eval "$ac_cv_path_x"
fi # $with_x != no

if test "$no_x" = yes; then
  echo "$ac_t""no" 1>&6
else
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
fi

  fi
  if test "$x_includes" = "NONE"; then
    { echo "configure: error: *** Can't find X include files.  Must specify their location using --with-x=INCLUDEPATH." 1>&2; exit 1; }
  else
    cat >> confdefs.h <<\EOF
#define ADD_XT_SUPPORT 1
EOF

    XT_INCLUDES="-I$x_includes -I$x_includes/X11"
  fi
else
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define ADD_XT_SUPPORT 1
EOF

  XT_INCLUDES="$enableval"
fi
else
  echo "$ac_t""no" 1>&6
fi



if test "x$prefix" = xNONE; then
  if test "$ac_default_prefix" != "" ; then
    prefix="$ac_default_prefix"
  fi
fi


echo $ac_n "checking value of ILUHOME""... $ac_c" 1>&6
# Check whether --with-iluhome or --without-iluhome was given.
withval="$with_iluhome"
if test -n "$withval"; then
  if test "$withval" = no; then
  { echo "configure: error: Either a specified or default ($prefix) ILUHOME value must be provided." 1>&2; exit 1; }
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-iluhome=PATH" 1>&2; exit 1; }
else
  ILUHOME="$withval"
fi
else
  ILUHOME="$prefix"
fi

cat >> confdefs.h <<EOF
#define ILUHOME "$ILUHOME"
EOF

echo "$ac_t""$ILUHOME" 1>&6


echo $ac_n "checking value of DESTDIR""... $ac_c" 1>&6
# Check whether --with-destdir or --without-destdir was given.
withval="$with_destdir"
if test -n "$withval"; then
  if test "$withval" = no; then
  { echo "configure: error: Either a specified or default ($prefix) DESTDIR value must be provided." 1>&2; exit 1; }
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-destdir=PATH" 1>&2; exit 1; }
else
  DESTDIR="$withval"
fi
else
  DESTDIR="$prefix"
fi

echo "$ac_t""$DESTDIR" 1>&6


echo $ac_n "checking whether to use shared files for simple binding""... $ac_c" 1>&6
# Check whether --with-binding-dir or --without-binding-dir was given.
withval="$with_binding_dir"
if test -n "$withval"; then
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-binding-dir=PATH" 1>&2; exit 1; }
else
  BINDINGDIR="$withval"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$BINDINGDIR" != "" ; then
  cat >> confdefs.h <<EOF
#define ILU_BINDING_DIRECTORY "$BINDINGDIR"
EOF

  echo "$ac_t""yes, in $BINDINGDIR" 1>&6
fi

echo $ac_n "checking whether to use ILU service for simple binding""... $ac_c" 1>&6
# Check whether --with-binding-server or --without-binding-server was given.
withval="$with_binding_server"
if test -n "$withval"; then
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-binding-server=HOST:PORT" 1>&2; exit 1; }
else
  BINDINGHOSTPORT="$withval"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$BINDINGHOSTPORT" != ""; then
  BINDINGHOST=`echo "$BINDINGHOSTPORT" | sed -e 's/:.*$//'`
  BINDINGPORT=`echo "$BINDINGHOSTPORT" | sed -e 's/[0-9.]*[:]*//'`
  cat >> confdefs.h <<EOF
#define ILU_BINDING_HOST "$BINDINGHOST"
EOF

  cat >> confdefs.h <<EOF
#define ILU_BINDING_PORT $BINDINGPORT
EOF

  echo "$ac_t""yes, on host $BINDINGHOST, port $BINDINGPORT" 1>&6
fi

BINDINGHOSTPORT=""

echo $ac_n "checking whether to use multicast for simple binding""... $ac_c" 1>&6
# Check whether --with-binding-multicast or --without-binding-multicast was given.
withval="$with_binding_multicast"
if test -n "$withval"; then
  if test "$withval" = no; then
  echo "$ac_t""no" 1>&6
elif test "$withval" = yes; then
  { echo "configure: error: Usage:  ./configure --with-binding-multicast=IPADDR:PORT" 1>&2; exit 1; }
else
  cat >> confdefs.h <<EOF
#define ILU_BINDING_MCASTADDR "$withval"
EOF

  echo "$ac_t""yes, at $withval" 1>&6
  echo -n "*** Where are the multicast include files?  "
  read MULTICAST_INCLUDES_1
  MULTICAST_INCLUDES="-I$MULTICAST_INCLUDES_1"
  echo "Multicast includes at $MULTICAST_INCLUDES"
fi
else
  echo "$ac_t""no" 1>&6
fi


if test "$MULTICAST_INCLUDES" = "" -a "$BINDINGDIR" = "" -a "$BINDINGHOST" = ""; then
  BINDINGDIR="${ILUHOME}/lib/binding"
  cat >> confdefs.h <<EOF
#define ILU_BINDING_DIRECTORY "$BINDINGDIR"
EOF

  echo "$ac_t""Using shared files in $BINDINGDIR for simple binding, by default." 1>&6
fi

trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  >> confcache
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "$CONFIG_STATUS generated by autoconf version 2.3"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "iludefs topmake ssllocations.cfg iluconf.h ilugss_conf.h iluchoices" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15

# Protect against being on the right side of a sed subst in config.status. 
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
s%@CC@%$CC%g
s%@CC2@%$CC2%g
s%@ANSI_C_LIBRARY@%$ANSI_C_LIBRARY%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@IMAKE@%$IMAKE%g
s%@AR@%$AR%g
s%@LN_S@%$LN_S%g
s%@BOURNE_SHELL@%$BOURNE_SHELL%g
s%@PERL@%$PERL%g
s%@BISON@%$BISON%g
s%@DVIPS@%$DVIPS%g
s%@DVIPS4050@%$DVIPS4050%g
s%@GHOSTSCRIPT@%$GHOSTSCRIPT%g
s%@MAKEINFO@%$MAKEINFO%g
s%@TEXINDEX@%$TEXINDEX%g
s%@TEX@%$TEX%g
s%@GIFTOPPM@%$GIFTOPPM%g
s%@PPMQUANT@%$PPMQUANT%g
s%@PPMTOPGM@%$PPMTOPGM%g
s%@PNMSCALE@%$PNMSCALE%g
s%@PGMTOPBM@%$PGMTOPBM%g
s%@PBMTOASCII@%$PBMTOASCII%g
s%@MAKEWHATIS@%$MAKEWHATIS%g
s%@CPP@%$CPP%g
s%@LDSHARED_COMMAND@%$LDSHARED_COMMAND%g
s%@LDSHARED_FILE_EXT@%$LDSHARED_FILE_EXT%g
s%@CXX@%$CXX%g
s%@M3@%$M3%g
s%@M3_COMPILER@%$M3_COMPILER%g
s%@PYTHONHOME@%$PYTHONHOME%g
s%@PYTHON@%$PYTHON%g
s%@PYTHON_PREFIX@%$PYTHON_PREFIX%g
s%@LISP_BATCH_COMMAND@%$LISP_BATCH_COMMAND%g
s%@LISP_BIN_EXT@%$LISP_BIN_EXT%g
s%@LISP_C_BIN_EXT@%$LISP_C_BIN_EXT%g
s%@FRANZ@%$FRANZ%g
s%@GSS_LIBRARIES@%$GSS_LIBRARIES%g
s%@GSS_INCLUDE_DIR@%$GSS_INCLUDE_DIR%g
s%@RSAREF_DIR@%$RSAREF_DIR%g
s%@RSAREF_LIB@%$RSAREF_LIB%g
s%@LIBDES_INCL_DIR@%$LIBDES_INCL_DIR%g
s%@LIBDES_LIB@%$LIBDES_LIB%g
s%@IDL_CFE_OSV@%$IDL_CFE_OSV%g
s%@XVIEW_INCLUDES@%$XVIEW_INCLUDES%g
s%@TK_INCLUDES@%$TK_INCLUDES%g
s%@XT_INCLUDES@%$XT_INCLUDES%g
s%@ILUHOME@%$ILUHOME%g
s%@DESTDIR@%$DESTDIR%g
s%@BINDINGDIR@%$BINDINGDIR%g
s%@MULTICAST_INCLUDES@%$MULTICAST_INCLUDES%g

CEOF
EOF
cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"iludefs topmake ssllocations.cfg"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust relative srcdir, etc. for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
fi; done
rm -f conftest.subs

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

CONFIG_HEADERS=${CONFIG_HEADERS-"iluconf.h ilugss_conf.h iluchoices"}
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  cp $ac_given_srcdir/$ac_file_in conftest.in

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status. 
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.
# Maximum number of lines to put in a single here document.
ac_max_here_lines=12

rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done



exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1



rm -f ../runtime/kernel/iluconf.h
cp ./iluconf.h ../runtime/kernel/iluconf.h
chmod 444 ../runtime/kernel/iluconf.h


if test "$secure_transport" = "yes"; then
  rm -f ../GSS/kernel/ilugss_conf.h
  cp ./ilugss_conf.h ../GSS/kernel/ilugss_conf.h
  chmod 444 ../GSS/kernel/ilugss_conf.h
  if test -f ../GSS/kernel/makefile ; then
    mv ../GSS/kernel/makefile ../GSS/kernel/makefile.unused
  fi
  rm -f ../GSS/ssl/locations.cfg
  cp ssllocations.cfg ../GSS/ssl/locations.cfg
  chmod 444 ../GSS/ssl/locations.cfg
fi


echo "$ac_t""creating ilu.defs.new..." 1>&6
rm -f ilu.defs.new
cat iluchoices iludefs >ilu.defs.new
chmod 444 ilu.defs.new
rm -f iluchoices iludefs


echo "$ac_t""creating top-level Makefile..." 1>&6
if test -f ../BootstrapMakefile ; then
  rm -f ../BootstrapMakefile
fi
cat ./topmake >../BootstrapMakefile
