1998-02-09 19:06:40 +00:00
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
2006-01-11 09:32:13 +00:00
# Generated by GNU Autoconf 2.59.
1998-02-09 19:06:40 +00:00
#
2006-01-11 09:32:13 +00:00
# Copyright (C) 2003 Free Software Foundation, Inc.
1998-02-09 19:06:40 +00:00
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
2002-05-02 15:17:54 +00:00
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2003-09-22 03:00:21 +00:00
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2002-05-02 15:17:54 +00:00
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
2006-01-11 09:32:13 +00:00
DUALCASE=1; export DUALCASE # for MKS sh
2002-05-02 15:17:54 +00:00
# Support unset when possible.
2006-01-11 09:32:13 +00:00
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
as_unset=unset
else
as_unset=false
fi
2003-09-22 03:00:21 +00:00
# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
2006-01-11 09:32:13 +00:00
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2003-09-22 03:00:21 +00:00
eval $as_var=C; export $as_var
else
$as_unset $as_var
fi
done
# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
2002-05-02 15:17:54 +00:00
# Name of the executable.
2003-09-22 03:00:21 +00:00
as_me=`$as_basename "$0" ||
2002-05-02 15:17:54 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
. : '\(.\)' 2>/dev/null ||
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
2003-09-22 03:00:21 +00:00
2002-05-02 15:17:54 +00:00
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
2003-09-22 03:00:21 +00:00
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
2003-09-22 03:00:21 +00:00
rm -f conf$$.sh
2002-05-02 15:17:54 +00:00
fi
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" || {
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for as_base in sh bash ksh sh5; do
case $as_dir in
/*)
if ("$as_dir/$as_base" -c '
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2003-09-22 03:00:21 +00:00
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2002-05-02 15:17:54 +00:00
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
fi;;
esac
done
done
;;
esac
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '=' <$as_myself |
sed '
N
s,$,-,
: loop
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
t loop
s,-$,,
s,^['$as_cr_digits']*\n,,
' >$as_me.lineno &&
chmod +x $as_me.lineno ||
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
. ./$as_me.lineno
# Exit status is that of the last command.
exit
}
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conf$$.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file
2003-09-22 03:00:21 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
2006-01-11 09:32:13 +00:00
test -d ./-p && rmdir ./-p
2003-09-22 03:00:21 +00:00
as_mkdir_p=false
fi
2002-05-02 15:17:54 +00:00
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
2006-01-11 09:32:13 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-05-02 15:17:54 +00:00
# Sed expression to map a string onto a valid variable name.
2006-01-11 09:32:13 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2002-05-02 15:17:54 +00:00
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" $as_nl"
# CDPATH.
2003-09-22 03:00:21 +00:00
$as_unset CDPATH
2002-05-02 15:17:54 +00:00
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
exec 6>&1
#
# Initializations.
#
1998-02-09 19:06:40 +00:00
ac_default_prefix=/usr/local
2003-09-22 03:00:21 +00:00
ac_config_libobj_dir=.
2002-05-02 15:17:54 +00:00
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
ac_unique_file="Source/NSArray.m"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif"
ac_subdirs_all="$ac_subdirs_all Source/mframe SSL"
2006-01-11 09:32:13 +00:00
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GNUSTEP_CONFIG_FILE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP WHOAMI EGREP GS_WORDS_BIGENDIAN GS_SINT8 GS_UINT8 ac_cv_sizeof_short ac_cv_sizeof_int ac_cv_sizeof_long ac_cv_sizeof_long_long ac_cv_sizeof_float ac_cv_sizeof_double ac_cv_sizeof_voidp GS_SADDR GS_UADDR GS_SINT16 GS_UINT16 GS_SINT32 GS_UINT32 GS_SINT64 GS_UINT64 GS_HAVE_I64 GS_SINT128 GS_UINT128 GS_HAVE_I128 GS_FLT32 GS_FLT64 _GSC_S_SHT _GSC_S_INT _GSC_S_LNG _GSC_S_LNG_LNG DYNAMIC_LINKER NX_CONST_STRING_OBJCFLAGS NX_CONST_STRING_CLASS HAVE_PTHREAD_H HAVE_PTS_STREAM_MODULES INCLUDE_STDINT DEFINE_INT8_T DEFINE_UINT8_T DEFINE_INT16_T DEFINE_UINT16_T DEFINE_INT32_T DEFINE_UINT32_T DEFINE_INT64_T DEFINE_UINT64_T DEFINE_INTPTR_T DEFINE_UINTPTR_T USE_ZLIB GS_PASS_ARGUMENTS GS_FAKE_MAIN WITH_FFI XML2_CONFIG XML_CONFIG XML_CFLAGS XML_LIBS HAVE_LIBXSLT HAVE_LIBXML USE_GMP INCLUDE_FLAGS LDIR_FLAGS subdirs VERSION MAJOR_VERSION MINOR_VERSION SUBMINOR_VERSION GCC_VERSION LIBOBJS LTLIBOBJS'
2003-09-22 03:00:21 +00:00
ac_subst_files=''
1998-02-09 19:06:40 +00:00
# Initialize some variables set by options.
2002-05-02 15:17:54 +00:00
ac_init_help=
ac_init_version=false
1998-02-09 19:06:40 +00:00
# The variables have the same names as the options, with
# dashes changed to underlines.
2002-05-02 15:17:54 +00:00
cache_file=/dev/null
1998-02-09 19:06:40 +00:00
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
2002-05-02 15:17:54 +00:00
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
1998-02-09 19:06:40 +00:00
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'
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
2002-05-02 15:17:54 +00:00
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1998-02-09 19:06:40 +00:00
# Accept the important Cygnus configure options, so we can diagnose typos.
2002-05-02 15:17:54 +00:00
case $ac_option in
1998-02-09 19:06:40 +00:00
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2002-05-02 15:17:54 +00:00
bindir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-build | --build | --buil | --bui | --bu)
2002-05-02 15:17:54 +00:00
ac_prev=build_alias ;;
1998-02-09 19:06:40 +00:00
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
2002-05-02 15:17:54 +00:00
build_alias=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2002-05-02 15:17:54 +00:00
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
1998-02-09 19:06:40 +00:00
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
2002-05-02 15:17:54 +00:00
datadir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-disable-* | --disable-*)
2002-05-02 15:17:54 +00:00
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2002-05-02 15:17:54 +00:00
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
eval "enable_$ac_feature=no" ;;
1998-02-09 19:06:40 +00:00
-enable-* | --enable-*)
2002-05-02 15:17:54 +00:00
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2002-05-02 15:17:54 +00:00
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1998-02-09 19:06:40 +00:00
*) ac_optarg=yes ;;
esac
2002-05-02 15:17:54 +00:00
eval "enable_$ac_feature='$ac_optarg'" ;;
1998-02-09 19:06:40 +00:00
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
2002-05-02 15:17:54 +00:00
exec_prefix=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
2002-05-02 15:17:54 +00:00
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
1998-02-09 19:06:40 +00:00
-host | --host | --hos | --ho)
2002-05-02 15:17:54 +00:00
ac_prev=host_alias ;;
1998-02-09 19:06:40 +00:00
-host=* | --host=* | --hos=* | --ho=*)
2002-05-02 15:17:54 +00:00
host_alias=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
2002-05-02 15:17:54 +00:00
includedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2002-05-02 15:17:54 +00:00
infodir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
2002-05-02 15:17:54 +00:00
libdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
2002-05-02 15:17:54 +00:00
libexecdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
2002-05-02 15:17:54 +00:00
localstatedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2002-05-02 15:17:54 +00:00
mandir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
2002-05-02 15:17:54 +00:00
| --no-cr | --no-c | -n)
1998-02-09 19:06:40 +00:00
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=*)
2002-05-02 15:17:54 +00:00
oldincludedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2002-05-02 15:17:54 +00:00
prefix=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2002-05-02 15:17:54 +00:00
program_prefix=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2002-05-02 15:17:54 +00:00
program_suffix=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
2002-05-02 15:17:54 +00:00
program_transform_name=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
2002-05-02 15:17:54 +00:00
sbindir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
2002-05-02 15:17:54 +00:00
sharedstatedir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
2002-05-02 15:17:54 +00:00
site=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2002-05-02 15:17:54 +00:00
srcdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2002-05-02 15:17:54 +00:00
sysconfdir=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-target | --target | --targe | --targ | --tar | --ta | --t)
2002-05-02 15:17:54 +00:00
ac_prev=target_alias ;;
1998-02-09 19:06:40 +00:00
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2002-05-02 15:17:54 +00:00
target_alias=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
2002-05-02 15:17:54 +00:00
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
1998-02-09 19:06:40 +00:00
-with-* | --with-*)
2002-05-02 15:17:54 +00:00
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2002-05-02 15:17:54 +00:00
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
ac_package=`echo $ac_package| sed 's/-/_/g'`
2002-05-02 15:17:54 +00:00
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1998-02-09 19:06:40 +00:00
*) ac_optarg=yes ;;
esac
2002-05-02 15:17:54 +00:00
eval "with_$ac_package='$ac_optarg'" ;;
1998-02-09 19:06:40 +00:00
-without-* | --without-*)
2002-05-02 15:17:54 +00:00
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1998-02-09 19:06:40 +00:00
# Reject names that are not valid shell variable names.
2002-05-02 15:17:54 +00:00
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package | sed 's/-/_/g'`
eval "with_$ac_package=no" ;;
1998-02-09 19:06:40 +00:00
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2002-05-02 15:17:54 +00:00
x_includes=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2002-05-02 15:17:54 +00:00
x_libraries=$ac_optarg ;;
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
;;
2002-05-02 15:17:54 +00:00
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
{ (exit 1); exit 1; }; }
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
eval "$ac_envvar='$ac_optarg'"
export $ac_envvar ;;
1998-02-09 19:06:40 +00:00
*)
2002-05-02 15:17:54 +00:00
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1998-02-09 19:06:40 +00:00
;;
esac
done
if test -n "$ac_prev"; then
2002-05-02 15:17:54 +00:00
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ echo "$as_me: error: missing argument to $ac_option" >&2
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; };;
esac
done
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
2006-01-11 09:32:13 +00:00
localstatedir libdir includedir oldincludedir infodir mandir
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* ) ;;
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; };;
1998-02-09 19:06:40 +00:00
esac
done
2002-05-02 15:17:54 +00:00
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
test "$silent" = yes && exec 6>/dev/null
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.
2002-05-02 15:17:54 +00:00
ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-01-11 09:32:13 +00:00
X"$0" : 'X\(//\)[^/]' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
2002-05-02 15:17:54 +00:00
echo X"$0" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
1998-02-09 19:06:40 +00:00
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
2002-05-02 15:17:54 +00:00
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
fi
fi
2003-09-22 03:00:21 +00:00
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
{ (exit 1); exit 1; }; }
2002-05-02 15:17:54 +00:00
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# 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 <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
_ACEOF
cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
2006-01-11 09:32:13 +00:00
[$ac_default_prefix]
2002-05-02 15:17:54 +00:00
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2006-01-11 09:32:13 +00:00
[PREFIX]
2002-05-02 15:17:54 +00:00
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
_ACEOF
cat <<\_ACEOF
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
_ACEOF
fi
if test -n "$ac_init_help"; then
cat <<\_ACEOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2005-12-05 19:37:33 +00:00
--enable-environment-config-file
Enable use of the GNUSTEP_CONFIG_FILE
environment variable to specify/override
the location of the GNUstep config file
at runtime. This option is occasionally
useful for development/debugging or for
providing a relocatable distribution package
for platforms where the path to the base
library can't be determined at runtime
and the leading './' in the config file name
is therefore not supported.
2006-01-11 09:32:13 +00:00
Normally this should be left disabled.
2005-12-05 19:37:33 +00:00
--disable-importing-config-file
Disable importing of an existing GNUstep config
file and use inbuilt defaults instead.
2002-05-02 15:17:54 +00:00
--enable-procfs Use /proc filesystem (default)
2005-12-05 19:37:33 +00:00
--enable-procfs-psinfo Use /proc/%pid% to get info
2002-05-02 15:17:54 +00:00
--enable-pass-arguments Force user main call to NSProcessInfo initialize
--enable-fake-main Force redefine of user main function
--enable-libffi Enable use of libffi library
--enable-ffcall Enable use of ffcall library
2003-03-28 20:03:06 +00:00
--disable-do Compile even if DO-dependencies are not met
2004-01-25 19:57:10 +00:00
--disable-xml Compile even if XML-dependencies are not met
2004-10-26 19:08:17 +00:00
--disable-xmltest Do not try to compile and run a test XML program
--disable-xslt Compile even if XSLT-dependency is not met
--disable-openssl Disable support for openssl in URL classes
2002-05-02 15:17:54 +00:00
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2005-12-05 19:37:33 +00:00
--with-config-file=PATH Specify path to the GNUstep config file.
2006-01-08 12:59:11 +00:00
This is the location to be used by the base
2006-01-11 09:32:13 +00:00
library to locate oath information at
application or tool runtime.
If unspecified, this uses the same value as
the GNUstep make package on unix-like systems,
but uses ./GNUstep.conf on mingw so that
it is relative to the location of the
base library DLL.
2005-12-05 19:37:33 +00:00
If a leading './' is specified, the path
is taken to be relative to the base library
linked runtime, not all operating systems
can support this, so on some platforms you
may need --enable-environment-config-file.
If a trailing '/' is specified, the path is
used for locating domains but no GNUstep
config file is read at runtime.
--with-defaults-config=PATH Specify path to a GNUstep config file to be
imported at configure time (now) and used to
provide default values for the base library
to use at runtime if no GNUstep config file
is found at runtime. If this is not specified
2006-01-08 12:59:11 +00:00
then the path from --with-config-file or from
the gnustep-make pacakage is used.
2005-12-05 19:37:33 +00:00
--with-include-flags=FLAGS Specify all include flags at once
--with-library-flags=FLAGS Specify all library flags at once
--with-ffi-include=PATH Include path for ffi (ffcall/libffi) headers
--with-ffi-library=PATH Library path for ffi (ffcall/libffi) libs
--with-libiconv-library=PATH Library path for libiconv libraries
2002-05-02 15:17:54 +00:00
--with-xml-prefix=PFX Prefix where libxml is installed (optional)
--with-gmp-include=PATH include path for gmp headers
--with-gmp-library=PATH library path for gmp libraries
2004-10-26 19:08:17 +00:00
--with-openssl-include=PATH include path for openssl headers
--with-openssl-library=PATH library path for openssl libraries
2002-05-02 15:17:54 +00:00
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
_ACEOF
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
test -d $ac_dir || continue
ac_builddir=.
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
*) # Relative path.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
2006-01-11 09:32:13 +00:00
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
2002-05-02 15:17:54 +00:00
cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
$SHELL $ac_srcdir/configure.gnu --help=recursive
elif test -f $ac_srcdir/configure; then
echo
$SHELL $ac_srcdir/configure --help=recursive
elif test -f $ac_srcdir/configure.ac ||
2006-01-11 09:32:13 +00:00
test -f $ac_srcdir/configure.in; then
2002-05-02 15:17:54 +00:00
echo
$ac_configure --help
else
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi
2006-01-11 09:32:13 +00:00
cd "$ac_popdir"
2002-05-02 15:17:54 +00:00
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
2006-01-11 09:32:13 +00:00
Copyright (C) 2003 Free Software Foundation, Inc.
2002-05-02 15:17:54 +00:00
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
2006-01-11 09:32:13 +00:00
generated by GNU Autoconf 2.59. Invocation command line was
2002-05-02 15:17:54 +00:00
$ $0 $@
_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
_ASUNAME
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
echo "PATH: $as_dir"
done
} >&5
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
2003-09-22 03:00:21 +00:00
# Strip out --silent because we don't want to record it for future runs.
2002-05-02 15:17:54 +00:00
# Also quote any args containing shell meta-characters.
2003-09-22 03:00:21 +00:00
# Make two passes to allow for proper duplicate-argument suppression.
2002-05-02 15:17:54 +00:00
ac_configure_args=
2003-09-22 03:00:21 +00:00
ac_configure_args0=
ac_configure_args1=
2002-05-02 15:17:54 +00:00
ac_sep=
2003-09-22 03:00:21 +00:00
ac_must_keep_next=false
for ac_pass in 1 2
2002-05-02 15:17:54 +00:00
do
2003-09-22 03:00:21 +00:00
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
case $ac_pass in
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
2006-01-11 09:32:13 +00:00
ac_must_keep_next=false # Got value, back to normal.
2003-09-22 03:00:21 +00:00
else
2006-01-11 09:32:13 +00:00
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
2003-09-22 03:00:21 +00:00
fi
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
# Get rid of the leading space.
ac_sep=" "
;;
esac
done
2002-05-02 15:17:54 +00:00
done
2003-09-22 03:00:21 +00:00
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2002-05-02 15:17:54 +00:00
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
2003-09-22 03:00:21 +00:00
2002-05-02 15:17:54 +00:00
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
{
(set) 2>&1 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
*ac_space=\ *)
sed -n \
2006-01-11 09:32:13 +00:00
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
2002-05-02 15:17:54 +00:00
;;
*)
sed -n \
2006-01-11 09:32:13 +00:00
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2002-05-02 15:17:54 +00:00
;;
esac;
}
echo
2003-09-22 03:00:21 +00:00
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
eval ac_val=$`echo $ac_var`
echo "$ac_var='"'"'$ac_val'"'"'"
done | sort
echo
if test -n "$ac_subst_files"; then
cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
echo
for ac_var in $ac_subst_files
do
eval ac_val=$`echo $ac_var`
2006-01-11 09:32:13 +00:00
echo "$ac_var='"'"'$ac_val'"'"'"
2003-09-22 03:00:21 +00:00
done | sort
echo
fi
2002-05-02 15:17:54 +00:00
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
2003-09-22 03:00:21 +00:00
sed "/^$/d" confdefs.h | sort
2002-05-02 15:17:54 +00:00
echo
fi
test "$ac_signal" != 0 &&
echo "$as_me: caught signal $ac_signal"
echo "$as_me: exit $exit_status"
} >&5
2006-01-11 09:32:13 +00:00
rm -f core *.core &&
2002-05-02 15:17:54 +00:00
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
# 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
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
# Let the site file select an alternate cache file if it wants to.
1998-02-09 19:06:40 +00:00
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
1998-02-09 19:06:40 +00:00
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
2002-05-02 15:17:54 +00:00
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
2006-01-11 09:32:13 +00:00
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
2002-05-02 15:17:54 +00:00
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
eval ac_new_val="\$ac_env_${ac_var}_value"
case $ac_old_set,$ac_new_set in
set,)
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: former value: $ac_old_val" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: current value: $ac_new_val" >&2;}
2006-01-11 09:32:13 +00:00
ac_cache_corrupted=:
2002-05-02 15:17:54 +00:00
fi;;
esac
# Pass precious variables to config.status.
if test "$ac_new_set" = set; then
case $ac_new_val in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
esac
fi
done
if $ac_cache_corrupted; then
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
2002-05-02 15:17:54 +00:00
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998-02-09 19:06:40 +00:00
2003-09-22 03:00:21 +00:00
1998-02-09 19:06:40 +00:00
2005-10-27 12:00:38 +00:00
if test -z "$GNUSTEP_MAKEFILES"; then
2005-10-28 11:11:58 +00:00
{ { echo "$as_me:$LINENO: error: You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" >&5
echo "$as_me: error: You must have the gnustep-make package installed and set up the GNUSTEP_MAKEFILES environment variable to contain the path to the makefiles directory before configuring!" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
2001-05-04 21:53:44 +00:00
fi
2006-01-08 12:59:11 +00:00
#--------------------------------------------------------------------
# Use config.guess, config.sub and install-sh provided by gnustep-make
#--------------------------------------------------------------------
ac_aux_dir=
for ac_dir in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES; 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
elif test -f $ac_dir/shtool; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
if test -z "$ac_aux_dir"; then
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&5
echo "$as_me: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
#--------------------------------------------------------------------
# Use a .h file with #define's, instead of -D command-line switches
#--------------------------------------------------------------------
ac_config_headers="$ac_config_headers Headers/Additions/GNUstepBase/config.h"
#--------------------------------------------------------------------
# Determine the host, build, and target systems
#--------------------------------------------------------------------
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
{ (exit 1); exit 1; }; }
echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
{ (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$as_me:$LINENO: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
2005-10-27 12:00:38 +00:00
#---------------------------------------------------------------------
# Location of the GNUstep.conf config file (--with-config-file)
#---------------------------------------------------------------------
echo "$as_me:$LINENO: checking for GNUstep configuration file to use" >&5
echo $ECHO_N "checking for GNUstep configuration file to use... $ECHO_C" >&6
2006-01-08 12:59:11 +00:00
GNUSTEP_MAKE_CONFIG=`grep '^GNUSTEP_CONFIG_FILE *=' $GNUSTEP_MAKEFILES/config.make | sed -e 's/GNUSTEP_CONFIG_FILE *= *\(.*\)/\1/'`
2005-10-27 12:00:38 +00:00
# Check whether --with-config-file or --without-config-file was given.
if test "${with_config_file+set}" = set; then
withval="$with_config_file"
GNUSTEP_CONFIG_FILE="$withval"
else
if test "$GNUSTEP_CONFIG_FILE" = ""; then
2005-12-06 05:50:25 +00:00
case "$target_os" in
mingw*)
GNUSTEP_CONFIG_FILE=./GNUstep.conf ;;
*)
2006-01-08 12:59:11 +00:00
GNUSTEP_CONFIG_FILE="$GNUSTEP_MAKE_CONFIG" ;;
2005-12-06 05:50:25 +00:00
esac
2005-10-27 12:00:38 +00:00
fi
fi;
echo "$as_me:$LINENO: result: $GNUSTEP_CONFIG_FILE" >&5
echo "${ECHO_T}$GNUSTEP_CONFIG_FILE" >&6
2005-12-05 13:08:10 +00:00
#-----------------------------------------------------------------
2005-10-28 22:21:36 +00:00
# Whether the GNUstep.conf file path can be set in the environment
2005-12-05 13:08:10 +00:00
#-----------------------------------------------------------------
2005-10-28 22:21:36 +00:00
echo "$as_me:$LINENO: checking whether the GNUstep.conf file path can be set in the environment" >&5
echo $ECHO_N "checking whether the GNUstep.conf file path can be set in the environment... $ECHO_C" >&6
# Check whether --enable-environment-config-file or --disable-environment-config-file was given.
if test "${enable_environment_config_file+set}" = set; then
enableval="$enable_environment_config_file"
ac_cv_environment_config_file=$enableval
else
2005-12-05 13:08:10 +00:00
ac_cv_environment_config_file="no"
2005-10-28 22:21:36 +00:00
fi;
2005-12-02 07:18:23 +00:00
if test "$ac_cv_environment_config_file" = "yes"; then
2005-10-28 22:21:36 +00:00
cat >>confdefs.h <<\_ACEOF
#define OPTION_NO_ENVIRONMENT 0
_ACEOF
2005-12-02 07:18:23 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2005-10-28 22:21:36 +00:00
else
cat >>confdefs.h <<\_ACEOF
#define OPTION_NO_ENVIRONMENT 1
_ACEOF
2005-12-02 07:18:23 +00:00
echo "$as_me:$LINENO: result: no: disabled from the command-line" >&5
echo "${ECHO_T}no: disabled from the command-line" >&6
2005-10-28 22:21:36 +00:00
fi
2005-10-27 12:00:38 +00:00
#
# Set 'standard' defaults for values from configuration file.
2006-01-11 09:32:13 +00:00
#
2006-01-08 12:59:11 +00:00
# On mingw, we assume paths relative to the location of the base library -
2006-01-11 09:32:13 +00:00
# Normally that DLL is stored in the Tools directory of the System domain,
# so we assume a standard layout relative to that. For standalone deployment
# you may want everything in the same directory, in which case the paths for
# the domains relative to the DLL need to be modified.
#
2005-12-06 05:50:25 +00:00
# On unix we assume a standard layout for both development and distribution.
2005-10-27 12:00:38 +00:00
#
2005-12-05 19:37:33 +00:00
case "$target_os" in
2005-12-06 05:50:25 +00:00
mingw*)
2006-01-08 12:59:11 +00:00
GNUSTEP_SYSTEM_ROOT=./..\\..\\System
GNUSTEP_LOCAL_ROOT=./..\\..\\Local
GNUSTEP_NETWORK_ROOT=./..\\..\\Local
2005-12-06 05:50:25 +00:00
GNUSTEP_USER_DIR=GNUstep
GNUSTEP_USER_DEFAULTS_DIR=GNUstep\\Defaults
GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
;;
*)
GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
GNUSTEP_NETWORK_ROOT=/usr/GNUstep/Local
GNUSTEP_USER_DIR=GNUstep
GNUSTEP_USER_DEFAULTS_DIR=GNUstep/Defaults
GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
;;
2005-12-05 19:37:33 +00:00
esac
2005-10-27 12:00:38 +00:00
#---------------------------------------------------------------------
# Now read/import the existing configuration file, if any
#---------------------------------------------------------------------
# Reading/importing an existing configuration file is good as it means
# the built-in default paths in the code will match those of your
# installation (or of the config file you specify).
# It can be annoying in certain cases though; this option lets you
# turn it off
echo "$as_me:$LINENO: checking if we should import an existing configuration file" >&5
echo $ECHO_N "checking if we should import an existing configuration file... $ECHO_C" >&6
# Check whether --enable-importing-config-file or --disable-importing-config-file was given.
if test "${enable_importing_config_file+set}" = set; then
enableval="$enable_importing_config_file"
ac_cv_importing_config_file=$enableval
else
ac_cv_importing_config_file="yes"
fi;
if test "$ac_cv_importing_config_file" = "no"; then
echo "$as_me:$LINENO: result: no: disabled from the command-line" >&5
echo "${ECHO_T}no: disabled from the command-line" >&6
else
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi
if test "$ac_cv_importing_config_file" = "yes" ;
then
echo "$as_me:$LINENO: checking for default GNUstep configuration file to use" >&5
echo $ECHO_N "checking for default GNUstep configuration file to use... $ECHO_C" >&6
# Check whether --with-default-config or --without-default-config was given.
if test "${with_default_config+set}" = set; then
withval="$with_default_config"
GNUSTEP_DEFAULT_CONFIG="$withval"
else
if test "$GNUSTEP_DEFAULT_CONFIG" = ""; then
2006-01-08 12:59:11 +00:00
if test -f "$GNUSTEP_CONFIG_FILE"; then
GNUSTEP_DEFAULT_CONFIG="$GNUSTEP_CONFIG_FILE"
fi
2005-10-27 12:00:38 +00:00
fi
fi;
echo "$as_me:$LINENO: result: $GNUSTEP_DEFAULT_CONFIG" >&5
echo "${ECHO_T}$GNUSTEP_DEFAULT_CONFIG" >&6
#
2006-01-08 12:59:11 +00:00
# Only try importing if the default config file has been specified.
2005-10-27 12:00:38 +00:00
#
2006-01-08 12:59:11 +00:00
if test "$GNUSTEP_DEFAULT_CONFIG" != ""; then
#
# Use the default config file to override standard values.
#
if test ! -f "$GNUSTEP_DEFAULT_CONFIG"; then
echo "$as_me:$LINENO: result: fail: file \"$GNUSTEP_DEFAULT_CONFIG\" does not exist" >&5
2005-10-27 12:00:38 +00:00
echo "${ECHO_T}fail: file \"$GNUSTEP_DEFAULT_CONFIG\" does not exist" >&6
2006-01-08 12:59:11 +00:00
{ echo "$as_me:$LINENO: Please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&5
2005-10-27 12:00:38 +00:00
echo "$as_me: Please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&6;}
2006-01-08 12:59:11 +00:00
else
echo "$as_me:$LINENO: result: trying to import \"$GNUSTEP_DEFAULT_CONFIG\"" >&5
2005-10-27 12:00:38 +00:00
echo "${ECHO_T}trying to import \"$GNUSTEP_DEFAULT_CONFIG\"" >&6
2006-01-08 12:59:11 +00:00
{ echo "$as_me:$LINENO: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&5
2005-10-27 12:00:38 +00:00
echo "$as_me: If this fails, please run configure again with the --disable-importing-config-file option or specifying an alternative file using the --with-default-config= option" >&6;}
2006-01-08 12:59:11 +00:00
. "$GNUSTEP_DEFAULT_CONFIG"
fi
2005-10-27 12:00:38 +00:00
fi
fi
#
# Set the default configuration file values in config.h to be hard-coded
# into NSPathUtilities.m
#
2005-11-04 15:56:28 +00:00
GNUSTEP_SYSTEM_ROOT=`echo $GNUSTEP_SYSTEM_ROOT|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_SYSTEM_ROOT "$GNUSTEP_SYSTEM_ROOT"
_ACEOF
2005-11-04 15:56:28 +00:00
GNUSTEP_NETWORK_ROOT=`echo $GNUSTEP_NETWORK_ROOT|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_NETWORK_ROOT "$GNUSTEP_NETWORK_ROOT"
_ACEOF
2005-11-04 15:56:28 +00:00
GNUSTEP_LOCAL_ROOT=`echo $GNUSTEP_LOCAL_ROOT|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_LOCAL_ROOT "$GNUSTEP_LOCAL_ROOT"
_ACEOF
2005-11-04 15:56:28 +00:00
GNUSTEP_USER_DIR=`echo $GNUSTEP_USER_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_USER_DIR "$GNUSTEP_USER_DIR"
_ACEOF
2005-11-04 15:56:28 +00:00
GNUSTEP_USER_DEFAULTS_DIR=`echo $GNUSTEP_USER_DEFAULTS_DIR|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_USER_DEFAULTS_DIR "$GNUSTEP_USER_DEFAULTS_DIR"
_ACEOF
2005-11-04 15:56:28 +00:00
GNUSTEP_USER_CONFIG_FILE=`echo $GNUSTEP_USER_CONFIG_FILE|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_USER_CONFIG_FILE "$GNUSTEP_USER_CONFIG_FILE"
_ACEOF
2006-01-08 12:59:11 +00:00
GNUSTEP_CONFIG_FILE=`echo $GNUSTEP_CONFIG_FILE|sed -e 's/\\\\/\\\\\\\\/g'`
2005-10-27 12:00:38 +00:00
2006-01-08 12:59:11 +00:00
cat >>confdefs.h <<_ACEOF
#define GNUSTEP_TARGET_CONFIG_FILE "$GNUSTEP_CONFIG_FILE"
_ACEOF
2002-05-02 15:17:54 +00:00
2006-01-08 12:59:11 +00:00
#
# Now load the values to be used in locating libraries etc used when
# building the base library ... as supplied by the gnustep-make package
#
. "$GNUSTEP_MAKE_CONFIG"
1998-02-09 19:06:40 +00:00
2006-01-08 12:59:11 +00:00
#
# Add standard library and header directories for configure to use to locate
# plain C developer headers/libraries which haver been installed in the
# GNUstep hierarchy.
#
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_ROOT/Library/Headers"
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Find the compiler
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
CC=$ac_ct_CC
else
CC="$ac_cv_prog_CC"
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
1998-02-09 19:06:40 +00:00
fi
fi
2002-05-02 15:17:54 +00:00
CC=$ac_cv_prog_CC
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
CC=$ac_ct_CC
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
CC="$ac_cv_prog_CC"
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
fi
2001-03-01 12:39:46 +00:00
if test -z "$CC"; then
1998-02-09 19:06:40 +00:00
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-02-09 19:06:40 +00:00
else
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
1998-02-09 19:06:40 +00:00
else
ac_prog_rejected=no
2002-05-02 15:17:54 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
1998-02-09 19:06:40 +00:00
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
2001-03-01 12:39:46 +00:00
set dummy $ac_cv_prog_CC
1998-02-09 19:06:40 +00:00
shift
2002-05-02 15:17:54 +00:00
if test $# != 0; then
1998-02-09 19:06:40 +00:00
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
2001-03-01 12:39:46 +00:00
# first if we set CC to just the basename; use the full file name.
1998-02-09 19:06:40 +00:00
shift
2003-09-22 03:00:21 +00:00
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1998-02-09 19:06:40 +00:00
fi
fi
fi
fi
2002-05-02 15:17:54 +00:00
CC=$ac_cv_prog_CC
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
for ac_prog in cl
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-03-01 12:39:46 +00:00
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
2002-05-02 15:17:54 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2001-03-01 12:39:46 +00:00
fi
fi
2002-05-02 15:17:54 +00:00
CC=$ac_cv_prog_CC
2001-03-01 12:39:46 +00:00
if test -n "$CC"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
2001-03-01 12:39:46 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-03-01 12:39:46 +00:00
fi
2002-05-02 15:17:54 +00:00
test -n "$CC" && break
done
fi
if test -z "$CC"; then
ac_ct_CC=$CC
for ac_prog in cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
2001-03-01 12:39:46 +00:00
fi
2002-05-02 15:17:54 +00:00
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
test -n "$ac_ct_CC" && break
done
CC=$ac_ct_CC
fi
fi
1998-02-09 19:06:40 +00:00
2003-09-22 03:00:21 +00:00
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
1999-07-12 04:21:05 +00:00
2002-05-02 15:17:54 +00:00
# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
"checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
(eval $ac_compiler --version </dev/null >&5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
(eval $ac_compiler -v </dev/null >&5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
(eval $ac_compiler -V </dev/null >&5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-07-12 04:21:05 +00:00
2002-05-02 15:17:54 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
2003-09-22 03:00:21 +00:00
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2002-05-02 15:17:54 +00:00
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
2006-01-11 09:32:13 +00:00
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2002-05-02 15:17:54 +00:00
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
2003-09-22 03:00:21 +00:00
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
test -f "$ac_file" || continue
2002-05-02 15:17:54 +00:00
case $ac_file in
2003-09-22 03:00:21 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2006-01-11 09:32:13 +00:00
;;
2003-09-22 03:00:21 +00:00
conftest.$ac_ext )
2006-01-11 09:32:13 +00:00
# This is the source file.
;;
2003-09-22 03:00:21 +00:00
[ab].out )
2006-01-11 09:32:13 +00:00
# We found the default executable, but exeext='' is most
# certainly right.
break;;
2003-09-22 03:00:21 +00:00
*.* )
2006-01-11 09:32:13 +00:00
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
# FIXME: I believe we export ac_cv_exeext for Libtool,
# but it would be cool to find out if it's true. Does anybody
# maintain Libtool? --akim.
export ac_cv_exeext
break;;
2003-09-22 03:00:21 +00:00
* )
2006-01-11 09:32:13 +00:00
break;;
2002-05-02 15:17:54 +00:00
esac
done
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 77); exit 77; }; }
fi
ac_exeext=$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
cross_compiling=no
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2003-09-22 03:00:21 +00:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: cannot run C compiled programs.
2003-09-22 03:00:21 +00:00
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2003-09-22 03:00:21 +00:00
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2002-05-02 15:17:54 +00:00
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6
echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
2003-09-22 03:00:21 +00:00
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
2002-05-02 15:17:54 +00:00
case $ac_file in
2003-09-22 03:00:21 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2002-05-02 15:17:54 +00:00
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006-01-11 09:32:13 +00:00
export ac_cv_exeext
break;;
2002-05-02 15:17:54 +00:00
* ) break;;
esac
done
1998-02-09 19:06:40 +00:00
else
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
rm -f conftest$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-03-01 12:39:46 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
case $ac_file in
2003-09-22 03:00:21 +00:00
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2002-05-02 15:17:54 +00:00
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
2001-03-01 12:39:46 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
2001-03-01 12:39:46 +00:00
fi
2002-05-02 15:17:54 +00:00
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001-03-01 12:39:46 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
int
main ()
{
#ifndef __GNUC__
choke me
#endif
2001-03-01 12:39:46 +00:00
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_compiler_gnu=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_compiler_gnu=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-03-01 12:39:46 +00:00
2002-05-02 15:17:54 +00:00
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2001-03-01 12:39:46 +00:00
ac_cv_prog_cc_g=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_prog_cc_g=no
2001-03-01 12:39:46 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2001-03-01 12:39:46 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2001-03-01 12:39:46 +00:00
if test "$ac_test_CFLAGS" = set; then
2002-05-02 15:17:54 +00:00
CFLAGS=$ac_save_CFLAGS
2001-03-01 12:39:46 +00:00
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
2003-09-22 03:00:21 +00:00
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
2006-01-11 09:32:13 +00:00
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
function prototypes and stuff, but not '\xHH' hex character constants.
These don't provoke an error unfortunately, instead are silently treated
as 'x'. The following induces an error, until -std1 is added to get
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
array size at least. It's necessary to write '\x00'==0 to get something
that's true only with -std1. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2003-09-22 03:00:21 +00:00
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX 10.20 and later -Ae
# HP-UX older versions -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2003-09-22 03:00:21 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-22 03:00:21 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2003-09-22 03:00:21 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_prog_cc_stdc=$ac_arg
break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext
2003-09-22 03:00:21 +00:00
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC
fi
case "x$ac_cv_prog_cc_stdc" in
x|xno)
echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
*)
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
CC="$CC $ac_cv_prog_cc_stdc" ;;
esac
2002-05-02 15:17:54 +00:00
# Some people use a C++ compiler to compile C. Since we use `exit',
# in C++ we need to declare it. In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
2006-01-11 09:32:13 +00:00
'' \
2002-05-02 15:17:54 +00:00
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
2003-07-31 23:49:32 +00:00
'void exit (int);'
2002-05-02 15:17:54 +00:00
do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-08 12:59:11 +00:00
$ac_declaration
2006-01-11 09:32:13 +00:00
#include <stdlib.h>
2002-05-02 15:17:54 +00:00
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
continue
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_declaration
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
rm -f conftest*
if test -n "$ac_declaration"; then
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration >>confdefs.h
echo '#endif' >>confdefs.h
fi
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
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
2002-05-02 15:17:54 +00:00
if test "${ac_cv_prog_CPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2006-01-11 09:32:13 +00:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
1998-02-09 19:06:40 +00:00
# On the NeXT, cc -E runs the code through the compiler's parser,
2002-05-02 15:17:54 +00:00
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
2002-05-02 15:17:54 +00:00
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
1998-02-09 19:06:40 +00:00
:
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
# Broken: success on invalid input.
continue
1999-07-12 04:21:05 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
else
ac_cv_prog_CPP=$CPP
fi
echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
2006-01-11 09:32:13 +00:00
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
# <limits.h> exists even on freestanding compilers.
2002-05-02 15:17:54 +00:00
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
Syntax error
2002-05-02 15:17:54 +00:00
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
1998-02-09 19:06:40 +00:00
:
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
# Broken: fails on valid input.
continue
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <ac_nonexistent.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
1999-07-12 04:21:05 +00:00
fi
2002-05-02 15:17:54 +00:00
if test -z "$ac_cpp_err"; then
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
# Passes both tests.
ac_preproc_ok=:
break
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
1998-02-09 19:06:40 +00:00
else
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998-02-09 19:06:40 +00:00
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
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_WHOAMI+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-06-27 21:11:01 +00:00
else
2002-05-02 15:17:54 +00:00
case $WHOAMI in
[\\/]* | ?:[\\/]*)
2000-06-27 21:11:01 +00:00
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
;;
*)
2002-05-02 15:17:54 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003-09-22 03:00:21 +00:00
as_dummy="$PATH:/usr/ucb"
for as_dir in $as_dummy
2002-05-02 15:17:54 +00:00
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2000-06-27 21:11:01 +00:00
test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
;;
esac
fi
2002-05-02 15:17:54 +00:00
WHOAMI=$ac_cv_path_WHOAMI
2000-06-27 21:11:01 +00:00
if test -n "$WHOAMI"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $WHOAMI" >&5
echo "${ECHO_T}$WHOAMI" >&6
2000-06-27 21:11:01 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2000-06-27 21:11:01 +00:00
fi
2002-05-02 15:17:54 +00:00
#--------------------------------------------------------------------
# specific target_os options
#--------------------------------------------------------------------
2003-05-30 02:50:28 +00:00
INCLUDE_FLAGS="$CPPFLAGS"
2004-10-26 19:08:17 +00:00
LDIR_FLAGS="$LDFLAGS"
2003-05-30 02:50:28 +00:00
# This is just for configuring. Later, in config.make, INCLUDE_FLAGS
# goes in CONFIG_SYSTEM_INCL and LIBS goes in CONFIG_SYSTEM_LIBS
2002-05-02 15:17:54 +00:00
case "$target_os" in
2003-07-06 02:55:01 +00:00
freebsd* | openbsd* )
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2002-08-16 03:09:45 +00:00
LDFLAGS="$LDFLAGS -L/usr/local/lib";;
2003-11-23 02:52:16 +00:00
netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
2003-10-03 21:25:31 +00:00
LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
2002-05-02 15:17:54 +00:00
esac
2000-10-28 21:58:48 +00:00
2001-04-26 03:56:37 +00:00
#----------------------------------------------------------------
# Find out if nested functions work on this machine
#----------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking whether nested functions work" >&5
echo $ECHO_N "checking whether nested functions work... $ECHO_C" >&6
2001-04-26 03:56:37 +00:00
if test "$cross_compiling" = yes; then
1998-02-09 19:06:40 +00:00
gcc_nested=1
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include "$srcdir/config/config.nested.c"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1998-02-09 19:06:40 +00:00
gcc_nested=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
gcc_nested=0
1998-02-09 19:06:40 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1998-02-09 19:06:40 +00:00
fi
2001-04-26 03:56:37 +00:00
if test $gcc_nested = 0; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define BROKEN_NESTED_FUNCTIONS 1
2002-05-02 15:17:54 +00:00
_ACEOF
2001-09-05 21:31:42 +00:00
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
1998-02-09 19:06:40 +00:00
fi
2001-04-26 03:56:37 +00:00
#--------------------------------------------------------------------
# Set Apple/Darwin/OSX/NeXT information for other tests
#--------------------------------------------------------------------
OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking the Objective-C runtime" >&5
echo $ECHO_N "checking the Objective-C runtime... $ECHO_C" >&6
2002-12-30 17:20:28 +00:00
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: NeXT" >&5
echo "${ECHO_T}NeXT" >&6
2001-05-25 15:59:06 +00:00
LIBOBJC='-lobjc'
2004-12-13 04:39:55 +00:00
OBJCFLAGS="-fnext-runtime -DNeXT_RUNTIME"
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: GNU" >&5
echo "${ECHO_T}GNU" >&6
2001-04-26 03:56:37 +00:00
LIBOBJC='-lobjc'
2004-12-13 04:39:55 +00:00
OBJCFLAGS="-fgnu-runtime"
1998-02-09 19:06:40 +00:00
fi
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
if test "$GNUSTEP_FLATTENED" = yes; then
2003-04-28 02:29:49 +00:00
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
2003-09-07 12:41:34 +00:00
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers
2001-01-18 19:47:40 +00:00
else
2003-04-28 02:29:49 +00:00
clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os`
clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu`
2001-01-18 19:47:40 +00:00
obj_dir=$clean_target_cpu/$clean_target_os
2003-04-28 02:29:49 +00:00
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir
2003-09-07 12:41:34 +00:00
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers/$LIBRARY_COMBO
2000-06-22 03:15:27 +00:00
fi
2001-01-30 14:18:19 +00:00
#
# The following one is so that headers of custom libraries into
# $GNUSTEP_HDIR are used before the standard ones
#
2005-11-20 10:36:12 +00:00
INCLUDE_FLAGS="$INCLUDE_FLAGS -I$GNUSTEP_HDIR"
LDIR_FLAGS="$LDIR_FLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR"
2001-01-30 14:18:19 +00:00
2001-01-18 19:47:40 +00:00
#--------------------------------------------------------------------
# Check if Objective-C is installed
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2003-09-22 03:00:21 +00:00
echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
then ac_cv_prog_egrep='grep -E'
else ac_cv_prog_egrep='egrep'
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
EGREP=$ac_cv_prog_egrep
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-09-24 22:24:08 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
2003-09-22 03:00:21 +00:00
int
main ()
{
;
return 0;
}
2002-05-02 15:17:54 +00:00
_ACEOF
2003-09-22 03:00:21 +00:00
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2005-12-02 07:18:23 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-12-02 07:18:23 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-01-08 12:59:11 +00:00
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2003-09-22 03:00:21 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2002-05-02 15:17:54 +00:00
ac_cv_header_stdc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stdc=no
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <string.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-22 03:00:21 +00:00
$EGREP "memchr" >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
:
else
ac_cv_header_stdc=no
1999-09-24 22:24:08 +00:00
fi
rm -f conftest*
2002-05-02 15:17:54 +00:00
1999-09-24 22:24:08 +00:00
fi
2002-05-02 15:17:54 +00:00
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 <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <stdlib.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-22 03:00:21 +00:00
$EGREP "free" >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
:
else
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 <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <ctype.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
2003-09-22 03:00:21 +00:00
# define ISLOWER(c) \
2006-01-11 09:32:13 +00:00
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
2002-05-02 15:17:54 +00:00
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
2006-01-11 09:32:13 +00:00
|| toupper (i) != TOUPPER (i))
2002-05-02 15:17:54 +00:00
exit(2);
exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
ac_cv_header_stdc=no
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2006-01-11 09:32:13 +00:00
inttypes.h stdint.h unistd.h
2002-05-02 15:17:54 +00:00
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_Header=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
for ac_header in objc/objc.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
1999-09-24 22:24:08 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1999-09-24 22:24:08 +00:00
fi
2002-05-02 15:17:54 +00:00
1999-09-24 22:24:08 +00:00
done
if test $ac_cv_header_objc_objc_h = no; then
echo "Check to make sure you have a full installation of the GCC"
echo "compiler that includes the Objective-C headers and libraries"
2002-05-02 15:17:54 +00:00
{ { echo "$as_me:$LINENO: error: Could not find Objective-C headers" >&5
echo "$as_me: error: Could not find Objective-C headers" >&2;}
{ (exit 1); exit 1; }; }
1999-09-24 22:24:08 +00:00
fi
2002-01-25 20:26:37 +00:00
#--------------------------------------------------------------------
# Check for strange network stuff used by gdomap
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: for gdomap network details" >&5
echo "$as_me: for gdomap network details" >&6;}
echo "$as_me:$LINENO: checking for variable length socket addresses" >&5
echo $ECHO_N "checking for variable length socket addresses... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-01-30 16:02:47 +00:00
2002-05-02 15:17:54 +00:00
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
2002-01-30 16:02:47 +00:00
2002-05-02 15:17:54 +00:00
int
main ()
{
2002-01-25 20:26:37 +00:00
struct ifreq s; s.ifr_addr.sa_len = 0;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2002-01-25 20:26:37 +00:00
sa_len=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
sa_len=0
2002-01-25 20:26:37 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-01-25 20:26:37 +00:00
if test $sa_len = 1; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: found" >&5
echo "${ECHO_T}found" >&6
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HAVE_SA_LEN 1
2002-05-02 15:17:54 +00:00
_ACEOF
2002-01-25 20:26:37 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: not found" >&5
echo "${ECHO_T}not found" >&6
2002-01-25 20:26:37 +00:00
fi
2002-04-16 18:39:42 +00:00
#--------------------------------------------------------------------
# Check if system has buggy SO_REUSEADDR
#--------------------------------------------------------------------
2004-09-27 14:07:22 +00:00
echo "$as_me:$LINENO: checking whether SO_REUSEADDR is broken" >&5
echo $ECHO_N "checking whether SO_REUSEADDR is broken... $ECHO_C" >&6
2002-04-16 18:39:42 +00:00
if test "$cross_compiling" = yes; then
reuseaddr_ok=0
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-04-16 18:39:42 +00:00
#include "$srcdir/config/config.reuseaddr.c"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2002-04-16 18:39:42 +00:00
reuseaddr_ok=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
reuseaddr_ok=0
2002-04-16 18:39:42 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-04-16 18:39:42 +00:00
fi
if test $reuseaddr_ok = 0; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define BROKEN_SO_REUSEADDR 1
2002-05-02 15:17:54 +00:00
_ACEOF
2002-04-16 18:39:42 +00:00
echo
2002-04-16 18:46:03 +00:00
echo "The SO_REUSEADDR socket option for controlling re-use of network"
echo "sockets immediately after shutdown appears to be broken on this"
echo "machine. Networking code will be built without using this"
echo "feature."
echo "The effect of this lack is that when a network service is shut"
echo "down, it cannot be re-started on the same network port until"
echo "an operating-system timeout has expired."
echo "For servers other than gdomap, GNUstep does not normally need"
echo "a particular network port, so the problem is unlikely to arise."
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2002-04-16 18:39:42 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2002-04-16 18:39:42 +00:00
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
#
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for objc threading flags" >&5
echo $ECHO_N "checking for objc threading flags... $ECHO_C" >&6
2001-01-19 11:51:30 +00:00
#
# Get them from gnustep-make which contains the real code to get them
#
2003-04-28 02:29:49 +00:00
objc_threaded=`grep objc_threaded: $GNUSTEP_MAKEFILES/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
2001-01-19 11:51:30 +00:00
#
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $objc_threaded" >&5
echo "${ECHO_T}$objc_threaded" >&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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
if test "${ac_cv_c_bigendian+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# See if sys/param.h defines the BYTE_ORDER macro.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-01-05 16:55:29 +00:00
#include <sys/types.h>
#include <sys/param.h>
2002-05-02 15:17:54 +00:00
int
main ()
{
1999-01-05 16:55:29 +00:00
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1999-01-05 16:55:29 +00:00
# It does; now see whether it defined to BIG_ENDIAN or not.
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-01-05 16:55:29 +00:00
#include <sys/types.h>
#include <sys/param.h>
2002-05-02 15:17:54 +00:00
int
main ()
{
1999-01-05 16:55:29 +00:00
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1999-01-05 16:55:29 +00:00
ac_cv_c_bigendian=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_c_bigendian=no
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
# It does not; compile a test program.
1999-01-05 16:55:29 +00:00
if test "$cross_compiling" = yes; then
2003-09-22 03:00:21 +00:00
# try to guess the endianness by grepping values into an object file
2002-05-02 15:17:54 +00:00
ac_cv_c_bigendian=unknown
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
int
main ()
{
_ascii (); _ebcdic ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2003-09-22 03:00:21 +00:00
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2002-05-02 15:17:54 +00:00
ac_cv_c_bigendian=yes
fi
2003-09-22 03:00:21 +00:00
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2002-05-02 15:17:54 +00:00
if test "$ac_cv_c_bigendian" = unknown; then
ac_cv_c_bigendian=no
else
# finding both strings is unlikely to happen, but who knows?
ac_cv_c_bigendian=unknown
fi
fi
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
int
main ()
{
1999-01-05 16:55:29 +00:00
/* 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);
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1999-01-05 16:55:29 +00:00
ac_cv_c_bigendian=no
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
ac_cv_c_bigendian=yes
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
fi
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
case $ac_cv_c_bigendian in
yes)
1999-01-05 16:55:29 +00:00
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
1999-01-05 16:55:29 +00:00
#define WORDS_BIGENDIAN 1
2002-05-02 15:17:54 +00:00
_ACEOF
;;
no)
;;
*)
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: unknown endianness
2002-05-02 15:17:54 +00:00
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: error: unknown endianness
2002-05-02 15:17:54 +00:00
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
{ (exit 1); exit 1; }; } ;;
esac
1999-01-05 16:55:29 +00:00
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.
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for void*" >&5
echo $ECHO_N "checking for void*... $ECHO_C" >&6
if test "${ac_cv_type_voidp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-01-28 12:15:51 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((void* *) 0)
return 0;
if (sizeof (void*))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_voidp=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_voidp=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
echo "${ECHO_T}$ac_cv_type_voidp" >&6
echo "$as_me:$LINENO: checking size of void*" >&5
echo $ECHO_N "checking size of void*... $ECHO_C" >&6
if test "${ac_cv_sizeof_voidp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_voidp" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
1999-01-28 12:15:51 +00:00
if test "$cross_compiling" = yes; then
2002-05-02 15:17:54 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-28 12:15:51 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
1999-01-28 12:15:51 +00:00
{
2002-05-02 15:17:54 +00:00
static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
test_array [0] = 0
;
return 0;
1999-01-28 12:15:51 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-28 12:15:51 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
1999-01-28 12:15:51 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-28 12:15:51 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_voidp=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void*), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (void*)); }
unsigned long ulongval () { return (long) (sizeof (void*)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (void*))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (void*))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (void*))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_voidp=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void*), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_voidp=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
cat >>confdefs.h <<_ACEOF
1999-01-28 12:15:51 +00:00
#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
2002-05-02 15:17:54 +00:00
_ACEOF
1999-01-28 12:15:51 +00:00
1999-01-05 16:55:29 +00:00
GS_SINT8="signed char"
GS_UINT8="unsigned char"
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6
if test "${ac_cv_type_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((short *) 0)
return 0;
if (sizeof (short))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_short=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_short=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6
echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6
if test "${ac_cv_sizeof_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_short" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
1999-01-05 16:55:29 +00:00
if test "$cross_compiling" = yes; then
2002-05-02 15:17:54 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
1999-01-05 16:55:29 +00:00
{
2002-05-02 15:17:54 +00:00
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
test_array [0] = 0
;
return 0;
1999-01-05 16:55:29 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (short))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
1999-01-05 16:55:29 +00:00
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_short=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_short=0
fi
1999-01-05 16:55:29 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
cat >>confdefs.h <<_ACEOF
1999-01-05 16:55:29 +00:00
#define SIZEOF_SHORT $ac_cv_sizeof_short
2002-05-02 15:17:54 +00:00
_ACEOF
1999-01-05 16:55:29 +00:00
1999-01-26 11:32:02 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6
if test "${ac_cv_type_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((int *) 0)
return 0;
if (sizeof (int))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_int=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_int=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6
echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6
if test "${ac_cv_sizeof_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_int" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
1999-01-05 16:55:29 +00:00
if test "$cross_compiling" = yes; then
2002-05-02 15:17:54 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2005-12-02 07:18:23 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2002-05-02 15:17:54 +00:00
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
1999-01-05 16:55:29 +00:00
{
2002-05-02 15:17:54 +00:00
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
test_array [0] = 0
;
return 0;
1999-01-05 16:55:29 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (int))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
1999-01-05 16:55:29 +00:00
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_int=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_int=0
1999-01-05 16:55:29 +00:00
fi
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
cat >>confdefs.h <<_ACEOF
1999-01-05 16:55:29 +00:00
#define SIZEOF_INT $ac_cv_sizeof_int
2002-05-02 15:17:54 +00:00
_ACEOF
1999-01-05 16:55:29 +00:00
1999-01-26 11:32:02 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6
if test "${ac_cv_type_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((long *) 0)
return 0;
if (sizeof (long))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_long=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6
echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_long" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
1999-01-05 16:55:29 +00:00
if test "$cross_compiling" = yes; then
2002-05-02 15:17:54 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
1999-01-05 16:55:29 +00:00
#include <stdio.h>
2002-05-02 15:17:54 +00:00
#include <stdlib.h>
int
main ()
1999-01-05 16:55:29 +00:00
{
2002-05-02 15:17:54 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (long))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (long))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (long))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
1999-01-05 16:55:29 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
1999-01-05 16:55:29 +00:00
else
ac_cv_sizeof_long=0
fi
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((long long *) 0)
return 0;
if (sizeof (long long))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long_long=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_long_long=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
echo "$as_me:$LINENO: checking size of long long" >&5
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_long_long" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
1999-01-05 16:55:29 +00:00
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (long long)); }
unsigned long ulongval () { return (long) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (long long))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (long long))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (long long))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_long_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_long_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF
1999-01-05 16:55:29 +00:00
1999-01-26 11:32:02 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for float" >&5
echo $ECHO_N "checking for float... $ECHO_C" >&6
if test "${ac_cv_type_float+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((float *) 0)
return 0;
if (sizeof (float))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_float=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_float=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
echo "${ECHO_T}$ac_cv_type_float" >&6
echo "$as_me:$LINENO: checking size of float" >&5
echo $ECHO_N "checking size of float... $ECHO_C" >&6
if test "${ac_cv_sizeof_float+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_float" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_float=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
1999-01-05 16:55:29 +00:00
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (float)); }
unsigned long ulongval () { return (long) (sizeof (float)); }
1999-01-05 16:55:29 +00:00
#include <stdio.h>
2002-05-02 15:17:54 +00:00
#include <stdlib.h>
int
main ()
1999-01-05 16:55:29 +00:00
{
2002-05-02 15:17:54 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (float))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (float))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (float))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
1999-01-05 16:55:29 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_float=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
ac_cv_sizeof_float=0
1999-01-05 16:55:29 +00:00
fi
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF
1999-01-05 16:55:29 +00:00
1999-01-26 11:32:02 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for double" >&5
echo $ECHO_N "checking for double... $ECHO_C" >&6
if test "${ac_cv_type_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((double *) 0)
return 0;
if (sizeof (double))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_double=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_double=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
echo "${ECHO_T}$ac_cv_type_double" >&6
echo "$as_me:$LINENO: checking size of double" >&5
echo $ECHO_N "checking size of double... $ECHO_C" >&6
if test "${ac_cv_sizeof_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_double" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
1999-01-05 16:55:29 +00:00
if test "$cross_compiling" = yes; then
2002-05-02 15:17:54 +00:00
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr $ac_mid + 1`
2006-01-11 09:32:13 +00:00
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
1999-01-05 16:55:29 +00:00
{
2002-05-02 15:17:54 +00:00
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
1999-01-05 16:55:29 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_hi=`expr '(' $ac_mid ')' - 1`
2006-01-11 09:32:13 +00:00
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo= ac_hi=
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999-01-05 16:55:29 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
test_array [0] = 0
1999-01-26 11:32:02 +00:00
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
case $ac_lo in
?*) ac_cv_sizeof_double=$ac_lo;;
2003-09-22 03:00:21 +00:00
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; } ;;
esac
1999-01-05 16:55:29 +00:00
else
if test "$cross_compiling" = yes; then
2006-01-11 09:32:13 +00:00
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
1999-01-05 16:55:29 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
long longval () { return (long) (sizeof (double)); }
unsigned long ulongval () { return (long) (sizeof (double)); }
1999-01-05 16:55:29 +00:00
#include <stdio.h>
2002-05-02 15:17:54 +00:00
#include <stdlib.h>
int
main ()
1999-01-05 16:55:29 +00:00
{
2002-05-02 15:17:54 +00:00
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (double))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (double))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (double))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
1999-01-05 16:55:29 +00:00
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_double=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
2003-09-22 03:00:21 +00:00
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
fi
rm -f conftest.val
1999-01-05 16:55:29 +00:00
else
ac_cv_sizeof_double=0
fi
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
cat >>confdefs.h <<_ACEOF
1999-01-05 16:55:29 +00:00
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
2002-05-02 15:17:54 +00:00
_ACEOF
1999-01-05 16:55:29 +00:00
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
2006-01-11 09:32:13 +00:00
GS_SADDR="int"
GS_UADDR="unsigned int"
1999-01-28 12:15:51 +00:00
else
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long; then
2006-01-11 09:32:13 +00:00
GS_SADDR="long"
GS_UADDR="unsigned long"
1999-01-28 12:15:51 +00:00
else
if test $ac_cv_sizeof_voidp = $ac_cv_sizeof_long_long; then
2006-01-11 09:32:13 +00:00
GS_SADDR="long long"
GS_UADDR="unsigned long long"
1999-01-28 12:15:51 +00:00
else
2002-05-02 15:17:54 +00:00
{ { echo "$as_me:$LINENO: error: Unable to find integer of same size as void*" >&5
echo "$as_me: error: Unable to find integer of same size as void*" >&2;}
{ (exit 1); exit 1; }; }
1999-01-28 12:15:51 +00:00
fi
fi
fi
2006-01-11 09:32:13 +00:00
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
2002-05-02 15:17:54 +00:00
{ { echo "$as_me:$LINENO: error: Unable to determine type for 16-bit integer" >&5
echo "$as_me: error: Unable to determine type for 16-bit integer" >&2;}
{ (exit 1); exit 1; }; }
1999-01-05 16:55:29 +00:00
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
2002-05-02 15:17:54 +00:00
{ { echo "$as_me:$LINENO: error: Unable to determine type for 32-bit integer" >&5
echo "$as_me: error: Unable to determine type for 32-bit integer" >&2;}
{ (exit 1); exit 1; }; }
1999-01-05 16:55:29 +00:00
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; }"
2004-02-28 16:55:34 +00:00
GS_UINT64="struct { gsu8 a8; }"
1999-01-27 12:49:49 +00:00
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
2002-05-02 15:17:54 +00:00
{ { echo "$as_me:$LINENO: error: Unable to determine type for 32-bit float" >&5
echo "$as_me: error: Unable to determine type for 32-bit float" >&2;}
{ (exit 1); exit 1; }; }
1999-01-05 16:55:29 +00:00
fi
if test $ac_cv_sizeof_double = 8; then
GS_FLT64="double"
else
2002-05-02 15:17:54 +00:00
{ { echo "$as_me:$LINENO: error: Unable to determine type for 64-bit float" >&5
echo "$as_me: error: Unable to determine type for 64-bit float" >&2;}
{ (exit 1); exit 1; }; }
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
2003-03-23 07:06:27 +00:00
else
1999-01-26 16:24:40 +00:00
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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
# Setup dynamic linking
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2005-08-12 17:34:19 +00:00
# Copyright (C) 2005 Free Software Foundation
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
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)
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking loading of constructor functions" >&5
echo $ECHO_N "checking loading of constructor functions... $ECHO_C" >&6
if test "${objc_cv_con_autoload+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-12-03 15:43:18 +00:00
else
2003-05-30 02:50:28 +00:00
if test "$cross_compiling" = yes; then
objc_cv_con_autoload=no
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-05-30 02:50:28 +00:00
static int loaded = 0;
void cons_functions() __attribute__ ((constructor));
void cons_functions() { loaded = 1; }
int main()
{
return ( (loaded == 1) ? 0 : 1);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
objc_cv_con_autoload=yes
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2003-05-30 02:50:28 +00:00
( exit $ac_status )
objc_cv_con_autoload=no
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2003-05-30 02:50:28 +00:00
fi
2001-06-07 17:42:58 +00:00
case "$target_os" in
cygwin*) objc_cv_con_autoload=yes;;
esac
1998-12-03 15:43:18 +00:00
fi
if test $objc_cv_con_autoload = yes; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define CON_AUTOLOAD 1
2002-05-02 15:17:54 +00:00
_ACEOF
1998-12-03 15:43:18 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
1998-12-03 15:43:18 +00:00
fi
2005-08-12 17:34:19 +00:00
# Copyright (C) 2005 Free Software Foundation
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
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
2002-05-02 15:17:54 +00:00
if test "${ac_cv_header_dlfcn_h+set}" = set; then
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
if test "${ac_cv_header_dlfcn_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
1998-02-09 19:06:40 +00:00
#include <dlfcn.h>
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <dlfcn.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
if test "${ac_cv_header_dlfcn_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_dlfcn_h=$ac_header_preproc
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test $ac_cv_header_dlfcn_h = yes; then
1998-02-09 19:06:40 +00:00
DYNAMIC_LINKER=simple
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
if test $DYNAMIC_LINKER = null; then
2002-05-02 15:17:54 +00:00
if test "${ac_cv_header_dl_h+set}" = set; then
echo "$as_me:$LINENO: checking for dl.h" >&5
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
if test "${ac_cv_header_dl_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking dl.h usability" >&5
echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
1998-02-09 19:06:40 +00:00
#include <dl.h>
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking dl.h presence" >&5
echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <dl.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
;;
no:yes:* )
{ echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
{ echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
2006-01-08 12:59:11 +00:00
{ echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
2006-01-08 12:59:11 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for dl.h" >&5
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
if test "${ac_cv_header_dl_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_dl_h=$ac_header_preproc
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test $ac_cv_header_dl_h = yes; then
1998-02-09 19:06:40 +00:00
DYNAMIC_LINKER=hpux
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
fi
if test $DYNAMIC_LINKER = null; then
2002-05-02 15:17:54 +00:00
if test "${ac_cv_header_windows_h+set}" = set; then
echo "$as_me:$LINENO: checking for windows.h" >&5
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
if test "${ac_cv_header_windows_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
echo "${ECHO_T}$ac_cv_header_windows_h" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking windows.h usability" >&5
echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
1998-10-06 20:06:01 +00:00
#include <windows.h>
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking windows.h presence" >&5
echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <windows.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2004-05-28 19:44:29 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for windows.h" >&5
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
if test "${ac_cv_header_windows_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_windows_h=$ac_header_preproc
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
echo "${ECHO_T}$ac_cv_header_windows_h" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test $ac_cv_header_windows_h = yes; then
1998-10-06 20:06:01 +00:00
DYNAMIC_LINKER=win32
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
fi
1998-10-06 20:06:01 +00:00
if test $DYNAMIC_LINKER = null; then
2002-05-02 15:17:54 +00:00
if test "${ac_cv_header_dld_defs_h+set}" = set; then
echo "$as_me:$LINENO: checking for dld/defs.h" >&5
echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
if test "${ac_cv_header_dld_defs_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking dld/defs.h usability" >&5
echo $ECHO_N "checking dld/defs.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
1998-10-06 20:06:01 +00:00
#include <dld/defs.h>
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking dld/defs.h presence" >&5
echo $ECHO_N "checking dld/defs.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <dld/defs.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: dld/defs.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: dld/defs.h: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: dld/defs.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: dld/defs.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: dld/defs.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: dld/defs.h: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for dld/defs.h" >&5
echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
if test "${ac_cv_header_dld_defs_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_dld_defs_h=$ac_header_preproc
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test $ac_cv_header_dld_defs_h = yes; then
1998-10-06 20:06:01 +00:00
DYNAMIC_LINKER=dld
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
fi
2002-11-27 17:15:39 +00:00
# NB: This is used as follows: in Source/Makefile.postamble we copy
# $(DYNAMIC_LINKER)-load.h into dynamic-load.h
2002-10-30 02:27:45 +00:00
echo "$as_me:$LINENO: checking for dynamic linker type" >&5
echo $ECHO_N "checking for dynamic linker type... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $DYNAMIC_LINKER" >&5
echo "${ECHO_T}$DYNAMIC_LINKER" >&6
2000-10-28 21:58:48 +00:00
if test $DYNAMIC_LINKER = simple; then
2003-05-30 02:50:28 +00:00
echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_dladdr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-05-30 02:50:28 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char dladdr ();
2002-05-02 15:17:54 +00:00
int
main ()
{
2003-05-30 02:50:28 +00:00
dladdr ();
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2003-05-30 02:50:28 +00:00
ac_cv_lib_dl_dladdr=yes
2000-10-28 21:58:48 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2003-05-30 02:50:28 +00:00
ac_cv_lib_dl_dladdr=no
2000-10-28 21:58:48 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2003-05-30 02:50:28 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
if test $ac_cv_lib_dl_dladdr = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBDL 1
_ACEOF
LIBS="-ldl $LIBS"
fi
2000-10-28 21:58:48 +00:00
fi
1998-02-09 19:06:40 +00:00
2004-03-24 20:54:27 +00:00
if test x"$ac_cv_lib_dl_dladdr" = xyes; then
2004-03-08 04:22:03 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_DLADDR 1
_ACEOF
fi
1998-02-09 19:06:40 +00:00
2001-07-19 11:45:15 +00:00
#--------------------------------------------------------------------
# Check whether Objective-C /really/ works
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking whether objc really works" >&5
echo $ECHO_N "checking whether objc really works... $ECHO_C" >&6
1999-09-09 02:56:20 +00:00
saved_LIBS="$LIBS"
saved_CPPFLAGS="$CPPFLAGS"
2001-05-03 17:35:47 +00:00
LIBS="$LIBS $LIBOBJC"
2004-12-13 04:39:55 +00:00
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -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"
2002-05-02 15:17:54 +00:00
if test "${objc_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-07-19 11:45:15 +00:00
else
if test "$cross_compiling" = yes; then
objc_works=yes
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-07-19 11:45:15 +00:00
#include "$srcdir/config/config.objc.m"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2001-07-19 11:45:15 +00:00
objc_works=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
objc_works=no
2001-07-19 11:45:15 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-07-19 11:45:15 +00:00
fi
fi
if test $objc_works = yes; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2001-07-19 11:45:15 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-07-19 11:45:15 +00:00
echo "I don't seem to be able to use your Objective-C compiler to produce"
echo "working binaries! Please check your Objective-C compiler installation."
echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
echo "can be found by the dynamic linker - usually that requires you to play"
echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
echo "Please refer to your compiler installation instructions for more help."
2004-11-24 14:10:33 +00:00
{ { echo "$as_me:$LINENO: error: The Objective-C compiler does not work or is not installed properly." >&5
echo "$as_me: error: The Objective-C compiler does not work or is not installed properly." >&2;}
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }; }
2001-07-19 11:45:15 +00:00
fi
2001-09-19 17:25:19 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2001-07-19 11:45:15 +00:00
#---------------------------------------------------------------------
# Guess if we are using a compiler which allows us to change the class
# to be used for constant strings by using the -fconstant-string-class
# option. If that is the case, we change it to NSConstantString.
#---------------------------------------------------------------------
2005-08-12 17:34:19 +00:00
strclass_CPPFLAGS="$CPPFLAGS"
2002-03-09 17:04:48 +00:00
CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking if the compiler supports -fconstant-string-class" >&5
echo $ECHO_N "checking if the compiler supports -fconstant-string-class... $ECHO_C" >&6
if test "${objc_compiler_supports_constant_string_class+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-06-06 15:35:37 +00:00
else
if test "$cross_compiling" = yes; then
objc_compiler_supports_constant_string_class=no
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-06-06 15:35:37 +00:00
#include "$srcdir/config/config.constant-string-class.m"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2001-06-06 15:35:37 +00:00
objc_compiler_supports_constant_string_class=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
objc_compiler_supports_constant_string_class=no
2001-06-06 15:35:37 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-06-06 15:35:37 +00:00
fi
fi
if test $objc_compiler_supports_constant_string_class = yes; then
2003-01-03 20:14:47 +00:00
NX_CONST_STRING_OBJCFLAGS="-fconstant-string-class=NSConstantString"
2001-06-06 15:35:37 +00:00
NX_CONST_STRING_CLASS=NSConstantString
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2001-06-06 15:35:37 +00:00
else
2003-01-03 20:14:47 +00:00
NX_CONST_STRING_OBJCFLAGS=""
2001-06-06 15:35:37 +00:00
NX_CONST_STRING_CLASS=NXConstantString
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-06-06 15:35:37 +00:00
fi
2005-08-12 17:34:19 +00:00
CPPFLAGS="$strclass_CPPFLAGS"
2001-06-06 15:35:37 +00:00
2004-12-13 04:39:55 +00:00
# Don't revert any Objective-C flags as they are used in the next test
2001-06-06 15:35:37 +00:00
#---------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
# Guess if we are using a compiler which has the (GNU extension) +load
# method which is executed before main.
2001-06-06 15:35:37 +00:00
# Defines HAVE_LOAD_METHOD if +load methods are called before main.
# Needed by NSProcessInfo.m
#---------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking if +load method is executed before main" >&5
echo $ECHO_N "checking if +load method is executed before main... $ECHO_C" >&6
if test "${objc_load_method_worked+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-07-22 14:17:27 +00:00
else
1999-09-09 02:56:20 +00:00
if test "$cross_compiling" = yes; then
objc_load_method_worked=no
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-09-09 02:56:20 +00:00
#include "$srcdir/config/config.loadtest.m"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1999-09-09 02:56:20 +00:00
objc_load_method_worked=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
objc_load_method_worked=no
1999-07-22 14:17:27 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1999-09-09 02:56:20 +00:00
fi
1999-07-22 14:17:27 +00:00
fi
if test $objc_load_method_worked = yes; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HAVE_LOAD_METHOD 1
2002-05-02 15:17:54 +00:00
_ACEOF
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
1999-07-22 14:17:27 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
1999-07-22 14:17:27 +00:00
fi
2004-12-13 04:39:55 +00:00
# Don't revert any Objective-C flags as they are used in the next test
1999-09-09 02:56:20 +00:00
#--------------------------------------------------------------------
# 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
2001-03-10 21:36:03 +00:00
# Thread functions used by NSThread
1999-09-09 02:56:20 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2001-03-10 21:36:03 +00:00
for ac_func in objc_condition_timedwait objc_thread_add
1999-09-09 02:56:20 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-09-09 02:56:20 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1999-09-09 02:56:20 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1999-09-09 02:56:20 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1999-09-09 02:56:20 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1999-09-09 02:56:20 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1999-09-09 02:56:20 +00:00
fi
done
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-06-22 03:15:27 +00:00
#include <objc/objc-api.h>
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
_ACEOF
1998-02-09 19:06:40 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-22 03:00:21 +00:00
$EGREP "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1
2002-05-02 15:17:54 +00:00
_ACEOF
1998-02-09 19:06:40 +00:00
fi
rm -f conftest*
2002-05-02 15:17:54 +00:00
LIBS="$saved_LIBS"
2004-12-13 04:39:55 +00:00
CPPFLAGS="$saved_CPPFLAGS"
2002-05-02 15:17:54 +00:00
#--------------------------------------------------------------------
# Generic settings needed by NSZone.m
#--------------------------------------------------------------------
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
return 0;
if (sizeof (size_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_size_t=yes
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_size_t=no
1998-02-09 19:06:40 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
if test $ac_cv_type_size_t = yes; then
:
else
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<_ACEOF
#define size_t unsigned
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2003-09-22 03:00:21 +00:00
echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
2002-05-02 15:17:54 +00:00
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-02-09 19:06:40 +00:00
else
2003-09-22 03:00:21 +00:00
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
2003-09-07 12:41:34 +00:00
_ACEOF
2003-09-22 03:00:21 +00:00
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-09-07 12:41:34 +00:00
#ifndef __cplusplus
2003-09-22 03:00:21 +00:00
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
2003-09-07 12:41:34 +00:00
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2003-09-07 12:41:34 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-09-07 12:41:34 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2003-09-07 12:41:34 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_c_inline=$ac_kw; break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
1998-02-09 19:06:40 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998-02-09 19:06:40 +00:00
done
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
2006-01-11 09:32:13 +00:00
2002-05-02 15:17:54 +00:00
case $ac_cv_c_inline in
2006-01-08 12:59:11 +00:00
inline | yes) ;;
2006-01-11 09:32:13 +00:00
*)
case $ac_cv_c_inline in
no) ac_val=;;
*) ac_val=$ac_cv_c_inline;;
esac
cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
2006-01-08 12:59:11 +00:00
_ACEOF
2006-01-11 09:32:13 +00:00
;;
1998-02-09 19:06:40 +00:00
esac
#--------------------------------------------------------------------
# Following header checks needed for bzero in Storage.m and other places
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
2002-05-02 15:17:54 +00:00
2003-09-22 03:00:21 +00:00
int
main ()
{
;
return 0;
}
2002-05-02 15:17:54 +00:00
_ACEOF
2003-09-22 03:00:21 +00:00
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2003-07-17 09:00:31 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-07-17 09:00:31 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003-09-22 03:00:21 +00:00
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2003-09-22 03:00:21 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1998-02-09 19:06:40 +00:00
ac_cv_header_stdc=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stdc=no
1998-02-09 19:06:40 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1998-02-09 19:06:40 +00:00
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include <string.h>
2002-05-02 15:17:54 +00:00
_ACEOF
1998-02-09 19:06:40 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-22 03:00:21 +00:00
$EGREP "memchr" >/dev/null 2>&1; then
1998-02-09 19:06:40 +00:00
:
else
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.
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include <stdlib.h>
2002-05-02 15:17:54 +00:00
_ACEOF
1998-02-09 19:06:40 +00:00
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2003-09-22 03:00:21 +00:00
$EGREP "free" >/dev/null 2>&1; then
1998-02-09 19:06:40 +00:00
:
else
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.
2002-05-02 15:17:54 +00:00
if test "$cross_compiling" = yes; then
1998-02-09 19:06:40 +00:00
:
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include <ctype.h>
2002-05-02 15:17:54 +00:00
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
2003-09-22 03:00:21 +00:00
# define ISLOWER(c) \
2006-01-11 09:32:13 +00:00
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
2002-05-02 15:17:54 +00:00
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
2006-01-11 09:32:13 +00:00
|| toupper (i) != TOUPPER (i))
2002-05-02 15:17:54 +00:00
exit(2);
exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1998-02-09 19:06:40 +00:00
:
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
ac_cv_header_stdc=no
1998-02-09 19:06:40 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1998-02-09 19:06:40 +00:00
fi
fi
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1998-02-09 19:06:40 +00:00
if test $ac_cv_header_stdc = yes; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
1998-02-09 19:06:40 +00:00
#define STDC_HEADERS 1
2002-05-02 15:17:54 +00:00
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
for ac_header in string.h memory.h
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
done
#--------------------------------------------------------------------
2001-10-06 18:12:53 +00:00
# Following header check needed NSConnection.h
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header in float.h
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
done
#--------------------------------------------------------------------
# Header files and functions for files and filesystems
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header 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
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00:00
2003-10-10 03:48:18 +00:00
for ac_header in sys/syslimits.h sys/param.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2003-10-10 03:48:18 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-10-10 03:48:18 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2003-10-10 03:48:18 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
2003-10-10 03:48:18 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2003-10-10 03:48:18 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
2002-05-02 15:17:54 +00:00
2003-10-10 03:48:18 +00:00
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2003-10-10 03:48:18 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
2002-05-02 15:17:54 +00:00
2003-10-10 03:48:18 +00:00
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2003-10-10 03:48:18 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-10-10 03:48:18 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2003-10-10 03:48:18 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2003-10-10 03:48:18 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-10-10 03:48:18 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-10-10 03:48:18 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2003-10-10 03:48:18 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
# Twisted header check for NetBSD
for ac_header in sys/mount.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if HAVE_SYS_SYSLIMITS_H
#include <sys/syslimits.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2003-10-10 03:48:18 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-10-10 03:48:18 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2003-10-10 03:48:18 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2003-10-10 03:48:18 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
for ac_header in sys/types.h windows.h locale.h langinfo.h
1999-04-27 15:06:14 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1999-04-27 15:06:14 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1999-04-27 15:06:14 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1999-04-27 15:06:14 +00:00
fi
2002-05-02 15:17:54 +00:00
1999-04-27 15:06:14 +00:00
done
2000-09-25 03:10:55 +00:00
saved_LIBS="$LIBS"
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-05-03 17:35:47 +00:00
else
2002-05-02 15:17:54 +00:00
ac_check_lib_save_LIBS=$LIBS
2001-05-03 17:35:47 +00:00
LIBS="-lm $LIBS"
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-05-03 17:35:47 +00:00
2002-05-02 15:17:54 +00:00
int
main ()
{
main ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_m_main=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_lib_m_main=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
if test $ac_cv_lib_m_main = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBM 1
_ACEOF
2001-05-03 17:35:47 +00:00
LIBS="-lm $LIBS"
fi
2002-05-02 15:17:54 +00:00
2002-10-02 02:26:25 +00:00
2003-04-17 11:23:29 +00:00
2003-09-22 22:51:23 +00:00
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2004-10-11 03:08:54 +00:00
for ac_header in time.h sys/time.h tzfile.h sys/rusage.h ucbinclude/sys/resource.h
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00:00
2003-09-04 03:28:14 +00:00
for ac_func in time ctime tzset
2002-02-24 18:28:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-02-24 18:28:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2002-02-24 18:28:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
2002-02-24 18:28:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
2002-02-24 18:28:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
2002-02-24 18:28:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
2002-02-24 18:28:40 +00:00
fi
done
1998-02-09 19:06:40 +00:00
2004-10-26 19:08:17 +00:00
# Check if tzfile contains the proper definitions
if test $ac_cv_header_tzfile_h = yes; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <tzfile.h>
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "tzhead" >/dev/null 2>&1; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_TZHEAD 1
_ACEOF
fi
rm -f conftest*
fi
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2000-11-15 14:32:18 +00:00
# These headers/functions needed by GSTcpPort.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header in sys/socket.h netinet/in.h
1998-02-26 17:55:42 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
2004-09-27 14:07:22 +00:00
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2004-09-27 14:07:22 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header in syslog.h
1999-03-09 05:55:19 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2005-12-02 07:18:23 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2005-12-02 07:18:23 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2005-11-20 10:36:12 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2005-11-20 10:36:12 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
1999-03-09 05:55:19 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1999-03-09 05:55:19 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
1999-03-09 05:55:19 +00:00
fi
2002-05-02 15:17:54 +00:00
1999-03-09 05:55:19 +00:00
done
2002-05-02 15:17:54 +00:00
1999-03-09 05:55:19 +00:00
for ac_func in syslog
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-03-09 05:55:19 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1999-03-09 05:55:19 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1999-03-09 05:55:19 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1999-03-09 05:55:19 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1999-03-09 05:55:19 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1999-03-09 05:55:19 +00:00
fi
done
2001-07-10 03:23:39 +00:00
#--------------------------------------------------------------------
2002-01-28 15:16:33 +00:00
# These headers/functions needed by NSRunLoop.m
2001-07-10 03:23:39 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header in poll.h
2001-07-10 03:23:39 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2001-07-10 03:23:39 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2001-07-10 03:23:39 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2001-07-10 03:23:39 +00:00
fi
2002-05-02 15:17:54 +00:00
2001-07-10 03:23:39 +00:00
done
2002-05-02 15:17:54 +00:00
2002-01-28 15:16:33 +00:00
for ac_func in poll
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
2002-01-28 15:16:33 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
2002-01-28 15:16:33 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
2002-01-28 15:16:33 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
2002-01-28 15:16:33 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
2002-01-28 15:16:33 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
2002-01-28 15:16:33 +00:00
fi
done
2005-02-23 22:17:54 +00:00
have_poll=no
if test $ac_cv_header_poll_h = yes; then
have_poll=yes
echo "$as_me:$LINENO: checking for poll emulation" >&5
echo $ECHO_N "checking for poll emulation... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "config/config.poll.c"
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "emulating_poll" >/dev/null 2>&1; then
have_poll=no
fi
rm -f conftest*
if test $have_poll = yes; then
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
cat >>confdefs.h <<\_ACEOF
#define HAVE_POLL_F 1
_ACEOF
2002-01-28 15:16:33 +00:00
2005-02-23 22:17:54 +00:00
else
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi
fi
2002-01-28 15:16:33 +00:00
#--------------------------------------------------------------------
# Check for pthread.h (only when building on Darwin machines)
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header in pthread.h
2002-01-28 15:16:33 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2002-01-28 15:16:33 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2002-01-28 15:16:33 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2002-01-28 15:16:33 +00:00
fi
2002-05-02 15:17:54 +00:00
2002-01-28 15:16:33 +00:00
done
2001-09-11 21:42:08 +00:00
HAVE_PTHREAD_H=no
if test $ac_cv_header_pthread_h = yes ; then
HAVE_PTHREAD_H=yes
fi
2001-07-10 03:23:39 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# This function needed by StdioStream.m
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2000-03-23 18:49:34 +00:00
for ac_func in vsprintf vasprintf
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2005-12-02 07:18:23 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-12-02 07:18:23 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-01-08 12:59:11 +00:00
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
if test $ac_cv_func_vsprintf = yes ; then
if test "$cross_compiling" = yes; then
VSPRINTF_RETURNS_LENGTH=1
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include "$srcdir/config/config.vsprintf.c"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1998-02-09 19:06:40 +00:00
VSPRINTF_RETURNS_LENGTH=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
VSPRINTF_RETURNS_LENGTH=0
1998-02-09 19:06:40 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<_ACEOF
1998-02-09 19:06:40 +00:00
#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
2002-05-02 15:17:54 +00:00
_ACEOF
1998-02-09 19:06:40 +00:00
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
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2000-03-23 18:49:34 +00:00
#include "$srcdir/config/config.vasprintf.c"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2000-03-23 18:49:34 +00:00
VASPRINTF_RETURNS_LENGTH=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
VASPRINTF_RETURNS_LENGTH=0
2000-03-23 18:49:34 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2000-03-23 18:49:34 +00:00
fi
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<_ACEOF
2000-03-23 18:49:34 +00:00
#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
2002-05-02 15:17:54 +00:00
_ACEOF
2000-03-23 18:49:34 +00:00
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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
for ac_func in getcwd
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
ac_header_dirent=no
2002-05-02 15:17:54 +00:00
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
#include <sys/types.h>
#include <$ac_hdr>
2002-05-02 15:17:54 +00:00
int
main ()
{
if ((DIR *) 0)
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_Header=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
_ACEOF
ac_header_dirent=$ac_hdr; break
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char opendir ();
int
main ()
{
opendir ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_search_opendir="none required"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
if test "$ac_cv_search_opendir" = no; then
for ac_lib in dir; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_search_opendir="-l$ac_lib"
break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
LIBS=$ac_func_search_save_LIBS
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
1998-02-09 19:06:40 +00:00
fi
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for library containing opendir" >&5
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
if test "${ac_cv_search_opendir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
ac_func_search_save_LIBS=$LIBS
ac_cv_search_opendir=no
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char opendir ();
int
main ()
{
opendir ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_search_opendir="none required"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
if test "$ac_cv_search_opendir" = no; then
for ac_lib in x; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_search_opendir="-l$ac_lib"
break
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
done
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
LIBS=$ac_func_search_save_LIBS
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
echo "${ECHO_T}$ac_cv_search_opendir" >&6
if test "$ac_cv_search_opendir" != no; then
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
1998-02-09 19:06:40 +00:00
fi
fi
2000-06-13 14:51:31 +00:00
#--------------------------------------------------------------------
# This function needed by gdomap.c
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
for ac_header in getopt.h
2000-06-13 14:51:31 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-06-13 14:51:31 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2000-06-13 14:51:31 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2000-06-13 14:51:31 +00:00
fi
2002-05-02 15:17:54 +00:00
2000-06-13 14:51:31 +00:00
done
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# This function needed by NSPage.m
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
for ac_func in valloc
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
#--------------------------------------------------------------------
# This function needed by Time.m
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
for ac_func in times
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
#--------------------------------------------------------------------
# These functions needed by NSData.m
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
1999-03-09 05:55:19 +00:00
for ac_func in mkstemp
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-03-09 05:55:19 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1999-03-09 05:55:19 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1999-03-09 05:55:19 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1999-03-09 05:55:19 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1999-03-09 05:55:19 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1999-03-09 05:55:19 +00:00
fi
done
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
for ac_func in shmctl
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
2002-05-02 15:17:54 +00:00
1998-02-09 19:06:40 +00:00
for ac_func in mmap
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-02-01 14:00:17 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1999-02-01 14:00:17 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1999-02-01 14:00:17 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1999-02-01 14:00:17 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1999-02-01 14:00:17 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1999-02-01 14:00:17 +00:00
fi
done
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2003-10-16 18:31:38 +00:00
# These functions needed by NSTask.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2003-10-16 18:31:38 +00:00
for ac_func in killpg setpgrp setpgid
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
2003-10-16 18:31:38 +00:00
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
if test "${ac_cv_func_setpgrp_void+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
2002-05-02 15:17:54 +00:00
2003-10-16 18:31:38 +00:00
int
main ()
{
/* If this system has a BSD-style setpgrp which takes arguments,
setpgrp(1, 1) will fail with ESRCH and return -1, in that case
exit successfully. */
exit (setpgrp (1,1) == -1 ? 0 : 1);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_setpgrp_void=no
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_func_setpgrp_void=yes
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2003-10-16 18:31:38 +00:00
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
if test $ac_cv_func_setpgrp_void = yes; then
cat >>confdefs.h <<\_ACEOF
#define SETPGRP_VOID 1
_ACEOF
fi
HAVE_PTS_STREAM_MODULES=0
case "${target}" in
*-sysv-*)
HAVE_PTS_STREAM_MODULES=1
;;
esac
cat >>confdefs.h <<_ACEOF
#define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES
_ACEOF
2005-03-07 12:16:46 +00:00
for ac_header in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h inttypes.h sys/inttypes.h
2001-10-24 16:34:00 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2001-10-24 16:34:00 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2001-10-24 16:34:00 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2001-10-24 16:34:00 +00:00
fi
2002-05-02 15:17:54 +00:00
2001-10-24 16:34:00 +00:00
done
1998-02-09 19:06:40 +00:00
2004-05-26 13:45:37 +00:00
if test $ac_cv_header_stdint_h = yes; then
INCLUDE_STDINT="#include <stdint.h>"
2005-03-07 12:16:46 +00:00
elif test $ac_cv_header_inttypes_h = yes; then
INCLUDE_STDINT="#include <inttypes.h>"
elif test $ac_cv_header_sys_inttypes_h = yes; then
2005-03-07 11:58:28 +00:00
INCLUDE_STDINT="#include <sys/inttypes.h>"
2005-03-07 12:16:46 +00:00
else
INCLUDE_STDINT="no"
2005-03-07 11:58:28 +00:00
fi
2005-03-07 12:16:46 +00:00
if test "$INCLUDE_STDINT" = "no"; then
2004-05-26 13:45:37 +00:00
INCLUDE_STDINT=""
2005-03-07 10:47:10 +00:00
DEFINE_INT8_T="#define int8_t gss8"
2004-05-26 13:45:37 +00:00
DEFINE_UINT8_T="#define uint8_t gsu8"
2005-03-07 10:47:10 +00:00
DEFINE_INT16_T="#define int16_t gss16"
DEFINE_UINT16_T="#define uint16_t gsu16"
2004-05-26 13:45:37 +00:00
DEFINE_INT32_T="#define int32_t gss32"
2005-03-07 10:47:10 +00:00
DEFINE_UINT32_T="#define uint32_t gsu32"
2004-05-26 13:45:37 +00:00
DEFINE_INT64_T="#define int64_t gss64"
2005-03-07 10:47:10 +00:00
DEFINE_UINT64_T="#define uint64_t gsu64"
2006-01-11 09:32:13 +00:00
DEFINE_INTPTR_T="#define intptr_t gssaddr"
DEFINE_UINTPTR_T="#define uintptr_t gsuaddr"
2005-03-07 11:58:28 +00:00
else
DEFINE_INT8_T=""
DEFINE_UINT8_T=""
DEFINE_INT16_T=""
DEFINE_UINT16_T=""
DEFINE_INT32_T=""
DEFINE_UINT32_T=""
DEFINE_INT64_T=""
DEFINE_UINT64_T=""
2006-01-11 09:32:13 +00:00
DEFINE_INTPTR_T=""
DEFINE_UINTPTR_T=""
2004-05-26 13:45:37 +00:00
fi
2005-03-07 10:47:10 +00:00
2005-03-07 11:58:28 +00:00
2006-01-11 09:32:13 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2003-10-16 18:31:38 +00:00
# These used by GSFileHandle.m and distributed objects
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2003-10-16 18:31:38 +00:00
for ac_func in inet_aton sigaction
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
2003-01-03 20:14:47 +00:00
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
2003-09-07 12:41:34 +00:00
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
fi
done
2003-10-16 18:31:38 +00:00
USE_ZLIB=0
2002-05-02 15:17:54 +00:00
2003-10-16 18:31:38 +00:00
for ac_header in zlib.h
2001-02-05 09:28:19 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2001-02-05 09:28:19 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2001-02-05 09:28:19 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2001-02-05 09:28:19 +00:00
fi
2002-05-02 15:17:54 +00:00
2001-02-05 09:28:19 +00:00
done
2003-10-16 18:31:38 +00:00
if test $ac_cv_header_zlib_h = yes; then
echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
echo $ECHO_N "checking for gzseek in -lz... $ECHO_C" >&6
if test "${ac_cv_lib_z_gzseek+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lz $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char gzseek ();
int
main ()
{
gzseek ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2003-10-16 18:31:38 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2003-10-16 18:31:38 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2003-10-16 18:31:38 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_z_gzseek=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_z_gzseek=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2003-10-16 18:31:38 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
echo "${ECHO_T}$ac_cv_lib_z_gzseek" >&6
if test $ac_cv_lib_z_gzseek = yes; then
zlib_ok=yes
else
zlib_ok=no
fi
if test "$zlib_ok" = yes; then
LIBS="$LIBS -lz"
USE_ZLIB=1
fi
fi
2001-02-05 09:28:19 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2003-07-17 09:00:31 +00:00
# One of these function needed by NSThread.m
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2003-07-17 09:00:31 +00:00
for ac_func in nanosleep usleep
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-02-09 19:06:40 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-02-09 19:06:40 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-02-09 19:06:40 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-02-09 19:06:40 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-02-09 19:06:40 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-02-09 19:06:40 +00:00
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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
1998-05-29 15:25:41 +00:00
for ac_func in strerror
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1998-05-29 15:25:41 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1998-05-29 15:25:41 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-05-29 15:25:41 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1998-05-29 15:25:41 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1998-05-29 15:25:41 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
2004-05-28 19:44:29 +00:00
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2004-05-07 11:20:18 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-05-07 11:20:18 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004-05-28 19:44:29 +00:00
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1998-05-29 15:25:41 +00:00
fi
done
2001-02-02 06:14:42 +00:00
#--------------------------------------------------------------------
# This type needed by GSFormat
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for uintmax_t" >&5
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
if test "${ac_cv_type_uintmax_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-02-02 06:14:42 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
int
main ()
{
if ((uintmax_t *) 0)
return 0;
if (sizeof (uintmax_t))
return 0;
;
return 0;
}
2006-01-08 12:59:11 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2005-12-02 07:18:23 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-12-02 07:18:23 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006-01-08 12:59:11 +00:00
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_uintmax_t=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_type_uintmax_t=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
if test $ac_cv_type_uintmax_t = yes; then
cat >>confdefs.h <<_ACEOF
2001-02-02 06:14:42 +00:00
#define HAVE_UINTMAX_T 1
2002-05-02 15:17:54 +00:00
_ACEOF
2001-02-02 06:14:42 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking whether precompiler handles LONG_LONG_MAX" >&5
echo $ECHO_N "checking whether precompiler handles LONG_LONG_MAX... $ECHO_C" >&6
2004-02-29 02:57:22 +00:00
# We need to define _GNU_SOURCE for some systems to enable LONG_LONG_MAX
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2004-02-29 02:57:22 +00:00
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifdef HAVE_STDINT_H
2001-10-26 17:57:58 +00:00
#include <stdint.h>
#endif
2001-05-23 14:32:56 +00:00
#include <limits.h>
#if defined(LONG_LONG_MAX)
2001-10-26 19:33:48 +00:00
#if LONG_MAX == LONG_LONG_MAX
#error long max equals long long max
2001-05-23 14:32:56 +00:00
#endif
2001-10-26 19:33:48 +00:00
#else
#error long long max not defined
2001-05-23 14:32:56 +00:00
#endif
2002-05-02 15:17:54 +00:00
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
2001-05-23 14:32:56 +00:00
llmax=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-05-23 14:32:56 +00:00
llmax=no
fi
2002-05-02 15:17:54 +00:00
rm -f conftest.err conftest.$ac_ext
2001-05-23 14:32:56 +00:00
if test $llmax = yes; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HANDLE_LONG_LONG_MAX 1
2002-05-02 15:17:54 +00:00
_ACEOF
2001-05-23 14:32:56 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-05-23 14:32:56 +00:00
fi
2001-10-26 02:16:26 +00:00
#
# Solaris and *BSD use LLONG_MAX instead
#
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking whether we have LLONG_MAX" >&5
echo $ECHO_N "checking whether we have LLONG_MAX... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-10-26 02:16:26 +00:00
#include <limits.h>
#if defined(LLONG_MAX)
2001-10-26 20:02:01 +00:00
#if LONG_MAX == LLONG_MAX
2001-10-26 19:33:48 +00:00
#error long max equals long long max
2001-10-26 02:16:26 +00:00
#endif
2001-10-26 19:33:48 +00:00
#else
#error llong max not defined
2001-10-26 02:16:26 +00:00
#endif
2002-05-02 15:17:54 +00:00
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
2001-10-26 02:16:26 +00:00
llmax=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2001-10-26 02:16:26 +00:00
llmax=no
fi
2002-05-02 15:17:54 +00:00
rm -f conftest.err conftest.$ac_ext
2001-10-26 02:16:26 +00:00
if test $llmax = yes; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HANDLE_LLONG_MAX 1
2002-05-02 15:17:54 +00:00
_ACEOF
2001-10-26 02:16:26 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-10-26 02:16:26 +00:00
fi
2002-05-02 15:17:54 +00:00
for ac_header in wchar.h
2001-02-09 06:58:38 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2001-02-09 06:58:38 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2001-02-09 06:58:38 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2001-02-09 06:58:38 +00:00
fi
2002-05-02 15:17:54 +00:00
2001-02-09 06:58:38 +00:00
done
2003-06-21 13:16:41 +00:00
#--------------------------------------------------------------------
# Check if short and int values need to be word aligned
#--------------------------------------------------------------------
echo "$as_me:$LINENO: checking short/int needs to be word aligned" >&5
echo $ECHO_N "checking short/int needs to be word aligned... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
NEED_WORD_ALIGNMENT=1
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-06-21 13:16:41 +00:00
#include "$srcdir/config/config.align.c"
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
NEED_WORD_ALIGNMENT=0
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2003-06-21 13:16:41 +00:00
( exit $ac_status )
NEED_WORD_ALIGNMENT=1
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2003-06-21 13:16:41 +00:00
fi
cat >>confdefs.h <<_ACEOF
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
_ACEOF
if test $NEED_WORD_ALIGNMENT = 1; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
1998-05-29 15:25:41 +00:00
#--------------------------------------------------------------------
# This function needed by NSString for handling of %@ printf directive.
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for register_printf_function" >&5
echo $ECHO_N "checking for register_printf_function... $ECHO_C" >&6
if test "${ac_cv_func_register_printf_function+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1998-05-29 15:25:41 +00:00
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define register_printf_function to an innocuous variant, in case <limits.h> declares register_printf_function.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define register_printf_function innocuous_register_printf_function
1998-05-29 15:25:41 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char register_printf_function (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef register_printf_function
1998-05-29 15:25:41 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1998-05-29 15:25:41 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char register_printf_function ();
1998-05-29 15:25:41 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
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
2003-09-22 03:00:21 +00:00
char (*f) () = register_printf_function;
#endif
#ifdef __cplusplus
}
1998-05-29 15:25:41 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != register_printf_function;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_func_register_printf_function=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_func_register_printf_function=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: $ac_cv_func_register_printf_function" >&5
echo "${ECHO_T}$ac_cv_func_register_printf_function" >&6
if test $ac_cv_func_register_printf_function = yes; then
1999-02-05 06:10:49 +00:00
register_printf=1
1998-05-29 15:25:41 +00:00
else
2002-05-02 15:17:54 +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
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-02-05 06:10:49 +00:00
#include "$srcdir/config/config.printf.c"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1999-02-05 06:10:49 +00:00
working_register_printf=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
working_register_printf=0
1999-02-05 06:10:49 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1999-02-05 06:10:49 +00:00
fi
if test $working_register_printf = 1; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HAVE_REGISTER_PRINTF_FUNCTION 1
2002-05-02 15:17:54 +00:00
_ACEOF
1999-02-05 06:10:49 +00:00
fi
fi
1998-05-29 15:25:41 +00:00
1999-07-12 04:21:05 +00:00
#--------------------------------------------------------------------
# This function needed by NSString.
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
1999-07-12 04:21:05 +00:00
for ac_func in realpath
do
2002-05-02 15:17:54 +00:00
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2006-01-11 09:32:13 +00:00
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
For example, HP-UX 11i <limits.h> declares gettimeofday. */
#define $ac_func innocuous_$ac_func
1999-07-12 04:21:05 +00:00
/* System header to define __stub macros and hopefully few prototypes,
2006-01-11 09:32:13 +00:00
which can conflict with char $ac_func (); below.
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
<limits.h> exists even on freestanding compilers. */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
#undef $ac_func
1999-07-12 04:21:05 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
2003-09-22 03:00:21 +00:00
{
2002-05-02 15:17:54 +00:00
#endif
1999-07-12 04:21:05 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char $ac_func ();
1999-07-12 04:21:05 +00:00
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
2003-09-22 03:00:21 +00:00
char (*f) () = $ac_func;
#endif
#ifdef __cplusplus
}
1999-07-12 04:21:05 +00:00
#endif
2003-09-22 03:00:21 +00:00
int
main ()
{
2006-01-11 09:32:13 +00:00
return f != $ac_func;
2002-05-02 15:17:54 +00:00
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_var=yes"
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
eval "$as_ac_var=no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
if test `eval echo '${'$as_ac_var'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
1999-07-12 04:21:05 +00:00
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
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking program_invocation_name in C Library" >&5
echo $ECHO_N "checking program_invocation_name in C Library... $ECHO_C" >&6
if test "${program_invocation_name_worked+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-07-22 14:17:27 +00:00
else
if test "$cross_compiling" = yes; then
program_invocation_name_worked=no
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
1999-07-22 14:17:27 +00:00
#include <string.h>
2002-05-02 15:17:54 +00:00
int
1999-07-22 14:17:27 +00:00
main (int argc, char *argv[])
{
extern char *program_invocation_name;
return (strcmp (program_invocation_name, argv[0]));
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
1999-07-22 14:17:27 +00:00
program_invocation_name_worked=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
program_invocation_name_worked=no
1999-07-22 14:17:27 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1999-07-22 14:17:27 +00:00
fi
fi
if test $program_invocation_name_worked = yes; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HAVE_PROGRAM_INVOCATION_NAME 1
2002-05-02 15:17:54 +00:00
_ACEOF
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
1999-07-22 14:17:27 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
1999-07-22 14:17:27 +00:00
fi
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
# Defines HAVE_PROCFS if the kernel supports the /proc filesystem.
# Needed by NSProcessInfo.m
1999-07-22 14:17:27 +00:00
#--------------------------------------------------------------------
2005-08-12 17:34:19 +00:00
for ac_header in procfs.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2005-08-12 17:34:19 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-08-12 17:34:19 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2005-08-12 17:34:19 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2005-08-12 17:34:19 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2005-08-12 17:34:19 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2005-08-12 17:34:19 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2005-08-12 17:34:19 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2005-08-12 17:34:19 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2005-08-12 17:34:19 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2005-08-12 17:34:19 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2005-08-12 17:34:19 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2005-08-12 17:34:19 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
2001-10-26 02:37:52 +00:00
# Check whether --enable-procfs or --disable-procfs was given.
if test "${enable_procfs+set}" = set; then
enableval="$enable_procfs"
2001-03-01 11:03:39 +00:00
enable_procfs="$enableval"
else
if test "$cross_compiling" = yes; then enable_procfs=cross; else enable_procfs=yes; fi;
2002-05-02 15:17:54 +00:00
fi;
2001-03-01 11:03:39 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking kernel support for /proc filesystem" >&5
echo $ECHO_N "checking kernel support for /proc filesystem... $ECHO_C" >&6
if test "${ac_cv_sys_procfs+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
1999-07-22 14:17:27 +00:00
else
2001-03-01 11:03:39 +00:00
if test "$enable_procfs" = yes; then
2002-05-02 15:17:54 +00:00
# Suggested change for the following line was
2001-03-01 12:39:46 +00:00
# if test -d /proc/0; then
# but it doesn't work on my linux - /proc/0 does not exist, but /proc
# works fine
2003-07-31 23:49:32 +00:00
if (mount | grep 'proc' >/dev/null 2>/dev/null); then
2001-03-01 11:03:39 +00:00
ac_cv_sys_procfs=yes
else
ac_cv_sys_procfs=no
fi
2003-08-29 15:15:32 +00:00
case "$target_os" in
# Solaris has proc, but it is not readable
solaris*) ac_cv_sys_procfs=no;;
2003-10-01 03:55:35 +00:00
irix*) ac_cv_sys_procfs=no;;
# Cygwin does have proc, but it does not show with mount
cygwin*) ac_cv_sys_procfs=yes;;
2003-08-29 15:15:32 +00:00
esac
2001-03-01 11:03:39 +00:00
elif test "$enable_procfs" = cross; then
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: Pass --enable-procfs argument to enable use of /proc filesystem." >&5
echo "$as_me: WARNING: Pass --enable-procfs argument to enable use of /proc filesystem." >&2;}
2001-10-26 02:37:52 +00:00
else
ac_cv_sys_procfs=no
2001-03-01 11:03:39 +00:00
fi
1999-07-22 14:17:27 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_sys_procfs" >&5
echo "${ECHO_T}$ac_cv_sys_procfs" >&6
2001-03-01 11:03:39 +00:00
if test $ac_cv_sys_procfs = yes; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2001-03-01 11:03:39 +00:00
#define HAVE_PROCFS 1
2002-05-02 15:17:54 +00:00
_ACEOF
2001-03-01 11:03:39 +00:00
2000-04-18 21:34:59 +00:00
fi
2001-03-01 11:03:39 +00:00
2005-08-12 17:34:19 +00:00
# Check whether --enable-procfs-psinfo or --disable-procfs-psinfo was given.
if test "${enable_procfs_psinfo+set}" = set; then
enableval="$enable_procfs_psinfo"
enable_procfs_psinfo="$enableval"
else
if test "$cross_compiling" = yes; then enable_procfs_psinfo=cross; else enable_procfs_psinfo=yes; fi;
fi;
echo "$as_me:$LINENO: checking support for /proc psinfo struct" >&5
echo $ECHO_N "checking support for /proc psinfo struct... $ECHO_C" >&6
if test "${ac_cv_sys_procfs_psinfo+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$enable_procfs_psinfo" = yes; then
if test "$cross_compiling" = yes; then
ac_cv_sys_procfs_psinfo=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "$srcdir/config/config.psinfo.c"
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sys_procfs_psinfo=yes
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_sys_procfs_psinfo=no
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2005-08-12 17:34:19 +00:00
fi
elif test "$enable_procfs" = cross; then
{ echo "$as_me:$LINENO: WARNING: Pass --enable-procfs-psinfo argument to enable use of /proc psinfo information." >&5
echo "$as_me: WARNING: Pass --enable-procfs-psinfo argument to enable use of /proc psinfo information." >&2;}
else
ac_cv_sys_procfs_psinfo=no
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sys_procfs_psinfo" >&5
echo "${ECHO_T}$ac_cv_sys_procfs_psinfo" >&6
if test $ac_cv_sys_procfs_psinfo = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_PROCFS_PSINFO 1
_ACEOF
fi
2001-03-01 11:03:39 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking link to exe of process in /proc" >&5
echo $ECHO_N "checking link to exe of process in /proc... $ECHO_C" >&6
if test "${ac_cv_sys_procfs_exe_link+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-03-01 11:03:39 +00:00
else
if test "$ac_cv_sys_procfs" = yes; then
# Linux 2.2.x and up
if test -L /proc/self/exe; then
ac_cv_sys_procfs_exe_link=/proc/self/exe
# FreeBSD 4.x and up
elif test -L /proc/curproc/file; then
ac_cv_sys_procfs_exe_link=/proc/curproc/file
else
ac_cv_sys_procfs_exe_link=no
fi
2001-10-26 02:37:52 +00:00
else
ac_cv_sys_procfs_exe_link=no
2001-03-01 11:03:39 +00:00
fi
2000-04-18 21:34:59 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_sys_procfs_exe_link" >&5
echo "${ECHO_T}$ac_cv_sys_procfs_exe_link" >&6
2001-03-01 11:03:39 +00:00
if test "$ac_cv_sys_procfs_exe_link" != no; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<_ACEOF
2001-03-01 11:03:39 +00:00
#define PROCFS_EXE_LINK "$ac_cv_sys_procfs_exe_link"
2002-05-02 15:17:54 +00:00
_ACEOF
2001-03-01 11:03:39 +00:00
fi
2001-04-21 05:55:16 +00:00
#--------------------------------------------------------------------
# Check if /proc/$$/cmdline terminates the last argument with a nul
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking /proc/$$/cmdline terminated by nul" >&5
echo $ECHO_N "checking /proc/$$/cmdline terminated by nul... $ECHO_C" >&6
2001-04-21 05:55:16 +00:00
if test "$cross_compiling" = yes; then
CMDLINE_TERMINATED=0
else
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-04-21 05:55:16 +00:00
#include "$srcdir/config/config.proccmd.c"
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2001-04-21 05:55:16 +00:00
CMDLINE_TERMINATED=1
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
CMDLINE_TERMINATED=0
2001-04-21 05:55:16 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2001-04-21 05:55:16 +00:00
fi
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<_ACEOF
2001-04-21 05:55:16 +00:00
#define CMDLINE_TERMINATED $CMDLINE_TERMINATED
2002-05-02 15:17:54 +00:00
_ACEOF
2001-04-21 05:55:16 +00:00
if test $CMDLINE_TERMINATED = 1; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2001-04-21 05:55:16 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-04-21 05:55:16 +00:00
fi
2000-05-03 03:14:14 +00:00
#--------------------------------------------------------------------
2003-06-21 13:16:41 +00:00
# If /proc doesn't work, try kvm (on FreeBSD, for instance)
2000-05-03 03:14:14 +00:00
#--------------------------------------------------------------------
2004-05-28 19:44:29 +00:00
have_kvm_env=0
save_LIBS="$LIBS"
2003-06-21 13:16:41 +00:00
echo "$as_me:$LINENO: checking for kvm_getenvv in -lkvm" >&5
echo $ECHO_N "checking for kvm_getenvv in -lkvm... $ECHO_C" >&6
if test "${ac_cv_lib_kvm_kvm_getenvv+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-05-03 03:14:14 +00:00
else
2003-06-21 13:16:41 +00:00
ac_check_lib_save_LIBS=$LIBS
LIBS="-lkvm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2003-06-21 13:16:41 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char kvm_getenvv ();
int
main ()
{
kvm_getenvv ();
;
return 0;
}
2002-05-02 15:17:54 +00:00
_ACEOF
2003-06-21 13:16:41 +00:00
rm -f conftest.$ac_objext conftest$ac_exeext
2002-05-02 15:17:54 +00:00
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003-06-21 13:16:41 +00:00
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2003-06-21 13:16:41 +00:00
ac_cv_lib_kvm_kvm_getenvv=yes
2000-05-03 03:14:14 +00:00
else
2003-06-21 13:16:41 +00:00
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2003-06-21 13:16:41 +00:00
ac_cv_lib_kvm_kvm_getenvv=no
2000-05-03 03:14:14 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2003-06-21 13:16:41 +00:00
LIBS=$ac_check_lib_save_LIBS
2000-05-03 03:14:14 +00:00
fi
2003-06-21 13:16:41 +00:00
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_getenvv" >&5
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_getenvv" >&6
if test $ac_cv_lib_kvm_kvm_getenvv = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBKVM 1
2002-05-02 15:17:54 +00:00
_ACEOF
2000-05-03 03:14:14 +00:00
2003-06-21 13:16:41 +00:00
LIBS="-lkvm $LIBS"
2000-05-03 03:14:14 +00:00
fi
1999-07-22 14:17:27 +00:00
2004-05-28 19:44:29 +00:00
if test "$ac_cv_lib_kvm_kvm_getenvv" = yes; then
echo "$as_me:$LINENO: checking if we can access kernel memory" >&5
echo $ECHO_N "checking if we can access kernel memory... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
have_kvm_env=0
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "$srcdir/config/config.kvmopen.c"
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
have_kvm_env=1
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
have_kvm_env=0
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004-05-28 19:44:29 +00:00
fi
if test $have_kvm_env = 1; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2004-06-14 22:27:22 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_KVM_ENV 1
_ACEOF
2004-05-28 19:44:29 +00:00
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2004-06-14 22:27:22 +00:00
# Reset LIBS since we don't need kvm
LIBS="$save_LIBS"
2004-05-28 19:44:29 +00:00
fi
fi
2003-06-21 13:16:41 +00:00
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
#--------------------------------------------------------------------
2003-09-22 03:00:21 +00:00
PASS_ARG=no
case "$target_os" in
cygwin*) PASS_ARG=yes;;
esac
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking \"use of pass-through arguments\"" >&5
echo $ECHO_N "checking \"use of pass-through arguments\"... $ECHO_C" >&6
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"
2002-05-02 15:17:54 +00:00
2000-06-29 03:51:06 +00:00
else
2003-09-22 03:00:21 +00:00
enable_pass_arguments=$PASS_ARG
2002-05-02 15:17:54 +00:00
fi;
2000-06-29 03:51:06 +00:00
if test "$enable_pass_arguments" = "yes"; then
GS_PASS_ARGUMENTS=1
else
GS_PASS_ARGUMENTS=0
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $enable_pass_arguments" >&5
echo "${ECHO_T}$enable_pass_arguments" >&6
2000-06-29 03:51:06 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking \"use of fake-main definition\"" >&5
echo $ECHO_N "checking \"use of fake-main definition\"... $ECHO_C" >&6
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"
2002-05-02 15:17:54 +00:00
1999-07-22 14:17:27 +00:00
else
enable_fake_main=no
2002-05-02 15:17:54 +00:00
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
2001-04-14 08:45:49 +00:00
freebsd2*) enable_fake_main=yes;;
freebsd*) ;;
2000-06-29 03:51:06 +00:00
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
2005-08-12 17:34:19 +00:00
if test "$objc_load_method_worked" = yes -a \( "$ac_cv_sys_procfs" = yes -o "$have_kvm_env" = 1 -o "$ac_cv_sys_procfs_psinfo" = yes \); then
1999-07-22 14:17:27 +00:00
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
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
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $enable_fake_main" >&5
echo "${ECHO_T}$enable_fake_main" >&6
1999-07-22 14:17:27 +00:00
2004-10-26 19:08:17 +00:00
#--------------------------------------------------------------------
# Simple way to add a bunch of paths to the flags
#--------------------------------------------------------------------
# Check whether --with-include-flags or --without-include-flags was given.
if test "${with_include_flags+set}" = set; then
withval="$with_include_flags"
include_flags="$withval"
else
include_flags="no"
fi;
if test ${include_flags} != "no"; then
CPPFLAGS="$CPPFLAGS ${include_flags}"
INCLUDE_FLAGS="$INCLUDE_FLAGS ${include_flags}"
fi
# Check whether --with-library-flags or --without-library-flags was given.
if test "${with_library_flags+set}" = set; then
withval="$with_library_flags"
library_flags="$withval"
else
library_flags="no"
fi;
if test ${library_flags} != "no"; then
LDFLAGS="$LDFLAGS ${library_flags}"
LDIR_FLAGS="$LDIR_FLAGS ${library_flags}"
fi
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
#--------------------------------------------------------------------
2002-12-10 16:52:01 +00:00
do_enable_libffi=no
# Enable libffi by default on the following machines
case "$target_os" in
darwin*) do_enable_libffi=yes;;
esac
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"
2002-05-02 15:17:54 +00:00
2000-12-08 19:06:00 +00:00
else
2002-12-10 16:52:01 +00:00
enable_libffi=$do_enable_libffi
2002-05-02 15:17:54 +00:00
fi;
2002-02-20 05:08:46 +00:00
2000-12-08 19:06:00 +00:00
# Check whether --enable-ffcall or --disable-ffcall was given.
if test "${enable_ffcall+set}" = set; then
enableval="$enable_ffcall"
else
2002-05-02 15:17:54 +00:00
enable_ffcall=yes
fi;
2003-03-28 20:03:06 +00:00
# Check whether --enable-do or --disable-do was given.
if test "${enable_do+set}" = set; then
enableval="$enable_do"
else
enable_do=yes
fi;
2003-08-20 03:50:16 +00:00
# DO isn't used on apple-apple-apple
if test $LIBRARY_COMBO = apple-apple-apple; then
enable_do=no
fi
2003-06-18 14:43:32 +00:00
2004-07-15 03:09:21 +00:00
# Check whether --with-ffi-include or --without-ffi-include was given.
if test "${with_ffi_include+set}" = set; then
withval="$with_ffi_include"
ffi_incdir="$withval"
2003-06-18 14:43:32 +00:00
else
2004-07-15 03:09:21 +00:00
ffi_incdir="no"
2003-06-18 14:43:32 +00:00
fi;
2004-07-15 03:09:21 +00:00
if test ${ffi_incdir} != "no"; then
2004-10-26 19:08:17 +00:00
CPPFLAGS="$CPPFLAGS -I${ffi_incdir}"
INCLUDE_FLAGS="$INCLUDE_FLAGS -I${ffi_incdir}"
2003-06-18 14:43:32 +00:00
fi
2004-07-15 03:09:21 +00:00
# Check whether --with-ffi-library or --without-ffi-library was given.
if test "${with_ffi_library+set}" = set; then
withval="$with_ffi_library"
ffi_libdir="$withval"
2003-06-18 14:43:32 +00:00
else
2004-07-15 03:09:21 +00:00
ffi_libdir="no"
2003-06-18 14:43:32 +00:00
fi;
2004-07-15 03:09:21 +00:00
if test ${ffi_libdir} != "no"; then
2006-01-18 08:02:51 +00:00
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${ffi_libdir} -Wl,-R${ffi_libdir}"
2006-01-18 22:20:13 +00:00
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${ffi_libdir} -L${ffi_libdir}";;
2006-01-18 08:02:51 +00:00
*)
LDFLAGS="$LDFLAGS -L${ffi_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -L${ffi_libdir}";;
esac
2003-06-18 14:43:32 +00:00
fi
2002-05-02 15:17:54 +00:00
if test "${ac_cv_header_ffi_h+set}" = set; then
echo "$as_me:$LINENO: checking for ffi.h" >&5
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
if test "${ac_cv_header_ffi_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking ffi.h usability" >&5
echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
2000-12-08 19:06:00 +00:00
#include <ffi.h>
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking ffi.h presence" >&5
echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <ffi.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for ffi.h" >&5
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
if test "${ac_cv_header_ffi_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_ffi_h=$ac_header_preproc
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
if test $ac_cv_header_ffi_h = yes; then
2003-10-25 03:04:07 +00:00
have_libffi=yes
2000-12-08 19:06:00 +00:00
else
2003-10-25 03:04:07 +00:00
have_libffi=no
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
for ac_header in callback.h
2000-12-08 19:06:00 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2003-10-25 03:04:07 +00:00
have_ffcall=yes
2000-12-08 19:06:00 +00:00
else
2003-10-25 03:04:07 +00:00
have_ffcall=no
2000-12-08 19:06:00 +00:00
fi
2002-05-02 15:17:54 +00:00
2000-12-08 19:06:00 +00:00
done
2003-10-25 17:50:45 +00:00
if test $have_ffcall = no; then
2003-10-25 03:04:07 +00:00
enable_ffcall=no
# If we don't have ffcall but do have libffi, use libffi
2003-10-25 17:50:45 +00:00
if test $have_libffi = yes; then
2003-10-25 03:04:07 +00:00
enable_libffi=yes
fi
fi
2003-10-25 17:50:45 +00:00
if test $have_libffi = no; then
2003-10-25 03:04:07 +00:00
enable_libffi=no
fi
2003-08-24 02:46:30 +00:00
have_forward_hook=yes
2004-12-13 04:39:55 +00:00
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
2003-08-24 02:46:30 +00:00
echo "$as_me:$LINENO: checking \"for forwarding callback in runtime\"" >&5
echo $ECHO_N "checking \"for forwarding callback in runtime\"... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2004-12-08 16:22:51 +00:00
#include "$srcdir/config/config.forward.m"
2003-08-24 02:46:30 +00:00
_ACEOF
2004-12-08 16:22:51 +00:00
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2004-12-08 16:22:51 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-12-08 16:22:51 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2004-12-08 16:22:51 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
have_forward_hook=yes
2003-08-24 02:46:30 +00:00
else
2004-12-08 16:22:51 +00:00
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
2003-08-24 02:46:30 +00:00
2004-12-08 16:22:51 +00:00
have_forward_hook=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2004-12-08 16:22:51 +00:00
echo "$as_me:$LINENO: result: $have_forward_hook" >&5
echo "${ECHO_T}$have_forward_hook" >&6
2003-08-20 03:50:16 +00:00
if test $have_forward_hook = no; then
enable_libffi=no
enable_ffcall=no
fi
2004-12-13 04:39:55 +00:00
CPPFLAGS="$saved_CPPFLAGS"
2000-12-08 19:06:00 +00:00
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking \"FFI library usage\"" >&5
echo $ECHO_N "checking \"FFI library usage\"... $ECHO_C" >&6
2000-12-08 19:06:00 +00:00
WITH_FFI=none
if test $enable_libffi = yes; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define USE_LIBFFI 1
2002-05-02 15:17:54 +00:00
_ACEOF
2000-12-08 19:06:00 +00:00
WITH_FFI=libffi
2004-10-26 19:08:17 +00:00
LIBS="-lffi $LIBS"
2004-11-30 04:25:38 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ffi.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2004-11-30 04:25:38 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-11-30 04:25:38 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2004-11-30 04:25:38 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ffi_ok="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ffi_ok="no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2004-11-30 04:25:38 +00:00
if test $ffi_ok = yes; then
echo "$as_me:$LINENO: result: libffi" >&5
2002-05-02 15:17:54 +00:00
echo "${ECHO_T}libffi" >&6
2004-11-30 04:25:38 +00:00
fi
2000-12-08 19:06:00 +00:00
elif test $enable_ffcall = yes; then
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define USE_FFCALL 1
2002-05-02 15:17:54 +00:00
_ACEOF
2000-12-08 19:06:00 +00:00
WITH_FFI=ffcall
2004-10-26 19:08:17 +00:00
LIBS="-lcallback -lavcall $LIBS"
2004-11-30 04:25:38 +00:00
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <callback.h>
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2004-11-30 04:25:38 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-11-30 04:25:38 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2004-11-30 04:25:38 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ffi_ok="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ffi_ok="no"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2004-11-30 04:25:38 +00:00
if test $ffi_ok = yes; then
echo "$as_me:$LINENO: result: ffcall" >&5
2002-05-02 15:17:54 +00:00
echo "${ECHO_T}ffcall" >&6
2004-11-30 04:25:38 +00:00
fi
2000-12-08 19:06:00 +00:00
else
2004-11-30 04:25:38 +00:00
ffi_ok=no
fi
if test $ffi_ok = no; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
2003-03-28 20:03:06 +00:00
echo
2003-10-29 05:07:45 +00:00
if test $have_forward_hook = no; then
echo "You do not have an up-to-date libobjc library installed"
else
2004-11-30 04:25:38 +00:00
echo "You do not have either ffcall or libffi installed, or configure needs"
echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them"
2003-10-29 05:07:45 +00:00
fi
2003-08-20 03:50:16 +00:00
echo "GNUstep requires ffcall or libffi and proper libobjc hooks to do"
echo "invocations and DO."
2003-10-29 05:07:45 +00:00
echo "(This does not apply on apple-apple-apple systems where DO is"
echo "not compatible with other GNUstep systems.)"
2003-03-28 20:03:06 +00:00
if test $enable_do = yes; then
echo
2003-08-20 03:50:16 +00:00
echo "You most likely do not want to build base without DO support. Many"
2003-03-28 20:03:06 +00:00
echo "things, including all applications, won't work at all without DO."
echo "If you really want to build -base without DO support, add --disable-do"
echo "to the configure arguments."
echo "For more information, read the GNUstep build guide, ffcall section:"
2003-04-07 11:28:53 +00:00
echo "http://documents.made-it.com/GNUstep/buildguide.html#FOREIGN.FUNCTION.INTERFACES"
2003-08-20 03:50:16 +00:00
{ { echo "$as_me:$LINENO: error: Incomplete support for ffi functionality." >&5
echo "$as_me: error: Incomplete support for ffi functionality." >&2;}
2003-03-28 20:03:06 +00:00
{ (exit 1); exit 1; }; }
fi
2003-08-20 03:50:16 +00:00
{ echo "$as_me:$LINENO: WARNING: Incomplete support for ffi funtionality." >&5
echo "$as_me: WARNING: Incomplete support for ffi funtionality." >&2;}
2000-12-08 19:06:00 +00:00
fi
2005-02-16 14:45:07 +00:00
#--------------------------------------------------------------------
# Check for iconv support (for Unicode conversion).
#--------------------------------------------------------------------
# Do this before checking for xml2, as xml2 may require iconv.
#
# We need to find an iconv library that matches the installed iconv.h header
# (if any). It is important to check header/library compatibility. It's
# fairly common to have iconv support both in libc and from libiconv. In that
# case, a naive check that iconv() is in libc will succeed, but if we use
# libiconv's iconv.h, it will redefine iconv() to functions that exist
# only in libiconv, and we'll get link errors.
#
# First, check if there's a working iconv in libc (ie. if the test program
# compiles and links without any extra flags).
echo "$as_me:$LINENO: checking iconv support" >&5
echo $ECHO_N "checking iconv support... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#include <iconv.h>
int main(int argc,char **argv) { iconv_open("foo","bar"); }
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2005-02-16 14:45:07 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-02-16 14:45:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2005-02-16 14:45:07 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
# libc has a working iconv.
cat >>confdefs.h <<\_ACEOF
#define HAVE_ICONV 1
_ACEOF
echo "$as_me:$LINENO: result: yes, in libc" >&5
echo "${ECHO_T}yes, in libc" >&6
found_iconv=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
found_iconv=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2005-02-16 14:45:07 +00:00
if test $found_iconv = no ; then
# libc doesn't have a working iconv. Try adding -liconv and any user
# supplied directory.
# 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;
if test "$libiconv_libdir" != "no"; then
2006-01-18 08:02:51 +00:00
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${libiconv_libdir} -Wl,-R${libiconv_libdir}"
2006-01-18 22:20:13 +00:00
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${libiconv_libdir} -L${libiconv_libdir}";;
2006-01-18 08:02:51 +00:00
*)
LDFLAGS="$LDFLAGS -L${libiconv_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -L${libiconv_libdir}";;
esac
2005-02-16 14:45:07 +00:00
fi
old_LIBS="$LIBS"
LIBS="-liconv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#include <iconv.h>
int main(int argc,char **argv) { iconv_open("foo","bar"); }
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2005-02-16 14:45:07 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-02-16 14:45:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2005-02-16 14:45:07 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
# -liconv works.
cat >>confdefs.h <<\_ACEOF
#define HAVE_ICONV 1
_ACEOF
echo "$as_me:$LINENO: result: yes, -liconv" >&5
echo "${ECHO_T}yes, -liconv" >&6
found_iconv=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
found_iconv=no
LIBS="$old_LIBS"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2005-02-16 14:45:07 +00:00
fi
if test $found_iconv = no ; then
# -liconv didn't work. Try giconv.h and -lgiconv.
# BSDs install this lib as libgiconv.
old_LIBS="$LIBS"
LIBS="-lgiconv $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#include <giconv.h>
int main(int argc,char **argv) { iconv_open("foo","bar"); }
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2005-02-16 14:45:07 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2005-02-16 14:45:07 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2005-02-16 14:45:07 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_ICONV 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define HAVE_GICONV 1
_ACEOF
echo "$as_me:$LINENO: result: yes, -lgiconv" >&5
echo "${ECHO_T}yes, -lgiconv" >&6
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$old_LIBS"
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2005-02-16 14:45:07 +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
2004-01-25 19:57:10 +00:00
# Check whether --enable-xml or --disable-xml was given.
if test "${enable_xml+set}" = set; then
enableval="$enable_xml"
else
enable_xml=yes
fi;
2004-05-07 11:20:18 +00:00
if test $enable_xml = yes; then
# Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
# of the success of the macro.
saved_LIBS="$LIBS"
saved_CFLAGS="$CFLAGS"
2001-01-31 19:02:09 +00:00
2002-05-02 15:17:54 +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=""
2002-05-02 15:17:54 +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"
2002-05-02 15:17:54 +00:00
2000-10-28 21:58:48 +00:00
else
2001-01-05 10:12:17 +00:00
enable_xmltest=yes
2002-05-02 15:17:54 +00:00
fi;
2000-10-28 21:58:48 +00:00
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"
2005-08-12 17:34:19 +00:00
if test x${XML2_CONFIG+set} != xset ; then
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
fi
2001-01-05 10:12:17 +00:00
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-04-17 04:10:03 +00:00
# Extract the first word of "xml2-config", so it can be a program name with args.
set dummy xml2-config; ac_word=$2
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-04-17 04:10:03 +00:00
else
2002-05-02 15:17:54 +00:00
case $XML2_CONFIG in
[\\/]* | ?:[\\/]*)
2001-04-17 04:10:03 +00:00
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
;;
*)
2002-05-02 15:17:54 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2001-04-17 04:10:03 +00:00
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
;;
esac
fi
2002-05-02 15:17:54 +00:00
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
2001-04-17 04:10:03 +00:00
if test -n "$XML2_CONFIG"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
echo "${ECHO_T}$XML2_CONFIG" >&6
2001-04-17 04:10:03 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-04-17 04:10:03 +00:00
fi
if test "$XML2_CONFIG" = "no" ; then
# Extract the first word of "xml-config", so it can be a program name with args.
set dummy xml-config; ac_word=$2
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_XML_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-06-20 13:17:22 +00:00
else
2002-05-02 15:17:54 +00:00
case $XML_CONFIG in
[\\/]* | ?:[\\/]*)
2001-01-05 10:12:17 +00:00
ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path.
;;
*)
2002-05-02 15:17:54 +00:00
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
2001-01-05 10:12:17 +00:00
test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no"
;;
esac
2000-06-20 13:17:22 +00:00
fi
2002-05-02 15:17:54 +00:00
XML_CONFIG=$ac_cv_path_XML_CONFIG
2001-01-05 10:12:17 +00:00
if test -n "$XML_CONFIG"; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $XML_CONFIG" >&5
echo "${ECHO_T}$XML_CONFIG" >&6
2000-06-20 13:17:22 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2000-12-26 23:03:42 +00:00
fi
2001-01-05 10:12:17 +00:00
2001-04-17 04:10:03 +00:00
else
XML_CONFIG=$XML2_CONFIG
fi
2002-08-11 08:55:08 +00:00
min_xml_version=2.3.0
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
2001-01-05 10:12:17 +00:00
no_xml=""
if test "$XML_CONFIG" = "no" ; then
2005-02-16 14:45:07 +00:00
XML_CFLAGS=""
XML_LIBS="-lxml2"
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"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
#include <stdio.h>
#include <libxml/xmlversion.h>
#include <libxml/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 > 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;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
no_xml=yes
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2005-02-16 14:45:07 +00:00
fi
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
2001-01-05 10:12:17 +00:00
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/'`
2002-10-02 02:26:25 +00:00
# Strip '-L/usr/lib' off since this is always in the link path.
XML_LIBS=`echo $XML_LIBS | sed -e 's|-L/usr/lib||'`
2001-01-05 10:12:17 +00:00
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
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2001-01-05 10:12:17 +00:00
#include <stdlib.h>
#include <stdio.h>
2002-07-04 03:21:51 +00:00
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
2001-01-05 10:12:17 +00:00
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))
{
2002-05-02 15:17:54 +00:00
printf("\n*** 'xml-config --version' returned %d.%d.%d, but libxml (%d.%d.%d)\n",
2001-01-05 10:12:17 +00:00
$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;
}
2002-05-02 15:17:54 +00:00
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
2001-01-05 10:12:17 +00:00
:
2000-06-20 13:17:22 +00:00
else
2002-05-02 15:17:54 +00:00
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
( exit $ac_status )
no_xml=yes
2000-06-20 13:17:22 +00:00
fi
2006-01-11 09:32:13 +00:00
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
2001-01-05 10:12:17 +00:00
enable_libxml=yes
else
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
2001-01-05 10:12:17 +00:00
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
2002-05-02 15:17:54 +00:00
2001-01-05 10:12:17 +00:00
rm -f conf.xmltest
2004-05-07 11:20:18 +00:00
if test $enable_libxml = yes; then
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
INCLUDE_FLAGS="$INCLUDE_FLAGS $XML_CFLAGS"
2004-10-26 19:08:17 +00:00
LIBS="$XML_LIBS $LIBS"
2004-05-07 11:20:18 +00:00
HAVE_LIBXML=1
2002-05-02 15:17:54 +00:00
cat >>confdefs.h <<\_ACEOF
2002-05-07 22:16:08 +00:00
#define HAVE_LIBXML 1
2002-05-02 15:17:54 +00:00
_ACEOF
2001-01-05 10:12:17 +00:00
2004-05-18 09:55:33 +00:00
for ac_header in libxml/SAX2.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2004-05-18 09:55:33 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-05-18 09:55:33 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2004-05-18 09:55:33 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2004-05-18 09:55:33 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2004-05-18 09:55:33 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2004-05-18 09:55:33 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2004-05-18 09:55:33 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2004-05-18 09:55:33 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2004-05-18 09:55:33 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2004-05-18 09:55:33 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2004-05-18 09:55:33 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2004-05-18 09:55:33 +00:00
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
2004-05-07 11:20:18 +00:00
#--------------------------------------------------------------------
# Check for (optional) libxslt
#--------------------------------------------------------------------
# Check whether --enable-xslt or --disable-xslt was given.
2004-03-29 04:05:44 +00:00
if test "${enable_xslt+set}" = set; then
enableval="$enable_xslt"
else
2004-05-07 11:20:18 +00:00
enable_xslt=yes
2004-03-29 04:05:44 +00:00
fi;
2004-05-07 11:20:18 +00:00
if test $enable_xslt = yes; then
echo "$as_me:$LINENO: checking for xsltApplyStylesheet in -lxslt" >&5
2004-03-28 04:42:11 +00:00
echo $ECHO_N "checking for xsltApplyStylesheet in -lxslt... $ECHO_C" >&6
if test "${ac_cv_lib_xslt_xsltApplyStylesheet+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lxslt $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char xsltApplyStylesheet ();
int
main ()
{
xsltApplyStylesheet ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2004-03-28 04:42:11 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-03-28 04:42:11 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2004-03-28 04:42:11 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_xslt_xsltApplyStylesheet=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_lib_xslt_xsltApplyStylesheet=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2004-03-28 04:42:11 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltApplyStylesheet" >&5
echo "${ECHO_T}$ac_cv_lib_xslt_xsltApplyStylesheet" >&6
if test $ac_cv_lib_xslt_xsltApplyStylesheet = yes; then
xslt_ok=yes
else
xslt_ok=no
fi
2004-05-07 11:20:18 +00:00
if test "$xslt_ok" = "yes"; then
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
2004-03-28 04:42:11 +00:00
echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <libxslt/xslt.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2004-03-28 04:42:11 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-03-28 04:42:11 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2004-03-28 04:42:11 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2004-03-28 04:42:11 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <libxslt/xslt.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2004-03-28 04:42:11 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2004-03-28 04:42:11 +00:00
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2004-03-28 04:42:11 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2004-03-28 04:42:11 +00:00
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
2004-03-28 04:42:11 +00:00
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
2004-03-28 04:42:11 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2004-03-28 04:42:11 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
esac
echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_header_libxslt_xslt_h=$ac_header_preproc
fi
echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
fi
if test $ac_cv_header_libxslt_xslt_h = yes; then
xslthdr_ok=yes
else
xslthdr_ok=no
fi
2004-05-07 11:20:18 +00:00
if test "$xslthdr_ok" = "no"; then
xslt_ok=no
fi
fi
if test "$xslt_ok" = "yes"; then
HAVE_LIBXSLT=1
2004-03-28 04:42:11 +00:00
cat >>confdefs.h <<\_ACEOF
#define HAVE_LIBXSLT 1
_ACEOF
2004-10-26 19:08:17 +00:00
LIBS="-lxslt $LIBS"
2004-05-07 11:20:18 +00:00
else
echo
echo "You most likely do not want to build base without XSLT support."
2005-02-16 14:45:07 +00:00
echo "If you really want to build -base without XSLT support,"
echo "add --disable-xslt to the configure arguments."
2004-05-07 11:20:18 +00:00
{ echo "$as_me:$LINENO: WARNING: Missing support for XSLT functionality." >&5
echo "$as_me: WARNING: Missing support for XSLT functionality." >&2;}
fi
else
HAVE_LIBXSLT=0
{ echo "$as_me:$LINENO: WARNING: Disabled support for XSLT funtionality." >&5
echo "$as_me: WARNING: Disabled support for XSLT funtionality." >&2;}
fi
else
HAVE_LIBXML=0
# Restore the CFLAGS and LIBS because AM_PATH_XML messes them
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
2004-03-29 04:05:44 +00:00
echo
2004-05-07 11:20:18 +00:00
echo "You most likely do not want to build base without XML support."
echo "For instance, MacOS-X compatible property lists require XML."
2005-02-16 14:45:07 +00:00
echo "If you really want to build -base without XML support,"
echo "add --disable-xml to the configure arguments."
2004-05-07 11:20:18 +00:00
{ { echo "$as_me:$LINENO: error: Missing support for XML functionality." >&5
echo "$as_me: error: Missing support for XML functionality." >&2;}
2004-03-29 04:05:44 +00:00
{ (exit 1); exit 1; }; }
2004-03-28 04:42:11 +00:00
fi
2004-05-07 11:20:18 +00:00
else
{ echo "$as_me:$LINENO: WARNING: Disabled support for XML funtionality." >&5
echo "$as_me: WARNING: Disabled support for XML funtionality." >&2;}
HAVE_LIBXML=0
2004-03-28 04:42:11 +00:00
fi
2000-11-18 08:54:32 +00:00
#--------------------------------------------------------------------
# Check GMP for NSDecimal
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
2000-11-18 08:54:32 +00:00
# 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"
2002-05-02 15:17:54 +00:00
fi;
2000-11-18 08:54:32 +00:00
# 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"
2002-05-02 15:17:54 +00:00
fi;
2000-11-18 08:54:32 +00:00
libs_temp=$LIBS
if test "$gmp_incdir" != "no"; then
CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
2002-11-27 17:15:39 +00:00
INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gmp_incdir"
2000-11-18 08:54:32 +00:00
fi
if test "$gmp_libdir" != "no"; then
2006-01-18 08:02:51 +00:00
case "$target_os" in
netbsd*)
LDFLAGS="$LDFLAGS -L${gmp_libdir} -Wl,-R${gmp_libdir}"
2006-01-18 22:20:13 +00:00
LDIR_FLAGS="$LDIR_FLAGS -Wl,-R${gmp_libdir} -L${gmp_libdir}";;
2006-01-18 08:02:51 +00:00
*)
LDFLAGS="$LDFLAGS -L${gmp_libdir}"
LDIR_FLAGS="$LDIR_FLAGS -L${gmp_libdir}";;
esac
2000-11-18 08:54:32 +00:00
fi
2002-05-22 14:37:21 +00:00
USE_GMP=0
2002-05-02 15:17:54 +00:00
for ac_header in gmp.h
2000-11-18 08:54:32 +00:00
do
2002-05-02 15:17:54 +00:00
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
else
# Is the header compilable?
echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_compile) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_compiler=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6
# Is the header present?
echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
#include <$ac_header>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
2003-09-22 03:00:21 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
2002-05-02 15:17:54 +00:00
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
2006-01-11 09:32:13 +00:00
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2002-05-02 15:17:54 +00:00
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_header_preproc=no
fi
rm -f conftest.err conftest.$ac_ext
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6
# So? What about this header?
2006-01-11 09:32:13 +00:00
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
yes:no: )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
ac_header_preproc=yes
2003-09-22 03:00:21 +00:00
;;
2006-01-11 09:32:13 +00:00
no:yes:* )
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2003-09-22 03:00:21 +00:00
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2006-01-11 09:32:13 +00:00
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2003-09-22 03:00:21 +00:00
(
cat <<\_ASBOX
2006-01-11 09:32:13 +00:00
## ------------------------------------------ ##
## Report this to the AC_PACKAGE_NAME lists. ##
## ------------------------------------------ ##
2003-09-22 03:00:21 +00:00
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
2002-05-02 15:17:54 +00:00
esac
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
2006-01-11 09:32:13 +00:00
eval "$as_ac_Header=\$ac_header_preproc"
2000-11-18 08:54:32 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2000-11-18 08:54:32 +00:00
fi
2002-05-02 15:17:54 +00:00
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
2000-11-18 08:54:32 +00:00
fi
2002-05-02 15:17:54 +00:00
2000-11-18 08:54:32 +00:00
done
2001-06-11 15:38:22 +00:00
if test $ac_cv_header_gmp_h = yes; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for mpf_abs in -lgmp" >&5
echo $ECHO_N "checking for mpf_abs in -lgmp... $ECHO_C" >&6
if test "${ac_cv_lib_gmp_mpf_abs+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2000-11-18 08:54:32 +00:00
else
2002-05-02 15:17:54 +00:00
ac_check_lib_save_LIBS=$LIBS
2000-11-18 08:54:32 +00:00
LIBS="-lgmp $LIBS"
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
2000-11-18 08:54:32 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
#endif
2000-11-18 08:54:32 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char mpf_abs ();
int
main ()
{
mpf_abs ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_gmp_mpf_abs=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_lib_gmp_mpf_abs=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpf_abs" >&5
echo "${ECHO_T}$ac_cv_lib_gmp_mpf_abs" >&6
if test $ac_cv_lib_gmp_mpf_abs = yes; then
2001-01-25 17:38:07 +00:00
gmp_ok=yes
else
2002-05-02 15:17:54 +00:00
gmp_ok=no
2001-01-25 17:38:07 +00:00
fi
if test "$gmp_ok" = no; then
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for __gmpf_abs in -lgmp" >&5
echo $ECHO_N "checking for __gmpf_abs in -lgmp... $ECHO_C" >&6
if test "${ac_cv_lib_gmp___gmpf_abs+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
2001-01-25 17:38:07 +00:00
else
2002-05-02 15:17:54 +00:00
ac_check_lib_save_LIBS=$LIBS
2001-01-25 17:38:07 +00:00
LIBS="-lgmp $LIBS"
2002-05-02 15:17:54 +00:00
cat >conftest.$ac_ext <<_ACEOF
2003-09-22 03:00:21 +00:00
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
2002-05-02 15:17:54 +00:00
2001-01-25 17:38:07 +00:00
/* Override any gcc2 internal prototype to avoid an error. */
2002-05-02 15:17:54 +00:00
#ifdef __cplusplus
extern "C"
#endif
2001-01-25 17:38:07 +00:00
/* We use char because int might match the return type of a gcc2
2002-05-02 15:17:54 +00:00
builtin and then its argument prototype would still apply. */
char __gmpf_abs ();
int
main ()
{
__gmpf_abs ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2002-05-02 15:17:54 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2002-05-02 15:17:54 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_lib_gmp___gmpf_abs=yes
else
echo "$as_me: failed program was:" >&5
2003-09-22 03:00:21 +00:00
sed 's/^/| /' conftest.$ac_ext >&5
2002-05-02 15:17:54 +00:00
ac_cv_lib_gmp___gmpf_abs=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2002-05-02 15:17:54 +00:00
LIBS=$ac_check_lib_save_LIBS
fi
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpf_abs" >&5
echo "${ECHO_T}$ac_cv_lib_gmp___gmpf_abs" >&6
if test $ac_cv_lib_gmp___gmpf_abs = yes; then
2000-11-18 08:54:32 +00:00
gmp_ok=yes
else
2002-05-02 15:17:54 +00:00
gmp_ok=no
2000-11-18 08:54:32 +00:00
fi
2001-01-25 17:38:07 +00:00
fi
2000-11-18 08:54:32 +00:00
if test "$gmp_ok" = yes; then
2004-10-26 19:08:17 +00:00
LIBS="-lgmp $LIBS"
2002-05-22 14:37:21 +00:00
USE_GMP=1
2000-11-18 08:54:32 +00:00
fi
fi
2004-02-18 04:03:24 +00:00
#--------------------------------------------------------------------
# Check whether nl_langinfo(CODESET) is supported, needed by Unicode.m.
#--------------------------------------------------------------------
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <langinfo.h>
int
main ()
{
char* cs = nl_langinfo(CODESET);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2006-01-11 09:32:13 +00:00
(eval $ac_link) 2>conftest.er1
2004-02-18 04:03:24 +00:00
ac_status=$?
2006-01-11 09:32:13 +00:00
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
2004-02-18 04:03:24 +00:00
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
2006-01-11 09:32:13 +00:00
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
2004-02-18 04:03:24 +00:00
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
am_cv_langinfo_codeset=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
am_cv_langinfo_codeset=no
fi
2006-01-11 09:32:13 +00:00
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
2004-02-18 04:03:24 +00:00
fi
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
if test $am_cv_langinfo_codeset = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LANGINFO_CODESET 1
_ACEOF
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
2002-05-02 15:17:54 +00:00
2004-10-26 19:08:17 +00:00
#--------------------------------------------------------------------
# Configure flags from sub-configure runs, so they show up in our
# help file.
#--------------------------------------------------------------------
# Check whether --enable-openssl or --disable-openssl was given.
if test "${enable_openssl+set}" = set; then
enableval="$enable_openssl"
else
enable_openssl=yes
fi;
# 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;
2002-05-02 15:17:54 +00:00
subdirs="$subdirs Source/mframe SSL"
1999-01-02 18:29:44 +00:00
2000-09-13 14:19:43 +00:00
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: checking for the version of gnustep-base we are compiling" >&5
echo $ECHO_N "checking for the version of gnustep-base we are compiling... $ECHO_C" >&6
2000-09-13 14:19:43 +00:00
if test -f "Version"; then
2001-02-27 02:58:57 +00:00
. ./Version
2000-09-13 14:19:43 +00:00
fi
2002-05-02 15:17:54 +00:00
echo "$as_me:$LINENO: result: $VERSION" >&5
echo "${ECHO_T}$VERSION" >&6
2000-09-13 14:19:43 +00:00
1998-02-09 19:06:40 +00:00
#--------------------------------------------------------------------
# Write the Makefiles
#--------------------------------------------------------------------
2003-09-22 03:00:21 +00:00
ac_config_files="$ac_config_files config.mak base.make Headers/Additions/GNUstepBase/GSConfig.h Headers/Additions/GNUstepBase/preface.h"
2002-05-02 15:17:54 +00:00
cat >confcache <<\_ACEOF
1998-02-09 19:06:40 +00:00
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
2002-05-02 15:17:54 +00:00
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
1998-02-09 19:06:40 +00:00
#
2002-05-02 15:17:54 +00:00
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
1998-02-09 19:06:40 +00:00
#
2003-09-22 03:00:21 +00:00
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2002-05-02 15:17:54 +00:00
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
_ACEOF
1998-02-09 19:06:40 +00:00
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
2002-05-02 15:17:54 +00:00
{
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
2006-01-11 09:32:13 +00:00
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2002-05-02 15:17:54 +00:00
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n \
2006-01-11 09:32:13 +00:00
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2002-05-02 15:17:54 +00:00
;;
esac;
} |
sed '
t clear
: clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
: end' >>confcache
2003-09-22 03:00:21 +00:00
if diff $cache_file confcache >/dev/null 2>&1; then :; else
1998-02-09 19:06:40 +00:00
if test -w $cache_file; then
2002-05-02 15:17:54 +00:00
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cat confcache >$cache_file
1998-02-09 19:06:40 +00:00
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2002-05-02 15:17:54 +00:00
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
1998-02-09 19:06:40 +00:00
if test "x$srcdir" = x.; then
2006-01-11 09:32:13 +00:00
ac_vpsub='/^[ ]*VPATH[ ]*=/{
2002-05-02 15:17:54 +00:00
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
2006-01-11 09:32:13 +00:00
s/^\([^=]*=[ ]*\):*/\1/;
2002-05-02 15:17:54 +00:00
s/:*$//;
2006-01-11 09:32:13 +00:00
s/^[^=]*=[ ]*$//;
2002-05-02 15:17:54 +00:00
}'
1998-02-09 19:06:40 +00:00
fi
DEFS=-DHAVE_CONFIG_H
2003-09-22 03:00:21 +00:00
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
ac_i=`echo "$ac_i" |
2006-01-11 09:32:13 +00:00
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2003-09-22 03:00:21 +00:00
# 2. Add them.
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
1998-02-09 19:06:40 +00:00
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
2002-05-02 15:17:54 +00:00
# configure, is in config.log if it exists.
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
debug=false
2003-09-22 03:00:21 +00:00
ac_cs_recheck=false
ac_cs_silent=false
2002-05-02 15:17:54 +00:00
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
2003-09-22 03:00:21 +00:00
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
2002-05-02 15:17:54 +00:00
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
2006-01-11 09:32:13 +00:00
DUALCASE=1; export DUALCASE # for MKS sh
2002-05-02 15:17:54 +00:00
# Support unset when possible.
2006-01-11 09:32:13 +00:00
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
as_unset=unset
else
as_unset=false
fi
2003-09-22 03:00:21 +00:00
# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
2006-01-11 09:32:13 +00:00
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2003-09-22 03:00:21 +00:00
eval $as_var=C; export $as_var
else
$as_unset $as_var
fi
done
# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
2002-05-02 15:17:54 +00:00
# Name of the executable.
2003-09-22 03:00:21 +00:00
as_me=`$as_basename "$0" ||
2002-05-02 15:17:54 +00:00
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
. : '\(.\)' 2>/dev/null ||
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
2003-09-22 03:00:21 +00:00
2002-05-02 15:17:54 +00:00
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
2003-09-22 03:00:21 +00:00
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
2003-09-22 03:00:21 +00:00
rm -f conf$$.sh
2002-05-02 15:17:54 +00:00
fi
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" || {
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
;;
1998-02-09 19:06:40 +00:00
esac
2002-05-02 15:17:54 +00:00
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for as_base in sh bash ksh sh5; do
case $as_dir in
/*)
if ("$as_dir/$as_base" -c '
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2003-09-22 03:00:21 +00:00
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2002-05-02 15:17:54 +00:00
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
fi;;
esac
done
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00:00
;;
esac
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '=' <$as_myself |
sed '
N
s,$,-,
: loop
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
t loop
s,-$,,
s,^['$as_cr_digits']*\n,,
' >$as_me.lineno &&
chmod +x $as_me.lineno ||
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
. ./$as_me.lineno
# Exit status is that of the last command.
exit
}
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conf$$.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
as_ln_s='ln -s'
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file
2003-09-22 03:00:21 +00:00
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
2006-01-11 09:32:13 +00:00
test -d ./-p && rmdir ./-p
2003-09-22 03:00:21 +00:00
as_mkdir_p=false
fi
2002-05-02 15:17:54 +00:00
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
2006-01-11 09:32:13 +00:00
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2002-05-02 15:17:54 +00:00
# Sed expression to map a string onto a valid variable name.
2006-01-11 09:32:13 +00:00
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2002-05-02 15:17:54 +00:00
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" $as_nl"
# CDPATH.
2003-09-22 03:00:21 +00:00
$as_unset CDPATH
2002-05-02 15:17:54 +00:00
exec 6>&1
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. Logging --version etc. is OK.
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF
This file was extended by $as_me, which was
2006-01-11 09:32:13 +00:00
generated by GNU Autoconf 2.59. Invocation command line was
2002-05-02 15:17:54 +00:00
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
_ACEOF
# Files that config.status was made for.
if test -n "$ac_config_files"; then
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi
if test -n "$ac_config_headers"; then
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi
if test -n "$ac_config_links"; then
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi
if test -n "$ac_config_commands"; then
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi
cat >>$CONFIG_STATUS <<\_ACEOF
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
Usage: $0 [OPTIONS] [FILE]...
-h, --help print this help, then exit
-V, --version print version number, then exit
2003-09-22 03:00:21 +00:00
-q, --quiet do not print progress messages
2002-05-02 15:17:54 +00:00
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
2006-01-11 09:32:13 +00:00
instantiate the configuration file FILE
2002-05-02 15:17:54 +00:00
--header=FILE[:TEMPLATE]
2006-01-11 09:32:13 +00:00
instantiate the configuration header FILE
2002-05-02 15:17:54 +00:00
Configuration files:
$config_files
Configuration headers:
$config_headers
Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
2006-01-11 09:32:13 +00:00
configured by $0, generated by GNU Autoconf 2.59,
2002-05-02 15:17:54 +00:00
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2006-01-11 09:32:13 +00:00
Copyright (C) 2003 Free Software Foundation, Inc.
2002-05-02 15:17:54 +00:00
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value. By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
case $1 in
--*=*)
ac_option=`expr "x$1" : 'x\([^=]*\)='`
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2003-09-22 03:00:21 +00:00
ac_shift=:
;;
-*)
ac_option=$1
ac_optarg=$2
ac_shift=shift
2002-05-02 15:17:54 +00:00
;;
*) # This is not an option, so the user has probably given explicit
# arguments.
2003-09-22 03:00:21 +00:00
ac_option=$1
2002-05-02 15:17:54 +00:00
ac_need_defaults=false;;
esac
2003-09-22 03:00:21 +00:00
case $ac_option in
2002-05-02 15:17:54 +00:00
# Handling of the options.
_ACEOF
2003-09-07 12:41:34 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
2003-09-22 03:00:21 +00:00
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
2002-05-02 15:17:54 +00:00
--version | --vers* | -V )
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; };;
--help | --hel | -h )
echo "$ac_cs_usage"; exit 0 ;;
--debug | --d* | -d )
debug=: ;;
--file | --fil | --fi | --f )
2003-09-22 03:00:21 +00:00
$ac_shift
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2002-05-02 15:17:54 +00:00
ac_need_defaults=false;;
--header | --heade | --head | --hea )
2003-09-22 03:00:21 +00:00
$ac_shift
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2002-05-02 15:17:54 +00:00
ac_need_defaults=false;;
2003-09-22 03:00:21 +00:00
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
2002-05-02 15:17:54 +00:00
# This is an error.
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; } ;;
*) ac_config_targets="$ac_config_targets $1" ;;
esac
shift
done
2003-09-22 03:00:21 +00:00
ac_configure_extra_args=
if $ac_cs_silent; then
exec 6>/dev/null
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi
2002-05-02 15:17:54 +00:00
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
case "$ac_config_target" in
# Handling of arguments.
"config.mak" ) CONFIG_FILES="$CONFIG_FILES config.mak" ;;
"base.make" ) CONFIG_FILES="$CONFIG_FILES base.make" ;;
2003-07-31 23:49:32 +00:00
"Headers/Additions/GNUstepBase/GSConfig.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/GSConfig.h" ;;
"Headers/Additions/GNUstepBase/preface.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/preface.h" ;;
"Headers/Additions/GNUstepBase/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Headers/Additions/GNUstepBase/config.h" ;;
2002-05-02 15:17:54 +00:00
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00:00
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1998-02-09 19:06:40 +00:00
fi
2003-09-22 03:00:21 +00:00
# Have a temporary directory for convenience. Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
2002-05-02 15:17:54 +00:00
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
# Create a (secure) tmp directory for tmp files.
2003-09-22 03:00:21 +00:00
2002-05-02 15:17:54 +00:00
{
2003-09-22 03:00:21 +00:00
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2002-05-02 15:17:54 +00:00
test -n "$tmp" && test -d "$tmp"
} ||
{
2003-09-22 03:00:21 +00:00
tmp=./confstat$$-$RANDOM
2002-05-02 15:17:54 +00:00
(umask 077 && mkdir $tmp)
} ||
{
2003-09-22 03:00:21 +00:00
echo "$me: cannot create a temporary directory in ." >&2
2002-05-02 15:17:54 +00:00
{ (exit 1); exit 1; }
}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
#
# CONFIG_FILES section.
#
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
# Protect against being on the right side of a sed subst in config.status.
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@target@,$target,;t t
s,@target_cpu@,$target_cpu,;t t
s,@target_vendor@,$target_vendor,;t t
s,@target_os@,$target_os,;t t
2006-01-08 12:59:11 +00:00
s,@GNUSTEP_CONFIG_FILE@,$GNUSTEP_CONFIG_FILE,;t t
2002-05-02 15:17:54 +00:00
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
s,@CPPFLAGS@,$CPPFLAGS,;t t
s,@ac_ct_CC@,$ac_ct_CC,;t t
s,@EXEEXT@,$EXEEXT,;t t
s,@OBJEXT@,$OBJEXT,;t t
s,@CPP@,$CPP,;t t
s,@WHOAMI@,$WHOAMI,;t t
2003-09-22 03:00:21 +00:00
s,@EGREP@,$EGREP,;t t
2002-05-02 15:17:54 +00:00
s,@GS_WORDS_BIGENDIAN@,$GS_WORDS_BIGENDIAN,;t t
s,@GS_SINT8@,$GS_SINT8,;t t
s,@GS_UINT8@,$GS_UINT8,;t t
s,@ac_cv_sizeof_short@,$ac_cv_sizeof_short,;t t
s,@ac_cv_sizeof_int@,$ac_cv_sizeof_int,;t t
s,@ac_cv_sizeof_long@,$ac_cv_sizeof_long,;t t
s,@ac_cv_sizeof_long_long@,$ac_cv_sizeof_long_long,;t t
s,@ac_cv_sizeof_float@,$ac_cv_sizeof_float,;t t
s,@ac_cv_sizeof_double@,$ac_cv_sizeof_double,;t t
s,@ac_cv_sizeof_voidp@,$ac_cv_sizeof_voidp,;t t
2006-01-11 09:32:13 +00:00
s,@GS_SADDR@,$GS_SADDR,;t t
s,@GS_UADDR@,$GS_UADDR,;t t
2002-05-02 15:17:54 +00:00
s,@GS_SINT16@,$GS_SINT16,;t t
s,@GS_UINT16@,$GS_UINT16,;t t
s,@GS_SINT32@,$GS_SINT32,;t t
s,@GS_UINT32@,$GS_UINT32,;t t
s,@GS_SINT64@,$GS_SINT64,;t t
s,@GS_UINT64@,$GS_UINT64,;t t
s,@GS_HAVE_I64@,$GS_HAVE_I64,;t t
s,@GS_SINT128@,$GS_SINT128,;t t
s,@GS_UINT128@,$GS_UINT128,;t t
s,@GS_HAVE_I128@,$GS_HAVE_I128,;t t
s,@GS_FLT32@,$GS_FLT32,;t t
s,@GS_FLT64@,$GS_FLT64,;t t
s,@_GSC_S_SHT@,$_GSC_S_SHT,;t t
s,@_GSC_S_INT@,$_GSC_S_INT,;t t
s,@_GSC_S_LNG@,$_GSC_S_LNG,;t t
s,@_GSC_S_LNG_LNG@,$_GSC_S_LNG_LNG,;t t
s,@DYNAMIC_LINKER@,$DYNAMIC_LINKER,;t t
2003-01-03 20:14:47 +00:00
s,@NX_CONST_STRING_OBJCFLAGS@,$NX_CONST_STRING_OBJCFLAGS,;t t
2002-05-02 15:17:54 +00:00
s,@NX_CONST_STRING_CLASS@,$NX_CONST_STRING_CLASS,;t t
s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
s,@HAVE_PTS_STREAM_MODULES@,$HAVE_PTS_STREAM_MODULES,;t t
2004-05-26 13:45:37 +00:00
s,@INCLUDE_STDINT@,$INCLUDE_STDINT,;t t
2005-03-07 10:47:10 +00:00
s,@DEFINE_INT8_T@,$DEFINE_INT8_T,;t t
2004-05-26 13:45:37 +00:00
s,@DEFINE_UINT8_T@,$DEFINE_UINT8_T,;t t
2005-03-07 10:47:10 +00:00
s,@DEFINE_INT16_T@,$DEFINE_INT16_T,;t t
s,@DEFINE_UINT16_T@,$DEFINE_UINT16_T,;t t
2004-05-26 13:45:37 +00:00
s,@DEFINE_INT32_T@,$DEFINE_INT32_T,;t t
2005-03-07 10:47:10 +00:00
s,@DEFINE_UINT32_T@,$DEFINE_UINT32_T,;t t
2004-05-26 13:45:37 +00:00
s,@DEFINE_INT64_T@,$DEFINE_INT64_T,;t t
2005-03-07 10:47:10 +00:00
s,@DEFINE_UINT64_T@,$DEFINE_UINT64_T,;t t
2006-01-11 09:32:13 +00:00
s,@DEFINE_INTPTR_T@,$DEFINE_INTPTR_T,;t t
s,@DEFINE_UINTPTR_T@,$DEFINE_UINTPTR_T,;t t
2003-10-16 18:31:38 +00:00
s,@USE_ZLIB@,$USE_ZLIB,;t t
2002-05-02 15:17:54 +00:00
s,@GS_PASS_ARGUMENTS@,$GS_PASS_ARGUMENTS,;t t
s,@GS_FAKE_MAIN@,$GS_FAKE_MAIN,;t t
s,@WITH_FFI@,$WITH_FFI,;t t
s,@XML2_CONFIG@,$XML2_CONFIG,;t t
s,@XML_CONFIG@,$XML_CONFIG,;t t
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
s,@XML_LIBS@,$XML_LIBS,;t t
2004-03-28 04:42:11 +00:00
s,@HAVE_LIBXSLT@,$HAVE_LIBXSLT,;t t
2004-05-07 11:20:18 +00:00
s,@HAVE_LIBXML@,$HAVE_LIBXML,;t t
2002-05-22 14:37:21 +00:00
s,@USE_GMP@,$USE_GMP,;t t
2002-11-27 17:15:39 +00:00
s,@INCLUDE_FLAGS@,$INCLUDE_FLAGS,;t t
2004-10-26 19:08:17 +00:00
s,@LDIR_FLAGS@,$LDIR_FLAGS,;t t
2002-05-02 15:17:54 +00:00
s,@subdirs@,$subdirs,;t t
s,@VERSION@,$VERSION,;t t
s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
s,@MINOR_VERSION@,$MINOR_VERSION,;t t
s,@SUBMINOR_VERSION@,$SUBMINOR_VERSION,;t t
s,@GCC_VERSION@,$GCC_VERSION,;t t
2003-09-22 03:00:21 +00:00
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2002-05-02 15:17:54 +00:00
CEOF
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# 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_lines=48
ac_sed_frag=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_lines # 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" $tmp/subs.sed >$tmp/subs.frag
else
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
fi
if test ! -s $tmp/subs.frag; then
ac_more_lines=false
else
# The purpose of the label and of the branching condition is to
# speed up the sed processing (if there are no `@' at all, there
# is no need to browse any of the substitutions).
# These are the two extra sed commands mentioned above.
(echo ':t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
if test -z "$ac_sed_cmds"; then
2006-01-11 09:32:13 +00:00
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2002-05-02 15:17:54 +00:00
else
2006-01-11 09:32:13 +00:00
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2002-05-02 15:17:54 +00:00
fi
ac_sed_frag=`expr $ac_sed_frag + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_lines`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
fi # test -n "$CONFIG_FILES"
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1998-02-09 19:06:40 +00:00
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2002-05-02 15:17:54 +00:00
case $ac_file in
- | *:- | *:-:* ) # input from stdin
2006-01-11 09:32:13 +00:00
cat >$tmp/stdin
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2002-05-02 15:17:54 +00:00
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2006-01-11 09:32:13 +00:00
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2002-05-02 15:17:54 +00:00
* ) ac_file_in=$ac_file.in ;;
1998-02-09 19:06:40 +00:00
esac
2002-05-02 15:17:54 +00:00
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-01-11 09:32:13 +00:00
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
2002-05-02 15:17:54 +00:00
echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
2003-09-22 03:00:21 +00:00
{ if $as_mkdir_p; then
mkdir -p "$ac_dir"
else
as_dir="$ac_dir"
as_dirs=
while test ! -d "$as_dir"; do
as_dirs="$as_dir $as_dirs"
as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-01-11 09:32:13 +00:00
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
2003-09-22 03:00:21 +00:00
echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
test ! -n "$as_dirs" || mkdir $as_dirs
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
{ (exit 1); exit 1; }; }; }
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
ac_builddir=.
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
1998-02-09 19:06:40 +00:00
*) # Relative path.
2002-05-02 15:17:54 +00:00
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
2006-01-11 09:32:13 +00:00
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
if test x"$ac_file" = x-; then
configure_input=
else
configure_input="$ac_file. "
fi
configure_input=$configure_input"Generated from `echo $ac_file_in |
2006-01-11 09:32:13 +00:00
sed 's,.*/,,'` by configure."
2002-05-02 15:17:54 +00:00
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
2006-01-11 09:32:13 +00:00
# Absolute (can't be DOS-style, as IFS=:)
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
2006-01-11 09:32:13 +00:00
echo "$f";;
2002-05-02 15:17:54 +00:00
*) # Relative
2006-01-11 09:32:13 +00:00
if test -f "$f"; then
# Build tree
echo "$f"
elif test -f "$srcdir/$f"; then
# Source tree
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
2006-01-11 09:32:13 +00:00
fi;;
2002-05-02 15:17:54 +00:00
esac
done` || { (exit 1); exit 1; }
2006-01-11 09:32:13 +00:00
if test x"$ac_file" != x-; then
{ echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
2002-05-02 15:17:54 +00:00
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
rm -f $tmp/stdin
if test x"$ac_file" != x-; then
mv $tmp/out $ac_file
else
cat $tmp/out
rm -f $tmp/out
fi
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
#
# CONFIG_HEADER section.
#
1998-02-09 19:06:40 +00:00
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
2006-01-11 09:32:13 +00:00
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
ac_dB='[ ].*$,\1#\2'
2002-05-02 15:17:54 +00:00
ac_dC=' '
ac_dD=',;t'
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2006-01-11 09:32:13 +00:00
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2002-05-02 15:17:54 +00:00
ac_uB='$,\1#\2define\3'
1998-02-09 19:06:40 +00:00
ac_uC=' '
2002-05-02 15:17:54 +00:00
ac_uD=',;t'
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1998-02-09 19:06:40 +00:00
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2002-05-02 15:17:54 +00:00
case $ac_file in
- | *:- | *:-:* ) # input from stdin
2006-01-11 09:32:13 +00:00
cat >$tmp/stdin
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2002-05-02 15:17:54 +00:00
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2006-01-11 09:32:13 +00:00
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2002-05-02 15:17:54 +00:00
* ) ac_file_in=$ac_file.in ;;
1998-02-09 19:06:40 +00:00
esac
2002-05-02 15:17:54 +00:00
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
2006-01-11 09:32:13 +00:00
# Absolute (can't be DOS-style, as IFS=:)
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
2006-01-11 09:32:13 +00:00
# Do quote $f, to prevent DOS paths from being IFS'd.
echo "$f";;
2002-05-02 15:17:54 +00:00
*) # Relative
2006-01-11 09:32:13 +00:00
if test -f "$f"; then
# Build tree
echo "$f"
elif test -f "$srcdir/$f"; then
# Source tree
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
2006-01-11 09:32:13 +00:00
fi;;
2002-05-02 15:17:54 +00:00
esac
done` || { (exit 1); exit 1; }
# Remove the trailing spaces.
2006-01-11 09:32:13 +00:00
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
2002-05-02 15:17:54 +00:00
_ACEOF
# Transform confdefs.h into two sed scripts, `conftest.defines' and
# `conftest.undefs', that substitutes the proper values into
# config.h.in to produce config.h. The first handles `#define'
# templates, and the second `#undef' templates.
# 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.defines conftest.undefs
# Using a here document instead of a string reduces the quoting nightmare.
# Putting comments in sed scripts is not portable.
#
# `end' is used to avoid that the second main sed command (meant for
# 0-ary CPP macros) applies to n-ary macro definitions.
# See the Autoconf documentation for `clear'.
cat >confdef2sed.sed <<\_ACEOF
s/[\\&,]/\\&/g
s,[\\$`],\\&,g
t clear
: clear
2006-01-11 09:32:13 +00:00
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
2002-05-02 15:17:54 +00:00
t end
2006-01-11 09:32:13 +00:00
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2002-05-02 15:17:54 +00:00
: end
_ACEOF
# If some macros were called several times there might be several times
# the same #defines, which is useless. Nevertheless, we may not want to
# sort them, since we want the *last* AC-DEFINE to be honored.
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
rm -f confdef2sed.sed
1998-02-09 19:06:40 +00:00
# This sed command replaces #undef with comments. This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
2002-05-02 15:17:54 +00:00
cat >>conftest.undefs <<\_ACEOF
2006-01-11 09:32:13 +00:00
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
2002-05-02 15:17:54 +00:00
_ACEOF
# Break up conftest.defines because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
2006-01-11 09:32:13 +00:00
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
2002-05-02 15:17:54 +00:00
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
echo ' :' >>$CONFIG_STATUS
rm -f conftest.tail
while grep . conftest.defines >/dev/null
do
# Write a limited-size here document to $tmp/defines.sed.
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
# Speed up: don't consider the non `#define' lines.
2006-01-11 09:32:13 +00:00
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
2002-05-02 15:17:54 +00:00
# Work around the forget-to-reset-the-flag bug.
echo 't clr' >>$CONFIG_STATUS
echo ': clr' >>$CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
echo 'CEOF
sed -f $tmp/defines.sed $tmp/in >$tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
rm -f conftest.defines
mv conftest.tail conftest.defines
done
rm -f conftest.defines
2003-09-22 03:00:21 +00:00
echo ' fi # grep' >>$CONFIG_STATUS
2002-05-02 15:17:54 +00:00
echo >>$CONFIG_STATUS
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
# Break up conftest.undefs because some shells have a limit on the size
# of here documents, and old seds have small limits too (100 cmds).
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1998-02-09 19:06:40 +00:00
rm -f conftest.tail
2002-05-02 15:17:54 +00:00
while grep . conftest.undefs >/dev/null
1998-02-09 19:06:40 +00:00
do
2002-05-02 15:17:54 +00:00
# Write a limited-size here document to $tmp/undefs.sed.
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
# Speed up: don't consider the non `#undef'
2006-01-11 09:32:13 +00:00
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
2002-05-02 15:17:54 +00:00
# Work around the forget-to-reset-the-flag bug.
echo 't clr' >>$CONFIG_STATUS
echo ': clr' >>$CONFIG_STATUS
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1998-02-09 19:06:40 +00:00
echo 'CEOF
2002-05-02 15:17:54 +00:00
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
rm -f $tmp/in
mv $tmp/out $tmp/in
' >>$CONFIG_STATUS
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
rm -f conftest.undefs
mv conftest.tail conftest.undefs
1998-02-09 19:06:40 +00:00
done
2002-05-02 15:17:54 +00:00
rm -f conftest.undefs
cat >>$CONFIG_STATUS <<\_ACEOF
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
if test x"$ac_file" = x-; then
echo "/* Generated by configure. */" >$tmp/config.h
1998-02-09 19:06:40 +00:00
else
2002-05-02 15:17:54 +00:00
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
1998-02-09 19:06:40 +00:00
fi
2002-05-02 15:17:54 +00:00
cat $tmp/in >>$tmp/config.h
rm -f $tmp/in
if test x"$ac_file" != x-; then
2003-09-22 03:00:21 +00:00
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
else
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-01-11 09:32:13 +00:00
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
2002-05-02 15:17:54 +00:00
echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
2003-09-22 03:00:21 +00:00
{ if $as_mkdir_p; then
mkdir -p "$ac_dir"
else
as_dir="$ac_dir"
as_dirs=
while test ! -d "$as_dir"; do
as_dirs="$as_dir $as_dirs"
as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-01-11 09:32:13 +00:00
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
2003-09-22 03:00:21 +00:00
echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
test ! -n "$as_dirs" || mkdir $as_dirs
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
{ (exit 1); exit 1; }; }; }
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
rm -f $ac_file
mv $tmp/config.h $ac_file
fi
else
cat $tmp/config.h
rm -f $tmp/config.h
fi
done
_ACEOF
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
cat >>$CONFIG_STATUS <<\_ACEOF
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
{ (exit 0); exit 0; }
_ACEOF
1998-02-09 19:06:40 +00:00
chmod +x $CONFIG_STATUS
2002-05-02 15:17:54 +00:00
ac_clean_files=$ac_clean_files_save
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded. So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
2003-09-22 03:00:21 +00:00
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
2002-05-02 15:17:54 +00:00
exec 5>/dev/null
2003-09-22 03:00:21 +00:00
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2002-05-02 15:17:54 +00:00
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; }
fi
1998-02-09 19:06:40 +00:00
2002-05-02 15:17:54 +00:00
#
# CONFIG_SUBDIRS section.
#
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
2002-05-02 15:17:54 +00:00
case $ac_arg in
1999-01-02 18:29:44 +00:00
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2002-05-02 15:17:54 +00:00
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
| --c=*)
;;
--config-cache | -C)
1999-01-02 18:29:44 +00:00
;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
;;
2002-05-02 15:17:54 +00:00
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
;;
1999-01-02 18:29:44 +00:00
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
esac
done
2002-05-02 15:17:54 +00:00
# Always prepend --prefix to ensure using the same prefix
# in subdir configurations.
ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
ac_popdir=`pwd`
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
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.
2002-05-02 15:17:54 +00:00
test -d $srcdir/$ac_dir || continue
1999-01-02 18:29:44 +00:00
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: configuring in $ac_dir" >&5
echo "$as_me: configuring in $ac_dir" >&6;}
2003-09-22 03:00:21 +00:00
{ if $as_mkdir_p; then
mkdir -p "$ac_dir"
else
as_dir="$ac_dir"
as_dirs=
while test ! -d "$as_dir"; do
as_dirs="$as_dir $as_dirs"
as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2006-01-11 09:32:13 +00:00
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
2003-09-22 03:00:21 +00:00
echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
test ! -n "$as_dirs" || mkdir $as_dirs
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
{ (exit 1); exit 1; }; }; }
1999-01-02 18:29:44 +00:00
2002-05-02 15:17:54 +00:00
ac_builddir=.
1999-01-02 18:29:44 +00:00
2002-05-02 15:17:54 +00:00
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
1999-01-02 18:29:44 +00:00
2002-05-02 15:17:54 +00:00
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
*) # Relative path.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
2006-01-11 09:32:13 +00:00
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
2002-05-02 15:17:54 +00:00
cd $ac_dir
1999-01-02 18:29:44 +00:00
# Check for guested configure; otherwise get Cygnus style configure.
2002-05-02 15:17:54 +00:00
if test -f $ac_srcdir/configure.gnu; then
ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
elif test -f $ac_srcdir/configure; then
ac_sub_configure="$SHELL '$ac_srcdir/configure'"
elif test -f $ac_srcdir/configure.in; then
1999-01-02 18:29:44 +00:00
ac_sub_configure=$ac_configure
else
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1999-01-02 18:29:44 +00:00
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.
2002-05-02 15:17:54 +00:00
case $cache_file in
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1999-01-02 18:29:44 +00:00
*) # Relative path.
2006-01-11 09:32:13 +00:00
ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1999-01-02 18:29:44 +00:00
esac
2002-05-02 15:17:54 +00:00
{ echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1999-01-02 18:29:44 +00:00
# The eval makes quoting arguments work.
2002-05-02 15:17:54 +00:00
eval $ac_sub_configure $ac_sub_configure_args \
2006-01-11 09:32:13 +00:00
--cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
2002-05-02 15:17:54 +00:00
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
{ (exit 1); exit 1; }; }
1999-01-02 18:29:44 +00:00
fi
2006-01-11 09:32:13 +00:00
cd "$ac_popdir"
1999-01-02 18:29:44 +00:00
done
fi