2001-04-09 20:54:03 +01:00
|
|
|
#! /bin/sh
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
2001-09-10 15:39:55 +01:00
|
|
|
# Generated automatically using autoconf version 2.13
|
|
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# This configure script is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy, distribute and modify it.
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Defaults:
|
|
|
|
ac_help=
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_default_prefix=/usr/local
|
2001-09-10 15:39:55 +01:00
|
|
|
# Any additions from configure.in:
|
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-rational-trees support infinite rational trees "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-coroutining support co-routining, attributed variables and constraints"
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-wam-profile support low level profiling of abstract machine "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-depth-limit support depth-bound computation "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-or-parallelism support or-parallelism as: env-copy,sba,a-cow "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-low-level-tracer support support for procedure-call tracing "
|
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-tabling support tabling as: batched,local "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-max-performance try using the best flags for specific architecture "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--enable-debug-yap enable C-debugging for YAP "
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--with-gmp[=DIR] use GNU Multiple Precision in DIR"
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_help="$ac_help
|
2002-01-15 17:55:50 +00:00
|
|
|
--with-readline[=DIR] use GNU Readline Library in DIR"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-heap-space[=space] default heap size in Kbytes"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-stack-space[=space] default stack size in Kbytes"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-trail-space[=space] default trail size in Kbytes"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# Initialize some variables set by options.
|
|
|
|
# The variables have the same names as the options, with
|
|
|
|
# dashes changed to underlines.
|
2001-09-10 15:39:55 +01:00
|
|
|
build=NONE
|
|
|
|
cache_file=./config.cache
|
2001-04-09 20:54:03 +01:00
|
|
|
exec_prefix=NONE
|
2001-09-10 15:39:55 +01:00
|
|
|
host=NONE
|
2001-04-09 20:54:03 +01:00
|
|
|
no_create=
|
2001-09-10 15:39:55 +01:00
|
|
|
nonopt=NONE
|
2001-04-09 20:54:03 +01:00
|
|
|
no_recursion=
|
|
|
|
prefix=NONE
|
|
|
|
program_prefix=NONE
|
|
|
|
program_suffix=NONE
|
|
|
|
program_transform_name=s,x,x,
|
|
|
|
silent=
|
|
|
|
site=
|
|
|
|
srcdir=
|
2001-09-10 15:39:55 +01:00
|
|
|
target=NONE
|
2001-04-09 20:54:03 +01:00
|
|
|
verbose=
|
|
|
|
x_includes=NONE
|
|
|
|
x_libraries=NONE
|
|
|
|
bindir='${exec_prefix}/bin'
|
|
|
|
sbindir='${exec_prefix}/sbin'
|
|
|
|
libexecdir='${exec_prefix}/libexec'
|
|
|
|
datadir='${prefix}/share'
|
|
|
|
sysconfdir='${prefix}/etc'
|
|
|
|
sharedstatedir='${prefix}/com'
|
|
|
|
localstatedir='${prefix}/var'
|
|
|
|
libdir='${exec_prefix}/lib'
|
|
|
|
includedir='${prefix}/include'
|
|
|
|
oldincludedir='/usr/include'
|
|
|
|
infodir='${prefix}/info'
|
|
|
|
mandir='${prefix}/man'
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Initialize some other variables.
|
|
|
|
subdirs=
|
|
|
|
MFLAGS= MAKEFLAGS=
|
|
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
|
|
|
# Maximum number of lines to put in a shell here document.
|
|
|
|
ac_max_here_lines=12
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
ac_prev=
|
|
|
|
for ac_option
|
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# If the previous option needs an argument, assign it.
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
eval "$ac_prev=\$ac_option"
|
|
|
|
ac_prev=
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
case "$ac_option" in
|
|
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
*) ac_optarg= ;;
|
|
|
|
esac
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
case "$ac_option" in
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
|
|
ac_prev=bindir ;;
|
|
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
bindir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_prev=build ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
build="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
cache_file="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
|
|
ac_prev=datadir ;;
|
|
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
|
|
| --da=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
datadir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-disable-* | --disable-*)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2001-09-10 15:39:55 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-enable-* | --enable-*)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
|
|
|
*=*) ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
2001-09-10 15:39:55 +01:00
|
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
exec_prefix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-gas | --gas | --ga | --g)
|
|
|
|
# Obsolete; use --with-gas.
|
|
|
|
with_gas=yes ;;
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
-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=EPREFIX install architecture-dependent files in EPREFIX
|
|
|
|
[same as prefix]
|
|
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
|
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|
|
|
--datadir=DIR read-only architecture-independent data in DIR
|
|
|
|
[PREFIX/share]
|
|
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|
|
|
[PREFIX/com]
|
|
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|
|
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
|
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|
|
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
|
|
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
|
|
|
--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
|
|
|
|
EOF
|
|
|
|
cat << EOF
|
|
|
|
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
|
|
|
|
EOF
|
|
|
|
if test -n "$ac_help"; then
|
|
|
|
echo "--enable and --with options recognized:$ac_help"
|
|
|
|
fi
|
|
|
|
exit 0 ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-host | --host | --hos | --ho)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_prev=host ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
host="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
|
|
| --includ | --inclu | --incl | --inc)
|
|
|
|
ac_prev=includedir ;;
|
|
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
includedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
|
|
ac_prev=infodir ;;
|
|
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
infodir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
|
|
ac_prev=libdir ;;
|
|
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
libdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
|
|
| --libexe | --libex | --libe)
|
|
|
|
ac_prev=libexecdir ;;
|
|
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
|
|
| --libexe=* | --libex=* | --libe=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
libexecdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
|
|
| --localstate | --localstat | --localsta | --localst \
|
|
|
|
| --locals | --local | --loca | --loc | --lo)
|
|
|
|
ac_prev=localstatedir ;;
|
|
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
localstatedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
|
|
ac_prev=mandir ;;
|
|
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
mandir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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 ;;
|
|
|
|
|
|
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
|
|
| --oldin | --oldi | --old | --ol | --o)
|
|
|
|
ac_prev=oldincludedir ;;
|
|
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
oldincludedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
|
|
ac_prev=prefix ;;
|
|
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
prefix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
program_prefix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
program_suffix="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
program_transform_name="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
|
|
silent=yes ;;
|
|
|
|
|
|
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
|
|
ac_prev=sbindir ;;
|
|
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
|
|
| --sbi=* | --sb=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
sbindir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
|
|
|
| --sha | --sh)
|
|
|
|
ac_prev=sharedstatedir ;;
|
|
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
|
|
| --sha=* | --sh=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
sharedstatedir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-site | --site | --sit)
|
|
|
|
ac_prev=site ;;
|
|
|
|
-site=* | --site=* | --sit=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
site="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
|
|
ac_prev=srcdir ;;
|
|
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
srcdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
|
|
ac_prev=sysconfdir ;;
|
|
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
sysconfdir="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_prev=target ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
target="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
|
|
verbose=yes ;;
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
-version | --version | --versio | --versi | --vers)
|
|
|
|
echo "configure generated by autoconf version 2.13"
|
|
|
|
exit 0 ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-with-* | --with-*)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
2001-09-10 15:39:55 +01:00
|
|
|
case "$ac_option" in
|
|
|
|
*=*) ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
2001-09-10 15:39:55 +01:00
|
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-without-* | --without-*)
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
2001-04-09 20:54:03 +01:00
|
|
|
# Reject names that are not valid shell variable names.
|
2001-09-10 15:39:55 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
--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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
x_includes="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
-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=*)
|
2001-09-10 15:39:55 +01:00
|
|
|
x_libraries="$ac_optarg" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2001-09-10 15:39:55 +01:00
|
|
|
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"
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -n "$ac_prev"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-07-11 08:10:17 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# NLS nuisances.
|
|
|
|
# Only set these to C if already set. These must not be set unconditionally
|
|
|
|
# because not all systems understand e.g. LANG=C (notably SCO).
|
|
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
|
|
# Non-C LC_CTYPE values break the ctype check.
|
|
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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=console/yap.c
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
2001-04-09 20:54:03 +01:00
|
|
|
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
|
2001-09-10 15:39:55 +01:00
|
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "loading site script $ac_site_file"
|
2001-04-09 20:54:03 +01:00
|
|
|
. "$ac_site_file"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -r "$cache_file"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "loading cache $cache_file"
|
|
|
|
. $cache_file
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "creating cache $cache_file"
|
|
|
|
> $cache_file
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
ac_ext=c
|
2001-09-10 15:39:55 +01:00
|
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
ac_exeext=
|
|
|
|
ac_objext=o
|
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_n= ac_c='\c' ac_t=
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
mycflags="$CFLAGS"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
2001-04-09 20:54:03 +01:00
|
|
|
set dummy gcc; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:560: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="gcc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
CC="$ac_cv_prog_CC"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$CC"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$CC" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -z "$CC"; then
|
|
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
|
|
|
set dummy cc; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:590: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_prog_rejected=no
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
|
|
ac_prog_rejected=yes
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
ac_cv_prog_CC="cc"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $ac_prog_rejected = yes; then
|
|
|
|
# We found a bogon in the path, so make sure we never use it.
|
|
|
|
set dummy $ac_cv_prog_CC
|
|
|
|
shift
|
2001-09-10 15:39:55 +01:00
|
|
|
if test $# -gt 0; then
|
2001-04-09 20:54:03 +01:00
|
|
|
# We chose a different compiler from the bogus one.
|
|
|
|
# However, it has the same basename, so the bogon will be chosen
|
|
|
|
# first if we set CC to just the basename; use the full file name.
|
|
|
|
shift
|
2001-09-10 15:39:55 +01:00
|
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
2001-04-09 20:54:03 +01:00
|
|
|
shift
|
|
|
|
ac_cv_prog_CC="$@"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
CC="$ac_cv_prog_CC"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$CC"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$CC" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
if test -z "$CC"; then
|
|
|
|
case "`uname -s`" in
|
|
|
|
*win32* | *WIN32*)
|
|
|
|
# Extract the first word of "cl", so it can be a program name with args.
|
|
|
|
set dummy cl; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:641: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_CC="cl"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
CC="$ac_cv_prog_CC"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$CC"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$CC" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-11 21:20:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:673: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
2001-06-11 21:20:36 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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'
|
|
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
2001-06-11 21:20:36 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext << EOF
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 684 "configure"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include "confdefs.h"
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
main(){return(0);}
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_prog_cc_works=yes
|
|
|
|
# If we can't run a trivial program, we are probably using a cross compiler.
|
|
|
|
if (./conftest; exit) 2>/dev/null; then
|
|
|
|
ac_cv_prog_cc_cross=no
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_prog_cc_cross=yes
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cc_works=no
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
|
|
|
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'
|
|
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
|
|
if test $ac_cv_prog_cc_works = no; then
|
|
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:720: checking whether we are using GNU C" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_prog_gcc=yes
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
fi
|
|
|
|
fi
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
GCC=yes
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
GCC=
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:748: checking whether ${CC-cc} accepts -g" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo 'void f(){}' > conftest.c
|
|
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
2001-06-29 20:30:25 +01:00
|
|
|
ac_cv_prog_cc_g=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_prog_cc_g=no
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
|
|
|
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
if test "$ac_test_CFLAGS" = set; then
|
2001-09-10 15:39:55 +01:00
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
2001-06-29 20:30:25 +01:00
|
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
|
|
if test "$GCC" = yes; then
|
2001-06-11 16:12:07 +01:00
|
|
|
CFLAGS="-g -O2"
|
|
|
|
else
|
|
|
|
CFLAGS="-g"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CFLAGS=
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-rational-trees or --disable-rational-trees was given.
|
|
|
|
if test "${enable_rational_trees+set}" = set; then
|
|
|
|
enableval="$enable_rational_trees"
|
|
|
|
rationaltrees="$enableval" ; rationaltrees=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-coroutining or --disable-coroutining was given.
|
|
|
|
if test "${enable_coroutining+set}" = set; then
|
|
|
|
enableval="$enable_coroutining"
|
|
|
|
rationaltrees="$enableval";coroutining="$enableval"
|
2001-06-11 16:12:07 +01:00
|
|
|
else
|
2001-07-05 17:14:15 +01:00
|
|
|
coroutining=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-wam-profile or --disable-wam-profile was given.
|
|
|
|
if test "${enable_wam_profile+set}" = set; then
|
|
|
|
enableval="$enable_wam_profile"
|
|
|
|
wamprofile="$enableval"
|
|
|
|
else
|
|
|
|
wamprofile=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-depth-limit or --disable-depth-limit was given.
|
|
|
|
if test "${enable_depth_limit+set}" = set; then
|
|
|
|
enableval="$enable_depth_limit"
|
|
|
|
depthlimit="$enableval"
|
|
|
|
else
|
|
|
|
depthlimit=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-or-parallelism or --disable-or-parallelism was given.
|
|
|
|
if test "${enable_or_parallelism+set}" = set; then
|
|
|
|
enableval="$enable_or_parallelism"
|
|
|
|
orparallelism="$enableval"
|
|
|
|
else
|
|
|
|
orparallelism=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-low-level-tracer or --disable-low-level-tracer was given.
|
|
|
|
if test "${enable_low_level_tracer+set}" = set; then
|
|
|
|
enableval="$enable_low_level_tracer"
|
|
|
|
lowleveltracer="$enableval"
|
|
|
|
else
|
|
|
|
lowleveltracer=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-tabling or --disable-tabling was given.
|
|
|
|
if test "${enable_tabling+set}" = set; then
|
|
|
|
enableval="$enable_tabling"
|
|
|
|
tabling="$enableval"
|
|
|
|
else
|
|
|
|
tabling=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-max-performance or --disable-max-performance was given.
|
|
|
|
if test "${enable_max_performance+set}" = set; then
|
|
|
|
enableval="$enable_max_performance"
|
|
|
|
maxperformance="$enableval"
|
|
|
|
else
|
|
|
|
maxperformance=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --enable-debug-yap or --disable-debug-yap was given.
|
|
|
|
if test "${enable_debug_yap+set}" = set; then
|
|
|
|
enableval="$enable_debug_yap"
|
|
|
|
debugyap="$enableval"
|
|
|
|
else
|
|
|
|
debugyap=no
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Check whether --with-gmp or --without-gmp was given.
|
|
|
|
if test "${with_gmp+set}" = set; then
|
|
|
|
withval="$with_gmp"
|
|
|
|
if test $withval = yes; then
|
|
|
|
yap_cv_gmp=yes
|
|
|
|
elif test $withval = no; then
|
|
|
|
yap_cv_gmp=no
|
|
|
|
else
|
|
|
|
yap_cv_gmp=$with_gmp
|
|
|
|
LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include"
|
|
|
|
fi
|
2002-01-15 17:55:50 +00:00
|
|
|
else
|
|
|
|
yap_cv_gmp=yes
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
|
|
|
|
# Check whether --with-readline or --without-readline was given.
|
|
|
|
if test "${with_readline+set}" = set; then
|
|
|
|
withval="$with_readline"
|
|
|
|
if test $withval = yes; then
|
|
|
|
yap_cv_readline=yes
|
|
|
|
elif test $withval = no; then
|
|
|
|
yap_cv_readline=no
|
|
|
|
else
|
|
|
|
yap_cv_readline=$with_readline
|
|
|
|
LDFLAGS="$LDFLAGS -L${yap_cv_readline}/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_readline}/include"
|
|
|
|
fi
|
2002-01-15 17:55:50 +00:00
|
|
|
else
|
|
|
|
yap_cv_readline=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-heap-space or --without-heap-space was given.
|
|
|
|
if test "${with_heap_space+set}" = set; then
|
|
|
|
withval="$with_heap_space"
|
|
|
|
if test $withval = yes; then
|
|
|
|
yap_cv_heap_space=0
|
|
|
|
elif test $withval = no; then
|
|
|
|
yap_cv_heap_space=0
|
|
|
|
else
|
|
|
|
yap_cv_heap_space=$withval
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
yap_cv_heap_space=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-stack-space or --without-stack-space was given.
|
|
|
|
if test "${with_stack_space+set}" = set; then
|
|
|
|
withval="$with_stack_space"
|
|
|
|
if test $withval = yes; then
|
|
|
|
yap_cv_stack_space=0
|
|
|
|
elif test $withval = no; then
|
|
|
|
yap_cv_stack_space=0
|
|
|
|
else
|
|
|
|
yap_cv_stack_space=$withval
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
yap_cv_stack_space=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-trail-space or --without-trail-space was given.
|
|
|
|
if test "${with_trail_space+set}" = set; then
|
|
|
|
withval="$with_trail_space"
|
|
|
|
if test $withval = yes; then
|
|
|
|
yap_cv_trail_space=0
|
|
|
|
elif test $withval = no; then
|
|
|
|
yap_cv_trail_space=0
|
|
|
|
else
|
|
|
|
yap_cv_trail_space=$withval
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
yap_cv_trail_space=0
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
|
2001-06-11 16:12:07 +01:00
|
|
|
|
2002-01-15 17:55:50 +00:00
|
|
|
if test $tabling = yes -o $orparallelism = yes
|
|
|
|
then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MinHeapSpace (300*SIZEOF_INT_P)
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MinStackSpace (300*SIZEOF_INT_P)
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MinTrailSpace ( 48*SIZEOF_INT_P)
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MinHeapSpace (200*SIZEOF_INT_P)
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MinStackSpace (200*SIZEOF_INT_P)
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define MinTrailSpace ( 32*SIZEOF_INT_P)
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
eval "cat >> confdefs.h <<\EOF
|
|
|
|
#define UsrHeapSpace ($yap_cv_heap_space)
|
|
|
|
EOF
|
|
|
|
"
|
|
|
|
eval "cat >> confdefs.h <<\EOF
|
|
|
|
#define UsrStackSpace ($yap_cv_stack_space)
|
|
|
|
EOF
|
|
|
|
"
|
|
|
|
eval "cat >> confdefs.h <<\EOF
|
|
|
|
#define UsrTrailSpace ($yap_cv_trail_space)
|
|
|
|
EOF
|
|
|
|
"
|
|
|
|
|
2001-06-11 21:20:36 +01:00
|
|
|
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
|
2001-09-10 15:39:55 +01:00
|
|
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
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.
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
# Do some error checking and defaulting for the host and target type.
|
|
|
|
# The inputs are:
|
|
|
|
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
|
|
|
#
|
|
|
|
# The rules are:
|
|
|
|
# 1. You are not allowed to specify --host, --target, and nonopt at the
|
|
|
|
# same time.
|
|
|
|
# 2. Host defaults to nonopt.
|
|
|
|
# 3. If nonopt is not specified, then host defaults to the current host,
|
|
|
|
# as determined by config.guess.
|
|
|
|
# 4. Target and build default to nonopt.
|
|
|
|
# 5. If nonopt is not specified, then target and build default to host.
|
2001-07-05 17:14:15 +01:00
|
|
|
|
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
|
|
# will get canonicalized.
|
2001-09-10 15:39:55 +01:00
|
|
|
case $host---$target---$nonopt in
|
|
|
|
NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
|
|
|
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
# Make sure we can run config.sub.
|
|
|
|
if ${CONFIG_SHELL-/bin/sh} $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
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1022: checking host system type" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
host_alias=$host
|
|
|
|
case "$host_alias" in
|
|
|
|
NONE)
|
|
|
|
case $nonopt in
|
|
|
|
NONE)
|
|
|
|
if host_alias=`${CONFIG_SHELL-/bin/sh} $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=`${CONFIG_SHELL-/bin/sh} $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
|
|
|
|
|
|
|
|
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1043: checking target system type" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
target_alias=$target
|
|
|
|
case "$target_alias" in
|
|
|
|
NONE)
|
|
|
|
case $nonopt in
|
|
|
|
NONE) target_alias=$host_alias ;;
|
|
|
|
*) target_alias=$nonopt ;;
|
|
|
|
esac ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
|
|
|
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
|
|
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
|
|
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
|
|
echo "$ac_t""$target" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1061: checking build system type" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
build_alias=$build
|
|
|
|
case "$build_alias" in
|
|
|
|
NONE)
|
|
|
|
case $nonopt in
|
|
|
|
NONE) build_alias=$host_alias ;;
|
|
|
|
*) build_alias=$nonopt ;;
|
|
|
|
esac ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
|
|
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
|
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
|
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
|
|
echo "$ac_t""$build" 1>&6
|
|
|
|
|
|
|
|
test "$host_alias" != "$target_alias" &&
|
2001-07-05 17:14:15 +01:00
|
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
|
|
NONENONEs,x,x, &&
|
|
|
|
program_prefix=${target_alias}-
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-07-05 17:14:15 +01:00
|
|
|
#define HOST_ALIAS "${host_alias}"
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
|
|
|
if test -z "${mycflags}"
|
|
|
|
then
|
|
|
|
if test "$debugyap" = "yes"
|
|
|
|
then
|
|
|
|
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|
|
|
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|
|
|
else
|
|
|
|
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
|
|
|
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
2001-08-11 00:07:00 +01:00
|
|
|
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
2001-07-05 17:14:15 +01:00
|
|
|
case "$target_cpu" in
|
|
|
|
i*86*)
|
|
|
|
CFLAGS="-DBP_FREE $CFLAGS"
|
|
|
|
;;
|
|
|
|
sparc*)
|
|
|
|
case "$target_os" in
|
2001-11-18 21:00:57 +00:00
|
|
|
*solaris2-9*)
|
2001-07-05 17:14:15 +01:00
|
|
|
CFLAGS="-mno-app-regs -DOPTIMISE_ALL_REGS_FOR_SPARC=1 $CFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
if test "$maxperformance" = "yes"
|
|
|
|
then
|
|
|
|
case "$target_cpu" in
|
|
|
|
i686*)
|
|
|
|
CFLAGS="-march=pentiumpro $CFLAGS"
|
|
|
|
;;
|
|
|
|
i586*)
|
|
|
|
CFLAGS="-march=pentium $CFLAGS"
|
|
|
|
;;
|
|
|
|
i486*)
|
|
|
|
CFLAGS="-march=i486 $CFLAGS"
|
|
|
|
;;
|
|
|
|
i386*)
|
|
|
|
CFLAGS="-march=i386 $CFLAGS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$CC" = "sslittle-na-sstrix-gcc"
|
|
|
|
then
|
|
|
|
RANLIB="sslittle-na-sstrix-ranlib"
|
|
|
|
AR="sslittle-na-sstrix-ar"
|
|
|
|
CROSS_SIMULATOR="sim-fast"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test -z "${mycflags}"
|
|
|
|
then
|
|
|
|
case "$target_cpu" in
|
|
|
|
i?86*)
|
|
|
|
if test "$CC" = "lcc"
|
|
|
|
then
|
|
|
|
CFLAGS="-A -A"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
hppa*)
|
|
|
|
if test "$CC" = "cc" -o $CC = c89
|
|
|
|
then
|
|
|
|
if test "$debugyap" = "yes"
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
CFLAGS="-Ae -g -O"
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
CFLAGS="-Ae +O3 +Onolimit"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
C_INTERF_FLAGS="$CFLAGS"
|
|
|
|
C_PARSER_FLAGS="$CFLAGS"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1166: checking whether ln -s works" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# 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
|
|
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
|
|
# 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.
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1198: checking for a BSD compatible install" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -z "$INSTALL"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
2001-04-09 20:54:03 +01:00
|
|
|
for ac_dir in $PATH; do
|
|
|
|
# Account for people who put trailing slashes in PATH elements.
|
2001-09-10 15:39:55 +01:00
|
|
|
case "$ac_dir/" in
|
|
|
|
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*)
|
|
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
|
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
|
|
|
# by default.
|
|
|
|
for ac_prog in ginstall scoinst install; do
|
2001-09-10 15:39:55 +01:00
|
|
|
if test -f $ac_dir/$ac_prog; then
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $ac_prog = install &&
|
2001-09-10 15:39:55 +01:00
|
|
|
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
2001-04-09 20:54:03 +01:00
|
|
|
# AIX install. It has an incompatible calling convention.
|
|
|
|
:
|
|
|
|
else
|
|
|
|
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
|
|
break 2
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="$ac_save_IFS"
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
if test "${ac_cv_path_install+set}" = set; then
|
2001-09-10 15:39:55 +01:00
|
|
|
INSTALL="$ac_cv_path_install"
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
# As a last resort, use the slow shell script. We don't cache a
|
|
|
|
# path for INSTALL within a source directory, because that will
|
|
|
|
# break other packages using the cache if that directory is
|
|
|
|
# removed, or if the path is relative.
|
2001-09-10 15:39:55 +01:00
|
|
|
INSTALL="$ac_install_sh"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$INSTALL" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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}'
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1253: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$RANLIB"; then
|
|
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; 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=":"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$RANLIB"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$RANLIB" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
if test $host != $build; then
|
|
|
|
ac_tool_prefix=${host_alias}-
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_tool_prefix=
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Extract the first word of "${ac_tool_prefix}indent", so it can be a program name with args.
|
2001-07-05 17:14:15 +01:00
|
|
|
set dummy ${ac_tool_prefix}indent; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1289: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test -n "$INDENT"; then
|
|
|
|
ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_INDENT="${ac_tool_prefix}indent"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
INDENT="$ac_cv_prog_INDENT"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -n "$INDENT"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$INDENT" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -z "$ac_cv_prog_INDENT"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
if test -n "$ac_tool_prefix"; then
|
2001-07-05 17:14:15 +01:00
|
|
|
# Extract the first word of "indent", so it can be a program name with args.
|
|
|
|
set dummy indent; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1321: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$INDENT"; then
|
|
|
|
ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
|
|
|
|
else
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_INDENT="indent"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_INDENT" && ac_cv_prog_INDENT="true"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
INDENT="$ac_cv_prog_INDENT"
|
|
|
|
if test -n "$INDENT"; then
|
|
|
|
echo "$ac_t""$INDENT" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
INDENT="true"
|
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
2001-07-05 17:14:15 +01:00
|
|
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1356: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -n "$AR"; then
|
|
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
AR="$ac_cv_prog_AR"
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -n "$AR"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$AR" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -z "$ac_cv_prog_AR"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
if test -n "$ac_tool_prefix"; then
|
2001-07-05 17:14:15 +01:00
|
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
|
|
|
set dummy ar; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1388: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_prog_AR="ar"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="true"
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
AR="$ac_cv_prog_AR"
|
|
|
|
if test -n "$AR"; then
|
|
|
|
echo "$ac_t""$AR" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
AR="true"
|
|
|
|
fi
|
2001-07-05 17:14:15 +01:00
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-07-05 17:14:15 +01:00
|
|
|
# Extract the first word of "install-info", so it can be a program name with args.
|
|
|
|
set dummy install-info; ac_word=$2
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1423: checking for $ac_word" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-07-05 17:14:15 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
case "$INSTALL_INFO" in
|
|
|
|
/*)
|
2001-07-05 17:14:15 +01:00
|
|
|
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
|
|
|
|
;;
|
2001-09-10 15:39:55 +01:00
|
|
|
?:/*)
|
|
|
|
ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
|
|
|
|
;;
|
2001-07-05 17:14:15 +01:00
|
|
|
*)
|
2001-09-10 15:39:55 +01:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH:/sbin:/usr/sbin:/usr/etc:/usr/local/sbin"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
2001-07-05 17:14:15 +01:00
|
|
|
test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="true"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
|
2001-07-05 17:14:15 +01:00
|
|
|
if test -n "$INSTALL_INFO"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$INSTALL_INFO" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
if test "$target_os" = "cygwin"
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2001-06-22 18:53:36 +01:00
|
|
|
if test "$CC" = "gcc"
|
|
|
|
then
|
|
|
|
CC="gcc -mno-cygwin"
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for main in -lwsock32""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1466: checking for main in -lwsock32" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo wsock32'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lwsock32 $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1474 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lwsock32 $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
INSTALL_COMMAND=install_mingw32
|
|
|
|
yap_cv_readline=no
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for main in -lwsock32""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1512: checking for main in -lwsock32" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo wsock32'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lwsock32 $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1520 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lwsock32 $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for main in -lcygwin""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1555: checking for main in -lcygwin" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo cygwin'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lcygwin $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1563 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo cygwin | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lcygwin $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-04-09 20:54:03 +01:00
|
|
|
INSTALL_COMMAND="install_unix"
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1601: checking for sin in -lm" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lm $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1609 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char sin();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
sin()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lm $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1648: checking for socket in -lsocket" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lsocket $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1656 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char socket();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
socket()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lsocket $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1695: checking for main in -lnsl" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-06-22 18:53:36 +01:00
|
|
|
LIBS="-lnsl $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1703 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
have_nsl=yes
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_nsl=no
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1733: checking for dlopen in -ldl" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-06-22 18:53:36 +01:00
|
|
|
LIBS="-ldl $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1741 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char dlopen();
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
dlopen()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
have_dl=yes
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
have_dl=no
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test "$yap_cv_readline" != "no"
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1778: checking for tgetent in -ltermcap" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-ltermcap $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1786 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char tgetent();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
tgetent()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-07-11 08:10:17 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-ltermcap $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1825: checking for readline in -lreadline" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lreadline $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1833 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char readline();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
readline()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lreadline $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
if test "$yap_cv_gmp" != "no"
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1875: checking for main in -lgmp" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_save_LIBS="$LIBS"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="-lgmp $LIBS"
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1883 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_lib_$ac_lib_var=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-lgmp $LIBS"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:1920: checking how to run the C preprocessor" >&5
|
2001-06-22 18:53:36 +01:00
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
CPP=
|
|
|
|
fi
|
|
|
|
if test -z "$CPP"; then
|
2001-09-10 15:39:55 +01:00
|
|
|
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"
|
2001-06-22 18:53:36 +01:00
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
2001-09-10 15:39:55 +01:00
|
|
|
# not just through cpp.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1935 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include <assert.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
2001-06-22 18:53:36 +01:00
|
|
|
:
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-06-22 18:53:36 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1952 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-06-11 21:20:36 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
CPP="${CC-cc} -nologo -E"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 1969 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
2001-06-22 18:53:36 +01:00
|
|
|
:
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-06-22 18:53:36 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
CPP=/lib/cpp
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-07-11 08:10:17 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
|
|
|
ac_cv_prog_CPP="$CPP"
|
|
|
|
fi
|
|
|
|
CPP="$ac_cv_prog_CPP"
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_prog_CPP="$CPP"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$CPP" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
|
|
|
|
if test "$cross_compiling" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS=
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2005: checking for restartable system calls" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-06-22 18:53:36 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
2001-06-22 18:53:36 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2013 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-06-22 18:53:36 +01:00
|
|
|
/* 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>
|
2001-09-10 15:39:55 +01:00
|
|
|
ucatch (isig) { }
|
|
|
|
main () {
|
2001-06-22 18:53:36 +01:00
|
|
|
int i = fork (), status;
|
2001-09-10 15:39:55 +01:00
|
|
|
if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
|
2001-06-22 18:53:36 +01:00
|
|
|
signal (SIGINT, ucatch);
|
2001-09-10 15:39:55 +01:00
|
|
|
status = wait(&i);
|
|
|
|
if (status == -1) wait(&i);
|
2001-06-22 18:53:36 +01:00
|
|
|
exit (status == -1);
|
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
2001-06-22 18:53:36 +01:00
|
|
|
ac_cv_sys_restartable_syscalls=yes
|
2001-06-11 21:20:36 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sys_restartable_syscalls=no
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-06-11 21:20:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-06-11 21:20:36 +01:00
|
|
|
fi
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
|
|
|
|
if test $ac_cv_sys_restartable_syscalls = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-06-22 18:53:36 +01:00
|
|
|
#define HAVE_RESTARTABLE_SYSCALLS 1
|
|
|
|
EOF
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-11-18 21:00:57 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
INSTALL_DLLS="#"
|
|
|
|
SHLIB_LD="@#"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD="#"
|
2001-04-09 20:54:03 +01:00
|
|
|
NEWSHOBJ="sobjs"
|
|
|
|
YAPLIB="libYap.a"
|
|
|
|
M4="m4"
|
|
|
|
|
|
|
|
case $target_os in
|
|
|
|
*linux*)
|
|
|
|
if test $have_dl = yes
|
|
|
|
then
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
SHLIB_LD="ld -shared"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS="$LIBS -ldl"
|
|
|
|
case $host_cpu in
|
|
|
|
alpha*)
|
|
|
|
LDFLAGS="-export-dynamic $LDFLAGS"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
if test "$CC" != "lcc"
|
|
|
|
then
|
|
|
|
LDFLAGS="-rdynamic $LDFLAGS"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if test $have_nsl = yes
|
|
|
|
then
|
|
|
|
LIBS="$LIBS -lnsl"
|
|
|
|
fi
|
|
|
|
if test $CC = gcc
|
|
|
|
then
|
|
|
|
SHLIB_CFLAGS="-shared -fPIC"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*sunos4*)
|
|
|
|
M4="/usr/5bin/m4"
|
|
|
|
LDFLAGS="$LDFLAGS -N"
|
|
|
|
if test $have_nsl = yes
|
|
|
|
then
|
|
|
|
LIBS="$LIBS -lnsl"
|
|
|
|
fi
|
|
|
|
SHLIB_SUFFIX=".o"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
;;
|
|
|
|
*hpux*)
|
|
|
|
#do not use the first memory quadrant
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define FORCE_SECOND_QUADRANT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
M4="/usr/bin/m4"
|
2002-01-15 17:55:50 +00:00
|
|
|
SHLIB_INTERFACE="load_shl.o"
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $CC = cc -o $CC = c89
|
|
|
|
then
|
2002-01-15 17:55:50 +00:00
|
|
|
#this tells ld to export all non-static symbols,
|
|
|
|
#otherwise no external predicates.
|
2001-09-24 15:06:06 +01:00
|
|
|
SHLIB_LD="ld -b -E ${LDFLAGS}"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_SUFFIX=".sl"
|
|
|
|
SHLIB_CFLAGS="+z"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
else
|
|
|
|
INSTALL_DLLS="#"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*aix*)
|
|
|
|
# To actually use dlls in AIX I'd need to build YAP as a DLL first.
|
|
|
|
# I won't bother for now.
|
|
|
|
#
|
|
|
|
# SHLIB_SUFFIX=".a"
|
|
|
|
#SHLIB_LD="\$(srcdir)/../../ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
|
|
|
|
#INSTALL_DLLS=""
|
|
|
|
;;
|
|
|
|
*osf*)
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
SHLIB_LD="ld -shared -expect_unresolved '*'"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
*irix6*)
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_SUFFIX=".so"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_LD="ld -n32 -shared -rdata_shared"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
;;
|
|
|
|
*netbsd*|*freebsd*)
|
|
|
|
if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
#an a.out system
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_SUFFIX=".o"
|
|
|
|
else
|
|
|
|
#an elf system
|
|
|
|
LDFLAGS="-Wl,--export-dynamic $LDFLAGS"
|
|
|
|
SHLIB_CFLAGS="-fPIC"
|
|
|
|
SHLIB_LD="ld -Bshareable -x"
|
2001-11-18 21:00:57 +00:00
|
|
|
DO_SECOND_LD=""
|
2001-04-09 20:54:03 +01:00
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
INSTALL_DLLS=""
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*cyg*)
|
|
|
|
SHLIB_SUFFIX=".dll"
|
|
|
|
NEWSHOBJ="dll"
|
|
|
|
YAPLIB=yap.dll
|
|
|
|
YAPLIB="libWYap.a"
|
|
|
|
prefix="c:/Program\\ Files/Yap"
|
2001-08-11 00:07:00 +01:00
|
|
|
# gcc on cygwin seems to have trouble with longjmp
|
|
|
|
# and -fomit-frame-point -DBP_FREE
|
|
|
|
C_PARSER_FLAGS="$C_INTERF_FLAGS"
|
2001-04-09 20:54:03 +01:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
if test $have_dl = yes
|
|
|
|
then
|
|
|
|
SHLIB_SUFFIX=".o"
|
|
|
|
LIBS="$LIBS -ldl"
|
2001-11-18 21:00:57 +00:00
|
|
|
INSTALL_DLLS=""
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $CC = gcc
|
|
|
|
then
|
|
|
|
SHLIB_CFLAGS="-fPIC"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test $have_nsl = yes
|
|
|
|
then
|
|
|
|
LIBS="$LIBS -lnsl"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$coroutining" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DCOROUTINING=1"
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$rationaltrees" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DRATIONAL_TREES=1"
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$debugyap" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DDEBUG=1"
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$wamprofile" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DANALYST=1"
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$depthlimit" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DDEPTH_LIMIT=1"
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$lowleveltracer" = "yes"
|
|
|
|
then
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DLOW_LEVEL_TRACER=1"
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
case "$orparallelism" in
|
|
|
|
sba)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DSBA=1"
|
|
|
|
;;
|
|
|
|
a-cow)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DACOW=1"
|
|
|
|
;;
|
|
|
|
yes|env-copy)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DENV_COPY=1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$tabling" in
|
|
|
|
local)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DTABLING_LOCAL_SCHEDULING=1"
|
|
|
|
;;
|
|
|
|
yes|batched)
|
|
|
|
YAP_EXTRAS="$YAP_EXTRAS -DTABLING_BATCHED_SCHEDULING=1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2249: checking for ANSI C header files" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2254 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <float.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_header_stdc=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2279 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <string.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
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.
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2297 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "free" >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
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.
|
2001-09-10 15:39:55 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-04-09 20:54:03 +01:00
|
|
|
:
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2318 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <ctype.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
2001-08-08 22:17:27 +01:00
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
:
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_header_stdc=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
fi
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define STDC_HEADERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2353: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2358 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
#ifndef WEXITSTATUS
|
2001-09-10 15:39:55 +01:00
|
|
|
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
#ifndef WIFEXITED
|
2001-09-10 15:39:55 +01:00
|
|
|
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
int s;
|
|
|
|
wait (&s);
|
|
|
|
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_header_sys_wait_h=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_sys_wait_h=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
|
|
if test $ac_cv_header_sys_wait_h = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SYS_WAIT_H 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in arpa/inet.h ctype.h direct.h dirent.h errno.h fcntl.h
|
2001-06-22 18:53:36 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2398: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2403 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-06-22 18:53:36 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-06-22 18:53:36 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in fenv.h fpu_control.h ieeefp.h io.h limits.h memory.h
|
2001-06-22 18:53:36 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2438: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2443 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-06-22 18:53:36 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-06-22 18:53:36 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in netdb.h netinet/in.h regex.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2478: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2483 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in siginfo.h signal.h stdarg.h string.h sys/file.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2518: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2523 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in sys/mman.h sys/param.h sys/resource.h sys/select.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2558: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2563 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in sys/shm.h sys/socket.h sys/stat.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2598: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2603 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in sys/time.h sys/times.h sys/types.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2638: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2643 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-08-08 22:17:27 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-08-08 22:17:27 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in sys/ucontext.h sys/un.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2678: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2683 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in time.h unistd.h winsock.h winsock2.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2718: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2723 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test "$yap_cv_gmp" != "no"
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in gmp.h
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2760: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2765 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-06-22 18:53:36 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-06-22 18:53:36 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test "$yap_cv_readline" != "no"
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
for ac_hdr in readline/readline.h
|
2001-06-22 18:53:36 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2803: checking for $ac_hdr" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2808 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:2813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
cat conftest.$ac_ext >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
2001-08-08 22:17:27 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2842: checking for inline" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
ac_cv_c_inline=no
|
|
|
|
for ac_kw in inline __inline__ __inline; do
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2849 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
|
|
|
} $ac_kw foo() {
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_c_inline=$ac_kw; break
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
|
|
case "$ac_cv_c_inline" in
|
2001-04-09 20:54:03 +01:00
|
|
|
inline | yes) ;;
|
2001-09-10 15:39:55 +01:00
|
|
|
no) cat >> confdefs.h <<\EOF
|
|
|
|
#define inline
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
;;
|
2001-09-10 15:39:55 +01:00
|
|
|
*) cat >> confdefs.h <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define inline $ac_cv_c_inline
|
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2882: checking whether struct tm is in sys/time.h or time.h" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2887 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <time.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
struct tm *tp; tp->tm_sec;
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-06-11 21:20:36 +01:00
|
|
|
ac_cv_struct_tm=time.h
|
2001-06-11 16:12:07 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_struct_tm=sys/time.h
|
2001-06-11 16:12:07 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-06-11 16:12:07 +01:00
|
|
|
fi
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
|
|
if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define TM_IN_SYS_TIME 1
|
2001-06-11 16:12:07 +01:00
|
|
|
EOF
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-06-11 21:20:36 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking size of int *""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2916: checking size of int *" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-08-08 22:17:27 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_int_p=4
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2924 "configure"
|
2001-08-08 22:17:27 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-08-08 22:17:27 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(int *));
|
|
|
|
exit(0);
|
2001-08-08 22:17:27 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_int_p=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_int_p=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define SIZEOF_INT_P $ac_cv_sizeof_int_p
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking size of short int""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2955: checking size of short int" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-08-08 22:17:27 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_short_int=2
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 2963 "configure"
|
2001-08-08 22:17:27 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-08-08 22:17:27 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(short int));
|
|
|
|
exit(0);
|
2001-08-08 22:17:27 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_short_int=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_short_int=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking size of int""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:2994: checking size of int" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-08-08 22:17:27 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_int=4
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3002 "configure"
|
2001-08-08 22:17:27 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-08-08 22:17:27 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(int));
|
|
|
|
exit(0);
|
2001-08-08 22:17:27 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_int=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_int=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define SIZEOF_INT $ac_cv_sizeof_int
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking size of long int""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3033: checking size of long int" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-08-08 22:17:27 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_long_int=4
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3041 "configure"
|
2001-08-08 22:17:27 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-08-08 22:17:27 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(long int));
|
|
|
|
exit(0);
|
2001-08-08 22:17:27 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_long_int=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_long_int=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking size of long long int""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3072: checking size of long long int" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_long_long_int=8
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3080 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-04-09 20:54:03 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(long long int));
|
|
|
|
exit(0);
|
2001-04-09 20:54:03 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_long_long_int=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_long_long_int=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking size of float""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3111: checking size of float" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-11 21:20:36 +01:00
|
|
|
else
|
2001-06-29 20:30:25 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_float=4
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3119 "configure"
|
2001-06-29 20:30:25 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-06-29 20:30:25 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(float));
|
|
|
|
exit(0);
|
2001-06-29 20:30:25 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_float=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_float=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-06-11 21:20:36 +01:00
|
|
|
#define SIZEOF_FLOAT $ac_cv_sizeof_float
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking size of double""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3150: checking size of double" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-06-29 20:30:25 +01:00
|
|
|
else
|
2001-08-08 22:17:27 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cv_sizeof_double=8
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3158 "configure"
|
2001-08-08 22:17:27 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
2001-08-08 22:17:27 +01:00
|
|
|
{
|
2001-09-10 15:39:55 +01:00
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(double));
|
|
|
|
exit(0);
|
2001-08-08 22:17:27 +01:00
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_double=`cat conftestval`
|
2001-08-08 22:17:27 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
ac_cv_sizeof_double=0
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-08-08 22:17:27 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|
|
|
EOF
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo $ac_n "checking for type of malloc""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3190: checking for type of malloc" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_cv_malloct'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_malloct=void
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3199 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
char *malloc(size_t);
|
|
|
|
int main() {
|
|
|
|
void *p=malloc(1);
|
|
|
|
return 0;
|
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_malloct=char
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_malloct=void
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_cv_malloct *" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $yap_cv_malloct = void
|
2001-09-10 15:39:55 +01:00
|
|
|
then cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define MALLOC_T void *
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
else cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define MALLOC_T char *
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for gcc inline""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3237: checking for gcc inline" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_cv_gcc'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_gcc=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3246 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#undef inline
|
|
|
|
inline int f(int x) {return x+1;}
|
|
|
|
int main() { return 0;}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_gcc=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_gcc=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_cv_gcc" 1>&6
|
|
|
|
if test $yap_cv_gcc = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
|
|
|
M4GENHDRS=m4/gcc_genhdrs.m4
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_GCC 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
M4GENHDRS=m4/cc_genhdrs.m4
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_GCC 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for gcc threaded code""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3287: checking for gcc threaded code" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_cv_threaded_code'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_threaded_code=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3296 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
void *t = &&l2;
|
|
|
|
l1: goto *t;
|
|
|
|
l2: return 0;
|
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_threaded_code=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_threaded_code=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_cv_threaded_code" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $yap_cv_threaded_code = yes && test $yap_cv_gcc = yes
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define USE_THREADED_CODE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
M4GENABSMI=gen_gcc.m4
|
2001-09-10 15:39:55 +01:00
|
|
|
else
|
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define USE_THREADED_CODE 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
M4GENABSMI=gen_ansi.m4
|
|
|
|
fi
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for IEEE floats""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3339: checking for IEEE floats" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_cv_ffieee'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
yap_cv_ffieee=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3348 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
int main() {
|
|
|
|
union { float f; int i} a;
|
|
|
|
a.f = 1;
|
|
|
|
if (a.i==0x3f800000) return 0;
|
|
|
|
return 1;
|
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-09-10 15:39:55 +01:00
|
|
|
then
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_cv_ffieee=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
yap_cv_ffieee=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_cv_ffieee" 1>&6
|
|
|
|
if test $yap_cv_ffieee = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define FFIEEE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define FFIEEE 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3387: checking for sigsetjmp" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_sigsetjmp'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3393 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <setjmp.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
sigjmp_buf RestartEnv;
|
|
|
|
|
|
|
|
siglongjmp (RestartEnv, 1);
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_sigsetjmp=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_sigsetjmp=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_sigsetjmp" 1>&6
|
|
|
|
if test $yap_sigsetjmp = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSETJMP 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSETJMP 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for sigsegv""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3431: checking for sigsegv" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_sigsegv'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3437 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <signal.h>
|
|
|
|
#include <stdio.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
printf("Signal value is %d\n", SIGSEGV);
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_sigsegv=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_sigsegv=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_sigsegv" 1>&6
|
|
|
|
if test $yap_sigsegv = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSEGV 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_SIGSEGV 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking union wait""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3474: checking union wait" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3476 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
2001-09-10 15:39:55 +01:00
|
|
|
#include <sys/types.h>
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <sys/wait.h>
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
union wait x;
|
|
|
|
wait(&x); /* make sure we can compile wait */
|
|
|
|
WIFEXITED(x); /* Generates compiler error if WIFEXITED
|
|
|
|
* uses an int. */
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
union_wait_ok=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
union_wait_ok=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
|
|
|
echo "$ac_t""$union_wait_ok" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $union_wait_ok = no; then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define NO_UNION_WAIT 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking environ""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3508: checking environ" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3510 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
extern char **environ;
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
environ_ok=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
environ_ok=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
|
|
|
echo "$ac_t""$environ_ok" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
if test $environ_ok = yes; then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_ENVIRON 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3538: checking return type of signal handlers" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3543 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#ifdef signal
|
2001-09-10 15:39:55 +01:00
|
|
|
#undef signal
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" void (*signal (int, void (*)(int)))(int);
|
|
|
|
#else
|
|
|
|
void (*signal ()) ();
|
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
int i;
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_cv_type_signal=void
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_type_signal=int
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in acosh alarm asinh atanh chdir dup2
|
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3581: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3586 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-06-22 18:53:36 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-06-22 18:53:36 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-06-22 18:53:36 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-06-22 18:53:36 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-06-22 18:53:36 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for ac_func in fetestexcept finite getcwd getenv
|
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3636: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3641 "configure"
|
2001-06-22 18:53:36 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-06-22 18:53:36 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-06-22 18:53:36 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-06-22 18:53:36 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-06-22 18:53:36 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-06-22 18:53:36 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-06-22 18:53:36 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for ac_func in gethostbyname gethostid gethostname
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3691: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3696 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in gethrtime getpwnam getrusage gettimeofday getwd
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3746: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3751 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-06-29 20:30:25 +01:00
|
|
|
#endif
|
2001-06-11 21:20:36 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-06-29 20:30:25 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in isatty isnan kill labs link localtime lstat
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3801: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3806 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
2001-08-08 22:17:27 +01:00
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in memcpy memmove mkstemp mktemp mmap opendir
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3856: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3861 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-09-24 15:06:06 +01:00
|
|
|
for ac_func in popen putenv rand random rename rint rl_set_prompt
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3911: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3916 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-24 15:06:06 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for ac_func in sbrk select
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:3966: checking for $ac_func" >&5
|
2001-09-24 15:06:06 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 3971 "configure"
|
2001-09-24 15:06:06 +01:00
|
|
|
#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. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
/* 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
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in setbuf setlinebuf shmat sigaction siggetmask siginterrupt
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:4021: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 4026 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-09 20:54:03 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-04-09 20:54:03 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in signal sigprocmask sleep snprintf socket stat
|
2001-04-27 17:02:43 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:4076: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 4081 "configure"
|
2001-04-27 17:02:43 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-04-27 17:02:43 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-04-27 17:02:43 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-04-27 17:02:43 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-04-27 17:02:43 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-04-27 17:02:43 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-04-27 17:02:43 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in strchr strerror strncat strncpy strtod system
|
2001-05-21 21:00:05 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:4131: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 4136 "configure"
|
2001-05-21 21:00:05 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-05-21 21:00:05 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-05-21 21:00:05 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-05-21 21:00:05 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-05-21 21:00:05 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-05-21 21:00:05 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-05-21 21:00:05 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-06-22 18:53:36 +01:00
|
|
|
for ac_func in time times tmpnam usleep vsnprintf waitpid
|
2001-05-21 21:00:05 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:4186: checking for $ac_func" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 4191 "configure"
|
2001-05-21 21:00:05 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
2001-09-10 15:39:55 +01:00
|
|
|
which can conflict with char $ac_func(); below. */
|
2001-05-21 21:00:05 +01:00
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* We use char because int might match the return type of a gcc2
|
2001-09-10 15:39:55 +01:00
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char $ac_func();
|
|
|
|
|
|
|
|
int main() {
|
2001-05-21 21:00:05 +01:00
|
|
|
|
|
|
|
/* 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
|
2001-09-10 15:39:55 +01:00
|
|
|
$ac_func();
|
2001-05-21 21:00:05 +01:00
|
|
|
#endif
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
2001-05-21 21:00:05 +01:00
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_func_$ac_func=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2001-05-21 21:00:05 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_func 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
2001-05-21 21:00:05 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking for mpz_xor""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:4240: checking for mpz_xor" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_mpz_xor'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
#line 4246 "configure"
|
2001-04-09 20:54:03 +01:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <gmp.h>
|
|
|
|
void check(mpz_t rop,mpz_t op1,mpz_t op2) {
|
|
|
|
mpz_xor(rop,op1,op2);
|
|
|
|
}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
int main() {
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
; return 0; }
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -rf conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
yap_mpz_xor=yes
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
yap_mpz_xor=no
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest*
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""$yap_mpz_xor" 1>&6
|
|
|
|
if test $yap_mpz_xor = yes
|
2001-04-09 20:54:03 +01:00
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_MPZ_XOR 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
#define HAVE_MPZ_XOR 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo $ac_n "checking if fflush(NULL) clobbers input pipes""... $ac_c" 1>&6
|
2002-01-15 17:55:50 +00:00
|
|
|
echo "configure:4284: checking if fflush(NULL) clobbers input pipes" >&5
|
2001-09-10 15:39:55 +01:00
|
|
|
if eval "test \"`echo '$''{'yap_cv_broken_fflush_null'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
else
|
|
|
|
cat >conftest.$ac_ext <<EOF
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
char *buf;
|
|
|
|
int i;
|
|
|
|
char *bp;
|
|
|
|
bp = buf = malloc(1024);
|
|
|
|
while (1) {
|
|
|
|
while ((i = getc(stdin)) != -1
|
|
|
|
&& (*bp++ = i) != '\n'
|
|
|
|
&& (bp - buf < 1024) )
|
|
|
|
/* DO NOTHING */ ;
|
|
|
|
*bp = '\0';
|
|
|
|
fprintf(stdout, "%s", buf);
|
|
|
|
fflush(NULL);
|
|
|
|
if( i == EOF ) return 0;
|
|
|
|
bp = buf;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
2002-01-15 17:55:50 +00:00
|
|
|
{ (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
|
2001-07-11 08:10:17 +01:00
|
|
|
if test "$?" = 0
|
|
|
|
then
|
|
|
|
cat conftest.$ac_ext | ./conftest$ac_exeext > conftest.out
|
2002-01-15 17:55:50 +00:00
|
|
|
{ ac_try='cmp conftest.$ac_ext conftest.out'; { (eval echo configure:4314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
|
2001-07-11 08:10:17 +01:00
|
|
|
if test "$?" = 0
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""no" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
yap_cv_broken_fflush_null=no
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""yes" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
yap_cv_broken_fflush_null=yes
|
|
|
|
fi
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "$ac_t""failed" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
yap_cv_broken_fflush_null=failed
|
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f conftest.$ac_ext conftest.$ac_objext conftest$ac_exeext conftest.out
|
2001-07-11 08:10:17 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo "$ac_t""$yap_cv_broken_fflush_null" 1>&6
|
2001-07-11 08:10:17 +01:00
|
|
|
if test "$yap_cv_broken_fflush_null" = no
|
|
|
|
then
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-07-11 08:10:17 +01:00
|
|
|
#define BROKEN_FFLUSH_NULL 0
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> confdefs.h <<\EOF
|
2001-07-11 08:10:17 +01:00
|
|
|
#define BROKEN_FFLUSH_NULL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
mkdir -p library/regex
|
2001-05-21 21:00:05 +01:00
|
|
|
mkdir -p library/system
|
2001-06-06 20:10:51 +01:00
|
|
|
mkdir -p CHR
|
|
|
|
mkdir -p CLPQR
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
trap '' 1 2 15
|
|
|
|
cat > confcache <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
# This file is a shell script that caches the results of configure
|
|
|
|
# tests run on this system so they can be shared between configure
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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.
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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.
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
# The following way of writing the cache mishandles newlines in values,
|
|
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
|
|
|
# So, don't put newlines in cache variables' values.
|
|
|
|
# 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.
|
2001-09-10 15:39:55 +01:00
|
|
|
(set) 2>&1 |
|
|
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|
|
|
*ac_space=\ *)
|
|
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution
|
|
|
|
# turns \\\\ into \\, and sed turns \\ into \).
|
|
|
|
sed -n \
|
|
|
|
-e "s/'/'\\\\''/g" \
|
|
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|
|
|
;;
|
|
|
|
esac >> confcache
|
|
|
|
if cmp -s $cache_file confcache; then
|
|
|
|
:
|
|
|
|
else
|
2001-04-09 20:54:03 +01:00
|
|
|
if test -w $cache_file; then
|
2001-09-10 15:39:55 +01:00
|
|
|
echo "updating cache $cache_file"
|
|
|
|
cat confcache > $cache_file
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
echo "not updating unwritable cache $cache_file"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f confcache
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
|
# Let make expand exec_prefix.
|
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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.
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "x$srcdir" = x.; then
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Without the "./", some shells look in PATH for config.status.
|
2001-04-09 20:54:03 +01:00
|
|
|
: ${CONFIG_STATUS=./config.status}
|
2001-09-10 15:39:55 +01:00
|
|
|
|
|
|
|
echo creating $CONFIG_STATUS
|
|
|
|
rm -f $CONFIG_STATUS
|
|
|
|
cat > $CONFIG_STATUS <<EOF
|
|
|
|
#! /bin/sh
|
2001-04-09 20:54:03 +01:00
|
|
|
# Generated automatically by configure.
|
|
|
|
# Run this file to recreate the current configuration.
|
2001-09-10 15:39:55 +01:00
|
|
|
# This directory was configured as follows,
|
|
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
|
#
|
|
|
|
# $0 $ac_configure_args
|
|
|
|
#
|
2001-04-09 20:54:03 +01:00
|
|
|
# Compiler output produced by configure, useful for debugging
|
2001-09-10 15:39:55 +01:00
|
|
|
# configure, is in ./config.log if it exists.
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
|
|
for ac_option
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
case "\$ac_option" in
|
2001-04-09 20:54:03 +01:00
|
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
2001-09-10 15:39:55 +01:00
|
|
|
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.13"
|
|
|
|
exit 0 ;;
|
|
|
|
-help | --help | --hel | --he | --h)
|
|
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
|
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
2001-08-08 22:17:27 +01:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_given_srcdir=$srcdir
|
|
|
|
ac_given_INSTALL="$INSTALL"
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
trap 'rm -fr `echo "Makefile library/regex/Makefile library/system/Makefile library/random/Makefile .depend library/Makefile CHR/Makefile CLPQR/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
2001-08-08 22:17:27 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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%@SHELL@%$SHELL%g
|
|
|
|
s%@CFLAGS@%$CFLAGS%g
|
|
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
|
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
|
|
|
s%@FFLAGS@%$FFLAGS%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%@bindir@%$bindir%g
|
|
|
|
s%@sbindir@%$sbindir%g
|
|
|
|
s%@libexecdir@%$libexecdir%g
|
|
|
|
s%@datadir@%$datadir%g
|
|
|
|
s%@sysconfdir@%$sysconfdir%g
|
|
|
|
s%@sharedstatedir@%$sharedstatedir%g
|
|
|
|
s%@localstatedir@%$localstatedir%g
|
|
|
|
s%@libdir@%$libdir%g
|
|
|
|
s%@includedir@%$includedir%g
|
|
|
|
s%@oldincludedir@%$oldincludedir%g
|
|
|
|
s%@infodir@%$infodir%g
|
|
|
|
s%@mandir@%$mandir%g
|
|
|
|
s%@CC@%$CC%g
|
|
|
|
s%@GCC@%$GCC%g
|
|
|
|
s%@C_INTERF_FLAGS@%$C_INTERF_FLAGS%g
|
|
|
|
s%@C_PARSER_FLAGS@%$C_PARSER_FLAGS%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%@target@%$target%g
|
|
|
|
s%@target_alias@%$target_alias%g
|
|
|
|
s%@target_cpu@%$target_cpu%g
|
|
|
|
s%@target_vendor@%$target_vendor%g
|
|
|
|
s%@target_os@%$target_os%g
|
|
|
|
s%@build@%$build%g
|
|
|
|
s%@build_alias@%$build_alias%g
|
|
|
|
s%@build_cpu@%$build_cpu%g
|
|
|
|
s%@build_vendor@%$build_vendor%g
|
|
|
|
s%@build_os@%$build_os%g
|
|
|
|
s%@LN_S@%$LN_S%g
|
|
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
|
|
s%@RANLIB@%$RANLIB%g
|
|
|
|
s%@INDENT@%$INDENT%g
|
|
|
|
s%@AR@%$AR%g
|
|
|
|
s%@INSTALL_INFO@%$INSTALL_INFO%g
|
|
|
|
s%@INSTALL_COMMAND@%$INSTALL_COMMAND%g
|
|
|
|
s%@CROSS_SIMULATOR@%$CROSS_SIMULATOR%g
|
|
|
|
s%@CPP@%$CPP%g
|
|
|
|
s%@INSTALL_DLLS@%$INSTALL_DLLS%g
|
|
|
|
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
|
|
|
|
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
|
2001-11-18 21:00:57 +00:00
|
|
|
s%@DO_SECOND_LD@%$DO_SECOND_LD%g
|
2001-09-10 15:39:55 +01:00
|
|
|
s%@SHLIB_LD@%$SHLIB_LD%g
|
|
|
|
s%@NEWSHOBJ@%$NEWSHOBJ%g
|
|
|
|
s%@YAPLIB@%$YAPLIB%g
|
|
|
|
s%@YAP_EXTRAS@%$YAP_EXTRAS%g
|
|
|
|
s%@M4@%$M4%g
|
|
|
|
s%@M4GENHDRS@%$M4GENHDRS%g
|
|
|
|
s%@M4GENABSMI@%$M4GENABSMI%g
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
CEOF
|
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
|
|
|
|
# Split the substitutions into bite-sized pieces for seds with
|
|
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
|
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
|
|
ac_file=1 # Number of current file.
|
|
|
|
ac_beg=1 # First line for current file.
|
|
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
|
|
ac_more_lines=:
|
|
|
|
ac_sed_cmds=""
|
|
|
|
while $ac_more_lines; do
|
|
|
|
if test $ac_beg -gt 1; then
|
|
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
|
else
|
|
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
|
|
fi
|
|
|
|
if test ! -s conftest.s$ac_file; then
|
|
|
|
ac_more_lines=false
|
|
|
|
rm -f conftest.s$ac_file
|
|
|
|
else
|
|
|
|
if test -z "$ac_sed_cmds"; then
|
|
|
|
ac_sed_cmds="sed -f conftest.s$ac_file"
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_file=`expr $ac_file + 1`
|
|
|
|
ac_beg=$ac_end
|
|
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
done
|
|
|
|
if test -z "$ac_sed_cmds"; then
|
|
|
|
ac_sed_cmds=cat
|
|
|
|
fi
|
|
|
|
EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
|
|
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile library/regex/Makefile library/system/Makefile library/random/Makefile .depend library/Makefile CHR/Makefile CLPQR/Makefile"}
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
2001-04-09 20:54:03 +01:00
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
2001-09-10 15:39:55 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
2001-08-08 22:17:27 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# 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%^\./%%'`"
|
2001-04-09 20:54:03 +01:00
|
|
|
# A "../" for each directory in $ac_dir_suffix.
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
|
|
|
ac_dir_suffix= ac_dots=
|
|
|
|
fi
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
*) # Relative path.
|
2001-09-10 15:39:55 +01:00
|
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
case "$ac_given_INSTALL" in
|
|
|
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
|
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
|
sed -e "$ac_comsub
|
|
|
|
s%@configure_input@%$configure_input%g
|
|
|
|
s%@srcdir@%$srcdir%g
|
|
|
|
s%@top_srcdir@%$top_srcdir%g
|
|
|
|
s%@INSTALL@%$INSTALL%g
|
|
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
|
|
fi; done
|
|
|
|
rm -f conftest.s*
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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.
|
2001-09-10 15:39:55 +01:00
|
|
|
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'
|
2001-04-09 20:54:03 +01:00
|
|
|
ac_uC=' '
|
2001-09-10 15:39:55 +01:00
|
|
|
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'
|
|
|
|
|
|
|
|
if test "${CONFIG_HEADERS+set}" != set; then
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
CONFIG_HEADERS="config.h"
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
fi
|
|
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
2001-04-09 20:54:03 +01:00
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
2001-09-10 15:39:55 +01:00
|
|
|
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" ;;
|
2001-04-09 20:54:03 +01:00
|
|
|
esac
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
echo creating $ac_file
|
|
|
|
|
|
|
|
rm -f conftest.frag conftest.in conftest.out
|
|
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
|
|
cat $ac_file_inputs > 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
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# 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.
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> conftest.vals <<\EOF
|
|
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
# Break up conftest.vals because some shells have a limit on
|
|
|
|
# the size of here documents, and old seds have small limits too.
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
rm -f conftest.tail
|
2001-09-10 15:39:55 +01:00
|
|
|
while :
|
2001-04-09 20:54:03 +01:00
|
|
|
do
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
echo 'CEOF
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
done
|
2001-09-10 15:39:55 +01:00
|
|
|
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
|
2001-04-09 20:54:03 +01:00
|
|
|
else
|
2001-09-10 15:39:55 +01:00
|
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
2001-04-09 20:54:03 +01:00
|
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
2001-09-10 15:39:55 +01:00
|
|
|
# The file is in a subdirectory.
|
|
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -f $ac_file
|
|
|
|
mv conftest.h $ac_file
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
2001-09-10 15:39:55 +01:00
|
|
|
fi; done
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
2001-09-10 15:39:55 +01:00
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-09-10 15:39:55 +01:00
|
|
|
exit 0
|
2001-04-09 20:54:03 +01:00
|
|
|
EOF
|
|
|
|
chmod +x $CONFIG_STATUS
|
2001-09-10 15:39:55 +01:00
|
|
|
rm -fr confdefs* $ac_clean_files
|
|
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
make depend
|
|
|
|
|