490
729
if test ! -r $srcdir/$ac_unique_file; then
491
730
if test "$ac_srcdir_defaulted" = yes; then
492
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
494
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
497
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
776
# Report the --help message.
778
if test "$ac_init_help" = "long"; then
779
# Omit some internal or obsolete options to make the list less imposing.
780
# This message is too long to be a string in the A/UX 3.1 sh.
782
\`configure' configures this package to adapt to many kinds of systems.
784
Usage: $0 [OPTION]... [VAR=VALUE]...
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE. See below for descriptions of some of the useful variables.
789
Defaults for the options are specified in brackets.
792
-h, --help display this help and exit
793
--help=short display options specific to this package
794
--help=recursive display the short help of all the included packages
795
-V, --version display version information and exit
796
-q, --quiet, --silent do not print \`checking...' messages
797
--cache-file=FILE cache test results in FILE [disabled]
798
-C, --config-cache alias for \`--cache-file=config.cache'
799
-n, --no-create do not create output files
800
--srcdir=DIR find the sources in DIR [configure dir or \`..']
805
Installation directories:
806
--prefix=PREFIX install architecture-independent files in PREFIX
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
816
For better control, use the options below.
818
Fine tuning of the installation directories:
819
--bindir=DIR user executables [EPREFIX/bin]
820
--sbindir=DIR system admin executables [EPREFIX/sbin]
821
--libexecdir=DIR program executables [EPREFIX/libexec]
822
--datadir=DIR read-only architecture-independent data [PREFIX/share]
823
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
826
--libdir=DIR object code libraries [EPREFIX/lib]
827
--includedir=DIR C header files [PREFIX/include]
828
--oldincludedir=DIR C header files for non-gcc [/usr/include]
829
--infodir=DIR info documentation [PREFIX/info]
830
--mandir=DIR man documentation [PREFIX/man]
836
--build=BUILD configure for building on BUILD [guessed]
837
--host=HOST cross-compile to build programs to run on HOST [BUILD]
838
--target=TARGET configure for building compilers for TARGET [HOST]
842
if test -n "$ac_init_help"; then
847
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849
--enable-procfs Use /proc filesystem (default)
850
--enable-pass-arguments Force user main call to NSProcessInfo initialize
851
--enable-fake-main Force redefine of user main function
852
--enable-libffi Enable use of libffi library
853
--enable-ffcall Enable use of ffcall library
854
--disable-do Compile even if DO-dependencies are not met
855
--disable-xml Compile even if XML-dependencies are not met
856
--disable-xmltest Do not try to compile and run a test XML program
857
--disable-xslt Compile even if XSLT-dependency is not met
858
--disable-openssl Disable support for openssl in URL classes
861
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863
--with-include-flags=FLAGS specify all include flags at once
864
--with-library-flags=FLAGS specify all library flags at once
865
--with-ffi-include=PATH include path for ffi (ffcall/libffi) headers
866
--with-ffi-library=PATH library path for ffi (ffcall/libffi) libraries
867
--with-libiconv-library=PATH library path for libiconv libraries
868
--with-xml-prefix=PFX Prefix where libxml is installed (optional)
869
--with-gmp-include=PATH include path for gmp headers
870
--with-gmp-library=PATH library path for gmp libraries
871
--with-openssl-include=PATH include path for openssl headers
872
--with-openssl-library=PATH library path for openssl libraries
874
Some influential environment variables:
875
CC C compiler command
876
CFLAGS C compiler flags
877
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878
nonstandard directory <lib dir>
879
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880
headers in a nonstandard directory <include dir>
883
Use these variables to override the choices made by `configure' or to help
884
it to find libraries and programs with nonstandard names/locations.
889
if test "$ac_init_help" = "recursive"; then
890
# If there are subdirs, report their specific --help.
892
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893
test -d $ac_dir || continue
896
if test "$ac_dir" != .; then
897
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898
# A "../" for each directory in $ac_dir_suffix.
899
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901
ac_dir_suffix= ac_top_builddir=
905
.) # No --srcdir option. We are building in place.
907
if test -z "$ac_top_builddir"; then
910
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912
[\\/]* | ?:[\\/]* ) # Absolute path.
913
ac_srcdir=$srcdir$ac_dir_suffix;
914
ac_top_srcdir=$srcdir ;;
916
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917
ac_top_srcdir=$ac_top_builddir$srcdir ;;
920
# Do not use `cd foo && pwd` to compute absolute paths, because
921
# the directories may not exist.
923
.) ac_abs_builddir="$ac_dir";;
926
.) ac_abs_builddir=`pwd`;;
927
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928
*) ac_abs_builddir=`pwd`/"$ac_dir";;
931
case $ac_abs_builddir in
932
.) ac_abs_top_builddir=${ac_top_builddir}.;;
934
case ${ac_top_builddir}. in
935
.) ac_abs_top_builddir=$ac_abs_builddir;;
936
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940
case $ac_abs_builddir in
941
.) ac_abs_srcdir=$ac_srcdir;;
944
.) ac_abs_srcdir=$ac_abs_builddir;;
945
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949
case $ac_abs_builddir in
950
.) ac_abs_top_srcdir=$ac_top_srcdir;;
952
case $ac_top_srcdir in
953
.) ac_abs_top_srcdir=$ac_abs_builddir;;
954
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960
# Check for guested configure; otherwise get Cygnus style configure.
961
if test -f $ac_srcdir/configure.gnu; then
963
$SHELL $ac_srcdir/configure.gnu --help=recursive
964
elif test -f $ac_srcdir/configure; then
966
$SHELL $ac_srcdir/configure --help=recursive
967
elif test -f $ac_srcdir/configure.ac ||
968
test -f $ac_srcdir/configure.in; then
972
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978
test -n "$ac_init_help" && exit 0
979
if $ac_init_version; then
982
Copyright (C) 2003 Free Software Foundation, Inc.
983
This configure script is free software; the Free Software Foundation
984
gives unlimited permission to copy, distribute and modify it.
990
This file contains any messages produced by compilers while
991
running configure, to aid debugging if configure makes a mistake.
993
It was created by $as_me, which was
994
generated by GNU Autoconf 2.59. Invocation command line was
1005
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028
test -z "$as_dir" && as_dir=.
1029
echo "PATH: $as_dir"
1044
# Keep a trace of the command line.
1045
# Strip out --no-create and --no-recursion so they do not pile up.
1046
# Strip out --silent because we don't want to record it for future runs.
1047
# Also quote any args containing shell meta-characters.
1048
# Make two passes to allow for proper duplicate-argument suppression.
1053
ac_must_keep_next=false
1059
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061
| -silent | --silent | --silen | --sile | --sil)
1063
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070
if test $ac_must_keep_next = true; then
1071
ac_must_keep_next=false # Got value, back to normal.
1074
*=* | --config-cache | -C | -disable-* | --disable-* \
1075
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077
| -with-* | --with-* | -without-* | --without-* | --x)
1078
case "$ac_configure_args0 " in
1079
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082
-* ) ac_must_keep_next=true ;;
1085
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086
# Get rid of the leading space.
1092
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
# When interrupted or exit'd, cleanup temporary files, and complete
1096
# config.log. We remove comments because anyway the quotes in there
1097
# would cause problems or look ugly.
1098
# WARNING: Be sure not to use single quotes in there, as some shells,
1099
# such as our DU 5.0 friend, will then `close' the trap.
1100
trap 'exit_status=$?
1101
# Save into config.log some information that might help in debugging.
1106
## ---------------- ##
1107
## Cache variables. ##
1108
## ---------------- ##
1111
# The following way of writing the cache mishandles newlines in values,
1114
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129
## ----------------- ##
1130
## Output variables. ##
1131
## ----------------- ##
1134
for ac_var in $ac_subst_vars
1136
eval ac_val=$`echo $ac_var`
1137
echo "$ac_var='"'"'$ac_val'"'"'"
1141
if test -n "$ac_subst_files"; then
1148
for ac_var in $ac_subst_files
1150
eval ac_val=$`echo $ac_var`
1151
echo "$ac_var='"'"'$ac_val'"'"'"
1156
if test -s confdefs.h; then
1163
sed "/^$/d" confdefs.h | sort
1166
test "$ac_signal" != 0 &&
1167
echo "$as_me: caught signal $ac_signal"
1168
echo "$as_me: exit $exit_status"
1170
rm -f core *.core &&
1171
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174
for ac_signal in 1 2 13 15; do
1175
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180
rm -rf conftest* confdefs.h
1181
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184
# Predefined preprocessor variables.
1186
cat >>confdefs.h <<_ACEOF
1187
#define PACKAGE_NAME "$PACKAGE_NAME"
1191
cat >>confdefs.h <<_ACEOF
1192
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196
cat >>confdefs.h <<_ACEOF
1197
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201
cat >>confdefs.h <<_ACEOF
1202
#define PACKAGE_STRING "$PACKAGE_STRING"
1206
cat >>confdefs.h <<_ACEOF
1207
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211
# Let the site file select an alternate cache file if it wants to.
499
1212
# Prefer explicitly selected file to automatically selected ones.
500
1213
if test -z "$CONFIG_SITE"; then
501
1214
if test "x$prefix" != xNONE; then
586
1339
ac_aux_dir=$ac_dir
587
1340
ac_install_sh="$ac_aux_dir/install.sh -c"
1342
elif test -f $ac_dir/shtool; then
1344
ac_install_sh="$ac_aux_dir/shtool install -c"
591
1348
if test -z "$ac_aux_dir"; then
592
{ echo "configure: error: can not find install-sh or install.sh in $GNUSTEP_SYSTEM_ROOT/Makefiles $srcdir/$GNUSTEP_SYSTEM_ROOT/Makefiles" 1>&2; exit 1; }
1349
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&5
1350
echo "$as_me: error: cannot find install-sh or install.sh in $GNUSTEP_MAKEFILES $srcdir/$GNUSTEP_MAKEFILES" >&2;}
1351
{ (exit 1); exit 1; }; }
594
ac_config_guess=$ac_aux_dir/config.guess
595
ac_config_sub=$ac_aux_dir/config.sub
596
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1353
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
599
1358
#--------------------------------------------------------------------
600
1359
# Use a .h file with #define's, instead of -D command-line switches
601
1360
#--------------------------------------------------------------------
1361
ac_config_headers="$ac_config_headers Headers/Additions/GNUstepBase/config.h"
604
1364
#--------------------------------------------------------------------
605
1365
# Determine the host, build, and target systems
606
1366
#--------------------------------------------------------------------
608
# Do some error checking and defaulting for the host and target type.
610
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
613
# 1. You are not allowed to specify --host, --target, and nonopt at the
615
# 2. Host defaults to nonopt.
616
# 3. If nonopt is not specified, then host defaults to the current host,
617
# as determined by config.guess.
618
# 4. Target and build default to nonopt.
619
# 5. If nonopt is not specified, then target and build default to host.
1367
# Make sure we can run config.sub.
1368
$ac_config_sub sun4 >/dev/null 2>&1 ||
1369
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1370
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1371
{ (exit 1); exit 1; }; }
1373
echo "$as_me:$LINENO: checking build system type" >&5
1374
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1375
if test "${ac_cv_build+set}" = set; then
1376
echo $ECHO_N "(cached) $ECHO_C" >&6
1378
ac_cv_build_alias=$build_alias
1379
test -z "$ac_cv_build_alias" &&
1380
ac_cv_build_alias=`$ac_config_guess`
1381
test -z "$ac_cv_build_alias" &&
1382
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1383
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1384
{ (exit 1); exit 1; }; }
1385
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1386
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1387
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1388
{ (exit 1); exit 1; }; }
1391
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1392
echo "${ECHO_T}$ac_cv_build" >&6
1394
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
echo "$as_me:$LINENO: checking host system type" >&5
1400
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1401
if test "${ac_cv_host+set}" = set; then
1402
echo $ECHO_N "(cached) $ECHO_C" >&6
1404
ac_cv_host_alias=$host_alias
1405
test -z "$ac_cv_host_alias" &&
1406
ac_cv_host_alias=$ac_cv_build_alias
1407
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1408
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1409
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1410
{ (exit 1); exit 1; }; }
1413
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1414
echo "${ECHO_T}$ac_cv_host" >&6
1416
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
echo "$as_me:$LINENO: checking target system type" >&5
1422
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1423
if test "${ac_cv_target+set}" = set; then
1424
echo $ECHO_N "(cached) $ECHO_C" >&6
1426
ac_cv_target_alias=$target_alias
1427
test "x$ac_cv_target_alias" = "x" &&
1428
ac_cv_target_alias=$ac_cv_host_alias
1429
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1430
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1431
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1432
{ (exit 1); exit 1; }; }
1435
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1436
echo "${ECHO_T}$ac_cv_target" >&6
1437
target=$ac_cv_target
1438
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
621
1443
# The aliases save the names the user supplied, while $host etc.
622
1444
# will get canonicalized.
623
case $host---$target---$nonopt in
624
NONE---*---* | *---NONE---* | *---*---NONE) ;;
625
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
629
# Make sure we can run config.sub.
630
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
631
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
634
echo $ac_n "checking host system type""... $ac_c" 1>&6
635
echo "configure:636: checking host system type" >&5
638
case "$host_alias" in
642
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
643
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
645
*) host_alias=$nonopt ;;
649
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
650
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653
echo "$ac_t""$host" 1>&6
655
echo $ac_n "checking target system type""... $ac_c" 1>&6
656
echo "configure:657: checking target system type" >&5
659
case "$target_alias" in
662
NONE) target_alias=$host_alias ;;
663
*) target_alias=$nonopt ;;
667
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
668
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
669
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
670
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671
echo "$ac_t""$target" 1>&6
673
echo $ac_n "checking build system type""... $ac_c" 1>&6
674
echo "configure:675: checking build system type" >&5
677
case "$build_alias" in
680
NONE) build_alias=$host_alias ;;
681
*) build_alias=$nonopt ;;
685
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
686
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689
echo "$ac_t""$build" 1>&6
691
test "$host_alias" != "$target_alias" &&
1445
test -n "$target_alias" &&
692
1446
test "$program_prefix$program_suffix$program_transform_name" = \
693
1447
NONENONEs,x,x, &&
694
1448
program_prefix=${target_alias}-
697
1450
#--------------------------------------------------------------------
698
1451
# Find the compiler
699
1452
#--------------------------------------------------------------------
700
# Extract the first word of "gcc", so it can be a program name with args.
1454
ac_cpp='$CPP $CPPFLAGS'
1455
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
if test -n "$ac_tool_prefix"; then
1459
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1460
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1461
echo "$as_me:$LINENO: checking for $ac_word" >&5
1462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463
if test "${ac_cv_prog_CC+set}" = set; then
1464
echo $ECHO_N "(cached) $ECHO_C" >&6
1466
if test -n "$CC"; then
1467
ac_cv_prog_CC="$CC" # Let the user override the test.
1469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473
test -z "$as_dir" && as_dir=.
1474
for ac_exec_ext in '' $ac_executable_extensions; do
1475
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1477
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486
if test -n "$CC"; then
1487
echo "$as_me:$LINENO: result: $CC" >&5
1488
echo "${ECHO_T}$CC" >&6
1490
echo "$as_me:$LINENO: result: no" >&5
1491
echo "${ECHO_T}no" >&6
1495
if test -z "$ac_cv_prog_CC"; then
1497
# Extract the first word of "gcc", so it can be a program name with args.
701
1498
set dummy gcc; ac_word=$2
702
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703
echo "configure:704: checking for $ac_word" >&5
704
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705
echo $ac_n "(cached) $ac_c" 1>&6
1499
echo "$as_me:$LINENO: checking for $ac_word" >&5
1500
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1502
echo $ECHO_N "(cached) $ECHO_C" >&6
1504
if test -n "$ac_ct_CC"; then
1505
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511
test -z "$as_dir" && as_dir=.
1512
for ac_exec_ext in '' $ac_executable_extensions; do
1513
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514
ac_cv_prog_ac_ct_CC="gcc"
1515
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1524
if test -n "$ac_ct_CC"; then
1525
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1526
echo "${ECHO_T}$ac_ct_CC" >&6
1528
echo "$as_me:$LINENO: result: no" >&5
1529
echo "${ECHO_T}no" >&6
1537
if test -z "$CC"; then
1538
if test -n "$ac_tool_prefix"; then
1539
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1540
set dummy ${ac_tool_prefix}cc; ac_word=$2
1541
echo "$as_me:$LINENO: checking for $ac_word" >&5
1542
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543
if test "${ac_cv_prog_CC+set}" = set; then
1544
echo $ECHO_N "(cached) $ECHO_C" >&6
707
1546
if test -n "$CC"; then
708
1547
ac_cv_prog_CC="$CC" # Let the user override the test.
710
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
712
for ac_dir in $ac_dummy; do
713
test -z "$ac_dir" && ac_dir=.
714
if test -f $ac_dir/$ac_word; then
1549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553
test -z "$as_dir" && as_dir=.
1554
for ac_exec_ext in '' $ac_executable_extensions; do
1555
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556
ac_cv_prog_CC="${ac_tool_prefix}cc"
1557
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
723
1566
if test -n "$CC"; then
724
echo "$ac_t""$CC" 1>&6
726
echo "$ac_t""no" 1>&6
1567
echo "$as_me:$LINENO: result: $CC" >&5
1568
echo "${ECHO_T}$CC" >&6
1570
echo "$as_me:$LINENO: result: no" >&5
1571
echo "${ECHO_T}no" >&6
1575
if test -z "$ac_cv_prog_CC"; then
1577
# Extract the first word of "cc", so it can be a program name with args.
1578
set dummy cc; ac_word=$2
1579
echo "$as_me:$LINENO: checking for $ac_word" >&5
1580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582
echo $ECHO_N "(cached) $ECHO_C" >&6
1584
if test -n "$ac_ct_CC"; then
1585
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591
test -z "$as_dir" && as_dir=.
1592
for ac_exec_ext in '' $ac_executable_extensions; do
1593
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594
ac_cv_prog_ac_ct_CC="cc"
1595
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604
if test -n "$ac_ct_CC"; then
1605
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606
echo "${ECHO_T}$ac_ct_CC" >&6
1608
echo "$as_me:$LINENO: result: no" >&5
1609
echo "${ECHO_T}no" >&6
729
1618
if test -z "$CC"; then
730
1619
# Extract the first word of "cc", so it can be a program name with args.
731
1620
set dummy cc; ac_word=$2
732
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733
echo "configure:734: checking for $ac_word" >&5
734
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735
echo $ac_n "(cached) $ac_c" 1>&6
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623
if test "${ac_cv_prog_CC+set}" = set; then
1624
echo $ECHO_N "(cached) $ECHO_C" >&6
737
1626
if test -n "$CC"; then
738
1627
ac_cv_prog_CC="$CC" # Let the user override the test.
740
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
741
1629
ac_prog_rejected=no
743
for ac_dir in $ac_dummy; do
744
test -z "$ac_dir" && ac_dir=.
745
if test -f $ac_dir/$ac_word; then
746
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634
test -z "$as_dir" && as_dir=.
1635
for ac_exec_ext in '' $ac_executable_extensions; do
1636
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1638
ac_prog_rejected=yes
1642
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
755
1648
if test $ac_prog_rejected = yes; then
756
1649
# We found a bogon in the path, so make sure we never use it.
757
1650
set dummy $ac_cv_prog_CC
759
if test $# -gt 0; then
1652
if test $# != 0; then
760
1653
# We chose a different compiler from the bogus one.
761
1654
# However, it has the same basename, so the bogon will be chosen
762
1655
# first if we set CC to just the basename; use the full file name.
764
set dummy "$ac_dir/$ac_word" "$@"
1657
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
772
1663
if test -n "$CC"; then
773
echo "$ac_t""$CC" 1>&6
1664
echo "$as_me:$LINENO: result: $CC" >&5
1665
echo "${ECHO_T}$CC" >&6
775
echo "$ac_t""no" 1>&6
1667
echo "$as_me:$LINENO: result: no" >&5
1668
echo "${ECHO_T}no" >&6
778
if test -z "$CC"; then
781
# Extract the first word of "cl", so it can be a program name with args.
782
set dummy cl; ac_word=$2
783
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784
echo "configure:785: checking for $ac_word" >&5
785
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786
echo $ac_n "(cached) $ac_c" 1>&6
1672
if test -z "$CC"; then
1673
if test -n "$ac_tool_prefix"; then
1676
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1677
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1678
echo "$as_me:$LINENO: checking for $ac_word" >&5
1679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680
if test "${ac_cv_prog_CC+set}" = set; then
1681
echo $ECHO_N "(cached) $ECHO_C" >&6
788
1683
if test -n "$CC"; then
789
1684
ac_cv_prog_CC="$CC" # Let the user override the test.
791
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
793
for ac_dir in $ac_dummy; do
794
test -z "$ac_dir" && ac_dir=.
795
if test -f $ac_dir/$ac_word; then
1686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690
test -z "$as_dir" && as_dir=.
1691
for ac_exec_ext in '' $ac_executable_extensions; do
1692
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1694
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703
if test -n "$CC"; then
1704
echo "$as_me:$LINENO: result: $CC" >&5
1705
echo "${ECHO_T}$CC" >&6
1707
echo "$as_me:$LINENO: result: no" >&5
1708
echo "${ECHO_T}no" >&6
1711
test -n "$CC" && break
804
if test -n "$CC"; then
805
echo "$ac_t""$CC" 1>&6
807
echo "$ac_t""no" 1>&6
1714
if test -z "$CC"; then
1718
# Extract the first word of "$ac_prog", so it can be a program name with args.
1719
set dummy $ac_prog; ac_word=$2
1720
echo "$as_me:$LINENO: checking for $ac_word" >&5
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723
echo $ECHO_N "(cached) $ECHO_C" >&6
1725
if test -n "$ac_ct_CC"; then
1726
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732
test -z "$as_dir" && as_dir=.
1733
for ac_exec_ext in '' $ac_executable_extensions; do
1734
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735
ac_cv_prog_ac_ct_CC="$ac_prog"
1736
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
812
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
815
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
816
echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
819
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820
ac_cpp='$CPP $CPPFLAGS'
821
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823
cross_compiling=$ac_cv_prog_cc_cross
825
cat > conftest.$ac_ext << EOF
827
#line 828 "configure"
828
#include "confdefs.h"
832
if { (eval echo configure:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
833
ac_cv_prog_cc_works=yes
834
# If we can't run a trivial program, we are probably using a cross compiler.
835
if (./conftest; exit) 2>/dev/null; then
836
ac_cv_prog_cc_cross=no
1744
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745
if test -n "$ac_ct_CC"; then
1746
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747
echo "${ECHO_T}$ac_ct_CC" >&6
1749
echo "$as_me:$LINENO: result: no" >&5
1750
echo "${ECHO_T}no" >&6
1753
test -n "$ac_ct_CC" && break
1762
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1763
See \`config.log' for more details." >&5
1764
echo "$as_me: error: no acceptable C compiler found in \$PATH
1765
See \`config.log' for more details." >&2;}
1766
{ (exit 1); exit 1; }; }
1768
# Provide some information about the compiler.
1769
echo "$as_me:$LINENO:" \
1770
"checking for C compiler version" >&5
1771
ac_compiler=`set X $ac_compile; echo $2`
1772
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1773
(eval $ac_compiler --version </dev/null >&5) 2>&5
1775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776
(exit $ac_status); }
1777
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1778
(eval $ac_compiler -v </dev/null >&5) 2>&5
1780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781
(exit $ac_status); }
1782
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1783
(eval $ac_compiler -V </dev/null >&5) 2>&5
1785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786
(exit $ac_status); }
1788
cat >conftest.$ac_ext <<_ACEOF
1791
cat confdefs.h >>conftest.$ac_ext
1792
cat >>conftest.$ac_ext <<_ACEOF
1793
/* end confdefs.h. */
1803
ac_clean_files_save=$ac_clean_files
1804
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1805
# Try to create an executable without -o first, disregard a.out.
1806
# It will help us diagnose broken compilers, and finding out an intuition
1808
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1809
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1810
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1811
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1812
(eval $ac_link_default) 2>&5
1814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815
(exit $ac_status); }; then
1816
# Find the output, starting from the most likely. This scheme is
1817
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1820
# Be careful to initialize this variable, since it used to be cached.
1821
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1823
# b.out is created by i960 compilers.
1824
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1826
test -f "$ac_file" || continue
1828
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1831
# This is the source file.
1834
# We found the default executable, but exeext='' is most
1838
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839
# FIXME: I believe we export ac_cv_exeext for Libtool,
1840
# but it would be cool to find out if it's true. Does anybody
1841
# maintain Libtool? --akim.
1849
echo "$as_me: failed program was:" >&5
1850
sed 's/^/| /' conftest.$ac_ext >&5
1852
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1853
See \`config.log' for more details." >&5
1854
echo "$as_me: error: C compiler cannot create executables
1855
See \`config.log' for more details." >&2;}
1856
{ (exit 77); exit 77; }; }
1859
ac_exeext=$ac_cv_exeext
1860
echo "$as_me:$LINENO: result: $ac_file" >&5
1861
echo "${ECHO_T}$ac_file" >&6
1863
# Check the compiler produces executables we can run. If not, either
1864
# the compiler is broken, or we cross compile.
1865
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1866
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1867
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1868
# If not cross compiling, check that we can run a simple program.
1869
if test "$cross_compiling" != yes; then
1870
if { ac_try='./$ac_file'
1871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875
(exit $ac_status); }; }; then
838
ac_cv_prog_cc_cross=yes
1878
if test "$cross_compiling" = maybe; then
1881
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1882
If you meant to cross compile, use \`--host'.
1883
See \`config.log' for more details." >&5
1884
echo "$as_me: error: cannot run C compiled programs.
1885
If you meant to cross compile, use \`--host'.
1886
See \`config.log' for more details." >&2;}
1887
{ (exit 1); exit 1; }; }
841
echo "configure: failed program was:" >&5
842
cat conftest.$ac_ext >&5
843
ac_cv_prog_cc_works=no
847
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
848
ac_cpp='$CPP $CPPFLAGS'
849
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
850
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
851
cross_compiling=$ac_cv_prog_cc_cross
853
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
854
if test $ac_cv_prog_cc_works = no; then
855
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
857
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
858
echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
859
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
860
cross_compiling=$ac_cv_prog_cc_cross
862
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
863
echo "configure:864: checking whether we are using GNU C" >&5
864
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
865
echo $ac_n "(cached) $ac_c" 1>&6
867
cat > conftest.c <<EOF
1891
echo "$as_me:$LINENO: result: yes" >&5
1892
echo "${ECHO_T}yes" >&6
1894
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1895
ac_clean_files=$ac_clean_files_save
1896
# Check the compiler produces executables we can run. If not, either
1897
# the compiler is broken, or we cross compile.
1898
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1899
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1900
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1901
echo "${ECHO_T}$cross_compiling" >&6
1903
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1904
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1905
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1906
(eval $ac_link) 2>&5
1908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909
(exit $ac_status); }; then
1910
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1911
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1912
# work properly (i.e., refer to `conftest.exe'), while it won't with
1914
for ac_file in conftest.exe conftest conftest.*; do
1915
test -f "$ac_file" || continue
1917
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1918
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1925
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1926
See \`config.log' for more details." >&5
1927
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1928
See \`config.log' for more details." >&2;}
1929
{ (exit 1); exit 1; }; }
1932
rm -f conftest$ac_cv_exeext
1933
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1934
echo "${ECHO_T}$ac_cv_exeext" >&6
1936
rm -f conftest.$ac_ext
1937
EXEEXT=$ac_cv_exeext
1939
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1940
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1941
if test "${ac_cv_objext+set}" = set; then
1942
echo $ECHO_N "(cached) $ECHO_C" >&6
1944
cat >conftest.$ac_ext <<_ACEOF
1947
cat confdefs.h >>conftest.$ac_ext
1948
cat >>conftest.$ac_ext <<_ACEOF
1949
/* end confdefs.h. */
1959
rm -f conftest.o conftest.obj
1960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961
(eval $ac_compile) 2>&5
1963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964
(exit $ac_status); }; then
1965
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1967
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1968
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1973
echo "$as_me: failed program was:" >&5
1974
sed 's/^/| /' conftest.$ac_ext >&5
1976
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1977
See \`config.log' for more details." >&5
1978
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1979
See \`config.log' for more details." >&2;}
1980
{ (exit 1); exit 1; }; }
1983
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1985
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1986
echo "${ECHO_T}$ac_cv_objext" >&6
1987
OBJEXT=$ac_cv_objext
1989
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1990
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1991
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1992
echo $ECHO_N "(cached) $ECHO_C" >&6
1994
cat >conftest.$ac_ext <<_ACEOF
1997
cat confdefs.h >>conftest.$ac_ext
1998
cat >>conftest.$ac_ext <<_ACEOF
1999
/* end confdefs.h. */
872
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
879
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
881
if test $ac_cv_prog_gcc = yes; then
887
ac_test_CFLAGS="${CFLAGS+set}"
888
ac_save_CFLAGS="$CFLAGS"
890
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
891
echo "configure:892: checking whether ${CC-cc} accepts -g" >&5
892
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
893
echo $ac_n "(cached) $ac_c" 1>&6
895
echo 'void f(){}' > conftest.c
896
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2012
rm -f conftest.$ac_objext
2013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014
(eval $ac_compile) 2>conftest.er1
2016
grep -v '^ *+' conftest.er1 >conftest.err
2018
cat conftest.err >&5
2019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020
(exit $ac_status); } &&
2021
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026
(exit $ac_status); }; } &&
2027
{ ac_try='test -s conftest.$ac_objext'
2028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032
(exit $ac_status); }; }; then
2035
echo "$as_me: failed program was:" >&5
2036
sed 's/^/| /' conftest.$ac_ext >&5
2040
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2041
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2044
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2045
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2046
GCC=`test $ac_compiler_gnu = yes && echo yes`
2047
ac_test_CFLAGS=${CFLAGS+set}
2048
ac_save_CFLAGS=$CFLAGS
2050
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2051
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2052
if test "${ac_cv_prog_cc_g+set}" = set; then
2053
echo $ECHO_N "(cached) $ECHO_C" >&6
2055
cat >conftest.$ac_ext <<_ACEOF
2058
cat confdefs.h >>conftest.$ac_ext
2059
cat >>conftest.$ac_ext <<_ACEOF
2060
/* end confdefs.h. */
2070
rm -f conftest.$ac_objext
2071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2072
(eval $ac_compile) 2>conftest.er1
2074
grep -v '^ *+' conftest.er1 >conftest.err
2076
cat conftest.err >&5
2077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078
(exit $ac_status); } &&
2079
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
(exit $ac_status); }; } &&
2085
{ ac_try='test -s conftest.$ac_objext'
2086
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090
(exit $ac_status); }; }; then
897
2091
ac_cv_prog_cc_g=yes
905
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2093
echo "$as_me: failed program was:" >&5
2094
sed 's/^/| /' conftest.$ac_ext >&5
2098
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2100
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2101
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
906
2102
if test "$ac_test_CFLAGS" = set; then
907
CFLAGS="$ac_save_CFLAGS"
2103
CFLAGS=$ac_save_CFLAGS
908
2104
elif test $ac_cv_prog_cc_g = yes; then
909
2105
if test "$GCC" = yes; then
922
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
923
echo "configure:924: checking how to run the C preprocessor" >&5
2117
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2118
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2119
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2120
echo $ECHO_N "(cached) $ECHO_C" >&6
2122
ac_cv_prog_cc_stdc=no
2124
cat >conftest.$ac_ext <<_ACEOF
2127
cat confdefs.h >>conftest.$ac_ext
2128
cat >>conftest.$ac_ext <<_ACEOF
2129
/* end confdefs.h. */
2132
#include <sys/types.h>
2133
#include <sys/stat.h>
2134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2135
struct buf { int x; };
2136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2137
static char *e (p, i)
2143
static char *f (char * (*g) (char **, int), char **p, ...)
2148
s = g (p, va_arg (v,int));
2153
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2154
function prototypes and stuff, but not '\xHH' hex character constants.
2155
These don't provoke an error unfortunately, instead are silently treated
2156
as 'x'. The following induces an error, until -std1 is added to get
2157
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2158
array size at least. It's necessary to write '\x00'==0 to get something
2159
that's true only with -std1. */
2160
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2162
int test (int i, double x);
2163
struct s1 {int (*f) (int a);};
2164
struct s2 {int (*f) (double a);};
2165
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2176
# Don't try gcc -ansi; that turns off useful extensions and
2177
# breaks some systems' header files.
2178
# AIX -qlanglvl=ansi
2179
# Ultrix and OSF/1 -std1
2180
# HP-UX 10.20 and later -Ae
2181
# HP-UX older versions -Aa -D_HPUX_SOURCE
2182
# SVR4 -Xc -D__EXTENSIONS__
2183
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2185
CC="$ac_save_CC $ac_arg"
2186
rm -f conftest.$ac_objext
2187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188
(eval $ac_compile) 2>conftest.er1
2190
grep -v '^ *+' conftest.er1 >conftest.err
2192
cat conftest.err >&5
2193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194
(exit $ac_status); } &&
2195
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200
(exit $ac_status); }; } &&
2201
{ ac_try='test -s conftest.$ac_objext'
2202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206
(exit $ac_status); }; }; then
2207
ac_cv_prog_cc_stdc=$ac_arg
2210
echo "$as_me: failed program was:" >&5
2211
sed 's/^/| /' conftest.$ac_ext >&5
2214
rm -f conftest.err conftest.$ac_objext
2216
rm -f conftest.$ac_ext conftest.$ac_objext
2221
case "x$ac_cv_prog_cc_stdc" in
2223
echo "$as_me:$LINENO: result: none needed" >&5
2224
echo "${ECHO_T}none needed" >&6 ;;
2226
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228
CC="$CC $ac_cv_prog_cc_stdc" ;;
2231
# Some people use a C++ compiler to compile C. Since we use `exit',
2232
# in C++ we need to declare it. In case someone uses the same compiler
2233
# for both compiling C and C++ we need to have the C++ compiler decide
2234
# the declaration of exit, since it's the most demanding environment.
2235
cat >conftest.$ac_ext <<_ACEOF
2240
rm -f conftest.$ac_objext
2241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242
(eval $ac_compile) 2>conftest.er1
2244
grep -v '^ *+' conftest.er1 >conftest.err
2246
cat conftest.err >&5
2247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248
(exit $ac_status); } &&
2249
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254
(exit $ac_status); }; } &&
2255
{ ac_try='test -s conftest.$ac_objext'
2256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260
(exit $ac_status); }; }; then
2261
for ac_declaration in \
2263
'extern "C" void std::exit (int) throw (); using std::exit;' \
2264
'extern "C" void std::exit (int); using std::exit;' \
2265
'extern "C" void exit (int) throw ();' \
2266
'extern "C" void exit (int);' \
2269
cat >conftest.$ac_ext <<_ACEOF
2272
cat confdefs.h >>conftest.$ac_ext
2273
cat >>conftest.$ac_ext <<_ACEOF
2274
/* end confdefs.h. */
2285
rm -f conftest.$ac_objext
2286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287
(eval $ac_compile) 2>conftest.er1
2289
grep -v '^ *+' conftest.er1 >conftest.err
2291
cat conftest.err >&5
2292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293
(exit $ac_status); } &&
2294
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299
(exit $ac_status); }; } &&
2300
{ ac_try='test -s conftest.$ac_objext'
2301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305
(exit $ac_status); }; }; then
2308
echo "$as_me: failed program was:" >&5
2309
sed 's/^/| /' conftest.$ac_ext >&5
2313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314
cat >conftest.$ac_ext <<_ACEOF
2317
cat confdefs.h >>conftest.$ac_ext
2318
cat >>conftest.$ac_ext <<_ACEOF
2319
/* end confdefs.h. */
2329
rm -f conftest.$ac_objext
2330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331
(eval $ac_compile) 2>conftest.er1
2333
grep -v '^ *+' conftest.er1 >conftest.err
2335
cat conftest.err >&5
2336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337
(exit $ac_status); } &&
2338
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343
(exit $ac_status); }; } &&
2344
{ ac_try='test -s conftest.$ac_objext'
2345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349
(exit $ac_status); }; }; then
2352
echo "$as_me: failed program was:" >&5
2353
sed 's/^/| /' conftest.$ac_ext >&5
2356
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359
if test -n "$ac_declaration"; then
2360
echo '#ifdef __cplusplus' >>confdefs.h
2361
echo $ac_declaration >>confdefs.h
2362
echo '#endif' >>confdefs.h
2366
echo "$as_me: failed program was:" >&5
2367
sed 's/^/| /' conftest.$ac_ext >&5
2370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372
ac_cpp='$CPP $CPPFLAGS'
2373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
ac_cpp='$CPP $CPPFLAGS'
2379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2383
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
924
2384
# On Suns, sometimes $CPP names a directory.
925
2385
if test -n "$CPP" && test -d "$CPP"; then
928
2388
if test -z "$CPP"; then
929
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
930
echo $ac_n "(cached) $ac_c" 1>&6
932
# This must be in double quotes, not single quotes, because CPP may get
933
# substituted into the Makefile and "${CC-cc}" will confuse make.
935
# On the NeXT, cc -E runs the code through the compiler's parser,
936
# not just through cpp.
937
cat > conftest.$ac_ext <<EOF
938
#line 939 "configure"
939
#include "confdefs.h"
943
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944
{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946
if test -z "$ac_err"; then
950
echo "configure: failed program was:" >&5
951
cat conftest.$ac_ext >&5
953
CPP="${CC-cc} -E -traditional-cpp"
954
cat > conftest.$ac_ext <<EOF
955
#line 956 "configure"
956
#include "confdefs.h"
960
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
961
{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
962
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
963
if test -z "$ac_err"; then
967
echo "configure: failed program was:" >&5
968
cat conftest.$ac_ext >&5
970
CPP="${CC-cc} -nologo -E"
971
cat > conftest.$ac_ext <<EOF
972
#line 973 "configure"
973
#include "confdefs.h"
977
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
978
{ (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
979
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
980
if test -z "$ac_err"; then
984
echo "configure: failed program was:" >&5
985
cat conftest.$ac_ext >&5
994
ac_cv_prog_CPP="$CPP"
996
CPP="$ac_cv_prog_CPP"
998
ac_cv_prog_CPP="$CPP"
1000
echo "$ac_t""$CPP" 1>&6
2389
if test "${ac_cv_prog_CPP+set}" = set; then
2390
echo $ECHO_N "(cached) $ECHO_C" >&6
2392
# Double quotes because CPP needs to be expanded
2393
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2396
for ac_c_preproc_warn_flag in '' yes
2398
# Use a header file that comes with gcc, so configuring glibc
2399
# with a fresh cross-compiler works.
2400
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2401
# <limits.h> exists even on freestanding compilers.
2402
# On the NeXT, cc -E runs the code through the compiler's parser,
2403
# not just through cpp. "Syntax error" is here to catch this case.
2404
cat >conftest.$ac_ext <<_ACEOF
2407
cat confdefs.h >>conftest.$ac_ext
2408
cat >>conftest.$ac_ext <<_ACEOF
2409
/* end confdefs.h. */
2411
# include <limits.h>
2413
# include <assert.h>
2417
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2418
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2420
grep -v '^ *+' conftest.er1 >conftest.err
2422
cat conftest.err >&5
2423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424
(exit $ac_status); } >/dev/null; then
2425
if test -s conftest.err; then
2426
ac_cpp_err=$ac_c_preproc_warn_flag
2427
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2434
if test -z "$ac_cpp_err"; then
2437
echo "$as_me: failed program was:" >&5
2438
sed 's/^/| /' conftest.$ac_ext >&5
2440
# Broken: fails on valid input.
2443
rm -f conftest.err conftest.$ac_ext
2445
# OK, works on sane cases. Now check whether non-existent headers
2446
# can be detected and how.
2447
cat >conftest.$ac_ext <<_ACEOF
2450
cat confdefs.h >>conftest.$ac_ext
2451
cat >>conftest.$ac_ext <<_ACEOF
2452
/* end confdefs.h. */
2453
#include <ac_nonexistent.h>
2455
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2456
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458
grep -v '^ *+' conftest.er1 >conftest.err
2460
cat conftest.err >&5
2461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
(exit $ac_status); } >/dev/null; then
2463
if test -s conftest.err; then
2464
ac_cpp_err=$ac_c_preproc_warn_flag
2465
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2472
if test -z "$ac_cpp_err"; then
2473
# Broken: success on invalid input.
2476
echo "$as_me: failed program was:" >&5
2477
sed 's/^/| /' conftest.$ac_ext >&5
2479
# Passes both tests.
2483
rm -f conftest.err conftest.$ac_ext
2486
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2487
rm -f conftest.err conftest.$ac_ext
2488
if $ac_preproc_ok; then
2500
echo "$as_me:$LINENO: result: $CPP" >&5
2501
echo "${ECHO_T}$CPP" >&6
2503
for ac_c_preproc_warn_flag in '' yes
2505
# Use a header file that comes with gcc, so configuring glibc
2506
# with a fresh cross-compiler works.
2507
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2508
# <limits.h> exists even on freestanding compilers.
2509
# On the NeXT, cc -E runs the code through the compiler's parser,
2510
# not just through cpp. "Syntax error" is here to catch this case.
2511
cat >conftest.$ac_ext <<_ACEOF
2514
cat confdefs.h >>conftest.$ac_ext
2515
cat >>conftest.$ac_ext <<_ACEOF
2516
/* end confdefs.h. */
2518
# include <limits.h>
2520
# include <assert.h>
2524
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2525
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527
grep -v '^ *+' conftest.er1 >conftest.err
2529
cat conftest.err >&5
2530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531
(exit $ac_status); } >/dev/null; then
2532
if test -s conftest.err; then
2533
ac_cpp_err=$ac_c_preproc_warn_flag
2534
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2541
if test -z "$ac_cpp_err"; then
2544
echo "$as_me: failed program was:" >&5
2545
sed 's/^/| /' conftest.$ac_ext >&5
2547
# Broken: fails on valid input.
2550
rm -f conftest.err conftest.$ac_ext
2552
# OK, works on sane cases. Now check whether non-existent headers
2553
# can be detected and how.
2554
cat >conftest.$ac_ext <<_ACEOF
2557
cat confdefs.h >>conftest.$ac_ext
2558
cat >>conftest.$ac_ext <<_ACEOF
2559
/* end confdefs.h. */
2560
#include <ac_nonexistent.h>
2562
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2563
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565
grep -v '^ *+' conftest.er1 >conftest.err
2567
cat conftest.err >&5
2568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569
(exit $ac_status); } >/dev/null; then
2570
if test -s conftest.err; then
2571
ac_cpp_err=$ac_c_preproc_warn_flag
2572
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2579
if test -z "$ac_cpp_err"; then
2580
# Broken: success on invalid input.
2583
echo "$as_me: failed program was:" >&5
2584
sed 's/^/| /' conftest.$ac_ext >&5
2586
# Passes both tests.
2590
rm -f conftest.err conftest.$ac_ext
2593
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2594
rm -f conftest.err conftest.$ac_ext
2595
if $ac_preproc_ok; then
2598
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2599
See \`config.log' for more details." >&5
2600
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2601
See \`config.log' for more details." >&2;}
2602
{ (exit 1); exit 1; }; }
2606
ac_cpp='$CPP $CPPFLAGS'
2607
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1003
2612
# Extract the first word of "whoami", so it can be a program name with args.
1004
2613
set dummy whoami; ac_word=$2
1005
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006
echo "configure:1007: checking for $ac_word" >&5
1007
if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
1008
echo $ac_n "(cached) $ac_c" 1>&6
2614
echo "$as_me:$LINENO: checking for $ac_word" >&5
2615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2616
if test "${ac_cv_path_WHOAMI+set}" = set; then
2617
echo $ECHO_N "(cached) $ECHO_C" >&6
1012
2621
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path.
1015
ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path.
1018
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1019
ac_dummy="$PATH:/usr/ucb"
1020
for ac_dir in $ac_dummy; do
1021
test -z "$ac_dir" && ac_dir=.
1022
if test -f $ac_dir/$ac_word; then
1023
ac_cv_path_WHOAMI="$ac_dir/$ac_word"
2624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625
as_dummy="$PATH:/usr/ucb"
2626
for as_dir in $as_dummy
2629
test -z "$as_dir" && as_dir=.
2630
for ac_exec_ext in '' $ac_executable_extensions; do
2631
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632
ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext"
2633
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1028
2639
test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo"
1032
WHOAMI="$ac_cv_path_WHOAMI"
2643
WHOAMI=$ac_cv_path_WHOAMI
1033
2645
if test -n "$WHOAMI"; then
1034
echo "$ac_t""$WHOAMI" 1>&6
1036
echo "$ac_t""no" 1>&6
1040
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1041
echo "configure:1042: checking for Cygwin environment" >&5
1042
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1043
echo $ac_n "(cached) $ac_c" 1>&6
1045
cat > conftest.$ac_ext <<EOF
1046
#line 1047 "configure"
1047
#include "confdefs.h"
1052
#define __CYGWIN__ __CYGWIN32__
1057
if { (eval echo configure:1058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1061
echo "configure: failed program was:" >&5
1062
cat conftest.$ac_ext >&5
1070
echo "$ac_t""$ac_cv_cygwin" 1>&6
1072
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1073
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1074
echo "configure:1075: checking for mingw32 environment" >&5
1075
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1076
echo $ac_n "(cached) $ac_c" 1>&6
1078
cat > conftest.$ac_ext <<EOF
1079
#line 1080 "configure"
1080
#include "confdefs.h"
1086
if { (eval echo configure:1087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1090
echo "configure: failed program was:" >&5
1091
cat conftest.$ac_ext >&5
1099
echo "$ac_t""$ac_cv_mingw32" 1>&6
1101
test "$ac_cv_mingw32" = yes && MINGW32=yes
1104
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1105
echo "configure:1106: checking for executable suffix" >&5
1106
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1107
echo $ac_n "(cached) $ac_c" 1>&6
1109
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1113
echo 'int main () { return 0; }' > conftest.$ac_ext
1115
if { (eval echo configure:1116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1116
for file in conftest.*; do
1118
*.c | *.o | *.obj) ;;
1119
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1123
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1126
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1131
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1132
echo "$ac_t""${ac_cv_exeext}" 1>&6
2646
echo "$as_me:$LINENO: result: $WHOAMI" >&5
2647
echo "${ECHO_T}$WHOAMI" >&6
2649
echo "$as_me:$LINENO: result: no" >&5
2650
echo "${ECHO_T}no" >&6
1136
2654
#--------------------------------------------------------------------
1137
2655
# specific target_os options
1138
2656
#--------------------------------------------------------------------
2657
INCLUDE_FLAGS="$CPPFLAGS"
2658
LDIR_FLAGS="$LDFLAGS"
2659
# This is just for configuring. Later, in config.make, INCLUDE_FLAGS
2660
# goes in CONFIG_SYSTEM_INCL and LIBS goes in CONFIG_SYSTEM_LIBS
1139
2661
case "$target_os" in
1140
freebsd*) CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1141
LIBS="$LIBS -L/usr/local/lib";;
2662
freebsd* | openbsd* )
2663
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2664
LDFLAGS="$LDFLAGS -L/usr/local/lib";;
2665
netbsd*) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
2666
LDFLAGS="$LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib";;
1145
2669
#----------------------------------------------------------------
1146
2670
# Find out if nested functions work on this machine
1147
2671
#----------------------------------------------------------------
1148
echo $ac_n "checking whether nested functions work""... $ac_c" 1>&6
1149
echo "configure:1150: checking whether nested functions work" >&5
2672
echo "$as_me:$LINENO: checking whether nested functions work" >&5
2673
echo $ECHO_N "checking whether nested functions work... $ECHO_C" >&6
1150
2675
if test "$cross_compiling" = yes; then
1153
cat > conftest.$ac_ext <<EOF
1154
#line 1155 "configure"
1155
#include "confdefs.h"
2678
cat >conftest.$ac_ext <<_ACEOF
2681
cat confdefs.h >>conftest.$ac_ext
2682
cat >>conftest.$ac_ext <<_ACEOF
2683
/* end confdefs.h. */
1156
2684
#include "$srcdir/config/config.nested.c"
1158
if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2686
rm -f conftest$ac_exeext
2687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2688
(eval $ac_link) 2>&5
2690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
(exit $ac_status); }; }; then
1162
echo "configure: failed program was:" >&5
1163
cat conftest.$ac_ext >&5
2699
echo "$as_me: program exited with status $ac_status" >&5
2700
echo "$as_me: failed program was:" >&5
2701
sed 's/^/| /' conftest.$ac_ext >&5
2706
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1170
2708
if test $gcc_nested = 0; then
1171
echo "$ac_t""no" 1>&6
1172
cat >> confdefs.h <<\EOF
2709
echo "$as_me:$LINENO: result: no" >&5
2710
echo "${ECHO_T}no" >&6
2712
cat >>confdefs.h <<\_ACEOF
1173
2713
#define BROKEN_NESTED_FUNCTIONS 1
1177
echo "The GCC 'nested functions' feature does not seem to be working on"
1178
echo "this machine. "
1179
echo "Read the bug-report instructions in the GCC texinfo manual"
1180
echo "and submit a bug report."
1181
echo "The program this configure script used to test nested functions"
1182
echo "can be found in the file 'config/config.nested.c'"
1184
echo "$ac_t""yes" 1>&6
2717
echo "$as_me:$LINENO: result: yes" >&5
2718
echo "${ECHO_T}yes" >&6
1187
2721
#--------------------------------------------------------------------
1188
2722
# Set Apple/Darwin/OSX/NeXT information for other tests
1189
2723
#--------------------------------------------------------------------
1190
2724
OBJC_RUNTIME_LIB=`echo $LIBRARY_COMBO | tr '-' ' ' | awk '{print $1}'`
1191
echo $ac_n "checking the Objective-C runtime""... $ac_c" 1>&6
1192
echo "configure:1193: checking the Objective-C runtime" >&5
1193
if test "$OBJC_RUNTIME_LIB" = "nx"; then
1194
echo "$ac_t""NeXT" 1>&6
2725
echo "$as_me:$LINENO: checking the Objective-C runtime" >&5
2726
echo $ECHO_N "checking the Objective-C runtime... $ECHO_C" >&6
2727
if test "$OBJC_RUNTIME_LIB" = "nx" -o "$OBJC_RUNTIME_LIB" = "apple"; then
2728
echo "$as_me:$LINENO: result: NeXT" >&5
2729
echo "${ECHO_T}NeXT" >&6
1195
2730
LIBOBJC='-lobjc'
1196
CPPFLAGS="$CPPFLAGS -fnext-runtime -DNeXT_RUNTIME"
2731
OBJCFLAGS="-fnext-runtime -DNeXT_RUNTIME"
1198
echo "$ac_t""GNU" 1>&6
2733
echo "$as_me:$LINENO: result: GNU" >&5
2734
echo "${ECHO_T}GNU" >&6
1199
2735
LIBOBJC='-lobjc'
1200
CPPFLAGS="$CPPFLAGS -fgnu-runtime"
2736
OBJCFLAGS="-fgnu-runtime"
1203
2739
#--------------------------------------------------------------------
1204
2740
# Miscellaneous flags
1205
2741
#--------------------------------------------------------------------
1206
2742
# Set location of GNUstep dirs for later use
1207
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Headers
1208
2743
if test "$GNUSTEP_FLATTENED" = yes; then
1209
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries
2744
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries
2745
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers
1211
clean_target_os=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_os.sh $target_os`
1212
clean_target_cpu=`$GNUSTEP_SYSTEM_ROOT/Makefiles/clean_cpu.sh $target_cpu`
2747
clean_target_os=`$GNUSTEP_MAKEFILES/clean_os.sh $target_os`
2748
clean_target_cpu=`$GNUSTEP_MAKEFILES/clean_cpu.sh $target_cpu`
1213
2749
obj_dir=$clean_target_cpu/$clean_target_os
1214
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Libraries/$obj_dir
2750
GNUSTEP_LDIR=$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir
2751
GNUSTEP_HDIR=$GNUSTEP_SYSTEM_ROOT/Library/Headers/$LIBRARY_COMBO
1224
2761
#--------------------------------------------------------------------
1225
2762
# Check if Objective-C is installed
1226
2763
#--------------------------------------------------------------------
1227
for ac_hdr in objc/objc.h
1229
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1230
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1231
echo "configure:1232: checking for $ac_hdr" >&5
1232
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1233
echo $ac_n "(cached) $ac_c" 1>&6
1235
cat > conftest.$ac_ext <<EOF
1236
#line 1237 "configure"
1237
#include "confdefs.h"
1240
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241
{ (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1243
if test -z "$ac_err"; then
1245
eval "ac_cv_header_$ac_safe=yes"
1248
echo "configure: failed program was:" >&5
1249
cat conftest.$ac_ext >&5
1251
eval "ac_cv_header_$ac_safe=no"
1255
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1256
echo "$ac_t""yes" 1>&6
1257
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1258
cat >> confdefs.h <<EOF
1259
#define $ac_tr_hdr 1
1263
echo "$ac_t""no" 1>&6
2765
echo "$as_me:$LINENO: checking for egrep" >&5
2766
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2767
if test "${ac_cv_prog_egrep+set}" = set; then
2768
echo $ECHO_N "(cached) $ECHO_C" >&6
2770
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2771
then ac_cv_prog_egrep='grep -E'
2772
else ac_cv_prog_egrep='egrep'
2775
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2776
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2777
EGREP=$ac_cv_prog_egrep
2780
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2781
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2782
if test "${ac_cv_header_stdc+set}" = set; then
2783
echo $ECHO_N "(cached) $ECHO_C" >&6
2785
cat >conftest.$ac_ext <<_ACEOF
2788
cat confdefs.h >>conftest.$ac_ext
2789
cat >>conftest.$ac_ext <<_ACEOF
2790
/* end confdefs.h. */
2804
rm -f conftest.$ac_objext
2805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806
(eval $ac_compile) 2>conftest.er1
2808
grep -v '^ *+' conftest.er1 >conftest.err
2810
cat conftest.err >&5
2811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812
(exit $ac_status); } &&
2813
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818
(exit $ac_status); }; } &&
2819
{ ac_try='test -s conftest.$ac_objext'
2820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824
(exit $ac_status); }; }; then
2825
ac_cv_header_stdc=yes
2827
echo "$as_me: failed program was:" >&5
2828
sed 's/^/| /' conftest.$ac_ext >&5
2830
ac_cv_header_stdc=no
2832
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834
if test $ac_cv_header_stdc = yes; then
2835
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2836
cat >conftest.$ac_ext <<_ACEOF
2839
cat confdefs.h >>conftest.$ac_ext
2840
cat >>conftest.$ac_ext <<_ACEOF
2841
/* end confdefs.h. */
2845
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2846
$EGREP "memchr" >/dev/null 2>&1; then
2849
ac_cv_header_stdc=no
2855
if test $ac_cv_header_stdc = yes; then
2856
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2857
cat >conftest.$ac_ext <<_ACEOF
2860
cat confdefs.h >>conftest.$ac_ext
2861
cat >>conftest.$ac_ext <<_ACEOF
2862
/* end confdefs.h. */
2866
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2867
$EGREP "free" >/dev/null 2>&1; then
2870
ac_cv_header_stdc=no
2876
if test $ac_cv_header_stdc = yes; then
2877
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2878
if test "$cross_compiling" = yes; then
2881
cat >conftest.$ac_ext <<_ACEOF
2884
cat confdefs.h >>conftest.$ac_ext
2885
cat >>conftest.$ac_ext <<_ACEOF
2886
/* end confdefs.h. */
2888
#if ((' ' & 0x0FF) == 0x020)
2889
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2890
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2892
# define ISLOWER(c) \
2893
(('a' <= (c) && (c) <= 'i') \
2894
|| ('j' <= (c) && (c) <= 'r') \
2895
|| ('s' <= (c) && (c) <= 'z'))
2896
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2899
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2904
for (i = 0; i < 256; i++)
2905
if (XOR (islower (i), ISLOWER (i))
2906
|| toupper (i) != TOUPPER (i))
2911
rm -f conftest$ac_exeext
2912
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2913
(eval $ac_link) 2>&5
2915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921
(exit $ac_status); }; }; then
2924
echo "$as_me: program exited with status $ac_status" >&5
2925
echo "$as_me: failed program was:" >&5
2926
sed 's/^/| /' conftest.$ac_ext >&5
2929
ac_cv_header_stdc=no
2931
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2935
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2936
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2937
if test $ac_cv_header_stdc = yes; then
2939
cat >>confdefs.h <<\_ACEOF
2940
#define STDC_HEADERS 1
2945
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2955
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2956
inttypes.h stdint.h unistd.h
2958
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2959
echo "$as_me:$LINENO: checking for $ac_header" >&5
2960
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2961
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2962
echo $ECHO_N "(cached) $ECHO_C" >&6
2964
cat >conftest.$ac_ext <<_ACEOF
2967
cat confdefs.h >>conftest.$ac_ext
2968
cat >>conftest.$ac_ext <<_ACEOF
2969
/* end confdefs.h. */
2970
$ac_includes_default
2972
#include <$ac_header>
2974
rm -f conftest.$ac_objext
2975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976
(eval $ac_compile) 2>conftest.er1
2978
grep -v '^ *+' conftest.er1 >conftest.err
2980
cat conftest.err >&5
2981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982
(exit $ac_status); } &&
2983
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988
(exit $ac_status); }; } &&
2989
{ ac_try='test -s conftest.$ac_objext'
2990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994
(exit $ac_status); }; }; then
2995
eval "$as_ac_Header=yes"
2997
echo "$as_me: failed program was:" >&5
2998
sed 's/^/| /' conftest.$ac_ext >&5
3000
eval "$as_ac_Header=no"
3002
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3006
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3007
cat >>confdefs.h <<_ACEOF
3008
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3017
for ac_header in objc/objc.h
3019
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3020
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3021
echo "$as_me:$LINENO: checking for $ac_header" >&5
3022
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3023
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3024
echo $ECHO_N "(cached) $ECHO_C" >&6
3026
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3027
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3029
# Is the header compilable?
3030
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3031
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3032
cat >conftest.$ac_ext <<_ACEOF
3035
cat confdefs.h >>conftest.$ac_ext
3036
cat >>conftest.$ac_ext <<_ACEOF
3037
/* end confdefs.h. */
3038
$ac_includes_default
3039
#include <$ac_header>
3041
rm -f conftest.$ac_objext
3042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043
(eval $ac_compile) 2>conftest.er1
3045
grep -v '^ *+' conftest.er1 >conftest.err
3047
cat conftest.err >&5
3048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049
(exit $ac_status); } &&
3050
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055
(exit $ac_status); }; } &&
3056
{ ac_try='test -s conftest.$ac_objext'
3057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061
(exit $ac_status); }; }; then
3062
ac_header_compiler=yes
3064
echo "$as_me: failed program was:" >&5
3065
sed 's/^/| /' conftest.$ac_ext >&5
3067
ac_header_compiler=no
3069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3071
echo "${ECHO_T}$ac_header_compiler" >&6
3073
# Is the header present?
3074
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3075
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3076
cat >conftest.$ac_ext <<_ACEOF
3079
cat confdefs.h >>conftest.$ac_ext
3080
cat >>conftest.$ac_ext <<_ACEOF
3081
/* end confdefs.h. */
3082
#include <$ac_header>
3084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087
grep -v '^ *+' conftest.er1 >conftest.err
3089
cat conftest.err >&5
3090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091
(exit $ac_status); } >/dev/null; then
3092
if test -s conftest.err; then
3093
ac_cpp_err=$ac_c_preproc_warn_flag
3094
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101
if test -z "$ac_cpp_err"; then
3102
ac_header_preproc=yes
3104
echo "$as_me: failed program was:" >&5
3105
sed 's/^/| /' conftest.$ac_ext >&5
3107
ac_header_preproc=no
3109
rm -f conftest.err conftest.$ac_ext
3110
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3111
echo "${ECHO_T}$ac_header_preproc" >&6
3113
# So? What about this header?
3114
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3116
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3117
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3118
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3119
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3120
ac_header_preproc=yes
3123
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3124
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3125
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3126
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3127
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3128
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3129
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3130
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3131
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3132
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3133
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3134
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3137
## ------------------------------------------ ##
3138
## Report this to the AC_PACKAGE_NAME lists. ##
3139
## ------------------------------------------ ##
3142
sed "s/^/$as_me: WARNING: /" >&2
3145
echo "$as_me:$LINENO: checking for $ac_header" >&5
3146
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3147
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3148
echo $ECHO_N "(cached) $ECHO_C" >&6
3150
eval "$as_ac_Header=\$ac_header_preproc"
3152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3153
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3156
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3157
cat >>confdefs.h <<_ACEOF
3158
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1267
3165
if test $ac_cv_header_objc_objc_h = no; then
1268
echo "Could not find Objective-C headers"
1269
3166
echo "Check to make sure you have a full installation of the GCC"
1270
3167
echo "compiler that includes the Objective-C headers and libraries"
1271
{ echo "configure: error: Could not find Objective-C headers" 1>&2; exit 1; }
3168
{ { echo "$as_me:$LINENO: error: Could not find Objective-C headers" >&5
3169
echo "$as_me: error: Could not find Objective-C headers" >&2;}
3170
{ (exit 1); exit 1; }; }
1274
3173
#--------------------------------------------------------------------
1275
3174
# Check for strange network stuff used by gdomap
1276
3175
#--------------------------------------------------------------------
1277
echo $ac_n "checking for gdomap network details""... $ac_c" 1>&6
1278
echo "configure:1279: checking for gdomap network details" >&5
1279
echo $ac_n "checking for variable length socket addresses""... $ac_c" 1>&6
1280
echo "configure:1281: checking for variable length socket addresses" >&5
1281
cat > conftest.$ac_ext <<EOF
1282
#line 1283 "configure"
1283
#include "confdefs.h"
1285
#include <sys/types.h>
1286
#include <sys/socket.h>
3176
{ echo "$as_me:$LINENO: for gdomap network details" >&5
3177
echo "$as_me: for gdomap network details" >&6;}
3178
echo "$as_me:$LINENO: checking for variable length socket addresses" >&5
3179
echo $ECHO_N "checking for variable length socket addresses... $ECHO_C" >&6
3180
cat >conftest.$ac_ext <<_ACEOF
3183
cat confdefs.h >>conftest.$ac_ext
3184
cat >>conftest.$ac_ext <<_ACEOF
3185
/* end confdefs.h. */
3187
#include <sys/types.h>
3188
#include <sys/socket.h>
1290
3194
struct ifreq s; s.ifr_addr.sa_len = 0;
1293
if { (eval echo configure:1294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3199
rm -f conftest.$ac_objext
3200
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201
(eval $ac_compile) 2>conftest.er1
3203
grep -v '^ *+' conftest.er1 >conftest.err
3205
cat conftest.err >&5
3206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207
(exit $ac_status); } &&
3208
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213
(exit $ac_status); }; } &&
3214
{ ac_try='test -s conftest.$ac_objext'
3215
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219
(exit $ac_status); }; }; then
1297
echo "configure: failed program was:" >&5
1298
cat conftest.$ac_ext >&5
3222
echo "$as_me: failed program was:" >&5
3223
sed 's/^/| /' conftest.$ac_ext >&5
3227
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1303
3228
if test $sa_len = 1; then
1304
echo "$ac_t""found" 1>&6
1305
cat >> confdefs.h <<\EOF
3229
echo "$as_me:$LINENO: result: found" >&5
3230
echo "${ECHO_T}found" >&6
3232
cat >>confdefs.h <<\_ACEOF
1306
3233
#define HAVE_SA_LEN 1
1310
echo "$ac_t""not found" 1>&6
3237
echo "$as_me:$LINENO: result: not found" >&5
3238
echo "${ECHO_T}not found" >&6
3241
#--------------------------------------------------------------------
3242
# Check if system has buggy SO_REUSEADDR
3243
#--------------------------------------------------------------------
3244
echo "$as_me:$LINENO: checking whether SO_REUSEADDR is broken" >&5
3245
echo $ECHO_N "checking whether SO_REUSEADDR is broken... $ECHO_C" >&6
3246
if test "$cross_compiling" = yes; then
3249
cat >conftest.$ac_ext <<_ACEOF
3252
cat confdefs.h >>conftest.$ac_ext
3253
cat >>conftest.$ac_ext <<_ACEOF
3254
/* end confdefs.h. */
3255
#include "$srcdir/config/config.reuseaddr.c"
3257
rm -f conftest$ac_exeext
3258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259
(eval $ac_link) 2>&5
3261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267
(exit $ac_status); }; }; then
3270
echo "$as_me: program exited with status $ac_status" >&5
3271
echo "$as_me: failed program was:" >&5
3272
sed 's/^/| /' conftest.$ac_ext >&5
3277
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3279
if test $reuseaddr_ok = 0; then
3281
cat >>confdefs.h <<\_ACEOF
3282
#define BROKEN_SO_REUSEADDR 1
3286
echo "The SO_REUSEADDR socket option for controlling re-use of network"
3287
echo "sockets immediately after shutdown appears to be broken on this"
3288
echo "machine. Networking code will be built without using this"
3290
echo "The effect of this lack is that when a network service is shut"
3291
echo "down, it cannot be re-started on the same network port until"
3292
echo "an operating-system timeout has expired."
3293
echo "For servers other than gdomap, GNUstep does not normally need"
3294
echo "a particular network port, so the problem is unlikely to arise."
3295
echo "$as_me:$LINENO: result: yes" >&5
3296
echo "${ECHO_T}yes" >&6
3298
echo "$as_me:$LINENO: result: no" >&5
3299
echo "${ECHO_T}no" >&6
1313
3302
#--------------------------------------------------------------------
1314
3303
# Check for thread flags for libobjc.
1315
3304
#--------------------------------------------------------------------
1317
echo $ac_n "checking for objc threading flags""... $ac_c" 1>&6
1318
echo "configure:1319: checking for objc threading flags" >&5
3306
echo "$as_me:$LINENO: checking for objc threading flags" >&5
3307
echo $ECHO_N "checking for objc threading flags... $ECHO_C" >&6
1320
3309
# Get them from gnustep-make which contains the real code to get them
1322
objc_threaded=`grep objc_threaded: $GNUSTEP_SYSTEM_ROOT/Makefiles/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
3311
objc_threaded=`grep objc_threaded: $GNUSTEP_MAKEFILES/$obj_dir/config.make | sed -e 's/objc_threaded:=//'`
1324
echo "$ac_t""$objc_threaded" 1>&6
3313
echo "$as_me:$LINENO: result: $objc_threaded" >&5
3314
echo "${ECHO_T}$objc_threaded" >&6
1326
3316
#--------------------------------------------------------------------
1327
3317
# Byte order information needed for foundation headers.
1328
3318
#--------------------------------------------------------------------
1329
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1330
echo "configure:1331: checking whether byte ordering is bigendian" >&5
1331
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1332
echo $ac_n "(cached) $ac_c" 1>&6
3319
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3320
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3321
if test "${ac_cv_c_bigendian+set}" = set; then
3322
echo $ECHO_N "(cached) $ECHO_C" >&6
1334
ac_cv_c_bigendian=unknown
1335
# See if sys/param.h defines the BYTE_ORDER macro.
1336
cat > conftest.$ac_ext <<EOF
1337
#line 1338 "configure"
1338
#include "confdefs.h"
3324
# See if sys/param.h defines the BYTE_ORDER macro.
3325
cat >conftest.$ac_ext <<_ACEOF
3328
cat confdefs.h >>conftest.$ac_ext
3329
cat >>conftest.$ac_ext <<_ACEOF
3330
/* end confdefs.h. */
1339
3331
#include <sys/types.h>
1340
3332
#include <sys/param.h>
1343
3337
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1344
3338
bogus endian macros
1348
if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345
rm -f conftest.$ac_objext
3346
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347
(eval $ac_compile) 2>conftest.er1
3349
grep -v '^ *+' conftest.er1 >conftest.err
3351
cat conftest.err >&5
3352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353
(exit $ac_status); } &&
3354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359
(exit $ac_status); }; } &&
3360
{ ac_try='test -s conftest.$ac_objext'
3361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365
(exit $ac_status); }; }; then
1350
3366
# It does; now see whether it defined to BIG_ENDIAN or not.
1351
cat > conftest.$ac_ext <<EOF
1352
#line 1353 "configure"
1353
#include "confdefs.h"
3367
cat >conftest.$ac_ext <<_ACEOF
3370
cat confdefs.h >>conftest.$ac_ext
3371
cat >>conftest.$ac_ext <<_ACEOF
3372
/* end confdefs.h. */
1354
3373
#include <sys/types.h>
1355
3374
#include <sys/param.h>
1358
3379
#if BYTE_ORDER != BIG_ENDIAN
1363
if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387
rm -f conftest.$ac_objext
3388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389
(eval $ac_compile) 2>conftest.er1
3391
grep -v '^ *+' conftest.er1 >conftest.err
3393
cat conftest.err >&5
3394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395
(exit $ac_status); } &&
3396
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401
(exit $ac_status); }; } &&
3402
{ ac_try='test -s conftest.$ac_objext'
3403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407
(exit $ac_status); }; }; then
1365
3408
ac_cv_c_bigendian=yes
1367
echo "configure: failed program was:" >&5
1368
cat conftest.$ac_ext >&5
1370
ac_cv_c_bigendian=no
3410
echo "$as_me: failed program was:" >&5
3411
sed 's/^/| /' conftest.$ac_ext >&5
3413
ac_cv_c_bigendian=no
3415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1374
echo "configure: failed program was:" >&5
1375
cat conftest.$ac_ext >&5
1378
if test $ac_cv_c_bigendian = unknown; then
3417
echo "$as_me: failed program was:" >&5
3418
sed 's/^/| /' conftest.$ac_ext >&5
3420
# It does not; compile a test program.
1379
3421
if test "$cross_compiling" = yes; then
1380
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1382
cat > conftest.$ac_ext <<EOF
1383
#line 1384 "configure"
1384
#include "confdefs.h"
3422
# try to guess the endianness by grepping values into an object file
3423
ac_cv_c_bigendian=unknown
3424
cat >conftest.$ac_ext <<_ACEOF
3427
cat confdefs.h >>conftest.$ac_ext
3428
cat >>conftest.$ac_ext <<_ACEOF
3429
/* end confdefs.h. */
3430
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3431
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3432
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3433
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3434
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3435
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3439
_ascii (); _ebcdic ();
3444
rm -f conftest.$ac_objext
3445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446
(eval $ac_compile) 2>conftest.er1
3448
grep -v '^ *+' conftest.er1 >conftest.err
3450
cat conftest.err >&5
3451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452
(exit $ac_status); } &&
3453
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
(exit $ac_status); }; } &&
3459
{ ac_try='test -s conftest.$ac_objext'
3460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
(exit $ac_status); }; }; then
3465
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3466
ac_cv_c_bigendian=yes
3468
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3469
if test "$ac_cv_c_bigendian" = unknown; then
3470
ac_cv_c_bigendian=no
3472
# finding both strings is unlikely to happen, but who knows?
3473
ac_cv_c_bigendian=unknown
3477
echo "$as_me: failed program was:" >&5
3478
sed 's/^/| /' conftest.$ac_ext >&5
3481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483
cat >conftest.$ac_ext <<_ACEOF
3486
cat confdefs.h >>conftest.$ac_ext
3487
cat >>conftest.$ac_ext <<_ACEOF
3488
/* end confdefs.h. */
1386
3492
/* Are we little or big endian? From Harbison&Steele. */
1474
echo $ac_n "checking size of short""... $ac_c" 1>&6
1475
echo "configure:1476: checking size of short" >&5
1476
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1477
echo $ac_n "(cached) $ac_c" 1>&6
1479
if test "$cross_compiling" = yes; then
1480
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1482
cat > conftest.$ac_ext <<EOF
1483
#line 1484 "configure"
1484
#include "confdefs.h"
3968
echo "$as_me:$LINENO: checking for short" >&5
3969
echo $ECHO_N "checking for short... $ECHO_C" >&6
3970
if test "${ac_cv_type_short+set}" = set; then
3971
echo $ECHO_N "(cached) $ECHO_C" >&6
3973
cat >conftest.$ac_ext <<_ACEOF
3976
cat confdefs.h >>conftest.$ac_ext
3977
cat >>conftest.$ac_ext <<_ACEOF
3978
/* end confdefs.h. */
3979
$ac_includes_default
3991
rm -f conftest.$ac_objext
3992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993
(eval $ac_compile) 2>conftest.er1
3995
grep -v '^ *+' conftest.er1 >conftest.err
3997
cat conftest.err >&5
3998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
(exit $ac_status); } &&
4000
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
(exit $ac_status); }; } &&
4006
{ ac_try='test -s conftest.$ac_objext'
4007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011
(exit $ac_status); }; }; then
4012
ac_cv_type_short=yes
4014
echo "$as_me: failed program was:" >&5
4015
sed 's/^/| /' conftest.$ac_ext >&5
4019
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4022
echo "${ECHO_T}$ac_cv_type_short" >&6
4024
echo "$as_me:$LINENO: checking size of short" >&5
4025
echo $ECHO_N "checking size of short... $ECHO_C" >&6
4026
if test "${ac_cv_sizeof_short+set}" = set; then
4027
echo $ECHO_N "(cached) $ECHO_C" >&6
4029
if test "$ac_cv_type_short" = yes; then
4030
# The cast to unsigned long works around a bug in the HP C Compiler
4031
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4032
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4033
# This bug is HP SR number 8606223364.
4034
if test "$cross_compiling" = yes; then
4035
# Depending upon the size, compute the lo and hi bounds.
4036
cat >conftest.$ac_ext <<_ACEOF
4039
cat confdefs.h >>conftest.$ac_ext
4040
cat >>conftest.$ac_ext <<_ACEOF
4041
/* end confdefs.h. */
4042
$ac_includes_default
4046
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4053
rm -f conftest.$ac_objext
4054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055
(eval $ac_compile) 2>conftest.er1
4057
grep -v '^ *+' conftest.er1 >conftest.err
4059
cat conftest.err >&5
4060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
(exit $ac_status); } &&
4062
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
(exit $ac_status); }; } &&
4068
{ ac_try='test -s conftest.$ac_objext'
4069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
(exit $ac_status); }; }; then
4076
cat >conftest.$ac_ext <<_ACEOF
4079
cat confdefs.h >>conftest.$ac_ext
4080
cat >>conftest.$ac_ext <<_ACEOF
4081
/* end confdefs.h. */
4082
$ac_includes_default
4086
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4093
rm -f conftest.$ac_objext
4094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095
(eval $ac_compile) 2>conftest.er1
4097
grep -v '^ *+' conftest.er1 >conftest.err
4099
cat conftest.err >&5
4100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
(exit $ac_status); } &&
4102
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107
(exit $ac_status); }; } &&
4108
{ ac_try='test -s conftest.$ac_objext'
4109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113
(exit $ac_status); }; }; then
4114
ac_hi=$ac_mid; break
4116
echo "$as_me: failed program was:" >&5
4117
sed 's/^/| /' conftest.$ac_ext >&5
4119
ac_lo=`expr $ac_mid + 1`
4120
if test $ac_lo -le $ac_mid; then
4124
ac_mid=`expr 2 '*' $ac_mid + 1`
4126
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129
echo "$as_me: failed program was:" >&5
4130
sed 's/^/| /' conftest.$ac_ext >&5
4132
cat >conftest.$ac_ext <<_ACEOF
4135
cat confdefs.h >>conftest.$ac_ext
4136
cat >>conftest.$ac_ext <<_ACEOF
4137
/* end confdefs.h. */
4138
$ac_includes_default
4142
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4149
rm -f conftest.$ac_objext
4150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151
(eval $ac_compile) 2>conftest.er1
4153
grep -v '^ *+' conftest.er1 >conftest.err
4155
cat conftest.err >&5
4156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157
(exit $ac_status); } &&
4158
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163
(exit $ac_status); }; } &&
4164
{ ac_try='test -s conftest.$ac_objext'
4165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169
(exit $ac_status); }; }; then
4172
cat >conftest.$ac_ext <<_ACEOF
4175
cat confdefs.h >>conftest.$ac_ext
4176
cat >>conftest.$ac_ext <<_ACEOF
4177
/* end confdefs.h. */
4178
$ac_includes_default
4182
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4189
rm -f conftest.$ac_objext
4190
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191
(eval $ac_compile) 2>conftest.er1
4193
grep -v '^ *+' conftest.er1 >conftest.err
4195
cat conftest.err >&5
4196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
(exit $ac_status); } &&
4198
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
(exit $ac_status); }; } &&
4204
{ ac_try='test -s conftest.$ac_objext'
4205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
(exit $ac_status); }; }; then
4210
ac_lo=$ac_mid; break
4212
echo "$as_me: failed program was:" >&5
4213
sed 's/^/| /' conftest.$ac_ext >&5
4215
ac_hi=`expr '(' $ac_mid ')' - 1`
4216
if test $ac_mid -le $ac_hi; then
4220
ac_mid=`expr 2 '*' $ac_mid`
4222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225
echo "$as_me: failed program was:" >&5
4226
sed 's/^/| /' conftest.$ac_ext >&5
4230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4233
# Binary search between lo and hi bounds.
4234
while test "x$ac_lo" != "x$ac_hi"; do
4235
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4236
cat >conftest.$ac_ext <<_ACEOF
4239
cat confdefs.h >>conftest.$ac_ext
4240
cat >>conftest.$ac_ext <<_ACEOF
4241
/* end confdefs.h. */
4242
$ac_includes_default
4246
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4253
rm -f conftest.$ac_objext
4254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255
(eval $ac_compile) 2>conftest.er1
4257
grep -v '^ *+' conftest.er1 >conftest.err
4259
cat conftest.err >&5
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); } &&
4262
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
(exit $ac_status); }; } &&
4268
{ ac_try='test -s conftest.$ac_objext'
4269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273
(exit $ac_status); }; }; then
4276
echo "$as_me: failed program was:" >&5
4277
sed 's/^/| /' conftest.$ac_ext >&5
4279
ac_lo=`expr '(' $ac_mid ')' + 1`
4281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4284
?*) ac_cv_sizeof_short=$ac_lo;;
4285
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4286
See \`config.log' for more details." >&5
4287
echo "$as_me: error: cannot compute sizeof (short), 77
4288
See \`config.log' for more details." >&2;}
4289
{ (exit 1); exit 1; }; } ;;
4292
if test "$cross_compiling" = yes; then
4293
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4294
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4295
{ (exit 1); exit 1; }; }
4297
cat >conftest.$ac_ext <<_ACEOF
4300
cat confdefs.h >>conftest.$ac_ext
4301
cat >>conftest.$ac_ext <<_ACEOF
4302
/* end confdefs.h. */
4303
$ac_includes_default
4304
long longval () { return (long) (sizeof (short)); }
4305
unsigned long ulongval () { return (long) (sizeof (short)); }
1485
4306
#include <stdio.h>
1488
FILE *f=fopen("conftestval", "w");
1490
fprintf(f, "%d\n", sizeof(short));
4312
FILE *f = fopen ("conftest.val", "w");
4315
if (((long) (sizeof (short))) < 0)
4317
long i = longval ();
4318
if (i != ((long) (sizeof (short))))
4320
fprintf (f, "%ld\n", i);
4324
unsigned long i = ulongval ();
4325
if (i != ((long) (sizeof (short))))
4327
fprintf (f, "%lu\n", i);
4329
exit (ferror (f) || fclose (f) != 0);
1494
if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1496
ac_cv_sizeof_short=`cat conftestval`
1498
echo "configure: failed program was:" >&5
1499
cat conftest.$ac_ext >&5
4335
rm -f conftest$ac_exeext
4336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337
(eval $ac_link) 2>&5
4339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345
(exit $ac_status); }; }; then
4346
ac_cv_sizeof_short=`cat conftest.val`
4348
echo "$as_me: program exited with status $ac_status" >&5
4349
echo "$as_me: failed program was:" >&5
4350
sed 's/^/| /' conftest.$ac_ext >&5
4353
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4354
See \`config.log' for more details." >&5
4355
echo "$as_me: error: cannot compute sizeof (short), 77
4356
See \`config.log' for more details." >&2;}
4357
{ (exit 1); exit 1; }; }
4359
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1501
4364
ac_cv_sizeof_short=0
1507
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1508
cat >> confdefs.h <<EOF
4367
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4368
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4369
cat >>confdefs.h <<_ACEOF
1509
4370
#define SIZEOF_SHORT $ac_cv_sizeof_short
1515
echo $ac_n "checking size of int""... $ac_c" 1>&6
1516
echo "configure:1517: checking size of int" >&5
1517
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1518
echo $ac_n "(cached) $ac_c" 1>&6
1520
if test "$cross_compiling" = yes; then
1521
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1523
cat > conftest.$ac_ext <<EOF
1524
#line 1525 "configure"
1525
#include "confdefs.h"
4376
echo "$as_me:$LINENO: checking for int" >&5
4377
echo $ECHO_N "checking for int... $ECHO_C" >&6
4378
if test "${ac_cv_type_int+set}" = set; then
4379
echo $ECHO_N "(cached) $ECHO_C" >&6
4381
cat >conftest.$ac_ext <<_ACEOF
4384
cat confdefs.h >>conftest.$ac_ext
4385
cat >>conftest.$ac_ext <<_ACEOF
4386
/* end confdefs.h. */
4387
$ac_includes_default
4399
rm -f conftest.$ac_objext
4400
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401
(eval $ac_compile) 2>conftest.er1
4403
grep -v '^ *+' conftest.er1 >conftest.err
4405
cat conftest.err >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); } &&
4408
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
(exit $ac_status); }; } &&
4414
{ ac_try='test -s conftest.$ac_objext'
4415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419
(exit $ac_status); }; }; then
4422
echo "$as_me: failed program was:" >&5
4423
sed 's/^/| /' conftest.$ac_ext >&5
4427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4430
echo "${ECHO_T}$ac_cv_type_int" >&6
4432
echo "$as_me:$LINENO: checking size of int" >&5
4433
echo $ECHO_N "checking size of int... $ECHO_C" >&6
4434
if test "${ac_cv_sizeof_int+set}" = set; then
4435
echo $ECHO_N "(cached) $ECHO_C" >&6
4437
if test "$ac_cv_type_int" = yes; then
4438
# The cast to unsigned long works around a bug in the HP C Compiler
4439
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4440
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4441
# This bug is HP SR number 8606223364.
4442
if test "$cross_compiling" = yes; then
4443
# Depending upon the size, compute the lo and hi bounds.
4444
cat >conftest.$ac_ext <<_ACEOF
4447
cat confdefs.h >>conftest.$ac_ext
4448
cat >>conftest.$ac_ext <<_ACEOF
4449
/* end confdefs.h. */
4450
$ac_includes_default
4454
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4461
rm -f conftest.$ac_objext
4462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463
(eval $ac_compile) 2>conftest.er1
4465
grep -v '^ *+' conftest.er1 >conftest.err
4467
cat conftest.err >&5
4468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
(exit $ac_status); } &&
4470
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
(exit $ac_status); }; } &&
4476
{ ac_try='test -s conftest.$ac_objext'
4477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481
(exit $ac_status); }; }; then
4484
cat >conftest.$ac_ext <<_ACEOF
4487
cat confdefs.h >>conftest.$ac_ext
4488
cat >>conftest.$ac_ext <<_ACEOF
4489
/* end confdefs.h. */
4490
$ac_includes_default
4494
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4501
rm -f conftest.$ac_objext
4502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503
(eval $ac_compile) 2>conftest.er1
4505
grep -v '^ *+' conftest.er1 >conftest.err
4507
cat conftest.err >&5
4508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
(exit $ac_status); } &&
4510
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
(exit $ac_status); }; } &&
4516
{ ac_try='test -s conftest.$ac_objext'
4517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
(exit $ac_status); }; }; then
4522
ac_hi=$ac_mid; break
4524
echo "$as_me: failed program was:" >&5
4525
sed 's/^/| /' conftest.$ac_ext >&5
4527
ac_lo=`expr $ac_mid + 1`
4528
if test $ac_lo -le $ac_mid; then
4532
ac_mid=`expr 2 '*' $ac_mid + 1`
4534
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537
echo "$as_me: failed program was:" >&5
4538
sed 's/^/| /' conftest.$ac_ext >&5
4540
cat >conftest.$ac_ext <<_ACEOF
4543
cat confdefs.h >>conftest.$ac_ext
4544
cat >>conftest.$ac_ext <<_ACEOF
4545
/* end confdefs.h. */
4546
$ac_includes_default
4550
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4557
rm -f conftest.$ac_objext
4558
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559
(eval $ac_compile) 2>conftest.er1
4561
grep -v '^ *+' conftest.er1 >conftest.err
4563
cat conftest.err >&5
4564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565
(exit $ac_status); } &&
4566
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571
(exit $ac_status); }; } &&
4572
{ ac_try='test -s conftest.$ac_objext'
4573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577
(exit $ac_status); }; }; then
4580
cat >conftest.$ac_ext <<_ACEOF
4583
cat confdefs.h >>conftest.$ac_ext
4584
cat >>conftest.$ac_ext <<_ACEOF
4585
/* end confdefs.h. */
4586
$ac_includes_default
4590
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4597
rm -f conftest.$ac_objext
4598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599
(eval $ac_compile) 2>conftest.er1
4601
grep -v '^ *+' conftest.er1 >conftest.err
4603
cat conftest.err >&5
4604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605
(exit $ac_status); } &&
4606
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611
(exit $ac_status); }; } &&
4612
{ ac_try='test -s conftest.$ac_objext'
4613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617
(exit $ac_status); }; }; then
4618
ac_lo=$ac_mid; break
4620
echo "$as_me: failed program was:" >&5
4621
sed 's/^/| /' conftest.$ac_ext >&5
4623
ac_hi=`expr '(' $ac_mid ')' - 1`
4624
if test $ac_mid -le $ac_hi; then
4628
ac_mid=`expr 2 '*' $ac_mid`
4630
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633
echo "$as_me: failed program was:" >&5
4634
sed 's/^/| /' conftest.$ac_ext >&5
4638
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4641
# Binary search between lo and hi bounds.
4642
while test "x$ac_lo" != "x$ac_hi"; do
4643
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4644
cat >conftest.$ac_ext <<_ACEOF
4647
cat confdefs.h >>conftest.$ac_ext
4648
cat >>conftest.$ac_ext <<_ACEOF
4649
/* end confdefs.h. */
4650
$ac_includes_default
4654
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4661
rm -f conftest.$ac_objext
4662
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663
(eval $ac_compile) 2>conftest.er1
4665
grep -v '^ *+' conftest.er1 >conftest.err
4667
cat conftest.err >&5
4668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669
(exit $ac_status); } &&
4670
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
(exit $ac_status); }; } &&
4676
{ ac_try='test -s conftest.$ac_objext'
4677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681
(exit $ac_status); }; }; then
4684
echo "$as_me: failed program was:" >&5
4685
sed 's/^/| /' conftest.$ac_ext >&5
4687
ac_lo=`expr '(' $ac_mid ')' + 1`
4689
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692
?*) ac_cv_sizeof_int=$ac_lo;;
4693
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4694
See \`config.log' for more details." >&5
4695
echo "$as_me: error: cannot compute sizeof (int), 77
4696
See \`config.log' for more details." >&2;}
4697
{ (exit 1); exit 1; }; } ;;
4700
if test "$cross_compiling" = yes; then
4701
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4702
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4703
{ (exit 1); exit 1; }; }
4705
cat >conftest.$ac_ext <<_ACEOF
4708
cat confdefs.h >>conftest.$ac_ext
4709
cat >>conftest.$ac_ext <<_ACEOF
4710
/* end confdefs.h. */
4711
$ac_includes_default
4712
long longval () { return (long) (sizeof (int)); }
4713
unsigned long ulongval () { return (long) (sizeof (int)); }
1526
4714
#include <stdio.h>
1529
FILE *f=fopen("conftestval", "w");
1531
fprintf(f, "%d\n", sizeof(int));
4720
FILE *f = fopen ("conftest.val", "w");
4723
if (((long) (sizeof (int))) < 0)
4725
long i = longval ();
4726
if (i != ((long) (sizeof (int))))
4728
fprintf (f, "%ld\n", i);
4732
unsigned long i = ulongval ();
4733
if (i != ((long) (sizeof (int))))
4735
fprintf (f, "%lu\n", i);
4737
exit (ferror (f) || fclose (f) != 0);
1535
if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1537
ac_cv_sizeof_int=`cat conftestval`
1539
echo "configure: failed program was:" >&5
1540
cat conftest.$ac_ext >&5
4743
rm -f conftest$ac_exeext
4744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4745
(eval $ac_link) 2>&5
4747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753
(exit $ac_status); }; }; then
4754
ac_cv_sizeof_int=`cat conftest.val`
4756
echo "$as_me: program exited with status $ac_status" >&5
4757
echo "$as_me: failed program was:" >&5
4758
sed 's/^/| /' conftest.$ac_ext >&5
4761
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4762
See \`config.log' for more details." >&5
4763
echo "$as_me: error: cannot compute sizeof (int), 77
4764
See \`config.log' for more details." >&2;}
4765
{ (exit 1); exit 1; }; }
4767
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1542
4772
ac_cv_sizeof_int=0
1548
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1549
cat >> confdefs.h <<EOF
4775
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4776
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4777
cat >>confdefs.h <<_ACEOF
1550
4778
#define SIZEOF_INT $ac_cv_sizeof_int
1556
echo $ac_n "checking size of long""... $ac_c" 1>&6
1557
echo "configure:1558: checking size of long" >&5
1558
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1559
echo $ac_n "(cached) $ac_c" 1>&6
1561
if test "$cross_compiling" = yes; then
1562
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1564
cat > conftest.$ac_ext <<EOF
1565
#line 1566 "configure"
1566
#include "confdefs.h"
4784
echo "$as_me:$LINENO: checking for long" >&5
4785
echo $ECHO_N "checking for long... $ECHO_C" >&6
4786
if test "${ac_cv_type_long+set}" = set; then
4787
echo $ECHO_N "(cached) $ECHO_C" >&6
4789
cat >conftest.$ac_ext <<_ACEOF
4792
cat confdefs.h >>conftest.$ac_ext
4793
cat >>conftest.$ac_ext <<_ACEOF
4794
/* end confdefs.h. */
4795
$ac_includes_default
4807
rm -f conftest.$ac_objext
4808
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809
(eval $ac_compile) 2>conftest.er1
4811
grep -v '^ *+' conftest.er1 >conftest.err
4813
cat conftest.err >&5
4814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815
(exit $ac_status); } &&
4816
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); }; } &&
4822
{ ac_try='test -s conftest.$ac_objext'
4823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827
(exit $ac_status); }; }; then
4830
echo "$as_me: failed program was:" >&5
4831
sed 's/^/| /' conftest.$ac_ext >&5
4835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4838
echo "${ECHO_T}$ac_cv_type_long" >&6
4840
echo "$as_me:$LINENO: checking size of long" >&5
4841
echo $ECHO_N "checking size of long... $ECHO_C" >&6
4842
if test "${ac_cv_sizeof_long+set}" = set; then
4843
echo $ECHO_N "(cached) $ECHO_C" >&6
4845
if test "$ac_cv_type_long" = yes; then
4846
# The cast to unsigned long works around a bug in the HP C Compiler
4847
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4848
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4849
# This bug is HP SR number 8606223364.
4850
if test "$cross_compiling" = yes; then
4851
# Depending upon the size, compute the lo and hi bounds.
4852
cat >conftest.$ac_ext <<_ACEOF
4855
cat confdefs.h >>conftest.$ac_ext
4856
cat >>conftest.$ac_ext <<_ACEOF
4857
/* end confdefs.h. */
4858
$ac_includes_default
4862
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4869
rm -f conftest.$ac_objext
4870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871
(eval $ac_compile) 2>conftest.er1
4873
grep -v '^ *+' conftest.er1 >conftest.err
4875
cat conftest.err >&5
4876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877
(exit $ac_status); } &&
4878
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883
(exit $ac_status); }; } &&
4884
{ ac_try='test -s conftest.$ac_objext'
4885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
(exit $ac_status); }; }; then
4892
cat >conftest.$ac_ext <<_ACEOF
4895
cat confdefs.h >>conftest.$ac_ext
4896
cat >>conftest.$ac_ext <<_ACEOF
4897
/* end confdefs.h. */
4898
$ac_includes_default
4902
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4909
rm -f conftest.$ac_objext
4910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911
(eval $ac_compile) 2>conftest.er1
4913
grep -v '^ *+' conftest.er1 >conftest.err
4915
cat conftest.err >&5
4916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917
(exit $ac_status); } &&
4918
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923
(exit $ac_status); }; } &&
4924
{ ac_try='test -s conftest.$ac_objext'
4925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929
(exit $ac_status); }; }; then
4930
ac_hi=$ac_mid; break
4932
echo "$as_me: failed program was:" >&5
4933
sed 's/^/| /' conftest.$ac_ext >&5
4935
ac_lo=`expr $ac_mid + 1`
4936
if test $ac_lo -le $ac_mid; then
4940
ac_mid=`expr 2 '*' $ac_mid + 1`
4942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4945
echo "$as_me: failed program was:" >&5
4946
sed 's/^/| /' conftest.$ac_ext >&5
4948
cat >conftest.$ac_ext <<_ACEOF
4951
cat confdefs.h >>conftest.$ac_ext
4952
cat >>conftest.$ac_ext <<_ACEOF
4953
/* end confdefs.h. */
4954
$ac_includes_default
4958
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4965
rm -f conftest.$ac_objext
4966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967
(eval $ac_compile) 2>conftest.er1
4969
grep -v '^ *+' conftest.er1 >conftest.err
4971
cat conftest.err >&5
4972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973
(exit $ac_status); } &&
4974
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
(exit $ac_status); }; } &&
4980
{ ac_try='test -s conftest.$ac_objext'
4981
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
(exit $ac_status); }; }; then
4988
cat >conftest.$ac_ext <<_ACEOF
4991
cat confdefs.h >>conftest.$ac_ext
4992
cat >>conftest.$ac_ext <<_ACEOF
4993
/* end confdefs.h. */
4994
$ac_includes_default
4998
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5005
rm -f conftest.$ac_objext
5006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007
(eval $ac_compile) 2>conftest.er1
5009
grep -v '^ *+' conftest.er1 >conftest.err
5011
cat conftest.err >&5
5012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013
(exit $ac_status); } &&
5014
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019
(exit $ac_status); }; } &&
5020
{ ac_try='test -s conftest.$ac_objext'
5021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025
(exit $ac_status); }; }; then
5026
ac_lo=$ac_mid; break
5028
echo "$as_me: failed program was:" >&5
5029
sed 's/^/| /' conftest.$ac_ext >&5
5031
ac_hi=`expr '(' $ac_mid ')' - 1`
5032
if test $ac_mid -le $ac_hi; then
5036
ac_mid=`expr 2 '*' $ac_mid`
5038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5041
echo "$as_me: failed program was:" >&5
5042
sed 's/^/| /' conftest.$ac_ext >&5
5046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049
# Binary search between lo and hi bounds.
5050
while test "x$ac_lo" != "x$ac_hi"; do
5051
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5052
cat >conftest.$ac_ext <<_ACEOF
5055
cat confdefs.h >>conftest.$ac_ext
5056
cat >>conftest.$ac_ext <<_ACEOF
5057
/* end confdefs.h. */
5058
$ac_includes_default
5062
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5069
rm -f conftest.$ac_objext
5070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071
(eval $ac_compile) 2>conftest.er1
5073
grep -v '^ *+' conftest.er1 >conftest.err
5075
cat conftest.err >&5
5076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077
(exit $ac_status); } &&
5078
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
(exit $ac_status); }; } &&
5084
{ ac_try='test -s conftest.$ac_objext'
5085
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089
(exit $ac_status); }; }; then
5092
echo "$as_me: failed program was:" >&5
5093
sed 's/^/| /' conftest.$ac_ext >&5
5095
ac_lo=`expr '(' $ac_mid ')' + 1`
5097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5100
?*) ac_cv_sizeof_long=$ac_lo;;
5101
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5102
See \`config.log' for more details." >&5
5103
echo "$as_me: error: cannot compute sizeof (long), 77
5104
See \`config.log' for more details." >&2;}
5105
{ (exit 1); exit 1; }; } ;;
5108
if test "$cross_compiling" = yes; then
5109
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5110
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5111
{ (exit 1); exit 1; }; }
5113
cat >conftest.$ac_ext <<_ACEOF
5116
cat confdefs.h >>conftest.$ac_ext
5117
cat >>conftest.$ac_ext <<_ACEOF
5118
/* end confdefs.h. */
5119
$ac_includes_default
5120
long longval () { return (long) (sizeof (long)); }
5121
unsigned long ulongval () { return (long) (sizeof (long)); }
1567
5122
#include <stdio.h>
1570
FILE *f=fopen("conftestval", "w");
1572
fprintf(f, "%d\n", sizeof(long));
5128
FILE *f = fopen ("conftest.val", "w");
5131
if (((long) (sizeof (long))) < 0)
5133
long i = longval ();
5134
if (i != ((long) (sizeof (long))))
5136
fprintf (f, "%ld\n", i);
5140
unsigned long i = ulongval ();
5141
if (i != ((long) (sizeof (long))))
5143
fprintf (f, "%lu\n", i);
5145
exit (ferror (f) || fclose (f) != 0);
1576
if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1578
ac_cv_sizeof_long=`cat conftestval`
1580
echo "configure: failed program was:" >&5
1581
cat conftest.$ac_ext >&5
5151
rm -f conftest$ac_exeext
5152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153
(eval $ac_link) 2>&5
5155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161
(exit $ac_status); }; }; then
5162
ac_cv_sizeof_long=`cat conftest.val`
5164
echo "$as_me: program exited with status $ac_status" >&5
5165
echo "$as_me: failed program was:" >&5
5166
sed 's/^/| /' conftest.$ac_ext >&5
5169
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5170
See \`config.log' for more details." >&5
5171
echo "$as_me: error: cannot compute sizeof (long), 77
5172
See \`config.log' for more details." >&2;}
5173
{ (exit 1); exit 1; }; }
5175
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1583
5180
ac_cv_sizeof_long=0
1589
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1590
cat >> confdefs.h <<EOF
5183
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5184
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5185
cat >>confdefs.h <<_ACEOF
1591
5186
#define SIZEOF_LONG $ac_cv_sizeof_long
1597
echo $ac_n "checking size of long long""... $ac_c" 1>&6
1598
echo "configure:1599: checking size of long long" >&5
1599
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1600
echo $ac_n "(cached) $ac_c" 1>&6
1602
if test "$cross_compiling" = yes; then
1603
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1605
cat > conftest.$ac_ext <<EOF
1606
#line 1607 "configure"
1607
#include "confdefs.h"
5192
echo "$as_me:$LINENO: checking for long long" >&5
5193
echo $ECHO_N "checking for long long... $ECHO_C" >&6
5194
if test "${ac_cv_type_long_long+set}" = set; then
5195
echo $ECHO_N "(cached) $ECHO_C" >&6
5197
cat >conftest.$ac_ext <<_ACEOF
5200
cat confdefs.h >>conftest.$ac_ext
5201
cat >>conftest.$ac_ext <<_ACEOF
5202
/* end confdefs.h. */
5203
$ac_includes_default
5207
if ((long long *) 0)
5209
if (sizeof (long long))
5215
rm -f conftest.$ac_objext
5216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217
(eval $ac_compile) 2>conftest.er1
5219
grep -v '^ *+' conftest.er1 >conftest.err
5221
cat conftest.err >&5
5222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
(exit $ac_status); } &&
5224
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229
(exit $ac_status); }; } &&
5230
{ ac_try='test -s conftest.$ac_objext'
5231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235
(exit $ac_status); }; }; then
5236
ac_cv_type_long_long=yes
5238
echo "$as_me: failed program was:" >&5
5239
sed 's/^/| /' conftest.$ac_ext >&5
5241
ac_cv_type_long_long=no
5243
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5245
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5246
echo "${ECHO_T}$ac_cv_type_long_long" >&6
5248
echo "$as_me:$LINENO: checking size of long long" >&5
5249
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5250
if test "${ac_cv_sizeof_long_long+set}" = set; then
5251
echo $ECHO_N "(cached) $ECHO_C" >&6
5253
if test "$ac_cv_type_long_long" = yes; then
5254
# The cast to unsigned long works around a bug in the HP C Compiler
5255
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5256
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5257
# This bug is HP SR number 8606223364.
5258
if test "$cross_compiling" = yes; then
5259
# Depending upon the size, compute the lo and hi bounds.
5260
cat >conftest.$ac_ext <<_ACEOF
5263
cat confdefs.h >>conftest.$ac_ext
5264
cat >>conftest.$ac_ext <<_ACEOF
5265
/* end confdefs.h. */
5266
$ac_includes_default
5270
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5277
rm -f conftest.$ac_objext
5278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279
(eval $ac_compile) 2>conftest.er1
5281
grep -v '^ *+' conftest.er1 >conftest.err
5283
cat conftest.err >&5
5284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285
(exit $ac_status); } &&
5286
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291
(exit $ac_status); }; } &&
5292
{ ac_try='test -s conftest.$ac_objext'
5293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297
(exit $ac_status); }; }; then
5300
cat >conftest.$ac_ext <<_ACEOF
5303
cat confdefs.h >>conftest.$ac_ext
5304
cat >>conftest.$ac_ext <<_ACEOF
5305
/* end confdefs.h. */
5306
$ac_includes_default
5310
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5317
rm -f conftest.$ac_objext
5318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319
(eval $ac_compile) 2>conftest.er1
5321
grep -v '^ *+' conftest.er1 >conftest.err
5323
cat conftest.err >&5
5324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325
(exit $ac_status); } &&
5326
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331
(exit $ac_status); }; } &&
5332
{ ac_try='test -s conftest.$ac_objext'
5333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337
(exit $ac_status); }; }; then
5338
ac_hi=$ac_mid; break
5340
echo "$as_me: failed program was:" >&5
5341
sed 's/^/| /' conftest.$ac_ext >&5
5343
ac_lo=`expr $ac_mid + 1`
5344
if test $ac_lo -le $ac_mid; then
5348
ac_mid=`expr 2 '*' $ac_mid + 1`
5350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5353
echo "$as_me: failed program was:" >&5
5354
sed 's/^/| /' conftest.$ac_ext >&5
5356
cat >conftest.$ac_ext <<_ACEOF
5359
cat confdefs.h >>conftest.$ac_ext
5360
cat >>conftest.$ac_ext <<_ACEOF
5361
/* end confdefs.h. */
5362
$ac_includes_default
5366
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5373
rm -f conftest.$ac_objext
5374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375
(eval $ac_compile) 2>conftest.er1
5377
grep -v '^ *+' conftest.er1 >conftest.err
5379
cat conftest.err >&5
5380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381
(exit $ac_status); } &&
5382
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5383
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387
(exit $ac_status); }; } &&
5388
{ ac_try='test -s conftest.$ac_objext'
5389
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393
(exit $ac_status); }; }; then
5396
cat >conftest.$ac_ext <<_ACEOF
5399
cat confdefs.h >>conftest.$ac_ext
5400
cat >>conftest.$ac_ext <<_ACEOF
5401
/* end confdefs.h. */
5402
$ac_includes_default
5406
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5413
rm -f conftest.$ac_objext
5414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415
(eval $ac_compile) 2>conftest.er1
5417
grep -v '^ *+' conftest.er1 >conftest.err
5419
cat conftest.err >&5
5420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421
(exit $ac_status); } &&
5422
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427
(exit $ac_status); }; } &&
5428
{ ac_try='test -s conftest.$ac_objext'
5429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433
(exit $ac_status); }; }; then
5434
ac_lo=$ac_mid; break
5436
echo "$as_me: failed program was:" >&5
5437
sed 's/^/| /' conftest.$ac_ext >&5
5439
ac_hi=`expr '(' $ac_mid ')' - 1`
5440
if test $ac_mid -le $ac_hi; then
5444
ac_mid=`expr 2 '*' $ac_mid`
5446
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449
echo "$as_me: failed program was:" >&5
5450
sed 's/^/| /' conftest.$ac_ext >&5
5454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5457
# Binary search between lo and hi bounds.
5458
while test "x$ac_lo" != "x$ac_hi"; do
5459
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5460
cat >conftest.$ac_ext <<_ACEOF
5463
cat confdefs.h >>conftest.$ac_ext
5464
cat >>conftest.$ac_ext <<_ACEOF
5465
/* end confdefs.h. */
5466
$ac_includes_default
5470
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5477
rm -f conftest.$ac_objext
5478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479
(eval $ac_compile) 2>conftest.er1
5481
grep -v '^ *+' conftest.er1 >conftest.err
5483
cat conftest.err >&5
5484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485
(exit $ac_status); } &&
5486
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491
(exit $ac_status); }; } &&
5492
{ ac_try='test -s conftest.$ac_objext'
5493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497
(exit $ac_status); }; }; then
5500
echo "$as_me: failed program was:" >&5
5501
sed 's/^/| /' conftest.$ac_ext >&5
5503
ac_lo=`expr '(' $ac_mid ')' + 1`
5505
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508
?*) ac_cv_sizeof_long_long=$ac_lo;;
5509
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5510
See \`config.log' for more details." >&5
5511
echo "$as_me: error: cannot compute sizeof (long long), 77
5512
See \`config.log' for more details." >&2;}
5513
{ (exit 1); exit 1; }; } ;;
5516
if test "$cross_compiling" = yes; then
5517
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5518
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5519
{ (exit 1); exit 1; }; }
5521
cat >conftest.$ac_ext <<_ACEOF
5524
cat confdefs.h >>conftest.$ac_ext
5525
cat >>conftest.$ac_ext <<_ACEOF
5526
/* end confdefs.h. */
5527
$ac_includes_default
5528
long longval () { return (long) (sizeof (long long)); }
5529
unsigned long ulongval () { return (long) (sizeof (long long)); }
1608
5530
#include <stdio.h>
1611
FILE *f=fopen("conftestval", "w");
1613
fprintf(f, "%d\n", sizeof(long long));
5536
FILE *f = fopen ("conftest.val", "w");
5539
if (((long) (sizeof (long long))) < 0)
5541
long i = longval ();
5542
if (i != ((long) (sizeof (long long))))
5544
fprintf (f, "%ld\n", i);
5548
unsigned long i = ulongval ();
5549
if (i != ((long) (sizeof (long long))))
5551
fprintf (f, "%lu\n", i);
5553
exit (ferror (f) || fclose (f) != 0);
1617
if { (eval echo configure:1618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1619
ac_cv_sizeof_long_long=`cat conftestval`
1621
echo "configure: failed program was:" >&5
1622
cat conftest.$ac_ext >&5
5559
rm -f conftest$ac_exeext
5560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561
(eval $ac_link) 2>&5
5563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569
(exit $ac_status); }; }; then
5570
ac_cv_sizeof_long_long=`cat conftest.val`
5572
echo "$as_me: program exited with status $ac_status" >&5
5573
echo "$as_me: failed program was:" >&5
5574
sed 's/^/| /' conftest.$ac_ext >&5
5577
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5578
See \`config.log' for more details." >&5
5579
echo "$as_me: error: cannot compute sizeof (long long), 77
5580
See \`config.log' for more details." >&2;}
5581
{ (exit 1); exit 1; }; }
5583
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1624
5588
ac_cv_sizeof_long_long=0
1630
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1631
cat >> confdefs.h <<EOF
5591
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5592
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5593
cat >>confdefs.h <<_ACEOF
1632
5594
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1638
echo $ac_n "checking size of float""... $ac_c" 1>&6
1639
echo "configure:1640: checking size of float" >&5
1640
if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1641
echo $ac_n "(cached) $ac_c" 1>&6
1643
if test "$cross_compiling" = yes; then
1644
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1646
cat > conftest.$ac_ext <<EOF
1647
#line 1648 "configure"
1648
#include "confdefs.h"
5600
echo "$as_me:$LINENO: checking for float" >&5
5601
echo $ECHO_N "checking for float... $ECHO_C" >&6
5602
if test "${ac_cv_type_float+set}" = set; then
5603
echo $ECHO_N "(cached) $ECHO_C" >&6
5605
cat >conftest.$ac_ext <<_ACEOF
5608
cat confdefs.h >>conftest.$ac_ext
5609
cat >>conftest.$ac_ext <<_ACEOF
5610
/* end confdefs.h. */
5611
$ac_includes_default
5623
rm -f conftest.$ac_objext
5624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625
(eval $ac_compile) 2>conftest.er1
5627
grep -v '^ *+' conftest.er1 >conftest.err
5629
cat conftest.err >&5
5630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631
(exit $ac_status); } &&
5632
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637
(exit $ac_status); }; } &&
5638
{ ac_try='test -s conftest.$ac_objext'
5639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; }; then
5644
ac_cv_type_float=yes
5646
echo "$as_me: failed program was:" >&5
5647
sed 's/^/| /' conftest.$ac_ext >&5
5651
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5654
echo "${ECHO_T}$ac_cv_type_float" >&6
5656
echo "$as_me:$LINENO: checking size of float" >&5
5657
echo $ECHO_N "checking size of float... $ECHO_C" >&6
5658
if test "${ac_cv_sizeof_float+set}" = set; then
5659
echo $ECHO_N "(cached) $ECHO_C" >&6
5661
if test "$ac_cv_type_float" = yes; then
5662
# The cast to unsigned long works around a bug in the HP C Compiler
5663
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5664
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5665
# This bug is HP SR number 8606223364.
5666
if test "$cross_compiling" = yes; then
5667
# Depending upon the size, compute the lo and hi bounds.
5668
cat >conftest.$ac_ext <<_ACEOF
5671
cat confdefs.h >>conftest.$ac_ext
5672
cat >>conftest.$ac_ext <<_ACEOF
5673
/* end confdefs.h. */
5674
$ac_includes_default
5678
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5685
rm -f conftest.$ac_objext
5686
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687
(eval $ac_compile) 2>conftest.er1
5689
grep -v '^ *+' conftest.er1 >conftest.err
5691
cat conftest.err >&5
5692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693
(exit $ac_status); } &&
5694
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699
(exit $ac_status); }; } &&
5700
{ ac_try='test -s conftest.$ac_objext'
5701
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705
(exit $ac_status); }; }; then
5708
cat >conftest.$ac_ext <<_ACEOF
5711
cat confdefs.h >>conftest.$ac_ext
5712
cat >>conftest.$ac_ext <<_ACEOF
5713
/* end confdefs.h. */
5714
$ac_includes_default
5718
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5725
rm -f conftest.$ac_objext
5726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727
(eval $ac_compile) 2>conftest.er1
5729
grep -v '^ *+' conftest.er1 >conftest.err
5731
cat conftest.err >&5
5732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
(exit $ac_status); } &&
5734
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739
(exit $ac_status); }; } &&
5740
{ ac_try='test -s conftest.$ac_objext'
5741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
(exit $ac_status); }; }; then
5746
ac_hi=$ac_mid; break
5748
echo "$as_me: failed program was:" >&5
5749
sed 's/^/| /' conftest.$ac_ext >&5
5751
ac_lo=`expr $ac_mid + 1`
5752
if test $ac_lo -le $ac_mid; then
5756
ac_mid=`expr 2 '*' $ac_mid + 1`
5758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761
echo "$as_me: failed program was:" >&5
5762
sed 's/^/| /' conftest.$ac_ext >&5
5764
cat >conftest.$ac_ext <<_ACEOF
5767
cat confdefs.h >>conftest.$ac_ext
5768
cat >>conftest.$ac_ext <<_ACEOF
5769
/* end confdefs.h. */
5770
$ac_includes_default
5774
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5781
rm -f conftest.$ac_objext
5782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783
(eval $ac_compile) 2>conftest.er1
5785
grep -v '^ *+' conftest.er1 >conftest.err
5787
cat conftest.err >&5
5788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789
(exit $ac_status); } &&
5790
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795
(exit $ac_status); }; } &&
5796
{ ac_try='test -s conftest.$ac_objext'
5797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801
(exit $ac_status); }; }; then
5804
cat >conftest.$ac_ext <<_ACEOF
5807
cat confdefs.h >>conftest.$ac_ext
5808
cat >>conftest.$ac_ext <<_ACEOF
5809
/* end confdefs.h. */
5810
$ac_includes_default
5814
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5821
rm -f conftest.$ac_objext
5822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823
(eval $ac_compile) 2>conftest.er1
5825
grep -v '^ *+' conftest.er1 >conftest.err
5827
cat conftest.err >&5
5828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829
(exit $ac_status); } &&
5830
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835
(exit $ac_status); }; } &&
5836
{ ac_try='test -s conftest.$ac_objext'
5837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
(exit $ac_status); }; }; then
5842
ac_lo=$ac_mid; break
5844
echo "$as_me: failed program was:" >&5
5845
sed 's/^/| /' conftest.$ac_ext >&5
5847
ac_hi=`expr '(' $ac_mid ')' - 1`
5848
if test $ac_mid -le $ac_hi; then
5852
ac_mid=`expr 2 '*' $ac_mid`
5854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5857
echo "$as_me: failed program was:" >&5
5858
sed 's/^/| /' conftest.$ac_ext >&5
5862
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5865
# Binary search between lo and hi bounds.
5866
while test "x$ac_lo" != "x$ac_hi"; do
5867
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5868
cat >conftest.$ac_ext <<_ACEOF
5871
cat confdefs.h >>conftest.$ac_ext
5872
cat >>conftest.$ac_ext <<_ACEOF
5873
/* end confdefs.h. */
5874
$ac_includes_default
5878
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5885
rm -f conftest.$ac_objext
5886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887
(eval $ac_compile) 2>conftest.er1
5889
grep -v '^ *+' conftest.er1 >conftest.err
5891
cat conftest.err >&5
5892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893
(exit $ac_status); } &&
5894
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899
(exit $ac_status); }; } &&
5900
{ ac_try='test -s conftest.$ac_objext'
5901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905
(exit $ac_status); }; }; then
5908
echo "$as_me: failed program was:" >&5
5909
sed 's/^/| /' conftest.$ac_ext >&5
5911
ac_lo=`expr '(' $ac_mid ')' + 1`
5913
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5916
?*) ac_cv_sizeof_float=$ac_lo;;
5917
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5918
See \`config.log' for more details." >&5
5919
echo "$as_me: error: cannot compute sizeof (float), 77
5920
See \`config.log' for more details." >&2;}
5921
{ (exit 1); exit 1; }; } ;;
5924
if test "$cross_compiling" = yes; then
5925
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5926
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5927
{ (exit 1); exit 1; }; }
5929
cat >conftest.$ac_ext <<_ACEOF
5932
cat confdefs.h >>conftest.$ac_ext
5933
cat >>conftest.$ac_ext <<_ACEOF
5934
/* end confdefs.h. */
5935
$ac_includes_default
5936
long longval () { return (long) (sizeof (float)); }
5937
unsigned long ulongval () { return (long) (sizeof (float)); }
1649
5938
#include <stdio.h>
1652
FILE *f=fopen("conftestval", "w");
1654
fprintf(f, "%d\n", sizeof(float));
5944
FILE *f = fopen ("conftest.val", "w");
5947
if (((long) (sizeof (float))) < 0)
5949
long i = longval ();
5950
if (i != ((long) (sizeof (float))))
5952
fprintf (f, "%ld\n", i);
5956
unsigned long i = ulongval ();
5957
if (i != ((long) (sizeof (float))))
5959
fprintf (f, "%lu\n", i);
5961
exit (ferror (f) || fclose (f) != 0);
1658
if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1660
ac_cv_sizeof_float=`cat conftestval`
1662
echo "configure: failed program was:" >&5
1663
cat conftest.$ac_ext >&5
5967
rm -f conftest$ac_exeext
5968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969
(eval $ac_link) 2>&5
5971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977
(exit $ac_status); }; }; then
5978
ac_cv_sizeof_float=`cat conftest.val`
5980
echo "$as_me: program exited with status $ac_status" >&5
5981
echo "$as_me: failed program was:" >&5
5982
sed 's/^/| /' conftest.$ac_ext >&5
5985
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5986
See \`config.log' for more details." >&5
5987
echo "$as_me: error: cannot compute sizeof (float), 77
5988
See \`config.log' for more details." >&2;}
5989
{ (exit 1); exit 1; }; }
5991
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1665
5996
ac_cv_sizeof_float=0
1671
echo "$ac_t""$ac_cv_sizeof_float" 1>&6
1672
cat >> confdefs.h <<EOF
5999
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6000
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6001
cat >>confdefs.h <<_ACEOF
1673
6002
#define SIZEOF_FLOAT $ac_cv_sizeof_float
1679
echo $ac_n "checking size of double""... $ac_c" 1>&6
1680
echo "configure:1681: checking size of double" >&5
1681
if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
1682
echo $ac_n "(cached) $ac_c" 1>&6
1684
if test "$cross_compiling" = yes; then
1685
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1687
cat > conftest.$ac_ext <<EOF
1688
#line 1689 "configure"
1689
#include "confdefs.h"
6008
echo "$as_me:$LINENO: checking for double" >&5
6009
echo $ECHO_N "checking for double... $ECHO_C" >&6
6010
if test "${ac_cv_type_double+set}" = set; then
6011
echo $ECHO_N "(cached) $ECHO_C" >&6
6013
cat >conftest.$ac_ext <<_ACEOF
6016
cat confdefs.h >>conftest.$ac_ext
6017
cat >>conftest.$ac_ext <<_ACEOF
6018
/* end confdefs.h. */
6019
$ac_includes_default
6025
if (sizeof (double))
6031
rm -f conftest.$ac_objext
6032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033
(eval $ac_compile) 2>conftest.er1
6035
grep -v '^ *+' conftest.er1 >conftest.err
6037
cat conftest.err >&5
6038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039
(exit $ac_status); } &&
6040
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6041
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045
(exit $ac_status); }; } &&
6046
{ ac_try='test -s conftest.$ac_objext'
6047
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051
(exit $ac_status); }; }; then
6052
ac_cv_type_double=yes
6054
echo "$as_me: failed program was:" >&5
6055
sed 's/^/| /' conftest.$ac_ext >&5
6057
ac_cv_type_double=no
6059
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6061
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6062
echo "${ECHO_T}$ac_cv_type_double" >&6
6064
echo "$as_me:$LINENO: checking size of double" >&5
6065
echo $ECHO_N "checking size of double... $ECHO_C" >&6
6066
if test "${ac_cv_sizeof_double+set}" = set; then
6067
echo $ECHO_N "(cached) $ECHO_C" >&6
6069
if test "$ac_cv_type_double" = yes; then
6070
# The cast to unsigned long works around a bug in the HP C Compiler
6071
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6072
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6073
# This bug is HP SR number 8606223364.
6074
if test "$cross_compiling" = yes; then
6075
# Depending upon the size, compute the lo and hi bounds.
6076
cat >conftest.$ac_ext <<_ACEOF
6079
cat confdefs.h >>conftest.$ac_ext
6080
cat >>conftest.$ac_ext <<_ACEOF
6081
/* end confdefs.h. */
6082
$ac_includes_default
6086
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6093
rm -f conftest.$ac_objext
6094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6095
(eval $ac_compile) 2>conftest.er1
6097
grep -v '^ *+' conftest.er1 >conftest.err
6099
cat conftest.err >&5
6100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
(exit $ac_status); } &&
6102
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
(exit $ac_status); }; } &&
6108
{ ac_try='test -s conftest.$ac_objext'
6109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113
(exit $ac_status); }; }; then
6116
cat >conftest.$ac_ext <<_ACEOF
6119
cat confdefs.h >>conftest.$ac_ext
6120
cat >>conftest.$ac_ext <<_ACEOF
6121
/* end confdefs.h. */
6122
$ac_includes_default
6126
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6133
rm -f conftest.$ac_objext
6134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135
(eval $ac_compile) 2>conftest.er1
6137
grep -v '^ *+' conftest.er1 >conftest.err
6139
cat conftest.err >&5
6140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141
(exit $ac_status); } &&
6142
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147
(exit $ac_status); }; } &&
6148
{ ac_try='test -s conftest.$ac_objext'
6149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153
(exit $ac_status); }; }; then
6154
ac_hi=$ac_mid; break
6156
echo "$as_me: failed program was:" >&5
6157
sed 's/^/| /' conftest.$ac_ext >&5
6159
ac_lo=`expr $ac_mid + 1`
6160
if test $ac_lo -le $ac_mid; then
6164
ac_mid=`expr 2 '*' $ac_mid + 1`
6166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169
echo "$as_me: failed program was:" >&5
6170
sed 's/^/| /' conftest.$ac_ext >&5
6172
cat >conftest.$ac_ext <<_ACEOF
6175
cat confdefs.h >>conftest.$ac_ext
6176
cat >>conftest.$ac_ext <<_ACEOF
6177
/* end confdefs.h. */
6178
$ac_includes_default
6182
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6189
rm -f conftest.$ac_objext
6190
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191
(eval $ac_compile) 2>conftest.er1
6193
grep -v '^ *+' conftest.er1 >conftest.err
6195
cat conftest.err >&5
6196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197
(exit $ac_status); } &&
6198
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203
(exit $ac_status); }; } &&
6204
{ ac_try='test -s conftest.$ac_objext'
6205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209
(exit $ac_status); }; }; then
6212
cat >conftest.$ac_ext <<_ACEOF
6215
cat confdefs.h >>conftest.$ac_ext
6216
cat >>conftest.$ac_ext <<_ACEOF
6217
/* end confdefs.h. */
6218
$ac_includes_default
6222
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6229
rm -f conftest.$ac_objext
6230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231
(eval $ac_compile) 2>conftest.er1
6233
grep -v '^ *+' conftest.er1 >conftest.err
6235
cat conftest.err >&5
6236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237
(exit $ac_status); } &&
6238
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
(exit $ac_status); }; } &&
6244
{ ac_try='test -s conftest.$ac_objext'
6245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249
(exit $ac_status); }; }; then
6250
ac_lo=$ac_mid; break
6252
echo "$as_me: failed program was:" >&5
6253
sed 's/^/| /' conftest.$ac_ext >&5
6255
ac_hi=`expr '(' $ac_mid ')' - 1`
6256
if test $ac_mid -le $ac_hi; then
6260
ac_mid=`expr 2 '*' $ac_mid`
6262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265
echo "$as_me: failed program was:" >&5
6266
sed 's/^/| /' conftest.$ac_ext >&5
6270
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273
# Binary search between lo and hi bounds.
6274
while test "x$ac_lo" != "x$ac_hi"; do
6275
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6276
cat >conftest.$ac_ext <<_ACEOF
6279
cat confdefs.h >>conftest.$ac_ext
6280
cat >>conftest.$ac_ext <<_ACEOF
6281
/* end confdefs.h. */
6282
$ac_includes_default
6286
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6293
rm -f conftest.$ac_objext
6294
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6295
(eval $ac_compile) 2>conftest.er1
6297
grep -v '^ *+' conftest.er1 >conftest.err
6299
cat conftest.err >&5
6300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301
(exit $ac_status); } &&
6302
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307
(exit $ac_status); }; } &&
6308
{ ac_try='test -s conftest.$ac_objext'
6309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313
(exit $ac_status); }; }; then
6316
echo "$as_me: failed program was:" >&5
6317
sed 's/^/| /' conftest.$ac_ext >&5
6319
ac_lo=`expr '(' $ac_mid ')' + 1`
6321
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324
?*) ac_cv_sizeof_double=$ac_lo;;
6325
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6326
See \`config.log' for more details." >&5
6327
echo "$as_me: error: cannot compute sizeof (double), 77
6328
See \`config.log' for more details." >&2;}
6329
{ (exit 1); exit 1; }; } ;;
6332
if test "$cross_compiling" = yes; then
6333
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6334
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6335
{ (exit 1); exit 1; }; }
6337
cat >conftest.$ac_ext <<_ACEOF
6340
cat confdefs.h >>conftest.$ac_ext
6341
cat >>conftest.$ac_ext <<_ACEOF
6342
/* end confdefs.h. */
6343
$ac_includes_default
6344
long longval () { return (long) (sizeof (double)); }
6345
unsigned long ulongval () { return (long) (sizeof (double)); }
1690
6346
#include <stdio.h>
1693
FILE *f=fopen("conftestval", "w");
1695
fprintf(f, "%d\n", sizeof(double));
6352
FILE *f = fopen ("conftest.val", "w");
6355
if (((long) (sizeof (double))) < 0)
6357
long i = longval ();
6358
if (i != ((long) (sizeof (double))))
6360
fprintf (f, "%ld\n", i);
6364
unsigned long i = ulongval ();
6365
if (i != ((long) (sizeof (double))))
6367
fprintf (f, "%lu\n", i);
6369
exit (ferror (f) || fclose (f) != 0);
1699
if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1701
ac_cv_sizeof_double=`cat conftestval`
1703
echo "configure: failed program was:" >&5
1704
cat conftest.$ac_ext >&5
6375
rm -f conftest$ac_exeext
6376
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377
(eval $ac_link) 2>&5
6379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385
(exit $ac_status); }; }; then
6386
ac_cv_sizeof_double=`cat conftest.val`
6388
echo "$as_me: program exited with status $ac_status" >&5
6389
echo "$as_me: failed program was:" >&5
6390
sed 's/^/| /' conftest.$ac_ext >&5
6393
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6394
See \`config.log' for more details." >&5
6395
echo "$as_me: error: cannot compute sizeof (double), 77
6396
See \`config.log' for more details." >&2;}
6397
{ (exit 1); exit 1; }; }
6399
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1706
6404
ac_cv_sizeof_double=0
1712
echo "$ac_t""$ac_cv_sizeof_double" 1>&6
1713
cat >> confdefs.h <<EOF
6407
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6408
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6409
cat >>confdefs.h <<_ACEOF
1714
6410
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
1942
6671
# in objc-load.c (i.e. #include "${DYNAMIC_LINKER}-load.h")
1943
6672
#--------------------------------------------------------------------
1944
6673
DYNAMIC_LINKER=null
1945
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
1946
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1947
echo "configure:1948: checking for dlfcn.h" >&5
1948
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949
echo $ac_n "(cached) $ac_c" 1>&6
1951
cat > conftest.$ac_ext <<EOF
1952
#line 1953 "configure"
1953
#include "confdefs.h"
1956
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957
{ (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959
if test -z "$ac_err"; then
1961
eval "ac_cv_header_$ac_safe=yes"
1964
echo "configure: failed program was:" >&5
1965
cat conftest.$ac_ext >&5
1967
eval "ac_cv_header_$ac_safe=no"
1971
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972
echo "$ac_t""yes" 1>&6
6674
if test "${ac_cv_header_dlfcn_h+set}" = set; then
6675
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6676
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
6677
if test "${ac_cv_header_dlfcn_h+set}" = set; then
6678
echo $ECHO_N "(cached) $ECHO_C" >&6
6680
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6681
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
6683
# Is the header compilable?
6684
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
6685
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
6686
cat >conftest.$ac_ext <<_ACEOF
6689
cat confdefs.h >>conftest.$ac_ext
6690
cat >>conftest.$ac_ext <<_ACEOF
6691
/* end confdefs.h. */
6692
$ac_includes_default
6695
rm -f conftest.$ac_objext
6696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697
(eval $ac_compile) 2>conftest.er1
6699
grep -v '^ *+' conftest.er1 >conftest.err
6701
cat conftest.err >&5
6702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703
(exit $ac_status); } &&
6704
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709
(exit $ac_status); }; } &&
6710
{ ac_try='test -s conftest.$ac_objext'
6711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715
(exit $ac_status); }; }; then
6716
ac_header_compiler=yes
6718
echo "$as_me: failed program was:" >&5
6719
sed 's/^/| /' conftest.$ac_ext >&5
6721
ac_header_compiler=no
6723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725
echo "${ECHO_T}$ac_header_compiler" >&6
6727
# Is the header present?
6728
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
6729
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
6730
cat >conftest.$ac_ext <<_ACEOF
6733
cat confdefs.h >>conftest.$ac_ext
6734
cat >>conftest.$ac_ext <<_ACEOF
6735
/* end confdefs.h. */
6738
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6739
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741
grep -v '^ *+' conftest.er1 >conftest.err
6743
cat conftest.err >&5
6744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745
(exit $ac_status); } >/dev/null; then
6746
if test -s conftest.err; then
6747
ac_cpp_err=$ac_c_preproc_warn_flag
6748
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6755
if test -z "$ac_cpp_err"; then
6756
ac_header_preproc=yes
6758
echo "$as_me: failed program was:" >&5
6759
sed 's/^/| /' conftest.$ac_ext >&5
6761
ac_header_preproc=no
6763
rm -f conftest.err conftest.$ac_ext
6764
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6765
echo "${ECHO_T}$ac_header_preproc" >&6
6767
# So? What about this header?
6768
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6770
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
6771
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6772
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
6773
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
6774
ac_header_preproc=yes
6777
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
6778
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
6779
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
6780
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
6781
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
6782
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
6783
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
6784
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
6785
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
6786
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
6787
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
6788
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
6791
## ------------------------------------------ ##
6792
## Report this to the AC_PACKAGE_NAME lists. ##
6793
## ------------------------------------------ ##
6796
sed "s/^/$as_me: WARNING: /" >&2
6799
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
6800
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
6801
if test "${ac_cv_header_dlfcn_h+set}" = set; then
6802
echo $ECHO_N "(cached) $ECHO_C" >&6
6804
ac_cv_header_dlfcn_h=$ac_header_preproc
6806
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
6807
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
6810
if test $ac_cv_header_dlfcn_h = yes; then
1973
6811
DYNAMIC_LINKER=simple
1975
echo "$ac_t""no" 1>&6
1978
6815
if test $DYNAMIC_LINKER = null; then
1979
ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
1980
echo $ac_n "checking for dl.h""... $ac_c" 1>&6
1981
echo "configure:1982: checking for dl.h" >&5
1982
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1983
echo $ac_n "(cached) $ac_c" 1>&6
1985
cat > conftest.$ac_ext <<EOF
1986
#line 1987 "configure"
1987
#include "confdefs.h"
1990
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991
{ (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993
if test -z "$ac_err"; then
1995
eval "ac_cv_header_$ac_safe=yes"
1998
echo "configure: failed program was:" >&5
1999
cat conftest.$ac_ext >&5
2001
eval "ac_cv_header_$ac_safe=no"
2005
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2006
echo "$ac_t""yes" 1>&6
6816
if test "${ac_cv_header_dl_h+set}" = set; then
6817
echo "$as_me:$LINENO: checking for dl.h" >&5
6818
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
6819
if test "${ac_cv_header_dl_h+set}" = set; then
6820
echo $ECHO_N "(cached) $ECHO_C" >&6
6822
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
6823
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
6825
# Is the header compilable?
6826
echo "$as_me:$LINENO: checking dl.h usability" >&5
6827
echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
6828
cat >conftest.$ac_ext <<_ACEOF
6831
cat confdefs.h >>conftest.$ac_ext
6832
cat >>conftest.$ac_ext <<_ACEOF
6833
/* end confdefs.h. */
6834
$ac_includes_default
6837
rm -f conftest.$ac_objext
6838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839
(eval $ac_compile) 2>conftest.er1
6841
grep -v '^ *+' conftest.er1 >conftest.err
6843
cat conftest.err >&5
6844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845
(exit $ac_status); } &&
6846
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851
(exit $ac_status); }; } &&
6852
{ ac_try='test -s conftest.$ac_objext'
6853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
(exit $ac_status); }; }; then
6858
ac_header_compiler=yes
6860
echo "$as_me: failed program was:" >&5
6861
sed 's/^/| /' conftest.$ac_ext >&5
6863
ac_header_compiler=no
6865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6867
echo "${ECHO_T}$ac_header_compiler" >&6
6869
# Is the header present?
6870
echo "$as_me:$LINENO: checking dl.h presence" >&5
6871
echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
6872
cat >conftest.$ac_ext <<_ACEOF
6875
cat confdefs.h >>conftest.$ac_ext
6876
cat >>conftest.$ac_ext <<_ACEOF
6877
/* end confdefs.h. */
6880
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6883
grep -v '^ *+' conftest.er1 >conftest.err
6885
cat conftest.err >&5
6886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887
(exit $ac_status); } >/dev/null; then
6888
if test -s conftest.err; then
6889
ac_cpp_err=$ac_c_preproc_warn_flag
6890
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897
if test -z "$ac_cpp_err"; then
6898
ac_header_preproc=yes
6900
echo "$as_me: failed program was:" >&5
6901
sed 's/^/| /' conftest.$ac_ext >&5
6903
ac_header_preproc=no
6905
rm -f conftest.err conftest.$ac_ext
6906
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6907
echo "${ECHO_T}$ac_header_preproc" >&6
6909
# So? What about this header?
6910
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6912
{ echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6913
echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6914
{ echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
6915
echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
6916
ac_header_preproc=yes
6919
{ echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
6920
echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
6921
{ echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
6922
echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
6923
{ echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
6924
echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
6925
{ echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
6926
echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6927
{ echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
6928
echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
6929
{ echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
6930
echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
6933
## ------------------------------------------ ##
6934
## Report this to the AC_PACKAGE_NAME lists. ##
6935
## ------------------------------------------ ##
6938
sed "s/^/$as_me: WARNING: /" >&2
6941
echo "$as_me:$LINENO: checking for dl.h" >&5
6942
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
6943
if test "${ac_cv_header_dl_h+set}" = set; then
6944
echo $ECHO_N "(cached) $ECHO_C" >&6
6946
ac_cv_header_dl_h=$ac_header_preproc
6948
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
6949
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
6952
if test $ac_cv_header_dl_h = yes; then
2007
6953
DYNAMIC_LINKER=hpux
2009
echo "$ac_t""no" 1>&6
2013
6958
if test $DYNAMIC_LINKER = null; then
2014
ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
2015
echo $ac_n "checking for windows.h""... $ac_c" 1>&6
2016
echo "configure:2017: checking for windows.h" >&5
2017
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018
echo $ac_n "(cached) $ac_c" 1>&6
2020
cat > conftest.$ac_ext <<EOF
2021
#line 2022 "configure"
2022
#include "confdefs.h"
2023
#include <windows.h>
2025
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026
{ (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2028
if test -z "$ac_err"; then
2030
eval "ac_cv_header_$ac_safe=yes"
2033
echo "configure: failed program was:" >&5
2034
cat conftest.$ac_ext >&5
2036
eval "ac_cv_header_$ac_safe=no"
2040
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041
echo "$ac_t""yes" 1>&6
6959
if test "${ac_cv_header_windows_h+set}" = set; then
6960
echo "$as_me:$LINENO: checking for windows.h" >&5
6961
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
6962
if test "${ac_cv_header_windows_h+set}" = set; then
6963
echo $ECHO_N "(cached) $ECHO_C" >&6
6965
echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
6966
echo "${ECHO_T}$ac_cv_header_windows_h" >&6
6968
# Is the header compilable?
6969
echo "$as_me:$LINENO: checking windows.h usability" >&5
6970
echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
6971
cat >conftest.$ac_ext <<_ACEOF
6974
cat confdefs.h >>conftest.$ac_ext
6975
cat >>conftest.$ac_ext <<_ACEOF
6976
/* end confdefs.h. */
6977
$ac_includes_default
6978
#include <windows.h>
6980
rm -f conftest.$ac_objext
6981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6982
(eval $ac_compile) 2>conftest.er1
6984
grep -v '^ *+' conftest.er1 >conftest.err
6986
cat conftest.err >&5
6987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988
(exit $ac_status); } &&
6989
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994
(exit $ac_status); }; } &&
6995
{ ac_try='test -s conftest.$ac_objext'
6996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
(exit $ac_status); }; }; then
7001
ac_header_compiler=yes
7003
echo "$as_me: failed program was:" >&5
7004
sed 's/^/| /' conftest.$ac_ext >&5
7006
ac_header_compiler=no
7008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7009
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7010
echo "${ECHO_T}$ac_header_compiler" >&6
7012
# Is the header present?
7013
echo "$as_me:$LINENO: checking windows.h presence" >&5
7014
echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
7015
cat >conftest.$ac_ext <<_ACEOF
7018
cat confdefs.h >>conftest.$ac_ext
7019
cat >>conftest.$ac_ext <<_ACEOF
7020
/* end confdefs.h. */
7021
#include <windows.h>
7023
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7024
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7026
grep -v '^ *+' conftest.er1 >conftest.err
7028
cat conftest.err >&5
7029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030
(exit $ac_status); } >/dev/null; then
7031
if test -s conftest.err; then
7032
ac_cpp_err=$ac_c_preproc_warn_flag
7033
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7040
if test -z "$ac_cpp_err"; then
7041
ac_header_preproc=yes
7043
echo "$as_me: failed program was:" >&5
7044
sed 's/^/| /' conftest.$ac_ext >&5
7046
ac_header_preproc=no
7048
rm -f conftest.err conftest.$ac_ext
7049
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7050
echo "${ECHO_T}$ac_header_preproc" >&6
7052
# So? What about this header?
7053
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7055
{ echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
7056
echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7057
{ echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
7058
echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
7059
ac_header_preproc=yes
7062
{ echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
7063
echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
7064
{ echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
7065
echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
7066
{ echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
7067
echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
7068
{ echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
7069
echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
7070
{ echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
7071
echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
7072
{ echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
7073
echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
7076
## ------------------------------------------ ##
7077
## Report this to the AC_PACKAGE_NAME lists. ##
7078
## ------------------------------------------ ##
7081
sed "s/^/$as_me: WARNING: /" >&2
7084
echo "$as_me:$LINENO: checking for windows.h" >&5
7085
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
7086
if test "${ac_cv_header_windows_h+set}" = set; then
7087
echo $ECHO_N "(cached) $ECHO_C" >&6
7089
ac_cv_header_windows_h=$ac_header_preproc
7091
echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
7092
echo "${ECHO_T}$ac_cv_header_windows_h" >&6
7095
if test $ac_cv_header_windows_h = yes; then
2042
7096
DYNAMIC_LINKER=win32
2044
echo "$ac_t""no" 1>&6
2048
7101
if test $DYNAMIC_LINKER = null; then
2049
ac_safe=`echo "dld/defs.h" | sed 'y%./+-%__p_%'`
2050
echo $ac_n "checking for dld/defs.h""... $ac_c" 1>&6
2051
echo "configure:2052: checking for dld/defs.h" >&5
2052
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2053
echo $ac_n "(cached) $ac_c" 1>&6
2055
cat > conftest.$ac_ext <<EOF
2056
#line 2057 "configure"
2057
#include "confdefs.h"
2058
#include <dld/defs.h>
2060
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061
{ (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063
if test -z "$ac_err"; then
2065
eval "ac_cv_header_$ac_safe=yes"
2068
echo "configure: failed program was:" >&5
2069
cat conftest.$ac_ext >&5
2071
eval "ac_cv_header_$ac_safe=no"
2075
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2076
echo "$ac_t""yes" 1>&6
7102
if test "${ac_cv_header_dld_defs_h+set}" = set; then
7103
echo "$as_me:$LINENO: checking for dld/defs.h" >&5
7104
echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
7105
if test "${ac_cv_header_dld_defs_h+set}" = set; then
7106
echo $ECHO_N "(cached) $ECHO_C" >&6
7108
echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
7109
echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
7111
# Is the header compilable?
7112
echo "$as_me:$LINENO: checking dld/defs.h usability" >&5
7113
echo $ECHO_N "checking dld/defs.h usability... $ECHO_C" >&6
7114
cat >conftest.$ac_ext <<_ACEOF
7117
cat confdefs.h >>conftest.$ac_ext
7118
cat >>conftest.$ac_ext <<_ACEOF
7119
/* end confdefs.h. */
7120
$ac_includes_default
7121
#include <dld/defs.h>
7123
rm -f conftest.$ac_objext
7124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125
(eval $ac_compile) 2>conftest.er1
7127
grep -v '^ *+' conftest.er1 >conftest.err
7129
cat conftest.err >&5
7130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131
(exit $ac_status); } &&
7132
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7133
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137
(exit $ac_status); }; } &&
7138
{ ac_try='test -s conftest.$ac_objext'
7139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143
(exit $ac_status); }; }; then
7144
ac_header_compiler=yes
7146
echo "$as_me: failed program was:" >&5
7147
sed 's/^/| /' conftest.$ac_ext >&5
7149
ac_header_compiler=no
7151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7152
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7153
echo "${ECHO_T}$ac_header_compiler" >&6
7155
# Is the header present?
7156
echo "$as_me:$LINENO: checking dld/defs.h presence" >&5
7157
echo $ECHO_N "checking dld/defs.h presence... $ECHO_C" >&6
7158
cat >conftest.$ac_ext <<_ACEOF
7161
cat confdefs.h >>conftest.$ac_ext
7162
cat >>conftest.$ac_ext <<_ACEOF
7163
/* end confdefs.h. */
7164
#include <dld/defs.h>
7166
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7167
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7169
grep -v '^ *+' conftest.er1 >conftest.err
7171
cat conftest.err >&5
7172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173
(exit $ac_status); } >/dev/null; then
7174
if test -s conftest.err; then
7175
ac_cpp_err=$ac_c_preproc_warn_flag
7176
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7183
if test -z "$ac_cpp_err"; then
7184
ac_header_preproc=yes
7186
echo "$as_me: failed program was:" >&5
7187
sed 's/^/| /' conftest.$ac_ext >&5
7189
ac_header_preproc=no
7191
rm -f conftest.err conftest.$ac_ext
7192
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7193
echo "${ECHO_T}$ac_header_preproc" >&6
7195
# So? What about this header?
7196
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7198
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7199
echo "$as_me: WARNING: dld/defs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7200
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the compiler's result" >&5
7201
echo "$as_me: WARNING: dld/defs.h: proceeding with the compiler's result" >&2;}
7202
ac_header_preproc=yes
7205
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: present but cannot be compiled" >&5
7206
echo "$as_me: WARNING: dld/defs.h: present but cannot be compiled" >&2;}
7207
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: check for missing prerequisite headers?" >&5
7208
echo "$as_me: WARNING: dld/defs.h: check for missing prerequisite headers?" >&2;}
7209
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: see the Autoconf documentation" >&5
7210
echo "$as_me: WARNING: dld/defs.h: see the Autoconf documentation" >&2;}
7211
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: section \"Present But Cannot Be Compiled\"" >&5
7212
echo "$as_me: WARNING: dld/defs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7213
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&5
7214
echo "$as_me: WARNING: dld/defs.h: proceeding with the preprocessor's result" >&2;}
7215
{ echo "$as_me:$LINENO: WARNING: dld/defs.h: in the future, the compiler will take precedence" >&5
7216
echo "$as_me: WARNING: dld/defs.h: in the future, the compiler will take precedence" >&2;}
7219
## ------------------------------------------ ##
7220
## Report this to the AC_PACKAGE_NAME lists. ##
7221
## ------------------------------------------ ##
7224
sed "s/^/$as_me: WARNING: /" >&2
7227
echo "$as_me:$LINENO: checking for dld/defs.h" >&5
7228
echo $ECHO_N "checking for dld/defs.h... $ECHO_C" >&6
7229
if test "${ac_cv_header_dld_defs_h+set}" = set; then
7230
echo $ECHO_N "(cached) $ECHO_C" >&6
7232
ac_cv_header_dld_defs_h=$ac_header_preproc
7234
echo "$as_me:$LINENO: result: $ac_cv_header_dld_defs_h" >&5
7235
echo "${ECHO_T}$ac_cv_header_dld_defs_h" >&6
7238
if test $ac_cv_header_dld_defs_h = yes; then
2077
7239
DYNAMIC_LINKER=dld
2079
echo "$ac_t""no" 1>&6
7245
# NB: This is used as follows: in Source/Makefile.postamble we copy
7246
# $(DYNAMIC_LINKER)-load.h into dynamic-load.h
7247
echo "$as_me:$LINENO: checking for dynamic linker type" >&5
7248
echo $ECHO_N "checking for dynamic linker type... $ECHO_C" >&6
7249
echo "$as_me:$LINENO: result: $DYNAMIC_LINKER" >&5
7250
echo "${ECHO_T}$DYNAMIC_LINKER" >&6
2084
7252
if test $DYNAMIC_LINKER = simple; then
2085
cat > conftest.$ac_ext <<EOF
2086
#line 2087 "configure"
2087
#include "confdefs.h"
2093
if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2095
cat >> confdefs.h <<\EOF
7254
echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
7255
echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
7256
if test "${ac_cv_lib_dl_dladdr+set}" = set; then
7257
echo $ECHO_N "(cached) $ECHO_C" >&6
7259
ac_check_lib_save_LIBS=$LIBS
7261
cat >conftest.$ac_ext <<_ACEOF
7264
cat confdefs.h >>conftest.$ac_ext
7265
cat >>conftest.$ac_ext <<_ACEOF
7266
/* end confdefs.h. */
7268
/* Override any gcc2 internal prototype to avoid an error. */
7272
/* We use char because int might match the return type of a gcc2
7273
builtin and then its argument prototype would still apply. */
7283
rm -f conftest.$ac_objext conftest$ac_exeext
7284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285
(eval $ac_link) 2>conftest.er1
7287
grep -v '^ *+' conftest.er1 >conftest.err
7289
cat conftest.err >&5
7290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291
(exit $ac_status); } &&
7292
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297
(exit $ac_status); }; } &&
7298
{ ac_try='test -s conftest$ac_exeext'
7299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303
(exit $ac_status); }; }; then
7304
ac_cv_lib_dl_dladdr=yes
7306
echo "$as_me: failed program was:" >&5
7307
sed 's/^/| /' conftest.$ac_ext >&5
7309
ac_cv_lib_dl_dladdr=no
7311
rm -f conftest.err conftest.$ac_objext \
7312
conftest$ac_exeext conftest.$ac_ext
7313
LIBS=$ac_check_lib_save_LIBS
7315
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
7316
echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
7317
if test $ac_cv_lib_dl_dladdr = yes; then
7318
cat >>confdefs.h <<_ACEOF
7319
#define HAVE_LIBDL 1
7329
if test x"$ac_cv_lib_dl_dladdr" = xyes; then
7331
cat >>confdefs.h <<\_ACEOF
2096
7332
#define HAVE_DLADDR 1
2100
echo "configure: failed program was:" >&5
2101
cat conftest.$ac_ext >&5
2108
7337
#--------------------------------------------------------------------
2109
7338
# Check whether Objective-C /really/ works
2110
7339
#--------------------------------------------------------------------
2111
echo $ac_n "checking whether objc really works""... $ac_c" 1>&6
2112
echo "configure:2113: checking whether objc really works" >&5
7340
echo "$as_me:$LINENO: checking whether objc really works" >&5
7341
echo $ECHO_N "checking whether objc really works... $ECHO_C" >&6
2113
7342
saved_LIBS="$LIBS"
2114
7343
saved_CPPFLAGS="$CPPFLAGS"
2115
7344
LIBS="$LIBS $LIBOBJC"
2116
CPPFLAGS="$CPPFLAGS -x objective-c"
7345
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
2117
7346
if test x"$objc_threaded" != x""; then
2118
7347
LIBS="$LIBS $objc_threaded"
2120
7349
LIBS="$LIBS $extra_LIBS"
2121
if eval "test \"`echo '$''{'objc_works'+set}'`\" = set"; then
2122
echo $ac_n "(cached) $ac_c" 1>&6
7350
if test "${objc_works+set}" = set; then
7351
echo $ECHO_N "(cached) $ECHO_C" >&6
2124
7353
if test "$cross_compiling" = yes; then
2127
cat > conftest.$ac_ext <<EOF
2128
#line 2129 "configure"
2129
#include "confdefs.h"
7356
cat >conftest.$ac_ext <<_ACEOF
7359
cat confdefs.h >>conftest.$ac_ext
7360
cat >>conftest.$ac_ext <<_ACEOF
7361
/* end confdefs.h. */
2130
7362
#include "$srcdir/config/config.objc.m"
2132
if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7364
rm -f conftest$ac_exeext
7365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366
(eval $ac_link) 2>&5
7368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374
(exit $ac_status); }; }; then
2136
echo "configure: failed program was:" >&5
2137
cat conftest.$ac_ext >&5
7377
echo "$as_me: program exited with status $ac_status" >&5
7378
echo "$as_me: failed program was:" >&5
7379
sed 's/^/| /' conftest.$ac_ext >&5
7384
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2147
7389
if test $objc_works = yes; then
2148
echo "$ac_t""yes" 1>&6
7390
echo "$as_me:$LINENO: result: yes" >&5
7391
echo "${ECHO_T}yes" >&6
2150
echo "$ac_t""no" 1>&6
7393
echo "$as_me:$LINENO: result: no" >&5
7394
echo "${ECHO_T}no" >&6
2151
7395
echo "I don't seem to be able to use your Objective-C compiler to produce"
2152
7396
echo "working binaries! Please check your Objective-C compiler installation."
2153
7397
echo "If you are using gcc-3.x make sure that your compiler's libgcc_s and libobjc"
2154
7398
echo "can be found by the dynamic linker - usually that requires you to play"
2155
7399
echo "with LD_LIBRARY_PATH or /etc/ld.so.conf."
2156
7400
echo "Please refer to your compiler installation instructions for more help."
2157
{ echo "configure: error: The Objective-C compiler doesn't work or is not installed properly." 1>&2; exit 1; }
7401
{ { echo "$as_me:$LINENO: error: The Objective-C compiler does not work or is not installed properly." >&5
7402
echo "$as_me: error: The Objective-C compiler does not work or is not installed properly." >&2;}
7403
{ (exit 1); exit 1; }; }
2160
7406
# Don't revert any Objective-C flags as they are used in the next test
2165
7411
# option. If that is the case, we change it to NSConstantString.
2166
7412
#---------------------------------------------------------------------
2167
7413
CPPFLAGS="$CPPFLAGS -fconstant-string-class=FooConstantString"
2168
echo $ac_n "checking if the compiler supports -fconstant-string-class""... $ac_c" 1>&6
2169
echo "configure:2170: checking if the compiler supports -fconstant-string-class" >&5
2170
if eval "test \"`echo '$''{'objc_compiler_supports_constant_string_class'+set}'`\" = set"; then
2171
echo $ac_n "(cached) $ac_c" 1>&6
7414
echo "$as_me:$LINENO: checking if the compiler supports -fconstant-string-class" >&5
7415
echo $ECHO_N "checking if the compiler supports -fconstant-string-class... $ECHO_C" >&6
7416
if test "${objc_compiler_supports_constant_string_class+set}" = set; then
7417
echo $ECHO_N "(cached) $ECHO_C" >&6
2173
7419
if test "$cross_compiling" = yes; then
2174
7420
objc_compiler_supports_constant_string_class=no
2176
cat > conftest.$ac_ext <<EOF
2177
#line 2178 "configure"
2178
#include "confdefs.h"
7422
cat >conftest.$ac_ext <<_ACEOF
7425
cat confdefs.h >>conftest.$ac_ext
7426
cat >>conftest.$ac_ext <<_ACEOF
7427
/* end confdefs.h. */
2179
7428
#include "$srcdir/config/config.constant-string-class.m"
2181
if { (eval echo configure:2182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7430
rm -f conftest$ac_exeext
7431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432
(eval $ac_link) 2>&5
7434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7436
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440
(exit $ac_status); }; }; then
2183
7441
objc_compiler_supports_constant_string_class=yes
2185
echo "configure: failed program was:" >&5
2186
cat conftest.$ac_ext >&5
2188
objc_compiler_supports_constant_string_class=no
7443
echo "$as_me: program exited with status $ac_status" >&5
7444
echo "$as_me: failed program was:" >&5
7445
sed 's/^/| /' conftest.$ac_ext >&5
7448
objc_compiler_supports_constant_string_class=no
7450
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2196
7455
if test $objc_compiler_supports_constant_string_class = yes; then
2197
NX_CONST_STRING_CPPFLAGS="-fconstant-string-class=NSConstantString"
7456
NX_CONST_STRING_OBJCFLAGS="-fconstant-string-class=NSConstantString"
2198
7457
NX_CONST_STRING_CLASS=NSConstantString
2199
echo "$ac_t""yes" 1>&6
7458
echo "$as_me:$LINENO: result: yes" >&5
7459
echo "${ECHO_T}yes" >&6
2201
NX_CONST_STRING_CPPFLAGS=""
7461
NX_CONST_STRING_OBJCFLAGS=""
2202
7462
NX_CONST_STRING_CLASS=NXConstantString
2203
echo "$ac_t""no" 1>&6
7463
echo "$as_me:$LINENO: result: no" >&5
7464
echo "${ECHO_T}no" >&6
2209
CPPFLAGS="$saved_CPPFLAGS"
2210
# Don't revert LIBS, need it for the next test
7470
# Don't revert any Objective-C flags as they are used in the next test
2212
7472
#---------------------------------------------------------------------
2213
# Guess if we are using a compiler which has the (GNU extension) +load
2214
# method which is executed before main.
7473
# Guess if we are using a compiler which has the (GNU extension) +load
7474
# method which is executed before main.
2215
7475
# Defines HAVE_LOAD_METHOD if +load methods are called before main.
2216
7476
# Needed by NSProcessInfo.m
2217
7477
#---------------------------------------------------------------------
2218
saved_CPPFLAGS="$CPPFLAGS"
2219
CPPFLAGS="$CPPFLAGS -x objective-c"
2220
echo $ac_n "checking if +load method is executed before main""... $ac_c" 1>&6
2221
echo "configure:2222: checking if +load method is executed before main" >&5
2222
if eval "test \"`echo '$''{'objc_load_method_worked'+set}'`\" = set"; then
2223
echo $ac_n "(cached) $ac_c" 1>&6
7478
echo "$as_me:$LINENO: checking if +load method is executed before main" >&5
7479
echo $ECHO_N "checking if +load method is executed before main... $ECHO_C" >&6
7480
if test "${objc_load_method_worked+set}" = set; then
7481
echo $ECHO_N "(cached) $ECHO_C" >&6
2225
7483
if test "$cross_compiling" = yes; then
2226
7484
objc_load_method_worked=no
2228
cat > conftest.$ac_ext <<EOF
2229
#line 2230 "configure"
2230
#include "confdefs.h"
7486
cat >conftest.$ac_ext <<_ACEOF
7489
cat confdefs.h >>conftest.$ac_ext
7490
cat >>conftest.$ac_ext <<_ACEOF
7491
/* end confdefs.h. */
2231
7492
#include "$srcdir/config/config.loadtest.m"
2233
if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7494
rm -f conftest$ac_exeext
7495
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496
(eval $ac_link) 2>&5
7498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504
(exit $ac_status); }; }; then
2235
7505
objc_load_method_worked=yes
2237
echo "configure: failed program was:" >&5
2238
cat conftest.$ac_ext >&5
2240
objc_load_method_worked=no
7507
echo "$as_me: program exited with status $ac_status" >&5
7508
echo "$as_me: failed program was:" >&5
7509
sed 's/^/| /' conftest.$ac_ext >&5
7512
objc_load_method_worked=no
7514
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2248
7519
if test $objc_load_method_worked = yes; then
2249
cat >> confdefs.h <<\EOF
7521
cat >>confdefs.h <<\_ACEOF
2250
7522
#define HAVE_LOAD_METHOD 1
2253
echo "$ac_t""yes" 1>&6
7525
echo "$as_me:$LINENO: result: yes" >&5
7526
echo "${ECHO_T}yes" >&6
2255
echo "$ac_t""no" 1>&6
7528
echo "$as_me:$LINENO: result: no" >&5
7529
echo "${ECHO_T}no" >&6
2258
CPPFLAGS="$saved_CPPFLAGS"
2259
# Don't revert LIBS, need it for the next test
7532
# Don't revert any Objective-C flags as they are used in the next test
2261
7534
#--------------------------------------------------------------------
2262
7535
# This function needed by NSLock.m for conditioned wait
2263
7536
# get_uninstalled_dtable used by behavior.m and objc-load.m
2264
7537
# Thread functions used by NSThread
2265
7538
#--------------------------------------------------------------------
2266
7541
for ac_func in objc_condition_timedwait objc_thread_add
2268
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2269
echo "configure:2270: checking for $ac_func" >&5
2270
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2271
echo $ac_n "(cached) $ac_c" 1>&6
7543
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7544
echo "$as_me:$LINENO: checking for $ac_func" >&5
7545
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7546
if eval "test \"\${$as_ac_var+set}\" = set"; then
7547
echo $ECHO_N "(cached) $ECHO_C" >&6
2273
cat > conftest.$ac_ext <<EOF
2274
#line 2275 "configure"
2275
#include "confdefs.h"
7549
cat >conftest.$ac_ext <<_ACEOF
7552
cat confdefs.h >>conftest.$ac_ext
7553
cat >>conftest.$ac_ext <<_ACEOF
7554
/* end confdefs.h. */
7555
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7556
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7557
#define $ac_func innocuous_$ac_func
2276
7559
/* System header to define __stub macros and hopefully few prototypes,
2277
which can conflict with char $ac_func(); below. */
7560
which can conflict with char $ac_func (); below.
7561
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562
<limits.h> exists even on freestanding compilers. */
7565
# include <limits.h>
7567
# include <assert.h>
2279
7572
/* Override any gcc2 internal prototype to avoid an error. */
2280
7577
/* We use char because int might match the return type of a gcc2
2281
builtin and then its argument prototype would still apply. */
7578
builtin and then its argument prototype would still apply. */
2286
7580
/* The GNU C library defines this for functions which it implements
2287
7581
to always fail with ENOSYS. Some functions are actually named
2288
7582
something starting with __ and the normal name is an alias. */
2289
7583
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2297
if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299
eval "ac_cv_func_$ac_func=yes"
2301
echo "configure: failed program was:" >&5
2302
cat conftest.$ac_ext >&5
2304
eval "ac_cv_func_$ac_func=no"
2309
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2310
echo "$ac_t""yes" 1>&6
2311
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2312
cat >> confdefs.h <<EOF
2313
#define $ac_tr_func 1
2317
echo "$ac_t""no" 1>&6
7586
char (*f) () = $ac_func;
7595
return f != $ac_func;
7600
rm -f conftest.$ac_objext conftest$ac_exeext
7601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602
(eval $ac_link) 2>conftest.er1
7604
grep -v '^ *+' conftest.er1 >conftest.err
7606
cat conftest.err >&5
7607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608
(exit $ac_status); } &&
7609
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614
(exit $ac_status); }; } &&
7615
{ ac_try='test -s conftest$ac_exeext'
7616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620
(exit $ac_status); }; }; then
7621
eval "$as_ac_var=yes"
7623
echo "$as_me: failed program was:" >&5
7624
sed 's/^/| /' conftest.$ac_ext >&5
7626
eval "$as_ac_var=no"
7628
rm -f conftest.err conftest.$ac_objext \
7629
conftest$ac_exeext conftest.$ac_ext
7631
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7632
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7633
if test `eval echo '${'$as_ac_var'}'` = yes; then
7634
cat >>confdefs.h <<_ACEOF
7635
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2322
cat > conftest.$ac_ext <<EOF
2323
#line 2324 "configure"
2324
#include "confdefs.h"
7642
cat >conftest.$ac_ext <<_ACEOF
7645
cat confdefs.h >>conftest.$ac_ext
7646
cat >>conftest.$ac_ext <<_ACEOF
7647
/* end confdefs.h. */
2325
7648
#include <objc/objc-api.h>
2327
7651
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2328
egrep "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
2330
cat >> confdefs.h <<\EOF
7652
$EGREP "objc_get_uninstalled_dtable" >/dev/null 2>&1; then
7654
cat >>confdefs.h <<\_ACEOF
2331
7655
#define HAVE_OBJC_GET_UNINSTALLED_DTABLE 1
2335
7659
rm -f conftest*
2338
7662
LIBS="$saved_LIBS"
7663
CPPFLAGS="$saved_CPPFLAGS"
2340
7665
#--------------------------------------------------------------------
2341
7666
# Generic settings needed by NSZone.m
2342
7667
#--------------------------------------------------------------------
2343
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2344
echo "configure:2345: checking for ANSI C header files" >&5
2345
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2346
echo $ac_n "(cached) $ac_c" 1>&6
2348
cat > conftest.$ac_ext <<EOF
2349
#line 2350 "configure"
2350
#include "confdefs.h"
2356
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357
{ (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359
if test -z "$ac_err"; then
2361
ac_cv_header_stdc=yes
2364
echo "configure: failed program was:" >&5
2365
cat conftest.$ac_ext >&5
2367
ac_cv_header_stdc=no
2371
if test $ac_cv_header_stdc = yes; then
2372
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2373
cat > conftest.$ac_ext <<EOF
2374
#line 2375 "configure"
2375
#include "confdefs.h"
2378
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2379
egrep "memchr" >/dev/null 2>&1; then
2383
ac_cv_header_stdc=no
2389
if test $ac_cv_header_stdc = yes; then
2390
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2391
cat > conftest.$ac_ext <<EOF
2392
#line 2393 "configure"
2393
#include "confdefs.h"
2396
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2397
egrep "free" >/dev/null 2>&1; then
2401
ac_cv_header_stdc=no
2407
if test $ac_cv_header_stdc = yes; then
2408
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2409
if test "$cross_compiling" = yes; then
2412
cat > conftest.$ac_ext <<EOF
2413
#line 2414 "configure"
2414
#include "confdefs.h"
2416
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2417
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2418
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2419
int main () { int i; for (i = 0; i < 256; i++)
2420
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2424
if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2428
echo "configure: failed program was:" >&5
2429
cat conftest.$ac_ext >&5
2431
ac_cv_header_stdc=no
2439
echo "$ac_t""$ac_cv_header_stdc" 1>&6
2440
if test $ac_cv_header_stdc = yes; then
2441
cat >> confdefs.h <<\EOF
2442
#define STDC_HEADERS 1
2447
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2448
echo "configure:2449: checking for size_t" >&5
2449
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2450
echo $ac_n "(cached) $ac_c" 1>&6
2452
cat > conftest.$ac_ext <<EOF
2453
#line 2454 "configure"
2454
#include "confdefs.h"
2455
#include <sys/types.h>
2461
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2462
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7668
echo "$as_me:$LINENO: checking for size_t" >&5
7669
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7670
if test "${ac_cv_type_size_t+set}" = set; then
7671
echo $ECHO_N "(cached) $ECHO_C" >&6
7673
cat >conftest.$ac_ext <<_ACEOF
7676
cat confdefs.h >>conftest.$ac_ext
7677
cat >>conftest.$ac_ext <<_ACEOF
7678
/* end confdefs.h. */
7679
$ac_includes_default
7685
if (sizeof (size_t))
7691
rm -f conftest.$ac_objext
7692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693
(eval $ac_compile) 2>conftest.er1
7695
grep -v '^ *+' conftest.er1 >conftest.err
7697
cat conftest.err >&5
7698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699
(exit $ac_status); } &&
7700
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7701
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705
(exit $ac_status); }; } &&
7706
{ ac_try='test -s conftest.$ac_objext'
7707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711
(exit $ac_status); }; }; then
2464
7712
ac_cv_type_size_t=yes
2467
ac_cv_type_size_t=no
2472
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2473
if test $ac_cv_type_size_t = no; then
2474
cat >> confdefs.h <<\EOF
7714
echo "$as_me: failed program was:" >&5
7715
sed 's/^/| /' conftest.$ac_ext >&5
7717
ac_cv_type_size_t=no
7719
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7721
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7722
echo "${ECHO_T}$ac_cv_type_size_t" >&6
7723
if test $ac_cv_type_size_t = yes; then
7727
cat >>confdefs.h <<_ACEOF
2475
7728
#define size_t unsigned
2480
echo $ac_n "checking for inline""... $ac_c" 1>&6
2481
echo "configure:2482: checking for inline" >&5
2482
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2483
echo $ac_n "(cached) $ac_c" 1>&6
7733
echo "$as_me:$LINENO: checking for inline" >&5
7734
echo $ECHO_N "checking for inline... $ECHO_C" >&6
7735
if test "${ac_cv_c_inline+set}" = set; then
7736
echo $ECHO_N "(cached) $ECHO_C" >&6
2485
7738
ac_cv_c_inline=no
2486
7739
for ac_kw in inline __inline__ __inline; do
2487
cat > conftest.$ac_ext <<EOF
2488
#line 2489 "configure"
2489
#include "confdefs.h"
7740
cat >conftest.$ac_ext <<_ACEOF
7743
cat confdefs.h >>conftest.$ac_ext
7744
cat >>conftest.$ac_ext <<_ACEOF
7745
/* end confdefs.h. */
7748
static $ac_kw foo_t static_foo () {return 0; }
7749
$ac_kw foo_t foo () {return 0; }
2495
if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7753
rm -f conftest.$ac_objext
7754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755
(eval $ac_compile) 2>conftest.er1
7757
grep -v '^ *+' conftest.er1 >conftest.err
7759
cat conftest.err >&5
7760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761
(exit $ac_status); } &&
7762
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767
(exit $ac_status); }; } &&
7768
{ ac_try='test -s conftest.$ac_objext'
7769
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773
(exit $ac_status); }; }; then
2497
7774
ac_cv_c_inline=$ac_kw; break
2499
echo "configure: failed program was:" >&5
2500
cat conftest.$ac_ext >&5
7776
echo "$as_me: failed program was:" >&5
7777
sed 's/^/| /' conftest.$ac_ext >&5
7780
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507
echo "$ac_t""$ac_cv_c_inline" 1>&6
2508
case "$ac_cv_c_inline" in
7784
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7785
echo "${ECHO_T}$ac_cv_c_inline" >&6
7788
case $ac_cv_c_inline in
2509
7789
inline | yes) ;;
2510
no) cat >> confdefs.h <<\EOF
2514
*) cat >> confdefs.h <<EOF
2515
#define inline $ac_cv_c_inline
7791
case $ac_cv_c_inline in
7793
*) ac_val=$ac_cv_c_inline;;
7795
cat >>confdefs.h <<_ACEOF
7797
#define inline $ac_val
2521
7804
#--------------------------------------------------------------------
2522
7805
# Following header checks needed for bzero in Storage.m and other places
2523
7806
#--------------------------------------------------------------------
2524
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2525
echo "configure:2526: checking for ANSI C header files" >&5
2526
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2527
echo $ac_n "(cached) $ac_c" 1>&6
7807
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7808
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7809
if test "${ac_cv_header_stdc+set}" = set; then
7810
echo $ECHO_N "(cached) $ECHO_C" >&6
2529
cat > conftest.$ac_ext <<EOF
2530
#line 2531 "configure"
2531
#include "confdefs.h"
7812
cat >conftest.$ac_ext <<_ACEOF
7815
cat confdefs.h >>conftest.$ac_ext
7816
cat >>conftest.$ac_ext <<_ACEOF
7817
/* end confdefs.h. */
2532
7818
#include <stdlib.h>
2533
7819
#include <stdarg.h>
2534
7820
#include <string.h>
2535
7821
#include <float.h>
2537
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538
{ (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540
if test -z "$ac_err"; then
7831
rm -f conftest.$ac_objext
7832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833
(eval $ac_compile) 2>conftest.er1
7835
grep -v '^ *+' conftest.er1 >conftest.err
7837
cat conftest.err >&5
7838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839
(exit $ac_status); } &&
7840
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845
(exit $ac_status); }; } &&
7846
{ ac_try='test -s conftest.$ac_objext'
7847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851
(exit $ac_status); }; }; then
2542
7852
ac_cv_header_stdc=yes
2545
echo "configure: failed program was:" >&5
2546
cat conftest.$ac_ext >&5
2548
ac_cv_header_stdc=no
7854
echo "$as_me: failed program was:" >&5
7855
sed 's/^/| /' conftest.$ac_ext >&5
7857
ac_cv_header_stdc=no
7859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2552
7861
if test $ac_cv_header_stdc = yes; then
2553
7862
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2554
cat > conftest.$ac_ext <<EOF
2555
#line 2556 "configure"
2556
#include "confdefs.h"
7863
cat >conftest.$ac_ext <<_ACEOF
7866
cat confdefs.h >>conftest.$ac_ext
7867
cat >>conftest.$ac_ext <<_ACEOF
7868
/* end confdefs.h. */
2557
7869
#include <string.h>
2559
7872
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2560
egrep "memchr" >/dev/null 2>&1; then
7873
$EGREP "memchr" >/dev/null 2>&1; then
2564
7876
ac_cv_header_stdc=no
2566
7878
rm -f conftest*
2588
7903
if test $ac_cv_header_stdc = yes; then
2589
7904
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2590
if test "$cross_compiling" = yes; then
7905
if test "$cross_compiling" = yes; then
2593
cat > conftest.$ac_ext <<EOF
2594
#line 2595 "configure"
2595
#include "confdefs.h"
7908
cat >conftest.$ac_ext <<_ACEOF
7911
cat confdefs.h >>conftest.$ac_ext
7912
cat >>conftest.$ac_ext <<_ACEOF
7913
/* end confdefs.h. */
2596
7914
#include <ctype.h>
2597
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2598
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7915
#if ((' ' & 0x0FF) == 0x020)
7916
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7917
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7919
# define ISLOWER(c) \
7920
(('a' <= (c) && (c) <= 'i') \
7921
|| ('j' <= (c) && (c) <= 'r') \
7922
|| ('s' <= (c) && (c) <= 'z'))
7923
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2599
7926
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2600
int main () { int i; for (i = 0; i < 256; i++)
2601
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2605
if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7931
for (i = 0; i < 256; i++)
7932
if (XOR (islower (i), ISLOWER (i))
7933
|| toupper (i) != TOUPPER (i))
7938
rm -f conftest$ac_exeext
7939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940
(eval $ac_link) 2>&5
7942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948
(exit $ac_status); }; }; then
2609
echo "configure: failed program was:" >&5
2610
cat conftest.$ac_ext >&5
2612
ac_cv_header_stdc=no
2620
echo "$ac_t""$ac_cv_header_stdc" 1>&6
7951
echo "$as_me: program exited with status $ac_status" >&5
7952
echo "$as_me: failed program was:" >&5
7953
sed 's/^/| /' conftest.$ac_ext >&5
7956
ac_cv_header_stdc=no
7958
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7962
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7963
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2621
7964
if test $ac_cv_header_stdc = yes; then
2622
cat >> confdefs.h <<\EOF
7966
cat >>confdefs.h <<\_ACEOF
2623
7967
#define STDC_HEADERS 1
2628
for ac_hdr in string.h memory.h
7974
for ac_header in string.h memory.h
2630
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2631
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2632
echo "configure:2633: checking for $ac_hdr" >&5
2633
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2634
echo $ac_n "(cached) $ac_c" 1>&6
2636
cat > conftest.$ac_ext <<EOF
2637
#line 2638 "configure"
2638
#include "confdefs.h"
2641
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2642
{ (eval echo configure:2643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2643
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2644
if test -z "$ac_err"; then
2646
eval "ac_cv_header_$ac_safe=yes"
2649
echo "configure: failed program was:" >&5
2650
cat conftest.$ac_ext >&5
2652
eval "ac_cv_header_$ac_safe=no"
2656
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2657
echo "$ac_t""yes" 1>&6
2658
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2659
cat >> confdefs.h <<EOF
2660
#define $ac_tr_hdr 1
2664
echo "$ac_t""no" 1>&6
7976
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7977
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7978
echo "$as_me:$LINENO: checking for $ac_header" >&5
7979
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7980
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7981
echo $ECHO_N "(cached) $ECHO_C" >&6
7983
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7984
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7986
# Is the header compilable?
7987
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7988
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7989
cat >conftest.$ac_ext <<_ACEOF
7992
cat confdefs.h >>conftest.$ac_ext
7993
cat >>conftest.$ac_ext <<_ACEOF
7994
/* end confdefs.h. */
7995
$ac_includes_default
7996
#include <$ac_header>
7998
rm -f conftest.$ac_objext
7999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000
(eval $ac_compile) 2>conftest.er1
8002
grep -v '^ *+' conftest.er1 >conftest.err
8004
cat conftest.err >&5
8005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006
(exit $ac_status); } &&
8007
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012
(exit $ac_status); }; } &&
8013
{ ac_try='test -s conftest.$ac_objext'
8014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018
(exit $ac_status); }; }; then
8019
ac_header_compiler=yes
8021
echo "$as_me: failed program was:" >&5
8022
sed 's/^/| /' conftest.$ac_ext >&5
8024
ac_header_compiler=no
8026
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8027
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028
echo "${ECHO_T}$ac_header_compiler" >&6
8030
# Is the header present?
8031
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8033
cat >conftest.$ac_ext <<_ACEOF
8036
cat confdefs.h >>conftest.$ac_ext
8037
cat >>conftest.$ac_ext <<_ACEOF
8038
/* end confdefs.h. */
8039
#include <$ac_header>
8041
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8042
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8044
grep -v '^ *+' conftest.er1 >conftest.err
8046
cat conftest.err >&5
8047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048
(exit $ac_status); } >/dev/null; then
8049
if test -s conftest.err; then
8050
ac_cpp_err=$ac_c_preproc_warn_flag
8051
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8058
if test -z "$ac_cpp_err"; then
8059
ac_header_preproc=yes
8061
echo "$as_me: failed program was:" >&5
8062
sed 's/^/| /' conftest.$ac_ext >&5
8064
ac_header_preproc=no
8066
rm -f conftest.err conftest.$ac_ext
8067
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8068
echo "${ECHO_T}$ac_header_preproc" >&6
8070
# So? What about this header?
8071
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8073
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8074
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8075
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8076
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8077
ac_header_preproc=yes
8080
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8083
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8084
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8085
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8086
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8087
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8088
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8089
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8090
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8091
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8094
## ------------------------------------------ ##
8095
## Report this to the AC_PACKAGE_NAME lists. ##
8096
## ------------------------------------------ ##
8099
sed "s/^/$as_me: WARNING: /" >&2
8102
echo "$as_me:$LINENO: checking for $ac_header" >&5
8103
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8104
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8105
echo $ECHO_N "(cached) $ECHO_C" >&6
8107
eval "$as_ac_Header=\$ac_header_preproc"
8109
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8110
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8113
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8114
cat >>confdefs.h <<_ACEOF
8115
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2669
8123
#--------------------------------------------------------------------
2670
8124
# Following header check needed NSConnection.h
2671
8125
#--------------------------------------------------------------------
2672
for ac_hdr in float.h
8127
for ac_header in float.h
2674
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676
echo "configure:2677: checking for $ac_hdr" >&5
2677
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678
echo $ac_n "(cached) $ac_c" 1>&6
2680
cat > conftest.$ac_ext <<EOF
2681
#line 2682 "configure"
2682
#include "confdefs.h"
2685
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686
{ (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688
if test -z "$ac_err"; then
2690
eval "ac_cv_header_$ac_safe=yes"
2693
echo "configure: failed program was:" >&5
2694
cat conftest.$ac_ext >&5
2696
eval "ac_cv_header_$ac_safe=no"
2700
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701
echo "$ac_t""yes" 1>&6
2702
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703
cat >> confdefs.h <<EOF
2704
#define $ac_tr_hdr 1
2708
echo "$ac_t""no" 1>&6
8129
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8130
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8131
echo "$as_me:$LINENO: checking for $ac_header" >&5
8132
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8133
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8134
echo $ECHO_N "(cached) $ECHO_C" >&6
8136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8137
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139
# Is the header compilable?
8140
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8141
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8142
cat >conftest.$ac_ext <<_ACEOF
8145
cat confdefs.h >>conftest.$ac_ext
8146
cat >>conftest.$ac_ext <<_ACEOF
8147
/* end confdefs.h. */
8148
$ac_includes_default
8149
#include <$ac_header>
8151
rm -f conftest.$ac_objext
8152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153
(eval $ac_compile) 2>conftest.er1
8155
grep -v '^ *+' conftest.er1 >conftest.err
8157
cat conftest.err >&5
8158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159
(exit $ac_status); } &&
8160
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165
(exit $ac_status); }; } &&
8166
{ ac_try='test -s conftest.$ac_objext'
8167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171
(exit $ac_status); }; }; then
8172
ac_header_compiler=yes
8174
echo "$as_me: failed program was:" >&5
8175
sed 's/^/| /' conftest.$ac_ext >&5
8177
ac_header_compiler=no
8179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8180
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8181
echo "${ECHO_T}$ac_header_compiler" >&6
8183
# Is the header present?
8184
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8185
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8186
cat >conftest.$ac_ext <<_ACEOF
8189
cat confdefs.h >>conftest.$ac_ext
8190
cat >>conftest.$ac_ext <<_ACEOF
8191
/* end confdefs.h. */
8192
#include <$ac_header>
8194
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8195
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8197
grep -v '^ *+' conftest.er1 >conftest.err
8199
cat conftest.err >&5
8200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201
(exit $ac_status); } >/dev/null; then
8202
if test -s conftest.err; then
8203
ac_cpp_err=$ac_c_preproc_warn_flag
8204
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8211
if test -z "$ac_cpp_err"; then
8212
ac_header_preproc=yes
8214
echo "$as_me: failed program was:" >&5
8215
sed 's/^/| /' conftest.$ac_ext >&5
8217
ac_header_preproc=no
8219
rm -f conftest.err conftest.$ac_ext
8220
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8221
echo "${ECHO_T}$ac_header_preproc" >&6
8223
# So? What about this header?
8224
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8226
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8227
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8228
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8229
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8230
ac_header_preproc=yes
8233
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8234
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8235
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8236
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8237
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8238
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8239
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8240
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8241
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8242
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8243
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8244
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8247
## ------------------------------------------ ##
8248
## Report this to the AC_PACKAGE_NAME lists. ##
8249
## ------------------------------------------ ##
8252
sed "s/^/$as_me: WARNING: /" >&2
8255
echo "$as_me:$LINENO: checking for $ac_header" >&5
8256
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8257
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8258
echo $ECHO_N "(cached) $ECHO_C" >&6
8260
eval "$as_ac_Header=\$ac_header_preproc"
8262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8263
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8266
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267
cat >>confdefs.h <<_ACEOF
8268
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2713
8276
#--------------------------------------------------------------------
2714
8277
# Header files and functions for files and filesystems
2715
8278
#--------------------------------------------------------------------
2716
for ac_hdr in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
2718
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2719
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2720
echo "configure:2721: checking for $ac_hdr" >&5
2721
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2722
echo $ac_n "(cached) $ac_c" 1>&6
2724
cat > conftest.$ac_ext <<EOF
2725
#line 2726 "configure"
2726
#include "confdefs.h"
2729
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730
{ (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732
if test -z "$ac_err"; then
2734
eval "ac_cv_header_$ac_safe=yes"
2737
echo "configure: failed program was:" >&5
2738
cat conftest.$ac_ext >&5
2740
eval "ac_cv_header_$ac_safe=no"
2744
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2745
echo "$ac_t""yes" 1>&6
2746
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2747
cat >> confdefs.h <<EOF
2748
#define $ac_tr_hdr 1
2752
echo "$ac_t""no" 1>&6
2756
for ac_hdr in sys/mount.h sys/types.h windows.h locale.h langinfo.h
2758
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2759
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2760
echo "configure:2761: checking for $ac_hdr" >&5
2761
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2762
echo $ac_n "(cached) $ac_c" 1>&6
2764
cat > conftest.$ac_ext <<EOF
2765
#line 2766 "configure"
2766
#include "confdefs.h"
2769
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2770
{ (eval echo configure:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2771
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2772
if test -z "$ac_err"; then
2774
eval "ac_cv_header_$ac_safe=yes"
2777
echo "configure: failed program was:" >&5
2778
cat conftest.$ac_ext >&5
2780
eval "ac_cv_header_$ac_safe=no"
2784
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2785
echo "$ac_t""yes" 1>&6
2786
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2787
cat >> confdefs.h <<EOF
2788
#define $ac_tr_hdr 1
2792
echo "$ac_t""no" 1>&6
8285
for ac_header in sys/stat.h sys/vfs.h sys/statfs.h sys/statvfs.h pwd.h grp.h
8287
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8289
echo "$as_me:$LINENO: checking for $ac_header" >&5
8290
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8291
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8292
echo $ECHO_N "(cached) $ECHO_C" >&6
8294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8295
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8297
# Is the header compilable?
8298
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8299
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8300
cat >conftest.$ac_ext <<_ACEOF
8303
cat confdefs.h >>conftest.$ac_ext
8304
cat >>conftest.$ac_ext <<_ACEOF
8305
/* end confdefs.h. */
8306
$ac_includes_default
8307
#include <$ac_header>
8309
rm -f conftest.$ac_objext
8310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311
(eval $ac_compile) 2>conftest.er1
8313
grep -v '^ *+' conftest.er1 >conftest.err
8315
cat conftest.err >&5
8316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317
(exit $ac_status); } &&
8318
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323
(exit $ac_status); }; } &&
8324
{ ac_try='test -s conftest.$ac_objext'
8325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329
(exit $ac_status); }; }; then
8330
ac_header_compiler=yes
8332
echo "$as_me: failed program was:" >&5
8333
sed 's/^/| /' conftest.$ac_ext >&5
8335
ac_header_compiler=no
8337
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8338
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8339
echo "${ECHO_T}$ac_header_compiler" >&6
8341
# Is the header present?
8342
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8343
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8344
cat >conftest.$ac_ext <<_ACEOF
8347
cat confdefs.h >>conftest.$ac_ext
8348
cat >>conftest.$ac_ext <<_ACEOF
8349
/* end confdefs.h. */
8350
#include <$ac_header>
8352
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8353
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8355
grep -v '^ *+' conftest.er1 >conftest.err
8357
cat conftest.err >&5
8358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359
(exit $ac_status); } >/dev/null; then
8360
if test -s conftest.err; then
8361
ac_cpp_err=$ac_c_preproc_warn_flag
8362
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8369
if test -z "$ac_cpp_err"; then
8370
ac_header_preproc=yes
8372
echo "$as_me: failed program was:" >&5
8373
sed 's/^/| /' conftest.$ac_ext >&5
8375
ac_header_preproc=no
8377
rm -f conftest.err conftest.$ac_ext
8378
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8379
echo "${ECHO_T}$ac_header_preproc" >&6
8381
# So? What about this header?
8382
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8384
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8385
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8386
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8387
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8388
ac_header_preproc=yes
8391
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8392
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8393
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8394
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8395
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8396
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8397
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8398
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8399
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8400
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8401
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8402
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8405
## ------------------------------------------ ##
8406
## Report this to the AC_PACKAGE_NAME lists. ##
8407
## ------------------------------------------ ##
8410
sed "s/^/$as_me: WARNING: /" >&2
8413
echo "$as_me:$LINENO: checking for $ac_header" >&5
8414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8415
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8416
echo $ECHO_N "(cached) $ECHO_C" >&6
8418
eval "$as_ac_Header=\$ac_header_preproc"
8420
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8421
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8425
cat >>confdefs.h <<_ACEOF
8426
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8435
for ac_header in sys/syslimits.h sys/param.h
8437
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8439
echo "$as_me:$LINENO: checking for $ac_header" >&5
8440
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8441
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8442
echo $ECHO_N "(cached) $ECHO_C" >&6
8444
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8445
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8447
# Is the header compilable?
8448
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8449
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8450
cat >conftest.$ac_ext <<_ACEOF
8453
cat confdefs.h >>conftest.$ac_ext
8454
cat >>conftest.$ac_ext <<_ACEOF
8455
/* end confdefs.h. */
8456
$ac_includes_default
8457
#include <$ac_header>
8459
rm -f conftest.$ac_objext
8460
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461
(eval $ac_compile) 2>conftest.er1
8463
grep -v '^ *+' conftest.er1 >conftest.err
8465
cat conftest.err >&5
8466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467
(exit $ac_status); } &&
8468
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473
(exit $ac_status); }; } &&
8474
{ ac_try='test -s conftest.$ac_objext'
8475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479
(exit $ac_status); }; }; then
8480
ac_header_compiler=yes
8482
echo "$as_me: failed program was:" >&5
8483
sed 's/^/| /' conftest.$ac_ext >&5
8485
ac_header_compiler=no
8487
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8489
echo "${ECHO_T}$ac_header_compiler" >&6
8491
# Is the header present?
8492
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8493
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8494
cat >conftest.$ac_ext <<_ACEOF
8497
cat confdefs.h >>conftest.$ac_ext
8498
cat >>conftest.$ac_ext <<_ACEOF
8499
/* end confdefs.h. */
8500
#include <$ac_header>
8502
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8503
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8505
grep -v '^ *+' conftest.er1 >conftest.err
8507
cat conftest.err >&5
8508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509
(exit $ac_status); } >/dev/null; then
8510
if test -s conftest.err; then
8511
ac_cpp_err=$ac_c_preproc_warn_flag
8512
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8519
if test -z "$ac_cpp_err"; then
8520
ac_header_preproc=yes
8522
echo "$as_me: failed program was:" >&5
8523
sed 's/^/| /' conftest.$ac_ext >&5
8525
ac_header_preproc=no
8527
rm -f conftest.err conftest.$ac_ext
8528
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529
echo "${ECHO_T}$ac_header_preproc" >&6
8531
# So? What about this header?
8532
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8534
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8535
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8537
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8538
ac_header_preproc=yes
8541
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8542
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8543
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8544
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8545
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8546
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8547
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8548
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8549
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8550
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8551
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8552
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8555
## ------------------------------------------ ##
8556
## Report this to the AC_PACKAGE_NAME lists. ##
8557
## ------------------------------------------ ##
8560
sed "s/^/$as_me: WARNING: /" >&2
8563
echo "$as_me:$LINENO: checking for $ac_header" >&5
8564
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566
echo $ECHO_N "(cached) $ECHO_C" >&6
8568
eval "$as_ac_Header=\$ac_header_preproc"
8570
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8571
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8575
cat >>confdefs.h <<_ACEOF
8576
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8583
# Twisted header check for NetBSD
8585
for ac_header in sys/mount.h
8587
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8588
echo "$as_me:$LINENO: checking for $ac_header" >&5
8589
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8590
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8591
echo $ECHO_N "(cached) $ECHO_C" >&6
8593
cat >conftest.$ac_ext <<_ACEOF
8596
cat confdefs.h >>conftest.$ac_ext
8597
cat >>conftest.$ac_ext <<_ACEOF
8598
/* end confdefs.h. */
8599
#if HAVE_SYS_SYSLIMITS_H
8600
#include <sys/syslimits.h>
8602
#if HAVE_SYS_PARAM_H
8603
#include <sys/param.h>
8607
#include <$ac_header>
8609
rm -f conftest.$ac_objext
8610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611
(eval $ac_compile) 2>conftest.er1
8613
grep -v '^ *+' conftest.er1 >conftest.err
8615
cat conftest.err >&5
8616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617
(exit $ac_status); } &&
8618
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623
(exit $ac_status); }; } &&
8624
{ ac_try='test -s conftest.$ac_objext'
8625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629
(exit $ac_status); }; }; then
8630
eval "$as_ac_Header=yes"
8632
echo "$as_me: failed program was:" >&5
8633
sed 's/^/| /' conftest.$ac_ext >&5
8635
eval "$as_ac_Header=no"
8637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8639
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8641
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8642
cat >>confdefs.h <<_ACEOF
8643
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8654
for ac_header in sys/types.h windows.h locale.h langinfo.h
8656
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658
echo "$as_me:$LINENO: checking for $ac_header" >&5
8659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661
echo $ECHO_N "(cached) $ECHO_C" >&6
8663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666
# Is the header compilable?
8667
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669
cat >conftest.$ac_ext <<_ACEOF
8672
cat confdefs.h >>conftest.$ac_ext
8673
cat >>conftest.$ac_ext <<_ACEOF
8674
/* end confdefs.h. */
8675
$ac_includes_default
8676
#include <$ac_header>
8678
rm -f conftest.$ac_objext
8679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8680
(eval $ac_compile) 2>conftest.er1
8682
grep -v '^ *+' conftest.er1 >conftest.err
8684
cat conftest.err >&5
8685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686
(exit $ac_status); } &&
8687
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692
(exit $ac_status); }; } &&
8693
{ ac_try='test -s conftest.$ac_objext'
8694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698
(exit $ac_status); }; }; then
8699
ac_header_compiler=yes
8701
echo "$as_me: failed program was:" >&5
8702
sed 's/^/| /' conftest.$ac_ext >&5
8704
ac_header_compiler=no
8706
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708
echo "${ECHO_T}$ac_header_compiler" >&6
8710
# Is the header present?
8711
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8712
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8713
cat >conftest.$ac_ext <<_ACEOF
8716
cat confdefs.h >>conftest.$ac_ext
8717
cat >>conftest.$ac_ext <<_ACEOF
8718
/* end confdefs.h. */
8719
#include <$ac_header>
8721
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724
grep -v '^ *+' conftest.er1 >conftest.err
8726
cat conftest.err >&5
8727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728
(exit $ac_status); } >/dev/null; then
8729
if test -s conftest.err; then
8730
ac_cpp_err=$ac_c_preproc_warn_flag
8731
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8738
if test -z "$ac_cpp_err"; then
8739
ac_header_preproc=yes
8741
echo "$as_me: failed program was:" >&5
8742
sed 's/^/| /' conftest.$ac_ext >&5
8744
ac_header_preproc=no
8746
rm -f conftest.err conftest.$ac_ext
8747
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748
echo "${ECHO_T}$ac_header_preproc" >&6
8750
# So? What about this header?
8751
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8754
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8756
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8757
ac_header_preproc=yes
8760
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8761
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8762
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8763
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8764
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8765
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8766
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8767
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8768
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8770
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8771
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774
## ------------------------------------------ ##
8775
## Report this to the AC_PACKAGE_NAME lists. ##
8776
## ------------------------------------------ ##
8779
sed "s/^/$as_me: WARNING: /" >&2
8782
echo "$as_me:$LINENO: checking for $ac_header" >&5
8783
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8784
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8785
echo $ECHO_N "(cached) $ECHO_C" >&6
8787
eval "$as_ac_Header=\$ac_header_preproc"
8789
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794
cat >>confdefs.h <<_ACEOF
8795
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2796
8802
saved_LIBS="$LIBS"
2797
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2798
echo "configure:2799: checking for main in -lm" >&5
2799
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2800
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801
echo $ac_n "(cached) $ac_c" 1>&6
8804
echo "$as_me:$LINENO: checking for main in -lm" >&5
8805
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8806
if test "${ac_cv_lib_m_main+set}" = set; then
8807
echo $ECHO_N "(cached) $ECHO_C" >&6
2803
ac_save_LIBS="$LIBS"
8809
ac_check_lib_save_LIBS=$LIBS
2804
8810
LIBS="-lm $LIBS"
2805
cat > conftest.$ac_ext <<EOF
2806
#line 2807 "configure"
2807
#include "confdefs.h"
2813
if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2815
eval "ac_cv_lib_$ac_lib_var=yes"
8811
cat >conftest.$ac_ext <<_ACEOF
8814
cat confdefs.h >>conftest.$ac_ext
8815
cat >>conftest.$ac_ext <<_ACEOF
8816
/* end confdefs.h. */
8827
rm -f conftest.$ac_objext conftest$ac_exeext
8828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829
(eval $ac_link) 2>conftest.er1
8831
grep -v '^ *+' conftest.er1 >conftest.err
8833
cat conftest.err >&5
8834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835
(exit $ac_status); } &&
8836
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841
(exit $ac_status); }; } &&
8842
{ ac_try='test -s conftest$ac_exeext'
8843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847
(exit $ac_status); }; }; then
8848
ac_cv_lib_m_main=yes
2817
echo "configure: failed program was:" >&5
2818
cat conftest.$ac_ext >&5
2820
eval "ac_cv_lib_$ac_lib_var=no"
2823
LIBS="$ac_save_LIBS"
8850
echo "$as_me: failed program was:" >&5
8851
sed 's/^/| /' conftest.$ac_ext >&5
2826
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2827
echo "$ac_t""yes" 1>&6
2828
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2829
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2830
cat >> confdefs.h <<EOF
2831
#define $ac_tr_lib 1
8855
rm -f conftest.err conftest.$ac_objext \
8856
conftest$ac_exeext conftest.$ac_ext
8857
LIBS=$ac_check_lib_save_LIBS
8859
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8860
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8861
if test $ac_cv_lib_m_main = yes; then
8862
cat >>confdefs.h <<_ACEOF
2834
8866
LIBS="-lm $LIBS"
2837
echo "$ac_t""no" 1>&6
2840
for ac_func in statvfs symlink readlink geteuid getlogin getpwnam getpwuid rint
8881
for ac_func in statvfs link symlink readlink geteuid getlogin getpwnam getpwuid getgrgid rint getopt
2842
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2843
echo "configure:2844: checking for $ac_func" >&5
2844
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2845
echo $ac_n "(cached) $ac_c" 1>&6
8883
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8884
echo "$as_me:$LINENO: checking for $ac_func" >&5
8885
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8886
if eval "test \"\${$as_ac_var+set}\" = set"; then
8887
echo $ECHO_N "(cached) $ECHO_C" >&6
2847
cat > conftest.$ac_ext <<EOF
2848
#line 2849 "configure"
2849
#include "confdefs.h"
8889
cat >conftest.$ac_ext <<_ACEOF
8892
cat confdefs.h >>conftest.$ac_ext
8893
cat >>conftest.$ac_ext <<_ACEOF
8894
/* end confdefs.h. */
8895
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8896
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8897
#define $ac_func innocuous_$ac_func
2850
8899
/* System header to define __stub macros and hopefully few prototypes,
2851
which can conflict with char $ac_func(); below. */
8900
which can conflict with char $ac_func (); below.
8901
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8902
<limits.h> exists even on freestanding compilers. */
8905
# include <limits.h>
8907
# include <assert.h>
2853
8912
/* Override any gcc2 internal prototype to avoid an error. */
2854
8917
/* We use char because int might match the return type of a gcc2
2855
builtin and then its argument prototype would still apply. */
8918
builtin and then its argument prototype would still apply. */
2860
8920
/* The GNU C library defines this for functions which it implements
2861
8921
to always fail with ENOSYS. Some functions are actually named
2862
8922
something starting with __ and the normal name is an alias. */
2863
8923
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2871
if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873
eval "ac_cv_func_$ac_func=yes"
2875
echo "configure: failed program was:" >&5
2876
cat conftest.$ac_ext >&5
2878
eval "ac_cv_func_$ac_func=no"
2883
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2884
echo "$ac_t""yes" 1>&6
2885
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2886
cat >> confdefs.h <<EOF
2887
#define $ac_tr_func 1
2891
echo "$ac_t""no" 1>&6
8926
char (*f) () = $ac_func;
8935
return f != $ac_func;
8940
rm -f conftest.$ac_objext conftest$ac_exeext
8941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942
(eval $ac_link) 2>conftest.er1
8944
grep -v '^ *+' conftest.er1 >conftest.err
8946
cat conftest.err >&5
8947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948
(exit $ac_status); } &&
8949
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954
(exit $ac_status); }; } &&
8955
{ ac_try='test -s conftest$ac_exeext'
8956
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960
(exit $ac_status); }; }; then
8961
eval "$as_ac_var=yes"
8963
echo "$as_me: failed program was:" >&5
8964
sed 's/^/| /' conftest.$ac_ext >&5
8966
eval "$as_ac_var=no"
8968
rm -f conftest.err conftest.$ac_objext \
8969
conftest$ac_exeext conftest.$ac_ext
8971
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8972
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8973
if test `eval echo '${'$as_ac_var'}'` = yes; then
8974
cat >>confdefs.h <<_ACEOF
8975
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2898
8984
# These two headers (functions) needed by Time.m
2899
8985
#--------------------------------------------------------------------
2901
for ac_hdr in time.h sys/time.h sys/rusage.h ucbinclude/sys/resource.h
8992
for ac_header in time.h sys/time.h tzfile.h sys/rusage.h ucbinclude/sys/resource.h
2903
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2904
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2905
echo "configure:2906: checking for $ac_hdr" >&5
2906
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2907
echo $ac_n "(cached) $ac_c" 1>&6
2909
cat > conftest.$ac_ext <<EOF
2910
#line 2911 "configure"
2911
#include "confdefs.h"
2914
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2915
{ (eval echo configure:2916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2916
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2917
if test -z "$ac_err"; then
2919
eval "ac_cv_header_$ac_safe=yes"
2922
echo "configure: failed program was:" >&5
2923
cat conftest.$ac_ext >&5
2925
eval "ac_cv_header_$ac_safe=no"
2929
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2930
echo "$ac_t""yes" 1>&6
2931
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2932
cat >> confdefs.h <<EOF
2933
#define $ac_tr_hdr 1
2937
echo "$ac_t""no" 1>&6
8994
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8996
echo "$as_me:$LINENO: checking for $ac_header" >&5
8997
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999
echo $ECHO_N "(cached) $ECHO_C" >&6
9001
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9002
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9004
# Is the header compilable?
9005
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9006
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9007
cat >conftest.$ac_ext <<_ACEOF
9010
cat confdefs.h >>conftest.$ac_ext
9011
cat >>conftest.$ac_ext <<_ACEOF
9012
/* end confdefs.h. */
9013
$ac_includes_default
9014
#include <$ac_header>
9016
rm -f conftest.$ac_objext
9017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018
(eval $ac_compile) 2>conftest.er1
9020
grep -v '^ *+' conftest.er1 >conftest.err
9022
cat conftest.err >&5
9023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024
(exit $ac_status); } &&
9025
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030
(exit $ac_status); }; } &&
9031
{ ac_try='test -s conftest.$ac_objext'
9032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036
(exit $ac_status); }; }; then
9037
ac_header_compiler=yes
9039
echo "$as_me: failed program was:" >&5
9040
sed 's/^/| /' conftest.$ac_ext >&5
9042
ac_header_compiler=no
9044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046
echo "${ECHO_T}$ac_header_compiler" >&6
9048
# Is the header present?
9049
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9050
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9051
cat >conftest.$ac_ext <<_ACEOF
9054
cat confdefs.h >>conftest.$ac_ext
9055
cat >>conftest.$ac_ext <<_ACEOF
9056
/* end confdefs.h. */
9057
#include <$ac_header>
9059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9060
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9062
grep -v '^ *+' conftest.er1 >conftest.err
9064
cat conftest.err >&5
9065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066
(exit $ac_status); } >/dev/null; then
9067
if test -s conftest.err; then
9068
ac_cpp_err=$ac_c_preproc_warn_flag
9069
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9076
if test -z "$ac_cpp_err"; then
9077
ac_header_preproc=yes
9079
echo "$as_me: failed program was:" >&5
9080
sed 's/^/| /' conftest.$ac_ext >&5
9082
ac_header_preproc=no
9084
rm -f conftest.err conftest.$ac_ext
9085
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086
echo "${ECHO_T}$ac_header_preproc" >&6
9088
# So? What about this header?
9089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9091
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095
ac_header_preproc=yes
9098
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9101
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9102
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9105
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9106
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9112
## ------------------------------------------ ##
9113
## Report this to the AC_PACKAGE_NAME lists. ##
9114
## ------------------------------------------ ##
9117
sed "s/^/$as_me: WARNING: /" >&2
9120
echo "$as_me:$LINENO: checking for $ac_header" >&5
9121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123
echo $ECHO_N "(cached) $ECHO_C" >&6
9125
eval "$as_ac_Header=\$ac_header_preproc"
9127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9131
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9132
cat >>confdefs.h <<_ACEOF
9133
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2941
for ac_func in time ctime
9143
for ac_func in time ctime tzset
2943
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2944
echo "configure:2945: checking for $ac_func" >&5
2945
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2946
echo $ac_n "(cached) $ac_c" 1>&6
9145
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9146
echo "$as_me:$LINENO: checking for $ac_func" >&5
9147
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9148
if eval "test \"\${$as_ac_var+set}\" = set"; then
9149
echo $ECHO_N "(cached) $ECHO_C" >&6
2948
cat > conftest.$ac_ext <<EOF
2949
#line 2950 "configure"
2950
#include "confdefs.h"
9151
cat >conftest.$ac_ext <<_ACEOF
9154
cat confdefs.h >>conftest.$ac_ext
9155
cat >>conftest.$ac_ext <<_ACEOF
9156
/* end confdefs.h. */
9157
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9158
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9159
#define $ac_func innocuous_$ac_func
2951
9161
/* System header to define __stub macros and hopefully few prototypes,
2952
which can conflict with char $ac_func(); below. */
9162
which can conflict with char $ac_func (); below.
9163
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9164
<limits.h> exists even on freestanding compilers. */
9167
# include <limits.h>
9169
# include <assert.h>
2954
9174
/* Override any gcc2 internal prototype to avoid an error. */
2955
9179
/* We use char because int might match the return type of a gcc2
2956
builtin and then its argument prototype would still apply. */
9180
builtin and then its argument prototype would still apply. */
2961
9182
/* The GNU C library defines this for functions which it implements
2962
9183
to always fail with ENOSYS. Some functions are actually named
2963
9184
something starting with __ and the normal name is an alias. */
2964
9185
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9188
char (*f) () = $ac_func;
2972
if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2974
eval "ac_cv_func_$ac_func=yes"
9197
return f != $ac_func;
9202
rm -f conftest.$ac_objext conftest$ac_exeext
9203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204
(eval $ac_link) 2>conftest.er1
9206
grep -v '^ *+' conftest.er1 >conftest.err
9208
cat conftest.err >&5
9209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210
(exit $ac_status); } &&
9211
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216
(exit $ac_status); }; } &&
9217
{ ac_try='test -s conftest$ac_exeext'
9218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222
(exit $ac_status); }; }; then
9223
eval "$as_ac_var=yes"
2976
echo "configure: failed program was:" >&5
2977
cat conftest.$ac_ext >&5
2979
eval "ac_cv_func_$ac_func=no"
9225
echo "$as_me: failed program was:" >&5
9226
sed 's/^/| /' conftest.$ac_ext >&5
9228
eval "$as_ac_var=no"
9230
rm -f conftest.err conftest.$ac_objext \
9231
conftest$ac_exeext conftest.$ac_ext
9233
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9234
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9235
if test `eval echo '${'$as_ac_var'}'` = yes; then
9236
cat >>confdefs.h <<_ACEOF
9237
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9244
# Check if tzfile contains the proper definitions
9245
if test $ac_cv_header_tzfile_h = yes; then
9246
cat >conftest.$ac_ext <<_ACEOF
9249
cat confdefs.h >>conftest.$ac_ext
9250
cat >>conftest.$ac_ext <<_ACEOF
9251
/* end confdefs.h. */
9255
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9256
$EGREP "tzhead" >/dev/null 2>&1; then
9258
cat >>confdefs.h <<\_ACEOF
9259
#define HAVE_TZHEAD 1
2981
9263
rm -f conftest*
2984
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2985
echo "$ac_t""yes" 1>&6
2986
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2987
cat >> confdefs.h <<EOF
2988
#define $ac_tr_func 1
2992
echo "$ac_t""no" 1>&6
2997
9267
#--------------------------------------------------------------------
2998
9268
# These headers/functions needed by GSTcpPort.m
2999
9269
#--------------------------------------------------------------------
3000
for ac_hdr in sys/socket.h netinet/in.h
9272
for ac_header in sys/socket.h netinet/in.h
3002
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3003
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3004
echo "configure:3005: checking for $ac_hdr" >&5
3005
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3006
echo $ac_n "(cached) $ac_c" 1>&6
3008
cat > conftest.$ac_ext <<EOF
3009
#line 3010 "configure"
3010
#include "confdefs.h"
3013
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3014
{ (eval echo configure:3015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3015
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3016
if test -z "$ac_err"; then
3018
eval "ac_cv_header_$ac_safe=yes"
3021
echo "configure: failed program was:" >&5
3022
cat conftest.$ac_ext >&5
3024
eval "ac_cv_header_$ac_safe=no"
3028
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3029
echo "$ac_t""yes" 1>&6
3030
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3031
cat >> confdefs.h <<EOF
3032
#define $ac_tr_hdr 1
3036
echo "$ac_t""no" 1>&6
9274
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9275
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9276
echo "$as_me:$LINENO: checking for $ac_header" >&5
9277
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9278
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9279
echo $ECHO_N "(cached) $ECHO_C" >&6
9281
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9282
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9284
# Is the header compilable?
9285
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9286
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9287
cat >conftest.$ac_ext <<_ACEOF
9290
cat confdefs.h >>conftest.$ac_ext
9291
cat >>conftest.$ac_ext <<_ACEOF
9292
/* end confdefs.h. */
9293
$ac_includes_default
9294
#include <$ac_header>
9296
rm -f conftest.$ac_objext
9297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298
(eval $ac_compile) 2>conftest.er1
9300
grep -v '^ *+' conftest.er1 >conftest.err
9302
cat conftest.err >&5
9303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304
(exit $ac_status); } &&
9305
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310
(exit $ac_status); }; } &&
9311
{ ac_try='test -s conftest.$ac_objext'
9312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316
(exit $ac_status); }; }; then
9317
ac_header_compiler=yes
9319
echo "$as_me: failed program was:" >&5
9320
sed 's/^/| /' conftest.$ac_ext >&5
9322
ac_header_compiler=no
9324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9325
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9326
echo "${ECHO_T}$ac_header_compiler" >&6
9328
# Is the header present?
9329
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9330
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9331
cat >conftest.$ac_ext <<_ACEOF
9334
cat confdefs.h >>conftest.$ac_ext
9335
cat >>conftest.$ac_ext <<_ACEOF
9336
/* end confdefs.h. */
9337
#include <$ac_header>
9339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9340
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9342
grep -v '^ *+' conftest.er1 >conftest.err
9344
cat conftest.err >&5
9345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346
(exit $ac_status); } >/dev/null; then
9347
if test -s conftest.err; then
9348
ac_cpp_err=$ac_c_preproc_warn_flag
9349
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9356
if test -z "$ac_cpp_err"; then
9357
ac_header_preproc=yes
9359
echo "$as_me: failed program was:" >&5
9360
sed 's/^/| /' conftest.$ac_ext >&5
9362
ac_header_preproc=no
9364
rm -f conftest.err conftest.$ac_ext
9365
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9366
echo "${ECHO_T}$ac_header_preproc" >&6
9368
# So? What about this header?
9369
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9371
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9372
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9373
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9374
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9375
ac_header_preproc=yes
9378
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9379
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9380
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9381
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9382
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9383
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9384
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9385
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9386
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9387
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9388
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9389
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9392
## ------------------------------------------ ##
9393
## Report this to the AC_PACKAGE_NAME lists. ##
9394
## ------------------------------------------ ##
9397
sed "s/^/$as_me: WARNING: /" >&2
9400
echo "$as_me:$LINENO: checking for $ac_header" >&5
9401
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9402
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9403
echo $ECHO_N "(cached) $ECHO_C" >&6
9405
eval "$as_ac_Header=\$ac_header_preproc"
9407
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9408
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9411
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9412
cat >>confdefs.h <<_ACEOF
9413
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3041
9421
#--------------------------------------------------------------------
3042
9422
# These headers/functions needed by NSLog.m
3043
9423
#--------------------------------------------------------------------
3044
for ac_hdr in syslog.h
9425
for ac_header in syslog.h
3046
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3047
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3048
echo "configure:3049: checking for $ac_hdr" >&5
3049
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3050
echo $ac_n "(cached) $ac_c" 1>&6
3052
cat > conftest.$ac_ext <<EOF
3053
#line 3054 "configure"
3054
#include "confdefs.h"
3057
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3058
{ (eval echo configure:3059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3059
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3060
if test -z "$ac_err"; then
3062
eval "ac_cv_header_$ac_safe=yes"
3065
echo "configure: failed program was:" >&5
3066
cat conftest.$ac_ext >&5
3068
eval "ac_cv_header_$ac_safe=no"
3072
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3073
echo "$ac_t""yes" 1>&6
3074
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3075
cat >> confdefs.h <<EOF
3076
#define $ac_tr_hdr 1
3080
echo "$ac_t""no" 1>&6
9427
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9428
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9429
echo "$as_me:$LINENO: checking for $ac_header" >&5
9430
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9431
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9432
echo $ECHO_N "(cached) $ECHO_C" >&6
9434
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9435
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9437
# Is the header compilable?
9438
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9439
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9440
cat >conftest.$ac_ext <<_ACEOF
9443
cat confdefs.h >>conftest.$ac_ext
9444
cat >>conftest.$ac_ext <<_ACEOF
9445
/* end confdefs.h. */
9446
$ac_includes_default
9447
#include <$ac_header>
9449
rm -f conftest.$ac_objext
9450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9451
(eval $ac_compile) 2>conftest.er1
9453
grep -v '^ *+' conftest.er1 >conftest.err
9455
cat conftest.err >&5
9456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457
(exit $ac_status); } &&
9458
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463
(exit $ac_status); }; } &&
9464
{ ac_try='test -s conftest.$ac_objext'
9465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469
(exit $ac_status); }; }; then
9470
ac_header_compiler=yes
9472
echo "$as_me: failed program was:" >&5
9473
sed 's/^/| /' conftest.$ac_ext >&5
9475
ac_header_compiler=no
9477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9478
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9479
echo "${ECHO_T}$ac_header_compiler" >&6
9481
# Is the header present?
9482
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9483
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9484
cat >conftest.$ac_ext <<_ACEOF
9487
cat confdefs.h >>conftest.$ac_ext
9488
cat >>conftest.$ac_ext <<_ACEOF
9489
/* end confdefs.h. */
9490
#include <$ac_header>
9492
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9493
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9495
grep -v '^ *+' conftest.er1 >conftest.err
9497
cat conftest.err >&5
9498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499
(exit $ac_status); } >/dev/null; then
9500
if test -s conftest.err; then
9501
ac_cpp_err=$ac_c_preproc_warn_flag
9502
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9509
if test -z "$ac_cpp_err"; then
9510
ac_header_preproc=yes
9512
echo "$as_me: failed program was:" >&5
9513
sed 's/^/| /' conftest.$ac_ext >&5
9515
ac_header_preproc=no
9517
rm -f conftest.err conftest.$ac_ext
9518
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9519
echo "${ECHO_T}$ac_header_preproc" >&6
9521
# So? What about this header?
9522
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9524
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9525
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9526
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9527
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9528
ac_header_preproc=yes
9531
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9532
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9533
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9534
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9535
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9536
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9537
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9538
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9539
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9540
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9541
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9542
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9545
## ------------------------------------------ ##
9546
## Report this to the AC_PACKAGE_NAME lists. ##
9547
## ------------------------------------------ ##
9550
sed "s/^/$as_me: WARNING: /" >&2
9553
echo "$as_me:$LINENO: checking for $ac_header" >&5
9554
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9555
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9556
echo $ECHO_N "(cached) $ECHO_C" >&6
9558
eval "$as_ac_Header=\$ac_header_preproc"
9560
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9561
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9564
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9565
cat >>confdefs.h <<_ACEOF
9566
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3084
9574
for ac_func in syslog
3086
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3087
echo "configure:3088: checking for $ac_func" >&5
3088
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3089
echo $ac_n "(cached) $ac_c" 1>&6
9576
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9577
echo "$as_me:$LINENO: checking for $ac_func" >&5
9578
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9579
if eval "test \"\${$as_ac_var+set}\" = set"; then
9580
echo $ECHO_N "(cached) $ECHO_C" >&6
3091
cat > conftest.$ac_ext <<EOF
3092
#line 3093 "configure"
3093
#include "confdefs.h"
9582
cat >conftest.$ac_ext <<_ACEOF
9585
cat confdefs.h >>conftest.$ac_ext
9586
cat >>conftest.$ac_ext <<_ACEOF
9587
/* end confdefs.h. */
9588
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9589
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9590
#define $ac_func innocuous_$ac_func
3094
9592
/* System header to define __stub macros and hopefully few prototypes,
3095
which can conflict with char $ac_func(); below. */
9593
which can conflict with char $ac_func (); below.
9594
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9595
<limits.h> exists even on freestanding compilers. */
9598
# include <limits.h>
9600
# include <assert.h>
3097
9605
/* Override any gcc2 internal prototype to avoid an error. */
3098
9610
/* We use char because int might match the return type of a gcc2
3099
builtin and then its argument prototype would still apply. */
9611
builtin and then its argument prototype would still apply. */
3104
9613
/* The GNU C library defines this for functions which it implements
3105
9614
to always fail with ENOSYS. Some functions are actually named
3106
9615
something starting with __ and the normal name is an alias. */
3107
9616
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3115
if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3117
eval "ac_cv_func_$ac_func=yes"
3119
echo "configure: failed program was:" >&5
3120
cat conftest.$ac_ext >&5
3122
eval "ac_cv_func_$ac_func=no"
3127
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3128
echo "$ac_t""yes" 1>&6
3129
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3130
cat >> confdefs.h <<EOF
3131
#define $ac_tr_func 1
3135
echo "$ac_t""no" 1>&6
9619
char (*f) () = $ac_func;
9628
return f != $ac_func;
9633
rm -f conftest.$ac_objext conftest$ac_exeext
9634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635
(eval $ac_link) 2>conftest.er1
9637
grep -v '^ *+' conftest.er1 >conftest.err
9639
cat conftest.err >&5
9640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641
(exit $ac_status); } &&
9642
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647
(exit $ac_status); }; } &&
9648
{ ac_try='test -s conftest$ac_exeext'
9649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653
(exit $ac_status); }; }; then
9654
eval "$as_ac_var=yes"
9656
echo "$as_me: failed program was:" >&5
9657
sed 's/^/| /' conftest.$ac_ext >&5
9659
eval "$as_ac_var=no"
9661
rm -f conftest.err conftest.$ac_objext \
9662
conftest$ac_exeext conftest.$ac_ext
9664
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9665
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9666
if test `eval echo '${'$as_ac_var'}'` = yes; then
9667
cat >>confdefs.h <<_ACEOF
9668
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3348
10194
if test "$cross_compiling" = yes; then
3349
10195
VSPRINTF_RETURNS_LENGTH=1
3351
cat > conftest.$ac_ext <<EOF
3352
#line 3353 "configure"
3353
#include "confdefs.h"
10197
cat >conftest.$ac_ext <<_ACEOF
10200
cat confdefs.h >>conftest.$ac_ext
10201
cat >>conftest.$ac_ext <<_ACEOF
10202
/* end confdefs.h. */
3354
10203
#include "$srcdir/config/config.vsprintf.c"
3356
if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10205
rm -f conftest$ac_exeext
10206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207
(eval $ac_link) 2>&5
10209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212
(eval $ac_try) 2>&5
10214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215
(exit $ac_status); }; }; then
3358
10216
VSPRINTF_RETURNS_LENGTH=1
3360
echo "configure: failed program was:" >&5
3361
cat conftest.$ac_ext >&5
3363
VSPRINTF_RETURNS_LENGTH=0
3368
cat >> confdefs.h <<EOF
10218
echo "$as_me: program exited with status $ac_status" >&5
10219
echo "$as_me: failed program was:" >&5
10220
sed 's/^/| /' conftest.$ac_ext >&5
10222
( exit $ac_status )
10223
VSPRINTF_RETURNS_LENGTH=0
10225
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10228
cat >>confdefs.h <<_ACEOF
3369
10229
#define VSPRINTF_RETURNS_LENGTH $VSPRINTF_RETURNS_LENGTH
3373
10233
if test $ac_cv_func_vasprintf = yes ; then
3374
10234
if test "$cross_compiling" = yes; then
3375
10235
VASPRINTF_RETURNS_LENGTH=1
3377
cat > conftest.$ac_ext <<EOF
3378
#line 3379 "configure"
3379
#include "confdefs.h"
10237
cat >conftest.$ac_ext <<_ACEOF
10240
cat confdefs.h >>conftest.$ac_ext
10241
cat >>conftest.$ac_ext <<_ACEOF
10242
/* end confdefs.h. */
3380
10243
#include "$srcdir/config/config.vasprintf.c"
3382
if { (eval echo configure:3383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10245
rm -f conftest$ac_exeext
10246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247
(eval $ac_link) 2>&5
10249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252
(eval $ac_try) 2>&5
10254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255
(exit $ac_status); }; }; then
3384
10256
VASPRINTF_RETURNS_LENGTH=1
3386
echo "configure: failed program was:" >&5
3387
cat conftest.$ac_ext >&5
3389
VASPRINTF_RETURNS_LENGTH=0
3394
cat >> confdefs.h <<EOF
10258
echo "$as_me: program exited with status $ac_status" >&5
10259
echo "$as_me: failed program was:" >&5
10260
sed 's/^/| /' conftest.$ac_ext >&5
10262
( exit $ac_status )
10263
VASPRINTF_RETURNS_LENGTH=0
10265
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10268
cat >>confdefs.h <<_ACEOF
3395
10269
#define VASPRINTF_RETURNS_LENGTH $VASPRINTF_RETURNS_LENGTH
3400
10274
#--------------------------------------------------------------------
3401
10275
# This function needed by NSFileManager.m
3402
10276
#--------------------------------------------------------------------
3403
10278
for ac_func in getcwd
3405
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406
echo "configure:3407: checking for $ac_func" >&5
3407
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408
echo $ac_n "(cached) $ac_c" 1>&6
10280
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10281
echo "$as_me:$LINENO: checking for $ac_func" >&5
10282
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10283
if eval "test \"\${$as_ac_var+set}\" = set"; then
10284
echo $ECHO_N "(cached) $ECHO_C" >&6
3410
cat > conftest.$ac_ext <<EOF
3411
#line 3412 "configure"
3412
#include "confdefs.h"
10286
cat >conftest.$ac_ext <<_ACEOF
10289
cat confdefs.h >>conftest.$ac_ext
10290
cat >>conftest.$ac_ext <<_ACEOF
10291
/* end confdefs.h. */
10292
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10293
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294
#define $ac_func innocuous_$ac_func
3413
10296
/* System header to define __stub macros and hopefully few prototypes,
3414
which can conflict with char $ac_func(); below. */
10297
which can conflict with char $ac_func (); below.
10298
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299
<limits.h> exists even on freestanding compilers. */
10302
# include <limits.h>
10304
# include <assert.h>
3416
10309
/* Override any gcc2 internal prototype to avoid an error. */
3417
10314
/* We use char because int might match the return type of a gcc2
3418
builtin and then its argument prototype would still apply. */
10315
builtin and then its argument prototype would still apply. */
3423
10317
/* The GNU C library defines this for functions which it implements
3424
10318
to always fail with ENOSYS. Some functions are actually named
3425
10319
something starting with __ and the normal name is an alias. */
3426
10320
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434
if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436
eval "ac_cv_func_$ac_func=yes"
3438
echo "configure: failed program was:" >&5
3439
cat conftest.$ac_ext >&5
3441
eval "ac_cv_func_$ac_func=no"
3446
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447
echo "$ac_t""yes" 1>&6
3448
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449
cat >> confdefs.h <<EOF
3450
#define $ac_tr_func 1
3454
echo "$ac_t""no" 1>&6
10323
char (*f) () = $ac_func;
10332
return f != $ac_func;
10337
rm -f conftest.$ac_objext conftest$ac_exeext
10338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339
(eval $ac_link) 2>conftest.er1
10341
grep -v '^ *+' conftest.er1 >conftest.err
10343
cat conftest.err >&5
10344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345
(exit $ac_status); } &&
10346
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348
(eval $ac_try) 2>&5
10350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351
(exit $ac_status); }; } &&
10352
{ ac_try='test -s conftest$ac_exeext'
10353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354
(eval $ac_try) 2>&5
10356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357
(exit $ac_status); }; }; then
10358
eval "$as_ac_var=yes"
10360
echo "$as_me: failed program was:" >&5
10361
sed 's/^/| /' conftest.$ac_ext >&5
10363
eval "$as_ac_var=no"
10365
rm -f conftest.err conftest.$ac_objext \
10366
conftest$ac_exeext conftest.$ac_ext
10368
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10369
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10370
if test `eval echo '${'$as_ac_var'}'` = yes; then
10371
cat >>confdefs.h <<_ACEOF
10372
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3458
10383
ac_header_dirent=no
3459
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3461
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3462
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3463
echo "configure:3464: checking for $ac_hdr that defines DIR" >&5
3464
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3465
echo $ac_n "(cached) $ac_c" 1>&6
10384
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10385
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10386
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10387
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10389
echo $ECHO_N "(cached) $ECHO_C" >&6
3467
cat > conftest.$ac_ext <<EOF
3468
#line 3469 "configure"
3469
#include "confdefs.h"
10391
cat >conftest.$ac_ext <<_ACEOF
10394
cat confdefs.h >>conftest.$ac_ext
10395
cat >>conftest.$ac_ext <<_ACEOF
10396
/* end confdefs.h. */
3470
10397
#include <sys/types.h>
3471
10398
#include <$ac_hdr>
3476
if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3478
eval "ac_cv_header_dirent_$ac_safe=yes"
3480
echo "configure: failed program was:" >&5
3481
cat conftest.$ac_ext >&5
3483
eval "ac_cv_header_dirent_$ac_safe=no"
3487
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3488
echo "$ac_t""yes" 1>&6
3489
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3490
cat >> confdefs.h <<EOF
3491
#define $ac_tr_hdr 1
3493
ac_header_dirent=$ac_hdr; break
3495
echo "$ac_t""no" 1>&6
10409
rm -f conftest.$ac_objext
10410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411
(eval $ac_compile) 2>conftest.er1
10413
grep -v '^ *+' conftest.er1 >conftest.err
10415
cat conftest.err >&5
10416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417
(exit $ac_status); } &&
10418
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420
(eval $ac_try) 2>&5
10422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423
(exit $ac_status); }; } &&
10424
{ ac_try='test -s conftest.$ac_objext'
10425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426
(eval $ac_try) 2>&5
10428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429
(exit $ac_status); }; }; then
10430
eval "$as_ac_Header=yes"
10432
echo "$as_me: failed program was:" >&5
10433
sed 's/^/| /' conftest.$ac_ext >&5
10435
eval "$as_ac_Header=no"
10437
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10439
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10440
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10441
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10442
cat >>confdefs.h <<_ACEOF
10443
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10446
ac_header_dirent=$ac_hdr; break
3498
10450
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3499
10451
if test $ac_header_dirent = dirent.h; then
3500
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3501
echo "configure:3502: checking for opendir in -ldir" >&5
3502
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3503
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3504
echo $ac_n "(cached) $ac_c" 1>&6
3506
ac_save_LIBS="$LIBS"
3508
cat > conftest.$ac_ext <<EOF
3509
#line 3510 "configure"
3510
#include "confdefs.h"
3511
/* Override any gcc2 internal prototype to avoid an error. */
3512
/* We use char because int might match the return type of a gcc2
3513
builtin and then its argument prototype would still apply. */
3520
if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522
eval "ac_cv_lib_$ac_lib_var=yes"
3524
echo "configure: failed program was:" >&5
3525
cat conftest.$ac_ext >&5
3527
eval "ac_cv_lib_$ac_lib_var=no"
3530
LIBS="$ac_save_LIBS"
3533
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3534
echo "$ac_t""yes" 1>&6
3537
echo "$ac_t""no" 1>&6
3541
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3542
echo "configure:3543: checking for opendir in -lx" >&5
3543
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3544
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3545
echo $ac_n "(cached) $ac_c" 1>&6
3547
ac_save_LIBS="$LIBS"
3549
cat > conftest.$ac_ext <<EOF
3550
#line 3551 "configure"
3551
#include "confdefs.h"
3552
/* Override any gcc2 internal prototype to avoid an error. */
3553
/* We use char because int might match the return type of a gcc2
3554
builtin and then its argument prototype would still apply. */
3561
if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3563
eval "ac_cv_lib_$ac_lib_var=yes"
3565
echo "configure: failed program was:" >&5
3566
cat conftest.$ac_ext >&5
3568
eval "ac_cv_lib_$ac_lib_var=no"
3571
LIBS="$ac_save_LIBS"
3574
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3575
echo "$ac_t""yes" 1>&6
3578
echo "$ac_t""no" 1>&6
10452
echo "$as_me:$LINENO: checking for library containing opendir" >&5
10453
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10454
if test "${ac_cv_search_opendir+set}" = set; then
10455
echo $ECHO_N "(cached) $ECHO_C" >&6
10457
ac_func_search_save_LIBS=$LIBS
10458
ac_cv_search_opendir=no
10459
cat >conftest.$ac_ext <<_ACEOF
10462
cat confdefs.h >>conftest.$ac_ext
10463
cat >>conftest.$ac_ext <<_ACEOF
10464
/* end confdefs.h. */
10466
/* Override any gcc2 internal prototype to avoid an error. */
10470
/* We use char because int might match the return type of a gcc2
10471
builtin and then its argument prototype would still apply. */
10481
rm -f conftest.$ac_objext conftest$ac_exeext
10482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483
(eval $ac_link) 2>conftest.er1
10485
grep -v '^ *+' conftest.er1 >conftest.err
10487
cat conftest.err >&5
10488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489
(exit $ac_status); } &&
10490
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492
(eval $ac_try) 2>&5
10494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495
(exit $ac_status); }; } &&
10496
{ ac_try='test -s conftest$ac_exeext'
10497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498
(eval $ac_try) 2>&5
10500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501
(exit $ac_status); }; }; then
10502
ac_cv_search_opendir="none required"
10504
echo "$as_me: failed program was:" >&5
10505
sed 's/^/| /' conftest.$ac_ext >&5
10508
rm -f conftest.err conftest.$ac_objext \
10509
conftest$ac_exeext conftest.$ac_ext
10510
if test "$ac_cv_search_opendir" = no; then
10511
for ac_lib in dir; do
10512
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10513
cat >conftest.$ac_ext <<_ACEOF
10516
cat confdefs.h >>conftest.$ac_ext
10517
cat >>conftest.$ac_ext <<_ACEOF
10518
/* end confdefs.h. */
10520
/* Override any gcc2 internal prototype to avoid an error. */
10524
/* We use char because int might match the return type of a gcc2
10525
builtin and then its argument prototype would still apply. */
10535
rm -f conftest.$ac_objext conftest$ac_exeext
10536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537
(eval $ac_link) 2>conftest.er1
10539
grep -v '^ *+' conftest.er1 >conftest.err
10541
cat conftest.err >&5
10542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543
(exit $ac_status); } &&
10544
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546
(eval $ac_try) 2>&5
10548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549
(exit $ac_status); }; } &&
10550
{ ac_try='test -s conftest$ac_exeext'
10551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552
(eval $ac_try) 2>&5
10554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
(exit $ac_status); }; }; then
10556
ac_cv_search_opendir="-l$ac_lib"
10559
echo "$as_me: failed program was:" >&5
10560
sed 's/^/| /' conftest.$ac_ext >&5
10563
rm -f conftest.err conftest.$ac_objext \
10564
conftest$ac_exeext conftest.$ac_ext
10567
LIBS=$ac_func_search_save_LIBS
10569
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10570
echo "${ECHO_T}$ac_cv_search_opendir" >&6
10571
if test "$ac_cv_search_opendir" != no; then
10572
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10577
echo "$as_me:$LINENO: checking for library containing opendir" >&5
10578
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10579
if test "${ac_cv_search_opendir+set}" = set; then
10580
echo $ECHO_N "(cached) $ECHO_C" >&6
10582
ac_func_search_save_LIBS=$LIBS
10583
ac_cv_search_opendir=no
10584
cat >conftest.$ac_ext <<_ACEOF
10587
cat confdefs.h >>conftest.$ac_ext
10588
cat >>conftest.$ac_ext <<_ACEOF
10589
/* end confdefs.h. */
10591
/* Override any gcc2 internal prototype to avoid an error. */
10595
/* We use char because int might match the return type of a gcc2
10596
builtin and then its argument prototype would still apply. */
10606
rm -f conftest.$ac_objext conftest$ac_exeext
10607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608
(eval $ac_link) 2>conftest.er1
10610
grep -v '^ *+' conftest.er1 >conftest.err
10612
cat conftest.err >&5
10613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614
(exit $ac_status); } &&
10615
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617
(eval $ac_try) 2>&5
10619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620
(exit $ac_status); }; } &&
10621
{ ac_try='test -s conftest$ac_exeext'
10622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623
(eval $ac_try) 2>&5
10625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626
(exit $ac_status); }; }; then
10627
ac_cv_search_opendir="none required"
10629
echo "$as_me: failed program was:" >&5
10630
sed 's/^/| /' conftest.$ac_ext >&5
10633
rm -f conftest.err conftest.$ac_objext \
10634
conftest$ac_exeext conftest.$ac_ext
10635
if test "$ac_cv_search_opendir" = no; then
10636
for ac_lib in x; do
10637
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10638
cat >conftest.$ac_ext <<_ACEOF
10641
cat confdefs.h >>conftest.$ac_ext
10642
cat >>conftest.$ac_ext <<_ACEOF
10643
/* end confdefs.h. */
10645
/* Override any gcc2 internal prototype to avoid an error. */
10649
/* We use char because int might match the return type of a gcc2
10650
builtin and then its argument prototype would still apply. */
10660
rm -f conftest.$ac_objext conftest$ac_exeext
10661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662
(eval $ac_link) 2>conftest.er1
10664
grep -v '^ *+' conftest.er1 >conftest.err
10666
cat conftest.err >&5
10667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668
(exit $ac_status); } &&
10669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671
(eval $ac_try) 2>&5
10673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674
(exit $ac_status); }; } &&
10675
{ ac_try='test -s conftest$ac_exeext'
10676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677
(eval $ac_try) 2>&5
10679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680
(exit $ac_status); }; }; then
10681
ac_cv_search_opendir="-l$ac_lib"
10684
echo "$as_me: failed program was:" >&5
10685
sed 's/^/| /' conftest.$ac_ext >&5
10688
rm -f conftest.err conftest.$ac_objext \
10689
conftest$ac_exeext conftest.$ac_ext
10692
LIBS=$ac_func_search_save_LIBS
10694
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10695
echo "${ECHO_T}$ac_cv_search_opendir" >&6
10696
if test "$ac_cv_search_opendir" != no; then
10697
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3746
11067
#--------------------------------------------------------------------
3747
11068
# These functions needed by NSData.m
3748
11069
#--------------------------------------------------------------------
3749
11071
for ac_func in mkstemp
3751
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3752
echo "configure:3753: checking for $ac_func" >&5
3753
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3754
echo $ac_n "(cached) $ac_c" 1>&6
11073
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11074
echo "$as_me:$LINENO: checking for $ac_func" >&5
11075
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11076
if eval "test \"\${$as_ac_var+set}\" = set"; then
11077
echo $ECHO_N "(cached) $ECHO_C" >&6
3756
cat > conftest.$ac_ext <<EOF
3757
#line 3758 "configure"
3758
#include "confdefs.h"
11079
cat >conftest.$ac_ext <<_ACEOF
11082
cat confdefs.h >>conftest.$ac_ext
11083
cat >>conftest.$ac_ext <<_ACEOF
11084
/* end confdefs.h. */
11085
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11086
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087
#define $ac_func innocuous_$ac_func
3759
11089
/* System header to define __stub macros and hopefully few prototypes,
3760
which can conflict with char $ac_func(); below. */
11090
which can conflict with char $ac_func (); below.
11091
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092
<limits.h> exists even on freestanding compilers. */
11095
# include <limits.h>
11097
# include <assert.h>
3762
11102
/* Override any gcc2 internal prototype to avoid an error. */
3763
11107
/* We use char because int might match the return type of a gcc2
3764
builtin and then its argument prototype would still apply. */
11108
builtin and then its argument prototype would still apply. */
3769
11110
/* The GNU C library defines this for functions which it implements
3770
11111
to always fail with ENOSYS. Some functions are actually named
3771
11112
something starting with __ and the normal name is an alias. */
3772
11113
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3780
if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782
eval "ac_cv_func_$ac_func=yes"
3784
echo "configure: failed program was:" >&5
3785
cat conftest.$ac_ext >&5
3787
eval "ac_cv_func_$ac_func=no"
3792
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3793
echo "$ac_t""yes" 1>&6
3794
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3795
cat >> confdefs.h <<EOF
3796
#define $ac_tr_func 1
3800
echo "$ac_t""no" 1>&6
11116
char (*f) () = $ac_func;
11125
return f != $ac_func;
11130
rm -f conftest.$ac_objext conftest$ac_exeext
11131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132
(eval $ac_link) 2>conftest.er1
11134
grep -v '^ *+' conftest.er1 >conftest.err
11136
cat conftest.err >&5
11137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138
(exit $ac_status); } &&
11139
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141
(eval $ac_try) 2>&5
11143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144
(exit $ac_status); }; } &&
11145
{ ac_try='test -s conftest$ac_exeext'
11146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147
(eval $ac_try) 2>&5
11149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150
(exit $ac_status); }; }; then
11151
eval "$as_ac_var=yes"
11153
echo "$as_me: failed program was:" >&5
11154
sed 's/^/| /' conftest.$ac_ext >&5
11156
eval "$as_ac_var=no"
11158
rm -f conftest.err conftest.$ac_objext \
11159
conftest$ac_exeext conftest.$ac_ext
11161
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11162
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11163
if test `eval echo '${'$as_ac_var'}'` = yes; then
11164
cat >>confdefs.h <<_ACEOF
11165
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3804
11172
for ac_func in shmctl
3806
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3807
echo "configure:3808: checking for $ac_func" >&5
3808
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3809
echo $ac_n "(cached) $ac_c" 1>&6
11174
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175
echo "$as_me:$LINENO: checking for $ac_func" >&5
11176
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11177
if eval "test \"\${$as_ac_var+set}\" = set"; then
11178
echo $ECHO_N "(cached) $ECHO_C" >&6
3811
cat > conftest.$ac_ext <<EOF
3812
#line 3813 "configure"
3813
#include "confdefs.h"
11180
cat >conftest.$ac_ext <<_ACEOF
11183
cat confdefs.h >>conftest.$ac_ext
11184
cat >>conftest.$ac_ext <<_ACEOF
11185
/* end confdefs.h. */
11186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11188
#define $ac_func innocuous_$ac_func
3814
11190
/* System header to define __stub macros and hopefully few prototypes,
3815
which can conflict with char $ac_func(); below. */
11191
which can conflict with char $ac_func (); below.
11192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193
<limits.h> exists even on freestanding compilers. */
11196
# include <limits.h>
11198
# include <assert.h>
3817
11203
/* Override any gcc2 internal prototype to avoid an error. */
3818
11208
/* We use char because int might match the return type of a gcc2
3819
builtin and then its argument prototype would still apply. */
11209
builtin and then its argument prototype would still apply. */
3824
11211
/* The GNU C library defines this for functions which it implements
3825
11212
to always fail with ENOSYS. Some functions are actually named
3826
11213
something starting with __ and the normal name is an alias. */
3827
11214
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3835
if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837
eval "ac_cv_func_$ac_func=yes"
3839
echo "configure: failed program was:" >&5
3840
cat conftest.$ac_ext >&5
3842
eval "ac_cv_func_$ac_func=no"
3847
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3848
echo "$ac_t""yes" 1>&6
3849
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3850
cat >> confdefs.h <<EOF
3851
#define $ac_tr_func 1
3855
echo "$ac_t""no" 1>&6
11217
char (*f) () = $ac_func;
11226
return f != $ac_func;
11231
rm -f conftest.$ac_objext conftest$ac_exeext
11232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233
(eval $ac_link) 2>conftest.er1
11235
grep -v '^ *+' conftest.er1 >conftest.err
11237
cat conftest.err >&5
11238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239
(exit $ac_status); } &&
11240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242
(eval $ac_try) 2>&5
11244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245
(exit $ac_status); }; } &&
11246
{ ac_try='test -s conftest$ac_exeext'
11247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248
(eval $ac_try) 2>&5
11250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251
(exit $ac_status); }; }; then
11252
eval "$as_ac_var=yes"
11254
echo "$as_me: failed program was:" >&5
11255
sed 's/^/| /' conftest.$ac_ext >&5
11257
eval "$as_ac_var=no"
11259
rm -f conftest.err conftest.$ac_objext \
11260
conftest$ac_exeext conftest.$ac_ext
11262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11263
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11264
if test `eval echo '${'$as_ac_var'}'` = yes; then
11265
cat >>confdefs.h <<_ACEOF
11266
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3859
11273
for ac_func in mmap
3861
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3862
echo "configure:3863: checking for $ac_func" >&5
3863
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3864
echo $ac_n "(cached) $ac_c" 1>&6
3866
cat > conftest.$ac_ext <<EOF
3867
#line 3868 "configure"
3868
#include "confdefs.h"
3869
/* System header to define __stub macros and hopefully few prototypes,
3870
which can conflict with char $ac_func(); below. */
3872
/* Override any gcc2 internal prototype to avoid an error. */
3873
/* We use char because int might match the return type of a gcc2
3874
builtin and then its argument prototype would still apply. */
3879
/* The GNU C library defines this for functions which it implements
3880
to always fail with ENOSYS. Some functions are actually named
3881
something starting with __ and the normal name is an alias. */
3882
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3890
if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3892
eval "ac_cv_func_$ac_func=yes"
3894
echo "configure: failed program was:" >&5
3895
cat conftest.$ac_ext >&5
3897
eval "ac_cv_func_$ac_func=no"
3902
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3903
echo "$ac_t""yes" 1>&6
3904
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3905
cat >> confdefs.h <<EOF
3906
#define $ac_tr_func 1
3910
echo "$ac_t""no" 1>&6
3915
#--------------------------------------------------------------------
3916
# These used by UnixFileHandle.m
3917
#--------------------------------------------------------------------
3918
for ac_func in inet_aton
3920
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3921
echo "configure:3922: checking for $ac_func" >&5
3922
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3923
echo $ac_n "(cached) $ac_c" 1>&6
3925
cat > conftest.$ac_ext <<EOF
3926
#line 3927 "configure"
3927
#include "confdefs.h"
3928
/* System header to define __stub macros and hopefully few prototypes,
3929
which can conflict with char $ac_func(); below. */
3931
/* Override any gcc2 internal prototype to avoid an error. */
3932
/* We use char because int might match the return type of a gcc2
3933
builtin and then its argument prototype would still apply. */
3938
/* The GNU C library defines this for functions which it implements
3939
to always fail with ENOSYS. Some functions are actually named
3940
something starting with __ and the normal name is an alias. */
3941
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949
if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951
eval "ac_cv_func_$ac_func=yes"
3953
echo "configure: failed program was:" >&5
3954
cat conftest.$ac_ext >&5
3956
eval "ac_cv_func_$ac_func=no"
3961
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3962
echo "$ac_t""yes" 1>&6
3963
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3964
cat >> confdefs.h <<EOF
3965
#define $ac_tr_func 1
3969
echo "$ac_t""no" 1>&6
3974
for ac_hdr in zlib.h
3976
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3977
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3978
echo "configure:3979: checking for $ac_hdr" >&5
3979
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3980
echo $ac_n "(cached) $ac_c" 1>&6
3982
cat > conftest.$ac_ext <<EOF
3983
#line 3984 "configure"
3984
#include "confdefs.h"
3987
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3988
{ (eval echo configure:3989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3989
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3990
if test -z "$ac_err"; then
3992
eval "ac_cv_header_$ac_safe=yes"
3995
echo "configure: failed program was:" >&5
3996
cat conftest.$ac_ext >&5
3998
eval "ac_cv_header_$ac_safe=no"
4002
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4003
echo "$ac_t""yes" 1>&6
4004
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4005
cat >> confdefs.h <<EOF
4006
#define $ac_tr_hdr 1
4010
echo "$ac_t""no" 1>&6
4014
if test $ac_cv_header_zlib_h = yes; then
4015
echo $ac_n "checking for gzseek in -lz""... $ac_c" 1>&6
4016
echo "configure:4017: checking for gzseek in -lz" >&5
4017
ac_lib_var=`echo z'_'gzseek | sed 'y%./+-%__p_%'`
4018
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019
echo $ac_n "(cached) $ac_c" 1>&6
4021
ac_save_LIBS="$LIBS"
4023
cat > conftest.$ac_ext <<EOF
4024
#line 4025 "configure"
4025
#include "confdefs.h"
4026
/* Override any gcc2 internal prototype to avoid an error. */
4027
/* We use char because int might match the return type of a gcc2
4028
builtin and then its argument prototype would still apply. */
4035
if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037
eval "ac_cv_lib_$ac_lib_var=yes"
4039
echo "configure: failed program was:" >&5
4040
cat conftest.$ac_ext >&5
4042
eval "ac_cv_lib_$ac_lib_var=no"
4045
LIBS="$ac_save_LIBS"
4048
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049
echo "$ac_t""yes" 1>&6
4052
echo "$ac_t""no" 1>&6
4056
if test "$zlib_ok" = yes; then
11275
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11276
echo "$as_me:$LINENO: checking for $ac_func" >&5
11277
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11278
if eval "test \"\${$as_ac_var+set}\" = set"; then
11279
echo $ECHO_N "(cached) $ECHO_C" >&6
11281
cat >conftest.$ac_ext <<_ACEOF
11284
cat confdefs.h >>conftest.$ac_ext
11285
cat >>conftest.$ac_ext <<_ACEOF
11286
/* end confdefs.h. */
11287
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11288
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11289
#define $ac_func innocuous_$ac_func
11291
/* System header to define __stub macros and hopefully few prototypes,
11292
which can conflict with char $ac_func (); below.
11293
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11294
<limits.h> exists even on freestanding compilers. */
11297
# include <limits.h>
11299
# include <assert.h>
11304
/* Override any gcc2 internal prototype to avoid an error. */
11309
/* We use char because int might match the return type of a gcc2
11310
builtin and then its argument prototype would still apply. */
11312
/* The GNU C library defines this for functions which it implements
11313
to always fail with ENOSYS. Some functions are actually named
11314
something starting with __ and the normal name is an alias. */
11315
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11318
char (*f) () = $ac_func;
11327
return f != $ac_func;
11332
rm -f conftest.$ac_objext conftest$ac_exeext
11333
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11334
(eval $ac_link) 2>conftest.er1
11336
grep -v '^ *+' conftest.er1 >conftest.err
11338
cat conftest.err >&5
11339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340
(exit $ac_status); } &&
11341
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343
(eval $ac_try) 2>&5
11345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346
(exit $ac_status); }; } &&
11347
{ ac_try='test -s conftest$ac_exeext'
11348
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349
(eval $ac_try) 2>&5
11351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352
(exit $ac_status); }; }; then
11353
eval "$as_ac_var=yes"
11355
echo "$as_me: failed program was:" >&5
11356
sed 's/^/| /' conftest.$ac_ext >&5
11358
eval "$as_ac_var=no"
11360
rm -f conftest.err conftest.$ac_objext \
11361
conftest$ac_exeext conftest.$ac_ext
11363
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11364
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11365
if test `eval echo '${'$as_ac_var'}'` = yes; then
11366
cat >>confdefs.h <<_ACEOF
11367
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064
11374
#--------------------------------------------------------------------
4065
11375
# These functions needed by NSTask.m
4066
11376
#--------------------------------------------------------------------
4067
11380
for ac_func in killpg setpgrp setpgid
4069
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4070
echo "configure:4071: checking for $ac_func" >&5
4071
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4072
echo $ac_n "(cached) $ac_c" 1>&6
11382
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11383
echo "$as_me:$LINENO: checking for $ac_func" >&5
11384
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11385
if eval "test \"\${$as_ac_var+set}\" = set"; then
11386
echo $ECHO_N "(cached) $ECHO_C" >&6
4074
cat > conftest.$ac_ext <<EOF
4075
#line 4076 "configure"
4076
#include "confdefs.h"
11388
cat >conftest.$ac_ext <<_ACEOF
11391
cat confdefs.h >>conftest.$ac_ext
11392
cat >>conftest.$ac_ext <<_ACEOF
11393
/* end confdefs.h. */
11394
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11395
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11396
#define $ac_func innocuous_$ac_func
4077
11398
/* System header to define __stub macros and hopefully few prototypes,
4078
which can conflict with char $ac_func(); below. */
11399
which can conflict with char $ac_func (); below.
11400
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11401
<limits.h> exists even on freestanding compilers. */
11404
# include <limits.h>
11406
# include <assert.h>
4080
11411
/* Override any gcc2 internal prototype to avoid an error. */
4081
11416
/* We use char because int might match the return type of a gcc2
4082
builtin and then its argument prototype would still apply. */
11417
builtin and then its argument prototype would still apply. */
4087
11419
/* The GNU C library defines this for functions which it implements
4088
11420
to always fail with ENOSYS. Some functions are actually named
4089
11421
something starting with __ and the normal name is an alias. */
4090
11422
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4098
if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4100
eval "ac_cv_func_$ac_func=yes"
4102
echo "configure: failed program was:" >&5
4103
cat conftest.$ac_ext >&5
4105
eval "ac_cv_func_$ac_func=no"
4110
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4111
echo "$ac_t""yes" 1>&6
4112
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4113
cat >> confdefs.h <<EOF
4114
#define $ac_tr_func 1
4118
echo "$ac_t""no" 1>&6
11425
char (*f) () = $ac_func;
11434
return f != $ac_func;
11439
rm -f conftest.$ac_objext conftest$ac_exeext
11440
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441
(eval $ac_link) 2>conftest.er1
11443
grep -v '^ *+' conftest.er1 >conftest.err
11445
cat conftest.err >&5
11446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447
(exit $ac_status); } &&
11448
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450
(eval $ac_try) 2>&5
11452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453
(exit $ac_status); }; } &&
11454
{ ac_try='test -s conftest$ac_exeext'
11455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456
(eval $ac_try) 2>&5
11458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459
(exit $ac_status); }; }; then
11460
eval "$as_ac_var=yes"
11462
echo "$as_me: failed program was:" >&5
11463
sed 's/^/| /' conftest.$ac_ext >&5
11465
eval "$as_ac_var=no"
11467
rm -f conftest.err conftest.$ac_objext \
11468
conftest$ac_exeext conftest.$ac_ext
11470
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11471
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11472
if test `eval echo '${'$as_ac_var'}'` = yes; then
11473
cat >>confdefs.h <<_ACEOF
11474
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4122
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4123
echo "configure:4124: checking whether setpgrp takes no argument" >&5
4124
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4125
echo $ac_n "(cached) $ac_c" 1>&6
11480
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
11481
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
11482
if test "${ac_cv_func_setpgrp_void+set}" = set; then
11483
echo $ECHO_N "(cached) $ECHO_C" >&6
4127
11485
if test "$cross_compiling" = yes; then
4128
{ echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
11486
{ { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
11487
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
11488
{ (exit 1); exit 1; }; }
4130
cat > conftest.$ac_ext <<EOF
4131
#line 4132 "configure"
4132
#include "confdefs.h"
4134
#ifdef HAVE_UNISTD_H
11490
cat >conftest.$ac_ext <<_ACEOF
11493
cat confdefs.h >>conftest.$ac_ext
11494
cat >>conftest.$ac_ext <<_ACEOF
11495
/* end confdefs.h. */
11497
# include <unistd.h>
4139
* If this system has a BSD-style setpgrp, which takes arguments, exit
4144
if (setpgrp(1,1) == -1)
11503
/* If this system has a BSD-style setpgrp which takes arguments,
11504
setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11505
exit successfully. */
11506
exit (setpgrp (1,1) == -1 ? 0 : 1);
4151
if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11511
rm -f conftest$ac_exeext
11512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513
(eval $ac_link) 2>&5
11515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11517
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518
(eval $ac_try) 2>&5
11520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521
(exit $ac_status); }; }; then
4153
11522
ac_cv_func_setpgrp_void=no
4155
echo "configure: failed program was:" >&5
4156
cat conftest.$ac_ext >&5
4158
ac_cv_func_setpgrp_void=yes
4166
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
11524
echo "$as_me: program exited with status $ac_status" >&5
11525
echo "$as_me: failed program was:" >&5
11526
sed 's/^/| /' conftest.$ac_ext >&5
11528
( exit $ac_status )
11529
ac_cv_func_setpgrp_void=yes
11531
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11534
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
11535
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
4167
11536
if test $ac_cv_func_setpgrp_void = yes; then
4168
cat >> confdefs.h <<\EOF
11538
cat >>confdefs.h <<\_ACEOF
4169
11539
#define SETPGRP_VOID 1
4178
11548
HAVE_PTS_STREAM_MODULES=1
4181
cat >> confdefs.h <<EOF
11552
cat >>confdefs.h <<_ACEOF
4182
11553
#define HAVE_PTS_STREAM_MODULES $HAVE_PTS_STREAM_MODULES
4187
for ac_hdr in libc.h limits.h malloc.h memory.h string.h signal.h sys/signal.h sys/param.h sys/wait.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h stdint.h sys/inttypes.h
4189
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191
echo "configure:4192: checking for $ac_hdr" >&5
4192
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193
echo $ac_n "(cached) $ac_c" 1>&6
4195
cat > conftest.$ac_ext <<EOF
4196
#line 4197 "configure"
4197
#include "confdefs.h"
4200
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201
{ (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203
if test -z "$ac_err"; then
4205
eval "ac_cv_header_$ac_safe=yes"
4208
echo "configure: failed program was:" >&5
4209
cat conftest.$ac_ext >&5
4211
eval "ac_cv_header_$ac_safe=no"
4215
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216
echo "$ac_t""yes" 1>&6
4217
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218
cat >> confdefs.h <<EOF
4219
#define $ac_tr_hdr 1
4223
echo "$ac_t""no" 1>&6
4228
#--------------------------------------------------------------------
4229
# This function needed by NSThread.m
4230
#--------------------------------------------------------------------
4231
for ac_func in usleep
4233
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4234
echo "configure:4235: checking for $ac_func" >&5
4235
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4236
echo $ac_n "(cached) $ac_c" 1>&6
4238
cat > conftest.$ac_ext <<EOF
4239
#line 4240 "configure"
4240
#include "confdefs.h"
4241
/* System header to define __stub macros and hopefully few prototypes,
4242
which can conflict with char $ac_func(); below. */
4244
/* Override any gcc2 internal prototype to avoid an error. */
4245
/* We use char because int might match the return type of a gcc2
4246
builtin and then its argument prototype would still apply. */
4251
/* The GNU C library defines this for functions which it implements
4252
to always fail with ENOSYS. Some functions are actually named
4253
something starting with __ and the normal name is an alias. */
4254
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262
if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264
eval "ac_cv_func_$ac_func=yes"
4266
echo "configure: failed program was:" >&5
4267
cat conftest.$ac_ext >&5
4269
eval "ac_cv_func_$ac_func=no"
4274
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4275
echo "$ac_t""yes" 1>&6
4276
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4277
cat >> confdefs.h <<EOF
4278
#define $ac_tr_func 1
4282
echo "$ac_t""no" 1>&6
11574
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 sys/inttypes.h
11576
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11577
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11578
echo "$as_me:$LINENO: checking for $ac_header" >&5
11579
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11580
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11581
echo $ECHO_N "(cached) $ECHO_C" >&6
11583
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11584
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11586
# Is the header compilable?
11587
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11588
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11589
cat >conftest.$ac_ext <<_ACEOF
11592
cat confdefs.h >>conftest.$ac_ext
11593
cat >>conftest.$ac_ext <<_ACEOF
11594
/* end confdefs.h. */
11595
$ac_includes_default
11596
#include <$ac_header>
11598
rm -f conftest.$ac_objext
11599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600
(eval $ac_compile) 2>conftest.er1
11602
grep -v '^ *+' conftest.er1 >conftest.err
11604
cat conftest.err >&5
11605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606
(exit $ac_status); } &&
11607
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609
(eval $ac_try) 2>&5
11611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612
(exit $ac_status); }; } &&
11613
{ ac_try='test -s conftest.$ac_objext'
11614
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615
(eval $ac_try) 2>&5
11617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618
(exit $ac_status); }; }; then
11619
ac_header_compiler=yes
11621
echo "$as_me: failed program was:" >&5
11622
sed 's/^/| /' conftest.$ac_ext >&5
11624
ac_header_compiler=no
11626
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11628
echo "${ECHO_T}$ac_header_compiler" >&6
11630
# Is the header present?
11631
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11632
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11633
cat >conftest.$ac_ext <<_ACEOF
11636
cat confdefs.h >>conftest.$ac_ext
11637
cat >>conftest.$ac_ext <<_ACEOF
11638
/* end confdefs.h. */
11639
#include <$ac_header>
11641
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11642
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11644
grep -v '^ *+' conftest.er1 >conftest.err
11646
cat conftest.err >&5
11647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648
(exit $ac_status); } >/dev/null; then
11649
if test -s conftest.err; then
11650
ac_cpp_err=$ac_c_preproc_warn_flag
11651
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11658
if test -z "$ac_cpp_err"; then
11659
ac_header_preproc=yes
11661
echo "$as_me: failed program was:" >&5
11662
sed 's/^/| /' conftest.$ac_ext >&5
11664
ac_header_preproc=no
11666
rm -f conftest.err conftest.$ac_ext
11667
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11668
echo "${ECHO_T}$ac_header_preproc" >&6
11670
# So? What about this header?
11671
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11673
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11674
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11675
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11676
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11677
ac_header_preproc=yes
11680
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11681
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11682
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11683
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11684
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11685
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11686
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11687
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11688
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11689
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11690
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11691
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11694
## ------------------------------------------ ##
11695
## Report this to the AC_PACKAGE_NAME lists. ##
11696
## ------------------------------------------ ##
11699
sed "s/^/$as_me: WARNING: /" >&2
11702
echo "$as_me:$LINENO: checking for $ac_header" >&5
11703
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11704
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11705
echo $ECHO_N "(cached) $ECHO_C" >&6
11707
eval "$as_ac_Header=\$ac_header_preproc"
11709
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11710
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11713
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11714
cat >>confdefs.h <<_ACEOF
11715
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11723
if test $ac_cv_header_stdint_h = yes; then
11724
INCLUDE_STDINT="#include <stdint.h>"
11730
DEFINE_UINT8_T="#define uint8_t gsu8"
11731
DEFINE_INT32_T="#define int32_t gss32"
11732
DEFINE_INT64_T="#define int64_t gss64"
11739
#--------------------------------------------------------------------
11740
# These used by GSFileHandle.m and distributed objects
11741
#--------------------------------------------------------------------
11744
for ac_func in inet_aton sigaction
11746
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747
echo "$as_me:$LINENO: checking for $ac_func" >&5
11748
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11749
if eval "test \"\${$as_ac_var+set}\" = set"; then
11750
echo $ECHO_N "(cached) $ECHO_C" >&6
11752
cat >conftest.$ac_ext <<_ACEOF
11755
cat confdefs.h >>conftest.$ac_ext
11756
cat >>conftest.$ac_ext <<_ACEOF
11757
/* end confdefs.h. */
11758
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760
#define $ac_func innocuous_$ac_func
11762
/* System header to define __stub macros and hopefully few prototypes,
11763
which can conflict with char $ac_func (); below.
11764
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765
<limits.h> exists even on freestanding compilers. */
11768
# include <limits.h>
11770
# include <assert.h>
11775
/* Override any gcc2 internal prototype to avoid an error. */
11780
/* We use char because int might match the return type of a gcc2
11781
builtin and then its argument prototype would still apply. */
11783
/* The GNU C library defines this for functions which it implements
11784
to always fail with ENOSYS. Some functions are actually named
11785
something starting with __ and the normal name is an alias. */
11786
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11789
char (*f) () = $ac_func;
11798
return f != $ac_func;
11803
rm -f conftest.$ac_objext conftest$ac_exeext
11804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11805
(eval $ac_link) 2>conftest.er1
11807
grep -v '^ *+' conftest.er1 >conftest.err
11809
cat conftest.err >&5
11810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811
(exit $ac_status); } &&
11812
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814
(eval $ac_try) 2>&5
11816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817
(exit $ac_status); }; } &&
11818
{ ac_try='test -s conftest$ac_exeext'
11819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820
(eval $ac_try) 2>&5
11822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823
(exit $ac_status); }; }; then
11824
eval "$as_ac_var=yes"
11826
echo "$as_me: failed program was:" >&5
11827
sed 's/^/| /' conftest.$ac_ext >&5
11829
eval "$as_ac_var=no"
11831
rm -f conftest.err conftest.$ac_objext \
11832
conftest$ac_exeext conftest.$ac_ext
11834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11835
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11836
if test `eval echo '${'$as_ac_var'}'` = yes; then
11837
cat >>confdefs.h <<_ACEOF
11838
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11846
for ac_header in zlib.h
11848
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11849
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11850
echo "$as_me:$LINENO: checking for $ac_header" >&5
11851
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11852
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11853
echo $ECHO_N "(cached) $ECHO_C" >&6
11855
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11856
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11858
# Is the header compilable?
11859
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11860
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11861
cat >conftest.$ac_ext <<_ACEOF
11864
cat confdefs.h >>conftest.$ac_ext
11865
cat >>conftest.$ac_ext <<_ACEOF
11866
/* end confdefs.h. */
11867
$ac_includes_default
11868
#include <$ac_header>
11870
rm -f conftest.$ac_objext
11871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872
(eval $ac_compile) 2>conftest.er1
11874
grep -v '^ *+' conftest.er1 >conftest.err
11876
cat conftest.err >&5
11877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
(exit $ac_status); } &&
11879
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881
(eval $ac_try) 2>&5
11883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884
(exit $ac_status); }; } &&
11885
{ ac_try='test -s conftest.$ac_objext'
11886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887
(eval $ac_try) 2>&5
11889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890
(exit $ac_status); }; }; then
11891
ac_header_compiler=yes
11893
echo "$as_me: failed program was:" >&5
11894
sed 's/^/| /' conftest.$ac_ext >&5
11896
ac_header_compiler=no
11898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11899
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11900
echo "${ECHO_T}$ac_header_compiler" >&6
11902
# Is the header present?
11903
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11904
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11905
cat >conftest.$ac_ext <<_ACEOF
11908
cat confdefs.h >>conftest.$ac_ext
11909
cat >>conftest.$ac_ext <<_ACEOF
11910
/* end confdefs.h. */
11911
#include <$ac_header>
11913
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11914
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11916
grep -v '^ *+' conftest.er1 >conftest.err
11918
cat conftest.err >&5
11919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920
(exit $ac_status); } >/dev/null; then
11921
if test -s conftest.err; then
11922
ac_cpp_err=$ac_c_preproc_warn_flag
11923
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11930
if test -z "$ac_cpp_err"; then
11931
ac_header_preproc=yes
11933
echo "$as_me: failed program was:" >&5
11934
sed 's/^/| /' conftest.$ac_ext >&5
11936
ac_header_preproc=no
11938
rm -f conftest.err conftest.$ac_ext
11939
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11940
echo "${ECHO_T}$ac_header_preproc" >&6
11942
# So? What about this header?
11943
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11945
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11946
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11947
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11948
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11949
ac_header_preproc=yes
11952
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11953
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11954
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11955
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11956
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11957
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11958
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11959
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11960
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11961
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11962
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11963
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11966
## ------------------------------------------ ##
11967
## Report this to the AC_PACKAGE_NAME lists. ##
11968
## ------------------------------------------ ##
11971
sed "s/^/$as_me: WARNING: /" >&2
11974
echo "$as_me:$LINENO: checking for $ac_header" >&5
11975
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11976
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11977
echo $ECHO_N "(cached) $ECHO_C" >&6
11979
eval "$as_ac_Header=\$ac_header_preproc"
11981
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11985
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986
cat >>confdefs.h <<_ACEOF
11987
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11994
if test $ac_cv_header_zlib_h = yes; then
11995
echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
11996
echo $ECHO_N "checking for gzseek in -lz... $ECHO_C" >&6
11997
if test "${ac_cv_lib_z_gzseek+set}" = set; then
11998
echo $ECHO_N "(cached) $ECHO_C" >&6
12000
ac_check_lib_save_LIBS=$LIBS
12002
cat >conftest.$ac_ext <<_ACEOF
12005
cat confdefs.h >>conftest.$ac_ext
12006
cat >>conftest.$ac_ext <<_ACEOF
12007
/* end confdefs.h. */
12009
/* Override any gcc2 internal prototype to avoid an error. */
12013
/* We use char because int might match the return type of a gcc2
12014
builtin and then its argument prototype would still apply. */
12024
rm -f conftest.$ac_objext conftest$ac_exeext
12025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026
(eval $ac_link) 2>conftest.er1
12028
grep -v '^ *+' conftest.er1 >conftest.err
12030
cat conftest.err >&5
12031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032
(exit $ac_status); } &&
12033
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035
(eval $ac_try) 2>&5
12037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038
(exit $ac_status); }; } &&
12039
{ ac_try='test -s conftest$ac_exeext'
12040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041
(eval $ac_try) 2>&5
12043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044
(exit $ac_status); }; }; then
12045
ac_cv_lib_z_gzseek=yes
12047
echo "$as_me: failed program was:" >&5
12048
sed 's/^/| /' conftest.$ac_ext >&5
12050
ac_cv_lib_z_gzseek=no
12052
rm -f conftest.err conftest.$ac_objext \
12053
conftest$ac_exeext conftest.$ac_ext
12054
LIBS=$ac_check_lib_save_LIBS
12056
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
12057
echo "${ECHO_T}$ac_cv_lib_z_gzseek" >&6
12058
if test $ac_cv_lib_z_gzseek = yes; then
12064
if test "$zlib_ok" = yes; then
12071
#--------------------------------------------------------------------
12072
# One of these function needed by NSThread.m
12073
#--------------------------------------------------------------------
12076
for ac_func in nanosleep usleep
12078
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079
echo "$as_me:$LINENO: checking for $ac_func" >&5
12080
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12081
if eval "test \"\${$as_ac_var+set}\" = set"; then
12082
echo $ECHO_N "(cached) $ECHO_C" >&6
12084
cat >conftest.$ac_ext <<_ACEOF
12087
cat confdefs.h >>conftest.$ac_ext
12088
cat >>conftest.$ac_ext <<_ACEOF
12089
/* end confdefs.h. */
12090
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092
#define $ac_func innocuous_$ac_func
12094
/* System header to define __stub macros and hopefully few prototypes,
12095
which can conflict with char $ac_func (); below.
12096
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097
<limits.h> exists even on freestanding compilers. */
12100
# include <limits.h>
12102
# include <assert.h>
12107
/* Override any gcc2 internal prototype to avoid an error. */
12112
/* We use char because int might match the return type of a gcc2
12113
builtin and then its argument prototype would still apply. */
12115
/* The GNU C library defines this for functions which it implements
12116
to always fail with ENOSYS. Some functions are actually named
12117
something starting with __ and the normal name is an alias. */
12118
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12121
char (*f) () = $ac_func;
12130
return f != $ac_func;
12135
rm -f conftest.$ac_objext conftest$ac_exeext
12136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12137
(eval $ac_link) 2>conftest.er1
12139
grep -v '^ *+' conftest.er1 >conftest.err
12141
cat conftest.err >&5
12142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143
(exit $ac_status); } &&
12144
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146
(eval $ac_try) 2>&5
12148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149
(exit $ac_status); }; } &&
12150
{ ac_try='test -s conftest$ac_exeext'
12151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152
(eval $ac_try) 2>&5
12154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155
(exit $ac_status); }; }; then
12156
eval "$as_ac_var=yes"
12158
echo "$as_me: failed program was:" >&5
12159
sed 's/^/| /' conftest.$ac_ext >&5
12161
eval "$as_ac_var=no"
12163
rm -f conftest.err conftest.$ac_objext \
12164
conftest$ac_exeext conftest.$ac_ext
12166
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12167
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12168
if test `eval echo '${'$as_ac_var'}'` = yes; then
12169
cat >>confdefs.h <<_ACEOF
12170
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4441
12431
#error llong max not defined
4445
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4446
{ (eval echo configure:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4447
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448
if test -z "$ac_err"; then
12435
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12436
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12438
grep -v '^ *+' conftest.er1 >conftest.err
12440
cat conftest.err >&5
12441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442
(exit $ac_status); } >/dev/null; then
12443
if test -s conftest.err; then
12444
ac_cpp_err=$ac_c_preproc_warn_flag
12445
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12452
if test -z "$ac_cpp_err"; then
4453
echo "configure: failed program was:" >&5
4454
cat conftest.$ac_ext >&5
12455
echo "$as_me: failed program was:" >&5
12456
sed 's/^/| /' conftest.$ac_ext >&5
12460
rm -f conftest.err conftest.$ac_ext
4460
12462
if test $llmax = yes; then
4461
echo "$ac_t""yes" 1>&6
4462
cat >> confdefs.h <<\EOF
12463
echo "$as_me:$LINENO: result: yes" >&5
12464
echo "${ECHO_T}yes" >&6
12466
cat >>confdefs.h <<\_ACEOF
4463
12467
#define HANDLE_LLONG_MAX 1
4467
echo "$ac_t""no" 1>&6
12471
echo "$as_me:$LINENO: result: no" >&5
12472
echo "${ECHO_T}no" >&6
4469
for ac_hdr in wchar.h
12475
for ac_header in wchar.h
4471
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4472
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4473
echo "configure:4474: checking for $ac_hdr" >&5
4474
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4475
echo $ac_n "(cached) $ac_c" 1>&6
4477
cat > conftest.$ac_ext <<EOF
4478
#line 4479 "configure"
4479
#include "confdefs.h"
4482
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4483
{ (eval echo configure:4484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4484
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4485
if test -z "$ac_err"; then
4487
eval "ac_cv_header_$ac_safe=yes"
4490
echo "configure: failed program was:" >&5
4491
cat conftest.$ac_ext >&5
4493
eval "ac_cv_header_$ac_safe=no"
4497
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4498
echo "$ac_t""yes" 1>&6
4499
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4500
cat >> confdefs.h <<EOF
4501
#define $ac_tr_hdr 1
4505
echo "$ac_t""no" 1>&6
12477
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12479
echo "$as_me:$LINENO: checking for $ac_header" >&5
12480
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12481
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12482
echo $ECHO_N "(cached) $ECHO_C" >&6
12484
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12485
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12487
# Is the header compilable?
12488
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12489
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12490
cat >conftest.$ac_ext <<_ACEOF
12493
cat confdefs.h >>conftest.$ac_ext
12494
cat >>conftest.$ac_ext <<_ACEOF
12495
/* end confdefs.h. */
12496
$ac_includes_default
12497
#include <$ac_header>
12499
rm -f conftest.$ac_objext
12500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501
(eval $ac_compile) 2>conftest.er1
12503
grep -v '^ *+' conftest.er1 >conftest.err
12505
cat conftest.err >&5
12506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507
(exit $ac_status); } &&
12508
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510
(eval $ac_try) 2>&5
12512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513
(exit $ac_status); }; } &&
12514
{ ac_try='test -s conftest.$ac_objext'
12515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516
(eval $ac_try) 2>&5
12518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519
(exit $ac_status); }; }; then
12520
ac_header_compiler=yes
12522
echo "$as_me: failed program was:" >&5
12523
sed 's/^/| /' conftest.$ac_ext >&5
12525
ac_header_compiler=no
12527
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12528
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12529
echo "${ECHO_T}$ac_header_compiler" >&6
12531
# Is the header present?
12532
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12533
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12534
cat >conftest.$ac_ext <<_ACEOF
12537
cat confdefs.h >>conftest.$ac_ext
12538
cat >>conftest.$ac_ext <<_ACEOF
12539
/* end confdefs.h. */
12540
#include <$ac_header>
12542
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12543
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12545
grep -v '^ *+' conftest.er1 >conftest.err
12547
cat conftest.err >&5
12548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
(exit $ac_status); } >/dev/null; then
12550
if test -s conftest.err; then
12551
ac_cpp_err=$ac_c_preproc_warn_flag
12552
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12559
if test -z "$ac_cpp_err"; then
12560
ac_header_preproc=yes
12562
echo "$as_me: failed program was:" >&5
12563
sed 's/^/| /' conftest.$ac_ext >&5
12565
ac_header_preproc=no
12567
rm -f conftest.err conftest.$ac_ext
12568
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12569
echo "${ECHO_T}$ac_header_preproc" >&6
12571
# So? What about this header?
12572
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12574
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12575
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12576
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12577
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12578
ac_header_preproc=yes
12581
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12582
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12583
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12584
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12585
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12586
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12587
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12588
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12589
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12590
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12591
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12592
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12595
## ------------------------------------------ ##
12596
## Report this to the AC_PACKAGE_NAME lists. ##
12597
## ------------------------------------------ ##
12600
sed "s/^/$as_me: WARNING: /" >&2
12603
echo "$as_me:$LINENO: checking for $ac_header" >&5
12604
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12605
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12606
echo $ECHO_N "(cached) $ECHO_C" >&6
12608
eval "$as_ac_Header=\$ac_header_preproc"
12610
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12611
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12614
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12615
cat >>confdefs.h <<_ACEOF
12616
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4510
12624
#--------------------------------------------------------------------
12625
# Check if short and int values need to be word aligned
12626
#--------------------------------------------------------------------
12627
echo "$as_me:$LINENO: checking short/int needs to be word aligned" >&5
12628
echo $ECHO_N "checking short/int needs to be word aligned... $ECHO_C" >&6
12629
if test "$cross_compiling" = yes; then
12630
NEED_WORD_ALIGNMENT=1
12632
cat >conftest.$ac_ext <<_ACEOF
12635
cat confdefs.h >>conftest.$ac_ext
12636
cat >>conftest.$ac_ext <<_ACEOF
12637
/* end confdefs.h. */
12638
#include "$srcdir/config/config.align.c"
12640
rm -f conftest$ac_exeext
12641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642
(eval $ac_link) 2>&5
12644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647
(eval $ac_try) 2>&5
12649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650
(exit $ac_status); }; }; then
12651
NEED_WORD_ALIGNMENT=0
12653
echo "$as_me: program exited with status $ac_status" >&5
12654
echo "$as_me: failed program was:" >&5
12655
sed 's/^/| /' conftest.$ac_ext >&5
12657
( exit $ac_status )
12658
NEED_WORD_ALIGNMENT=1
12660
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12663
cat >>confdefs.h <<_ACEOF
12664
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
12667
if test $NEED_WORD_ALIGNMENT = 1; then
12668
echo "$as_me:$LINENO: result: yes" >&5
12669
echo "${ECHO_T}yes" >&6
12671
echo "$as_me:$LINENO: result: no" >&5
12672
echo "${ECHO_T}no" >&6
12675
#--------------------------------------------------------------------
4511
12676
# This function needed by NSString for handling of %@ printf directive.
4512
12677
#--------------------------------------------------------------------
4513
echo $ac_n "checking for register_printf_function""... $ac_c" 1>&6
4514
echo "configure:4515: checking for register_printf_function" >&5
4515
if eval "test \"`echo '$''{'ac_cv_func_register_printf_function'+set}'`\" = set"; then
4516
echo $ac_n "(cached) $ac_c" 1>&6
12678
echo "$as_me:$LINENO: checking for register_printf_function" >&5
12679
echo $ECHO_N "checking for register_printf_function... $ECHO_C" >&6
12680
if test "${ac_cv_func_register_printf_function+set}" = set; then
12681
echo $ECHO_N "(cached) $ECHO_C" >&6
4518
cat > conftest.$ac_ext <<EOF
4519
#line 4520 "configure"
4520
#include "confdefs.h"
12683
cat >conftest.$ac_ext <<_ACEOF
12686
cat confdefs.h >>conftest.$ac_ext
12687
cat >>conftest.$ac_ext <<_ACEOF
12688
/* end confdefs.h. */
12689
/* Define register_printf_function to an innocuous variant, in case <limits.h> declares register_printf_function.
12690
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12691
#define register_printf_function innocuous_register_printf_function
4521
12693
/* System header to define __stub macros and hopefully few prototypes,
4522
which can conflict with char register_printf_function(); below. */
12694
which can conflict with char register_printf_function (); below.
12695
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12696
<limits.h> exists even on freestanding compilers. */
12699
# include <limits.h>
12701
# include <assert.h>
12704
#undef register_printf_function
4524
12706
/* Override any gcc2 internal prototype to avoid an error. */
4525
12711
/* We use char because int might match the return type of a gcc2
4526
builtin and then its argument prototype would still apply. */
4527
char register_printf_function();
12712
builtin and then its argument prototype would still apply. */
12713
char register_printf_function ();
4531
12714
/* The GNU C library defines this for functions which it implements
4532
12715
to always fail with ENOSYS. Some functions are actually named
4533
12716
something starting with __ and the normal name is an alias. */
4534
12717
#if defined (__stub_register_printf_function) || defined (__stub___register_printf_function)
4537
register_printf_function();
12720
char (*f) () = register_printf_function;
4542
if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544
eval "ac_cv_func_register_printf_function=yes"
12729
return f != register_printf_function;
12734
rm -f conftest.$ac_objext conftest$ac_exeext
12735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736
(eval $ac_link) 2>conftest.er1
12738
grep -v '^ *+' conftest.er1 >conftest.err
12740
cat conftest.err >&5
12741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742
(exit $ac_status); } &&
12743
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745
(eval $ac_try) 2>&5
12747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748
(exit $ac_status); }; } &&
12749
{ ac_try='test -s conftest$ac_exeext'
12750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751
(eval $ac_try) 2>&5
12753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754
(exit $ac_status); }; }; then
12755
ac_cv_func_register_printf_function=yes
4546
echo "configure: failed program was:" >&5
4547
cat conftest.$ac_ext >&5
4549
eval "ac_cv_func_register_printf_function=no"
12757
echo "$as_me: failed program was:" >&5
12758
sed 's/^/| /' conftest.$ac_ext >&5
4554
if eval "test \"`echo '$ac_cv_func_'register_printf_function`\" = yes"; then
4555
echo "$ac_t""yes" 1>&6
12760
ac_cv_func_register_printf_function=no
12762
rm -f conftest.err conftest.$ac_objext \
12763
conftest$ac_exeext conftest.$ac_ext
12765
echo "$as_me:$LINENO: result: $ac_cv_func_register_printf_function" >&5
12766
echo "${ECHO_T}$ac_cv_func_register_printf_function" >&6
12767
if test $ac_cv_func_register_printf_function = yes; then
4556
12768
register_printf=1
4558
echo "$ac_t""no" 1>&6
4562
12773
if test $register_printf = 1; then
4563
12774
if test "$cross_compiling" = yes; then
4564
12775
working_register_printf=1
4566
cat > conftest.$ac_ext <<EOF
4567
#line 4568 "configure"
4568
#include "confdefs.h"
12777
cat >conftest.$ac_ext <<_ACEOF
12780
cat confdefs.h >>conftest.$ac_ext
12781
cat >>conftest.$ac_ext <<_ACEOF
12782
/* end confdefs.h. */
4569
12783
#include "$srcdir/config/config.printf.c"
4571
if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12785
rm -f conftest$ac_exeext
12786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787
(eval $ac_link) 2>&5
12789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792
(eval $ac_try) 2>&5
12794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795
(exit $ac_status); }; }; then
4573
12796
working_register_printf=1
4575
echo "configure: failed program was:" >&5
4576
cat conftest.$ac_ext >&5
4578
working_register_printf=0
12798
echo "$as_me: program exited with status $ac_status" >&5
12799
echo "$as_me: failed program was:" >&5
12800
sed 's/^/| /' conftest.$ac_ext >&5
12802
( exit $ac_status )
12803
working_register_printf=0
12805
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583
12807
if test $working_register_printf = 1; then
4584
cat >> confdefs.h <<\EOF
12809
cat >>confdefs.h <<\_ACEOF
4585
12810
#define HAVE_REGISTER_PRINTF_FUNCTION 1
4909
13314
mingw*) enable_fake_main=no; GS_FAKE_MAIN=0;;
4912
echo "$ac_t""$enable_fake_main" 1>&6
13317
echo "$as_me:$LINENO: result: $enable_fake_main" >&5
13318
echo "${ECHO_T}$enable_fake_main" >&6
13320
#--------------------------------------------------------------------
13321
# Simple way to add a bunch of paths to the flags
13322
#--------------------------------------------------------------------
13324
# Check whether --with-include-flags or --without-include-flags was given.
13325
if test "${with_include_flags+set}" = set; then
13326
withval="$with_include_flags"
13327
include_flags="$withval"
13331
if test ${include_flags} != "no"; then
13332
CPPFLAGS="$CPPFLAGS ${include_flags}"
13333
INCLUDE_FLAGS="$INCLUDE_FLAGS ${include_flags}"
13337
# Check whether --with-library-flags or --without-library-flags was given.
13338
if test "${with_library_flags+set}" = set; then
13339
withval="$with_library_flags"
13340
library_flags="$withval"
13344
if test ${library_flags} != "no"; then
13345
LDFLAGS="$LDFLAGS ${library_flags}"
13346
LDIR_FLAGS="$LDIR_FLAGS ${library_flags}"
4914
13349
#--------------------------------------------------------------------
4915
13350
# Check for FFI interface libraries for invocations
4916
13351
# We enable ffcall by default now.
4917
13352
#--------------------------------------------------------------------
13353
do_enable_libffi=no
13354
# Enable libffi by default on the following machines
13355
case "$target_os" in
13356
darwin*) do_enable_libffi=yes;;
4918
13359
# Check whether --enable-libffi or --disable-libffi was given.
4919
13360
if test "${enable_libffi+set}" = set; then
4920
13361
enableval="$enable_libffi"
4926
if test $enable_libffi = yes; then
4927
echo "configure: warning: libffi support disabled" 1>&2
4929
echo "GNUstep requires more functionality than the ffi library"
4930
echo "currently supports ... please use ffcall instead."
4931
echo "libffi support will be added when the ffi library improves"
13364
enable_libffi=$do_enable_libffi
4935
13367
# Check whether --enable-ffcall or --disable-ffcall was given.
4936
13368
if test "${enable_ffcall+set}" = set; then
4937
13369
enableval="$enable_ffcall"
4940
13372
enable_ffcall=yes
4944
ac_safe=`echo "ffi.h" | sed 'y%./+-%__p_%'`
4945
echo $ac_n "checking for ffi.h""... $ac_c" 1>&6
4946
echo "configure:4947: checking for ffi.h" >&5
4947
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948
echo $ac_n "(cached) $ac_c" 1>&6
4950
cat > conftest.$ac_ext <<EOF
4951
#line 4952 "configure"
4952
#include "confdefs.h"
4955
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956
{ (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4958
if test -z "$ac_err"; then
4960
eval "ac_cv_header_$ac_safe=yes"
4963
echo "configure: failed program was:" >&5
4964
cat conftest.$ac_ext >&5
4966
eval "ac_cv_header_$ac_safe=no"
4970
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971
echo "$ac_t""yes" 1>&6
4974
echo "$ac_t""no" 1>&6
4979
echo $ac_n "checking "for forwarding callback in runtime"""... $ac_c" 1>&6
4980
echo "configure:4981: checking "for forwarding callback in runtime"" >&5
4981
cat > conftest.$ac_ext <<EOF
4982
#line 4983 "configure"
4983
#include "confdefs.h"
4984
#include <objc/objc-api.h>
4986
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987
egrep "__objc_msg_forward" >/dev/null 2>&1; then
4989
echo "$ac_t""yes" 1>&6
4992
echo "$ac_t""no" 1>&6; enable_ffcall=no
4996
for ac_hdr in callback.h
13375
# Check whether --enable-do or --disable-do was given.
13376
if test "${enable_do+set}" = set; then
13377
enableval="$enable_do"
13383
# DO isn't used on apple-apple-apple
13384
if test $LIBRARY_COMBO = apple-apple-apple; then
13389
# Check whether --with-ffi-include or --without-ffi-include was given.
13390
if test "${with_ffi_include+set}" = set; then
13391
withval="$with_ffi_include"
13392
ffi_incdir="$withval"
13396
if test ${ffi_incdir} != "no"; then
13397
CPPFLAGS="$CPPFLAGS -I${ffi_incdir}"
13398
INCLUDE_FLAGS="$INCLUDE_FLAGS -I${ffi_incdir}"
13402
# Check whether --with-ffi-library or --without-ffi-library was given.
13403
if test "${with_ffi_library+set}" = set; then
13404
withval="$with_ffi_library"
13405
ffi_libdir="$withval"
13409
if test ${ffi_libdir} != "no"; then
13410
LDFLAGS="$LDFLAGS -L${ffi_libdir}"
13411
LDIR_FLAGS="$LDIR_FLAGS -L${ffi_libdir}"
13414
if test "${ac_cv_header_ffi_h+set}" = set; then
13415
echo "$as_me:$LINENO: checking for ffi.h" >&5
13416
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
13417
if test "${ac_cv_header_ffi_h+set}" = set; then
13418
echo $ECHO_N "(cached) $ECHO_C" >&6
13420
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
13421
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
13423
# Is the header compilable?
13424
echo "$as_me:$LINENO: checking ffi.h usability" >&5
13425
echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6
13426
cat >conftest.$ac_ext <<_ACEOF
13429
cat confdefs.h >>conftest.$ac_ext
13430
cat >>conftest.$ac_ext <<_ACEOF
13431
/* end confdefs.h. */
13432
$ac_includes_default
13435
rm -f conftest.$ac_objext
13436
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13437
(eval $ac_compile) 2>conftest.er1
13439
grep -v '^ *+' conftest.er1 >conftest.err
13441
cat conftest.err >&5
13442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443
(exit $ac_status); } &&
13444
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446
(eval $ac_try) 2>&5
13448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449
(exit $ac_status); }; } &&
13450
{ ac_try='test -s conftest.$ac_objext'
13451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452
(eval $ac_try) 2>&5
13454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455
(exit $ac_status); }; }; then
13456
ac_header_compiler=yes
13458
echo "$as_me: failed program was:" >&5
13459
sed 's/^/| /' conftest.$ac_ext >&5
13461
ac_header_compiler=no
13463
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13464
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13465
echo "${ECHO_T}$ac_header_compiler" >&6
13467
# Is the header present?
13468
echo "$as_me:$LINENO: checking ffi.h presence" >&5
13469
echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6
13470
cat >conftest.$ac_ext <<_ACEOF
13473
cat confdefs.h >>conftest.$ac_ext
13474
cat >>conftest.$ac_ext <<_ACEOF
13475
/* end confdefs.h. */
13478
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13479
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13481
grep -v '^ *+' conftest.er1 >conftest.err
13483
cat conftest.err >&5
13484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485
(exit $ac_status); } >/dev/null; then
13486
if test -s conftest.err; then
13487
ac_cpp_err=$ac_c_preproc_warn_flag
13488
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13495
if test -z "$ac_cpp_err"; then
13496
ac_header_preproc=yes
13498
echo "$as_me: failed program was:" >&5
13499
sed 's/^/| /' conftest.$ac_ext >&5
13501
ac_header_preproc=no
13503
rm -f conftest.err conftest.$ac_ext
13504
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13505
echo "${ECHO_T}$ac_header_preproc" >&6
13507
# So? What about this header?
13508
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13510
{ echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
13511
echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13512
{ echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
13513
echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
13514
ac_header_preproc=yes
13517
{ echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
13518
echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
13519
{ echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
13520
echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
13521
{ echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
13522
echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
13523
{ echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
13524
echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
13525
{ echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
13526
echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
13527
{ echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
13528
echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
13531
## ------------------------------------------ ##
13532
## Report this to the AC_PACKAGE_NAME lists. ##
13533
## ------------------------------------------ ##
13536
sed "s/^/$as_me: WARNING: /" >&2
13539
echo "$as_me:$LINENO: checking for ffi.h" >&5
13540
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
13541
if test "${ac_cv_header_ffi_h+set}" = set; then
13542
echo $ECHO_N "(cached) $ECHO_C" >&6
13544
ac_cv_header_ffi_h=$ac_header_preproc
13546
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
13547
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
13550
if test $ac_cv_header_ffi_h = yes; then
13558
for ac_header in callback.h
4998
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4999
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5000
echo "configure:5001: checking for $ac_hdr" >&5
5001
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5002
echo $ac_n "(cached) $ac_c" 1>&6
5004
cat > conftest.$ac_ext <<EOF
5005
#line 5006 "configure"
5006
#include "confdefs.h"
5009
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010
{ (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012
if test -z "$ac_err"; then
5014
eval "ac_cv_header_$ac_safe=yes"
5017
echo "configure: failed program was:" >&5
5018
cat conftest.$ac_ext >&5
5020
eval "ac_cv_header_$ac_safe=no"
5024
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5025
echo "$ac_t""yes" 1>&6
5026
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5027
cat >> confdefs.h <<EOF
5028
#define $ac_tr_hdr 1
5032
echo "$ac_t""no" 1>&6
13560
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13561
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13562
echo "$as_me:$LINENO: checking for $ac_header" >&5
13563
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13564
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13565
echo $ECHO_N "(cached) $ECHO_C" >&6
13567
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13568
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13570
# Is the header compilable?
13571
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13572
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13573
cat >conftest.$ac_ext <<_ACEOF
13576
cat confdefs.h >>conftest.$ac_ext
13577
cat >>conftest.$ac_ext <<_ACEOF
13578
/* end confdefs.h. */
13579
$ac_includes_default
13580
#include <$ac_header>
13582
rm -f conftest.$ac_objext
13583
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13584
(eval $ac_compile) 2>conftest.er1
13586
grep -v '^ *+' conftest.er1 >conftest.err
13588
cat conftest.err >&5
13589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590
(exit $ac_status); } &&
13591
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593
(eval $ac_try) 2>&5
13595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596
(exit $ac_status); }; } &&
13597
{ ac_try='test -s conftest.$ac_objext'
13598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599
(eval $ac_try) 2>&5
13601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602
(exit $ac_status); }; }; then
13603
ac_header_compiler=yes
13605
echo "$as_me: failed program was:" >&5
13606
sed 's/^/| /' conftest.$ac_ext >&5
13608
ac_header_compiler=no
13610
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13611
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612
echo "${ECHO_T}$ac_header_compiler" >&6
13614
# Is the header present?
13615
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13616
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13617
cat >conftest.$ac_ext <<_ACEOF
13620
cat confdefs.h >>conftest.$ac_ext
13621
cat >>conftest.$ac_ext <<_ACEOF
13622
/* end confdefs.h. */
13623
#include <$ac_header>
13625
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13626
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13628
grep -v '^ *+' conftest.er1 >conftest.err
13630
cat conftest.err >&5
13631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632
(exit $ac_status); } >/dev/null; then
13633
if test -s conftest.err; then
13634
ac_cpp_err=$ac_c_preproc_warn_flag
13635
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13642
if test -z "$ac_cpp_err"; then
13643
ac_header_preproc=yes
13645
echo "$as_me: failed program was:" >&5
13646
sed 's/^/| /' conftest.$ac_ext >&5
13648
ac_header_preproc=no
13650
rm -f conftest.err conftest.$ac_ext
13651
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13652
echo "${ECHO_T}$ac_header_preproc" >&6
13654
# So? What about this header?
13655
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13658
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13659
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13660
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13661
ac_header_preproc=yes
13664
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13665
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13666
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13667
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13668
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13669
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13670
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13671
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13672
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13673
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13674
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13675
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13678
## ------------------------------------------ ##
13679
## Report this to the AC_PACKAGE_NAME lists. ##
13680
## ------------------------------------------ ##
13683
sed "s/^/$as_me: WARNING: /" >&2
13686
echo "$as_me:$LINENO: checking for $ac_header" >&5
13687
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13688
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13689
echo $ECHO_N "(cached) $ECHO_C" >&6
13691
eval "$as_ac_Header=\$ac_header_preproc"
13693
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13694
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13697
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13698
cat >>confdefs.h <<_ACEOF
13699
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038
echo $ac_n "checking "FFI library usage"""... $ac_c" 1>&6
5039
echo "configure:5040: checking "FFI library usage"" >&5
13708
if test $have_ffcall = no; then
13710
# If we don't have ffcall but do have libffi, use libffi
13711
if test $have_libffi = yes; then
13715
if test $have_libffi = no; then
13719
have_forward_hook=yes
13720
saved_CPPFLAGS="$CPPFLAGS"
13721
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
13722
echo "$as_me:$LINENO: checking \"for forwarding callback in runtime\"" >&5
13723
echo $ECHO_N "checking \"for forwarding callback in runtime\"... $ECHO_C" >&6
13724
cat >conftest.$ac_ext <<_ACEOF
13725
#include "$srcdir/config/config.forward.m"
13727
rm -f conftest.$ac_objext
13728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729
(eval $ac_compile) 2>conftest.er1
13731
grep -v '^ *+' conftest.er1 >conftest.err
13733
cat conftest.err >&5
13734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735
(exit $ac_status); } &&
13736
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738
(eval $ac_try) 2>&5
13740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741
(exit $ac_status); }; } &&
13742
{ ac_try='test -s conftest.$ac_objext'
13743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744
(eval $ac_try) 2>&5
13746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747
(exit $ac_status); }; }; then
13748
have_forward_hook=yes
13750
echo "$as_me: failed program was:" >&5
13751
sed 's/^/| /' conftest.$ac_ext >&5
13753
have_forward_hook=no
13755
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13756
echo "$as_me:$LINENO: result: $have_forward_hook" >&5
13757
echo "${ECHO_T}$have_forward_hook" >&6
13758
if test $have_forward_hook = no; then
13762
CPPFLAGS="$saved_CPPFLAGS"
13764
echo "$as_me:$LINENO: checking \"FFI library usage\"" >&5
13765
echo $ECHO_N "checking \"FFI library usage\"... $ECHO_C" >&6
5041
13767
if test $enable_libffi = yes; then
5042
cat >> confdefs.h <<\EOF
13769
cat >>confdefs.h <<\_ACEOF
5043
13770
#define USE_LIBFFI 1
5046
13773
WITH_FFI=libffi
5048
echo "$ac_t""libffi" 1>&6
13775
cat >conftest.$ac_ext <<_ACEOF
13778
cat confdefs.h >>conftest.$ac_ext
13779
cat >>conftest.$ac_ext <<_ACEOF
13780
/* end confdefs.h. */
13790
rm -f conftest.$ac_objext conftest$ac_exeext
13791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792
(eval $ac_link) 2>conftest.er1
13794
grep -v '^ *+' conftest.er1 >conftest.err
13796
cat conftest.err >&5
13797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798
(exit $ac_status); } &&
13799
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801
(eval $ac_try) 2>&5
13803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804
(exit $ac_status); }; } &&
13805
{ ac_try='test -s conftest$ac_exeext'
13806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807
(eval $ac_try) 2>&5
13809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810
(exit $ac_status); }; }; then
13813
echo "$as_me: failed program was:" >&5
13814
sed 's/^/| /' conftest.$ac_ext >&5
13818
rm -f conftest.err conftest.$ac_objext \
13819
conftest$ac_exeext conftest.$ac_ext
13820
if test $ffi_ok = yes; then
13821
echo "$as_me:$LINENO: result: libffi" >&5
13822
echo "${ECHO_T}libffi" >&6
5049
13824
elif test $enable_ffcall = yes; then
5050
cat >> confdefs.h <<\EOF
13826
cat >>confdefs.h <<\_ACEOF
5051
13827
#define USE_FFCALL 1
5054
13830
WITH_FFI=ffcall
5055
LIBS="$LIBS -lcallback -lavcall"
5056
echo "$ac_t""ffcall" 1>&6
5058
echo "$ac_t""none" 1>&6
5059
echo "configure: warning: No ffcall interface library found" 1>&2
13831
LIBS="-lcallback -lavcall $LIBS"
13832
cat >conftest.$ac_ext <<_ACEOF
13835
cat confdefs.h >>conftest.$ac_ext
13836
cat >>conftest.$ac_ext <<_ACEOF
13837
/* end confdefs.h. */
13838
#include <callback.h>
13847
rm -f conftest.$ac_objext conftest$ac_exeext
13848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13849
(eval $ac_link) 2>conftest.er1
13851
grep -v '^ *+' conftest.er1 >conftest.err
13853
cat conftest.err >&5
13854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855
(exit $ac_status); } &&
13856
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858
(eval $ac_try) 2>&5
13860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861
(exit $ac_status); }; } &&
13862
{ ac_try='test -s conftest$ac_exeext'
13863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864
(eval $ac_try) 2>&5
13866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867
(exit $ac_status); }; }; then
13870
echo "$as_me: failed program was:" >&5
13871
sed 's/^/| /' conftest.$ac_ext >&5
13875
rm -f conftest.err conftest.$ac_objext \
13876
conftest$ac_exeext conftest.$ac_ext
13877
if test $ffi_ok = yes; then
13878
echo "$as_me:$LINENO: result: ffcall" >&5
13879
echo "${ECHO_T}ffcall" >&6
13885
if test $ffi_ok = no; then
13886
echo "$as_me:$LINENO: result: none" >&5
13887
echo "${ECHO_T}none" >&6
5061
echo "GNUstep requires the ffcall library to do invocations and DO"
5062
echo "Make sure this library is installed (see installation instructions)"
5063
echo "Otherwise DO will not be compatible with other systems"
13889
if test $have_forward_hook = no; then
13890
echo "You do not have an up-to-date libobjc library installed"
13892
echo "You do not have either ffcall or libffi installed, or configure needs"
13893
echo "--with-ffi-include and/or --with-ffi-library flags so GNUstep can find them"
13895
echo "GNUstep requires ffcall or libffi and proper libobjc hooks to do"
13896
echo "invocations and DO."
13897
echo "(This does not apply on apple-apple-apple systems where DO is"
13898
echo "not compatible with other GNUstep systems.)"
13899
if test $enable_do = yes; then
13901
echo "You most likely do not want to build base without DO support. Many"
13902
echo "things, including all applications, won't work at all without DO."
13903
echo "If you really want to build -base without DO support, add --disable-do"
13904
echo "to the configure arguments."
13905
echo "For more information, read the GNUstep build guide, ffcall section:"
13906
echo "http://documents.made-it.com/GNUstep/buildguide.html#FOREIGN.FUNCTION.INTERFACES"
13907
{ { echo "$as_me:$LINENO: error: Incomplete support for ffi functionality." >&5
13908
echo "$as_me: error: Incomplete support for ffi functionality." >&2;}
13909
{ (exit 1); exit 1; }; }
13911
{ echo "$as_me:$LINENO: WARNING: Incomplete support for ffi funtionality." >&5
13912
echo "$as_me: WARNING: Incomplete support for ffi funtionality." >&2;}
13917
#--------------------------------------------------------------------
13918
# Check for iconv support (for Unicode conversion).
13919
#--------------------------------------------------------------------
13920
# Do this before checking for xml2, as xml2 may require iconv.
13922
# We need to find an iconv library that matches the installed iconv.h header
13923
# (if any). It is important to check header/library compatibility. It's
13924
# fairly common to have iconv support both in libc and from libiconv. In that
13925
# case, a naive check that iconv() is in libc will succeed, but if we use
13926
# libiconv's iconv.h, it will redefine iconv() to functions that exist
13927
# only in libiconv, and we'll get link errors.
13929
# First, check if there's a working iconv in libc (ie. if the test program
13930
# compiles and links without any extra flags).
13931
echo "$as_me:$LINENO: checking iconv support" >&5
13932
echo $ECHO_N "checking iconv support... $ECHO_C" >&6
13933
cat >conftest.$ac_ext <<_ACEOF
13935
int main(int argc,char **argv) { iconv_open("foo","bar"); }
13938
rm -f conftest.$ac_objext conftest$ac_exeext
13939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940
(eval $ac_link) 2>conftest.er1
13942
grep -v '^ *+' conftest.er1 >conftest.err
13944
cat conftest.err >&5
13945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946
(exit $ac_status); } &&
13947
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949
(eval $ac_try) 2>&5
13951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952
(exit $ac_status); }; } &&
13953
{ ac_try='test -s conftest$ac_exeext'
13954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955
(eval $ac_try) 2>&5
13957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958
(exit $ac_status); }; }; then
13959
# libc has a working iconv.
13961
cat >>confdefs.h <<\_ACEOF
13962
#define HAVE_ICONV 1
13965
echo "$as_me:$LINENO: result: yes, in libc" >&5
13966
echo "${ECHO_T}yes, in libc" >&6
13970
echo "$as_me: failed program was:" >&5
13971
sed 's/^/| /' conftest.$ac_ext >&5
13976
rm -f conftest.err conftest.$ac_objext \
13977
conftest$ac_exeext conftest.$ac_ext
13979
if test $found_iconv = no ; then
13980
# libc doesn't have a working iconv. Try adding -liconv and any user
13981
# supplied directory.
13983
# Check whether --with-libiconv-library or --without-libiconv-library was given.
13984
if test "${with_libiconv_library+set}" = set; then
13985
withval="$with_libiconv_library"
13986
libiconv_libdir="$withval"
13988
libiconv_libdir="no"
13991
if test "$libiconv_libdir" != "no"; then
13992
LDFLAGS="$LDFLAGS -L$libiconv_libdir"
13993
LDIR_FLAGS="$LDIR_FLAGS -L$libiconv_libdir"
13997
LIBS="-liconv $LIBS"
13998
cat >conftest.$ac_ext <<_ACEOF
14000
int main(int argc,char **argv) { iconv_open("foo","bar"); }
14003
rm -f conftest.$ac_objext conftest$ac_exeext
14004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005
(eval $ac_link) 2>conftest.er1
14007
grep -v '^ *+' conftest.er1 >conftest.err
14009
cat conftest.err >&5
14010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011
(exit $ac_status); } &&
14012
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014
(eval $ac_try) 2>&5
14016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017
(exit $ac_status); }; } &&
14018
{ ac_try='test -s conftest$ac_exeext'
14019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020
(eval $ac_try) 2>&5
14022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023
(exit $ac_status); }; }; then
14026
cat >>confdefs.h <<\_ACEOF
14027
#define HAVE_ICONV 1
14030
echo "$as_me:$LINENO: result: yes, -liconv" >&5
14031
echo "${ECHO_T}yes, -liconv" >&6
14035
echo "$as_me: failed program was:" >&5
14036
sed 's/^/| /' conftest.$ac_ext >&5
14042
rm -f conftest.err conftest.$ac_objext \
14043
conftest$ac_exeext conftest.$ac_ext
14046
if test $found_iconv = no ; then
14047
# -liconv didn't work. Try giconv.h and -lgiconv.
14048
# BSDs install this lib as libgiconv.
14050
LIBS="-lgiconv $LIBS"
14051
cat >conftest.$ac_ext <<_ACEOF
14052
#include <giconv.h>
14053
int main(int argc,char **argv) { iconv_open("foo","bar"); }
14056
rm -f conftest.$ac_objext conftest$ac_exeext
14057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058
(eval $ac_link) 2>conftest.er1
14060
grep -v '^ *+' conftest.er1 >conftest.err
14062
cat conftest.err >&5
14063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064
(exit $ac_status); } &&
14065
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067
(eval $ac_try) 2>&5
14069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070
(exit $ac_status); }; } &&
14071
{ ac_try='test -s conftest$ac_exeext'
14072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073
(eval $ac_try) 2>&5
14075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076
(exit $ac_status); }; }; then
14078
cat >>confdefs.h <<\_ACEOF
14079
#define HAVE_ICONV 1
14083
cat >>confdefs.h <<\_ACEOF
14084
#define HAVE_GICONV 1
14087
echo "$as_me:$LINENO: result: yes, -lgiconv" >&5
14088
echo "${ECHO_T}yes, -lgiconv" >&6
14091
echo "$as_me: failed program was:" >&5
14092
sed 's/^/| /' conftest.$ac_ext >&5
14094
echo "$as_me:$LINENO: result: no" >&5
14095
echo "${ECHO_T}no" >&6
14099
rm -f conftest.err conftest.$ac_objext \
14100
conftest$ac_exeext conftest.$ac_ext
5067
14103
#--------------------------------------------------------------------
5068
14104
# Check recent libxml for Properytlists, GSXML, GSDoc etc.
5069
14105
#--------------------------------------------------------------------
5071
# Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
5072
# of the success of the macro.
5074
saved_CFLAGS="$CFLAGS"
14107
# Check whether --enable-xml or --disable-xml was given.
14108
if test "${enable_xml+set}" = set; then
14109
enableval="$enable_xml"
14115
if test $enable_xml = yes; then
14116
# Save CFLAGS and LIBS as AM_PATH_XML clobbers these variables regardless
14117
# of the success of the macro.
14119
saved_CFLAGS="$CFLAGS"
5077
14123
# Check whether --with-xml-prefix or --without-xml-prefix was given.
5317
14482
enable_libxml=no
5321
14486
rm -f conf.xmltest
5323
if test $enable_libxml = yes; then
5324
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
5325
LIBS="$LIBS $XML_LIBS"
5327
cat >> confdefs.h <<\EOF
14488
if test $enable_libxml = yes; then
14489
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
14490
INCLUDE_FLAGS="$INCLUDE_FLAGS $XML_CFLAGS"
14491
LIBS="$XML_LIBS $LIBS"
14494
cat >>confdefs.h <<\_ACEOF
5328
14495
#define HAVE_LIBXML 1
14499
for ac_header in libxml/SAX2.h
14501
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14502
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14503
echo "$as_me:$LINENO: checking for $ac_header" >&5
14504
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14505
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14506
echo $ECHO_N "(cached) $ECHO_C" >&6
14508
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14509
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14511
# Is the header compilable?
14512
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14513
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14514
cat >conftest.$ac_ext <<_ACEOF
14517
cat confdefs.h >>conftest.$ac_ext
14518
cat >>conftest.$ac_ext <<_ACEOF
14519
/* end confdefs.h. */
14520
$ac_includes_default
14521
#include <$ac_header>
14523
rm -f conftest.$ac_objext
14524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525
(eval $ac_compile) 2>conftest.er1
14527
grep -v '^ *+' conftest.er1 >conftest.err
14529
cat conftest.err >&5
14530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531
(exit $ac_status); } &&
14532
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534
(eval $ac_try) 2>&5
14536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537
(exit $ac_status); }; } &&
14538
{ ac_try='test -s conftest.$ac_objext'
14539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540
(eval $ac_try) 2>&5
14542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543
(exit $ac_status); }; }; then
14544
ac_header_compiler=yes
14546
echo "$as_me: failed program was:" >&5
14547
sed 's/^/| /' conftest.$ac_ext >&5
14549
ac_header_compiler=no
14551
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14552
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14553
echo "${ECHO_T}$ac_header_compiler" >&6
14555
# Is the header present?
14556
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14557
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14558
cat >conftest.$ac_ext <<_ACEOF
14561
cat confdefs.h >>conftest.$ac_ext
14562
cat >>conftest.$ac_ext <<_ACEOF
14563
/* end confdefs.h. */
14564
#include <$ac_header>
14566
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14567
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14569
grep -v '^ *+' conftest.er1 >conftest.err
14571
cat conftest.err >&5
14572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573
(exit $ac_status); } >/dev/null; then
14574
if test -s conftest.err; then
14575
ac_cpp_err=$ac_c_preproc_warn_flag
14576
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14583
if test -z "$ac_cpp_err"; then
14584
ac_header_preproc=yes
14586
echo "$as_me: failed program was:" >&5
14587
sed 's/^/| /' conftest.$ac_ext >&5
14589
ac_header_preproc=no
14591
rm -f conftest.err conftest.$ac_ext
14592
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14593
echo "${ECHO_T}$ac_header_preproc" >&6
14595
# So? What about this header?
14596
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14598
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14599
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14600
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14601
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14602
ac_header_preproc=yes
14605
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14606
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14607
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14608
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14609
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14610
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14611
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14612
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14613
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14614
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14615
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14616
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14619
## ------------------------------------------ ##
14620
## Report this to the AC_PACKAGE_NAME lists. ##
14621
## ------------------------------------------ ##
14624
sed "s/^/$as_me: WARNING: /" >&2
14627
echo "$as_me:$LINENO: checking for $ac_header" >&5
14628
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14629
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14630
echo $ECHO_N "(cached) $ECHO_C" >&6
14632
eval "$as_ac_Header=\$ac_header_preproc"
14634
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14635
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14638
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14639
cat >>confdefs.h <<_ACEOF
14640
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14647
#--------------------------------------------------------------------
14648
# Check for (optional) libxslt
14649
#--------------------------------------------------------------------
14650
# Check whether --enable-xslt or --disable-xslt was given.
14651
if test "${enable_xslt+set}" = set; then
14652
enableval="$enable_xslt"
14658
if test $enable_xslt = yes; then
14659
echo "$as_me:$LINENO: checking for xsltApplyStylesheet in -lxslt" >&5
14660
echo $ECHO_N "checking for xsltApplyStylesheet in -lxslt... $ECHO_C" >&6
14661
if test "${ac_cv_lib_xslt_xsltApplyStylesheet+set}" = set; then
14662
echo $ECHO_N "(cached) $ECHO_C" >&6
14664
ac_check_lib_save_LIBS=$LIBS
14665
LIBS="-lxslt $LIBS"
14666
cat >conftest.$ac_ext <<_ACEOF
14669
cat confdefs.h >>conftest.$ac_ext
14670
cat >>conftest.$ac_ext <<_ACEOF
14671
/* end confdefs.h. */
14673
/* Override any gcc2 internal prototype to avoid an error. */
14677
/* We use char because int might match the return type of a gcc2
14678
builtin and then its argument prototype would still apply. */
14679
char xsltApplyStylesheet ();
14683
xsltApplyStylesheet ();
14688
rm -f conftest.$ac_objext conftest$ac_exeext
14689
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690
(eval $ac_link) 2>conftest.er1
14692
grep -v '^ *+' conftest.er1 >conftest.err
14694
cat conftest.err >&5
14695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696
(exit $ac_status); } &&
14697
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699
(eval $ac_try) 2>&5
14701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702
(exit $ac_status); }; } &&
14703
{ ac_try='test -s conftest$ac_exeext'
14704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705
(eval $ac_try) 2>&5
14707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708
(exit $ac_status); }; }; then
14709
ac_cv_lib_xslt_xsltApplyStylesheet=yes
14711
echo "$as_me: failed program was:" >&5
14712
sed 's/^/| /' conftest.$ac_ext >&5
14714
ac_cv_lib_xslt_xsltApplyStylesheet=no
14716
rm -f conftest.err conftest.$ac_objext \
14717
conftest$ac_exeext conftest.$ac_ext
14718
LIBS=$ac_check_lib_save_LIBS
14720
echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltApplyStylesheet" >&5
14721
echo "${ECHO_T}$ac_cv_lib_xslt_xsltApplyStylesheet" >&6
14722
if test $ac_cv_lib_xslt_xsltApplyStylesheet = yes; then
14728
if test "$xslt_ok" = "yes"; then
14729
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14730
echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
14731
echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
14732
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14733
echo $ECHO_N "(cached) $ECHO_C" >&6
14735
echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
14736
echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
14738
# Is the header compilable?
14739
echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
14740
echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
14741
cat >conftest.$ac_ext <<_ACEOF
14744
cat confdefs.h >>conftest.$ac_ext
14745
cat >>conftest.$ac_ext <<_ACEOF
14746
/* end confdefs.h. */
14747
$ac_includes_default
14748
#include <libxslt/xslt.h>
14750
rm -f conftest.$ac_objext
14751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752
(eval $ac_compile) 2>conftest.er1
14754
grep -v '^ *+' conftest.er1 >conftest.err
14756
cat conftest.err >&5
14757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758
(exit $ac_status); } &&
14759
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761
(eval $ac_try) 2>&5
14763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764
(exit $ac_status); }; } &&
14765
{ ac_try='test -s conftest.$ac_objext'
14766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767
(eval $ac_try) 2>&5
14769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770
(exit $ac_status); }; }; then
14771
ac_header_compiler=yes
14773
echo "$as_me: failed program was:" >&5
14774
sed 's/^/| /' conftest.$ac_ext >&5
14776
ac_header_compiler=no
14778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14779
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14780
echo "${ECHO_T}$ac_header_compiler" >&6
14782
# Is the header present?
14783
echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
14784
echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
14785
cat >conftest.$ac_ext <<_ACEOF
14788
cat confdefs.h >>conftest.$ac_ext
14789
cat >>conftest.$ac_ext <<_ACEOF
14790
/* end confdefs.h. */
14791
#include <libxslt/xslt.h>
14793
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14794
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14796
grep -v '^ *+' conftest.er1 >conftest.err
14798
cat conftest.err >&5
14799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800
(exit $ac_status); } >/dev/null; then
14801
if test -s conftest.err; then
14802
ac_cpp_err=$ac_c_preproc_warn_flag
14803
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14810
if test -z "$ac_cpp_err"; then
14811
ac_header_preproc=yes
14813
echo "$as_me: failed program was:" >&5
14814
sed 's/^/| /' conftest.$ac_ext >&5
14816
ac_header_preproc=no
14818
rm -f conftest.err conftest.$ac_ext
14819
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820
echo "${ECHO_T}$ac_header_preproc" >&6
14822
# So? What about this header?
14823
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826
echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
14828
echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
14829
ac_header_preproc=yes
14832
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
14833
echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
14834
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
14835
echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
14836
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
14837
echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
14838
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
14839
echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
14841
echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
14842
{ echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
14843
echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
14846
## ------------------------------------------ ##
14847
## Report this to the AC_PACKAGE_NAME lists. ##
14848
## ------------------------------------------ ##
14851
sed "s/^/$as_me: WARNING: /" >&2
14854
echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
14855
echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
14856
if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14857
echo $ECHO_N "(cached) $ECHO_C" >&6
14859
ac_cv_header_libxslt_xslt_h=$ac_header_preproc
14861
echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
14862
echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
14865
if test $ac_cv_header_libxslt_xslt_h = yes; then
14872
if test "$xslthdr_ok" = "no"; then
14876
if test "$xslt_ok" = "yes"; then
14879
cat >>confdefs.h <<\_ACEOF
14880
#define HAVE_LIBXSLT 1
14883
LIBS="-lxslt $LIBS"
14886
echo "You most likely do not want to build base without XSLT support."
14887
echo "If you really want to build -base without XSLT support,"
14888
echo "add --disable-xslt to the configure arguments."
14889
{ echo "$as_me:$LINENO: WARNING: Missing support for XSLT functionality." >&5
14890
echo "$as_me: WARNING: Missing support for XSLT functionality." >&2;}
14894
{ echo "$as_me:$LINENO: WARNING: Disabled support for XSLT funtionality." >&5
14895
echo "$as_me: WARNING: Disabled support for XSLT funtionality." >&2;}
14900
# Restore the CFLAGS and LIBS because AM_PATH_XML messes them
14902
CFLAGS="$saved_CFLAGS"
14904
echo "You most likely do not want to build base without XML support."
14905
echo "For instance, MacOS-X compatible property lists require XML."
14906
echo "If you really want to build -base without XML support,"
14907
echo "add --disable-xml to the configure arguments."
14908
{ { echo "$as_me:$LINENO: error: Missing support for XML functionality." >&5
14909
echo "$as_me: error: Missing support for XML functionality." >&2;}
14910
{ (exit 1); exit 1; }; }
14913
{ echo "$as_me:$LINENO: WARNING: Disabled support for XML funtionality." >&5
14914
echo "$as_me: WARNING: Disabled support for XML funtionality." >&2;}
5333
# Restore the CFLAGS and LIBS because AM_PATH_XML messes them
5335
CFLAGS="$saved_CFLAGS"
5339
14919
#--------------------------------------------------------------------
5340
14920
# Check GMP for NSDecimal
5341
14921
#--------------------------------------------------------------------
5342
14923
# Check whether --with-gmp-include or --without-gmp-include was given.
5343
14924
if test "${with_gmp_include+set}" = set; then
5344
14925
withval="$with_gmp_include"
5345
14926
gmp_incdir="$withval"
5347
14928
gmp_incdir="no"
5351
14932
# Check whether --with-gmp-library or --without-gmp-library was given.
5354
14935
gmp_libdir="$withval"
5356
14937
gmp_libdir="no"
5360
cppflags_temp="$CPPFLAGS"
5361
14940
libs_temp=$LIBS
5363
14942
if test "$gmp_incdir" != "no"; then
5364
14943
CPPFLAGS="$CPPFLAGS -I$gmp_incdir"
14944
INCLUDE_FLAGS="$INCLUDE_FLAGS -I$gmp_incdir"
5366
14946
if test "$gmp_libdir" != "no"; then
5367
LIBS="$LIBS -L$gmp_libdir"
14947
LDFLAGS="$LDFLAGS -L$gmp_libdir"
14948
LDIR_FLAGS="$LDIR_FLAGS -L$gmp_libdir"
14953
for ac_header in gmp.h
5373
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5374
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5375
echo "configure:5376: checking for $ac_hdr" >&5
5376
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5377
echo $ac_n "(cached) $ac_c" 1>&6
5379
cat > conftest.$ac_ext <<EOF
5380
#line 5381 "configure"
5381
#include "confdefs.h"
5384
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5385
{ (eval echo configure:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5386
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5387
if test -z "$ac_err"; then
5389
eval "ac_cv_header_$ac_safe=yes"
5392
echo "configure: failed program was:" >&5
5393
cat conftest.$ac_ext >&5
5395
eval "ac_cv_header_$ac_safe=no"
5399
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5400
echo "$ac_t""yes" 1>&6
5401
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5402
cat >> confdefs.h <<EOF
5403
#define $ac_tr_hdr 1
5407
echo "$ac_t""no" 1>&6
14955
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14956
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14957
echo "$as_me:$LINENO: checking for $ac_header" >&5
14958
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14959
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14960
echo $ECHO_N "(cached) $ECHO_C" >&6
14962
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14963
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14965
# Is the header compilable?
14966
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14967
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14968
cat >conftest.$ac_ext <<_ACEOF
14971
cat confdefs.h >>conftest.$ac_ext
14972
cat >>conftest.$ac_ext <<_ACEOF
14973
/* end confdefs.h. */
14974
$ac_includes_default
14975
#include <$ac_header>
14977
rm -f conftest.$ac_objext
14978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14979
(eval $ac_compile) 2>conftest.er1
14981
grep -v '^ *+' conftest.er1 >conftest.err
14983
cat conftest.err >&5
14984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985
(exit $ac_status); } &&
14986
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988
(eval $ac_try) 2>&5
14990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991
(exit $ac_status); }; } &&
14992
{ ac_try='test -s conftest.$ac_objext'
14993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994
(eval $ac_try) 2>&5
14996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997
(exit $ac_status); }; }; then
14998
ac_header_compiler=yes
15000
echo "$as_me: failed program was:" >&5
15001
sed 's/^/| /' conftest.$ac_ext >&5
15003
ac_header_compiler=no
15005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15006
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15007
echo "${ECHO_T}$ac_header_compiler" >&6
15009
# Is the header present?
15010
echo "$as_me:$LINENO: checking $ac_header presence" >&5
15011
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15012
cat >conftest.$ac_ext <<_ACEOF
15015
cat confdefs.h >>conftest.$ac_ext
15016
cat >>conftest.$ac_ext <<_ACEOF
15017
/* end confdefs.h. */
15018
#include <$ac_header>
15020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15021
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15023
grep -v '^ *+' conftest.er1 >conftest.err
15025
cat conftest.err >&5
15026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027
(exit $ac_status); } >/dev/null; then
15028
if test -s conftest.err; then
15029
ac_cpp_err=$ac_c_preproc_warn_flag
15030
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15037
if test -z "$ac_cpp_err"; then
15038
ac_header_preproc=yes
15040
echo "$as_me: failed program was:" >&5
15041
sed 's/^/| /' conftest.$ac_ext >&5
15043
ac_header_preproc=no
15045
rm -f conftest.err conftest.$ac_ext
15046
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047
echo "${ECHO_T}$ac_header_preproc" >&6
15049
# So? What about this header?
15050
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15053
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15055
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15056
ac_header_preproc=yes
15059
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15060
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15061
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15062
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15063
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15064
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15065
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15066
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15067
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15068
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15070
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15073
## ------------------------------------------ ##
15074
## Report this to the AC_PACKAGE_NAME lists. ##
15075
## ------------------------------------------ ##
15078
sed "s/^/$as_me: WARNING: /" >&2
15081
echo "$as_me:$LINENO: checking for $ac_header" >&5
15082
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15083
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15084
echo $ECHO_N "(cached) $ECHO_C" >&6
15086
eval "$as_ac_Header=\$ac_header_preproc"
15088
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15089
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15092
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15093
cat >>confdefs.h <<_ACEOF
15094
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5411
15101
if test $ac_cv_header_gmp_h = yes; then
5412
echo $ac_n "checking for mpf_abs in -lgmp""... $ac_c" 1>&6
5413
echo "configure:5414: checking for mpf_abs in -lgmp" >&5
5414
ac_lib_var=`echo gmp'_'mpf_abs | sed 'y%./+-%__p_%'`
5415
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5416
echo $ac_n "(cached) $ac_c" 1>&6
15102
echo "$as_me:$LINENO: checking for mpf_abs in -lgmp" >&5
15103
echo $ECHO_N "checking for mpf_abs in -lgmp... $ECHO_C" >&6
15104
if test "${ac_cv_lib_gmp_mpf_abs+set}" = set; then
15105
echo $ECHO_N "(cached) $ECHO_C" >&6
5418
ac_save_LIBS="$LIBS"
15107
ac_check_lib_save_LIBS=$LIBS
5419
15108
LIBS="-lgmp $LIBS"
5420
cat > conftest.$ac_ext <<EOF
5421
#line 5422 "configure"
5422
#include "confdefs.h"
15109
cat >conftest.$ac_ext <<_ACEOF
15112
cat confdefs.h >>conftest.$ac_ext
15113
cat >>conftest.$ac_ext <<_ACEOF
15114
/* end confdefs.h. */
5423
15116
/* Override any gcc2 internal prototype to avoid an error. */
5424
15120
/* We use char because int might match the return type of a gcc2
5425
builtin and then its argument prototype would still apply. */
5432
if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5434
eval "ac_cv_lib_$ac_lib_var=yes"
15121
builtin and then its argument prototype would still apply. */
15131
rm -f conftest.$ac_objext conftest$ac_exeext
15132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133
(eval $ac_link) 2>conftest.er1
15135
grep -v '^ *+' conftest.er1 >conftest.err
15137
cat conftest.err >&5
15138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139
(exit $ac_status); } &&
15140
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142
(eval $ac_try) 2>&5
15144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145
(exit $ac_status); }; } &&
15146
{ ac_try='test -s conftest$ac_exeext'
15147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148
(eval $ac_try) 2>&5
15150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151
(exit $ac_status); }; }; then
15152
ac_cv_lib_gmp_mpf_abs=yes
5436
echo "configure: failed program was:" >&5
5437
cat conftest.$ac_ext >&5
5439
eval "ac_cv_lib_$ac_lib_var=no"
5442
LIBS="$ac_save_LIBS"
15154
echo "$as_me: failed program was:" >&5
15155
sed 's/^/| /' conftest.$ac_ext >&5
5445
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5446
echo "$ac_t""yes" 1>&6
15157
ac_cv_lib_gmp_mpf_abs=no
15159
rm -f conftest.err conftest.$ac_objext \
15160
conftest$ac_exeext conftest.$ac_ext
15161
LIBS=$ac_check_lib_save_LIBS
15163
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpf_abs" >&5
15164
echo "${ECHO_T}$ac_cv_lib_gmp_mpf_abs" >&6
15165
if test $ac_cv_lib_gmp_mpf_abs = yes; then
5449
echo "$ac_t""no" 1>&6
5453
15171
if test "$gmp_ok" = no; then
5454
echo $ac_n "checking for __gmpf_abs in -lgmp""... $ac_c" 1>&6
5455
echo "configure:5456: checking for __gmpf_abs in -lgmp" >&5
5456
ac_lib_var=`echo gmp'_'__gmpf_abs | sed 'y%./+-%__p_%'`
5457
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5458
echo $ac_n "(cached) $ac_c" 1>&6
15172
echo "$as_me:$LINENO: checking for __gmpf_abs in -lgmp" >&5
15173
echo $ECHO_N "checking for __gmpf_abs in -lgmp... $ECHO_C" >&6
15174
if test "${ac_cv_lib_gmp___gmpf_abs+set}" = set; then
15175
echo $ECHO_N "(cached) $ECHO_C" >&6
5460
ac_save_LIBS="$LIBS"
15177
ac_check_lib_save_LIBS=$LIBS
5461
15178
LIBS="-lgmp $LIBS"
5462
cat > conftest.$ac_ext <<EOF
5463
#line 5464 "configure"
5464
#include "confdefs.h"
15179
cat >conftest.$ac_ext <<_ACEOF
15182
cat confdefs.h >>conftest.$ac_ext
15183
cat >>conftest.$ac_ext <<_ACEOF
15184
/* end confdefs.h. */
5465
15186
/* Override any gcc2 internal prototype to avoid an error. */
5466
15190
/* We use char because int might match the return type of a gcc2
5467
builtin and then its argument prototype would still apply. */
5474
if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5476
eval "ac_cv_lib_$ac_lib_var=yes"
15191
builtin and then its argument prototype would still apply. */
15192
char __gmpf_abs ();
15201
rm -f conftest.$ac_objext conftest$ac_exeext
15202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15203
(eval $ac_link) 2>conftest.er1
15205
grep -v '^ *+' conftest.er1 >conftest.err
15207
cat conftest.err >&5
15208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209
(exit $ac_status); } &&
15210
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212
(eval $ac_try) 2>&5
15214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215
(exit $ac_status); }; } &&
15216
{ ac_try='test -s conftest$ac_exeext'
15217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218
(eval $ac_try) 2>&5
15220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221
(exit $ac_status); }; }; then
15222
ac_cv_lib_gmp___gmpf_abs=yes
5478
echo "configure: failed program was:" >&5
5479
cat conftest.$ac_ext >&5
5481
eval "ac_cv_lib_$ac_lib_var=no"
5484
LIBS="$ac_save_LIBS"
15224
echo "$as_me: failed program was:" >&5
15225
sed 's/^/| /' conftest.$ac_ext >&5
5487
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5488
echo "$ac_t""yes" 1>&6
15227
ac_cv_lib_gmp___gmpf_abs=no
15229
rm -f conftest.err conftest.$ac_objext \
15230
conftest$ac_exeext conftest.$ac_ext
15231
LIBS=$ac_check_lib_save_LIBS
15233
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpf_abs" >&5
15234
echo "${ECHO_T}$ac_cv_lib_gmp___gmpf_abs" >&6
15235
if test $ac_cv_lib_gmp___gmpf_abs = yes; then
5491
echo "$ac_t""no" 1>&6
5496
15242
if test "$gmp_ok" = yes; then
5503
if test "$HAVE_GMP" = "0"; then
5504
CPPFLAGS="$cppflags_temp";
5509
#--------------------------------------------------------------------
5510
# Check for iconv support (for Unicode conversion).
5511
#--------------------------------------------------------------------
5512
# Check in the glibc library
5513
for ac_func in iconv
5515
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5516
echo "configure:5517: checking for $ac_func" >&5
5517
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5518
echo $ac_n "(cached) $ac_c" 1>&6
5520
cat > conftest.$ac_ext <<EOF
5521
#line 5522 "configure"
5522
#include "confdefs.h"
5523
/* System header to define __stub macros and hopefully few prototypes,
5524
which can conflict with char $ac_func(); below. */
5526
/* Override any gcc2 internal prototype to avoid an error. */
5527
/* We use char because int might match the return type of a gcc2
5528
builtin and then its argument prototype would still apply. */
5533
/* The GNU C library defines this for functions which it implements
5534
to always fail with ENOSYS. Some functions are actually named
5535
something starting with __ and the normal name is an alias. */
5536
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5544
if { (eval echo configure:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5546
eval "ac_cv_func_$ac_func=yes"
5548
echo "configure: failed program was:" >&5
5549
cat conftest.$ac_ext >&5
5551
eval "ac_cv_func_$ac_func=no"
5556
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5557
echo "$ac_t""yes" 1>&6
5558
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5559
cat >> confdefs.h <<EOF
5560
#define $ac_tr_func 1
5564
echo "$ac_t""no" 1>&6
5568
if test $ac_cv_func_iconv = no; then
5569
# Check if we have a libiconv library
5570
# Check whether --with-libiconv-library or --without-libiconv-library was given.
5571
if test "${with_libiconv_library+set}" = set; then
5572
withval="$with_libiconv_library"
5573
libiconv_libdir="$withval"
5575
libiconv_libdir="no"
5578
cppflags_temp="$CPPFLAGS"
5580
if test "$libiconv_libdir" != "no"; then
5581
CPPFLAGS="$CPPFLAGS -L$libiconv_libdir"
5584
# BSDs install this lib as libgiconv
5585
echo $ac_n "checking for main in -lgiconv""... $ac_c" 1>&6
5586
echo "configure:5587: checking for main in -lgiconv" >&5
5587
ac_lib_var=`echo giconv'_'main | sed 'y%./+-%__p_%'`
5588
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5589
echo $ac_n "(cached) $ac_c" 1>&6
5591
ac_save_LIBS="$LIBS"
5592
LIBS="-lgiconv $LIBS"
5593
cat > conftest.$ac_ext <<EOF
5594
#line 5595 "configure"
5595
#include "confdefs.h"
5601
if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603
eval "ac_cv_lib_$ac_lib_var=yes"
5605
echo "configure: failed program was:" >&5
5606
cat conftest.$ac_ext >&5
5608
eval "ac_cv_lib_$ac_lib_var=no"
5611
LIBS="$ac_save_LIBS"
5614
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5615
echo "$ac_t""yes" 1>&6
5616
ac_tr_lib=HAVE_LIB`echo giconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5617
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5618
cat >> confdefs.h <<EOF
5619
#define $ac_tr_lib 1
5622
LIBS="-lgiconv $LIBS"
5625
echo "$ac_t""no" 1>&6
5628
if test x"$ac_cv_lib_giconv_main" = xyes; then
5629
cat >> confdefs.h <<\EOF
5630
#define HAVE_ICONV 1
5633
cat >> confdefs.h <<\EOF
5634
#define HAVE_GICONV_H 1
5638
echo $ac_n "checking for main in -liconv""... $ac_c" 1>&6
5639
echo "configure:5640: checking for main in -liconv" >&5
5640
ac_lib_var=`echo iconv'_'main | sed 'y%./+-%__p_%'`
5641
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5642
echo $ac_n "(cached) $ac_c" 1>&6
5644
ac_save_LIBS="$LIBS"
5645
LIBS="-liconv $LIBS"
5646
cat > conftest.$ac_ext <<EOF
5647
#line 5648 "configure"
5648
#include "confdefs.h"
5654
if { (eval echo configure:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5656
eval "ac_cv_lib_$ac_lib_var=yes"
5658
echo "configure: failed program was:" >&5
5659
cat conftest.$ac_ext >&5
5661
eval "ac_cv_lib_$ac_lib_var=no"
5664
LIBS="$ac_save_LIBS"
5667
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5668
echo "$ac_t""yes" 1>&6
5669
ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5670
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5671
cat >> confdefs.h <<EOF
5672
#define $ac_tr_lib 1
5675
LIBS="-liconv $LIBS"
5678
echo "$ac_t""no" 1>&6
5681
if test x"$ac_cv_lib_iconv_main" = xyes; then
5682
cat >> confdefs.h <<\EOF
5683
#define HAVE_ICONV 1
5688
CPPFLAGS="$cppflags_temp"
5693
subdirs="Source/mframe"
15250
#--------------------------------------------------------------------
15251
# Check whether nl_langinfo(CODESET) is supported, needed by Unicode.m.
15252
#--------------------------------------------------------------------
15254
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15255
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15256
if test "${am_cv_langinfo_codeset+set}" = set; then
15257
echo $ECHO_N "(cached) $ECHO_C" >&6
15259
cat >conftest.$ac_ext <<_ACEOF
15262
cat confdefs.h >>conftest.$ac_ext
15263
cat >>conftest.$ac_ext <<_ACEOF
15264
/* end confdefs.h. */
15265
#include <langinfo.h>
15269
char* cs = nl_langinfo(CODESET);
15274
rm -f conftest.$ac_objext conftest$ac_exeext
15275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276
(eval $ac_link) 2>conftest.er1
15278
grep -v '^ *+' conftest.er1 >conftest.err
15280
cat conftest.err >&5
15281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282
(exit $ac_status); } &&
15283
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285
(eval $ac_try) 2>&5
15287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288
(exit $ac_status); }; } &&
15289
{ ac_try='test -s conftest$ac_exeext'
15290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291
(eval $ac_try) 2>&5
15293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294
(exit $ac_status); }; }; then
15295
am_cv_langinfo_codeset=yes
15297
echo "$as_me: failed program was:" >&5
15298
sed 's/^/| /' conftest.$ac_ext >&5
15300
am_cv_langinfo_codeset=no
15302
rm -f conftest.err conftest.$ac_objext \
15303
conftest$ac_exeext conftest.$ac_ext
15306
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15307
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15308
if test $am_cv_langinfo_codeset = yes; then
15310
cat >>confdefs.h <<\_ACEOF
15311
#define HAVE_LANGINFO_CODESET 1
15321
#--------------------------------------------------------------------
15322
# Configure flags from sub-configure runs, so they show up in our
15324
#--------------------------------------------------------------------
15325
# Check whether --enable-openssl or --disable-openssl was given.
15326
if test "${enable_openssl+set}" = set; then
15327
enableval="$enable_openssl"
15333
# Check whether --with-openssl-include or --without-openssl-include was given.
15334
if test "${with_openssl_include+set}" = set; then
15335
withval="$with_openssl_include"
15336
openssl_incdir="$withval"
15338
openssl_incdir="no"
15341
# Check whether --with-openssl-library or --without-openssl-library was given.
15342
if test "${with_openssl_library+set}" = set; then
15343
withval="$with_openssl_library"
15344
openssl_libdir="$withval"
15346
openssl_libdir="no"
15351
subdirs="$subdirs Source/mframe SSL"
5696
15354
#--------------------------------------------------------------------
5697
15355
# Record the version
5698
15356
#--------------------------------------------------------------------
5699
echo $ac_n "checking for the version of gnustep-base we are compiling""... $ac_c" 1>&6
5700
echo "configure:5701: checking for the version of gnustep-base we are compiling" >&5
15357
echo "$as_me:$LINENO: checking for the version of gnustep-base we are compiling" >&5
15358
echo $ECHO_N "checking for the version of gnustep-base we are compiling... $ECHO_C" >&6
5701
15359
if test -f "Version"; then
5704
echo "$ac_t""$VERSION" 1>&6
15362
echo "$as_me:$LINENO: result: $VERSION" >&5
15363
echo "${ECHO_T}$VERSION" >&6
5711
15370
#--------------------------------------------------------------------
5712
15371
# Write the Makefiles
5713
15372
#--------------------------------------------------------------------
5715
cat > confcache <<\EOF
15373
ac_config_files="$ac_config_files config.mak base.make Headers/Additions/GNUstepBase/GSConfig.h Headers/Additions/GNUstepBase/preface.h"
15375
cat >confcache <<\_ACEOF
5716
15376
# This file is a shell script that caches the results of configure
5717
15377
# tests run on this system so they can be shared between configure
5718
# scripts and configure runs. It is not useful on other systems.
5719
# If it contains results you don't want to keep, you may remove or edit it.
5721
# By default, configure uses ./config.cache as the cache file,
5722
# creating it if it does not exist already. You can give configure
5723
# the --cache-file=FILE option to use a different cache file; that is
5724
# what configure does when it calls configure scripts in
5725
# subdirectories, so they share the cache.
5726
# Giving --cache-file=/dev/null disables caching, for debugging configure.
5727
# config.status only pays attention to the cache file if you give it the
5728
# --recheck option to rerun configure.
15378
# scripts and configure runs, see configure's option --config-cache.
15379
# It is not useful on other systems. If it contains results you don't
15380
# want to keep, you may remove or edit it.
15382
# config.status only pays attention to the cache file if you give it
15383
# the --recheck option to rerun configure.
15385
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15386
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15387
# following values.
5731
15391
# The following way of writing the cache mishandles newlines in values,
5732
15392
# but we know of no workaround that is simple, portable, and efficient.
5733
15393
# So, don't put newlines in cache variables' values.
5734
15394
# Ultrix sh set writes to stderr and can't be redirected directly,
5735
15395
# and sets the high bit in the cache file unless we assign to the vars.
5737
case `(ac_space=' '; set | grep ac_space) 2>&1` in
5739
# `set' does not quote correctly, so add quotes (double-quote substitution
5740
# turns \\\\ into \\, and sed turns \\ into \).
5742
-e "s/'/'\\\\''/g" \
5743
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5746
# `set' quotes correctly as required by POSIX, so do not add quotes.
5747
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5750
if cmp -s $cache_file confcache; then
15398
case `(ac_space=' '; set | grep ac_space) 2>&1` in
15400
# `set' does not quote correctly, so add quotes (double-quote
15401
# substitution turns \\\\ into \\, and sed turns \\ into \).
15404
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15407
# `set' quotes correctly as required by POSIX, so do not add quotes.
15409
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15416
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15418
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15420
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5753
15421
if test -w $cache_file; then
5754
echo "updating cache $cache_file"
5755
cat confcache > $cache_file
15422
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15423
cat confcache >$cache_file
5757
15425
echo "not updating unwritable cache $cache_file"
5760
15428
rm -f confcache
5762
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5764
15430
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5765
15431
# Let make expand exec_prefix.
5766
15432
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5768
# Any assignment to VPATH causes Sun make to only execute
5769
# the first set of double-colon rules, so remove it if not needed.
5770
# If there is a colon in the path, we need to keep it.
15434
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15435
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15436
# trailing colons and then remove the whole line if VPATH becomes empty
15437
# (actually we leave an empty line to preserve line numbers).
5771
15438
if test "x$srcdir" = x.; then
5772
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15439
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15440
s/:*\$(srcdir):*/:/;
15441
s/:*\${srcdir}:*/:/;
15443
s/^\([^=]*=[ ]*\):*/\1/;
5775
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5777
15449
DEFS=-DHAVE_CONFIG_H
5779
# Without the "./", some shells look in PATH for config.status.
15453
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15454
# 1. Remove the extension, and $U if already installed.
15455
ac_i=`echo "$ac_i" |
15456
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15458
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15459
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15461
LIBOBJS=$ac_libobjs
15463
LTLIBOBJS=$ac_ltlibobjs
5780
15467
: ${CONFIG_STATUS=./config.status}
5782
echo creating $CONFIG_STATUS
5783
rm -f $CONFIG_STATUS
5784
cat > $CONFIG_STATUS <<EOF
5786
# Generated automatically by configure.
15468
ac_clean_files_save=$ac_clean_files
15469
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15470
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15471
echo "$as_me: creating $CONFIG_STATUS" >&6;}
15472
cat >$CONFIG_STATUS <<_ACEOF
15474
# Generated by $as_me.
5787
15475
# Run this file to recreate the current configuration.
5788
# This directory was configured as follows,
5789
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5791
# $0 $ac_configure_args
5793
15476
# Compiler output produced by configure, useful for debugging
5794
# configure, is in ./config.log if it exists.
5796
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5799
case "\$ac_option" in
15477
# configure, is in config.log if it exists.
15480
ac_cs_recheck=false
15482
SHELL=\${CONFIG_SHELL-$SHELL}
15485
cat >>$CONFIG_STATUS <<\_ACEOF
15486
## --------------------- ##
15487
## M4sh Initialization. ##
15488
## --------------------- ##
15490
# Be Bourne compatible
15491
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15494
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15495
# is contrary to our usage. Disable this feature.
15496
alias -g '${1+"$@"}'='"$@"'
15497
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15500
DUALCASE=1; export DUALCASE # for MKS sh
15502
# Support unset when possible.
15503
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15510
# Work around bugs in pre-3.0 UWIN ksh.
15511
$as_unset ENV MAIL MAILPATH
15518
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15519
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15520
LC_TELEPHONE LC_TIME
15522
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15523
eval $as_var=C; export $as_var
15529
# Required to use basename.
15530
if expr a : '\(a\)' >/dev/null 2>&1; then
15536
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15537
as_basename=basename
15543
# Name of the executable.
15544
as_me=`$as_basename "$0" ||
15545
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15546
X"$0" : 'X\(//\)$' \| \
15547
X"$0" : 'X\(/\)$' \| \
15548
. : '\(.\)' 2>/dev/null ||
15550
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15551
/^X\/\(\/\/\)$/{ s//\1/; q; }
15552
/^X\/\(\/\).*/{ s//\1/; q; }
15556
# PATH needs CR, and LINENO needs CR and PATH.
15557
# Avoid depending upon Character Ranges.
15558
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15559
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15560
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15561
as_cr_digits='0123456789'
15562
as_cr_alnum=$as_cr_Letters$as_cr_digits
15564
# The user is always right.
15565
if test "${PATH_SEPARATOR+set}" != set; then
15566
echo "#! /bin/sh" >conf$$.sh
15567
echo "exit 0" >>conf$$.sh
15569
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15578
as_lineno_1=$LINENO
15579
as_lineno_2=$LINENO
15580
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15581
test "x$as_lineno_1" != "x$as_lineno_2" &&
15582
test "x$as_lineno_3" = "x$as_lineno_2" || {
15583
# Find who we are. Look in the path if we contain no path at all
15586
*[\\/]* ) as_myself=$0 ;;
15587
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15588
for as_dir in $PATH
15591
test -z "$as_dir" && as_dir=.
15592
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15597
# We did not find ourselves, most probably we were run as `sh COMMAND'
15598
# in which case we are not to be found in the path.
15599
if test "x$as_myself" = x; then
15602
if test ! -f "$as_myself"; then
15603
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15604
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15605
{ (exit 1); exit 1; }; }
15607
case $CONFIG_SHELL in
15609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15613
test -z "$as_dir" && as_dir=.
15614
for as_base in sh bash ksh sh5; do
15617
if ("$as_dir/$as_base" -c '
15618
as_lineno_1=$LINENO
15619
as_lineno_2=$LINENO
15620
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15621
test "x$as_lineno_1" != "x$as_lineno_2" &&
15622
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15623
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15624
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15625
CONFIG_SHELL=$as_dir/$as_base
15626
export CONFIG_SHELL
15627
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15635
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15636
# uniformly replaced by the line number. The first 'sed' inserts a
15637
# line-number line before each line; the second 'sed' does the real
15638
# work. The second script uses 'N' to pair each line-number line
15639
# with the numbered line, and appends trailing '-' during
15640
# substitution so that $LINENO is not a special case at line end.
15641
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15642
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15643
sed '=' <$as_myself |
15648
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15651
s,^['$as_cr_digits']*\n,,
15652
' >$as_me.lineno &&
15653
chmod +x $as_me.lineno ||
15654
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15655
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15656
{ (exit 1); exit 1; }; }
15658
# Don't try to exec as it changes $[0], causing all sort of problems
15659
# (the dirname of $[0] is not the place where we might find the
15660
# original and so on. Autoconf is especially sensible to this).
15662
# Exit status is that of the last command.
15667
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15668
*c*,-n*) ECHO_N= ECHO_C='
15670
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15671
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15674
if expr a : '\(a\)' >/dev/null 2>&1; then
15680
rm -f conf$$ conf$$.exe conf$$.file
15682
if ln -s conf$$.file conf$$ 2>/dev/null; then
15683
# We could just check for DJGPP; but this test a) works b) is more generic
15684
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15685
if test -f conf$$.exe; then
15686
# Don't use ln at all; we don't have any links
15691
elif ln conf$$.file conf$$ 2>/dev/null; then
15696
rm -f conf$$ conf$$.exe conf$$.file
15698
if mkdir -p . 2>/dev/null; then
15701
test -d ./-p && rmdir ./-p
15705
as_executable_p="test -f"
15707
# Sed expression to map a string onto a valid CPP name.
15708
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15710
# Sed expression to map a string onto a valid variable name.
15711
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15715
# We need space, tab and new line, in precisely that order.
15725
# Open the log real soon, to keep \$[0] and so on meaningful, and to
15726
# report actual input values of CONFIG_FILES etc. instead of their
15727
# values after options handling. Logging --version etc. is OK.
15731
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15732
## Running $as_me. ##
15737
This file was extended by $as_me, which was
15738
generated by GNU Autoconf 2.59. Invocation command line was
15740
CONFIG_FILES = $CONFIG_FILES
15741
CONFIG_HEADERS = $CONFIG_HEADERS
15742
CONFIG_LINKS = $CONFIG_LINKS
15743
CONFIG_COMMANDS = $CONFIG_COMMANDS
15747
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15751
# Files that config.status was made for.
15752
if test -n "$ac_config_files"; then
15753
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15756
if test -n "$ac_config_headers"; then
15757
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15760
if test -n "$ac_config_links"; then
15761
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15764
if test -n "$ac_config_commands"; then
15765
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15768
cat >>$CONFIG_STATUS <<\_ACEOF
15771
\`$as_me' instantiates files from templates according to the
15772
current configuration.
15774
Usage: $0 [OPTIONS] [FILE]...
15776
-h, --help print this help, then exit
15777
-V, --version print version number, then exit
15778
-q, --quiet do not print progress messages
15779
-d, --debug don't remove temporary files
15780
--recheck update $as_me by reconfiguring in the same conditions
15781
--file=FILE[:TEMPLATE]
15782
instantiate the configuration file FILE
15783
--header=FILE[:TEMPLATE]
15784
instantiate the configuration header FILE
15786
Configuration files:
15789
Configuration headers:
15792
Report bugs to <bug-autoconf@gnu.org>."
15795
cat >>$CONFIG_STATUS <<_ACEOF
15798
configured by $0, generated by GNU Autoconf 2.59,
15799
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15801
Copyright (C) 2003 Free Software Foundation, Inc.
15802
This config.status script is free software; the Free Software Foundation
15803
gives unlimited permission to copy, distribute and modify it."
15807
cat >>$CONFIG_STATUS <<\_ACEOF
15808
# If no file are specified by the user, then we need to provide default
15809
# value. By we need to know if files were specified by the user.
15815
ac_option=`expr "x$1" : 'x\([^=]*\)='`
15816
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15824
*) # This is not an option, so the user has probably given explicit
15827
ac_need_defaults=false;;
15831
# Handling of the options.
15833
cat >>$CONFIG_STATUS <<\_ACEOF
5800
15834
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5801
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5802
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5803
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5804
echo "$CONFIG_STATUS generated by autoconf version 2.13"
5806
-help | --help | --hel | --he | --h)
5807
echo "\$ac_cs_usage"; exit 0 ;;
5808
*) echo "\$ac_cs_usage"; exit 1 ;;
5812
ac_given_srcdir=$srcdir
5814
trap 'rm -fr `echo "config.mak base.make Headers/gnustep/base/GSConfig.h
5815
Headers/gnustep/base/preface.h Headers/gnustep/base/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5817
cat >> $CONFIG_STATUS <<EOF
5819
# Protect against being on the right side of a sed subst in config.status.
5820
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5821
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15836
--version | --vers* | -V )
15837
echo "$ac_cs_version"; exit 0 ;;
15839
# Conflict between --help and --header
15840
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
15841
Try \`$0 --help' for more information." >&5
15842
echo "$as_me: error: ambiguous option: $1
15843
Try \`$0 --help' for more information." >&2;}
15844
{ (exit 1); exit 1; }; };;
15845
--help | --hel | -h )
15846
echo "$ac_cs_usage"; exit 0 ;;
15847
--debug | --d* | -d )
15849
--file | --fil | --fi | --f )
15851
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15852
ac_need_defaults=false;;
15853
--header | --heade | --head | --hea )
15855
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15856
ac_need_defaults=false;;
15857
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15858
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15861
# This is an error.
15862
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15863
Try \`$0 --help' for more information." >&5
15864
echo "$as_me: error: unrecognized option: $1
15865
Try \`$0 --help' for more information." >&2;}
15866
{ (exit 1); exit 1; }; } ;;
15868
*) ac_config_targets="$ac_config_targets $1" ;;
15874
ac_configure_extra_args=
15876
if $ac_cs_silent; then
15878
ac_configure_extra_args="$ac_configure_extra_args --silent"
15882
cat >>$CONFIG_STATUS <<_ACEOF
15883
if \$ac_cs_recheck; then
15884
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15885
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15894
cat >>$CONFIG_STATUS <<\_ACEOF
15895
for ac_config_target in $ac_config_targets
15897
case "$ac_config_target" in
15898
# Handling of arguments.
15899
"config.mak" ) CONFIG_FILES="$CONFIG_FILES config.mak" ;;
15900
"base.make" ) CONFIG_FILES="$CONFIG_FILES base.make" ;;
15901
"Headers/Additions/GNUstepBase/GSConfig.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/GSConfig.h" ;;
15902
"Headers/Additions/GNUstepBase/preface.h" ) CONFIG_FILES="$CONFIG_FILES Headers/Additions/GNUstepBase/preface.h" ;;
15903
"Headers/Additions/GNUstepBase/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Headers/Additions/GNUstepBase/config.h" ;;
15904
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15905
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15906
{ (exit 1); exit 1; }; };;
15910
# If the user did not use the arguments to specify the items to instantiate,
15911
# then the envvar interface is used. Set only those that are not.
15912
# We use the long form for the default assignment because of an extremely
15913
# bizarre bug on SunOS 4.1.3.
15914
if $ac_need_defaults; then
15915
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15916
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15919
# Have a temporary directory for convenience. Make it in the build tree
15920
# simply because there is no reason to put it here, and in addition,
15921
# creating and moving files from /tmp can sometimes cause problems.
15922
# Create a temporary directory, and hook for its removal unless debugging.
15925
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15926
trap '{ (exit 1); exit 1; }' 1 2 13 15
15929
# Create a (secure) tmp directory for tmp files.
15932
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15933
test -n "$tmp" && test -d "$tmp"
15936
tmp=./confstat$$-$RANDOM
15937
(umask 077 && mkdir $tmp)
15940
echo "$me: cannot create a temporary directory in ." >&2
15941
{ (exit 1); exit 1; }
15946
cat >>$CONFIG_STATUS <<_ACEOF
15949
# CONFIG_FILES section.
15952
# No need to generate the scripts if there are no CONFIG_FILES.
15953
# This happens for instance when ./config.status config.h
15954
if test -n "\$CONFIG_FILES"; then
15955
# Protect against being on the right side of a sed subst in config.status.
15956
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15957
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15958
s,@SHELL@,$SHELL,;t t
15959
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15960
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15961
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15962
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15963
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15964
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15965
s,@exec_prefix@,$exec_prefix,;t t
15966
s,@prefix@,$prefix,;t t
15967
s,@program_transform_name@,$program_transform_name,;t t
15968
s,@bindir@,$bindir,;t t
15969
s,@sbindir@,$sbindir,;t t
15970
s,@libexecdir@,$libexecdir,;t t
15971
s,@datadir@,$datadir,;t t
15972
s,@sysconfdir@,$sysconfdir,;t t
15973
s,@sharedstatedir@,$sharedstatedir,;t t
15974
s,@localstatedir@,$localstatedir,;t t
15975
s,@libdir@,$libdir,;t t
15976
s,@includedir@,$includedir,;t t
15977
s,@oldincludedir@,$oldincludedir,;t t
15978
s,@infodir@,$infodir,;t t
15979
s,@mandir@,$mandir,;t t
15980
s,@build_alias@,$build_alias,;t t
15981
s,@host_alias@,$host_alias,;t t
15982
s,@target_alias@,$target_alias,;t t
15983
s,@DEFS@,$DEFS,;t t
15984
s,@ECHO_C@,$ECHO_C,;t t
15985
s,@ECHO_N@,$ECHO_N,;t t
15986
s,@ECHO_T@,$ECHO_T,;t t
15987
s,@LIBS@,$LIBS,;t t
15988
s,@build@,$build,;t t
15989
s,@build_cpu@,$build_cpu,;t t
15990
s,@build_vendor@,$build_vendor,;t t
15991
s,@build_os@,$build_os,;t t
15992
s,@host@,$host,;t t
15993
s,@host_cpu@,$host_cpu,;t t
15994
s,@host_vendor@,$host_vendor,;t t
15995
s,@host_os@,$host_os,;t t
15996
s,@target@,$target,;t t
15997
s,@target_cpu@,$target_cpu,;t t
15998
s,@target_vendor@,$target_vendor,;t t
15999
s,@target_os@,$target_os,;t t
16001
s,@CFLAGS@,$CFLAGS,;t t
16002
s,@LDFLAGS@,$LDFLAGS,;t t
16003
s,@CPPFLAGS@,$CPPFLAGS,;t t
16004
s,@ac_ct_CC@,$ac_ct_CC,;t t
16005
s,@EXEEXT@,$EXEEXT,;t t
16006
s,@OBJEXT@,$OBJEXT,;t t
16008
s,@WHOAMI@,$WHOAMI,;t t
16009
s,@EGREP@,$EGREP,;t t
16010
s,@GS_WORDS_BIGENDIAN@,$GS_WORDS_BIGENDIAN,;t t
16011
s,@GS_SINT8@,$GS_SINT8,;t t
16012
s,@GS_UINT8@,$GS_UINT8,;t t
16013
s,@ac_cv_sizeof_short@,$ac_cv_sizeof_short,;t t
16014
s,@ac_cv_sizeof_int@,$ac_cv_sizeof_int,;t t
16015
s,@ac_cv_sizeof_long@,$ac_cv_sizeof_long,;t t
16016
s,@ac_cv_sizeof_long_long@,$ac_cv_sizeof_long_long,;t t
16017
s,@ac_cv_sizeof_float@,$ac_cv_sizeof_float,;t t
16018
s,@ac_cv_sizeof_double@,$ac_cv_sizeof_double,;t t
16019
s,@ac_cv_sizeof_voidp@,$ac_cv_sizeof_voidp,;t t
16020
s,@GS_ADDR@,$GS_ADDR,;t t
16021
s,@GS_SINT16@,$GS_SINT16,;t t
16022
s,@GS_UINT16@,$GS_UINT16,;t t
16023
s,@GS_SINT32@,$GS_SINT32,;t t
16024
s,@GS_UINT32@,$GS_UINT32,;t t
16025
s,@GS_SINT64@,$GS_SINT64,;t t
16026
s,@GS_UINT64@,$GS_UINT64,;t t
16027
s,@GS_HAVE_I64@,$GS_HAVE_I64,;t t
16028
s,@GS_SINT128@,$GS_SINT128,;t t
16029
s,@GS_UINT128@,$GS_UINT128,;t t
16030
s,@GS_HAVE_I128@,$GS_HAVE_I128,;t t
16031
s,@GS_FLT32@,$GS_FLT32,;t t
16032
s,@GS_FLT64@,$GS_FLT64,;t t
16033
s,@_GSC_S_SHT@,$_GSC_S_SHT,;t t
16034
s,@_GSC_S_INT@,$_GSC_S_INT,;t t
16035
s,@_GSC_S_LNG@,$_GSC_S_LNG,;t t
16036
s,@_GSC_S_LNG_LNG@,$_GSC_S_LNG_LNG,;t t
16037
s,@DYNAMIC_LINKER@,$DYNAMIC_LINKER,;t t
16038
s,@NX_CONST_STRING_OBJCFLAGS@,$NX_CONST_STRING_OBJCFLAGS,;t t
16039
s,@NX_CONST_STRING_CLASS@,$NX_CONST_STRING_CLASS,;t t
16040
s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t
16041
s,@HAVE_PTS_STREAM_MODULES@,$HAVE_PTS_STREAM_MODULES,;t t
16042
s,@INCLUDE_STDINT@,$INCLUDE_STDINT,;t t
16043
s,@DEFINE_UINT8_T@,$DEFINE_UINT8_T,;t t
16044
s,@DEFINE_INT32_T@,$DEFINE_INT32_T,;t t
16045
s,@DEFINE_INT64_T@,$DEFINE_INT64_T,;t t
16046
s,@USE_ZLIB@,$USE_ZLIB,;t t
16047
s,@GS_PASS_ARGUMENTS@,$GS_PASS_ARGUMENTS,;t t
16048
s,@GS_FAKE_MAIN@,$GS_FAKE_MAIN,;t t
16049
s,@WITH_FFI@,$WITH_FFI,;t t
16050
s,@XML2_CONFIG@,$XML2_CONFIG,;t t
16051
s,@XML_CONFIG@,$XML_CONFIG,;t t
16052
s,@XML_CFLAGS@,$XML_CFLAGS,;t t
16053
s,@XML_LIBS@,$XML_LIBS,;t t
16054
s,@HAVE_LIBXSLT@,$HAVE_LIBXSLT,;t t
16055
s,@HAVE_LIBXML@,$HAVE_LIBXML,;t t
16056
s,@USE_GMP@,$USE_GMP,;t t
16057
s,@INCLUDE_FLAGS@,$INCLUDE_FLAGS,;t t
16058
s,@LDIR_FLAGS@,$LDIR_FLAGS,;t t
16059
s,@subdirs@,$subdirs,;t t
16060
s,@VERSION@,$VERSION,;t t
16061
s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
16062
s,@MINOR_VERSION@,$MINOR_VERSION,;t t
16063
s,@SUBMINOR_VERSION@,$SUBMINOR_VERSION,;t t
16064
s,@GCC_VERSION@,$GCC_VERSION,;t t
16065
s,@LIBOBJS@,$LIBOBJS,;t t
16066
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16071
cat >>$CONFIG_STATUS <<\_ACEOF
16072
# Split the substitutions into bite-sized pieces for seds with
16073
# small command number limits, like on Digital OSF/1 and HP-UX.
16074
ac_max_sed_lines=48
16075
ac_sed_frag=1 # Number of current file.
16076
ac_beg=1 # First line for current file.
16077
ac_end=$ac_max_sed_lines # Line after last line for current file.
16080
while $ac_more_lines; do
16081
if test $ac_beg -gt 1; then
16082
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16084
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16086
if test ! -s $tmp/subs.frag; then
16087
ac_more_lines=false
16089
# The purpose of the label and of the branching condition is to
16090
# speed up the sed processing (if there are no `@' at all, there
16091
# is no need to browse any of the substitutions).
16092
# These are the two extra sed commands mentioned above.
16094
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16095
if test -z "$ac_sed_cmds"; then
16096
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16098
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16100
ac_sed_frag=`expr $ac_sed_frag + 1`
16102
ac_end=`expr $ac_end + $ac_max_sed_lines`
16105
if test -z "$ac_sed_cmds"; then
16108
fi # test -n "$CONFIG_FILES"
16111
cat >>$CONFIG_STATUS <<\_ACEOF
16112
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16113
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16115
- | *:- | *:-:* ) # input from stdin
16117
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16118
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16119
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16120
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16121
* ) ac_file_in=$ac_file.in ;;
16124
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16125
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16126
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127
X"$ac_file" : 'X\(//\)[^/]' \| \
16128
X"$ac_file" : 'X\(//\)$' \| \
16129
X"$ac_file" : 'X\(/\)' \| \
16130
. : '\(.\)' 2>/dev/null ||
16132
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16133
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
16134
/^X\(\/\/\)$/{ s//\1/; q; }
16135
/^X\(\/\).*/{ s//\1/; q; }
16137
{ if $as_mkdir_p; then
16142
while test ! -d "$as_dir"; do
16143
as_dirs="$as_dir $as_dirs"
16144
as_dir=`(dirname "$as_dir") 2>/dev/null ||
16145
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146
X"$as_dir" : 'X\(//\)[^/]' \| \
16147
X"$as_dir" : 'X\(//\)$' \| \
16148
X"$as_dir" : 'X\(/\)' \| \
16149
. : '\(.\)' 2>/dev/null ||
16151
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16152
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
16153
/^X\(\/\/\)$/{ s//\1/; q; }
16154
/^X\(\/\).*/{ s//\1/; q; }
16157
test ! -n "$as_dirs" || mkdir $as_dirs
16158
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16159
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16160
{ (exit 1); exit 1; }; }; }
16164
if test "$ac_dir" != .; then
16165
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16166
# A "../" for each directory in $ac_dir_suffix.
16167
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16169
ac_dir_suffix= ac_top_builddir=
16173
.) # No --srcdir option. We are building in place.
16175
if test -z "$ac_top_builddir"; then
16178
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16180
[\\/]* | ?:[\\/]* ) # Absolute path.
16181
ac_srcdir=$srcdir$ac_dir_suffix;
16182
ac_top_srcdir=$srcdir ;;
16183
*) # Relative path.
16184
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16185
ac_top_srcdir=$ac_top_builddir$srcdir ;;
16188
# Do not use `cd foo && pwd` to compute absolute paths, because
16189
# the directories may not exist.
16191
.) ac_abs_builddir="$ac_dir";;
16194
.) ac_abs_builddir=`pwd`;;
16195
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16196
*) ac_abs_builddir=`pwd`/"$ac_dir";;
16199
case $ac_abs_builddir in
16200
.) ac_abs_top_builddir=${ac_top_builddir}.;;
16202
case ${ac_top_builddir}. in
16203
.) ac_abs_top_builddir=$ac_abs_builddir;;
16204
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16205
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16208
case $ac_abs_builddir in
16209
.) ac_abs_srcdir=$ac_srcdir;;
16212
.) ac_abs_srcdir=$ac_abs_builddir;;
16213
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16214
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16217
case $ac_abs_builddir in
16218
.) ac_abs_top_srcdir=$ac_top_srcdir;;
16220
case $ac_top_srcdir in
16221
.) ac_abs_top_srcdir=$ac_abs_builddir;;
16222
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16223
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16229
# Let's still pretend it is `configure' which instantiates (i.e., don't
16230
# use $as_me), people would be surprised to read:
16231
# /* config.h. Generated by config.status. */
16232
if test x"$ac_file" = x-; then
16235
configure_input="$ac_file. "
16237
configure_input=$configure_input"Generated from `echo $ac_file_in |
16238
sed 's,.*/,,'` by configure."
16240
# First look for the input files in the build tree, otherwise in the
16242
ac_file_inputs=`IFS=:
16243
for f in $ac_file_in; do
16245
-) echo $tmp/stdin ;;
16247
# Absolute (can't be DOS-style, as IFS=:)
16248
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16249
echo "$as_me: error: cannot find input file: $f" >&2;}
16250
{ (exit 1); exit 1; }; }
16253
if test -f "$f"; then
16256
elif test -f "$srcdir/$f"; then
16261
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16262
echo "$as_me: error: cannot find input file: $f" >&2;}
16263
{ (exit 1); exit 1; }; }
16266
done` || { (exit 1); exit 1; }
16268
if test x"$ac_file" != x-; then
16269
{ echo "$as_me:$LINENO: creating $ac_file" >&5
16270
echo "$as_me: creating $ac_file" >&6;}
16274
cat >>$CONFIG_STATUS <<_ACEOF
5825
s%@CFLAGS@%$CFLAGS%g
5826
s%@CPPFLAGS@%$CPPFLAGS%g
5827
s%@CXXFLAGS@%$CXXFLAGS%g
5828
s%@FFLAGS@%$FFLAGS%g
5830
s%@LDFLAGS@%$LDFLAGS%g
5832
s%@exec_prefix@%$exec_prefix%g
5833
s%@prefix@%$prefix%g
5834
s%@program_transform_name@%$program_transform_name%g
5835
s%@bindir@%$bindir%g
5836
s%@sbindir@%$sbindir%g
5837
s%@libexecdir@%$libexecdir%g
5838
s%@datadir@%$datadir%g
5839
s%@sysconfdir@%$sysconfdir%g
5840
s%@sharedstatedir@%$sharedstatedir%g
5841
s%@localstatedir@%$localstatedir%g
5842
s%@libdir@%$libdir%g
5843
s%@includedir@%$includedir%g
5844
s%@oldincludedir@%$oldincludedir%g
5845
s%@infodir@%$infodir%g
5846
s%@mandir@%$mandir%g
5848
s%@host_alias@%$host_alias%g
5849
s%@host_cpu@%$host_cpu%g
5850
s%@host_vendor@%$host_vendor%g
5851
s%@host_os@%$host_os%g
5852
s%@target@%$target%g
5853
s%@target_alias@%$target_alias%g
5854
s%@target_cpu@%$target_cpu%g
5855
s%@target_vendor@%$target_vendor%g
5856
s%@target_os@%$target_os%g
5858
s%@build_alias@%$build_alias%g
5859
s%@build_cpu@%$build_cpu%g
5860
s%@build_vendor@%$build_vendor%g
5861
s%@build_os@%$build_os%g
5864
s%@WHOAMI@%$WHOAMI%g
5865
s%@EXEEXT@%$EXEEXT%g
5866
s%@GS_WORDS_BIGENDIAN@%$GS_WORDS_BIGENDIAN%g
5867
s%@GS_SINT8@%$GS_SINT8%g
5868
s%@GS_UINT8@%$GS_UINT8%g
5869
s%@ac_cv_sizeof_short@%$ac_cv_sizeof_short%g
5870
s%@ac_cv_sizeof_int@%$ac_cv_sizeof_int%g
5871
s%@ac_cv_sizeof_long@%$ac_cv_sizeof_long%g
5872
s%@ac_cv_sizeof_long_long@%$ac_cv_sizeof_long_long%g
5873
s%@ac_cv_sizeof_float@%$ac_cv_sizeof_float%g
5874
s%@ac_cv_sizeof_double@%$ac_cv_sizeof_double%g
5875
s%@ac_cv_sizeof_voidp@%$ac_cv_sizeof_voidp%g
5876
s%@GS_ADDR@%$GS_ADDR%g
5877
s%@GS_SINT16@%$GS_SINT16%g
5878
s%@GS_UINT16@%$GS_UINT16%g
5879
s%@GS_SINT32@%$GS_SINT32%g
5880
s%@GS_UINT32@%$GS_UINT32%g
5881
s%@GS_SINT64@%$GS_SINT64%g
5882
s%@GS_UINT64@%$GS_UINT64%g
5883
s%@GS_HAVE_I64@%$GS_HAVE_I64%g
5884
s%@GS_SINT128@%$GS_SINT128%g
5885
s%@GS_UINT128@%$GS_UINT128%g
5886
s%@GS_HAVE_I128@%$GS_HAVE_I128%g
5887
s%@GS_FLT32@%$GS_FLT32%g
5888
s%@GS_FLT64@%$GS_FLT64%g
5889
s%@_GSC_S_SHT@%$_GSC_S_SHT%g
5890
s%@_GSC_S_INT@%$_GSC_S_INT%g
5891
s%@_GSC_S_LNG@%$_GSC_S_LNG%g
5892
s%@_GSC_S_LNG_LNG@%$_GSC_S_LNG_LNG%g
5893
s%@DYNAMIC_LINKER@%$DYNAMIC_LINKER%g
5894
s%@NX_CONST_STRING_CPPFLAGS@%$NX_CONST_STRING_CPPFLAGS%g
5895
s%@NX_CONST_STRING_CLASS@%$NX_CONST_STRING_CLASS%g
5896
s%@HAVE_PTHREAD_H@%$HAVE_PTHREAD_H%g
5897
s%@HAVE_ZLIB@%$HAVE_ZLIB%g
5898
s%@HAVE_PTS_STREAM_MODULES@%$HAVE_PTS_STREAM_MODULES%g
5899
s%@GS_PASS_ARGUMENTS@%$GS_PASS_ARGUMENTS%g
5900
s%@GS_FAKE_MAIN@%$GS_FAKE_MAIN%g
5901
s%@WITH_FFI@%$WITH_FFI%g
5902
s%@XML2_CONFIG@%$XML2_CONFIG%g
5903
s%@XML_CONFIG@%$XML_CONFIG%g
5904
s%@XML_CFLAGS@%$XML_CFLAGS%g
5905
s%@XML_LIBS@%$XML_LIBS%g
5906
s%@HAVE_LIBXML@%$HAVE_LIBXML%g
5907
s%@HAVE_GMP@%$HAVE_GMP%g
5908
s%@SYSTEM_DEFS@%$SYSTEM_DEFS%g
5909
s%@subdirs@%$subdirs%g
5910
s%@VERSION@%$VERSION%g
5911
s%@MAJOR_VERSION@%$MAJOR_VERSION%g
5912
s%@MINOR_VERSION@%$MINOR_VERSION%g
5913
s%@SUBMINOR_VERSION@%$SUBMINOR_VERSION%g
5914
s%@GCC_VERSION@%$GCC_VERSION%g
5919
cat >> $CONFIG_STATUS <<\EOF
5921
# Split the substitutions into bite-sized pieces for seds with
5922
# small command number limits, like on Digital OSF/1 and HP-UX.
5923
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5924
ac_file=1 # Number of current file.
5925
ac_beg=1 # First line for current file.
5926
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5929
while $ac_more_lines; do
5930
if test $ac_beg -gt 1; then
5931
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5933
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5935
if test ! -s conftest.s$ac_file; then
5937
rm -f conftest.s$ac_file
5939
if test -z "$ac_sed_cmds"; then
5940
ac_sed_cmds="sed -f conftest.s$ac_file"
5942
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5944
ac_file=`expr $ac_file + 1`
5946
ac_end=`expr $ac_end + $ac_max_sed_cmds`
16278
cat >>$CONFIG_STATUS <<\_ACEOF
16280
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16281
s,@configure_input@,$configure_input,;t t
16282
s,@srcdir@,$ac_srcdir,;t t
16283
s,@abs_srcdir@,$ac_abs_srcdir,;t t
16284
s,@top_srcdir@,$ac_top_srcdir,;t t
16285
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16286
s,@builddir@,$ac_builddir,;t t
16287
s,@abs_builddir@,$ac_abs_builddir,;t t
16288
s,@top_builddir@,$ac_top_builddir,;t t
16289
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16290
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16292
if test x"$ac_file" != x-; then
16293
mv $tmp/out $ac_file
5949
if test -z "$ac_sed_cmds"; then
5954
cat >> $CONFIG_STATUS <<EOF
5956
CONFIG_FILES=\${CONFIG_FILES-"config.mak base.make Headers/gnustep/base/GSConfig.h
5957
Headers/gnustep/base/preface.h"}
5959
cat >> $CONFIG_STATUS <<\EOF
5960
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5961
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5963
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5964
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5965
*) ac_file_in="${ac_file}.in" ;;
5968
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5970
# Remove last slash and all that follows it. Not all systems have dirname.
5971
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5972
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5973
# The file is in a subdirectory.
5974
test ! -d "$ac_dir" && mkdir "$ac_dir"
5975
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5976
# A "../" for each directory in $ac_dir_suffix.
5977
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5979
ac_dir_suffix= ac_dots=
5982
case "$ac_given_srcdir" in
5984
if test -z "$ac_dots"; then top_srcdir=.
5985
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5986
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5988
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5989
top_srcdir="$ac_dots$ac_given_srcdir" ;;
5993
echo creating "$ac_file"
5995
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5997
*Makefile*) ac_comsub="1i\\
5998
# $configure_input" ;;
6002
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6004
s%@configure_input@%$configure_input%g
6005
s%@srcdir@%$srcdir%g
6006
s%@top_srcdir@%$top_srcdir%g
6007
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16301
cat >>$CONFIG_STATUS <<\_ACEOF
16304
# CONFIG_HEADER section.
6011
16307
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6012
16308
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6014
16310
# ac_d sets the value in "#define NAME VALUE" lines.
6015
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6016
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6019
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6020
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6021
ac_uB='\([ ]\)%\1#\2define\3'
16311
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16312
ac_dB='[ ].*$,\1#\2'
16315
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16316
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16317
ac_uB='$,\1#\2define\3'
6024
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6025
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6026
ac_eB='$%\1#\2define\3'
6030
if test "${CONFIG_HEADERS+set}" != set; then
6032
cat >> $CONFIG_STATUS <<EOF
6033
CONFIG_HEADERS="Headers/gnustep/base/config.h"
6035
cat >> $CONFIG_STATUS <<\EOF
6037
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16321
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6038
16322
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6040
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6041
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6042
*) ac_file_in="${ac_file}.in" ;;
16324
- | *:- | *:-:* ) # input from stdin
16326
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16327
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16328
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16329
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16330
* ) ac_file_in=$ac_file.in ;;
6045
echo creating $ac_file
6047
rm -f conftest.frag conftest.in conftest.out
6048
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6049
cat $ac_file_inputs > conftest.in
6053
# Transform confdefs.h into a sed script conftest.vals that substitutes
6054
# the proper values into config.h.in to produce config.h. And first:
6055
# Protect against being on the right side of a sed subst in config.status.
6056
# Protect against being in an unquoted here document in config.status.
6058
cat > conftest.hdr <<\EOF
6061
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6065
sed -n -f conftest.hdr confdefs.h > conftest.vals
16333
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16334
echo "$as_me: creating $ac_file" >&6;}
16336
# First look for the input files in the build tree, otherwise in the
16338
ac_file_inputs=`IFS=:
16339
for f in $ac_file_in; do
16341
-) echo $tmp/stdin ;;
16343
# Absolute (can't be DOS-style, as IFS=:)
16344
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16345
echo "$as_me: error: cannot find input file: $f" >&2;}
16346
{ (exit 1); exit 1; }; }
16347
# Do quote $f, to prevent DOS paths from being IFS'd.
16350
if test -f "$f"; then
16353
elif test -f "$srcdir/$f"; then
16358
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16359
echo "$as_me: error: cannot find input file: $f" >&2;}
16360
{ (exit 1); exit 1; }; }
16363
done` || { (exit 1); exit 1; }
16364
# Remove the trailing spaces.
16365
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16369
# Transform confdefs.h into two sed scripts, `conftest.defines' and
16370
# `conftest.undefs', that substitutes the proper values into
16371
# config.h.in to produce config.h. The first handles `#define'
16372
# templates, and the second `#undef' templates.
16373
# And first: Protect against being on the right side of a sed subst in
16374
# config.status. Protect against being in an unquoted here document
16375
# in config.status.
16376
rm -f conftest.defines conftest.undefs
16377
# Using a here document instead of a string reduces the quoting nightmare.
16378
# Putting comments in sed scripts is not portable.
16380
# `end' is used to avoid that the second main sed command (meant for
16381
# 0-ary CPP macros) applies to n-ary macro definitions.
16382
# See the Autoconf documentation for `clear'.
16383
cat >confdef2sed.sed <<\_ACEOF
16388
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16390
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16393
# If some macros were called several times there might be several times
16394
# the same #defines, which is useless. Nevertheless, we may not want to
16395
# sort them, since we want the *last* AC-DEFINE to be honored.
16396
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16397
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16398
rm -f confdef2sed.sed
6068
16400
# This sed command replaces #undef with comments. This is necessary, for
6069
16401
# example, in the case of _POSIX_SOURCE, which is predefined and required
6070
16402
# on some systems where configure will not decide to define it.
6071
cat >> conftest.vals <<\EOF
6072
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6075
# Break up conftest.vals because some shells have a limit on
6076
# the size of here documents, and old seds have small limits too.
6081
ac_lines=`grep -c . conftest.vals`
6082
# grep -c gives empty output for an empty file on some AIX systems.
6083
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6084
# Write a limited-size here document to conftest.frag.
6085
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6086
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6088
sed -f conftest.frag conftest.in > conftest.out
6090
mv conftest.out conftest.in
6092
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6094
mv conftest.tail conftest.vals
6098
cat >> $CONFIG_STATUS <<\EOF
6099
rm -f conftest.frag conftest.h
6100
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6101
cat conftest.in >> conftest.h
6103
if cmp -s $ac_file conftest.h 2>/dev/null; then
6104
echo "$ac_file is unchanged"
6107
# Remove last slash and all that follows it. Not all systems have dirname.
6108
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6109
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6110
# The file is in a subdirectory.
6111
test ! -d "$ac_dir" && mkdir "$ac_dir"
16403
cat >>conftest.undefs <<\_ACEOF
16404
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16407
# Break up conftest.defines because some shells have a limit on the size
16408
# of here documents, and old seds have small limits too (100 cmds).
16409
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16410
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16411
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16412
echo ' :' >>$CONFIG_STATUS
16413
rm -f conftest.tail
16414
while grep . conftest.defines >/dev/null
16416
# Write a limited-size here document to $tmp/defines.sed.
16417
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16418
# Speed up: don't consider the non `#define' lines.
16419
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16420
# Work around the forget-to-reset-the-flag bug.
16421
echo 't clr' >>$CONFIG_STATUS
16422
echo ': clr' >>$CONFIG_STATUS
16423
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16425
sed -f $tmp/defines.sed $tmp/in >$tmp/out
16427
mv $tmp/out $tmp/in
16429
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16430
rm -f conftest.defines
16431
mv conftest.tail conftest.defines
16433
rm -f conftest.defines
16434
echo ' fi # grep' >>$CONFIG_STATUS
16435
echo >>$CONFIG_STATUS
16437
# Break up conftest.undefs because some shells have a limit on the size
16438
# of here documents, and old seds have small limits too (100 cmds).
16439
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16440
rm -f conftest.tail
16441
while grep . conftest.undefs >/dev/null
16443
# Write a limited-size here document to $tmp/undefs.sed.
16444
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16445
# Speed up: don't consider the non `#undef'
16446
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16447
# Work around the forget-to-reset-the-flag bug.
16448
echo 't clr' >>$CONFIG_STATUS
16449
echo ': clr' >>$CONFIG_STATUS
16450
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16452
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16454
mv $tmp/out $tmp/in
16456
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16457
rm -f conftest.undefs
16458
mv conftest.tail conftest.undefs
16460
rm -f conftest.undefs
16462
cat >>$CONFIG_STATUS <<\_ACEOF
16463
# Let's still pretend it is `configure' which instantiates (i.e., don't
16464
# use $as_me), people would be surprised to read:
16465
# /* config.h. Generated by config.status. */
16466
if test x"$ac_file" = x-; then
16467
echo "/* Generated by configure. */" >$tmp/config.h
16469
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16471
cat $tmp/in >>$tmp/config.h
16473
if test x"$ac_file" != x-; then
16474
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16475
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16476
echo "$as_me: $ac_file is unchanged" >&6;}
16478
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16479
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480
X"$ac_file" : 'X\(//\)[^/]' \| \
16481
X"$ac_file" : 'X\(//\)$' \| \
16482
X"$ac_file" : 'X\(/\)' \| \
16483
. : '\(.\)' 2>/dev/null ||
16485
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16486
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
16487
/^X\(\/\/\)$/{ s//\1/; q; }
16488
/^X\(\/\).*/{ s//\1/; q; }
16490
{ if $as_mkdir_p; then
16495
while test ! -d "$as_dir"; do
16496
as_dirs="$as_dir $as_dirs"
16497
as_dir=`(dirname "$as_dir") 2>/dev/null ||
16498
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16499
X"$as_dir" : 'X\(//\)[^/]' \| \
16500
X"$as_dir" : 'X\(//\)$' \| \
16501
X"$as_dir" : 'X\(/\)' \| \
16502
. : '\(.\)' 2>/dev/null ||
16504
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16505
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
16506
/^X\(\/\/\)$/{ s//\1/; q; }
16507
/^X\(\/\).*/{ s//\1/; q; }
16510
test ! -n "$as_dirs" || mkdir $as_dirs
16511
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16512
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16513
{ (exit 1); exit 1; }; }; }
16516
mv $tmp/config.h $ac_file
6114
mv conftest.h $ac_file
16520
rm -f $tmp/config.h
6119
cat >> $CONFIG_STATUS <<EOF
6122
cat >> $CONFIG_STATUS <<\EOF
16525
cat >>$CONFIG_STATUS <<\_ACEOF
16527
{ (exit 0); exit 0; }
6126
16529
chmod +x $CONFIG_STATUS
6127
rm -fr confdefs* $ac_clean_files
6128
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16530
ac_clean_files=$ac_clean_files_save
16533
# configure is writing to config.log, and then calls config.status.
16534
# config.status does its own redirection, appending to config.log.
16535
# Unfortunately, on DOS this fails, as config.log is still kept open
16536
# by configure, so config.status won't be able to write to it; its
16537
# output is simply discarded. So we exec the FD to /dev/null,
16538
# effectively closing config.log, so it can be properly (re)opened and
16539
# appended to by config.status. When coming back to configure, we
16540
# need to make the FD available again.
16541
if test "$no_create" != yes; then
16543
ac_config_status_args=
16544
test "$silent" = yes &&
16545
ac_config_status_args="$ac_config_status_args --quiet"
16547
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16549
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
16550
# would make configure fail if this is the last instruction.
16551
$ac_cs_success || { (exit 1); exit 1; }
16555
# CONFIG_SUBDIRS section.
6130
16557
if test "$no_recursion" != yes; then
6132
16559
# Remove --cache-file and --srcdir arguments so they do not pile up.