1998-02-09 19:06:40 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# Guess values for system-dependent variables and create Makefiles.
|
2001-01-29 19:39:31 +00:00
|
|
|
# Generated automatically using autoconf version 2.13
|
1998-02-09 19:06:40 +00:00
|
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This configure script is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy, distribute and modify it.
|
|
|
|
|
|
|
|
# Defaults:
|
|
|
|
ac_help=
|
|
|
|
ac_default_prefix=/usr/local
|
|
|
|
# Any additions from configure.in:
|
2000-06-29 03:51:06 +00:00
|
|
|
ac_help="$ac_help
|
2000-12-08 19:06:00 +00:00
|
|
|
--enable-pass-arguments Force user main call to NSProcessInfo initialize"
|
1999-07-22 14:17:27 +00:00
|
|
|
ac_help="$ac_help
|
2000-12-08 19:06:00 +00:00
|
|
|
--enable-fake-main Force redefine of user main function"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-libffi Enable use of libffi library"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--enable-ffcall Enable use of ffcall library"
|
2000-10-28 21:58:48 +00:00
|
|
|
ac_help="$ac_help
|
2001-01-05 10:12:17 +00:00
|
|
|
--with-xml-prefix=PFX Prefix where libxml is installed (optional)"
|
2000-10-28 21:58:48 +00:00
|
|
|
ac_help="$ac_help
|
2001-01-05 10:12:17 +00:00
|
|
|
--disable-xmltest Do not try to compile and run a test XML program"
|
2000-11-15 14:32:18 +00:00
|
|
|
ac_help="$ac_help
|
|
|
|
--with-openssl-include=PATH include path for openssl headers"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-openssl-library=PATH library path for openssl libraries"
|
2000-11-18 08:54:32 +00:00
|
|
|
ac_help="$ac_help
|
|
|
|
--with-gmp-include=PATH include path for gmp headers"
|
|
|
|
ac_help="$ac_help
|
|
|
|
--with-gmp-library=PATH library path for gmp libraries"
|
2001-01-29 19:39:31 +00:00
|
|
|
ac_help="$ac_help
|
|
|
|
--with-libiconv-library=PATH library path for libiconv libraries"
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
# Initialize some variables set by options.
|
|
|
|
# The variables have the same names as the options, with
|
|
|
|
# dashes changed to underlines.
|
|
|
|
build=NONE
|
|
|
|
cache_file=./config.cache
|
|
|
|
exec_prefix=NONE
|
|
|
|
host=NONE
|
|
|
|
no_create=
|
|
|
|
nonopt=NONE
|
|
|
|
no_recursion=
|
|
|
|
prefix=NONE
|
|
|
|
program_prefix=NONE
|
|
|
|
program_suffix=NONE
|
|
|
|
program_transform_name=s,x,x,
|
|
|
|
silent=
|
|
|
|
site=
|
|
|
|
srcdir=
|
|
|
|
target=NONE
|
|
|
|
verbose=
|
|
|
|
x_includes=NONE
|
|
|
|
x_libraries=NONE
|
|
|
|
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'
|
|
|
|
|
|
|
|
# Initialize some other variables.
|
|
|
|
subdirs=
|
|
|
|
MFLAGS= MAKEFLAGS=
|
1999-07-12 04:21:05 +00:00
|
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
1998-02-09 19:06:40 +00:00
|
|
|
# Maximum number of lines to put in a shell here document.
|
|
|
|
ac_max_here_lines=12
|
|
|
|
|
|
|
|
ac_prev=
|
|
|
|
for ac_option
|
|
|
|
do
|
|
|
|
|
|
|
|
# If the previous option needs an argument, assign it.
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
eval "$ac_prev=\$ac_option"
|
|
|
|
ac_prev=
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$ac_option" in
|
|
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
*) ac_optarg= ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
|
|
|
|
|
|
|
case "$ac_option" in
|
|
|
|
|
|
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
|
|
ac_prev=bindir ;;
|
|
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
|
|
bindir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-build | --build | --buil | --bui | --bu)
|
|
|
|
ac_prev=build ;;
|
|
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
|
|
build="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
|
|
ac_prev=cache_file ;;
|
|
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
|
|
cache_file="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
|
|
ac_prev=datadir ;;
|
|
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
|
|
| --da=*)
|
|
|
|
datadir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-disable-* | --disable-*)
|
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
|
|
eval "enable_${ac_feature}=no" ;;
|
|
|
|
|
|
|
|
-enable-* | --enable-*)
|
|
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
|
|
case "$ac_option" in
|
|
|
|
*=*) ;;
|
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
|
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
|
|
|
|
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
|
|
| --exec | --exe | --ex)
|
|
|
|
ac_prev=exec_prefix ;;
|
|
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
|
|
| --exec=* | --exe=* | --ex=*)
|
|
|
|
exec_prefix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-gas | --gas | --ga | --g)
|
|
|
|
# Obsolete; use --with-gas.
|
|
|
|
with_gas=yes ;;
|
|
|
|
|
|
|
|
-help | --help | --hel | --he)
|
|
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
|
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
|
|
|
cat << EOF
|
|
|
|
Usage: configure [options] [host]
|
|
|
|
Options: [defaults in brackets after descriptions]
|
|
|
|
Configuration:
|
|
|
|
--cache-file=FILE cache test results in FILE
|
|
|
|
--help print this message
|
|
|
|
--no-create do not create output files
|
|
|
|
--quiet, --silent do not print \`checking...' messages
|
|
|
|
--version print the version of autoconf that created configure
|
|
|
|
Directory and file names:
|
|
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
|
|
|
[$ac_default_prefix]
|
|
|
|
--exec-prefix=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 ;;
|
|
|
|
|
|
|
|
-host | --host | --hos | --ho)
|
|
|
|
ac_prev=host ;;
|
|
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
|
|
|
host="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-includedir | --includedir | --includedi | --included | --include \
|
|
|
|
| --includ | --inclu | --incl | --inc)
|
|
|
|
ac_prev=includedir ;;
|
|
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
|
|
includedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
|
|
ac_prev=infodir ;;
|
|
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
|
|
infodir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-libdir | --libdir | --libdi | --libd)
|
|
|
|
ac_prev=libdir ;;
|
|
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
|
|
libdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
|
|
| --libexe | --libex | --libe)
|
|
|
|
ac_prev=libexecdir ;;
|
|
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
|
|
| --libexe=* | --libex=* | --libe=*)
|
|
|
|
libexecdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-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=*)
|
|
|
|
localstatedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
|
|
ac_prev=mandir ;;
|
|
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
|
|
mandir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-nfp | --nfp | --nf)
|
|
|
|
# Obsolete; use --without-fp.
|
|
|
|
with_fp=no ;;
|
|
|
|
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
|
| --no-cr | --no-c)
|
|
|
|
no_create=yes ;;
|
|
|
|
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
|
|
no_recursion=yes ;;
|
|
|
|
|
|
|
|
-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=*)
|
|
|
|
oldincludedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
|
|
ac_prev=prefix ;;
|
|
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
|
|
prefix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
|
|
| --program-pre | --program-pr | --program-p)
|
|
|
|
ac_prev=program_prefix ;;
|
|
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
|
|
program_prefix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
|
|
| --program-suf | --program-su | --program-s)
|
|
|
|
ac_prev=program_suffix ;;
|
|
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
|
|
program_suffix="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-program-transform-name | --program-transform-name \
|
|
|
|
| --program-transform-nam | --program-transform-na \
|
|
|
|
| --program-transform-n | --program-transform- \
|
|
|
|
| --program-transform | --program-transfor \
|
|
|
|
| --program-transfo | --program-transf \
|
|
|
|
| --program-trans | --program-tran \
|
|
|
|
| --progr-tra | --program-tr | --program-t)
|
|
|
|
ac_prev=program_transform_name ;;
|
|
|
|
-program-transform-name=* | --program-transform-name=* \
|
|
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
|
|
|
| --program-transform-n=* | --program-transform-=* \
|
|
|
|
| --program-transform=* | --program-transfor=* \
|
|
|
|
| --program-transfo=* | --program-transf=* \
|
|
|
|
| --program-trans=* | --program-tran=* \
|
|
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
|
|
|
program_transform_name="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
|
|
| -silent | --silent | --silen | --sile | --sil)
|
|
|
|
silent=yes ;;
|
|
|
|
|
|
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
|
|
ac_prev=sbindir ;;
|
|
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
|
|
| --sbi=* | --sb=*)
|
|
|
|
sbindir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-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=*)
|
|
|
|
sharedstatedir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-site | --site | --sit)
|
|
|
|
ac_prev=site ;;
|
|
|
|
-site=* | --site=* | --sit=*)
|
|
|
|
site="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
|
|
ac_prev=srcdir ;;
|
|
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
|
|
srcdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
|
|
|
ac_prev=sysconfdir ;;
|
|
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
|
|
sysconfdir="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
|
|
|
ac_prev=target ;;
|
|
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
|
|
target="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
|
|
verbose=yes ;;
|
|
|
|
|
|
|
|
-version | --version | --versio | --versi | --vers)
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure generated by autoconf version 2.13"
|
1998-02-09 19:06:40 +00:00
|
|
|
exit 0 ;;
|
|
|
|
|
|
|
|
-with-* | --with-*)
|
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
|
|
case "$ac_option" in
|
|
|
|
*=*) ;;
|
|
|
|
*) ac_optarg=yes ;;
|
|
|
|
esac
|
|
|
|
eval "with_${ac_package}='$ac_optarg'" ;;
|
|
|
|
|
|
|
|
-without-* | --without-*)
|
|
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
|
|
# Reject names that are not valid shell variable names.
|
|
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
|
|
eval "with_${ac_package}=no" ;;
|
|
|
|
|
|
|
|
--x)
|
|
|
|
# Obsolete; use --with-x.
|
|
|
|
with_x=yes ;;
|
|
|
|
|
|
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
|
|
|
ac_prev=x_includes ;;
|
|
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
|
|
x_includes="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
|
|
ac_prev=x_libraries ;;
|
|
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
|
|
x_libraries="$ac_optarg" ;;
|
|
|
|
|
|
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|
|
|
fi
|
|
|
|
if test "x$nonopt" != xNONE; then
|
|
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
nonopt="$ac_option"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
|
|
|
|
# File descriptor usage:
|
|
|
|
# 0 standard input
|
|
|
|
# 1 file creation
|
|
|
|
# 2 errors and warnings
|
|
|
|
# 3 some systems may open it to /dev/tty
|
|
|
|
# 4 used on the Kubota Titan
|
|
|
|
# 6 checking for... messages and results
|
|
|
|
# 5 compiler messages saved in config.log
|
|
|
|
if test "$silent" = yes; then
|
|
|
|
exec 6>/dev/null
|
|
|
|
else
|
|
|
|
exec 6>&1
|
|
|
|
fi
|
|
|
|
exec 5>./config.log
|
|
|
|
|
|
|
|
echo "\
|
|
|
|
This file contains any messages produced by compilers while
|
|
|
|
running configure, to aid debugging if configure makes a mistake.
|
|
|
|
" 1>&5
|
|
|
|
|
|
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
|
|
|
# Also quote any args containing shell metacharacters.
|
|
|
|
ac_configure_args=
|
|
|
|
for ac_arg
|
|
|
|
do
|
|
|
|
case "$ac_arg" in
|
|
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
|
|
| --no-cr | --no-c) ;;
|
|
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
# NLS nuisances.
|
|
|
|
# Only set 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
|
|
|
|
|
|
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
|
|
rm -rf conftest* confdefs.h
|
|
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
|
|
echo > confdefs.h
|
|
|
|
|
|
|
|
# A filename unique to this package, relative to the directory that
|
|
|
|
# configure is in, which we can look for to find out if srcdir is correct.
|
2000-06-16 11:07:49 +00:00
|
|
|
ac_unique_file=Source/NSArray.m
|
1998-02-09 19:06:40 +00: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
|
|
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
|
|
srcdir=$ac_confdir
|
|
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
|
|
srcdir=..
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ac_srcdir_defaulted=no
|
|
|
|
fi
|
|
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
|
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
|
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
|
|
|
|
|
|
# Prefer explicitly selected file to automatically selected ones.
|
|
|
|
if test -z "$CONFIG_SITE"; then
|
|
|
|
if test "x$prefix" != xNONE; then
|
|
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
|
|
else
|
|
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
for ac_site_file in $CONFIG_SITE; do
|
|
|
|
if test -r "$ac_site_file"; then
|
|
|
|
echo "loading site script $ac_site_file"
|
|
|
|
. "$ac_site_file"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test -r "$cache_file"; then
|
|
|
|
echo "loading cache $cache_file"
|
2001-01-29 19:39:31 +00:00
|
|
|
. $cache_file
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
|
|
|
echo "creating cache $cache_file"
|
|
|
|
> $cache_file
|
|
|
|
fi
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1998-02-09 19:06:40 +00:00
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_exeext=
|
|
|
|
ac_objext=o
|
1998-02-09 19:06:40 +00:00
|
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
|
|
ac_n= ac_c='
|
|
|
|
' ac_t=' '
|
|
|
|
else
|
|
|
|
ac_n=-n ac_c= ac_t=
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ac_n= ac_c='\c' ac_t=
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# configure.in for GNU Objective-C library
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1993,1994, 1995, 1996, 1997 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Written by: Andrew Kachites McCallum <mccallum@cs.rochester.edu>
|
|
|
|
# Dept. of Computer Science, U. of Rochester, Rochester, NY 14627
|
|
|
|
#
|
|
|
|
# This file is part of the GNU Objective-C library.
|
|
|
|
#
|
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
# Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with this library; if not, write to the Free
|
1999-09-09 02:56:20 +00:00
|
|
|
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Use a .h file with #define's, instead of -D command-line switches
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Determine the host, build, and target systems
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
ac_aux_dir=
|
|
|
|
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
|
|
if test -f $ac_dir/install-sh; then
|
|
|
|
ac_aux_dir=$ac_dir
|
|
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
|
|
break
|
|
|
|
elif test -f $ac_dir/install.sh; then
|
|
|
|
ac_aux_dir=$ac_dir
|
|
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if test -z "$ac_aux_dir"; then
|
|
|
|
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
|
|
fi
|
2001-01-29 19:39:31 +00: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.
|
1998-02-09 19:06:40 +00: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.
|
|
|
|
|
|
|
|
# The aliases save the names the user supplied, while $host etc.
|
|
|
|
# will get canonicalized.
|
|
|
|
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
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
echo "configure:627: checking host system type" >&5
|
|
|
|
|
|
|
|
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
|
|
|
|
echo "configure:648: checking target system type" >&5
|
|
|
|
|
|
|
|
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
|
|
|
|
echo "configure:666: checking build system type" >&5
|
|
|
|
|
|
|
|
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
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
test "$host_alias" != "$target_alias" &&
|
|
|
|
test "$program_prefix$program_suffix$program_transform_name" = \
|
|
|
|
NONENONEs,x,x, &&
|
|
|
|
program_prefix=${target_alias}-
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Find the compiler
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
|
|
|
set dummy gcc; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:695: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
1999-07-12 04:21:05 +00:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
1998-02-09 19:06:40 +00:00
|
|
|
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"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:725: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
|
|
else
|
1999-07-12 04:21:05 +00:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
1998-02-09 19:06:40 +00:00
|
|
|
ac_prog_rejected=no
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_dummy="$PATH"
|
|
|
|
for ac_dir in $ac_dummy; do
|
1998-02-09 19:06:40 +00:00
|
|
|
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"
|
|
|
|
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
|
|
|
|
if test $# -gt 0; then
|
|
|
|
# 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
|
|
|
|
set dummy "$ac_dir/$ac_word" "$@"
|
|
|
|
shift
|
|
|
|
ac_cv_prog_CC="$@"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
1999-07-12 04:21:05 +00:00
|
|
|
if test -z "$CC"; then
|
|
|
|
case "`uname -s`" in
|
2001-01-29 19:39:31 +00:00
|
|
|
*win32* | *WIN32*)
|
1999-07-12 04:21:05 +00:00
|
|
|
# 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
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:776: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
1999-07-12 04:21:05 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test -n "$CC"; then
|
|
|
|
ac_cv_prog_CC="$CC" # 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_CC="cl"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
CC="$ac_cv_prog_CC"
|
|
|
|
if test -n "$CC"; then
|
|
|
|
echo "$ac_t""$CC" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
1998-02-09 19:06:40 +00:00
|
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
|
|
echo "configure:808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
1998-02-09 19:06:40 +00: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'
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
1998-02-09 19:06:40 +00:00
|
|
|
cross_compiling=$ac_cv_prog_cc_cross
|
|
|
|
|
1999-07-12 04:21:05 +00:00
|
|
|
cat > conftest.$ac_ext << EOF
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 819 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
1999-07-12 04:21:05 +00:00
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
main(){return(0);}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_cross=yes
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
ac_cv_prog_cc_works=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
1999-07-12 04:21:05 +00: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
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
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
|
2001-01-29 19:39:31 +00:00
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
|
|
echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:855: checking whether we are using GNU C" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
#ifdef __GNUC__
|
|
|
|
yes;
|
|
|
|
#endif
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
1998-02-09 19:06:40 +00:00
|
|
|
ac_cv_prog_gcc=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_gcc=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
|
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then
|
|
|
|
GCC=yes
|
1999-07-12 04:21:05 +00:00
|
|
|
else
|
|
|
|
GCC=
|
|
|
|
fi
|
|
|
|
|
|
|
|
ac_test_CFLAGS="${CFLAGS+set}"
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS=
|
|
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:883: checking whether ${CC-cc} accepts -g" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
echo 'void f(){}' > conftest.c
|
|
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
|
|
ac_cv_prog_cc_g=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_g=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
1999-07-12 04:21:05 +00:00
|
|
|
if test "$ac_test_CFLAGS" = set; then
|
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
|
|
|
if test "$GCC" = yes; then
|
1998-02-09 19:06:40 +00:00
|
|
|
CFLAGS="-g -O2"
|
|
|
|
else
|
1999-07-12 04:21:05 +00:00
|
|
|
CFLAGS="-g"
|
1999-03-09 05:55:19 +00:00
|
|
|
fi
|
1999-07-09 02:18:50 +00:00
|
|
|
else
|
1999-07-12 04:21:05 +00:00
|
|
|
if test "$GCC" = yes; then
|
|
|
|
CFLAGS="-O2"
|
|
|
|
else
|
|
|
|
CFLAGS=
|
|
|
|
fi
|
1998-02-09 19:06:40 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:915: checking how to run the C preprocessor" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
# On Suns, sometimes $CPP names a directory.
|
|
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
|
|
|
CPP=
|
|
|
|
fi
|
|
|
|
if test -z "$CPP"; then
|
2001-01-29 19:39:31 +00:00
|
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
# This must be in double quotes, not single quotes, because CPP may get
|
|
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
|
|
CPP="${CC-cc} -E"
|
|
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
|
|
# not just through cpp.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 930 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP="${CC-cc} -E -traditional-cpp"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 947 "configure"
|
1999-07-12 04:21:05 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP="${CC-cc} -nologo -E"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 964 "configure"
|
1999-01-26 11:32:02 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <assert.h>
|
|
|
|
Syntax Error
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
CPP=/lib/cpp
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
1999-07-12 04:21:05 +00:00
|
|
|
rm -f conftest*
|
|
|
|
fi
|
1998-02-09 19:06:40 +00:00
|
|
|
rm -f conftest*
|
|
|
|
ac_cv_prog_CPP="$CPP"
|
|
|
|
fi
|
|
|
|
CPP="$ac_cv_prog_CPP"
|
|
|
|
else
|
|
|
|
ac_cv_prog_CPP="$CPP"
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$CPP" 1>&6
|
|
|
|
|
|
|
|
|
2000-06-27 21:11:01 +00:00
|
|
|
# Extract the first word of "whoami", so it can be a program name with args.
|
|
|
|
set dummy whoami; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:998: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
|
2000-06-27 21:11:01 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
case "$WHOAMI" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
|
|
ac_dummy="$PATH:/usr/ucb"
|
|
|
|
for ac_dir in $ac_dummy; do
|
|
|
|
test -z "$ac_dir" && ac_dir=.
|
|
|
|
if test -f $ac_dir/$ac_word; then
|
|
|
|
ac_cv_path_WHOAMI="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
WHOAMI="$ac_cv_path_WHOAMI"
|
|
|
|
if test -n "$WHOAMI"; then
|
|
|
|
echo "$ac_t""$WHOAMI" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# -pipe option for compiler
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
PIPE='-pipe'
|
|
|
|
|
|
|
|
|
2000-10-28 21:58:48 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# specific target_os options
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
case "$target_os" in
|
|
|
|
freebsd*) CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
|
|
|
LIBS="$LIBS -L/usr/local/lib";;
|
|
|
|
esac
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Find out if we\'re using NeXT\'s compiler.
|
|
|
|
# if yes:
|
|
|
|
# add -cpp-traditional to CPP
|
|
|
|
# if no:
|
|
|
|
# include implementations of List, HashTable etc.
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking whether we are using NeXT's compiler""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1054: checking whether we are using NeXT's compiler" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1056 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.nextcc.h"
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXTCC=0
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXTCC=1
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
# Was using this too: -o `basename $CC` = "gcc" -o `basename $CC` = "xgcc"
|
|
|
|
if test $NeXTCC = 0; then
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
# Find out if nested functions work on this machine
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
echo $ac_n "checking whether nested functions work""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1081: checking whether nested functions work" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
gcc_nested=1
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1086 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.nested.c"
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1998-02-09 19:06:40 +00:00
|
|
|
then
|
|
|
|
gcc_nested=1
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
gcc_nested=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $gcc_nested = 0; then
|
1999-04-23 02:54:45 +00:00
|
|
|
echo "$ac_t""no" 1>&6
|
1998-02-09 19:06:40 +00:00
|
|
|
echo
|
|
|
|
echo "The GCC 'nested functions' feature does not seem to be working on"
|
1999-04-23 02:54:45 +00:00
|
|
|
echo "this machine. "
|
1998-02-09 19:06:40 +00:00
|
|
|
echo "Read the bug-report instructions in the GCC texinfo manual"
|
|
|
|
echo "and submit a bug report."
|
1999-04-23 02:54:45 +00:00
|
|
|
echo "I'm not even sure gstep-base uses nested functions anymore"
|
|
|
|
echo "but if it does, gstep-base will not compile. Try it"
|
1998-02-09 19:06:40 +00:00
|
|
|
echo "The program this configure script used to test nested functions"
|
|
|
|
echo "can be found in the file 'config/config.nested.c' in this"
|
|
|
|
echo "distribution. Under sparc-sun-sunos4.1.3 with gcc-2.6.1 the"
|
|
|
|
echo "file compiles, runs and returns exit status 0."
|
|
|
|
else
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
fi
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
# Find out if we're on a NEXTSTEP machine
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
echo $ac_n "checking whether we are running under NEXTSTEP""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1122: checking whether we are running under NEXTSTEP" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1124 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#if defined(NeXT)
|
|
|
|
#error
|
|
|
|
#endif
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXTSTEP=0
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXTSTEP=1
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
if test $NeXTSTEP = 0; then
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
OBJS_INSTALL='$(GNU_OBJS) $(NEXTSTEP_OBJS) $(GNUSTEP_OBJS)'
|
|
|
|
HEADERS_INSTALL='$(GNU_HEADERS) $(NEXTSTEP_HEADERS) $(GNUSTEP_HEADERS)'
|
|
|
|
NEXT_INCLUDES='$(GNU_NEXT_INCLUDES)'
|
|
|
|
NeXT_runtime=0
|
|
|
|
NeXT_cc=0
|
|
|
|
else
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
# Find out if we are using NeXT or GNU runtime
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
saved_ac_ext=$ac_ext
|
|
|
|
ac_ext=m
|
|
|
|
echo $ac_n "checking whether we are using GNU Objective C runtime""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1159: checking whether we are using GNU Objective C runtime" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1161 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.nextrt.m"
|
|
|
|
int main() {
|
|
|
|
;
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00:00
|
|
|
rm -rf conftest*
|
|
|
|
NeXT_runtime=1
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXT_runtime=0
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
ac_ext=$saved_ac_ext
|
|
|
|
if test $NeXT_runtime = 1; then
|
|
|
|
echo "$ac_t""no: NeXT runtime" 1>&6
|
|
|
|
echo "Sorry GNUstep does not yet work with the NeXT runtime."
|
|
|
|
echo "Type \"setenv CC gcc -fgnu-runtime\", and run ./configure again."
|
|
|
|
echo "If you are interested in having GNUstep work with the NeXT"
|
|
|
|
echo "runtime, contact Andrew McCallum <mccallum@gnu.ai.mit.edu>."
|
|
|
|
{ echo "configure: error: Unsupported Objective C runtime." 1>&2; exit 1; }
|
|
|
|
# Not reached, for now...
|
|
|
|
LIBOBJC=''
|
|
|
|
CC="$CC -fnext-runtime"
|
|
|
|
# Make sure that we get NeXTs objc/*.h files
|
|
|
|
NEXT_INCLUDES='$(NEXT_NEXT_INCLUDES)'
|
|
|
|
OBJS_INSTALL='$(GNU_OBJS)'
|
|
|
|
HEADERS_INSTALL='$(GNU_HEADERS)'
|
|
|
|
NeXT_cc=0
|
|
|
|
else
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
LIBOBJC='-lobjc'
|
|
|
|
CC="$CC -fgnu-runtime"
|
|
|
|
# Get objc/List.h, etc. files from this library.
|
|
|
|
NEXT_INCLUDES='$(GNU_NEXT_INCLUDES)'
|
|
|
|
OBJS_INSTALL='$(GNU_OBJS) $(NEXTSTEP_OBJS) $(GNUSTEP_OBJS)'
|
|
|
|
HEADERS_INSTALL='$(GNU_HEADERS) $(NEXTSTEP_HEADERS) $(GNUSTEP_HEADERS)'
|
|
|
|
NeXT_cc=0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
{ echo "configure: error: Sorry" 1>&2; exit 1; }
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
# Find out if we have NEXTSTEP 3.2 or lower
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
echo "checking NEXTSTEP version" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1214: checking NEXTSTEP version" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1216 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#if NX_CURRENT_COMPILER_RELEASE < 320
|
|
|
|
#error
|
|
|
|
#endif
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXT32plus=1
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
NeXT32plus=0
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
if test $NeXT32plus = 0; then
|
|
|
|
echo "aborting"
|
|
|
|
echo
|
|
|
|
echo "It looks like your compiler is NEXTSTEP 3.2 or earlier."
|
|
|
|
echo "$(LIBRARY_NAME) makes extensive use of nested functions. In 3.2,"
|
|
|
|
echo "NeXT's cc did not support nested functions. To compile $(LIBRARY_NAME)"
|
|
|
|
echo "you can either (1) use gcc instead of NeXT's cc (no loss, since"
|
|
|
|
echo "gcc can compile AppKit programs without problems), or (2) upgrade"
|
|
|
|
echo "to the later release of NEXTSTEP when it is available."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
OBJS_INSTALL='$(GNU_OBJS)'
|
|
|
|
HEADERS_INSTALL='$(GNU_HEADERS)'
|
|
|
|
LIBOBJC=''
|
|
|
|
NeXT_runtime=1
|
|
|
|
NeXT_cc=1
|
|
|
|
# NeXT default cpp doesn't accept nested functions
|
|
|
|
CC='cc -traditional-cpp'
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define NeXT_runtime $NeXT_runtime
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define NeXT_cc $NeXT_cc
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-06-22 03:15:27 +00:00
|
|
|
#--------------------------------------------------------------------
|
2001-01-18 19:47:40 +00:00
|
|
|
# Miscellaneous flags
|
2000-06-22 03:15:27 +00:00
|
|
|
#--------------------------------------------------------------------
|
2001-01-18 19:47:40 +00:00
|
|
|
# Set location of GNUstep dirs for later use
|
|
|
|
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Headers
|
|
|
|
if test "$GNUSTEP_FLATTENED" = yes; then
|
|
|
|
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries
|
|
|
|
else
|
|
|
|
clean_target_os=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_os.sh $target_os`
|
|
|
|
clean_target_cpu=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_cpu.sh $target_cpu`
|
|
|
|
obj_dir=$clean_target_cpu/$clean_target_os
|
|
|
|
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries/$obj_dir
|
2000-06-22 03:15:27 +00:00
|
|
|
fi
|
|
|
|
|
2001-01-18 19:47:40 +00:00
|
|
|
# Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
|
|
|
|
# If so, there are probably other libraries that we want there also, so
|
|
|
|
# leave the proper includes in CPPFLAGS and LDFLAGS
|
2000-06-22 03:15:27 +00:00
|
|
|
echo $ac_n "checking for alternate objc library""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1285: checking for alternate objc library" >&5
|
|
|
|
if eval "test \"`echo '$''{'gs_cv_objc_libdir'+set}'`\" = set"; then
|
2000-06-22 03:15:27 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
gs_cv_objc_libdir=NONE
|
2001-01-18 19:47:40 +00:00
|
|
|
if test -f $GNUSTEP_HDIR/objc/objc.h; then
|
|
|
|
if test -f $GNUSTEP_LDIR/libobjc.a -o -f $GNUSTEP_LDIR/libobjc.so; then
|
|
|
|
gs_cv_objc_libdir=$GNUSTEP_LDIR
|
2000-06-22 03:15:27 +00:00
|
|
|
else
|
|
|
|
gs_cv_objc_libdir=NONE
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$gs_cv_objc_libdir" 1>&6
|
|
|
|
|
|
|
|
if test "$gs_cv_objc_libdir" != "NONE"; then
|
2001-01-18 19:47:40 +00:00
|
|
|
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_ROOT/Headers"
|
|
|
|
LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR"
|
2000-06-22 03:15:27 +00:00
|
|
|
fi
|
|
|
|
|
2001-01-18 19:47:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check if Objective-C is installed
|
|
|
|
#--------------------------------------------------------------------
|
1999-09-24 22:24:08 +00:00
|
|
|
for ac_hdr in objc/objc.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1314: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1999-09-24 22:24:08 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1319 "configure"
|
1999-09-24 22:24:08 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-09-24 22:24:08 +00: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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test $ac_cv_header_objc_objc_h = no; then
|
|
|
|
echo "Could not find Objective-C headers"
|
|
|
|
echo "Check to make sure you have a full installation of the GCC"
|
|
|
|
echo "compiler that includes the Objective-C headers and libraries"
|
|
|
|
{ echo "configure: error: Could not find Objective-C headers" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
|
1999-09-09 02:56:20 +00:00
|
|
|
#--------------------------------------------------------------------
|
2001-01-19 11:51:30 +00:00
|
|
|
# Check for thread flags for libobjc.
|
1999-09-09 02:56:20 +00:00
|
|
|
#--------------------------------------------------------------------
|
2001-01-19 11:51:30 +00:00
|
|
|
#
|
|
|
|
echo $ac_n "checking for objc threading flags""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1362: checking for objc threading flags" >&5
|
2001-01-19 11:51:30 +00:00
|
|
|
#
|
|
|
|
# Get them from gnustep-make which contains the real code to get them
|
|
|
|
#
|
|
|
|
objc_threaded=`grep objc_threaded: $GNUSTEP_SYSTEM_ROOT/Makefiles/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
|
|
|
|
#
|
|
|
|
echo "$ac_t""$objc_threaded" 1>&6
|
1999-09-09 02:56:20 +00:00
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
#--------------------------------------------------------------------
|
1999-01-27 12:49:49 +00:00
|
|
|
# Byte order information needed for foundation headers.
|
1999-01-05 16:55:29 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1374: checking whether byte ordering is bigendian" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_cv_c_bigendian=unknown
|
|
|
|
# See if sys/param.h defines the BYTE_ORDER macro.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1381 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
|
|
bogus endian macros
|
|
|
|
#endif
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1999-01-05 16:55:29 +00:00
|
|
|
rm -rf conftest*
|
|
|
|
# It does; now see whether it defined to BIG_ENDIAN or not.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1396 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
#if BYTE_ORDER != BIG_ENDIAN
|
|
|
|
not big endian
|
|
|
|
#endif
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1999-01-05 16:55:29 +00:00
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_c_bigendian=yes
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_c_bigendian=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
if test $ac_cv_c_bigendian = unknown; then
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1427 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
main () {
|
|
|
|
/* Are we little or big endian? From Harbison&Steele. */
|
|
|
|
union
|
|
|
|
{
|
|
|
|
long l;
|
|
|
|
char c[sizeof (long)];
|
|
|
|
} u;
|
|
|
|
u.l = 1;
|
|
|
|
exit (u.c[sizeof (long) - 1] == 1);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_c_bigendian=no
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_c_bigendian=yes
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
|
|
|
|
if test $ac_cv_c_bigendian = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define WORDS_BIGENDIAN 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $ac_cv_c_bigendian = yes; then
|
|
|
|
GS_WORDS_BIGENDIAN=1
|
|
|
|
else
|
|
|
|
GS_WORDS_BIGENDIAN=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-01-27 12:49:49 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Type size information needed for foundation headers.
|
|
|
|
#--------------------------------------------------------------------
|
1999-01-28 12:15:51 +00:00
|
|
|
echo $ac_n "checking size of void*""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1474: checking size of void*" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
|
1999-01-28 12:15:51 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1482 "configure"
|
1999-01-28 12:15:51 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(void*));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-28 12:15:51 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_voidp=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_voidp=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
GS_SINT8="signed char"
|
|
|
|
GS_UINT8="unsigned char"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking size of short""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1519: checking size of short" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1527 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(short));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_short=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_short=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_SHORT $ac_cv_sizeof_short
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
1999-01-26 11:32:02 +00:00
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "checking size of int""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1560: checking size of int" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1568 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(int));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_int=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_int=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_INT $ac_cv_sizeof_int
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
1999-01-26 11:32:02 +00:00
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "checking size of long""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1601: checking size of long" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1609 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(long));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_long=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_long=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_LONG $ac_cv_sizeof_long
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
1999-01-26 11:32:02 +00:00
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "checking size of long long""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1642: checking size of long long" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1650 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(long long));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_long_long=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_long_long=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
1999-01-26 11:32:02 +00:00
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "checking size of float""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1683: checking size of float" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1691 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(float));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_float=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_float=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_FLOAT $ac_cv_sizeof_float
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
1999-01-26 11:32:02 +00:00
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "checking size of double""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1724: checking size of double" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
|
1999-01-05 16:55:29 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1732 "configure"
|
1999-01-05 16:55:29 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
FILE *f=fopen("conftestval", "w");
|
|
|
|
if (!f) exit(1);
|
|
|
|
fprintf(f, "%d\n", sizeof(double));
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-01-05 16:55:29 +00:00
|
|
|
then
|
|
|
|
ac_cv_sizeof_double=`cat conftestval`
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_sizeof_double=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-26 11:32:02 +00:00
|
|
|
|
2000-08-07 22:00:31 +00:00
|
|
|
|
1999-01-28 12:15:51 +00:00
|
|
|
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_int; then
|
|
|
|
GS_ADDR="unsigned int"
|
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long; then
|
|
|
|
GS_ADDR="unsigned long"
|
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
|
|
|
|
GS_ADDR="unsigned long long"
|
|
|
|
else
|
|
|
|
echo "Unable to find integer of same size as void* - abort configuration"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
if test $ac_cv_sizeof_short = 2; then
|
|
|
|
GS_SINT16="signed short"
|
|
|
|
GS_UINT16="unsigned short"
|
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_int = 2; then
|
|
|
|
GS_SINT16="signed int"
|
|
|
|
GS_UINT16="unsigned int"
|
|
|
|
else
|
|
|
|
echo "Unable to determine type for 16-bit integer - abort configuration"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_sizeof_int = 4; then
|
|
|
|
GS_SINT32="signed int"
|
|
|
|
GS_UINT32="unsigned int"
|
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long = 4; then
|
|
|
|
GS_SINT32="signed long"
|
|
|
|
GS_UINT32="unsigned long"
|
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_short = 4; then
|
|
|
|
GS_SINT32="signed short"
|
|
|
|
GS_UINT32="unsigned short"
|
|
|
|
else
|
|
|
|
echo "Unable to determine type for 32-bit integer - abort configuration"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-27 12:49:49 +00:00
|
|
|
GS_HAVE_I64=1
|
|
|
|
if test $ac_cv_sizeof_int = 8; then
|
|
|
|
GS_SINT64="signed int"
|
|
|
|
GS_UINT64="unsigned int"
|
1999-01-05 16:55:29 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long = 8; then
|
|
|
|
GS_SINT64="signed long"
|
|
|
|
GS_UINT64="unsigned long"
|
|
|
|
else
|
1999-01-27 12:49:49 +00:00
|
|
|
if test $ac_cv_sizeof_long_long = 8; then
|
|
|
|
GS_SINT64="signed long long"
|
|
|
|
GS_UINT64="unsigned long long"
|
|
|
|
else
|
|
|
|
# 64-bit ints not supported - but we need a dummy type for byte-swapping
|
|
|
|
# of 64-bit values arriving from another system.
|
|
|
|
GS_SINT64="struct { gsu8 a8; }"
|
|
|
|
GS_SINT64="struct { gsu8 a9; }"
|
|
|
|
GS_HAVE_I64=0
|
|
|
|
fi
|
1999-01-05 16:55:29 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-27 12:49:49 +00:00
|
|
|
|
|
|
|
GS_HAVE_I128=1
|
|
|
|
if test $ac_cv_sizeof_long = 16; then
|
|
|
|
GS_SINT128="signed long"
|
|
|
|
GS_UINT128="unsigned long"
|
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long_long = 16; then
|
|
|
|
GS_SINT128="signed long long"
|
|
|
|
GS_UINT128="unsigned long long"
|
|
|
|
else
|
|
|
|
# 128-bit ints not supported - but we need a dummy type for byte-swapping
|
|
|
|
# of 128-bit values arriving from another system.
|
|
|
|
GS_SINT128="struct { gsu8 a16; }"
|
1999-01-28 12:05:23 +00:00
|
|
|
GS_UINT128="struct { gsu8 a16; }"
|
1999-01-27 12:49:49 +00:00
|
|
|
GS_HAVE_I128=0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-05 16:55:29 +00:00
|
|
|
if test $ac_cv_sizeof_float = 4; then
|
|
|
|
GS_FLT32="float"
|
|
|
|
else
|
1999-01-27 12:49:49 +00:00
|
|
|
echo "Unable to determine type for 32-bit float - abort configuration"
|
|
|
|
exit
|
1999-01-05 16:55:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_sizeof_double = 8; then
|
|
|
|
GS_FLT64="double"
|
|
|
|
else
|
1999-01-27 12:49:49 +00:00
|
|
|
echo "Unable to determine type for 64-bit float - abort configuration"
|
|
|
|
exit
|
1999-01-05 16:55:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-01-26 16:24:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Type-size information for encoding into archives using NSArchiver etc.
|
|
|
|
#--------------------------------------------------------------------
|
1999-01-27 12:49:49 +00:00
|
|
|
if test $ac_cv_sizeof_short = 2; then
|
|
|
|
_GSC_S_SHT=_GSC_I16
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_SHT=_GSC_I32
|
1999-01-26 16:24:40 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-01-27 12:49:49 +00:00
|
|
|
if test $ac_cv_sizeof_int = 2; then
|
|
|
|
_GSC_S_INT=_GSC_I16
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
1999-01-27 12:49:49 +00:00
|
|
|
if test $ac_cv_sizeof_int = 4; then
|
|
|
|
_GSC_S_INT=_GSC_I32
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_int = 8; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_INT=_GSC_I64
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_int = 16; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_INT=_GSC_I128
|
1999-01-26 16:24:40 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_sizeof_long = 4; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_LNG=_GSC_I32
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long = 8; then
|
1999-01-28 10:49:16 +00:00
|
|
|
_GSC_S_LNG=_GSC_I64
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long = 16; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_LNG=_GSC_I128
|
1999-01-26 16:24:40 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if test $ac_cv_sizeof_long_long = 4; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_LNG_LNG=_GSC_I32
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long_long = 8; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_LNG_LNG=_GSC_I64
|
1999-01-26 16:24:40 +00:00
|
|
|
else
|
|
|
|
if test $ac_cv_sizeof_long_long = 16; then
|
1999-01-27 12:49:49 +00:00
|
|
|
_GSC_S_LNG_LNG=_GSC_I128
|
1999-01-26 16:24:40 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Setup dynamic linking
|
|
|
|
#--------------------------------------------------------------------
|
1998-12-03 15:43:18 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Guess if we are using a object file format that supports automatic
|
|
|
|
# loading of constructor functions.
|
|
|
|
#
|
|
|
|
# If this system supports autoloading of constructors, that means that gcc
|
|
|
|
# doesn't have to do it for us via collect2. This routine tests for this
|
|
|
|
# in a very roundabout way by compiling a program with a constructor and
|
|
|
|
# testing the file, via nm, for certain symbols that collect2 includes to
|
|
|
|
# handle loading of constructors.
|
|
|
|
#
|
|
|
|
# Makes the following substitutions:
|
|
|
|
# Defines CON_AUTOLOAD (whether constructor functions are autoloaded)
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking loading of constructor functions""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1947: checking loading of constructor functions" >&5
|
|
|
|
if eval "test \"`echo '$''{'objc_cv_con_autoload'+set}'`\" = set"; then
|
1998-12-03 15:43:18 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.constructor.c <<EOF
|
|
|
|
void cons_functions() __attribute__ ((constructor));
|
|
|
|
void cons_functions() {}
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.constructor.$ac_ext $LIBS 1>&5
|
|
|
|
if test -n "`nm conftest | grep _ctors_aux`"; then
|
|
|
|
objc_cv_con_autoload=yes
|
|
|
|
else
|
|
|
|
objc_cv_con_autoload=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $objc_cv_con_autoload = yes; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define CON_AUTOLOAD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Guess the type of dynamic linker for the system
|
|
|
|
#
|
|
|
|
# Makes the following substitutions:
|
|
|
|
# DYNAMIC_LINKER - cooresponds to the interface that is included
|
|
|
|
# in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
DYNAMIC_LINKER=null
|
|
|
|
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:1988: checking for dlfcn.h" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 1993 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <dlfcn.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
DYNAMIC_LINKER=simple
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $DYNAMIC_LINKER = null; then
|
|
|
|
ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for dl.h""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2022: checking for dl.h" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2027 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <dl.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
DYNAMIC_LINKER=hpux
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
if test $DYNAMIC_LINKER = null; then
|
1998-10-06 20:06:01 +00:00
|
|
|
ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for windows.h""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2057: checking for windows.h" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2062 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
1998-10-06 20:06:01 +00:00
|
|
|
#include <windows.h>
|
1998-02-09 19:06:40 +00:00
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
1998-10-06 20:06:01 +00:00
|
|
|
DYNAMIC_LINKER=win32
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
1998-10-06 20:06:01 +00:00
|
|
|
if test $DYNAMIC_LINKER = null; then
|
|
|
|
ac_safe=`echo "dld/defs.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for dld/defs.h""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2092: checking for dld/defs.h" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
1998-10-06 20:06:01 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2097 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
1998-10-06 20:06:01 +00:00
|
|
|
#include <dld/defs.h>
|
1998-02-09 19:06:40 +00:00
|
|
|
EOF
|
1998-10-06 20:06:01 +00:00
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-10-06 20:06:01 +00:00
|
|
|
if test -z "$ac_err"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
rm -rf conftest*
|
1998-10-06 20:06:01 +00:00
|
|
|
eval "ac_cv_header_$ac_safe=yes"
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
1998-10-06 20:06:01 +00:00
|
|
|
echo "$ac_err" >&5
|
1998-02-09 19:06:40 +00:00
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
1998-10-06 20:06:01 +00:00
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
1998-02-09 19:06:40 +00:00
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
1998-10-06 20:06:01 +00:00
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo "$ac_t""yes" 1>&6
|
1998-10-06 20:06:01 +00:00
|
|
|
DYNAMIC_LINKER=dld
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2000-10-28 21:58:48 +00:00
|
|
|
if test $DYNAMIC_LINKER = simple; then
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2127 "configure"
|
2000-10-28 21:58:48 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <dlfcn.h>
|
|
|
|
int main() {
|
|
|
|
dladdr(0,0);
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2000-10-28 21:58:48 +00:00
|
|
|
rm -rf conftest*
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_DLADDR 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
|
1999-07-22 14:17:27 +00:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# Guess if we are using a compiler which has the (GNU extension) +load
|
|
|
|
# method which is executed before main.
|
|
|
|
# Defines HAVE_LOAD_METHOD if +load methods are called before main.
|
|
|
|
# Needed by NSProcessInfo.m
|
|
|
|
#--------------------------------------------------------------------
|
1999-09-09 02:56:20 +00:00
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
LIBS="$LIBS -lobjc"
|
|
|
|
CPPFLAGS="$CPPFLAGS -x objective-c"
|
2001-01-19 11:51:30 +00:00
|
|
|
if test x"$objc_threaded" != x""; then
|
|
|
|
LIBS="$LIBS $objc_threaded"
|
1999-09-09 02:56:20 +00:00
|
|
|
fi
|
|
|
|
LIBS="$LIBS $extra_LIBS"
|
1999-07-22 14:17:27 +00:00
|
|
|
echo $ac_n "checking if +load method is executed before main""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2164: checking if +load method is executed before main" >&5
|
|
|
|
if eval "test \"`echo '$''{'objc_load_method_worked'+set}'`\" = set"; then
|
1999-07-22 14:17:27 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
1999-09-09 02:56:20 +00:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
objc_load_method_worked=no
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2172 "configure"
|
1999-09-09 02:56:20 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.loadtest.m"
|
1999-07-22 14:17:27 +00:00
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-09-09 02:56:20 +00:00
|
|
|
then
|
|
|
|
objc_load_method_worked=yes
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
objc_load_method_worked=no
|
1999-07-22 14:17:27 +00:00
|
|
|
fi
|
1999-09-09 02:56:20 +00:00
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
1999-07-22 14:17:27 +00:00
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $objc_load_method_worked = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_LOAD_METHOD 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
1999-09-09 02:56:20 +00:00
|
|
|
CPPFLAGS="$saved_CPPFLAGS"
|
|
|
|
# Don't revert LIBS, need it for the next test
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by NSLock.m for conditioned wait
|
2000-06-22 03:15:27 +00:00
|
|
|
# get_uninstalled_dtable used by behavior.m and objc-load.m
|
1999-09-09 02:56:20 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in objc_condition_timedwait
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2211: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1999-09-09 02:56:20 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2216 "configure"
|
1999-09-09 02:56:20 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1999-09-09 02:56:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1999-09-09 02:56:20 +00: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
|
|
|
|
|
|
|
|
|
2000-06-22 03:15:27 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2265 "configure"
|
2000-06-22 03:15:27 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <objc/objc-api.h>
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
|
|
|
|
rm -rf conftest*
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
|
1999-09-09 02:56:20 +00:00
|
|
|
LIBS="$saved_LIBS"
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Generic settings needed by NSZone.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2286: checking for ANSI C header files" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2291 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <float.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=yes
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2316 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <string.h>
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2334 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "free" >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2355 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <ctype.h>
|
|
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
|
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
|
exit (0); }
|
|
|
|
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1998-02-09 19:06:40 +00:00
|
|
|
then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define STDC_HEADERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2390: checking for size_t" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2395 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#if STDC_HEADERS
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#endif
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
1999-07-12 04:21:05 +00:00
|
|
|
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
1998-02-09 19:06:40 +00:00
|
|
|
rm -rf conftest*
|
2001-01-29 19:39:31 +00:00
|
|
|
ac_cv_type_size_t=yes
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
|
|
|
rm -rf conftest*
|
2001-01-29 19:39:31 +00:00
|
|
|
ac_cv_type_size_t=no
|
1998-02-09 19:06:40 +00:00
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
|
|
if test $ac_cv_type_size_t = no; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
1998-02-09 19:06:40 +00:00
|
|
|
#define size_t unsigned
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking for inline""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2423: checking for inline" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_cv_c_inline=no
|
|
|
|
for ac_kw in inline __inline__ __inline; do
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2430 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
} $ac_kw foo() {
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1998-02-09 19:06:40 +00:00
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_c_inline=$ac_kw; break
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
done
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
|
|
case "$ac_cv_c_inline" in
|
|
|
|
inline | yes) ;;
|
|
|
|
no) cat >> confdefs.h <<\EOF
|
|
|
|
#define inline
|
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
*) cat >> confdefs.h <<EOF
|
|
|
|
#define inline $ac_cv_c_inline
|
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Following header checks needed for bzero in Storage.m and other places
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2467: checking for ANSI C header files" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2472 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <float.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
if test -z "$ac_err"; then
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=yes
|
|
|
|
else
|
|
|
|
echo "$ac_err" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2497 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <string.h>
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "memchr" >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2515 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
EOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "free" >/dev/null 2>&1; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
rm -rf conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2536 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <ctype.h>
|
|
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
|
|
int main () { int i; for (i = 0; i < 256; i++)
|
|
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
|
|
exit (0); }
|
|
|
|
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1998-02-09 19:06:40 +00:00
|
|
|
then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_header_stdc=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
|
|
if test $ac_cv_header_stdc = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define STDC_HEADERS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
for ac_hdr in string.h memory.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2574: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2579 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Following header check needed BinaryCStream.h
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_hdr in values.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2618: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2623 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Header files and functions for files and filesystems
|
|
|
|
#--------------------------------------------------------------------
|
1998-12-03 16:49:25 +00:00
|
|
|
for ac_hdr in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
|
1998-02-09 19:06:40 +00:00
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2662: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2667 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2000-10-30 05:03:28 +00:00
|
|
|
for ac_hdr in sys/mount.h sys/types.h windows.h locale.h langinfo.h
|
1999-04-27 15:06:14 +00:00
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2702: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1999-04-27 15:06:14 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2707 "configure"
|
1999-04-27 15:06:14 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1999-04-27 15:06:14 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2000-09-25 03:10:55 +00:00
|
|
|
saved_LIBS="$LIBS"
|
|
|
|
LIBS="$LIBS -lm"
|
2000-09-22 04:20:52 +00:00
|
|
|
for ac_func in statvfs symlink readlink geteuid rint
|
1998-02-09 19:06:40 +00:00
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2743: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2748 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
2000-09-25 03:10:55 +00:00
|
|
|
LIBS="$saved_LIBS"
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# These two headers (functions) needed by Time.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
2000-06-06 16:50:52 +00:00
|
|
|
for ac_hdr in sys/time.h sys/rusage.h ucbinclude/sys/resource.h
|
1998-02-09 19:06:40 +00:00
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2805: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2810 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
2000-11-15 14:32:18 +00:00
|
|
|
# These headers/functions needed by GSTcpPort.m
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
2000-06-13 14:51:31 +00:00
|
|
|
for ac_hdr in sys/socket.h netinet/in.h
|
1998-02-26 17:55:42 +00:00
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2849: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2854 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
1998-02-26 17:55:42 +00:00
|
|
|
#include <$ac_hdr>
|
1998-02-09 19:06:40 +00:00
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1998-02-09 19:06:40 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
1998-02-26 17:55:42 +00:00
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
1998-02-26 17:55:42 +00:00
|
|
|
done
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
|
1999-03-09 05:55:19 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# These headers/functions needed by NSLog.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_hdr in syslog.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2893: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
1999-03-09 05:55:19 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2898 "configure"
|
1999-03-09 05:55:19 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
1999-07-12 04:21:05 +00:00
|
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
1999-03-09 05:55:19 +00:00
|
|
|
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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for ac_func in syslog
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2932: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1999-03-09 05:55:19 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2937 "configure"
|
1999-03-09 05:55:19 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1999-03-09 05:55:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1999-03-09 05:55:19 +00: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
|
|
|
|
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by StdioStream.m
|
|
|
|
#--------------------------------------------------------------------
|
2000-03-23 18:49:34 +00:00
|
|
|
for ac_func in vsprintf vasprintf
|
1998-02-09 19:06:40 +00:00
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:2991: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 2996 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
|
|
|
if test $ac_cv_func_vsprintf = yes ; then
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
VSPRINTF_RETURNS_LENGTH=1
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3048 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.vsprintf.c"
|
|
|
|
EOF
|
2001-01-29 19:39:31 +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
|
1998-02-09 19:06:40 +00:00
|
|
|
then
|
|
|
|
VSPRINTF_RETURNS_LENGTH=1
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
VSPRINTF_RETURNS_LENGTH=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
|
|
|
|
EOF
|
|
|
|
|
2000-03-23 18:49:34 +00:00
|
|
|
fi
|
|
|
|
if test $ac_cv_func_vasprintf = yes ; then
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
VASPRINTF_RETURNS_LENGTH=1
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3074 "configure"
|
2000-03-23 18:49:34 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.vasprintf.c"
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2000-03-23 18:49:34 +00:00
|
|
|
then
|
|
|
|
VASPRINTF_RETURNS_LENGTH=1
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
VASPRINTF_RETURNS_LENGTH=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
|
|
|
|
EOF
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
2000-06-13 14:51:31 +00:00
|
|
|
# This function needed by NSFileManager.m
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in getcwd
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3102: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3107 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
|
|
|
ac_header_dirent=no
|
|
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3159: checking for $ac_hdr that defines DIR" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3164 "configure"
|
1998-02-09 19:06:40 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <$ac_hdr>
|
|
|
|
int main() {
|
|
|
|
DIR *dirp = 0;
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
1998-02-09 19:06:40 +00:00
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_dirent_$ac_safe=yes"
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_dirent_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_dirent_'$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
|
|
|
|
EOF
|
|
|
|
ac_header_dirent=$ac_hdr; break
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|
|
|
if test $ac_header_dirent = dirent.h; then
|
|
|
|
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3197: checking for opendir in -ldir" >&5
|
|
|
|
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-ldir $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3205 "configure"
|
1998-02-09 19:06:40 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char opendir();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
opendir()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
LIBS="$LIBS -ldir"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3238: checking for opendir in -lx" >&5
|
|
|
|
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lx $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3246 "configure"
|
1998-02-09 19:06:40 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char opendir();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
opendir()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
LIBS="$LIBS -lx"
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2000-06-13 14:51:31 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by gdomap.c
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_hdr in getopt.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3287: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2000-06-13 14:51:31 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3292 "configure"
|
2000-06-13 14:51:31 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2000-06-13 14:51:31 +00: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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by NSPage.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in valloc
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3330: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3335 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by Time.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in times
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3389: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3394 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# These functions needed by NSData.m
|
|
|
|
#--------------------------------------------------------------------
|
1999-03-09 05:55:19 +00:00
|
|
|
for ac_func in mkstemp
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3448: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1999-03-09 05:55:19 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3453 "configure"
|
1999-03-09 05:55:19 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1999-03-09 05:55:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1999-03-09 05:55:19 +00: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
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
for ac_func in shmctl
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3503: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3508 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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 mmap
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3558: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1999-02-01 14:00:17 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3563 "configure"
|
1999-02-01 14:00:17 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1999-02-01 14:00:17 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1999-02-01 14:00:17 +00: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
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by UnixFileHandle.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in inet_aton
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3617: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3622 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
1999-01-05 16:55:29 +00:00
|
|
|
# These functions needed by NSTask.m
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
1999-01-05 18:17:38 +00:00
|
|
|
for ac_func in killpg setpgrp setpgid
|
1998-02-09 19:06:40 +00:00
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3676: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3681 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
1999-01-05 18:17:38 +00:00
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
1999-06-26 05:28:11 +00:00
|
|
|
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3729: checking whether setpgrp takes no argument" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
|
1999-06-26 05:28:11 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
{ echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3737 "configure"
|
1999-06-26 05:28:11 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
1999-07-12 04:21:05 +00:00
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
1999-06-26 05:28:11 +00:00
|
|
|
/*
|
|
|
|
* If this system has a BSD-style setpgrp, which takes arguments, exit
|
|
|
|
* successfully.
|
|
|
|
*/
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
if (setpgrp(1,1) == -1)
|
|
|
|
exit(0);
|
|
|
|
else
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-06-26 05:28:11 +00:00
|
|
|
then
|
|
|
|
ac_cv_func_setpgrp_void=no
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
ac_cv_func_setpgrp_void=yes
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
|
|
|
|
if test $ac_cv_func_setpgrp_void = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define SETPGRP_VOID 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
1998-05-29 15:25:41 +00:00
|
|
|
# This function needed by NSThread.m
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
1998-05-29 15:25:41 +00:00
|
|
|
for ac_func in usleep
|
1998-02-09 19:06:40 +00:00
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3787: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-02-09 19:06:40 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3792 "configure"
|
1998-02-09 19:06:40 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-02-09 19:06:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-02-09 19:06:40 +00: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
|
|
|
|
|
|
|
|
|
1998-05-29 15:25:41 +00:00
|
|
|
#--------------------------------------------------------------------
|
1999-07-22 14:17:27 +00:00
|
|
|
# This function needed by NSDebug.m and NSProcessInfo.m
|
1998-05-29 15:25:41 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in strerror
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3846: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1998-05-29 15:25:41 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3851 "configure"
|
1998-05-29 15:25:41 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1998-05-29 15:25:41 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-05-29 15:25:41 +00: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
|
|
|
|
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by NSString for handling of %@ printf directive.
|
|
|
|
#--------------------------------------------------------------------
|
1999-02-05 06:10:49 +00:00
|
|
|
echo $ac_n "checking for register_printf_function""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3903: checking for register_printf_function" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_register_printf_function'+set}'`\" = set"; then
|
1998-05-29 15:25:41 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3908 "configure"
|
1998-05-29 15:25:41 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
1999-02-05 06:10:49 +00:00
|
|
|
which can conflict with char register_printf_function(); below. */
|
1998-05-29 15:25:41 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
1999-02-05 06:10:49 +00:00
|
|
|
char register_printf_function();
|
1998-05-29 15:25:41 +00:00
|
|
|
|
|
|
|
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. */
|
1999-02-05 06:10:49 +00:00
|
|
|
#if defined (__stub_register_printf_function) || defined (__stub___register_printf_function)
|
1998-05-29 15:25:41 +00:00
|
|
|
choke me
|
|
|
|
#else
|
2001-01-29 19:39:31 +00:00
|
|
|
register_printf_function();
|
1998-05-29 15:25:41 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1998-05-29 15:25:41 +00:00
|
|
|
rm -rf conftest*
|
1999-02-05 06:10:49 +00:00
|
|
|
eval "ac_cv_func_register_printf_function=yes"
|
1998-05-29 15:25:41 +00:00
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
1999-02-05 06:10:49 +00:00
|
|
|
eval "ac_cv_func_register_printf_function=no"
|
1998-05-29 15:25:41 +00:00
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
|
1999-02-05 06:10:49 +00:00
|
|
|
if eval "test \"`echo '$ac_cv_func_'register_printf_function`\" = yes"; then
|
1998-05-29 15:25:41 +00:00
|
|
|
echo "$ac_t""yes" 1>&6
|
1999-02-05 06:10:49 +00:00
|
|
|
register_printf=1
|
1998-05-29 15:25:41 +00:00
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
1999-02-05 06:10:49 +00:00
|
|
|
register_printf=0
|
1998-05-29 15:25:41 +00:00
|
|
|
fi
|
|
|
|
|
1999-02-05 06:10:49 +00:00
|
|
|
if test $register_printf = 1; then
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
working_register_printf=1
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3956 "configure"
|
1999-02-05 06:10:49 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.printf.c"
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-02-05 06:10:49 +00:00
|
|
|
then
|
|
|
|
working_register_printf=1
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
working_register_printf=0
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $working_register_printf = 1; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_REGISTER_PRINTF_FUNCTION 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
1998-05-29 15:25:41 +00:00
|
|
|
|
1999-07-12 04:21:05 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# This function needed by NSString.
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
for ac_func in realpath
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:3986: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
1999-07-12 04:21:05 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 3991 "configure"
|
1999-07-12 04:21:05 +00: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
|
2001-01-29 19:39:31 +00:00
|
|
|
$ac_func();
|
1999-07-12 04:21:05 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
1999-07-12 04:21:05 +00: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
|
|
|
|
|
|
|
|
|
1999-07-22 14:17:27 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check if the C Library defines extern char *program_invocation_name
|
|
|
|
# Used in critical cases by NSProcessInfo.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking program_invocation_name in C Library""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4044: checking program_invocation_name in C Library" >&5
|
|
|
|
if eval "test \"`echo '$''{'program_invocation_name_worked'+set}'`\" = set"; then
|
1999-07-22 14:17:27 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
program_invocation_name_worked=no
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4052 "configure"
|
1999-07-22 14:17:27 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
|
|
|
{
|
|
|
|
extern char *program_invocation_name;
|
|
|
|
return (strcmp (program_invocation_name, argv[0]));
|
|
|
|
}
|
|
|
|
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
1999-07-22 14:17:27 +00:00
|
|
|
then
|
|
|
|
program_invocation_name_worked=yes
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
program_invocation_name_worked=no
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $program_invocation_name_worked = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_PROGRAM_INVOCATION_NAME 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Defines HAVE_PROC_FS if the kernel supports the /proc filesystem.
|
|
|
|
# Needed by NSProcessInfo.m
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo $ac_n "checking kernel support for /proc filesystem""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4093: checking kernel support for /proc filesystem" >&5
|
1999-07-22 14:17:27 +00:00
|
|
|
if (grep proc /etc/fstab >/dev/null 2>/dev/null); then
|
|
|
|
sys_proc_fs=yes;
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_PROC_FS 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
echo "$ac_t""yes" 1>&6
|
1999-09-09 02:56:20 +00:00
|
|
|
# Solaris has proc, but for some reason the dir is not readable
|
|
|
|
#elif (grep proc /etc/vfstab >/dev/null 2>/dev/null); then
|
|
|
|
# sys_proc_fs=yes;
|
|
|
|
# AC_DEFINE(HAVE_PROC_FS)
|
|
|
|
# AC_MSG_RESULT(yes)
|
1999-07-22 14:17:27 +00:00
|
|
|
else
|
|
|
|
sys_proc_fs=no;
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
2000-04-18 21:34:59 +00:00
|
|
|
# Linux (and others?) /proc contains a symlink to the executable
|
|
|
|
# file from which the process loaded its code. This can be used
|
|
|
|
# by NSBundle.m to locate the main bundle.
|
2000-05-03 03:14:14 +00:00
|
|
|
sys_proc_fs_exe=no;
|
2000-04-18 21:34:59 +00:00
|
|
|
if test $sys_proc_fs = yes; then
|
|
|
|
echo $ac_n "checking link to executable in /proc""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4116: checking link to executable in /proc" >&5
|
2000-04-18 21:34:59 +00:00
|
|
|
if test -L /proc/self/exe; then
|
2000-05-03 03:14:14 +00:00
|
|
|
sys_proc_fs_exe=yes;
|
2000-04-18 21:34:59 +00:00
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2000-05-03 03:14:14 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check if short and int values need to be word aligned
|
|
|
|
#--------------------------------------------------------------------
|
2000-06-06 16:50:52 +00:00
|
|
|
echo $ac_n "checking short/int needs to be word aligned""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4129: checking short/int needs to be word aligned" >&5
|
2000-05-03 03:14:14 +00:00
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
NEED_WORD_ALIGNMENT=1
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4134 "configure"
|
2000-05-03 03:14:14 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include "$srcdir/config/config.align.c"
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2000-05-03 03:14:14 +00:00
|
|
|
then
|
|
|
|
NEED_WORD_ALIGNMENT=0
|
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -fr conftest*
|
|
|
|
NEED_WORD_ALIGNMENT=1
|
|
|
|
fi
|
|
|
|
rm -fr conftest*
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if test $NEED_WORD_ALIGNMENT = 1; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
1999-07-22 14:17:27 +00:00
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
1999-09-09 02:56:20 +00:00
|
|
|
# Include redefinition of main () only if needed.
|
|
|
|
# On some systems - force redefinition to be used as the /proc stuff
|
2000-06-29 03:51:06 +00:00
|
|
|
# doesn't work. Allow NSProcessInfo initialization method also.
|
1999-07-22 14:17:27 +00:00
|
|
|
#--------------------------------------------------------------------
|
2000-06-29 03:51:06 +00:00
|
|
|
echo $ac_n "checking "use of pass-through arguments"""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4166: checking "use of pass-through arguments"" >&5
|
2000-06-29 03:51:06 +00:00
|
|
|
# Check whether --enable-pass-arguments or --disable-pass-arguments was given.
|
|
|
|
if test "${enable_pass_arguments+set}" = set; then
|
|
|
|
enableval="$enable_pass_arguments"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
enable_pass_arguments=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
case "$target_os" in
|
2000-06-30 22:42:48 +00:00
|
|
|
cygwin*) enable_pass_arguments=yes;;
|
2000-06-29 03:51:06 +00:00
|
|
|
esac
|
|
|
|
if test "$enable_pass_arguments" = "yes"; then
|
|
|
|
GS_PASS_ARGUMENTS=1
|
|
|
|
else
|
|
|
|
GS_PASS_ARGUMENTS=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$ac_t""$enable_pass_arguments" 1>&6
|
|
|
|
|
|
|
|
echo $ac_n "checking "use of fake-main definition"""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4188: checking "use of fake-main definition"" >&5
|
1999-07-22 14:17:27 +00:00
|
|
|
# Check whether --enable-fake-main or --disable-fake-main was given.
|
|
|
|
if test "${enable_fake_main+set}" = set; then
|
|
|
|
enableval="$enable_fake_main"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
enable_fake_main=no
|
|
|
|
fi
|
|
|
|
|
1999-09-09 02:56:20 +00:00
|
|
|
|
2000-06-29 03:51:06 +00:00
|
|
|
if test "$enable_pass_arguments" = "no"; then
|
|
|
|
case "$target_os" in
|
2000-09-30 22:08:21 +00:00
|
|
|
freebsdelf*) ;;
|
2000-06-29 03:51:06 +00:00
|
|
|
freebsd*) enable_fake_main=yes;;
|
|
|
|
netbsd*) enable_fake_main=yes;;
|
|
|
|
openbsd*) enable_fake_main=yes;;
|
|
|
|
*sysv*) enable_fake_main=yes;;
|
|
|
|
esac
|
|
|
|
fi
|
1999-09-09 02:56:20 +00:00
|
|
|
|
2000-06-29 03:51:06 +00:00
|
|
|
GS_FAKE_MAIN=0
|
1999-07-22 14:17:27 +00:00
|
|
|
if test "$enable_fake_main" = "yes"; then
|
|
|
|
GS_FAKE_MAIN=1
|
2000-06-29 03:51:06 +00:00
|
|
|
elif test "$enable_pass_arguments" = "no"; then
|
1999-07-22 14:17:27 +00:00
|
|
|
if test $objc_load_method_worked = yes -a $sys_proc_fs = yes; then
|
|
|
|
GS_FAKE_MAIN=0
|
|
|
|
else
|
|
|
|
GS_FAKE_MAIN=1
|
2000-06-29 03:51:06 +00:00
|
|
|
enable_fake_main=yes
|
1999-07-22 14:17:27 +00:00
|
|
|
fi
|
2000-05-03 03:14:14 +00:00
|
|
|
if test $sys_proc_fs_exe = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_PROC_FS_EXE_LINK 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
1999-07-22 14:17:27 +00:00
|
|
|
fi
|
2000-09-15 22:06:01 +00:00
|
|
|
case "$target_os" in
|
|
|
|
mingw*) enable_fake_main=no; GS_FAKE_MAIN=0;;
|
|
|
|
esac
|
1999-07-22 14:17:27 +00:00
|
|
|
|
2000-06-29 03:51:06 +00:00
|
|
|
echo "$ac_t""$enable_fake_main" 1>&6
|
1999-07-22 14:17:27 +00:00
|
|
|
|
2000-12-08 19:06:00 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check for FFI interface libraries for invocations
|
2001-01-09 03:53:02 +00:00
|
|
|
# We enable ffcall by default now.
|
2000-12-08 19:06:00 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check whether --enable-libffi or --disable-libffi was given.
|
|
|
|
if test "${enable_libffi+set}" = set; then
|
|
|
|
enableval="$enable_libffi"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
enable_libffi=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check whether --enable-ffcall or --disable-ffcall was given.
|
|
|
|
if test "${enable_ffcall+set}" = set; then
|
|
|
|
enableval="$enable_ffcall"
|
|
|
|
:
|
|
|
|
else
|
2001-01-09 03:53:02 +00:00
|
|
|
enable_ffcall=yes
|
2000-12-08 19:06:00 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
ac_safe=`echo "ffi.h" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for ffi.h""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4254: checking for ffi.h" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2000-12-08 19:06:00 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4259 "configure"
|
2000-12-08 19:06:00 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <ffi.h>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:4264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2000-12-08 19:06:00 +00: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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
enable_libffi=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-01-03 17:09:40 +00:00
|
|
|
echo $ac_n "checking "for forwarding callback in runtime"""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4288: checking "for forwarding callback in runtime"" >&5
|
2000-12-08 19:06:00 +00:00
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4290 "configure"
|
2000-12-08 19:06:00 +00:00
|
|
|
#include "confdefs.h"
|
2001-01-03 17:09:40 +00:00
|
|
|
#include <objc/objc-api.h>
|
2000-12-08 19:06:00 +00:00
|
|
|
EOF
|
2001-01-03 17:09:40 +00:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
|
|
egrep "__objc_msg_forward" >/dev/null 2>&1; then
|
|
|
|
rm -rf conftest*
|
|
|
|
echo "$ac_t""yes" 1>&6
|
2000-12-08 19:06:00 +00:00
|
|
|
else
|
|
|
|
rm -rf conftest*
|
2001-01-03 17:09:40 +00:00
|
|
|
echo "$ac_t""no" 1>&6; enable_ffcall=no
|
2000-12-08 19:06:00 +00:00
|
|
|
fi
|
|
|
|
rm -f conftest*
|
2001-01-03 17:09:40 +00:00
|
|
|
|
2000-12-08 19:06:00 +00:00
|
|
|
for ac_hdr in callback.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4308: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2000-12-08 19:06:00 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4313 "configure"
|
2000-12-08 19:06:00 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:4318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2000-12-08 19:06:00 +00: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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
enable_ffcall=no
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking "FFI library usage"""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4347: checking "FFI library usage"" >&5
|
2000-12-08 19:06:00 +00:00
|
|
|
WITH_FFI=none
|
|
|
|
if test $enable_libffi = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define USE_LIBFFI 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
WITH_FFI=libffi
|
2001-01-29 19:39:31 +00:00
|
|
|
LIBS="$LIBS -lffi"
|
2000-12-08 19:06:00 +00:00
|
|
|
echo "$ac_t""libffi" 1>&6
|
|
|
|
elif test $enable_ffcall = yes; then
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define USE_FFCALL 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
WITH_FFI=ffcall
|
2001-01-29 19:39:31 +00:00
|
|
|
LIBS="$LIBS -lcallback -lavcall"
|
2000-12-08 19:06:00 +00:00
|
|
|
echo "$ac_t""ffcall" 1>&6
|
|
|
|
else
|
|
|
|
echo "$ac_t""none" 1>&6
|
2001-01-09 03:53:02 +00:00
|
|
|
echo "configure: warning: No ffcall interface library found" 1>&2
|
|
|
|
echo
|
|
|
|
echo "GNUstep requires the ffcall library to do invocations and DO"
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "Make sure this library is installed (see installation instructions)"
|
2001-01-09 03:53:02 +00:00
|
|
|
echo "Otherwise DO will not be compatible with other systems"
|
2000-12-08 19:06:00 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2000-06-20 13:17:22 +00:00
|
|
|
#--------------------------------------------------------------------
|
2001-01-05 10:12:17 +00:00
|
|
|
# Check recent libxml for Properytlists, GSXML, GSDoc etc.
|
2000-06-20 13:17:22 +00:00
|
|
|
#--------------------------------------------------------------------
|
2001-01-05 10:12:17 +00:00
|
|
|
|
|
|
|
# Check whether --with-xml-prefix or --without-xml-prefix was given.
|
|
|
|
if test "${with_xml_prefix+set}" = set; then
|
|
|
|
withval="$with_xml_prefix"
|
|
|
|
xml_config_prefix="$withval"
|
2000-10-28 21:58:48 +00:00
|
|
|
else
|
2001-01-05 10:12:17 +00:00
|
|
|
xml_config_prefix=""
|
2000-10-28 21:58:48 +00:00
|
|
|
fi
|
|
|
|
|
2001-01-05 10:12:17 +00:00
|
|
|
# Check whether --enable-xmltest or --disable-xmltest was given.
|
|
|
|
if test "${enable_xmltest+set}" = set; then
|
|
|
|
enableval="$enable_xmltest"
|
|
|
|
:
|
2000-10-28 21:58:48 +00:00
|
|
|
else
|
2001-01-05 10:12:17 +00:00
|
|
|
enable_xmltest=yes
|
2000-10-28 21:58:48 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-01-05 10:12:17 +00:00
|
|
|
if test x$xml_config_prefix != x ; then
|
|
|
|
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
|
|
|
|
if test x${XML_CONFIG+set} != xset ; then
|
|
|
|
XML_CONFIG=$xml_config_prefix/bin/xml-config
|
|
|
|
fi
|
|
|
|
fi
|
2000-10-28 21:58:48 +00:00
|
|
|
|
2001-01-05 10:12:17 +00:00
|
|
|
# Extract the first word of "xml-config", so it can be a program name with args.
|
|
|
|
set dummy xml-config; ac_word=$2
|
|
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4406: checking for $ac_word" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then
|
2001-01-05 10:12:17 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
2000-06-20 13:17:22 +00:00
|
|
|
else
|
2001-01-05 10:12:17 +00:00
|
|
|
case "$XML_CONFIG" in
|
|
|
|
/*)
|
|
|
|
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
|
|
|
|
;;
|
|
|
|
?:/*)
|
|
|
|
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path.
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
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_path_XML_CONFIG="$ac_dir/$ac_word"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
IFS="$ac_save_ifs"
|
|
|
|
test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
|
|
|
|
;;
|
|
|
|
esac
|
2000-06-20 13:17:22 +00:00
|
|
|
fi
|
2001-01-05 10:12:17 +00:00
|
|
|
XML_CONFIG="$ac_cv_path_XML_CONFIG"
|
|
|
|
if test -n "$XML_CONFIG"; then
|
|
|
|
echo "$ac_t""$XML_CONFIG" 1>&6
|
2000-06-20 13:17:22 +00:00
|
|
|
else
|
2001-01-05 10:12:17 +00:00
|
|
|
echo "$ac_t""no" 1>&6
|
2000-12-26 23:03:42 +00:00
|
|
|
fi
|
2001-01-05 10:12:17 +00:00
|
|
|
|
|
|
|
min_xml_version=2.2.3
|
|
|
|
echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4441: checking for libxml - version >= $min_xml_version" >&5
|
2001-01-05 10:12:17 +00:00
|
|
|
no_xml=""
|
|
|
|
if test "$XML_CONFIG" = "no" ; then
|
|
|
|
no_xml=yes
|
|
|
|
else
|
|
|
|
XML_CFLAGS=`$XML_CONFIG $xml_config_args --cflags`
|
|
|
|
XML_LIBS=`$XML_CONFIG $xml_config_args --libs`
|
|
|
|
xml_config_major_version=`$XML_CONFIG $xml_config_args --version | \
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
|
|
xml_config_minor_version=`$XML_CONFIG $xml_config_args --version | \
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
|
|
xml_config_micro_version=`$XML_CONFIG $xml_config_args --version | \
|
|
|
|
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
|
|
if test "x$enable_xmltest" = "xyes" ; then
|
|
|
|
ac_save_CFLAGS="$CFLAGS"
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
CFLAGS="$CFLAGS $XML_CFLAGS"
|
|
|
|
LIBS="$XML_LIBS $LIBS"
|
|
|
|
rm -f conf.xmltest
|
|
|
|
if test "$cross_compiling" = yes; then
|
|
|
|
echo $ac_n "cross compiling; assumed OK... $ac_c"
|
2000-06-20 13:17:22 +00:00
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4464 "configure"
|
2000-06-20 13:17:22 +00:00
|
|
|
#include "confdefs.h"
|
2001-01-05 10:12:17 +00:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <xmlversion.h>
|
|
|
|
#include <parser.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
int xml_major_version, xml_minor_version, xml_micro_version;
|
|
|
|
int major, minor, micro;
|
|
|
|
char *tmp_version;
|
|
|
|
|
|
|
|
system("touch conf.xmltest");
|
|
|
|
|
|
|
|
tmp_version = xmlStrdup("$min_xml_version");
|
|
|
|
if(sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
|
|
printf("%s, bad version string\n", "$min_xml_version");
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
tmp_version = xmlStrdup(LIBXML_DOTTED_VERSION);
|
|
|
|
if(sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
|
|
|
|
printf("%s, bad version string\n", "$min_xml_version");
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
if((xml_major_version != $xml_config_major_version) ||
|
|
|
|
(xml_minor_version != $xml_config_minor_version) ||
|
|
|
|
(xml_micro_version != $xml_config_micro_version))
|
|
|
|
{
|
|
|
|
printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
|
|
|
|
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version,
|
|
|
|
xml_major_version, xml_minor_version, xml_micro_version);
|
|
|
|
printf("*** was found! If xml-config was correct, then it is best\n");
|
|
|
|
printf("*** to remove the old version of libxml. You may also be able to fix the error\n");
|
|
|
|
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
|
|
|
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
|
|
|
printf("*** required on your system.\n");
|
|
|
|
printf("*** If xml-config was wrong, set the environment variable XML_CONFIG\n");
|
|
|
|
printf("*** to point to the correct copy of xml-config, and remove the file config.cache\n");
|
|
|
|
printf("*** before re-running configure\n");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ((xml_major_version > major) ||
|
|
|
|
((xml_major_version == major) && (xml_minor_version > minor)) ||
|
|
|
|
((xml_major_version == major) && (xml_minor_version == minor) &&
|
|
|
|
(xml_micro_version >= micro)))
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
|
|
|
|
xml_major_version, xml_minor_version, xml_micro_version);
|
|
|
|
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
|
|
|
|
major, minor, micro);
|
|
|
|
printf("*** libxml is always available from ftp://ftp.gnome.org.\n");
|
|
|
|
printf("***\n");
|
|
|
|
printf("*** If you have already installed a sufficiently new version, this error\n");
|
|
|
|
printf("*** probably means that the wrong copy of the xml-config shell script is\n");
|
|
|
|
printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
|
|
|
printf("*** of libxml, but you can also set the XML_CONFIG environment to point to the\n");
|
|
|
|
printf("*** correct copy of xml-config. (In this case, you will have to\n");
|
|
|
|
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
|
|
|
printf("*** so that the correct libraries are found at run-time))\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2000-06-20 13:17:22 +00:00
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
2001-01-05 10:12:17 +00:00
|
|
|
then
|
|
|
|
:
|
2000-06-20 13:17:22 +00:00
|
|
|
else
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
2001-01-05 10:12:17 +00:00
|
|
|
rm -fr conftest*
|
|
|
|
no_xml=yes
|
2000-06-20 13:17:22 +00:00
|
|
|
fi
|
2001-01-05 10:12:17 +00:00
|
|
|
rm -fr conftest*
|
2000-06-20 13:17:22 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-01-05 10:12:17 +00:00
|
|
|
CFLAGS="$ac_save_CFLAGS"
|
|
|
|
LIBS="$ac_save_LIBS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$no_xml" = x ; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
enable_libxml=yes
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
if test "$XML_CONFIG" = "no" ; then
|
|
|
|
echo "*** The xml-config script installed by libxml could not be found"
|
|
|
|
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
|
|
|
|
echo "*** your path, or set the XML_CONFIG environment variable to the"
|
|
|
|
echo "*** full path to xml-config."
|
|
|
|
else
|
|
|
|
if test -f conf.xmltest ; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
echo "*** Could not run libxml test program, checking why..."
|
|
|
|
CFLAGS="$CFLAGS $XML_CFLAGS"
|
|
|
|
LIBS="$LIBS $XML_LIBS"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
XML_CFLAGS=""
|
|
|
|
XML_LIBS=""
|
|
|
|
enable_libxml=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
rm -f conf.xmltest
|
|
|
|
|
|
|
|
if test $enable_libxml = yes; then
|
|
|
|
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
|
|
|
|
LIBS="$LIBS $XML_LIBS"
|
|
|
|
HAVE_LIBXML=1
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#define HAVE_LIBXML 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
HAVE_LIBXML=0
|
2000-10-28 21:58:48 +00:00
|
|
|
fi
|
|
|
|
|
2001-01-05 10:12:17 +00:00
|
|
|
|
2000-11-15 14:32:18 +00:00
|
|
|
#--------------------------------------------------------------------
|
2000-11-18 08:54:32 +00:00
|
|
|
# Check OpenSSL for HTTPS support.
|
2000-11-15 14:32:18 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo "Checking for OpenSSL"
|
|
|
|
# Check whether --with-openssl-include or --without-openssl-include was given.
|
|
|
|
if test "${with_openssl_include+set}" = set; then
|
|
|
|
withval="$with_openssl_include"
|
|
|
|
openssl_incdir="$withval"
|
|
|
|
else
|
|
|
|
openssl_incdir="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-openssl-library or --without-openssl-library was given.
|
|
|
|
if test "${with_openssl_library+set}" = set; then
|
|
|
|
withval="$with_openssl_library"
|
|
|
|
openssl_libdir="$withval"
|
|
|
|
else
|
|
|
|
openssl_libdir="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cppflags_temp=$CFLAGS
|
|
|
|
libs_temp=$LIBS
|
|
|
|
|
|
|
|
if test "$openssl_incdir" != "no"; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$openssl_incdir"
|
|
|
|
fi
|
|
|
|
if test "$openssl_libdir" != "no"; then
|
|
|
|
LIBS="$LIBS -L$openssl_libdir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
for ac_hdr in openssl/ssl.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4634: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2000-11-15 14:32:18 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4639 "configure"
|
2000-11-15 14:32:18 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:4644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2000-11-15 14:32:18 +00: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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test $ac_cv_header_openssl_ssl_h = no; then
|
|
|
|
echo "Could not find openssl headers"
|
|
|
|
echo "Check to make sure you have a recent version of openssl installed"
|
|
|
|
echo "configure: warning: Could not find openssl headers" 1>&2
|
|
|
|
else
|
|
|
|
echo $ac_n "checking for CRYPTO_malloc in -lcrypto""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4676: checking for CRYPTO_malloc in -lcrypto" >&5
|
|
|
|
ac_lib_var=`echo crypto'_'CRYPTO_malloc | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
2000-11-15 14:32:18 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lcrypto $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4684 "configure"
|
2000-11-15 14:32:18 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char CRYPTO_malloc();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
CRYPTO_malloc()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2000-11-15 14:32:18 +00: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
|
|
|
|
ssl_ok=yes
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
ssl_ok=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ssl_ok" = yes; then
|
|
|
|
base_libs="$LIBS"
|
|
|
|
LIBS="$LIBS -lcrypto"
|
|
|
|
echo $ac_n "checking for ssl2_clear in -lssl""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4720: checking for ssl2_clear in -lssl" >&5
|
|
|
|
ac_lib_var=`echo ssl'_'ssl2_clear | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
2000-11-15 14:32:18 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lssl $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4728 "configure"
|
2000-11-15 14:32:18 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char ssl2_clear();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
ssl2_clear()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2000-11-15 14:32:18 +00: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
|
|
|
|
ssl_ok=yes
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
ssl_ok=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ssl_ok" = yes; then
|
|
|
|
LIBS="$base_libs -lssl -lcrypto"
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$HAVE_LIBSSL" = "0"; then
|
|
|
|
CPPFLAGS="$cppflags_temp";
|
|
|
|
LIBS="$libs_temp";
|
|
|
|
fi
|
|
|
|
if test "$HAVE_LIBCRYPTO" = "0"; then
|
|
|
|
CPPFLAGS="$cppflags_temp";
|
|
|
|
LIBS="$libs_temp";
|
|
|
|
fi
|
|
|
|
|
2000-11-18 08:54:32 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check GMP for NSDecimal
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
echo "Checking for GMP"
|
|
|
|
# Check whether --with-gmp-include or --without-gmp-include was given.
|
|
|
|
if test "${with_gmp_include+set}" = set; then
|
|
|
|
withval="$with_gmp_include"
|
|
|
|
gmp_incdir="$withval"
|
|
|
|
else
|
|
|
|
gmp_incdir="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --with-gmp-library or --without-gmp-library was given.
|
|
|
|
if test "${with_gmp_library+set}" = set; then
|
|
|
|
withval="$with_gmp_library"
|
|
|
|
gmp_libdir="$withval"
|
|
|
|
else
|
|
|
|
gmp_libdir="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
cppflags_temp=$CFLAGS
|
|
|
|
libs_temp=$LIBS
|
|
|
|
|
|
|
|
if test "$gmp_incdir" != "no"; then
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
|
|
|
|
fi
|
|
|
|
if test "$gmp_libdir" != "no"; then
|
|
|
|
LIBS="$LIBS -L$gmp_libdir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
HAVE_GMP=0
|
|
|
|
for ac_hdr in gmp.h
|
|
|
|
do
|
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4813: checking for $ac_hdr" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
2000-11-18 08:54:32 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4818 "configure"
|
2000-11-18 08:54:32 +00:00
|
|
|
#include "confdefs.h"
|
|
|
|
#include <$ac_hdr>
|
|
|
|
EOF
|
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
2001-01-29 19:39:31 +00:00
|
|
|
{ (eval echo configure:4823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
2000-11-18 08:54:32 +00: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
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
rm -rf conftest*
|
|
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
|
|
echo "$ac_t""yes" 1>&6
|
|
|
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_hdr 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if test $ac_cv_header_gmp_h = no; then
|
|
|
|
echo "Could not find gmp headers"
|
2000-12-08 19:06:00 +00:00
|
|
|
echo "Check to make sure you have gmp installed"
|
2000-11-18 08:54:32 +00:00
|
|
|
echo "configure: warning: Could not find gmp headers" 1>&2
|
|
|
|
else
|
|
|
|
echo $ac_n "checking for mpf_abs in -lgmp""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4855: checking for mpf_abs in -lgmp" >&5
|
|
|
|
ac_lib_var=`echo gmp'_'mpf_abs | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
2000-11-18 08:54:32 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lgmp $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4863 "configure"
|
2000-11-18 08:54:32 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char mpf_abs();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
mpf_abs()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2001-01-25 17:38:07 +00: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
|
|
|
|
gmp_ok=yes
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
gmp_ok=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$gmp_ok" = no; then
|
|
|
|
echo $ac_n "checking for __gmpf_abs in -lgmp""... $ac_c" 1>&6
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "configure:4897: checking for __gmpf_abs in -lgmp" >&5
|
|
|
|
ac_lib_var=`echo gmp'_'__gmpf_abs | sed 'y%./+-%__p_%'`
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
2001-01-25 17:38:07 +00:00
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-lgmp $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
#line 4905 "configure"
|
2001-01-25 17:38:07 +00: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
|
|
|
|
builtin and then its argument prototype would still apply. */
|
|
|
|
char __gmpf_abs();
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
__gmpf_abs()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
2001-01-29 19:39:31 +00:00
|
|
|
if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
2000-11-18 08:54:32 +00: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
|
|
|
|
gmp_ok=yes
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
gmp_ok=no
|
|
|
|
fi
|
|
|
|
|
2001-01-25 17:38:07 +00:00
|
|
|
fi
|
2000-11-18 08:54:32 +00:00
|
|
|
if test "$gmp_ok" = yes; then
|
|
|
|
base_libs="$LIBS"
|
|
|
|
LIBS="$LIBS -lgmp"
|
|
|
|
|
|
|
|
HAVE_GMP=1
|
2000-12-08 19:06:00 +00:00
|
|
|
else
|
|
|
|
echo "Could not find gmp library"
|
|
|
|
echo "Check to make sure you have gmp installed"
|
|
|
|
echo "configure: warning: Could not find gmp library" 1>&2
|
2000-11-18 08:54:32 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$HAVE_GMP" = "0"; then
|
|
|
|
CPPFLAGS="$cppflags_temp";
|
|
|
|
LIBS="$libs_temp";
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check for iconv support (for Unicode conversion).
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Check in the glibc library
|
|
|
|
for ac_func in iconv
|
|
|
|
do
|
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
|
|
echo "configure:4963: checking for $ac_func" >&5
|
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
|
|
else
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 4968 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
|
|
which can conflict with char $ac_func(); below. */
|
|
|
|
#include <assert.h>
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
|
|
/* 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
|
|
|
|
if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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
|
|
|
|
|
|
|
|
if test $ac_cv_func_iconv = no; then
|
|
|
|
# Check if we have a libiconv library
|
|
|
|
# Check whether --with-libiconv-library or --without-libiconv-library was given.
|
|
|
|
if test "${with_libiconv_library+set}" = set; then
|
|
|
|
withval="$with_libiconv_library"
|
|
|
|
libiconv_libdir="$withval"
|
|
|
|
else
|
|
|
|
libiconv_libdir="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
libs_temp=$LIBS
|
|
|
|
|
|
|
|
if test "$libiconv_libdir" != "no"; then
|
|
|
|
LIBS="$LIBS -L$libiconv_libdir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $ac_n "checking for main in -liconv""... $ac_c" 1>&6
|
|
|
|
echo "configure:5032: checking for main in -liconv" >&5
|
|
|
|
ac_lib_var=`echo iconv'_'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
|
|
|
|
else
|
|
|
|
ac_save_LIBS="$LIBS"
|
|
|
|
LIBS="-liconv $LIBS"
|
|
|
|
cat > conftest.$ac_ext <<EOF
|
|
|
|
#line 5040 "configure"
|
|
|
|
#include "confdefs.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
main()
|
|
|
|
; return 0; }
|
|
|
|
EOF
|
|
|
|
if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
|
|
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 iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
|
|
|
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
|
|
|
cat >> confdefs.h <<EOF
|
|
|
|
#define $ac_tr_lib 1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
LIBS="-liconv $LIBS"
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "$ac_t""no" 1>&6
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x"$av_cv_lib_iconv_main" = xyes; then
|
|
|
|
LIBS="$LIBS -liconv"
|
|
|
|
|
|
|
|
SYSTEM_DEFS="-DHAVE_ICONV $SYSTEM_DEFS"
|
|
|
|
else
|
|
|
|
LIBS="$libs_temp";
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
SYSTEM_DEFS="-DHAVE_ICONV $SYSTEM_DEFS"
|
|
|
|
fi
|
2000-11-18 08:54:32 +00:00
|
|
|
|
1999-07-22 14:17:27 +00:00
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-28 19:37:16 +00:00
|
|
|
subdirs="Source/mframe"
|
1999-01-02 18:29:44 +00:00
|
|
|
|
|
|
|
|
2000-09-13 14:19:43 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Record the version
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
if test -f "Version"; then
|
|
|
|
. Version
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
#--------------------------------------------------------------------
|
|
|
|
# Write the Makefiles
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
trap '' 1 2 15
|
|
|
|
cat > confcache <<\EOF
|
|
|
|
# This file is a shell script that caches the results of configure
|
|
|
|
# tests run on this system so they can be shared between configure
|
|
|
|
# scripts and configure runs. It is not useful on other systems.
|
|
|
|
# If it contains results you don't want to keep, you may remove or edit it.
|
|
|
|
#
|
|
|
|
# By default, configure uses ./config.cache as the cache file,
|
|
|
|
# creating it if it does not exist already. You can give configure
|
|
|
|
# the --cache-file=FILE option to use a different cache file; that is
|
|
|
|
# what configure does when it calls configure scripts in
|
|
|
|
# subdirectories, so they share the cache.
|
|
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|
|
|
# config.status only pays attention to the cache file if you give it the
|
|
|
|
# --recheck option to rerun configure.
|
|
|
|
#
|
|
|
|
EOF
|
|
|
|
# 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.
|
|
|
|
(set) 2>&1 |
|
1999-07-12 04:21:05 +00:00
|
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
1998-02-09 19:06:40 +00:00
|
|
|
*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
|
|
|
|
if test -w $cache_file; then
|
|
|
|
echo "updating cache $cache_file"
|
|
|
|
cat confcache > $cache_file
|
|
|
|
else
|
|
|
|
echo "not updating unwritable cache $cache_file"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f confcache
|
|
|
|
|
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
|
|
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
|
# Let make expand exec_prefix.
|
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
|
|
|
|
# Any assignment to VPATH causes Sun make to only execute
|
|
|
|
# the first set of double-colon rules, so remove it if not needed.
|
|
|
|
# If there is a colon in the path, we need to keep it.
|
|
|
|
if test "x$srcdir" = x.; then
|
|
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
|
|
fi
|
|
|
|
|
|
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
|
|
|
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
# Without the "./", some shells look in PATH for config.status.
|
|
|
|
: ${CONFIG_STATUS=./config.status}
|
|
|
|
|
|
|
|
echo creating $CONFIG_STATUS
|
|
|
|
rm -f $CONFIG_STATUS
|
|
|
|
cat > $CONFIG_STATUS <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
# Generated automatically by configure.
|
|
|
|
# Run this file to recreate the current configuration.
|
|
|
|
# This directory was configured as follows,
|
|
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
|
|
#
|
|
|
|
# $0 $ac_configure_args
|
|
|
|
#
|
|
|
|
# Compiler output produced by configure, useful for debugging
|
|
|
|
# configure, is in ./config.log if it exists.
|
|
|
|
|
|
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
|
|
for ac_option
|
|
|
|
do
|
|
|
|
case "\$ac_option" in
|
|
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
1998-02-09 19:06:40 +00:00
|
|
|
exit 0 ;;
|
|
|
|
-help | --help | --hel | --he | --h)
|
|
|
|
echo "\$ac_cs_usage"; exit 0 ;;
|
|
|
|
*) echo "\$ac_cs_usage"; exit 1 ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
ac_given_srcdir=$srcdir
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
trap 'rm -fr `echo "config.mak base.make Headers/gnustep/base/GSConfig.h
|
2000-09-13 14:19:43 +00:00
|
|
|
Headers/gnustep/base/preface.h Headers/gnustep/base/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
1998-02-09 19:06:40 +00:00
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
|
|
|
|
# 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
|
1999-07-12 04:21:05 +00:00
|
|
|
s%@SHELL@%$SHELL%g
|
1998-02-09 19:06:40 +00:00
|
|
|
s%@CFLAGS@%$CFLAGS%g
|
|
|
|
s%@CPPFLAGS@%$CPPFLAGS%g
|
|
|
|
s%@CXXFLAGS@%$CXXFLAGS%g
|
1999-07-12 04:21:05 +00:00
|
|
|
s%@FFLAGS@%$FFLAGS%g
|
1998-02-09 19:06:40 +00:00
|
|
|
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%@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%@CC@%$CC%g
|
|
|
|
s%@CPP@%$CPP%g
|
2000-06-27 21:11:01 +00:00
|
|
|
s%@WHOAMI@%$WHOAMI%g
|
1998-02-09 19:06:40 +00:00
|
|
|
s%@PIPE@%$PIPE%g
|
|
|
|
s%@OBJS_INSTALL@%$OBJS_INSTALL%g
|
|
|
|
s%@HEADERS_INSTALL@%$HEADERS_INSTALL%g
|
|
|
|
s%@NEXT_INCLUDES@%$NEXT_INCLUDES%g
|
1999-01-05 16:55:29 +00:00
|
|
|
s%@GS_WORDS_BIGENDIAN@%$GS_WORDS_BIGENDIAN%g
|
|
|
|
s%@GS_SINT8@%$GS_SINT8%g
|
|
|
|
s%@GS_UINT8@%$GS_UINT8%g
|
1999-01-26 11:32:02 +00:00
|
|
|
s%@ac_cv_sizeof_short@%$ac_cv_sizeof_short%g
|
|
|
|
s%@ac_cv_sizeof_int@%$ac_cv_sizeof_int%g
|
|
|
|
s%@ac_cv_sizeof_long@%$ac_cv_sizeof_long%g
|
|
|
|
s%@ac_cv_sizeof_long_long@%$ac_cv_sizeof_long_long%g
|
|
|
|
s%@ac_cv_sizeof_float@%$ac_cv_sizeof_float%g
|
|
|
|
s%@ac_cv_sizeof_double@%$ac_cv_sizeof_double%g
|
2000-08-07 22:00:31 +00:00
|
|
|
s%@ac_cv_sizeof_voidp@%$ac_cv_sizeof_voidp%g
|
1999-01-28 12:15:51 +00:00
|
|
|
s%@GS_ADDR@%$GS_ADDR%g
|
1999-01-05 16:55:29 +00:00
|
|
|
s%@GS_SINT16@%$GS_SINT16%g
|
|
|
|
s%@GS_UINT16@%$GS_UINT16%g
|
|
|
|
s%@GS_SINT32@%$GS_SINT32%g
|
|
|
|
s%@GS_UINT32@%$GS_UINT32%g
|
|
|
|
s%@GS_SINT64@%$GS_SINT64%g
|
|
|
|
s%@GS_UINT64@%$GS_UINT64%g
|
1999-01-27 12:49:49 +00:00
|
|
|
s%@GS_HAVE_I64@%$GS_HAVE_I64%g
|
|
|
|
s%@GS_SINT128@%$GS_SINT128%g
|
|
|
|
s%@GS_UINT128@%$GS_UINT128%g
|
|
|
|
s%@GS_HAVE_I128@%$GS_HAVE_I128%g
|
1999-01-05 16:55:29 +00:00
|
|
|
s%@GS_FLT32@%$GS_FLT32%g
|
|
|
|
s%@GS_FLT64@%$GS_FLT64%g
|
1999-01-26 16:24:40 +00:00
|
|
|
s%@_GSC_S_SHT@%$_GSC_S_SHT%g
|
|
|
|
s%@_GSC_S_INT@%$_GSC_S_INT%g
|
|
|
|
s%@_GSC_S_LNG@%$_GSC_S_LNG%g
|
|
|
|
s%@_GSC_S_LNG_LNG@%$_GSC_S_LNG_LNG%g
|
1998-02-09 19:06:40 +00:00
|
|
|
s%@DYNAMIC_LINKER@%$DYNAMIC_LINKER%g
|
2000-06-29 03:51:06 +00:00
|
|
|
s%@GS_PASS_ARGUMENTS@%$GS_PASS_ARGUMENTS%g
|
1999-07-22 14:17:27 +00:00
|
|
|
s%@GS_FAKE_MAIN@%$GS_FAKE_MAIN%g
|
2000-12-08 19:06:00 +00:00
|
|
|
s%@WITH_FFI@%$WITH_FFI%g
|
2001-01-05 10:12:17 +00:00
|
|
|
s%@XML_CONFIG@%$XML_CONFIG%g
|
|
|
|
s%@XML_CFLAGS@%$XML_CFLAGS%g
|
|
|
|
s%@XML_LIBS@%$XML_LIBS%g
|
2000-06-20 13:17:22 +00:00
|
|
|
s%@HAVE_LIBXML@%$HAVE_LIBXML%g
|
2000-11-18 08:54:32 +00:00
|
|
|
s%@HAVE_GMP@%$HAVE_GMP%g
|
2001-01-29 19:39:31 +00:00
|
|
|
s%@SYSTEM_DEFS@%$SYSTEM_DEFS%g
|
1998-02-09 19:06:40 +00:00
|
|
|
s%@whole_archive@%$whole_archive%g
|
|
|
|
s%@no_whole_archive@%$no_whole_archive%g
|
1999-01-02 18:29:44 +00:00
|
|
|
s%@subdirs@%$subdirs%g
|
2000-09-13 14:19:43 +00:00
|
|
|
s%@VERSION@%$VERSION%g
|
|
|
|
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
|
|
|
|
s%@MINOR_VERSION@%$MINOR_VERSION%g
|
|
|
|
s%@SUBMINOR_VERSION@%$SUBMINOR_VERSION%g
|
|
|
|
s%@GCC_VERSION@%$GCC_VERSION%g
|
1998-02-09 19:06:40 +00:00
|
|
|
|
|
|
|
CEOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
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"
|
|
|
|
else
|
|
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
|
|
fi
|
|
|
|
ac_file=`expr $ac_file + 1`
|
|
|
|
ac_beg=$ac_end
|
|
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
if test -z "$ac_sed_cmds"; then
|
|
|
|
ac_sed_cmds=cat
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
CONFIG_FILES=\${CONFIG_FILES-"config.mak base.make Headers/gnustep/base/GSConfig.h
|
2000-09-13 14:19:43 +00:00
|
|
|
Headers/gnustep/base/preface.h"}
|
1998-02-09 19:06:40 +00:00
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
|
case "$ac_file" in
|
|
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
|
*) ac_file_in="${ac_file}.in" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
|
|
|
|
|
|
# Remove last slash and all that follows it. Not all systems have dirname.
|
|
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
|
|
# The file is in a subdirectory.
|
|
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
|
|
# A "../" for each directory in $ac_dir_suffix.
|
|
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
|
|
else
|
|
|
|
ac_dir_suffix= ac_dots=
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$ac_given_srcdir" in
|
|
|
|
.) srcdir=.
|
|
|
|
if test -z "$ac_dots"; then top_srcdir=.
|
|
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
|
|
*) # Relative path.
|
|
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
|
|
fi; done
|
|
|
|
rm -f conftest.s*
|
|
|
|
|
|
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
|
|
#
|
|
|
|
# ac_d sets the value in "#define NAME VALUE" lines.
|
|
|
|
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
|
|
ac_dC='\3'
|
|
|
|
ac_dD='%g'
|
|
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
|
ac_uB='\([ ]\)%\1#\2define\3'
|
|
|
|
ac_uC=' '
|
|
|
|
ac_uD='\4%g'
|
|
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
|
|
ac_eB='$%\1#\2define\3'
|
|
|
|
ac_eC=' '
|
|
|
|
ac_eD='%g'
|
|
|
|
|
|
|
|
if test "${CONFIG_HEADERS+set}" != set; then
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
1999-07-09 02:18:50 +00:00
|
|
|
CONFIG_HEADERS="Headers/gnustep/base/config.h"
|
1998-02-09 19:06:40 +00:00
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
fi
|
|
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
|
|
case "$ac_file" in
|
|
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
|
|
*) ac_file_in="${ac_file}.in" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo creating $ac_file
|
|
|
|
|
|
|
|
rm -f conftest.frag conftest.in conftest.out
|
|
|
|
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
|
|
|
|
|
|
|
|
# This sed command replaces #undef with comments. This is necessary, for
|
|
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
|
|
# on some systems where configure will not decide to define it.
|
|
|
|
cat >> conftest.vals <<\EOF
|
|
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Break up conftest.vals because some shells have a limit on
|
|
|
|
# the size of here documents, and old seds have small limits too.
|
|
|
|
|
|
|
|
rm -f conftest.tail
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
ac_lines=`grep -c . conftest.vals`
|
|
|
|
# grep -c gives empty output for an empty file on some AIX systems.
|
|
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
|
|
# Write a limited-size here document to conftest.frag.
|
|
|
|
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
|
|
echo 'CEOF
|
|
|
|
sed -f conftest.frag conftest.in > conftest.out
|
|
|
|
rm -f conftest.in
|
|
|
|
mv conftest.out conftest.in
|
|
|
|
' >> $CONFIG_STATUS
|
|
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
|
|
rm -f conftest.vals
|
|
|
|
mv conftest.tail conftest.vals
|
|
|
|
done
|
|
|
|
rm -f conftest.vals
|
|
|
|
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
rm -f conftest.frag conftest.h
|
|
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
|
|
cat conftest.in >> conftest.h
|
|
|
|
rm -f conftest.in
|
|
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
|
|
echo "$ac_file is unchanged"
|
|
|
|
rm -f conftest.h
|
|
|
|
else
|
|
|
|
# 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"
|
|
|
|
fi
|
|
|
|
rm -f $ac_file
|
|
|
|
mv conftest.h $ac_file
|
|
|
|
fi
|
|
|
|
fi; done
|
|
|
|
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<EOF
|
|
|
|
|
|
|
|
EOF
|
|
|
|
cat >> $CONFIG_STATUS <<\EOF
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
EOF
|
|
|
|
chmod +x $CONFIG_STATUS
|
|
|
|
rm -fr confdefs* $ac_clean_files
|
2001-01-29 19:39:31 +00:00
|
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
1998-02-09 19:06:40 +00:00
|
|
|
|
1999-01-02 18:29:44 +00:00
|
|
|
if test "$no_recursion" != yes; then
|
|
|
|
|
|
|
|
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
|
|
|
ac_sub_configure_args=
|
|
|
|
ac_prev=
|
|
|
|
for ac_arg in $ac_configure_args; do
|
|
|
|
if test -n "$ac_prev"; then
|
|
|
|
ac_prev=
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
case "$ac_arg" in
|
|
|
|
-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=*)
|
|
|
|
;;
|
|
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
|
|
ac_prev=srcdir ;;
|
|
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
|
|
;;
|
|
|
|
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
1999-01-28 19:37:16 +00:00
|
|
|
for ac_config_dir in Source/mframe; do
|
1999-01-02 18:29:44 +00:00
|
|
|
|
|
|
|
# Do not complain, so a configure script can configure whichever
|
|
|
|
# parts of a large source tree are present.
|
|
|
|
if test ! -d $srcdir/$ac_config_dir; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo configuring in $ac_config_dir
|
|
|
|
|
|
|
|
case "$srcdir" in
|
|
|
|
.) ;;
|
|
|
|
*)
|
|
|
|
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
|
|
|
|
else
|
|
|
|
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
ac_popdir=`pwd`
|
|
|
|
cd $ac_config_dir
|
|
|
|
|
|
|
|
# A "../" for each directory in /$ac_config_dir.
|
|
|
|
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
|
|
|
|
|
|
|
case "$srcdir" in
|
|
|
|
.) # No --srcdir option. We are building in place.
|
|
|
|
ac_sub_srcdir=$srcdir ;;
|
|
|
|
/*) # Absolute path.
|
|
|
|
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
|
|
|
*) # Relative path.
|
|
|
|
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Check for guested configure; otherwise get Cygnus style configure.
|
|
|
|
if test -f $ac_sub_srcdir/configure; then
|
2001-01-29 19:39:31 +00:00
|
|
|
ac_sub_configure=$ac_sub_srcdir/configure
|
1999-01-02 18:29:44 +00:00
|
|
|
elif test -f $ac_sub_srcdir/configure.in; then
|
|
|
|
ac_sub_configure=$ac_configure
|
|
|
|
else
|
|
|
|
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
|
|
|
|
ac_sub_configure=
|
|
|
|
fi
|
|
|
|
|
|
|
|
# The recursion is here.
|
|
|
|
if test -n "$ac_sub_configure"; then
|
|
|
|
|
|
|
|
# Make the cache file name correct relative to the subdirectory.
|
|
|
|
case "$cache_file" in
|
|
|
|
/*) ac_sub_cache_file=$cache_file ;;
|
|
|
|
*) # Relative path.
|
|
|
|
ac_sub_cache_file="$ac_dots$cache_file" ;;
|
|
|
|
esac
|
|
|
|
|
2001-01-29 19:39:31 +00:00
|
|
|
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
|
1999-01-02 18:29:44 +00:00
|
|
|
# The eval makes quoting arguments work.
|
2001-01-29 19:39:31 +00:00
|
|
|
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
|
1999-01-02 18:29:44 +00:00
|
|
|
then :
|
|
|
|
else
|
|
|
|
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $ac_popdir
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
1998-02-09 19:06:40 +00:00
|
|
|
|