0 | 0 |
#! /bin/sh
|
1 | |
# From configure.in Revision: 92 .
|
|
1 |
# From configure.in Revision: 95 .
|
2 | 2 |
# Guess values for system-dependent variables and create Makefiles.
|
3 | 3 |
# Generated by GNU Autoconf 2.59 for nfdump 1.5.5.
|
4 | 4 |
#
|
|
311 | 311 |
# include <unistd.h>
|
312 | 312 |
#endif"
|
313 | 313 |
|
314 | |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP opt_objects FT_INCLUDES FT_LDFLAGS LFLAGS FTS_OBJ LIBOBJS HA_HAVE_SCANDIR LTLIBOBJS'
|
|
314 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RRD_LIBS CPP EGREP opt_objects FT_INCLUDES FT_LDFLAGS LFLAGS FTS_OBJ LIBOBJS HA_HAVE_SCANDIR LTLIBOBJS'
|
315 | 315 |
ac_subst_files=''
|
316 | 316 |
|
317 | 317 |
# Initialize some variables set by options.
|
|
4486 | 4486 |
if test "${enable_nfprofile+set}" = set; then
|
4487 | 4487 |
enableval="$enable_nfprofile"
|
4488 | 4488 |
|
4489 | |
|
4490 | |
echo "$as_me:$LINENO: checking for rrd_update in -lrrd" >&5
|
|
4489 |
echo "$as_me:$LINENO: checking for rrd_update in -lrrd" >&5
|
4491 | 4490 |
echo $ECHO_N "checking for rrd_update in -lrrd... $ECHO_C" >&6
|
4492 | 4491 |
if test "${ac_cv_lib_rrd_rrd_update+set}" = set; then
|
4493 | 4492 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
4552 | 4551 |
echo "$as_me:$LINENO: result: $ac_cv_lib_rrd_rrd_update" >&5
|
4553 | 4552 |
echo "${ECHO_T}$ac_cv_lib_rrd_rrd_update" >&6
|
4554 | 4553 |
if test $ac_cv_lib_rrd_rrd_update = yes; then
|
4555 | |
cat >>confdefs.h <<_ACEOF
|
|
4554 |
|
|
4555 |
cat >>config.h <<_ACEOF
|
4556 | 4556 |
#define HAVE_LIBRRD 1
|
4557 | 4557 |
_ACEOF
|
4558 | |
|
4559 | |
LIBS="-lrrd $LIBS"
|
|
4558 |
RRD_LIBS="-lrrd"
|
|
4559 |
|
|
4560 |
|
4560 | 4561 |
|
4561 | 4562 |
else
|
4562 | 4563 |
{ { echo "$as_me:$LINENO: error: Can not link librrd. Please specify --with-rrdpath=.. configure failed! " >&5
|
|
5723 | 5724 |
fi
|
5724 | 5725 |
|
5725 | 5726 |
|
5726 | |
|
5727 | |
|
5728 | |
|
5729 | |
|
5730 | |
|
5731 | |
|
5732 | |
|
5733 | |
|
5734 | |
|
5735 | |
|
5736 | |
for ac_header in arpa/inet.h fcntl.h netinet/in.h fts.h stdint.h stdlib.h string.h sys/socket.h syslog.h unistd.h iso/limits_iso.h
|
|
5727 |
for ac_header in nameser8_compat.h
|
5737 | 5728 |
do
|
5738 | 5729 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
5739 | 5730 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
5884 | 5875 |
|
5885 | 5876 |
|
5886 | 5877 |
|
5887 | |
if test "$ac_cv_header_fts_h" != yes; then
|
5888 | |
FTS_OBJ=fts_compat.o
|
5889 | |
fi
|
5890 | |
|
5891 | |
|
5892 | |
# Checks for typedefs, structures, and compiler characteristics.
|
5893 | |
echo "$as_me:$LINENO: checking for void *" >&5
|
5894 | |
echo $ECHO_N "checking for void *... $ECHO_C" >&6
|
5895 | |
if test "${ac_cv_type_void_p+set}" = set; then
|
5896 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5897 | |
else
|
5898 | |
cat >conftest.$ac_ext <<_ACEOF
|
5899 | |
/* confdefs.h. */
|
5900 | |
_ACEOF
|
5901 | |
cat confdefs.h >>conftest.$ac_ext
|
5902 | |
cat >>conftest.$ac_ext <<_ACEOF
|
5903 | |
/* end confdefs.h. */
|
5904 | |
$ac_includes_default
|
5905 | |
int
|
5906 | |
main ()
|
5907 | |
{
|
5908 | |
if ((void * *) 0)
|
5909 | |
return 0;
|
5910 | |
if (sizeof (void *))
|
5911 | |
return 0;
|
5912 | |
;
|
5913 | |
return 0;
|
5914 | |
}
|
5915 | |
_ACEOF
|
5916 | |
rm -f conftest.$ac_objext
|
5917 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5918 | |
(eval $ac_compile) 2>conftest.er1
|
5919 | |
ac_status=$?
|
5920 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
5921 | |
rm -f conftest.er1
|
5922 | |
cat conftest.err >&5
|
5923 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5924 | |
(exit $ac_status); } &&
|
5925 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
5926 | |
|| test ! -s conftest.err'
|
5927 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5928 | |
(eval $ac_try) 2>&5
|
5929 | |
ac_status=$?
|
5930 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5931 | |
(exit $ac_status); }; } &&
|
5932 | |
{ ac_try='test -s conftest.$ac_objext'
|
5933 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5934 | |
(eval $ac_try) 2>&5
|
5935 | |
ac_status=$?
|
5936 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5937 | |
(exit $ac_status); }; }; then
|
5938 | |
ac_cv_type_void_p=yes
|
5939 | |
else
|
5940 | |
echo "$as_me: failed program was:" >&5
|
5941 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
5942 | |
|
5943 | |
ac_cv_type_void_p=no
|
5944 | |
fi
|
5945 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
5946 | |
fi
|
5947 | |
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
|
5948 | |
echo "${ECHO_T}$ac_cv_type_void_p" >&6
|
5949 | |
|
5950 | |
echo "$as_me:$LINENO: checking size of void *" >&5
|
5951 | |
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
|
5952 | |
if test "${ac_cv_sizeof_void_p+set}" = set; then
|
5953 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5954 | |
else
|
5955 | |
if test "$ac_cv_type_void_p" = yes; then
|
5956 | |
# The cast to unsigned long works around a bug in the HP C Compiler
|
5957 | |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
5958 | |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
5959 | |
# This bug is HP SR number 8606223364.
|
5960 | |
if test "$cross_compiling" = yes; then
|
5961 | |
# Depending upon the size, compute the lo and hi bounds.
|
5962 | |
cat >conftest.$ac_ext <<_ACEOF
|
5963 | |
/* confdefs.h. */
|
5964 | |
_ACEOF
|
5965 | |
cat confdefs.h >>conftest.$ac_ext
|
5966 | |
cat >>conftest.$ac_ext <<_ACEOF
|
5967 | |
/* end confdefs.h. */
|
5968 | |
$ac_includes_default
|
5969 | |
int
|
5970 | |
main ()
|
5971 | |
{
|
5972 | |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
|
5973 | |
test_array [0] = 0
|
5974 | |
|
5975 | |
;
|
5976 | |
return 0;
|
5977 | |
}
|
5978 | |
_ACEOF
|
5979 | |
rm -f conftest.$ac_objext
|
5980 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5981 | |
(eval $ac_compile) 2>conftest.er1
|
5982 | |
ac_status=$?
|
5983 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
5984 | |
rm -f conftest.er1
|
5985 | |
cat conftest.err >&5
|
5986 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5987 | |
(exit $ac_status); } &&
|
5988 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
5989 | |
|| test ! -s conftest.err'
|
5990 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5991 | |
(eval $ac_try) 2>&5
|
5992 | |
ac_status=$?
|
5993 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5994 | |
(exit $ac_status); }; } &&
|
5995 | |
{ ac_try='test -s conftest.$ac_objext'
|
5996 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5997 | |
(eval $ac_try) 2>&5
|
5998 | |
ac_status=$?
|
5999 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6000 | |
(exit $ac_status); }; }; then
|
6001 | |
ac_lo=0 ac_mid=0
|
6002 | |
while :; do
|
6003 | |
cat >conftest.$ac_ext <<_ACEOF
|
6004 | |
/* confdefs.h. */
|
6005 | |
_ACEOF
|
6006 | |
cat confdefs.h >>conftest.$ac_ext
|
6007 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6008 | |
/* end confdefs.h. */
|
6009 | |
$ac_includes_default
|
6010 | |
int
|
6011 | |
main ()
|
6012 | |
{
|
6013 | |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
|
6014 | |
test_array [0] = 0
|
6015 | |
|
6016 | |
;
|
6017 | |
return 0;
|
6018 | |
}
|
6019 | |
_ACEOF
|
6020 | |
rm -f conftest.$ac_objext
|
6021 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6022 | |
(eval $ac_compile) 2>conftest.er1
|
6023 | |
ac_status=$?
|
6024 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6025 | |
rm -f conftest.er1
|
6026 | |
cat conftest.err >&5
|
6027 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6028 | |
(exit $ac_status); } &&
|
6029 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6030 | |
|| test ! -s conftest.err'
|
6031 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6032 | |
(eval $ac_try) 2>&5
|
6033 | |
ac_status=$?
|
6034 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6035 | |
(exit $ac_status); }; } &&
|
6036 | |
{ ac_try='test -s conftest.$ac_objext'
|
6037 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6038 | |
(eval $ac_try) 2>&5
|
6039 | |
ac_status=$?
|
6040 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6041 | |
(exit $ac_status); }; }; then
|
6042 | |
ac_hi=$ac_mid; break
|
6043 | |
else
|
6044 | |
echo "$as_me: failed program was:" >&5
|
6045 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6046 | |
|
6047 | |
ac_lo=`expr $ac_mid + 1`
|
6048 | |
if test $ac_lo -le $ac_mid; then
|
6049 | |
ac_lo= ac_hi=
|
6050 | |
break
|
6051 | |
fi
|
6052 | |
ac_mid=`expr 2 '*' $ac_mid + 1`
|
6053 | |
fi
|
6054 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6055 | |
done
|
6056 | |
else
|
6057 | |
echo "$as_me: failed program was:" >&5
|
6058 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6059 | |
|
6060 | |
cat >conftest.$ac_ext <<_ACEOF
|
6061 | |
/* confdefs.h. */
|
6062 | |
_ACEOF
|
6063 | |
cat confdefs.h >>conftest.$ac_ext
|
6064 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6065 | |
/* end confdefs.h. */
|
6066 | |
$ac_includes_default
|
6067 | |
int
|
6068 | |
main ()
|
6069 | |
{
|
6070 | |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
|
6071 | |
test_array [0] = 0
|
6072 | |
|
6073 | |
;
|
6074 | |
return 0;
|
6075 | |
}
|
6076 | |
_ACEOF
|
6077 | |
rm -f conftest.$ac_objext
|
6078 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6079 | |
(eval $ac_compile) 2>conftest.er1
|
6080 | |
ac_status=$?
|
6081 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6082 | |
rm -f conftest.er1
|
6083 | |
cat conftest.err >&5
|
6084 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6085 | |
(exit $ac_status); } &&
|
6086 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6087 | |
|| test ! -s conftest.err'
|
6088 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6089 | |
(eval $ac_try) 2>&5
|
6090 | |
ac_status=$?
|
6091 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6092 | |
(exit $ac_status); }; } &&
|
6093 | |
{ ac_try='test -s conftest.$ac_objext'
|
6094 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6095 | |
(eval $ac_try) 2>&5
|
6096 | |
ac_status=$?
|
6097 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6098 | |
(exit $ac_status); }; }; then
|
6099 | |
ac_hi=-1 ac_mid=-1
|
6100 | |
while :; do
|
6101 | |
cat >conftest.$ac_ext <<_ACEOF
|
6102 | |
/* confdefs.h. */
|
6103 | |
_ACEOF
|
6104 | |
cat confdefs.h >>conftest.$ac_ext
|
6105 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6106 | |
/* end confdefs.h. */
|
6107 | |
$ac_includes_default
|
6108 | |
int
|
6109 | |
main ()
|
6110 | |
{
|
6111 | |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
|
6112 | |
test_array [0] = 0
|
6113 | |
|
6114 | |
;
|
6115 | |
return 0;
|
6116 | |
}
|
6117 | |
_ACEOF
|
6118 | |
rm -f conftest.$ac_objext
|
6119 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6120 | |
(eval $ac_compile) 2>conftest.er1
|
6121 | |
ac_status=$?
|
6122 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6123 | |
rm -f conftest.er1
|
6124 | |
cat conftest.err >&5
|
6125 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6126 | |
(exit $ac_status); } &&
|
6127 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6128 | |
|| test ! -s conftest.err'
|
6129 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6130 | |
(eval $ac_try) 2>&5
|
6131 | |
ac_status=$?
|
6132 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6133 | |
(exit $ac_status); }; } &&
|
6134 | |
{ ac_try='test -s conftest.$ac_objext'
|
6135 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6136 | |
(eval $ac_try) 2>&5
|
6137 | |
ac_status=$?
|
6138 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6139 | |
(exit $ac_status); }; }; then
|
6140 | |
ac_lo=$ac_mid; break
|
6141 | |
else
|
6142 | |
echo "$as_me: failed program was:" >&5
|
6143 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6144 | |
|
6145 | |
ac_hi=`expr '(' $ac_mid ')' - 1`
|
6146 | |
if test $ac_mid -le $ac_hi; then
|
6147 | |
ac_lo= ac_hi=
|
6148 | |
break
|
6149 | |
fi
|
6150 | |
ac_mid=`expr 2 '*' $ac_mid`
|
6151 | |
fi
|
6152 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6153 | |
done
|
6154 | |
else
|
6155 | |
echo "$as_me: failed program was:" >&5
|
6156 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6157 | |
|
6158 | |
ac_lo= ac_hi=
|
6159 | |
fi
|
6160 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6161 | |
fi
|
6162 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6163 | |
# Binary search between lo and hi bounds.
|
6164 | |
while test "x$ac_lo" != "x$ac_hi"; do
|
6165 | |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
6166 | |
cat >conftest.$ac_ext <<_ACEOF
|
6167 | |
/* confdefs.h. */
|
6168 | |
_ACEOF
|
6169 | |
cat confdefs.h >>conftest.$ac_ext
|
6170 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6171 | |
/* end confdefs.h. */
|
6172 | |
$ac_includes_default
|
6173 | |
int
|
6174 | |
main ()
|
6175 | |
{
|
6176 | |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
|
6177 | |
test_array [0] = 0
|
6178 | |
|
6179 | |
;
|
6180 | |
return 0;
|
6181 | |
}
|
6182 | |
_ACEOF
|
6183 | |
rm -f conftest.$ac_objext
|
6184 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6185 | |
(eval $ac_compile) 2>conftest.er1
|
6186 | |
ac_status=$?
|
6187 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6188 | |
rm -f conftest.er1
|
6189 | |
cat conftest.err >&5
|
6190 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6191 | |
(exit $ac_status); } &&
|
6192 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6193 | |
|| test ! -s conftest.err'
|
6194 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6195 | |
(eval $ac_try) 2>&5
|
6196 | |
ac_status=$?
|
6197 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6198 | |
(exit $ac_status); }; } &&
|
6199 | |
{ ac_try='test -s conftest.$ac_objext'
|
6200 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6201 | |
(eval $ac_try) 2>&5
|
6202 | |
ac_status=$?
|
6203 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6204 | |
(exit $ac_status); }; }; then
|
6205 | |
ac_hi=$ac_mid
|
6206 | |
else
|
6207 | |
echo "$as_me: failed program was:" >&5
|
6208 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6209 | |
|
6210 | |
ac_lo=`expr '(' $ac_mid ')' + 1`
|
6211 | |
fi
|
6212 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6213 | |
done
|
6214 | |
case $ac_lo in
|
6215 | |
?*) ac_cv_sizeof_void_p=$ac_lo;;
|
6216 | |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
|
6217 | |
See \`config.log' for more details." >&5
|
6218 | |
echo "$as_me: error: cannot compute sizeof (void *), 77
|
6219 | |
See \`config.log' for more details." >&2;}
|
6220 | |
{ (exit 1); exit 1; }; } ;;
|
6221 | |
esac
|
6222 | |
else
|
6223 | |
if test "$cross_compiling" = yes; then
|
6224 | |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
6225 | |
See \`config.log' for more details." >&5
|
6226 | |
echo "$as_me: error: cannot run test program while cross compiling
|
6227 | |
See \`config.log' for more details." >&2;}
|
6228 | |
{ (exit 1); exit 1; }; }
|
6229 | |
else
|
6230 | |
cat >conftest.$ac_ext <<_ACEOF
|
6231 | |
/* confdefs.h. */
|
6232 | |
_ACEOF
|
6233 | |
cat confdefs.h >>conftest.$ac_ext
|
6234 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6235 | |
/* end confdefs.h. */
|
6236 | |
$ac_includes_default
|
6237 | |
long longval () { return (long) (sizeof (void *)); }
|
6238 | |
unsigned long ulongval () { return (long) (sizeof (void *)); }
|
6239 | |
#include <stdio.h>
|
6240 | |
#include <stdlib.h>
|
6241 | |
int
|
6242 | |
main ()
|
6243 | |
{
|
6244 | |
|
6245 | |
FILE *f = fopen ("conftest.val", "w");
|
6246 | |
if (! f)
|
6247 | |
exit (1);
|
6248 | |
if (((long) (sizeof (void *))) < 0)
|
6249 | |
{
|
6250 | |
long i = longval ();
|
6251 | |
if (i != ((long) (sizeof (void *))))
|
6252 | |
exit (1);
|
6253 | |
fprintf (f, "%ld\n", i);
|
6254 | |
}
|
6255 | |
else
|
6256 | |
{
|
6257 | |
unsigned long i = ulongval ();
|
6258 | |
if (i != ((long) (sizeof (void *))))
|
6259 | |
exit (1);
|
6260 | |
fprintf (f, "%lu\n", i);
|
6261 | |
}
|
6262 | |
exit (ferror (f) || fclose (f) != 0);
|
6263 | |
|
6264 | |
;
|
6265 | |
return 0;
|
6266 | |
}
|
6267 | |
_ACEOF
|
6268 | |
rm -f conftest$ac_exeext
|
6269 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6270 | |
(eval $ac_link) 2>&5
|
6271 | |
ac_status=$?
|
6272 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6273 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
6274 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6275 | |
(eval $ac_try) 2>&5
|
6276 | |
ac_status=$?
|
6277 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6278 | |
(exit $ac_status); }; }; then
|
6279 | |
ac_cv_sizeof_void_p=`cat conftest.val`
|
6280 | |
else
|
6281 | |
echo "$as_me: program exited with status $ac_status" >&5
|
6282 | |
echo "$as_me: failed program was:" >&5
|
6283 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6284 | |
|
6285 | |
( exit $ac_status )
|
6286 | |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
|
6287 | |
See \`config.log' for more details." >&5
|
6288 | |
echo "$as_me: error: cannot compute sizeof (void *), 77
|
6289 | |
See \`config.log' for more details." >&2;}
|
6290 | |
{ (exit 1); exit 1; }; }
|
6291 | |
fi
|
6292 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
6293 | |
fi
|
6294 | |
fi
|
6295 | |
rm -f conftest.val
|
6296 | |
else
|
6297 | |
ac_cv_sizeof_void_p=0
|
6298 | |
fi
|
6299 | |
fi
|
6300 | |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
|
6301 | |
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
|
6302 | |
cat >>confdefs.h <<_ACEOF
|
6303 | |
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
6304 | |
_ACEOF
|
6305 | |
|
6306 | |
|
6307 | |
|
6308 | |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
6309 | |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
6310 | |
if test "${ac_cv_c_const+set}" = set; then
|
6311 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6312 | |
else
|
6313 | |
cat >conftest.$ac_ext <<_ACEOF
|
6314 | |
/* confdefs.h. */
|
6315 | |
_ACEOF
|
6316 | |
cat confdefs.h >>conftest.$ac_ext
|
6317 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6318 | |
/* end confdefs.h. */
|
6319 | |
|
6320 | |
int
|
6321 | |
main ()
|
6322 | |
{
|
6323 | |
/* FIXME: Include the comments suggested by Paul. */
|
6324 | |
#ifndef __cplusplus
|
6325 | |
/* Ultrix mips cc rejects this. */
|
6326 | |
typedef int charset[2];
|
6327 | |
const charset x;
|
6328 | |
/* SunOS 4.1.1 cc rejects this. */
|
6329 | |
char const *const *ccp;
|
6330 | |
char **p;
|
6331 | |
/* NEC SVR4.0.2 mips cc rejects this. */
|
6332 | |
struct point {int x, y;};
|
6333 | |
static struct point const zero = {0,0};
|
6334 | |
/* AIX XL C 1.02.0.0 rejects this.
|
6335 | |
It does not let you subtract one const X* pointer from another in
|
6336 | |
an arm of an if-expression whose if-part is not a constant
|
6337 | |
expression */
|
6338 | |
const char *g = "string";
|
6339 | |
ccp = &g + (g ? g-g : 0);
|
6340 | |
/* HPUX 7.0 cc rejects these. */
|
6341 | |
++ccp;
|
6342 | |
p = (char**) ccp;
|
6343 | |
ccp = (char const *const *) p;
|
6344 | |
{ /* SCO 3.2v4 cc rejects this. */
|
6345 | |
char *t;
|
6346 | |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
6347 | |
|
6348 | |
*t++ = 0;
|
6349 | |
}
|
6350 | |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
6351 | |
int x[] = {25, 17};
|
6352 | |
const int *foo = &x[0];
|
6353 | |
++foo;
|
6354 | |
}
|
6355 | |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
6356 | |
typedef const int *iptr;
|
6357 | |
iptr p = 0;
|
6358 | |
++p;
|
6359 | |
}
|
6360 | |
{ /* AIX XL C 1.02.0.0 rejects this saying
|
6361 | |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
6362 | |
struct s { int j; const int *ap[3]; };
|
6363 | |
struct s *b; b->j = 5;
|
6364 | |
}
|
6365 | |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
6366 | |
const int foo = 10;
|
6367 | |
}
|
6368 | |
#endif
|
6369 | |
|
6370 | |
;
|
6371 | |
return 0;
|
6372 | |
}
|
6373 | |
_ACEOF
|
6374 | |
rm -f conftest.$ac_objext
|
6375 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6376 | |
(eval $ac_compile) 2>conftest.er1
|
6377 | |
ac_status=$?
|
6378 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6379 | |
rm -f conftest.er1
|
6380 | |
cat conftest.err >&5
|
6381 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6382 | |
(exit $ac_status); } &&
|
6383 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6384 | |
|| test ! -s conftest.err'
|
6385 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6386 | |
(eval $ac_try) 2>&5
|
6387 | |
ac_status=$?
|
6388 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6389 | |
(exit $ac_status); }; } &&
|
6390 | |
{ ac_try='test -s conftest.$ac_objext'
|
6391 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6392 | |
(eval $ac_try) 2>&5
|
6393 | |
ac_status=$?
|
6394 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6395 | |
(exit $ac_status); }; }; then
|
6396 | |
ac_cv_c_const=yes
|
6397 | |
else
|
6398 | |
echo "$as_me: failed program was:" >&5
|
6399 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6400 | |
|
6401 | |
ac_cv_c_const=no
|
6402 | |
fi
|
6403 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6404 | |
fi
|
6405 | |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
6406 | |
echo "${ECHO_T}$ac_cv_c_const" >&6
|
6407 | |
if test $ac_cv_c_const = no; then
|
6408 | |
|
6409 | |
cat >>confdefs.h <<\_ACEOF
|
6410 | |
#define const
|
6411 | |
_ACEOF
|
6412 | |
|
6413 | |
fi
|
6414 | |
|
6415 | |
echo "$as_me:$LINENO: checking for inline" >&5
|
6416 | |
echo $ECHO_N "checking for inline... $ECHO_C" >&6
|
6417 | |
if test "${ac_cv_c_inline+set}" = set; then
|
6418 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6419 | |
else
|
6420 | |
ac_cv_c_inline=no
|
6421 | |
for ac_kw in inline __inline__ __inline; do
|
6422 | |
cat >conftest.$ac_ext <<_ACEOF
|
6423 | |
/* confdefs.h. */
|
6424 | |
_ACEOF
|
6425 | |
cat confdefs.h >>conftest.$ac_ext
|
6426 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6427 | |
/* end confdefs.h. */
|
6428 | |
#ifndef __cplusplus
|
6429 | |
typedef int foo_t;
|
6430 | |
static $ac_kw foo_t static_foo () {return 0; }
|
6431 | |
$ac_kw foo_t foo () {return 0; }
|
6432 | |
#endif
|
6433 | |
|
6434 | |
_ACEOF
|
6435 | |
rm -f conftest.$ac_objext
|
6436 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6437 | |
(eval $ac_compile) 2>conftest.er1
|
6438 | |
ac_status=$?
|
6439 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6440 | |
rm -f conftest.er1
|
6441 | |
cat conftest.err >&5
|
6442 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6443 | |
(exit $ac_status); } &&
|
6444 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6445 | |
|| test ! -s conftest.err'
|
6446 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6447 | |
(eval $ac_try) 2>&5
|
6448 | |
ac_status=$?
|
6449 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6450 | |
(exit $ac_status); }; } &&
|
6451 | |
{ ac_try='test -s conftest.$ac_objext'
|
6452 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6453 | |
(eval $ac_try) 2>&5
|
6454 | |
ac_status=$?
|
6455 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6456 | |
(exit $ac_status); }; }; then
|
6457 | |
ac_cv_c_inline=$ac_kw; break
|
6458 | |
else
|
6459 | |
echo "$as_me: failed program was:" >&5
|
6460 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6461 | |
|
6462 | |
fi
|
6463 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6464 | |
done
|
6465 | |
|
6466 | |
fi
|
6467 | |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
|
6468 | |
echo "${ECHO_T}$ac_cv_c_inline" >&6
|
6469 | |
|
6470 | |
|
6471 | |
case $ac_cv_c_inline in
|
6472 | |
inline | yes) ;;
|
6473 | |
*)
|
6474 | |
case $ac_cv_c_inline in
|
6475 | |
no) ac_val=;;
|
6476 | |
*) ac_val=$ac_cv_c_inline;;
|
6477 | |
esac
|
6478 | |
cat >>confdefs.h <<_ACEOF
|
6479 | |
#ifndef __cplusplus
|
6480 | |
#define inline $ac_val
|
6481 | |
#endif
|
6482 | |
_ACEOF
|
6483 | |
;;
|
6484 | |
esac
|
6485 | |
|
6486 | |
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
6487 | |
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
6488 | |
if test "${ac_cv_c_bigendian+set}" = set; then
|
6489 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6490 | |
else
|
6491 | |
# See if sys/param.h defines the BYTE_ORDER macro.
|
6492 | |
cat >conftest.$ac_ext <<_ACEOF
|
6493 | |
/* confdefs.h. */
|
6494 | |
_ACEOF
|
6495 | |
cat confdefs.h >>conftest.$ac_ext
|
6496 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6497 | |
/* end confdefs.h. */
|
6498 | |
#include <sys/types.h>
|
6499 | |
#include <sys/param.h>
|
6500 | |
|
6501 | |
int
|
6502 | |
main ()
|
6503 | |
{
|
6504 | |
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
6505 | |
bogus endian macros
|
6506 | |
#endif
|
6507 | |
|
6508 | |
;
|
6509 | |
return 0;
|
6510 | |
}
|
6511 | |
_ACEOF
|
6512 | |
rm -f conftest.$ac_objext
|
6513 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6514 | |
(eval $ac_compile) 2>conftest.er1
|
6515 | |
ac_status=$?
|
6516 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6517 | |
rm -f conftest.er1
|
6518 | |
cat conftest.err >&5
|
6519 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6520 | |
(exit $ac_status); } &&
|
6521 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6522 | |
|| test ! -s conftest.err'
|
6523 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6524 | |
(eval $ac_try) 2>&5
|
6525 | |
ac_status=$?
|
6526 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6527 | |
(exit $ac_status); }; } &&
|
6528 | |
{ ac_try='test -s conftest.$ac_objext'
|
6529 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6530 | |
(eval $ac_try) 2>&5
|
6531 | |
ac_status=$?
|
6532 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6533 | |
(exit $ac_status); }; }; then
|
6534 | |
# It does; now see whether it defined to BIG_ENDIAN or not.
|
6535 | |
cat >conftest.$ac_ext <<_ACEOF
|
6536 | |
/* confdefs.h. */
|
6537 | |
_ACEOF
|
6538 | |
cat confdefs.h >>conftest.$ac_ext
|
6539 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6540 | |
/* end confdefs.h. */
|
6541 | |
#include <sys/types.h>
|
6542 | |
#include <sys/param.h>
|
6543 | |
|
6544 | |
int
|
6545 | |
main ()
|
6546 | |
{
|
6547 | |
#if BYTE_ORDER != BIG_ENDIAN
|
6548 | |
not big endian
|
6549 | |
#endif
|
6550 | |
|
6551 | |
;
|
6552 | |
return 0;
|
6553 | |
}
|
6554 | |
_ACEOF
|
6555 | |
rm -f conftest.$ac_objext
|
6556 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6557 | |
(eval $ac_compile) 2>conftest.er1
|
6558 | |
ac_status=$?
|
6559 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6560 | |
rm -f conftest.er1
|
6561 | |
cat conftest.err >&5
|
6562 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6563 | |
(exit $ac_status); } &&
|
6564 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6565 | |
|| test ! -s conftest.err'
|
6566 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6567 | |
(eval $ac_try) 2>&5
|
6568 | |
ac_status=$?
|
6569 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6570 | |
(exit $ac_status); }; } &&
|
6571 | |
{ ac_try='test -s conftest.$ac_objext'
|
6572 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6573 | |
(eval $ac_try) 2>&5
|
6574 | |
ac_status=$?
|
6575 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6576 | |
(exit $ac_status); }; }; then
|
6577 | |
ac_cv_c_bigendian=yes
|
6578 | |
else
|
6579 | |
echo "$as_me: failed program was:" >&5
|
6580 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6581 | |
|
6582 | |
ac_cv_c_bigendian=no
|
6583 | |
fi
|
6584 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6585 | |
else
|
6586 | |
echo "$as_me: failed program was:" >&5
|
6587 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6588 | |
|
6589 | |
# It does not; compile a test program.
|
6590 | |
if test "$cross_compiling" = yes; then
|
6591 | |
# try to guess the endianness by grepping values into an object file
|
6592 | |
ac_cv_c_bigendian=unknown
|
6593 | |
cat >conftest.$ac_ext <<_ACEOF
|
6594 | |
/* confdefs.h. */
|
6595 | |
_ACEOF
|
6596 | |
cat confdefs.h >>conftest.$ac_ext
|
6597 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6598 | |
/* end confdefs.h. */
|
6599 | |
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
6600 | |
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
6601 | |
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
6602 | |
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
6603 | |
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
6604 | |
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
6605 | |
int
|
6606 | |
main ()
|
6607 | |
{
|
6608 | |
_ascii (); _ebcdic ();
|
6609 | |
;
|
6610 | |
return 0;
|
6611 | |
}
|
6612 | |
_ACEOF
|
6613 | |
rm -f conftest.$ac_objext
|
6614 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6615 | |
(eval $ac_compile) 2>conftest.er1
|
6616 | |
ac_status=$?
|
6617 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6618 | |
rm -f conftest.er1
|
6619 | |
cat conftest.err >&5
|
6620 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6621 | |
(exit $ac_status); } &&
|
6622 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6623 | |
|| test ! -s conftest.err'
|
6624 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6625 | |
(eval $ac_try) 2>&5
|
6626 | |
ac_status=$?
|
6627 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6628 | |
(exit $ac_status); }; } &&
|
6629 | |
{ ac_try='test -s conftest.$ac_objext'
|
6630 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6631 | |
(eval $ac_try) 2>&5
|
6632 | |
ac_status=$?
|
6633 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6634 | |
(exit $ac_status); }; }; then
|
6635 | |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
6636 | |
ac_cv_c_bigendian=yes
|
6637 | |
fi
|
6638 | |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
6639 | |
if test "$ac_cv_c_bigendian" = unknown; then
|
6640 | |
ac_cv_c_bigendian=no
|
6641 | |
else
|
6642 | |
# finding both strings is unlikely to happen, but who knows?
|
6643 | |
ac_cv_c_bigendian=unknown
|
6644 | |
fi
|
6645 | |
fi
|
6646 | |
else
|
6647 | |
echo "$as_me: failed program was:" >&5
|
6648 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6649 | |
|
6650 | |
fi
|
6651 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6652 | |
else
|
6653 | |
cat >conftest.$ac_ext <<_ACEOF
|
6654 | |
/* confdefs.h. */
|
6655 | |
_ACEOF
|
6656 | |
cat confdefs.h >>conftest.$ac_ext
|
6657 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6658 | |
/* end confdefs.h. */
|
6659 | |
int
|
6660 | |
main ()
|
6661 | |
{
|
6662 | |
/* Are we little or big endian? From Harbison&Steele. */
|
6663 | |
union
|
6664 | |
{
|
6665 | |
long l;
|
6666 | |
char c[sizeof (long)];
|
6667 | |
} u;
|
6668 | |
u.l = 1;
|
6669 | |
exit (u.c[sizeof (long) - 1] == 1);
|
6670 | |
}
|
6671 | |
_ACEOF
|
6672 | |
rm -f conftest$ac_exeext
|
6673 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6674 | |
(eval $ac_link) 2>&5
|
6675 | |
ac_status=$?
|
6676 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6677 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
6678 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6679 | |
(eval $ac_try) 2>&5
|
6680 | |
ac_status=$?
|
6681 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6682 | |
(exit $ac_status); }; }; then
|
6683 | |
ac_cv_c_bigendian=no
|
6684 | |
else
|
6685 | |
echo "$as_me: program exited with status $ac_status" >&5
|
6686 | |
echo "$as_me: failed program was:" >&5
|
6687 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6688 | |
|
6689 | |
( exit $ac_status )
|
6690 | |
ac_cv_c_bigendian=yes
|
6691 | |
fi
|
6692 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
6693 | |
fi
|
6694 | |
fi
|
6695 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6696 | |
fi
|
6697 | |
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
6698 | |
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
6699 | |
case $ac_cv_c_bigendian in
|
6700 | |
yes)
|
6701 | |
|
6702 | |
cat >>confdefs.h <<\_ACEOF
|
6703 | |
#define WORDS_BIGENDIAN 1
|
6704 | |
_ACEOF
|
6705 | |
;;
|
6706 | |
no)
|
6707 | |
;;
|
6708 | |
*)
|
6709 | |
{ { echo "$as_me:$LINENO: error: unknown endianness
|
6710 | |
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
6711 | |
echo "$as_me: error: unknown endianness
|
6712 | |
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
6713 | |
{ (exit 1); exit 1; }; } ;;
|
6714 | |
esac
|
6715 | |
|
6716 | |
echo "$as_me:$LINENO: checking for pid_t" >&5
|
6717 | |
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
|
6718 | |
if test "${ac_cv_type_pid_t+set}" = set; then
|
6719 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6720 | |
else
|
6721 | |
cat >conftest.$ac_ext <<_ACEOF
|
6722 | |
/* confdefs.h. */
|
6723 | |
_ACEOF
|
6724 | |
cat confdefs.h >>conftest.$ac_ext
|
6725 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6726 | |
/* end confdefs.h. */
|
6727 | |
$ac_includes_default
|
6728 | |
int
|
6729 | |
main ()
|
6730 | |
{
|
6731 | |
if ((pid_t *) 0)
|
6732 | |
return 0;
|
6733 | |
if (sizeof (pid_t))
|
6734 | |
return 0;
|
6735 | |
;
|
6736 | |
return 0;
|
6737 | |
}
|
6738 | |
_ACEOF
|
6739 | |
rm -f conftest.$ac_objext
|
6740 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6741 | |
(eval $ac_compile) 2>conftest.er1
|
6742 | |
ac_status=$?
|
6743 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6744 | |
rm -f conftest.er1
|
6745 | |
cat conftest.err >&5
|
6746 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6747 | |
(exit $ac_status); } &&
|
6748 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6749 | |
|| test ! -s conftest.err'
|
6750 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6751 | |
(eval $ac_try) 2>&5
|
6752 | |
ac_status=$?
|
6753 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6754 | |
(exit $ac_status); }; } &&
|
6755 | |
{ ac_try='test -s conftest.$ac_objext'
|
6756 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6757 | |
(eval $ac_try) 2>&5
|
6758 | |
ac_status=$?
|
6759 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6760 | |
(exit $ac_status); }; }; then
|
6761 | |
ac_cv_type_pid_t=yes
|
6762 | |
else
|
6763 | |
echo "$as_me: failed program was:" >&5
|
6764 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6765 | |
|
6766 | |
ac_cv_type_pid_t=no
|
6767 | |
fi
|
6768 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6769 | |
fi
|
6770 | |
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
|
6771 | |
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
|
6772 | |
if test $ac_cv_type_pid_t = yes; then
|
6773 | |
:
|
6774 | |
else
|
6775 | |
|
6776 | |
cat >>confdefs.h <<_ACEOF
|
6777 | |
#define pid_t int
|
6778 | |
_ACEOF
|
6779 | |
|
6780 | |
fi
|
6781 | |
|
6782 | |
echo "$as_me:$LINENO: checking for size_t" >&5
|
6783 | |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
6784 | |
if test "${ac_cv_type_size_t+set}" = set; then
|
6785 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6786 | |
else
|
6787 | |
cat >conftest.$ac_ext <<_ACEOF
|
6788 | |
/* confdefs.h. */
|
6789 | |
_ACEOF
|
6790 | |
cat confdefs.h >>conftest.$ac_ext
|
6791 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6792 | |
/* end confdefs.h. */
|
6793 | |
$ac_includes_default
|
6794 | |
int
|
6795 | |
main ()
|
6796 | |
{
|
6797 | |
if ((size_t *) 0)
|
6798 | |
return 0;
|
6799 | |
if (sizeof (size_t))
|
6800 | |
return 0;
|
6801 | |
;
|
6802 | |
return 0;
|
6803 | |
}
|
6804 | |
_ACEOF
|
6805 | |
rm -f conftest.$ac_objext
|
6806 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6807 | |
(eval $ac_compile) 2>conftest.er1
|
6808 | |
ac_status=$?
|
6809 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6810 | |
rm -f conftest.er1
|
6811 | |
cat conftest.err >&5
|
6812 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6813 | |
(exit $ac_status); } &&
|
6814 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6815 | |
|| test ! -s conftest.err'
|
6816 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6817 | |
(eval $ac_try) 2>&5
|
6818 | |
ac_status=$?
|
6819 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6820 | |
(exit $ac_status); }; } &&
|
6821 | |
{ ac_try='test -s conftest.$ac_objext'
|
6822 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6823 | |
(eval $ac_try) 2>&5
|
6824 | |
ac_status=$?
|
6825 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6826 | |
(exit $ac_status); }; }; then
|
6827 | |
ac_cv_type_size_t=yes
|
6828 | |
else
|
6829 | |
echo "$as_me: failed program was:" >&5
|
6830 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6831 | |
|
6832 | |
ac_cv_type_size_t=no
|
6833 | |
fi
|
6834 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6835 | |
fi
|
6836 | |
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
6837 | |
echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
6838 | |
if test $ac_cv_type_size_t = yes; then
|
6839 | |
:
|
6840 | |
else
|
6841 | |
|
6842 | |
cat >>confdefs.h <<_ACEOF
|
6843 | |
#define size_t unsigned
|
6844 | |
_ACEOF
|
6845 | |
|
6846 | |
fi
|
6847 | |
|
6848 | |
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
6849 | |
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
6850 | |
if test "${ac_cv_struct_tm+set}" = set; then
|
6851 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6852 | |
else
|
6853 | |
cat >conftest.$ac_ext <<_ACEOF
|
6854 | |
/* confdefs.h. */
|
6855 | |
_ACEOF
|
6856 | |
cat confdefs.h >>conftest.$ac_ext
|
6857 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6858 | |
/* end confdefs.h. */
|
6859 | |
#include <sys/types.h>
|
6860 | |
#include <time.h>
|
6861 | |
|
6862 | |
int
|
6863 | |
main ()
|
6864 | |
{
|
6865 | |
struct tm *tp; tp->tm_sec;
|
6866 | |
;
|
6867 | |
return 0;
|
6868 | |
}
|
6869 | |
_ACEOF
|
6870 | |
rm -f conftest.$ac_objext
|
6871 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6872 | |
(eval $ac_compile) 2>conftest.er1
|
6873 | |
ac_status=$?
|
6874 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6875 | |
rm -f conftest.er1
|
6876 | |
cat conftest.err >&5
|
6877 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6878 | |
(exit $ac_status); } &&
|
6879 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6880 | |
|| test ! -s conftest.err'
|
6881 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6882 | |
(eval $ac_try) 2>&5
|
6883 | |
ac_status=$?
|
6884 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6885 | |
(exit $ac_status); }; } &&
|
6886 | |
{ ac_try='test -s conftest.$ac_objext'
|
6887 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6888 | |
(eval $ac_try) 2>&5
|
6889 | |
ac_status=$?
|
6890 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6891 | |
(exit $ac_status); }; }; then
|
6892 | |
ac_cv_struct_tm=time.h
|
6893 | |
else
|
6894 | |
echo "$as_me: failed program was:" >&5
|
6895 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6896 | |
|
6897 | |
ac_cv_struct_tm=sys/time.h
|
6898 | |
fi
|
6899 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6900 | |
fi
|
6901 | |
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
6902 | |
echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
6903 | |
if test $ac_cv_struct_tm = sys/time.h; then
|
6904 | |
|
6905 | |
cat >>confdefs.h <<\_ACEOF
|
6906 | |
#define TM_IN_SYS_TIME 1
|
6907 | |
_ACEOF
|
6908 | |
|
6909 | |
fi
|
6910 | |
|
6911 | |
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
|
6912 | |
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
|
6913 | |
if test "${ac_cv_header_stdbool_h+set}" = set; then
|
6914 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6915 | |
else
|
6916 | |
cat >conftest.$ac_ext <<_ACEOF
|
6917 | |
/* confdefs.h. */
|
6918 | |
_ACEOF
|
6919 | |
cat confdefs.h >>conftest.$ac_ext
|
6920 | |
cat >>conftest.$ac_ext <<_ACEOF
|
6921 | |
/* end confdefs.h. */
|
6922 | |
|
6923 | |
#include <stdbool.h>
|
6924 | |
#ifndef bool
|
6925 | |
# error bool is not defined
|
6926 | |
#endif
|
6927 | |
#ifndef false
|
6928 | |
# error false is not defined
|
6929 | |
#endif
|
6930 | |
#if false
|
6931 | |
# error false is not 0
|
6932 | |
#endif
|
6933 | |
#ifndef true
|
6934 | |
# error true is not defined
|
6935 | |
#endif
|
6936 | |
#if true != 1
|
6937 | |
# error true is not 1
|
6938 | |
#endif
|
6939 | |
#ifndef __bool_true_false_are_defined
|
6940 | |
# error __bool_true_false_are_defined is not defined
|
6941 | |
#endif
|
6942 | |
|
6943 | |
struct s { _Bool s: 1; _Bool t; } s;
|
6944 | |
|
6945 | |
char a[true == 1 ? 1 : -1];
|
6946 | |
char b[false == 0 ? 1 : -1];
|
6947 | |
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|
6948 | |
char d[(bool) -0.5 == true ? 1 : -1];
|
6949 | |
bool e = &s;
|
6950 | |
char f[(_Bool) -0.0 == false ? 1 : -1];
|
6951 | |
char g[true];
|
6952 | |
char h[sizeof (_Bool)];
|
6953 | |
char i[sizeof s.t];
|
6954 | |
|
6955 | |
int
|
6956 | |
main ()
|
6957 | |
{
|
6958 | |
return !a + !b + !c + !d + !e + !f + !g + !h + !i;
|
6959 | |
;
|
6960 | |
return 0;
|
6961 | |
}
|
6962 | |
_ACEOF
|
6963 | |
rm -f conftest.$ac_objext
|
6964 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6965 | |
(eval $ac_compile) 2>conftest.er1
|
6966 | |
ac_status=$?
|
6967 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
6968 | |
rm -f conftest.er1
|
6969 | |
cat conftest.err >&5
|
6970 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6971 | |
(exit $ac_status); } &&
|
6972 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
6973 | |
|| test ! -s conftest.err'
|
6974 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6975 | |
(eval $ac_try) 2>&5
|
6976 | |
ac_status=$?
|
6977 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6978 | |
(exit $ac_status); }; } &&
|
6979 | |
{ ac_try='test -s conftest.$ac_objext'
|
6980 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6981 | |
(eval $ac_try) 2>&5
|
6982 | |
ac_status=$?
|
6983 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6984 | |
(exit $ac_status); }; }; then
|
6985 | |
ac_cv_header_stdbool_h=yes
|
6986 | |
else
|
6987 | |
echo "$as_me: failed program was:" >&5
|
6988 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
6989 | |
|
6990 | |
ac_cv_header_stdbool_h=no
|
6991 | |
fi
|
6992 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6993 | |
fi
|
6994 | |
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
|
6995 | |
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
|
6996 | |
echo "$as_me:$LINENO: checking for _Bool" >&5
|
6997 | |
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
|
6998 | |
if test "${ac_cv_type__Bool+set}" = set; then
|
6999 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7000 | |
else
|
7001 | |
cat >conftest.$ac_ext <<_ACEOF
|
7002 | |
/* confdefs.h. */
|
7003 | |
_ACEOF
|
7004 | |
cat confdefs.h >>conftest.$ac_ext
|
7005 | |
cat >>conftest.$ac_ext <<_ACEOF
|
7006 | |
/* end confdefs.h. */
|
7007 | |
$ac_includes_default
|
7008 | |
int
|
7009 | |
main ()
|
7010 | |
{
|
7011 | |
if ((_Bool *) 0)
|
7012 | |
return 0;
|
7013 | |
if (sizeof (_Bool))
|
7014 | |
return 0;
|
7015 | |
;
|
7016 | |
return 0;
|
7017 | |
}
|
7018 | |
_ACEOF
|
7019 | |
rm -f conftest.$ac_objext
|
7020 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7021 | |
(eval $ac_compile) 2>conftest.er1
|
7022 | |
ac_status=$?
|
7023 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
7024 | |
rm -f conftest.er1
|
7025 | |
cat conftest.err >&5
|
7026 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7027 | |
(exit $ac_status); } &&
|
7028 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
7029 | |
|| test ! -s conftest.err'
|
7030 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7031 | |
(eval $ac_try) 2>&5
|
7032 | |
ac_status=$?
|
7033 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7034 | |
(exit $ac_status); }; } &&
|
7035 | |
{ ac_try='test -s conftest.$ac_objext'
|
7036 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7037 | |
(eval $ac_try) 2>&5
|
7038 | |
ac_status=$?
|
7039 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7040 | |
(exit $ac_status); }; }; then
|
7041 | |
ac_cv_type__Bool=yes
|
7042 | |
else
|
7043 | |
echo "$as_me: failed program was:" >&5
|
7044 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
7045 | |
|
7046 | |
ac_cv_type__Bool=no
|
7047 | |
fi
|
7048 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7049 | |
fi
|
7050 | |
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
|
7051 | |
echo "${ECHO_T}$ac_cv_type__Bool" >&6
|
7052 | |
if test $ac_cv_type__Bool = yes; then
|
7053 | |
|
7054 | |
cat >>confdefs.h <<_ACEOF
|
7055 | |
#define HAVE__BOOL 1
|
7056 | |
_ACEOF
|
7057 | |
|
7058 | |
|
7059 | |
fi
|
7060 | |
|
7061 | |
if test $ac_cv_header_stdbool_h = yes; then
|
7062 | |
|
7063 | |
cat >>confdefs.h <<\_ACEOF
|
7064 | |
#define HAVE_STDBOOL_H 1
|
7065 | |
_ACEOF
|
7066 | |
|
7067 | |
fi
|
7068 | |
|
7069 | |
|
7070 | |
# Checks for library functions.
|
7071 | |
echo "$as_me:$LINENO: checking whether closedir returns void" >&5
|
7072 | |
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
|
7073 | |
if test "${ac_cv_func_closedir_void+set}" = set; then
|
7074 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7075 | |
else
|
7076 | |
if test "$cross_compiling" = yes; then
|
7077 | |
ac_cv_func_closedir_void=yes
|
7078 | |
else
|
7079 | |
cat >conftest.$ac_ext <<_ACEOF
|
7080 | |
/* confdefs.h. */
|
7081 | |
_ACEOF
|
7082 | |
cat confdefs.h >>conftest.$ac_ext
|
7083 | |
cat >>conftest.$ac_ext <<_ACEOF
|
7084 | |
/* end confdefs.h. */
|
7085 | |
$ac_includes_default
|
7086 | |
#include <$ac_header_dirent>
|
7087 | |
#ifndef __cplusplus
|
7088 | |
int closedir ();
|
7089 | |
#endif
|
7090 | |
|
7091 | |
int
|
7092 | |
main ()
|
7093 | |
{
|
7094 | |
exit (closedir (opendir (".")) != 0);
|
7095 | |
;
|
7096 | |
return 0;
|
7097 | |
}
|
7098 | |
_ACEOF
|
7099 | |
rm -f conftest$ac_exeext
|
7100 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7101 | |
(eval $ac_link) 2>&5
|
7102 | |
ac_status=$?
|
7103 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7104 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
7105 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7106 | |
(eval $ac_try) 2>&5
|
7107 | |
ac_status=$?
|
7108 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7109 | |
(exit $ac_status); }; }; then
|
7110 | |
ac_cv_func_closedir_void=no
|
7111 | |
else
|
7112 | |
echo "$as_me: program exited with status $ac_status" >&5
|
7113 | |
echo "$as_me: failed program was:" >&5
|
7114 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
7115 | |
|
7116 | |
( exit $ac_status )
|
7117 | |
ac_cv_func_closedir_void=yes
|
7118 | |
fi
|
7119 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
7120 | |
fi
|
7121 | |
fi
|
7122 | |
echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
|
7123 | |
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
|
7124 | |
if test $ac_cv_func_closedir_void = yes; then
|
7125 | |
|
7126 | |
cat >>confdefs.h <<\_ACEOF
|
7127 | |
#define CLOSEDIR_VOID 1
|
7128 | |
_ACEOF
|
7129 | |
|
7130 | |
fi
|
7131 | |
|
7132 | |
|
7133 | |
|
7134 | |
for ac_header in unistd.h vfork.h
|
|
5878 |
|
|
5879 |
|
|
5880 |
|
|
5881 |
|
|
5882 |
|
|
5883 |
|
|
5884 |
|
|
5885 |
|
|
5886 |
|
|
5887 |
for ac_header in arpa/inet.h fcntl.h netinet/in.h fts.h stdint.h stdlib.h string.h sys/socket.h syslog.h unistd.h iso/limits_iso.h
|
7135 | 5888 |
do
|
7136 | 5889 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7137 | 5890 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
7282 | 6035 |
|
7283 | 6036 |
|
7284 | 6037 |
|
7285 | |
for ac_func in fork vfork
|
|
6038 |
|
|
6039 |
|
|
6040 |
|
|
6041 |
|
|
6042 |
for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
|
7286 | 6043 |
do
|
7287 | |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
7288 | |
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
7289 | |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
7290 | |
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
6044 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
6045 |
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
6046 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
6047 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7291 | 6048 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7292 | 6049 |
else
|
7293 | 6050 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7296 | 6053 |
cat confdefs.h >>conftest.$ac_ext
|
7297 | 6054 |
cat >>conftest.$ac_ext <<_ACEOF
|
7298 | 6055 |
/* end confdefs.h. */
|
7299 | |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
7300 | |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
7301 | |
#define $ac_func innocuous_$ac_func
|
7302 | |
|
7303 | |
/* System header to define __stub macros and hopefully few prototypes,
|
7304 | |
which can conflict with char $ac_func (); below.
|
7305 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
7306 | |
<limits.h> exists even on freestanding compilers. */
|
7307 | |
|
7308 | |
#ifdef __STDC__
|
7309 | |
# include <limits.h>
|
7310 | |
#else
|
7311 | |
# include <assert.h>
|
|
6056 |
#ifdef HAVE_SYS_TYPES_H
|
|
6057 |
# include <sys/types.h>
|
7312 | 6058 |
#endif
|
7313 | |
|
7314 | |
#undef $ac_func
|
7315 | |
|
7316 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
7317 | |
#ifdef __cplusplus
|
7318 | |
extern "C"
|
7319 | |
{
|
|
6059 |
#ifdef HAVE_NETINET_IN_H
|
|
6060 |
# include <netinet/in.h> /* inet_ functions / structs */
|
7320 | 6061 |
#endif
|
7321 | |
/* We use char because int might match the return type of a gcc2
|
7322 | |
builtin and then its argument prototype would still apply. */
|
7323 | |
char $ac_func ();
|
7324 | |
/* The GNU C library defines this for functions which it implements
|
7325 | |
to always fail with ENOSYS. Some functions are actually named
|
7326 | |
something starting with __ and the normal name is an alias. */
|
7327 | |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
7328 | |
choke me
|
7329 | |
#else
|
7330 | |
char (*f) () = $ac_func;
|
|
6062 |
#ifdef HAVE_ARPA_NAMESER_H
|
|
6063 |
# include <arpa/nameser.h> /* DNS HEADER struct */
|
7331 | 6064 |
#endif
|
7332 | |
#ifdef __cplusplus
|
7333 | |
}
|
|
6065 |
#ifdef HAVE_NETDB_H
|
|
6066 |
# include <netdb.h>
|
7334 | 6067 |
#endif
|
7335 | 6068 |
|
7336 | |
int
|
7337 | |
main ()
|
7338 | |
{
|
7339 | |
return f != $ac_func;
|
7340 | |
;
|
7341 | |
return 0;
|
7342 | |
}
|
7343 | |
_ACEOF
|
7344 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
7345 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7346 | |
(eval $ac_link) 2>conftest.er1
|
|
6069 |
#include <$ac_header>
|
|
6070 |
_ACEOF
|
|
6071 |
rm -f conftest.$ac_objext
|
|
6072 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6073 |
(eval $ac_compile) 2>conftest.er1
|
7347 | 6074 |
ac_status=$?
|
7348 | 6075 |
grep -v '^ *+' conftest.er1 >conftest.err
|
7349 | 6076 |
rm -f conftest.er1
|
|
7357 | 6084 |
ac_status=$?
|
7358 | 6085 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7359 | 6086 |
(exit $ac_status); }; } &&
|
7360 | |
{ ac_try='test -s conftest$ac_exeext'
|
7361 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7362 | |
(eval $ac_try) 2>&5
|
7363 | |
ac_status=$?
|
7364 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7365 | |
(exit $ac_status); }; }; then
|
7366 | |
eval "$as_ac_var=yes"
|
|
6087 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6088 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6089 |
(eval $ac_try) 2>&5
|
|
6090 |
ac_status=$?
|
|
6091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6092 |
(exit $ac_status); }; }; then
|
|
6093 |
eval "$as_ac_Header=yes"
|
7367 | 6094 |
else
|
7368 | 6095 |
echo "$as_me: failed program was:" >&5
|
7369 | 6096 |
sed 's/^/| /' conftest.$ac_ext >&5
|
7370 | 6097 |
|
7371 | |
eval "$as_ac_var=no"
|
7372 | |
fi
|
7373 | |
rm -f conftest.err conftest.$ac_objext \
|
7374 | |
conftest$ac_exeext conftest.$ac_ext
|
7375 | |
fi
|
7376 | |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
7377 | |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
7378 | |
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
6098 |
eval "$as_ac_Header=no"
|
|
6099 |
fi
|
|
6100 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6101 |
fi
|
|
6102 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
6103 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
6104 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
7379 | 6105 |
cat >>confdefs.h <<_ACEOF
|
7380 | |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
7381 | |
_ACEOF
|
7382 | |
|
7383 | |
fi
|
|
6106 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
6107 |
_ACEOF
|
|
6108 |
|
|
6109 |
fi
|
|
6110 |
|
7384 | 6111 |
done
|
7385 | 6112 |
|
7386 | |
if test "x$ac_cv_func_fork" = xyes; then
|
7387 | |
echo "$as_me:$LINENO: checking for working fork" >&5
|
7388 | |
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
|
7389 | |
if test "${ac_cv_func_fork_works+set}" = set; then
|
|
6113 |
|
|
6114 |
|
|
6115 |
if test "$ac_cv_header_fts_h" != yes; then
|
|
6116 |
FTS_OBJ=fts_compat.o
|
|
6117 |
fi
|
|
6118 |
|
|
6119 |
|
|
6120 |
|
|
6121 |
# Checks for typedefs, structures, and compiler characteristics.
|
|
6122 |
echo "$as_me:$LINENO: checking for void *" >&5
|
|
6123 |
echo $ECHO_N "checking for void *... $ECHO_C" >&6
|
|
6124 |
if test "${ac_cv_type_void_p+set}" = set; then
|
7390 | 6125 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7391 | 6126 |
else
|
|
6127 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6128 |
/* confdefs.h. */
|
|
6129 |
_ACEOF
|
|
6130 |
cat confdefs.h >>conftest.$ac_ext
|
|
6131 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6132 |
/* end confdefs.h. */
|
|
6133 |
$ac_includes_default
|
|
6134 |
int
|
|
6135 |
main ()
|
|
6136 |
{
|
|
6137 |
if ((void * *) 0)
|
|
6138 |
return 0;
|
|
6139 |
if (sizeof (void *))
|
|
6140 |
return 0;
|
|
6141 |
;
|
|
6142 |
return 0;
|
|
6143 |
}
|
|
6144 |
_ACEOF
|
|
6145 |
rm -f conftest.$ac_objext
|
|
6146 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6147 |
(eval $ac_compile) 2>conftest.er1
|
|
6148 |
ac_status=$?
|
|
6149 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6150 |
rm -f conftest.er1
|
|
6151 |
cat conftest.err >&5
|
|
6152 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6153 |
(exit $ac_status); } &&
|
|
6154 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6155 |
|| test ! -s conftest.err'
|
|
6156 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6157 |
(eval $ac_try) 2>&5
|
|
6158 |
ac_status=$?
|
|
6159 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6160 |
(exit $ac_status); }; } &&
|
|
6161 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6162 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6163 |
(eval $ac_try) 2>&5
|
|
6164 |
ac_status=$?
|
|
6165 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6166 |
(exit $ac_status); }; }; then
|
|
6167 |
ac_cv_type_void_p=yes
|
|
6168 |
else
|
|
6169 |
echo "$as_me: failed program was:" >&5
|
|
6170 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6171 |
|
|
6172 |
ac_cv_type_void_p=no
|
|
6173 |
fi
|
|
6174 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6175 |
fi
|
|
6176 |
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
|
|
6177 |
echo "${ECHO_T}$ac_cv_type_void_p" >&6
|
|
6178 |
|
|
6179 |
echo "$as_me:$LINENO: checking size of void *" >&5
|
|
6180 |
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
|
|
6181 |
if test "${ac_cv_sizeof_void_p+set}" = set; then
|
|
6182 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
6183 |
else
|
|
6184 |
if test "$ac_cv_type_void_p" = yes; then
|
|
6185 |
# The cast to unsigned long works around a bug in the HP C Compiler
|
|
6186 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
|
6187 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
|
6188 |
# This bug is HP SR number 8606223364.
|
7392 | 6189 |
if test "$cross_compiling" = yes; then
|
7393 | |
ac_cv_func_fork_works=cross
|
7394 | |
else
|
|
6190 |
# Depending upon the size, compute the lo and hi bounds.
|
|
6191 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6192 |
/* confdefs.h. */
|
|
6193 |
_ACEOF
|
|
6194 |
cat confdefs.h >>conftest.$ac_ext
|
|
6195 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6196 |
/* end confdefs.h. */
|
|
6197 |
$ac_includes_default
|
|
6198 |
int
|
|
6199 |
main ()
|
|
6200 |
{
|
|
6201 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
|
|
6202 |
test_array [0] = 0
|
|
6203 |
|
|
6204 |
;
|
|
6205 |
return 0;
|
|
6206 |
}
|
|
6207 |
_ACEOF
|
|
6208 |
rm -f conftest.$ac_objext
|
|
6209 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6210 |
(eval $ac_compile) 2>conftest.er1
|
|
6211 |
ac_status=$?
|
|
6212 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6213 |
rm -f conftest.er1
|
|
6214 |
cat conftest.err >&5
|
|
6215 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6216 |
(exit $ac_status); } &&
|
|
6217 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6218 |
|| test ! -s conftest.err'
|
|
6219 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6220 |
(eval $ac_try) 2>&5
|
|
6221 |
ac_status=$?
|
|
6222 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6223 |
(exit $ac_status); }; } &&
|
|
6224 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6225 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6226 |
(eval $ac_try) 2>&5
|
|
6227 |
ac_status=$?
|
|
6228 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6229 |
(exit $ac_status); }; }; then
|
|
6230 |
ac_lo=0 ac_mid=0
|
|
6231 |
while :; do
|
|
6232 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6233 |
/* confdefs.h. */
|
|
6234 |
_ACEOF
|
|
6235 |
cat confdefs.h >>conftest.$ac_ext
|
|
6236 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6237 |
/* end confdefs.h. */
|
|
6238 |
$ac_includes_default
|
|
6239 |
int
|
|
6240 |
main ()
|
|
6241 |
{
|
|
6242 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
|
|
6243 |
test_array [0] = 0
|
|
6244 |
|
|
6245 |
;
|
|
6246 |
return 0;
|
|
6247 |
}
|
|
6248 |
_ACEOF
|
|
6249 |
rm -f conftest.$ac_objext
|
|
6250 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6251 |
(eval $ac_compile) 2>conftest.er1
|
|
6252 |
ac_status=$?
|
|
6253 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6254 |
rm -f conftest.er1
|
|
6255 |
cat conftest.err >&5
|
|
6256 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6257 |
(exit $ac_status); } &&
|
|
6258 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6259 |
|| test ! -s conftest.err'
|
|
6260 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6261 |
(eval $ac_try) 2>&5
|
|
6262 |
ac_status=$?
|
|
6263 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6264 |
(exit $ac_status); }; } &&
|
|
6265 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6266 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6267 |
(eval $ac_try) 2>&5
|
|
6268 |
ac_status=$?
|
|
6269 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6270 |
(exit $ac_status); }; }; then
|
|
6271 |
ac_hi=$ac_mid; break
|
|
6272 |
else
|
|
6273 |
echo "$as_me: failed program was:" >&5
|
|
6274 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6275 |
|
|
6276 |
ac_lo=`expr $ac_mid + 1`
|
|
6277 |
if test $ac_lo -le $ac_mid; then
|
|
6278 |
ac_lo= ac_hi=
|
|
6279 |
break
|
|
6280 |
fi
|
|
6281 |
ac_mid=`expr 2 '*' $ac_mid + 1`
|
|
6282 |
fi
|
|
6283 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6284 |
done
|
|
6285 |
else
|
|
6286 |
echo "$as_me: failed program was:" >&5
|
|
6287 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6288 |
|
|
6289 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6290 |
/* confdefs.h. */
|
|
6291 |
_ACEOF
|
|
6292 |
cat confdefs.h >>conftest.$ac_ext
|
|
6293 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6294 |
/* end confdefs.h. */
|
|
6295 |
$ac_includes_default
|
|
6296 |
int
|
|
6297 |
main ()
|
|
6298 |
{
|
|
6299 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
|
|
6300 |
test_array [0] = 0
|
|
6301 |
|
|
6302 |
;
|
|
6303 |
return 0;
|
|
6304 |
}
|
|
6305 |
_ACEOF
|
|
6306 |
rm -f conftest.$ac_objext
|
|
6307 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6308 |
(eval $ac_compile) 2>conftest.er1
|
|
6309 |
ac_status=$?
|
|
6310 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6311 |
rm -f conftest.er1
|
|
6312 |
cat conftest.err >&5
|
|
6313 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6314 |
(exit $ac_status); } &&
|
|
6315 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6316 |
|| test ! -s conftest.err'
|
|
6317 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6318 |
(eval $ac_try) 2>&5
|
|
6319 |
ac_status=$?
|
|
6320 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6321 |
(exit $ac_status); }; } &&
|
|
6322 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6323 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6324 |
(eval $ac_try) 2>&5
|
|
6325 |
ac_status=$?
|
|
6326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6327 |
(exit $ac_status); }; }; then
|
|
6328 |
ac_hi=-1 ac_mid=-1
|
|
6329 |
while :; do
|
|
6330 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6331 |
/* confdefs.h. */
|
|
6332 |
_ACEOF
|
|
6333 |
cat confdefs.h >>conftest.$ac_ext
|
|
6334 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6335 |
/* end confdefs.h. */
|
|
6336 |
$ac_includes_default
|
|
6337 |
int
|
|
6338 |
main ()
|
|
6339 |
{
|
|
6340 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
|
|
6341 |
test_array [0] = 0
|
|
6342 |
|
|
6343 |
;
|
|
6344 |
return 0;
|
|
6345 |
}
|
|
6346 |
_ACEOF
|
|
6347 |
rm -f conftest.$ac_objext
|
|
6348 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6349 |
(eval $ac_compile) 2>conftest.er1
|
|
6350 |
ac_status=$?
|
|
6351 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6352 |
rm -f conftest.er1
|
|
6353 |
cat conftest.err >&5
|
|
6354 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6355 |
(exit $ac_status); } &&
|
|
6356 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6357 |
|| test ! -s conftest.err'
|
|
6358 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6359 |
(eval $ac_try) 2>&5
|
|
6360 |
ac_status=$?
|
|
6361 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6362 |
(exit $ac_status); }; } &&
|
|
6363 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6364 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6365 |
(eval $ac_try) 2>&5
|
|
6366 |
ac_status=$?
|
|
6367 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6368 |
(exit $ac_status); }; }; then
|
|
6369 |
ac_lo=$ac_mid; break
|
|
6370 |
else
|
|
6371 |
echo "$as_me: failed program was:" >&5
|
|
6372 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6373 |
|
|
6374 |
ac_hi=`expr '(' $ac_mid ')' - 1`
|
|
6375 |
if test $ac_mid -le $ac_hi; then
|
|
6376 |
ac_lo= ac_hi=
|
|
6377 |
break
|
|
6378 |
fi
|
|
6379 |
ac_mid=`expr 2 '*' $ac_mid`
|
|
6380 |
fi
|
|
6381 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6382 |
done
|
|
6383 |
else
|
|
6384 |
echo "$as_me: failed program was:" >&5
|
|
6385 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6386 |
|
|
6387 |
ac_lo= ac_hi=
|
|
6388 |
fi
|
|
6389 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6390 |
fi
|
|
6391 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6392 |
# Binary search between lo and hi bounds.
|
|
6393 |
while test "x$ac_lo" != "x$ac_hi"; do
|
|
6394 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
7395 | 6395 |
cat >conftest.$ac_ext <<_ACEOF
|
7396 | |
/* By Ruediger Kuhlmann. */
|
7397 | |
#include <sys/types.h>
|
7398 | |
#if HAVE_UNISTD_H
|
7399 | |
# include <unistd.h>
|
7400 | |
#endif
|
7401 | |
/* Some systems only have a dummy stub for fork() */
|
7402 | |
int main ()
|
7403 | |
{
|
7404 | |
if (fork() < 0)
|
7405 | |
exit (1);
|
7406 | |
exit (0);
|
7407 | |
}
|
|
6396 |
/* confdefs.h. */
|
|
6397 |
_ACEOF
|
|
6398 |
cat confdefs.h >>conftest.$ac_ext
|
|
6399 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6400 |
/* end confdefs.h. */
|
|
6401 |
$ac_includes_default
|
|
6402 |
int
|
|
6403 |
main ()
|
|
6404 |
{
|
|
6405 |
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
|
|
6406 |
test_array [0] = 0
|
|
6407 |
|
|
6408 |
;
|
|
6409 |
return 0;
|
|
6410 |
}
|
|
6411 |
_ACEOF
|
|
6412 |
rm -f conftest.$ac_objext
|
|
6413 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6414 |
(eval $ac_compile) 2>conftest.er1
|
|
6415 |
ac_status=$?
|
|
6416 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6417 |
rm -f conftest.er1
|
|
6418 |
cat conftest.err >&5
|
|
6419 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6420 |
(exit $ac_status); } &&
|
|
6421 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6422 |
|| test ! -s conftest.err'
|
|
6423 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6424 |
(eval $ac_try) 2>&5
|
|
6425 |
ac_status=$?
|
|
6426 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6427 |
(exit $ac_status); }; } &&
|
|
6428 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6429 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6430 |
(eval $ac_try) 2>&5
|
|
6431 |
ac_status=$?
|
|
6432 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6433 |
(exit $ac_status); }; }; then
|
|
6434 |
ac_hi=$ac_mid
|
|
6435 |
else
|
|
6436 |
echo "$as_me: failed program was:" >&5
|
|
6437 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6438 |
|
|
6439 |
ac_lo=`expr '(' $ac_mid ')' + 1`
|
|
6440 |
fi
|
|
6441 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6442 |
done
|
|
6443 |
case $ac_lo in
|
|
6444 |
?*) ac_cv_sizeof_void_p=$ac_lo;;
|
|
6445 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
|
|
6446 |
See \`config.log' for more details." >&5
|
|
6447 |
echo "$as_me: error: cannot compute sizeof (void *), 77
|
|
6448 |
See \`config.log' for more details." >&2;}
|
|
6449 |
{ (exit 1); exit 1; }; } ;;
|
|
6450 |
esac
|
|
6451 |
else
|
|
6452 |
if test "$cross_compiling" = yes; then
|
|
6453 |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
|
6454 |
See \`config.log' for more details." >&5
|
|
6455 |
echo "$as_me: error: cannot run test program while cross compiling
|
|
6456 |
See \`config.log' for more details." >&2;}
|
|
6457 |
{ (exit 1); exit 1; }; }
|
|
6458 |
else
|
|
6459 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6460 |
/* confdefs.h. */
|
|
6461 |
_ACEOF
|
|
6462 |
cat confdefs.h >>conftest.$ac_ext
|
|
6463 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6464 |
/* end confdefs.h. */
|
|
6465 |
$ac_includes_default
|
|
6466 |
long longval () { return (long) (sizeof (void *)); }
|
|
6467 |
unsigned long ulongval () { return (long) (sizeof (void *)); }
|
|
6468 |
#include <stdio.h>
|
|
6469 |
#include <stdlib.h>
|
|
6470 |
int
|
|
6471 |
main ()
|
|
6472 |
{
|
|
6473 |
|
|
6474 |
FILE *f = fopen ("conftest.val", "w");
|
|
6475 |
if (! f)
|
|
6476 |
exit (1);
|
|
6477 |
if (((long) (sizeof (void *))) < 0)
|
|
6478 |
{
|
|
6479 |
long i = longval ();
|
|
6480 |
if (i != ((long) (sizeof (void *))))
|
|
6481 |
exit (1);
|
|
6482 |
fprintf (f, "%ld\n", i);
|
|
6483 |
}
|
|
6484 |
else
|
|
6485 |
{
|
|
6486 |
unsigned long i = ulongval ();
|
|
6487 |
if (i != ((long) (sizeof (void *))))
|
|
6488 |
exit (1);
|
|
6489 |
fprintf (f, "%lu\n", i);
|
|
6490 |
}
|
|
6491 |
exit (ferror (f) || fclose (f) != 0);
|
|
6492 |
|
|
6493 |
;
|
|
6494 |
return 0;
|
|
6495 |
}
|
7408 | 6496 |
_ACEOF
|
7409 | 6497 |
rm -f conftest$ac_exeext
|
7410 | 6498 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
7417 | 6505 |
ac_status=$?
|
7418 | 6506 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7419 | 6507 |
(exit $ac_status); }; }; then
|
7420 | |
ac_cv_func_fork_works=yes
|
|
6508 |
ac_cv_sizeof_void_p=`cat conftest.val`
|
7421 | 6509 |
else
|
7422 | 6510 |
echo "$as_me: program exited with status $ac_status" >&5
|
7423 | 6511 |
echo "$as_me: failed program was:" >&5
|
7424 | 6512 |
sed 's/^/| /' conftest.$ac_ext >&5
|
7425 | 6513 |
|
7426 | 6514 |
( exit $ac_status )
|
7427 | |
ac_cv_func_fork_works=no
|
|
6515 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
|
|
6516 |
See \`config.log' for more details." >&5
|
|
6517 |
echo "$as_me: error: cannot compute sizeof (void *), 77
|
|
6518 |
See \`config.log' for more details." >&2;}
|
|
6519 |
{ (exit 1); exit 1; }; }
|
7428 | 6520 |
fi
|
7429 | 6521 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
7430 | 6522 |
fi
|
7431 | 6523 |
fi
|
7432 | |
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
7433 | |
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
|
7434 | |
|
7435 | |
else
|
7436 | |
ac_cv_func_fork_works=$ac_cv_func_fork
|
7437 | |
fi
|
7438 | |
if test "x$ac_cv_func_fork_works" = xcross; then
|
7439 | |
case $host in
|
7440 | |
*-*-amigaos* | *-*-msdosdjgpp*)
|
7441 | |
# Override, as these systems have only a dummy fork() stub
|
7442 | |
ac_cv_func_fork_works=no
|
7443 | |
;;
|
7444 | |
*)
|
7445 | |
ac_cv_func_fork_works=yes
|
7446 | |
;;
|
7447 | |
esac
|
7448 | |
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
|
7449 | |
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
|
7450 | |
fi
|
7451 | |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
7452 | |
if test "x$ac_cv_func_vfork" = xyes; then
|
7453 | |
echo "$as_me:$LINENO: checking for working vfork" >&5
|
7454 | |
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
|
7455 | |
if test "${ac_cv_func_vfork_works+set}" = set; then
|
|
6524 |
rm -f conftest.val
|
|
6525 |
else
|
|
6526 |
ac_cv_sizeof_void_p=0
|
|
6527 |
fi
|
|
6528 |
fi
|
|
6529 |
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
|
|
6530 |
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
|
|
6531 |
cat >>confdefs.h <<_ACEOF
|
|
6532 |
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
|
6533 |
_ACEOF
|
|
6534 |
|
|
6535 |
|
|
6536 |
|
|
6537 |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
|
6538 |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
|
6539 |
if test "${ac_cv_c_const+set}" = set; then
|
7456 | 6540 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7457 | 6541 |
else
|
7458 | |
if test "$cross_compiling" = yes; then
|
7459 | |
ac_cv_func_vfork_works=cross
|
7460 | |
else
|
7461 | 6542 |
cat >conftest.$ac_ext <<_ACEOF
|
7462 | 6543 |
/* confdefs.h. */
|
7463 | 6544 |
_ACEOF
|
7464 | 6545 |
cat confdefs.h >>conftest.$ac_ext
|
7465 | 6546 |
cat >>conftest.$ac_ext <<_ACEOF
|
7466 | 6547 |
/* end confdefs.h. */
|
7467 | |
/* Thanks to Paul Eggert for this test. */
|
7468 | |
#include <stdio.h>
|
7469 | |
#include <stdlib.h>
|
7470 | |
#include <sys/types.h>
|
7471 | |
#include <sys/stat.h>
|
7472 | |
#include <sys/wait.h>
|
7473 | |
#if HAVE_UNISTD_H
|
7474 | |
# include <unistd.h>
|
7475 | |
#endif
|
7476 | |
#if HAVE_VFORK_H
|
7477 | |
# include <vfork.h>
|
7478 | |
#endif
|
7479 | |
/* On some sparc systems, changes by the child to local and incoming
|
7480 | |
argument registers are propagated back to the parent. The compiler
|
7481 | |
is told about this with #include <vfork.h>, but some compilers
|
7482 | |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
|
7483 | |
static variable whose address is put into a register that is
|
7484 | |
clobbered by the vfork. */
|
7485 | |
static void
|
7486 | |
#ifdef __cplusplus
|
7487 | |
sparc_address_test (int arg)
|
7488 | |
# else
|
7489 | |
sparc_address_test (arg) int arg;
|
7490 | |
#endif
|
7491 | |
{
|
7492 | |
static pid_t child;
|
7493 | |
if (!child) {
|
7494 | |
child = vfork ();
|
7495 | |
if (child < 0) {
|
7496 | |
perror ("vfork");
|
7497 | |
_exit(2);
|
7498 | |
}
|
7499 | |
if (!child) {
|
7500 | |
arg = getpid();
|
7501 | |
write(-1, "", 0);
|
7502 | |
_exit (arg);
|
7503 | |
}
|
7504 | |
}
|
7505 | |
}
|
7506 | 6548 |
|
7507 | 6549 |
int
|
7508 | 6550 |
main ()
|
7509 | 6551 |
{
|
7510 | |
pid_t parent = getpid ();
|
7511 | |
pid_t child;
|
7512 | |
|
7513 | |
sparc_address_test (0);
|
7514 | |
|
7515 | |
child = vfork ();
|
7516 | |
|
7517 | |
if (child == 0) {
|
7518 | |
/* Here is another test for sparc vfork register problems. This
|
7519 | |
test uses lots of local variables, at least as many local
|
7520 | |
variables as main has allocated so far including compiler
|
7521 | |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
|
7522 | |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
|
7523 | |
reuse the register of parent for one of the local variables,
|
7524 | |
since it will think that parent can't possibly be used any more
|
7525 | |
in this routine. Assigning to the local variable will thus
|
7526 | |
munge parent in the parent process. */
|
7527 | |
pid_t
|
7528 | |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
7529 | |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
7530 | |
/* Convince the compiler that p..p7 are live; otherwise, it might
|
7531 | |
use the same hardware register for all 8 local variables. */
|
7532 | |
if (p != p1 || p != p2 || p != p3 || p != p4
|
7533 | |
|| p != p5 || p != p6 || p != p7)
|
7534 | |
_exit(1);
|
7535 | |
|
7536 | |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
|
7537 | |
from child file descriptors. If the child closes a descriptor
|
7538 | |
before it execs or exits, this munges the parent's descriptor
|
7539 | |
as well. Test for this by closing stdout in the child. */
|
7540 | |
_exit(close(fileno(stdout)) != 0);
|
7541 | |
} else {
|
7542 | |
int status;
|
7543 | |
struct stat st;
|
7544 | |
|
7545 | |
while (wait(&status) != child)
|
7546 | |
;
|
7547 | |
exit(
|
7548 | |
/* Was there some problem with vforking? */
|
7549 | |
child < 0
|
7550 | |
|
7551 | |
/* Did the child fail? (This shouldn't happen.) */
|
7552 | |
|| status
|
7553 | |
|
7554 | |
/* Did the vfork/compiler bug occur? */
|
7555 | |
|| parent != getpid()
|
7556 | |
|
7557 | |
/* Did the file descriptor bug occur? */
|
7558 | |
|| fstat(fileno(stdout), &st) != 0
|
7559 | |
);
|
|
6552 |
/* FIXME: Include the comments suggested by Paul. */
|
|
6553 |
#ifndef __cplusplus
|
|
6554 |
/* Ultrix mips cc rejects this. */
|
|
6555 |
typedef int charset[2];
|
|
6556 |
const charset x;
|
|
6557 |
/* SunOS 4.1.1 cc rejects this. */
|
|
6558 |
char const *const *ccp;
|
|
6559 |
char **p;
|
|
6560 |
/* NEC SVR4.0.2 mips cc rejects this. */
|
|
6561 |
struct point {int x, y;};
|
|
6562 |
static struct point const zero = {0,0};
|
|
6563 |
/* AIX XL C 1.02.0.0 rejects this.
|
|
6564 |
It does not let you subtract one const X* pointer from another in
|
|
6565 |
an arm of an if-expression whose if-part is not a constant
|
|
6566 |
expression */
|
|
6567 |
const char *g = "string";
|
|
6568 |
ccp = &g + (g ? g-g : 0);
|
|
6569 |
/* HPUX 7.0 cc rejects these. */
|
|
6570 |
++ccp;
|
|
6571 |
p = (char**) ccp;
|
|
6572 |
ccp = (char const *const *) p;
|
|
6573 |
{ /* SCO 3.2v4 cc rejects this. */
|
|
6574 |
char *t;
|
|
6575 |
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
6576 |
|
|
6577 |
*t++ = 0;
|
7560 | 6578 |
}
|
|
6579 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
6580 |
int x[] = {25, 17};
|
|
6581 |
const int *foo = &x[0];
|
|
6582 |
++foo;
|
|
6583 |
}
|
|
6584 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
6585 |
typedef const int *iptr;
|
|
6586 |
iptr p = 0;
|
|
6587 |
++p;
|
|
6588 |
}
|
|
6589 |
{ /* AIX XL C 1.02.0.0 rejects this saying
|
|
6590 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
6591 |
struct s { int j; const int *ap[3]; };
|
|
6592 |
struct s *b; b->j = 5;
|
|
6593 |
}
|
|
6594 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
6595 |
const int foo = 10;
|
|
6596 |
}
|
|
6597 |
#endif
|
|
6598 |
|
|
6599 |
;
|
|
6600 |
return 0;
|
|
6601 |
}
|
|
6602 |
_ACEOF
|
|
6603 |
rm -f conftest.$ac_objext
|
|
6604 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6605 |
(eval $ac_compile) 2>conftest.er1
|
|
6606 |
ac_status=$?
|
|
6607 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6608 |
rm -f conftest.er1
|
|
6609 |
cat conftest.err >&5
|
|
6610 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6611 |
(exit $ac_status); } &&
|
|
6612 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6613 |
|| test ! -s conftest.err'
|
|
6614 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6615 |
(eval $ac_try) 2>&5
|
|
6616 |
ac_status=$?
|
|
6617 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6618 |
(exit $ac_status); }; } &&
|
|
6619 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6620 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6621 |
(eval $ac_try) 2>&5
|
|
6622 |
ac_status=$?
|
|
6623 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6624 |
(exit $ac_status); }; }; then
|
|
6625 |
ac_cv_c_const=yes
|
|
6626 |
else
|
|
6627 |
echo "$as_me: failed program was:" >&5
|
|
6628 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6629 |
|
|
6630 |
ac_cv_c_const=no
|
|
6631 |
fi
|
|
6632 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6633 |
fi
|
|
6634 |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
|
6635 |
echo "${ECHO_T}$ac_cv_c_const" >&6
|
|
6636 |
if test $ac_cv_c_const = no; then
|
|
6637 |
|
|
6638 |
cat >>confdefs.h <<\_ACEOF
|
|
6639 |
#define const
|
|
6640 |
_ACEOF
|
|
6641 |
|
|
6642 |
fi
|
|
6643 |
|
|
6644 |
echo "$as_me:$LINENO: checking for inline" >&5
|
|
6645 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6
|
|
6646 |
if test "${ac_cv_c_inline+set}" = set; then
|
|
6647 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
6648 |
else
|
|
6649 |
ac_cv_c_inline=no
|
|
6650 |
for ac_kw in inline __inline__ __inline; do
|
|
6651 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6652 |
/* confdefs.h. */
|
|
6653 |
_ACEOF
|
|
6654 |
cat confdefs.h >>conftest.$ac_ext
|
|
6655 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6656 |
/* end confdefs.h. */
|
|
6657 |
#ifndef __cplusplus
|
|
6658 |
typedef int foo_t;
|
|
6659 |
static $ac_kw foo_t static_foo () {return 0; }
|
|
6660 |
$ac_kw foo_t foo () {return 0; }
|
|
6661 |
#endif
|
|
6662 |
|
|
6663 |
_ACEOF
|
|
6664 |
rm -f conftest.$ac_objext
|
|
6665 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6666 |
(eval $ac_compile) 2>conftest.er1
|
|
6667 |
ac_status=$?
|
|
6668 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6669 |
rm -f conftest.er1
|
|
6670 |
cat conftest.err >&5
|
|
6671 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6672 |
(exit $ac_status); } &&
|
|
6673 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6674 |
|| test ! -s conftest.err'
|
|
6675 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6676 |
(eval $ac_try) 2>&5
|
|
6677 |
ac_status=$?
|
|
6678 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6679 |
(exit $ac_status); }; } &&
|
|
6680 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6681 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6682 |
(eval $ac_try) 2>&5
|
|
6683 |
ac_status=$?
|
|
6684 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6685 |
(exit $ac_status); }; }; then
|
|
6686 |
ac_cv_c_inline=$ac_kw; break
|
|
6687 |
else
|
|
6688 |
echo "$as_me: failed program was:" >&5
|
|
6689 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6690 |
|
|
6691 |
fi
|
|
6692 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6693 |
done
|
|
6694 |
|
|
6695 |
fi
|
|
6696 |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
|
|
6697 |
echo "${ECHO_T}$ac_cv_c_inline" >&6
|
|
6698 |
|
|
6699 |
|
|
6700 |
case $ac_cv_c_inline in
|
|
6701 |
inline | yes) ;;
|
|
6702 |
*)
|
|
6703 |
case $ac_cv_c_inline in
|
|
6704 |
no) ac_val=;;
|
|
6705 |
*) ac_val=$ac_cv_c_inline;;
|
|
6706 |
esac
|
|
6707 |
cat >>confdefs.h <<_ACEOF
|
|
6708 |
#ifndef __cplusplus
|
|
6709 |
#define inline $ac_val
|
|
6710 |
#endif
|
|
6711 |
_ACEOF
|
|
6712 |
;;
|
|
6713 |
esac
|
|
6714 |
|
|
6715 |
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
|
6716 |
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
|
6717 |
if test "${ac_cv_c_bigendian+set}" = set; then
|
|
6718 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
6719 |
else
|
|
6720 |
# See if sys/param.h defines the BYTE_ORDER macro.
|
|
6721 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6722 |
/* confdefs.h. */
|
|
6723 |
_ACEOF
|
|
6724 |
cat confdefs.h >>conftest.$ac_ext
|
|
6725 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6726 |
/* end confdefs.h. */
|
|
6727 |
#include <sys/types.h>
|
|
6728 |
#include <sys/param.h>
|
|
6729 |
|
|
6730 |
int
|
|
6731 |
main ()
|
|
6732 |
{
|
|
6733 |
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
|
6734 |
bogus endian macros
|
|
6735 |
#endif
|
|
6736 |
|
|
6737 |
;
|
|
6738 |
return 0;
|
|
6739 |
}
|
|
6740 |
_ACEOF
|
|
6741 |
rm -f conftest.$ac_objext
|
|
6742 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6743 |
(eval $ac_compile) 2>conftest.er1
|
|
6744 |
ac_status=$?
|
|
6745 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6746 |
rm -f conftest.er1
|
|
6747 |
cat conftest.err >&5
|
|
6748 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6749 |
(exit $ac_status); } &&
|
|
6750 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6751 |
|| test ! -s conftest.err'
|
|
6752 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6753 |
(eval $ac_try) 2>&5
|
|
6754 |
ac_status=$?
|
|
6755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6756 |
(exit $ac_status); }; } &&
|
|
6757 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6758 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6759 |
(eval $ac_try) 2>&5
|
|
6760 |
ac_status=$?
|
|
6761 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6762 |
(exit $ac_status); }; }; then
|
|
6763 |
# It does; now see whether it defined to BIG_ENDIAN or not.
|
|
6764 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6765 |
/* confdefs.h. */
|
|
6766 |
_ACEOF
|
|
6767 |
cat confdefs.h >>conftest.$ac_ext
|
|
6768 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6769 |
/* end confdefs.h. */
|
|
6770 |
#include <sys/types.h>
|
|
6771 |
#include <sys/param.h>
|
|
6772 |
|
|
6773 |
int
|
|
6774 |
main ()
|
|
6775 |
{
|
|
6776 |
#if BYTE_ORDER != BIG_ENDIAN
|
|
6777 |
not big endian
|
|
6778 |
#endif
|
|
6779 |
|
|
6780 |
;
|
|
6781 |
return 0;
|
|
6782 |
}
|
|
6783 |
_ACEOF
|
|
6784 |
rm -f conftest.$ac_objext
|
|
6785 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6786 |
(eval $ac_compile) 2>conftest.er1
|
|
6787 |
ac_status=$?
|
|
6788 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6789 |
rm -f conftest.er1
|
|
6790 |
cat conftest.err >&5
|
|
6791 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6792 |
(exit $ac_status); } &&
|
|
6793 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6794 |
|| test ! -s conftest.err'
|
|
6795 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6796 |
(eval $ac_try) 2>&5
|
|
6797 |
ac_status=$?
|
|
6798 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6799 |
(exit $ac_status); }; } &&
|
|
6800 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6801 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6802 |
(eval $ac_try) 2>&5
|
|
6803 |
ac_status=$?
|
|
6804 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6805 |
(exit $ac_status); }; }; then
|
|
6806 |
ac_cv_c_bigendian=yes
|
|
6807 |
else
|
|
6808 |
echo "$as_me: failed program was:" >&5
|
|
6809 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6810 |
|
|
6811 |
ac_cv_c_bigendian=no
|
|
6812 |
fi
|
|
6813 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6814 |
else
|
|
6815 |
echo "$as_me: failed program was:" >&5
|
|
6816 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6817 |
|
|
6818 |
# It does not; compile a test program.
|
|
6819 |
if test "$cross_compiling" = yes; then
|
|
6820 |
# try to guess the endianness by grepping values into an object file
|
|
6821 |
ac_cv_c_bigendian=unknown
|
|
6822 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6823 |
/* confdefs.h. */
|
|
6824 |
_ACEOF
|
|
6825 |
cat confdefs.h >>conftest.$ac_ext
|
|
6826 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6827 |
/* end confdefs.h. */
|
|
6828 |
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
|
6829 |
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
|
6830 |
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
|
6831 |
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
|
6832 |
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
|
6833 |
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
|
6834 |
int
|
|
6835 |
main ()
|
|
6836 |
{
|
|
6837 |
_ascii (); _ebcdic ();
|
|
6838 |
;
|
|
6839 |
return 0;
|
|
6840 |
}
|
|
6841 |
_ACEOF
|
|
6842 |
rm -f conftest.$ac_objext
|
|
6843 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6844 |
(eval $ac_compile) 2>conftest.er1
|
|
6845 |
ac_status=$?
|
|
6846 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6847 |
rm -f conftest.er1
|
|
6848 |
cat conftest.err >&5
|
|
6849 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6850 |
(exit $ac_status); } &&
|
|
6851 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6852 |
|| test ! -s conftest.err'
|
|
6853 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6854 |
(eval $ac_try) 2>&5
|
|
6855 |
ac_status=$?
|
|
6856 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6857 |
(exit $ac_status); }; } &&
|
|
6858 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6859 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6860 |
(eval $ac_try) 2>&5
|
|
6861 |
ac_status=$?
|
|
6862 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6863 |
(exit $ac_status); }; }; then
|
|
6864 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
|
6865 |
ac_cv_c_bigendian=yes
|
|
6866 |
fi
|
|
6867 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
|
6868 |
if test "$ac_cv_c_bigendian" = unknown; then
|
|
6869 |
ac_cv_c_bigendian=no
|
|
6870 |
else
|
|
6871 |
# finding both strings is unlikely to happen, but who knows?
|
|
6872 |
ac_cv_c_bigendian=unknown
|
|
6873 |
fi
|
|
6874 |
fi
|
|
6875 |
else
|
|
6876 |
echo "$as_me: failed program was:" >&5
|
|
6877 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6878 |
|
|
6879 |
fi
|
|
6880 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6881 |
else
|
|
6882 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6883 |
/* confdefs.h. */
|
|
6884 |
_ACEOF
|
|
6885 |
cat confdefs.h >>conftest.$ac_ext
|
|
6886 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6887 |
/* end confdefs.h. */
|
|
6888 |
int
|
|
6889 |
main ()
|
|
6890 |
{
|
|
6891 |
/* Are we little or big endian? From Harbison&Steele. */
|
|
6892 |
union
|
|
6893 |
{
|
|
6894 |
long l;
|
|
6895 |
char c[sizeof (long)];
|
|
6896 |
} u;
|
|
6897 |
u.l = 1;
|
|
6898 |
exit (u.c[sizeof (long) - 1] == 1);
|
7561 | 6899 |
}
|
7562 | 6900 |
_ACEOF
|
7563 | 6901 |
rm -f conftest$ac_exeext
|
|
7571 | 6909 |
ac_status=$?
|
7572 | 6910 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7573 | 6911 |
(exit $ac_status); }; }; then
|
7574 | |
ac_cv_func_vfork_works=yes
|
|
6912 |
ac_cv_c_bigendian=no
|
7575 | 6913 |
else
|
7576 | 6914 |
echo "$as_me: program exited with status $ac_status" >&5
|
7577 | 6915 |
echo "$as_me: failed program was:" >&5
|
7578 | 6916 |
sed 's/^/| /' conftest.$ac_ext >&5
|
7579 | 6917 |
|
7580 | 6918 |
( exit $ac_status )
|
7581 | |
ac_cv_func_vfork_works=no
|
|
6919 |
ac_cv_c_bigendian=yes
|
7582 | 6920 |
fi
|
7583 | 6921 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
7584 | 6922 |
fi
|
7585 | 6923 |
fi
|
7586 | |
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
7587 | |
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
|
7588 | |
|
7589 | |
fi;
|
7590 | |
if test "x$ac_cv_func_fork_works" = xcross; then
|
7591 | |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
7592 | |
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
|
7593 | |
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
|
7594 | |
fi
|
7595 | |
|
7596 | |
if test "x$ac_cv_func_vfork_works" = xyes; then
|
|
6924 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6925 |
fi
|
|
6926 |
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
|
6927 |
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
|
6928 |
case $ac_cv_c_bigendian in
|
|
6929 |
yes)
|
7597 | 6930 |
|
7598 | 6931 |
cat >>confdefs.h <<\_ACEOF
|
7599 | |
#define HAVE_WORKING_VFORK 1
|
7600 | |
_ACEOF
|
7601 | |
|
7602 | |
else
|
|
6932 |
#define WORDS_BIGENDIAN 1
|
|
6933 |
_ACEOF
|
|
6934 |
;;
|
|
6935 |
no)
|
|
6936 |
;;
|
|
6937 |
*)
|
|
6938 |
{ { echo "$as_me:$LINENO: error: unknown endianness
|
|
6939 |
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
|
6940 |
echo "$as_me: error: unknown endianness
|
|
6941 |
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
|
6942 |
{ (exit 1); exit 1; }; } ;;
|
|
6943 |
esac
|
|
6944 |
|
|
6945 |
echo "$as_me:$LINENO: checking for pid_t" >&5
|
|
6946 |
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
|
|
6947 |
if test "${ac_cv_type_pid_t+set}" = set; then
|
|
6948 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
6949 |
else
|
|
6950 |
cat >conftest.$ac_ext <<_ACEOF
|
|
6951 |
/* confdefs.h. */
|
|
6952 |
_ACEOF
|
|
6953 |
cat confdefs.h >>conftest.$ac_ext
|
|
6954 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
6955 |
/* end confdefs.h. */
|
|
6956 |
$ac_includes_default
|
|
6957 |
int
|
|
6958 |
main ()
|
|
6959 |
{
|
|
6960 |
if ((pid_t *) 0)
|
|
6961 |
return 0;
|
|
6962 |
if (sizeof (pid_t))
|
|
6963 |
return 0;
|
|
6964 |
;
|
|
6965 |
return 0;
|
|
6966 |
}
|
|
6967 |
_ACEOF
|
|
6968 |
rm -f conftest.$ac_objext
|
|
6969 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6970 |
(eval $ac_compile) 2>conftest.er1
|
|
6971 |
ac_status=$?
|
|
6972 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
6973 |
rm -f conftest.er1
|
|
6974 |
cat conftest.err >&5
|
|
6975 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6976 |
(exit $ac_status); } &&
|
|
6977 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
6978 |
|| test ! -s conftest.err'
|
|
6979 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6980 |
(eval $ac_try) 2>&5
|
|
6981 |
ac_status=$?
|
|
6982 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6983 |
(exit $ac_status); }; } &&
|
|
6984 |
{ ac_try='test -s conftest.$ac_objext'
|
|
6985 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
6986 |
(eval $ac_try) 2>&5
|
|
6987 |
ac_status=$?
|
|
6988 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6989 |
(exit $ac_status); }; }; then
|
|
6990 |
ac_cv_type_pid_t=yes
|
|
6991 |
else
|
|
6992 |
echo "$as_me: failed program was:" >&5
|
|
6993 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
6994 |
|
|
6995 |
ac_cv_type_pid_t=no
|
|
6996 |
fi
|
|
6997 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
6998 |
fi
|
|
6999 |
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
|
|
7000 |
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
|
|
7001 |
if test $ac_cv_type_pid_t = yes; then
|
|
7002 |
:
|
|
7003 |
else
|
|
7004 |
|
|
7005 |
cat >>confdefs.h <<_ACEOF
|
|
7006 |
#define pid_t int
|
|
7007 |
_ACEOF
|
|
7008 |
|
|
7009 |
fi
|
|
7010 |
|
|
7011 |
echo "$as_me:$LINENO: checking for size_t" >&5
|
|
7012 |
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
|
7013 |
if test "${ac_cv_type_size_t+set}" = set; then
|
|
7014 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
7015 |
else
|
|
7016 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7017 |
/* confdefs.h. */
|
|
7018 |
_ACEOF
|
|
7019 |
cat confdefs.h >>conftest.$ac_ext
|
|
7020 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
7021 |
/* end confdefs.h. */
|
|
7022 |
$ac_includes_default
|
|
7023 |
int
|
|
7024 |
main ()
|
|
7025 |
{
|
|
7026 |
if ((size_t *) 0)
|
|
7027 |
return 0;
|
|
7028 |
if (sizeof (size_t))
|
|
7029 |
return 0;
|
|
7030 |
;
|
|
7031 |
return 0;
|
|
7032 |
}
|
|
7033 |
_ACEOF
|
|
7034 |
rm -f conftest.$ac_objext
|
|
7035 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
7036 |
(eval $ac_compile) 2>conftest.er1
|
|
7037 |
ac_status=$?
|
|
7038 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
7039 |
rm -f conftest.er1
|
|
7040 |
cat conftest.err >&5
|
|
7041 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7042 |
(exit $ac_status); } &&
|
|
7043 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
7044 |
|| test ! -s conftest.err'
|
|
7045 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7046 |
(eval $ac_try) 2>&5
|
|
7047 |
ac_status=$?
|
|
7048 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7049 |
(exit $ac_status); }; } &&
|
|
7050 |
{ ac_try='test -s conftest.$ac_objext'
|
|
7051 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7052 |
(eval $ac_try) 2>&5
|
|
7053 |
ac_status=$?
|
|
7054 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7055 |
(exit $ac_status); }; }; then
|
|
7056 |
ac_cv_type_size_t=yes
|
|
7057 |
else
|
|
7058 |
echo "$as_me: failed program was:" >&5
|
|
7059 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7060 |
|
|
7061 |
ac_cv_type_size_t=no
|
|
7062 |
fi
|
|
7063 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7064 |
fi
|
|
7065 |
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
|
7066 |
echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
|
7067 |
if test $ac_cv_type_size_t = yes; then
|
|
7068 |
:
|
|
7069 |
else
|
|
7070 |
|
|
7071 |
cat >>confdefs.h <<_ACEOF
|
|
7072 |
#define size_t unsigned
|
|
7073 |
_ACEOF
|
|
7074 |
|
|
7075 |
fi
|
|
7076 |
|
|
7077 |
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
7078 |
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
|
7079 |
if test "${ac_cv_struct_tm+set}" = set; then
|
|
7080 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
7081 |
else
|
|
7082 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7083 |
/* confdefs.h. */
|
|
7084 |
_ACEOF
|
|
7085 |
cat confdefs.h >>conftest.$ac_ext
|
|
7086 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
7087 |
/* end confdefs.h. */
|
|
7088 |
#include <sys/types.h>
|
|
7089 |
#include <time.h>
|
|
7090 |
|
|
7091 |
int
|
|
7092 |
main ()
|
|
7093 |
{
|
|
7094 |
struct tm *tp; tp->tm_sec;
|
|
7095 |
;
|
|
7096 |
return 0;
|
|
7097 |
}
|
|
7098 |
_ACEOF
|
|
7099 |
rm -f conftest.$ac_objext
|
|
7100 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
7101 |
(eval $ac_compile) 2>conftest.er1
|
|
7102 |
ac_status=$?
|
|
7103 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
7104 |
rm -f conftest.er1
|
|
7105 |
cat conftest.err >&5
|
|
7106 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7107 |
(exit $ac_status); } &&
|
|
7108 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
7109 |
|| test ! -s conftest.err'
|
|
7110 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7111 |
(eval $ac_try) 2>&5
|
|
7112 |
ac_status=$?
|
|
7113 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7114 |
(exit $ac_status); }; } &&
|
|
7115 |
{ ac_try='test -s conftest.$ac_objext'
|
|
7116 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7117 |
(eval $ac_try) 2>&5
|
|
7118 |
ac_status=$?
|
|
7119 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7120 |
(exit $ac_status); }; }; then
|
|
7121 |
ac_cv_struct_tm=time.h
|
|
7122 |
else
|
|
7123 |
echo "$as_me: failed program was:" >&5
|
|
7124 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7125 |
|
|
7126 |
ac_cv_struct_tm=sys/time.h
|
|
7127 |
fi
|
|
7128 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7129 |
fi
|
|
7130 |
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
|
7131 |
echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
|
7132 |
if test $ac_cv_struct_tm = sys/time.h; then
|
7603 | 7133 |
|
7604 | 7134 |
cat >>confdefs.h <<\_ACEOF
|
7605 | |
#define vfork fork
|
7606 | |
_ACEOF
|
7607 | |
|
7608 | |
fi
|
7609 | |
if test "x$ac_cv_func_fork_works" = xyes; then
|
|
7135 |
#define TM_IN_SYS_TIME 1
|
|
7136 |
_ACEOF
|
|
7137 |
|
|
7138 |
fi
|
|
7139 |
|
|
7140 |
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
|
|
7141 |
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
|
|
7142 |
if test "${ac_cv_header_stdbool_h+set}" = set; then
|
|
7143 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
7144 |
else
|
|
7145 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7146 |
/* confdefs.h. */
|
|
7147 |
_ACEOF
|
|
7148 |
cat confdefs.h >>conftest.$ac_ext
|
|
7149 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
7150 |
/* end confdefs.h. */
|
|
7151 |
|
|
7152 |
#include <stdbool.h>
|
|
7153 |
#ifndef bool
|
|
7154 |
# error bool is not defined
|
|
7155 |
#endif
|
|
7156 |
#ifndef false
|
|
7157 |
# error false is not defined
|
|
7158 |
#endif
|
|
7159 |
#if false
|
|
7160 |
# error false is not 0
|
|
7161 |
#endif
|
|
7162 |
#ifndef true
|
|
7163 |
# error true is not defined
|
|
7164 |
#endif
|
|
7165 |
#if true != 1
|
|
7166 |
# error true is not 1
|
|
7167 |
#endif
|
|
7168 |
#ifndef __bool_true_false_are_defined
|
|
7169 |
# error __bool_true_false_are_defined is not defined
|
|
7170 |
#endif
|
|
7171 |
|
|
7172 |
struct s { _Bool s: 1; _Bool t; } s;
|
|
7173 |
|
|
7174 |
char a[true == 1 ? 1 : -1];
|
|
7175 |
char b[false == 0 ? 1 : -1];
|
|
7176 |
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
|
|
7177 |
char d[(bool) -0.5 == true ? 1 : -1];
|
|
7178 |
bool e = &s;
|
|
7179 |
char f[(_Bool) -0.0 == false ? 1 : -1];
|
|
7180 |
char g[true];
|
|
7181 |
char h[sizeof (_Bool)];
|
|
7182 |
char i[sizeof s.t];
|
|
7183 |
|
|
7184 |
int
|
|
7185 |
main ()
|
|
7186 |
{
|
|
7187 |
return !a + !b + !c + !d + !e + !f + !g + !h + !i;
|
|
7188 |
;
|
|
7189 |
return 0;
|
|
7190 |
}
|
|
7191 |
_ACEOF
|
|
7192 |
rm -f conftest.$ac_objext
|
|
7193 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
7194 |
(eval $ac_compile) 2>conftest.er1
|
|
7195 |
ac_status=$?
|
|
7196 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
7197 |
rm -f conftest.er1
|
|
7198 |
cat conftest.err >&5
|
|
7199 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7200 |
(exit $ac_status); } &&
|
|
7201 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
7202 |
|| test ! -s conftest.err'
|
|
7203 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7204 |
(eval $ac_try) 2>&5
|
|
7205 |
ac_status=$?
|
|
7206 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7207 |
(exit $ac_status); }; } &&
|
|
7208 |
{ ac_try='test -s conftest.$ac_objext'
|
|
7209 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7210 |
(eval $ac_try) 2>&5
|
|
7211 |
ac_status=$?
|
|
7212 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7213 |
(exit $ac_status); }; }; then
|
|
7214 |
ac_cv_header_stdbool_h=yes
|
|
7215 |
else
|
|
7216 |
echo "$as_me: failed program was:" >&5
|
|
7217 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7218 |
|
|
7219 |
ac_cv_header_stdbool_h=no
|
|
7220 |
fi
|
|
7221 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7222 |
fi
|
|
7223 |
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
|
|
7224 |
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
|
|
7225 |
echo "$as_me:$LINENO: checking for _Bool" >&5
|
|
7226 |
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
|
|
7227 |
if test "${ac_cv_type__Bool+set}" = set; then
|
|
7228 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
7229 |
else
|
|
7230 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7231 |
/* confdefs.h. */
|
|
7232 |
_ACEOF
|
|
7233 |
cat confdefs.h >>conftest.$ac_ext
|
|
7234 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
7235 |
/* end confdefs.h. */
|
|
7236 |
$ac_includes_default
|
|
7237 |
int
|
|
7238 |
main ()
|
|
7239 |
{
|
|
7240 |
if ((_Bool *) 0)
|
|
7241 |
return 0;
|
|
7242 |
if (sizeof (_Bool))
|
|
7243 |
return 0;
|
|
7244 |
;
|
|
7245 |
return 0;
|
|
7246 |
}
|
|
7247 |
_ACEOF
|
|
7248 |
rm -f conftest.$ac_objext
|
|
7249 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
7250 |
(eval $ac_compile) 2>conftest.er1
|
|
7251 |
ac_status=$?
|
|
7252 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
7253 |
rm -f conftest.er1
|
|
7254 |
cat conftest.err >&5
|
|
7255 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7256 |
(exit $ac_status); } &&
|
|
7257 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
7258 |
|| test ! -s conftest.err'
|
|
7259 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7260 |
(eval $ac_try) 2>&5
|
|
7261 |
ac_status=$?
|
|
7262 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7263 |
(exit $ac_status); }; } &&
|
|
7264 |
{ ac_try='test -s conftest.$ac_objext'
|
|
7265 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7266 |
(eval $ac_try) 2>&5
|
|
7267 |
ac_status=$?
|
|
7268 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7269 |
(exit $ac_status); }; }; then
|
|
7270 |
ac_cv_type__Bool=yes
|
|
7271 |
else
|
|
7272 |
echo "$as_me: failed program was:" >&5
|
|
7273 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7274 |
|
|
7275 |
ac_cv_type__Bool=no
|
|
7276 |
fi
|
|
7277 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
7278 |
fi
|
|
7279 |
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
|
|
7280 |
echo "${ECHO_T}$ac_cv_type__Bool" >&6
|
|
7281 |
if test $ac_cv_type__Bool = yes; then
|
|
7282 |
|
|
7283 |
cat >>confdefs.h <<_ACEOF
|
|
7284 |
#define HAVE__BOOL 1
|
|
7285 |
_ACEOF
|
|
7286 |
|
|
7287 |
|
|
7288 |
fi
|
|
7289 |
|
|
7290 |
if test $ac_cv_header_stdbool_h = yes; then
|
7610 | 7291 |
|
7611 | 7292 |
cat >>confdefs.h <<\_ACEOF
|
7612 | |
#define HAVE_WORKING_FORK 1
|
7613 | |
_ACEOF
|
7614 | |
|
7615 | |
fi
|
7616 | |
|
7617 | |
|
7618 | |
for ac_header in stdlib.h
|
|
7293 |
#define HAVE_STDBOOL_H 1
|
|
7294 |
_ACEOF
|
|
7295 |
|
|
7296 |
fi
|
|
7297 |
|
|
7298 |
|
|
7299 |
# Checks for library functions.
|
|
7300 |
echo "$as_me:$LINENO: checking whether closedir returns void" >&5
|
|
7301 |
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
|
|
7302 |
if test "${ac_cv_func_closedir_void+set}" = set; then
|
|
7303 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
7304 |
else
|
|
7305 |
if test "$cross_compiling" = yes; then
|
|
7306 |
ac_cv_func_closedir_void=yes
|
|
7307 |
else
|
|
7308 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7309 |
/* confdefs.h. */
|
|
7310 |
_ACEOF
|
|
7311 |
cat confdefs.h >>conftest.$ac_ext
|
|
7312 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
7313 |
/* end confdefs.h. */
|
|
7314 |
$ac_includes_default
|
|
7315 |
#include <$ac_header_dirent>
|
|
7316 |
#ifndef __cplusplus
|
|
7317 |
int closedir ();
|
|
7318 |
#endif
|
|
7319 |
|
|
7320 |
int
|
|
7321 |
main ()
|
|
7322 |
{
|
|
7323 |
exit (closedir (opendir (".")) != 0);
|
|
7324 |
;
|
|
7325 |
return 0;
|
|
7326 |
}
|
|
7327 |
_ACEOF
|
|
7328 |
rm -f conftest$ac_exeext
|
|
7329 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
7330 |
(eval $ac_link) 2>&5
|
|
7331 |
ac_status=$?
|
|
7332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7333 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
7334 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7335 |
(eval $ac_try) 2>&5
|
|
7336 |
ac_status=$?
|
|
7337 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7338 |
(exit $ac_status); }; }; then
|
|
7339 |
ac_cv_func_closedir_void=no
|
|
7340 |
else
|
|
7341 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
7342 |
echo "$as_me: failed program was:" >&5
|
|
7343 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7344 |
|
|
7345 |
( exit $ac_status )
|
|
7346 |
ac_cv_func_closedir_void=yes
|
|
7347 |
fi
|
|
7348 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
7349 |
fi
|
|
7350 |
fi
|
|
7351 |
echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
|
|
7352 |
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
|
|
7353 |
if test $ac_cv_func_closedir_void = yes; then
|
|
7354 |
|
|
7355 |
cat >>confdefs.h <<\_ACEOF
|
|
7356 |
#define CLOSEDIR_VOID 1
|
|
7357 |
_ACEOF
|
|
7358 |
|
|
7359 |
fi
|
|
7360 |
|
|
7361 |
|
|
7362 |
|
|
7363 |
for ac_header in unistd.h vfork.h
|
7619 | 7364 |
do
|
7620 | 7365 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7621 | 7366 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
7764 | 7509 |
|
7765 | 7510 |
done
|
7766 | 7511 |
|
7767 | |
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
|
7768 | |
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
|
7769 | |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
|
|
7512 |
|
|
7513 |
|
|
7514 |
for ac_func in fork vfork
|
|
7515 |
do
|
|
7516 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
7517 |
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
7518 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
|
7519 |
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
7770 | 7520 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7771 | 7521 |
else
|
7772 | |
if test "$cross_compiling" = yes; then
|
7773 | |
ac_cv_func_malloc_0_nonnull=no
|
7774 | |
else
|
7775 | 7522 |
cat >conftest.$ac_ext <<_ACEOF
|
7776 | 7523 |
/* confdefs.h. */
|
7777 | 7524 |
_ACEOF
|
7778 | 7525 |
cat confdefs.h >>conftest.$ac_ext
|
7779 | 7526 |
cat >>conftest.$ac_ext <<_ACEOF
|
7780 | 7527 |
/* end confdefs.h. */
|
7781 | |
#if STDC_HEADERS || HAVE_STDLIB_H
|
7782 | |
# include <stdlib.h>
|
|
7528 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
7529 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
7530 |
#define $ac_func innocuous_$ac_func
|
|
7531 |
|
|
7532 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
7533 |
which can conflict with char $ac_func (); below.
|
|
7534 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
7535 |
<limits.h> exists even on freestanding compilers. */
|
|
7536 |
|
|
7537 |
#ifdef __STDC__
|
|
7538 |
# include <limits.h>
|
7783 | 7539 |
#else
|
7784 | |
char *malloc ();
|
|
7540 |
# include <assert.h>
|
|
7541 |
#endif
|
|
7542 |
|
|
7543 |
#undef $ac_func
|
|
7544 |
|
|
7545 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
7546 |
#ifdef __cplusplus
|
|
7547 |
extern "C"
|
|
7548 |
{
|
|
7549 |
#endif
|
|
7550 |
/* We use char because int might match the return type of a gcc2
|
|
7551 |
builtin and then its argument prototype would still apply. */
|
|
7552 |
char $ac_func ();
|
|
7553 |
/* The GNU C library defines this for functions which it implements
|
|
7554 |
to always fail with ENOSYS. Some functions are actually named
|
|
7555 |
something starting with __ and the normal name is an alias. */
|
|
7556 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
7557 |
choke me
|
|
7558 |
#else
|
|
7559 |
char (*f) () = $ac_func;
|
|
7560 |
#endif
|
|
7561 |
#ifdef __cplusplus
|
|
7562 |
}
|
7785 | 7563 |
#endif
|
7786 | 7564 |
|
7787 | 7565 |
int
|
7788 | 7566 |
main ()
|
7789 | 7567 |
{
|
7790 | |
exit (malloc (0) ? 0 : 1);
|
|
7568 |
return f != $ac_func;
|
7791 | 7569 |
;
|
7792 | 7570 |
return 0;
|
7793 | 7571 |
}
|
|
7572 |
_ACEOF
|
|
7573 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
7574 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
7575 |
(eval $ac_link) 2>conftest.er1
|
|
7576 |
ac_status=$?
|
|
7577 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
7578 |
rm -f conftest.er1
|
|
7579 |
cat conftest.err >&5
|
|
7580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7581 |
(exit $ac_status); } &&
|
|
7582 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
7583 |
|| test ! -s conftest.err'
|
|
7584 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7585 |
(eval $ac_try) 2>&5
|
|
7586 |
ac_status=$?
|
|
7587 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7588 |
(exit $ac_status); }; } &&
|
|
7589 |
{ ac_try='test -s conftest$ac_exeext'
|
|
7590 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7591 |
(eval $ac_try) 2>&5
|
|
7592 |
ac_status=$?
|
|
7593 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7594 |
(exit $ac_status); }; }; then
|
|
7595 |
eval "$as_ac_var=yes"
|
|
7596 |
else
|
|
7597 |
echo "$as_me: failed program was:" >&5
|
|
7598 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7599 |
|
|
7600 |
eval "$as_ac_var=no"
|
|
7601 |
fi
|
|
7602 |
rm -f conftest.err conftest.$ac_objext \
|
|
7603 |
conftest$ac_exeext conftest.$ac_ext
|
|
7604 |
fi
|
|
7605 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
|
7606 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
|
7607 |
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
7608 |
cat >>confdefs.h <<_ACEOF
|
|
7609 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
7610 |
_ACEOF
|
|
7611 |
|
|
7612 |
fi
|
|
7613 |
done
|
|
7614 |
|
|
7615 |
if test "x$ac_cv_func_fork" = xyes; then
|
|
7616 |
echo "$as_me:$LINENO: checking for working fork" >&5
|
|
7617 |
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
|
|
7618 |
if test "${ac_cv_func_fork_works+set}" = set; then
|
|
7619 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
7620 |
else
|
|
7621 |
if test "$cross_compiling" = yes; then
|
|
7622 |
ac_cv_func_fork_works=cross
|
|
7623 |
else
|
|
7624 |
cat >conftest.$ac_ext <<_ACEOF
|
|
7625 |
/* By Ruediger Kuhlmann. */
|
|
7626 |
#include <sys/types.h>
|
|
7627 |
#if HAVE_UNISTD_H
|
|
7628 |
# include <unistd.h>
|
|
7629 |
#endif
|
|
7630 |
/* Some systems only have a dummy stub for fork() */
|
|
7631 |
int main ()
|
|
7632 |
{
|
|
7633 |
if (fork() < 0)
|
|
7634 |
exit (1);
|
|
7635 |
exit (0);
|
|
7636 |
}
|
7794 | 7637 |
_ACEOF
|
7795 | 7638 |
rm -f conftest$ac_exeext
|
7796 | 7639 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
7803 | 7646 |
ac_status=$?
|
7804 | 7647 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7805 | 7648 |
(exit $ac_status); }; }; then
|
7806 | |
ac_cv_func_malloc_0_nonnull=yes
|
|
7649 |
ac_cv_func_fork_works=yes
|
7807 | 7650 |
else
|
7808 | 7651 |
echo "$as_me: program exited with status $ac_status" >&5
|
7809 | 7652 |
echo "$as_me: failed program was:" >&5
|
7810 | 7653 |
sed 's/^/| /' conftest.$ac_ext >&5
|
7811 | 7654 |
|
7812 | 7655 |
( exit $ac_status )
|
7813 | |
ac_cv_func_malloc_0_nonnull=no
|
|
7656 |
ac_cv_func_fork_works=no
|
7814 | 7657 |
fi
|
7815 | 7658 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
7816 | 7659 |
fi
|
7817 | 7660 |
fi
|
7818 | |
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
|
7819 | |
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
|
7820 | |
if test $ac_cv_func_malloc_0_nonnull = yes; then
|
7821 | |
|
7822 | |
cat >>confdefs.h <<\_ACEOF
|
7823 | |
#define HAVE_MALLOC 1
|
7824 | |
_ACEOF
|
7825 | |
|
7826 | |
else
|
7827 | |
cat >>confdefs.h <<\_ACEOF
|
7828 | |
#define HAVE_MALLOC 0
|
7829 | |
_ACEOF
|
7830 | |
|
7831 | |
case $LIBOBJS in
|
7832 | |
"malloc.$ac_objext" | \
|
7833 | |
*" malloc.$ac_objext" | \
|
7834 | |
"malloc.$ac_objext "* | \
|
7835 | |
*" malloc.$ac_objext "* ) ;;
|
7836 | |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
|
7837 | |
esac
|
7838 | |
|
7839 | |
|
7840 | |
cat >>confdefs.h <<\_ACEOF
|
7841 | |
#define malloc rpl_malloc
|
7842 | |
_ACEOF
|
7843 | |
|
7844 | |
fi
|
7845 | |
|
7846 | |
|
7847 | |
|
7848 | |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
7849 | |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
7850 | |
if test "${ac_cv_header_time+set}" = set; then
|
|
7661 |
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
|
|
7662 |
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
|
|
7663 |
|
|
7664 |
else
|
|
7665 |
ac_cv_func_fork_works=$ac_cv_func_fork
|
|
7666 |
fi
|
|
7667 |
if test "x$ac_cv_func_fork_works" = xcross; then
|
|
7668 |
case $host in
|
|
7669 |
*-*-amigaos* | *-*-msdosdjgpp*)
|
|
7670 |
# Override, as these systems have only a dummy fork() stub
|
|
7671 |
ac_cv_func_fork_works=no
|
|
7672 |
;;
|
|
7673 |
*)
|
|
7674 |
ac_cv_func_fork_works=yes
|
|
7675 |
;;
|
|
7676 |
esac
|
|
7677 |
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
|
|
7678 |
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
|
|
7679 |
fi
|
|
7680 |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
|
7681 |
if test "x$ac_cv_func_vfork" = xyes; then
|
|
7682 |
echo "$as_me:$LINENO: checking for working vfork" >&5
|
|
7683 |
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
|
|
7684 |
if test "${ac_cv_func_vfork_works+set}" = set; then
|
7851 | 7685 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7852 | 7686 |
else
|
|
7687 |
if test "$cross_compiling" = yes; then
|
|
7688 |
ac_cv_func_vfork_works=cross
|
|
7689 |
else
|
7853 | 7690 |
cat >conftest.$ac_ext <<_ACEOF
|
7854 | 7691 |
/* confdefs.h. */
|
7855 | 7692 |
_ACEOF
|
7856 | 7693 |
cat confdefs.h >>conftest.$ac_ext
|
7857 | 7694 |
cat >>conftest.$ac_ext <<_ACEOF
|
7858 | 7695 |
/* end confdefs.h. */
|
|
7696 |
/* Thanks to Paul Eggert for this test. */
|
|
7697 |
#include <stdio.h>
|
|
7698 |
#include <stdlib.h>
|
7859 | 7699 |
#include <sys/types.h>
|
7860 | |
#include <sys/time.h>
|
7861 | |
#include <time.h>
|
|
7700 |
#include <sys/stat.h>
|
|
7701 |
#include <sys/wait.h>
|
|
7702 |
#if HAVE_UNISTD_H
|
|
7703 |
# include <unistd.h>
|
|
7704 |
#endif
|
|
7705 |
#if HAVE_VFORK_H
|
|
7706 |
# include <vfork.h>
|
|
7707 |
#endif
|
|
7708 |
/* On some sparc systems, changes by the child to local and incoming
|
|
7709 |
argument registers are propagated back to the parent. The compiler
|
|
7710 |
is told about this with #include <vfork.h>, but some compilers
|
|
7711 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
|
|
7712 |
static variable whose address is put into a register that is
|
|
7713 |
clobbered by the vfork. */
|
|
7714 |
static void
|
|
7715 |
#ifdef __cplusplus
|
|
7716 |
sparc_address_test (int arg)
|
|
7717 |
# else
|
|
7718 |
sparc_address_test (arg) int arg;
|
|
7719 |
#endif
|
|
7720 |
{
|
|
7721 |
static pid_t child;
|
|
7722 |
if (!child) {
|
|
7723 |
child = vfork ();
|
|
7724 |
if (child < 0) {
|
|
7725 |
perror ("vfork");
|
|
7726 |
_exit(2);
|
|
7727 |
}
|
|
7728 |
if (!child) {
|
|
7729 |
arg = getpid();
|
|
7730 |
write(-1, "", 0);
|
|
7731 |
_exit (arg);
|
|
7732 |
}
|
|
7733 |
}
|
|
7734 |
}
|
7862 | 7735 |
|
7863 | 7736 |
int
|
7864 | 7737 |
main ()
|
7865 | 7738 |
{
|
7866 | |
if ((struct tm *) 0)
|
7867 | |
return 0;
|
7868 | |
;
|
7869 | |
return 0;
|
7870 | |
}
|
7871 | |
_ACEOF
|
7872 | |
rm -f conftest.$ac_objext
|
7873 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7874 | |
(eval $ac_compile) 2>conftest.er1
|
7875 | |
ac_status=$?
|
7876 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
7877 | |
rm -f conftest.er1
|
7878 | |
cat conftest.err >&5
|
7879 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7880 | |
(exit $ac_status); } &&
|
7881 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
7882 | |
|| test ! -s conftest.err'
|
7883 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7884 | |
(eval $ac_try) 2>&5
|
7885 | |
ac_status=$?
|
7886 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7887 | |
(exit $ac_status); }; } &&
|
7888 | |
{ ac_try='test -s conftest.$ac_objext'
|
7889 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7890 | |
(eval $ac_try) 2>&5
|
7891 | |
ac_status=$?
|
7892 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7893 | |
(exit $ac_status); }; }; then
|
7894 | |
ac_cv_header_time=yes
|
7895 | |
else
|
7896 | |
echo "$as_me: failed program was:" >&5
|
7897 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
7898 | |
|
7899 | |
ac_cv_header_time=no
|
7900 | |
fi
|
7901 | |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7902 | |
fi
|
7903 | |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
7904 | |
echo "${ECHO_T}$ac_cv_header_time" >&6
|
7905 | |
if test $ac_cv_header_time = yes; then
|
|
7739 |
pid_t parent = getpid ();
|
|
7740 |
pid_t child;
|
|
7741 |
|
|
7742 |
sparc_address_test (0);
|
|
7743 |
|
|
7744 |
child = vfork ();
|
|
7745 |
|
|
7746 |
if (child == 0) {
|
|
7747 |
/* Here is another test for sparc vfork register problems. This
|
|
7748 |
test uses lots of local variables, at least as many local
|
|
7749 |
variables as main has allocated so far including compiler
|
|
7750 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
|
|
7751 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
|
|
7752 |
reuse the register of parent for one of the local variables,
|
|
7753 |
since it will think that parent can't possibly be used any more
|
|
7754 |
in this routine. Assigning to the local variable will thus
|
|
7755 |
munge parent in the parent process. */
|
|
7756 |
pid_t
|
|
7757 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
|
|
7758 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
|
|
7759 |
/* Convince the compiler that p..p7 are live; otherwise, it might
|
|
7760 |
use the same hardware register for all 8 local variables. */
|
|
7761 |
if (p != p1 || p != p2 || p != p3 || p != p4
|
|
7762 |
|| p != p5 || p != p6 || p != p7)
|
|
7763 |
_exit(1);
|
|
7764 |
|
|
7765 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
|
|
7766 |
from child file descriptors. If the child closes a descriptor
|
|
7767 |
before it execs or exits, this munges the parent's descriptor
|
|
7768 |
as well. Test for this by closing stdout in the child. */
|
|
7769 |
_exit(close(fileno(stdout)) != 0);
|
|
7770 |
} else {
|
|
7771 |
int status;
|
|
7772 |
struct stat st;
|
|
7773 |
|
|
7774 |
while (wait(&status) != child)
|
|
7775 |
;
|
|
7776 |
exit(
|
|
7777 |
/* Was there some problem with vforking? */
|
|
7778 |
child < 0
|
|
7779 |
|
|
7780 |
/* Did the child fail? (This shouldn't happen.) */
|
|
7781 |
|| status
|
|
7782 |
|
|
7783 |
/* Did the vfork/compiler bug occur? */
|
|
7784 |
|| parent != getpid()
|
|
7785 |
|
|
7786 |
/* Did the file descriptor bug occur? */
|
|
7787 |
|| fstat(fileno(stdout), &st) != 0
|
|
7788 |
);
|
|
7789 |
}
|
|
7790 |
}
|
|
7791 |
_ACEOF
|
|
7792 |
rm -f conftest$ac_exeext
|
|
7793 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
7794 |
(eval $ac_link) 2>&5
|
|
7795 |
ac_status=$?
|
|
7796 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7797 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
7798 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
7799 |
(eval $ac_try) 2>&5
|
|
7800 |
ac_status=$?
|
|
7801 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
7802 |
(exit $ac_status); }; }; then
|
|
7803 |
ac_cv_func_vfork_works=yes
|
|
7804 |
else
|
|
7805 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
7806 |
echo "$as_me: failed program was:" >&5
|
|
7807 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
7808 |
|
|
7809 |
( exit $ac_status )
|
|
7810 |
ac_cv_func_vfork_works=no
|
|
7811 |
fi
|
|
7812 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
7813 |
fi
|
|
7814 |
fi
|
|
7815 |
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
|
|
7816 |
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
|
|
7817 |
|
|
7818 |
fi;
|
|
7819 |
if test "x$ac_cv_func_fork_works" = xcross; then
|
|
7820 |
ac_cv_func_vfork_works=$ac_cv_func_vfork
|
|
7821 |
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
|
|
7822 |
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
|
|
7823 |
fi
|
|
7824 |
|
|
7825 |
if test "x$ac_cv_func_vfork_works" = xyes; then
|
7906 | 7826 |
|
7907 | 7827 |
cat >>confdefs.h <<\_ACEOF
|
7908 | |
#define TIME_WITH_SYS_TIME 1
|
7909 | |
_ACEOF
|
7910 | |
|
7911 | |
fi
|
7912 | |
|
7913 | |
|
7914 | |
|
7915 | |
|
7916 | |
for ac_header in stdlib.h sys/time.h unistd.h
|
|
7828 |
#define HAVE_WORKING_VFORK 1
|
|
7829 |
_ACEOF
|
|
7830 |
|
|
7831 |
else
|
|
7832 |
|
|
7833 |
cat >>confdefs.h <<\_ACEOF
|
|
7834 |
#define vfork fork
|
|
7835 |
_ACEOF
|
|
7836 |
|
|
7837 |
fi
|
|
7838 |
if test "x$ac_cv_func_fork_works" = xyes; then
|
|
7839 |
|
|
7840 |
cat >>confdefs.h <<\_ACEOF
|
|
7841 |
#define HAVE_WORKING_FORK 1
|
|
7842 |
_ACEOF
|
|
7843 |
|
|
7844 |
fi
|
|
7845 |
|
|
7846 |
|
|
7847 |
for ac_header in stdlib.h
|
7917 | 7848 |
do
|
7918 | 7849 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7919 | 7850 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
8062 | 7993 |
|
8063 | 7994 |
done
|
8064 | 7995 |
|
8065 | |
|
8066 | |
for ac_func in alarm
|
8067 | |
do
|
8068 | |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
8069 | |
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
8070 | |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
8071 | |
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
7996 |
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
|
|
7997 |
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
|
|
7998 |
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
|
8072 | 7999 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8073 | 8000 |
else
|
|
8001 |
if test "$cross_compiling" = yes; then
|
|
8002 |
ac_cv_func_malloc_0_nonnull=no
|
|
8003 |
else
|
8074 | 8004 |
cat >conftest.$ac_ext <<_ACEOF
|
8075 | 8005 |
/* confdefs.h. */
|
8076 | 8006 |
_ACEOF
|
8077 | 8007 |
cat confdefs.h >>conftest.$ac_ext
|
8078 | 8008 |
cat >>conftest.$ac_ext <<_ACEOF
|
8079 | 8009 |
/* end confdefs.h. */
|
8080 | |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
8081 | |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
8082 | |
#define $ac_func innocuous_$ac_func
|
8083 | |
|
8084 | |
/* System header to define __stub macros and hopefully few prototypes,
|
8085 | |
which can conflict with char $ac_func (); below.
|
8086 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
8087 | |
<limits.h> exists even on freestanding compilers. */
|
8088 | |
|
8089 | |
#ifdef __STDC__
|
8090 | |
# include <limits.h>
|
|
8010 |
#if STDC_HEADERS || HAVE_STDLIB_H
|
|
8011 |
# include <stdlib.h>
|
8091 | 8012 |
#else
|
8092 | |
# include <assert.h>
|
8093 | |
#endif
|
8094 | |
|
8095 | |
#undef $ac_func
|
8096 | |
|
8097 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
8098 | |
#ifdef __cplusplus
|
8099 | |
extern "C"
|
8100 | |
{
|
8101 | |
#endif
|
8102 | |
/* We use char because int might match the return type of a gcc2
|
8103 | |
builtin and then its argument prototype would still apply. */
|
8104 | |
char $ac_func ();
|
8105 | |
/* The GNU C library defines this for functions which it implements
|
8106 | |
to always fail with ENOSYS. Some functions are actually named
|
8107 | |
something starting with __ and the normal name is an alias. */
|
8108 | |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
8109 | |
choke me
|
8110 | |
#else
|
8111 | |
char (*f) () = $ac_func;
|
8112 | |
#endif
|
8113 | |
#ifdef __cplusplus
|
8114 | |
}
|
|
8013 |
char *malloc ();
|
8115 | 8014 |
#endif
|
8116 | 8015 |
|
8117 | 8016 |
int
|
8118 | 8017 |
main ()
|
8119 | 8018 |
{
|
8120 | |
return f != $ac_func;
|
|
8019 |
exit (malloc (0) ? 0 : 1);
|
8121 | 8020 |
;
|
8122 | 8021 |
return 0;
|
8123 | 8022 |
}
|
8124 | 8023 |
_ACEOF
|
8125 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
8024 |
rm -f conftest$ac_exeext
|
8126 | 8025 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8127 | |
(eval $ac_link) 2>conftest.er1
|
|
8026 |
(eval $ac_link) 2>&5
|
|
8027 |
ac_status=$?
|
|
8028 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8029 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
8030 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8031 |
(eval $ac_try) 2>&5
|
|
8032 |
ac_status=$?
|
|
8033 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8034 |
(exit $ac_status); }; }; then
|
|
8035 |
ac_cv_func_malloc_0_nonnull=yes
|
|
8036 |
else
|
|
8037 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
8038 |
echo "$as_me: failed program was:" >&5
|
|
8039 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
8040 |
|
|
8041 |
( exit $ac_status )
|
|
8042 |
ac_cv_func_malloc_0_nonnull=no
|
|
8043 |
fi
|
|
8044 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
8045 |
fi
|
|
8046 |
fi
|
|
8047 |
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
|
|
8048 |
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
|
|
8049 |
if test $ac_cv_func_malloc_0_nonnull = yes; then
|
|
8050 |
|
|
8051 |
cat >>confdefs.h <<\_ACEOF
|
|
8052 |
#define HAVE_MALLOC 1
|
|
8053 |
_ACEOF
|
|
8054 |
|
|
8055 |
else
|
|
8056 |
cat >>confdefs.h <<\_ACEOF
|
|
8057 |
#define HAVE_MALLOC 0
|
|
8058 |
_ACEOF
|
|
8059 |
|
|
8060 |
case $LIBOBJS in
|
|
8061 |
"malloc.$ac_objext" | \
|
|
8062 |
*" malloc.$ac_objext" | \
|
|
8063 |
"malloc.$ac_objext "* | \
|
|
8064 |
*" malloc.$ac_objext "* ) ;;
|
|
8065 |
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
|
|
8066 |
esac
|
|
8067 |
|
|
8068 |
|
|
8069 |
cat >>confdefs.h <<\_ACEOF
|
|
8070 |
#define malloc rpl_malloc
|
|
8071 |
_ACEOF
|
|
8072 |
|
|
8073 |
fi
|
|
8074 |
|
|
8075 |
|
|
8076 |
|
|
8077 |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
|
8078 |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
|
8079 |
if test "${ac_cv_header_time+set}" = set; then
|
|
8080 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8081 |
else
|
|
8082 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8083 |
/* confdefs.h. */
|
|
8084 |
_ACEOF
|
|
8085 |
cat confdefs.h >>conftest.$ac_ext
|
|
8086 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8087 |
/* end confdefs.h. */
|
|
8088 |
#include <sys/types.h>
|
|
8089 |
#include <sys/time.h>
|
|
8090 |
#include <time.h>
|
|
8091 |
|
|
8092 |
int
|
|
8093 |
main ()
|
|
8094 |
{
|
|
8095 |
if ((struct tm *) 0)
|
|
8096 |
return 0;
|
|
8097 |
;
|
|
8098 |
return 0;
|
|
8099 |
}
|
|
8100 |
_ACEOF
|
|
8101 |
rm -f conftest.$ac_objext
|
|
8102 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
8103 |
(eval $ac_compile) 2>conftest.er1
|
8128 | 8104 |
ac_status=$?
|
8129 | 8105 |
grep -v '^ *+' conftest.er1 >conftest.err
|
8130 | 8106 |
rm -f conftest.er1
|
|
8138 | 8114 |
ac_status=$?
|
8139 | 8115 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8140 | 8116 |
(exit $ac_status); }; } &&
|
8141 | |
{ ac_try='test -s conftest$ac_exeext'
|
8142 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8143 | |
(eval $ac_try) 2>&5
|
8144 | |
ac_status=$?
|
8145 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8146 | |
(exit $ac_status); }; }; then
|
8147 | |
eval "$as_ac_var=yes"
|
|
8117 |
{ ac_try='test -s conftest.$ac_objext'
|
|
8118 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8119 |
(eval $ac_try) 2>&5
|
|
8120 |
ac_status=$?
|
|
8121 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8122 |
(exit $ac_status); }; }; then
|
|
8123 |
ac_cv_header_time=yes
|
8148 | 8124 |
else
|
8149 | 8125 |
echo "$as_me: failed program was:" >&5
|
8150 | 8126 |
sed 's/^/| /' conftest.$ac_ext >&5
|
8151 | 8127 |
|
8152 | |
eval "$as_ac_var=no"
|
8153 | |
fi
|
8154 | |
rm -f conftest.err conftest.$ac_objext \
|
8155 | |
conftest$ac_exeext conftest.$ac_ext
|
8156 | |
fi
|
8157 | |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
8158 | |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
8159 | |
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
8160 | |
cat >>confdefs.h <<_ACEOF
|
8161 | |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
8162 | |
_ACEOF
|
8163 | |
|
8164 | |
fi
|
8165 | |
done
|
8166 | |
|
8167 | |
echo "$as_me:$LINENO: checking for working mktime" >&5
|
8168 | |
echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
|
8169 | |
if test "${ac_cv_func_working_mktime+set}" = set; then
|
8170 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8171 | |
else
|
8172 | |
if test "$cross_compiling" = yes; then
|
8173 | |
ac_cv_func_working_mktime=no
|
8174 | |
else
|
8175 | |
cat >conftest.$ac_ext <<_ACEOF
|
8176 | |
/* confdefs.h. */
|
8177 | |
_ACEOF
|
8178 | |
cat confdefs.h >>conftest.$ac_ext
|
8179 | |
cat >>conftest.$ac_ext <<_ACEOF
|
8180 | |
/* end confdefs.h. */
|
8181 | |
/* Test program from Paul Eggert and Tony Leneis. */
|
8182 | |
#if TIME_WITH_SYS_TIME
|
8183 | |
# include <sys/time.h>
|
8184 | |
# include <time.h>
|
8185 | |
#else
|
8186 | |
# if HAVE_SYS_TIME_H
|
8187 | |
# include <sys/time.h>
|
8188 | |
# else
|
8189 | |
# include <time.h>
|
8190 | |
# endif
|
8191 | |
#endif
|
8192 | |
|
8193 | |
#if HAVE_STDLIB_H
|
8194 | |
# include <stdlib.h>
|
8195 | |
#endif
|
8196 | |
|
8197 | |
#if HAVE_UNISTD_H
|
8198 | |
# include <unistd.h>
|
8199 | |
#endif
|
8200 | |
|
8201 | |
#if !HAVE_ALARM
|
8202 | |
# define alarm(X) /* empty */
|
8203 | |
#endif
|
8204 | |
|
8205 | |
/* Work around redefinition to rpl_putenv by other config tests. */
|
8206 | |
#undef putenv
|
8207 | |
|
8208 | |
static time_t time_t_max;
|
8209 | |
static time_t time_t_min;
|
8210 | |
|
8211 | |
/* Values we'll use to set the TZ environment variable. */
|
8212 | |
static char *tz_strings[] = {
|
8213 | |
(char *) 0, "TZ=GMT0", "TZ=JST-9",
|
8214 | |
"TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
|
8215 | |
};
|
8216 | |
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
|
8217 | |
|
8218 | |
/* Fail if mktime fails to convert a date in the spring-forward gap.
|
8219 | |
Based on a problem report from Andreas Jaeger. */
|
8220 | |
static void
|
8221 | |
spring_forward_gap ()
|
8222 | |
{
|
8223 | |
/* glibc (up to about 1998-10-07) failed this test. */
|
8224 | |
struct tm tm;
|
8225 | |
|
8226 | |
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
|
8227 | |
instead of "TZ=America/Vancouver" in order to detect the bug even
|
8228 | |
on systems that don't support the Olson extension, or don't have the
|
8229 | |
full zoneinfo tables installed. */
|
8230 | |
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
|
8231 | |
|
8232 | |
tm.tm_year = 98;
|
8233 | |
tm.tm_mon = 3;
|
8234 | |
tm.tm_mday = 5;
|
8235 | |
tm.tm_hour = 2;
|
8236 | |
tm.tm_min = 0;
|
8237 | |
tm.tm_sec = 0;
|
8238 | |
tm.tm_isdst = -1;
|
8239 | |
if (mktime (&tm) == (time_t)-1)
|
8240 | |
exit (1);
|
8241 | |
}
|
8242 | |
|
8243 | |
static void
|
8244 | |
mktime_test1 (now)
|
8245 | |
time_t now;
|
8246 | |
{
|
8247 | |
struct tm *lt;
|
8248 | |
if ((lt = localtime (&now)) && mktime (lt) != now)
|
8249 | |
exit (1);
|
8250 | |
}
|
8251 | |
|
8252 | |
static void
|
8253 | |
mktime_test (now)
|
8254 | |
time_t now;
|
8255 | |
{
|
8256 | |
mktime_test1 (now);
|
8257 | |
mktime_test1 ((time_t) (time_t_max - now));
|
8258 | |
mktime_test1 ((time_t) (time_t_min + now));
|
8259 | |
}
|
8260 | |
|
8261 | |
static void
|
8262 | |
irix_6_4_bug ()
|
8263 | |
{
|
8264 | |
/* Based on code from Ariel Faigon. */
|
8265 | |
struct tm tm;
|
8266 | |
tm.tm_year = 96;
|
8267 | |
tm.tm_mon = 3;
|
8268 | |
tm.tm_mday = 0;
|
8269 | |
tm.tm_hour = 0;
|
8270 | |
tm.tm_min = 0;
|
8271 | |
tm.tm_sec = 0;
|
8272 | |
tm.tm_isdst = -1;
|
8273 | |
mktime (&tm);
|
8274 | |
if (tm.tm_mon != 2 || tm.tm_mday != 31)
|
8275 | |
exit (1);
|
8276 | |
}
|
8277 | |
|
8278 | |
static void
|
8279 | |
bigtime_test (j)
|
8280 | |
int j;
|
8281 | |
{
|
8282 | |
struct tm tm;
|
8283 | |
time_t now;
|
8284 | |
tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
|
8285 | |
now = mktime (&tm);
|
8286 | |
if (now != (time_t) -1)
|
8287 | |
{
|
8288 | |
struct tm *lt = localtime (&now);
|
8289 | |
if (! (lt
|
8290 | |
&& lt->tm_year == tm.tm_year
|
8291 | |
&& lt->tm_mon == tm.tm_mon
|
8292 | |
&& lt->tm_mday == tm.tm_mday
|
8293 | |
&& lt->tm_hour == tm.tm_hour
|
8294 | |
&& lt->tm_min == tm.tm_min
|
8295 | |
&& lt->tm_sec == tm.tm_sec
|
8296 | |
&& lt->tm_yday == tm.tm_yday
|
8297 | |
&& lt->tm_wday == tm.tm_wday
|
8298 | |
&& ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
|
8299 | |
== (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
|
8300 | |
exit (1);
|
8301 | |
}
|
8302 | |
}
|
8303 | |
|
8304 | |
int
|
8305 | |
main ()
|
8306 | |
{
|
8307 | |
time_t t, delta;
|
8308 | |
int i, j;
|
8309 | |
|
8310 | |
/* This test makes some buggy mktime implementations loop.
|
8311 | |
Give up after 60 seconds; a mktime slower than that
|
8312 | |
isn't worth using anyway. */
|
8313 | |
alarm (60);
|
8314 | |
|
8315 | |
for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
|
8316 | |
continue;
|
8317 | |
time_t_max--;
|
8318 | |
if ((time_t) -1 < 0)
|
8319 | |
for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
|
8320 | |
continue;
|
8321 | |
delta = time_t_max / 997; /* a suitable prime number */
|
8322 | |
for (i = 0; i < N_STRINGS; i++)
|
8323 | |
{
|
8324 | |
if (tz_strings[i])
|
8325 | |
putenv (tz_strings[i]);
|
8326 | |
|
8327 | |
for (t = 0; t <= time_t_max - delta; t += delta)
|
8328 | |
mktime_test (t);
|
8329 | |
mktime_test ((time_t) 1);
|
8330 | |
mktime_test ((time_t) (60 * 60));
|
8331 | |
mktime_test ((time_t) (60 * 60 * 24));
|
8332 | |
|
8333 | |
for (j = 1; 0 < j; j *= 2)
|
8334 | |
bigtime_test (j);
|
8335 | |
bigtime_test (j - 1);
|
8336 | |
}
|
8337 | |
irix_6_4_bug ();
|
8338 | |
spring_forward_gap ();
|
8339 | |
exit (0);
|
8340 | |
}
|
8341 | |
_ACEOF
|
8342 | |
rm -f conftest$ac_exeext
|
8343 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8344 | |
(eval $ac_link) 2>&5
|
8345 | |
ac_status=$?
|
8346 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8347 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
8348 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8349 | |
(eval $ac_try) 2>&5
|
8350 | |
ac_status=$?
|
8351 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8352 | |
(exit $ac_status); }; }; then
|
8353 | |
ac_cv_func_working_mktime=yes
|
8354 | |
else
|
8355 | |
echo "$as_me: program exited with status $ac_status" >&5
|
8356 | |
echo "$as_me: failed program was:" >&5
|
8357 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
8358 | |
|
8359 | |
( exit $ac_status )
|
8360 | |
ac_cv_func_working_mktime=no
|
8361 | |
fi
|
8362 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
8363 | |
fi
|
8364 | |
fi
|
8365 | |
echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
|
8366 | |
echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
|
8367 | |
if test $ac_cv_func_working_mktime = no; then
|
8368 | |
case $LIBOBJS in
|
8369 | |
"mktime.$ac_objext" | \
|
8370 | |
*" mktime.$ac_objext" | \
|
8371 | |
"mktime.$ac_objext "* | \
|
8372 | |
*" mktime.$ac_objext "* ) ;;
|
8373 | |
*) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
|
8374 | |
esac
|
8375 | |
|
8376 | |
fi
|
8377 | |
|
8378 | |
|
8379 | |
for ac_header in stdlib.h
|
|
8128 |
ac_cv_header_time=no
|
|
8129 |
fi
|
|
8130 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
8131 |
fi
|
|
8132 |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
|
8133 |
echo "${ECHO_T}$ac_cv_header_time" >&6
|
|
8134 |
if test $ac_cv_header_time = yes; then
|
|
8135 |
|
|
8136 |
cat >>confdefs.h <<\_ACEOF
|
|
8137 |
#define TIME_WITH_SYS_TIME 1
|
|
8138 |
_ACEOF
|
|
8139 |
|
|
8140 |
fi
|
|
8141 |
|
|
8142 |
|
|
8143 |
|
|
8144 |
|
|
8145 |
for ac_header in stdlib.h sys/time.h unistd.h
|
8380 | 8146 |
do
|
8381 | 8147 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
8382 | 8148 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
8525 | 8291 |
|
8526 | 8292 |
done
|
8527 | 8293 |
|
8528 | |
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
|
8529 | |
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
|
8530 | |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
|
8531 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8532 | |
else
|
8533 | |
if test "$cross_compiling" = yes; then
|
8534 | |
ac_cv_func_realloc_0_nonnull=no
|
8535 | |
else
|
8536 | |
cat >conftest.$ac_ext <<_ACEOF
|
8537 | |
/* confdefs.h. */
|
8538 | |
_ACEOF
|
8539 | |
cat confdefs.h >>conftest.$ac_ext
|
8540 | |
cat >>conftest.$ac_ext <<_ACEOF
|
8541 | |
/* end confdefs.h. */
|
8542 | |
#if STDC_HEADERS || HAVE_STDLIB_H
|
8543 | |
# include <stdlib.h>
|
8544 | |
#else
|
8545 | |
char *realloc ();
|
8546 | |
#endif
|
8547 | |
|
8548 | |
int
|
8549 | |
main ()
|
8550 | |
{
|
8551 | |
exit (realloc (0, 0) ? 0 : 1);
|
8552 | |
;
|
8553 | |
return 0;
|
8554 | |
}
|
8555 | |
_ACEOF
|
8556 | |
rm -f conftest$ac_exeext
|
8557 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8558 | |
(eval $ac_link) 2>&5
|
8559 | |
ac_status=$?
|
8560 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8561 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
8562 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8563 | |
(eval $ac_try) 2>&5
|
8564 | |
ac_status=$?
|
8565 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8566 | |
(exit $ac_status); }; }; then
|
8567 | |
ac_cv_func_realloc_0_nonnull=yes
|
8568 | |
else
|
8569 | |
echo "$as_me: program exited with status $ac_status" >&5
|
8570 | |
echo "$as_me: failed program was:" >&5
|
8571 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
8572 | |
|
8573 | |
( exit $ac_status )
|
8574 | |
ac_cv_func_realloc_0_nonnull=no
|
8575 | |
fi
|
8576 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
8577 | |
fi
|
8578 | |
fi
|
8579 | |
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
|
8580 | |
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
|
8581 | |
if test $ac_cv_func_realloc_0_nonnull = yes; then
|
8582 | |
|
8583 | |
cat >>confdefs.h <<\_ACEOF
|
8584 | |
#define HAVE_REALLOC 1
|
8585 | |
_ACEOF
|
8586 | |
|
8587 | |
else
|
8588 | |
cat >>confdefs.h <<\_ACEOF
|
8589 | |
#define HAVE_REALLOC 0
|
8590 | |
_ACEOF
|
8591 | |
|
8592 | |
case $LIBOBJS in
|
8593 | |
"realloc.$ac_objext" | \
|
8594 | |
*" realloc.$ac_objext" | \
|
8595 | |
"realloc.$ac_objext "* | \
|
8596 | |
*" realloc.$ac_objext "* ) ;;
|
8597 | |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
|
8598 | |
esac
|
8599 | |
|
8600 | |
|
8601 | |
cat >>confdefs.h <<\_ACEOF
|
8602 | |
#define realloc rpl_realloc
|
8603 | |
_ACEOF
|
8604 | |
|
8605 | |
fi
|
8606 | |
|
8607 | |
|
8608 | |
|
8609 | |
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
|
8610 | |
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
|
8611 | |
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
|
8612 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8613 | |
else
|
8614 | |
rm -f conftest.sym conftest.file
|
8615 | |
echo >conftest.file
|
8616 | |
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
|
8617 | |
if test "$cross_compiling" = yes; then
|
8618 | |
ac_cv_func_lstat_dereferences_slashed_symlink=no
|
8619 | |
else
|
8620 | |
cat >conftest.$ac_ext <<_ACEOF
|
8621 | |
/* confdefs.h. */
|
8622 | |
_ACEOF
|
8623 | |
cat confdefs.h >>conftest.$ac_ext
|
8624 | |
cat >>conftest.$ac_ext <<_ACEOF
|
8625 | |
/* end confdefs.h. */
|
8626 | |
$ac_includes_default
|
8627 | |
int
|
8628 | |
main ()
|
8629 | |
{
|
8630 | |
struct stat sbuf;
|
8631 | |
/* Linux will dereference the symlink and fail.
|
8632 | |
That is better in the sense that it means we will not
|
8633 | |
have to compile and use the lstat wrapper. */
|
8634 | |
exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
|
8635 | |
;
|
8636 | |
return 0;
|
8637 | |
}
|
8638 | |
_ACEOF
|
8639 | |
rm -f conftest$ac_exeext
|
8640 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8641 | |
(eval $ac_link) 2>&5
|
8642 | |
ac_status=$?
|
8643 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8644 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
8645 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8646 | |
(eval $ac_try) 2>&5
|
8647 | |
ac_status=$?
|
8648 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8649 | |
(exit $ac_status); }; }; then
|
8650 | |
ac_cv_func_lstat_dereferences_slashed_symlink=yes
|
8651 | |
else
|
8652 | |
echo "$as_me: program exited with status $ac_status" >&5
|
8653 | |
echo "$as_me: failed program was:" >&5
|
8654 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
8655 | |
|
8656 | |
( exit $ac_status )
|
8657 | |
ac_cv_func_lstat_dereferences_slashed_symlink=no
|
8658 | |
fi
|
8659 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
8660 | |
fi
|
8661 | |
else
|
8662 | |
# If the `ln -s' command failed, then we probably don't even
|
8663 | |
# have an lstat function.
|
8664 | |
ac_cv_func_lstat_dereferences_slashed_symlink=no
|
8665 | |
fi
|
8666 | |
rm -f conftest.sym conftest.file
|
8667 | |
|
8668 | |
fi
|
8669 | |
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
|
8670 | |
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
|
8671 | |
|
8672 | |
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
|
8673 | |
|
8674 | |
cat >>confdefs.h <<_ACEOF
|
8675 | |
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
|
8676 | |
_ACEOF
|
8677 | |
|
8678 | |
|
8679 | |
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
|
8680 | |
case $LIBOBJS in
|
8681 | |
"lstat.$ac_objext" | \
|
8682 | |
*" lstat.$ac_objext" | \
|
8683 | |
"lstat.$ac_objext "* | \
|
8684 | |
*" lstat.$ac_objext "* ) ;;
|
8685 | |
*) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
|
8686 | |
esac
|
8687 | |
|
8688 | |
fi
|
8689 | |
|
8690 | |
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
|
8691 | |
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
|
8692 | |
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
|
8693 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8694 | |
else
|
8695 | |
if test "$cross_compiling" = yes; then
|
8696 | |
ac_cv_func_stat_empty_string_bug=yes
|
8697 | |
else
|
8698 | |
cat >conftest.$ac_ext <<_ACEOF
|
8699 | |
/* confdefs.h. */
|
8700 | |
_ACEOF
|
8701 | |
cat confdefs.h >>conftest.$ac_ext
|
8702 | |
cat >>conftest.$ac_ext <<_ACEOF
|
8703 | |
/* end confdefs.h. */
|
8704 | |
$ac_includes_default
|
8705 | |
int
|
8706 | |
main ()
|
8707 | |
{
|
8708 | |
struct stat sbuf;
|
8709 | |
exit (stat ("", &sbuf) ? 1 : 0);
|
8710 | |
;
|
8711 | |
return 0;
|
8712 | |
}
|
8713 | |
_ACEOF
|
8714 | |
rm -f conftest$ac_exeext
|
8715 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8716 | |
(eval $ac_link) 2>&5
|
8717 | |
ac_status=$?
|
8718 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8719 | |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
8720 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8721 | |
(eval $ac_try) 2>&5
|
8722 | |
ac_status=$?
|
8723 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8724 | |
(exit $ac_status); }; }; then
|
8725 | |
ac_cv_func_stat_empty_string_bug=yes
|
8726 | |
else
|
8727 | |
echo "$as_me: program exited with status $ac_status" >&5
|
8728 | |
echo "$as_me: failed program was:" >&5
|
8729 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
8730 | |
|
8731 | |
( exit $ac_status )
|
8732 | |
ac_cv_func_stat_empty_string_bug=no
|
8733 | |
fi
|
8734 | |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
8735 | |
fi
|
8736 | |
fi
|
8737 | |
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
|
8738 | |
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
|
8739 | |
if test $ac_cv_func_stat_empty_string_bug = yes; then
|
8740 | |
case $LIBOBJS in
|
8741 | |
"stat.$ac_objext" | \
|
8742 | |
*" stat.$ac_objext" | \
|
8743 | |
"stat.$ac_objext "* | \
|
8744 | |
*" stat.$ac_objext "* ) ;;
|
8745 | |
*) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
|
8746 | |
esac
|
8747 | |
|
8748 | |
|
8749 | |
cat >>confdefs.h <<_ACEOF
|
8750 | |
#define HAVE_STAT_EMPTY_STRING_BUG 1
|
8751 | |
_ACEOF
|
8752 | |
|
8753 | |
fi
|
8754 | |
|
8755 | |
|
8756 | |
for ac_func in strftime
|
|
8294 |
|
|
8295 |
for ac_func in alarm
|
8757 | 8296 |
do
|
8758 | 8297 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
8759 | 8298 |
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
8851 | 8390 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
8852 | 8391 |
_ACEOF
|
8853 | 8392 |
|
8854 | |
else
|
8855 | |
# strftime is in -lintl on SCO UNIX.
|
8856 | |
echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
|
8857 | |
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
|
8858 | |
if test "${ac_cv_lib_intl_strftime+set}" = set; then
|
|
8393 |
fi
|
|
8394 |
done
|
|
8395 |
|
|
8396 |
echo "$as_me:$LINENO: checking for working mktime" >&5
|
|
8397 |
echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
|
|
8398 |
if test "${ac_cv_func_working_mktime+set}" = set; then
|
8859 | 8399 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8860 | 8400 |
else
|
8861 | |
ac_check_lib_save_LIBS=$LIBS
|
8862 | |
LIBS="-lintl $LIBS"
|
8863 | |
cat >conftest.$ac_ext <<_ACEOF
|
8864 | |
/* confdefs.h. */
|
8865 | |
_ACEOF
|
8866 | |
cat confdefs.h >>conftest.$ac_ext
|
8867 | |
cat >>conftest.$ac_ext <<_ACEOF
|
8868 | |
/* end confdefs.h. */
|
8869 | |
|
8870 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
8871 | |
#ifdef __cplusplus
|
8872 | |
extern "C"
|
|
8401 |
if test "$cross_compiling" = yes; then
|
|
8402 |
ac_cv_func_working_mktime=no
|
|
8403 |
else
|
|
8404 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8405 |
/* confdefs.h. */
|
|
8406 |
_ACEOF
|
|
8407 |
cat confdefs.h >>conftest.$ac_ext
|
|
8408 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8409 |
/* end confdefs.h. */
|
|
8410 |
/* Test program from Paul Eggert and Tony Leneis. */
|
|
8411 |
#if TIME_WITH_SYS_TIME
|
|
8412 |
# include <sys/time.h>
|
|
8413 |
# include <time.h>
|
|
8414 |
#else
|
|
8415 |
# if HAVE_SYS_TIME_H
|
|
8416 |
# include <sys/time.h>
|
|
8417 |
# else
|
|
8418 |
# include <time.h>
|
|
8419 |
# endif
|
8873 | 8420 |
#endif
|
8874 | |
/* We use char because int might match the return type of a gcc2
|
8875 | |
builtin and then its argument prototype would still apply. */
|
8876 | |
char strftime ();
|
|
8421 |
|
|
8422 |
#if HAVE_STDLIB_H
|
|
8423 |
# include <stdlib.h>
|
|
8424 |
#endif
|
|
8425 |
|
|
8426 |
#if HAVE_UNISTD_H
|
|
8427 |
# include <unistd.h>
|
|
8428 |
#endif
|
|
8429 |
|
|
8430 |
#if !HAVE_ALARM
|
|
8431 |
# define alarm(X) /* empty */
|
|
8432 |
#endif
|
|
8433 |
|
|
8434 |
/* Work around redefinition to rpl_putenv by other config tests. */
|
|
8435 |
#undef putenv
|
|
8436 |
|
|
8437 |
static time_t time_t_max;
|
|
8438 |
static time_t time_t_min;
|
|
8439 |
|
|
8440 |
/* Values we'll use to set the TZ environment variable. */
|
|
8441 |
static char *tz_strings[] = {
|
|
8442 |
(char *) 0, "TZ=GMT0", "TZ=JST-9",
|
|
8443 |
"TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
|
|
8444 |
};
|
|
8445 |
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
|
|
8446 |
|
|
8447 |
/* Fail if mktime fails to convert a date in the spring-forward gap.
|
|
8448 |
Based on a problem report from Andreas Jaeger. */
|
|
8449 |
static void
|
|
8450 |
spring_forward_gap ()
|
|
8451 |
{
|
|
8452 |
/* glibc (up to about 1998-10-07) failed this test. */
|
|
8453 |
struct tm tm;
|
|
8454 |
|
|
8455 |
/* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
|
|
8456 |
instead of "TZ=America/Vancouver" in order to detect the bug even
|
|
8457 |
on systems that don't support the Olson extension, or don't have the
|
|
8458 |
full zoneinfo tables installed. */
|
|
8459 |
putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
|
|
8460 |
|
|
8461 |
tm.tm_year = 98;
|
|
8462 |
tm.tm_mon = 3;
|
|
8463 |
tm.tm_mday = 5;
|
|
8464 |
tm.tm_hour = 2;
|
|
8465 |
tm.tm_min = 0;
|
|
8466 |
tm.tm_sec = 0;
|
|
8467 |
tm.tm_isdst = -1;
|
|
8468 |
if (mktime (&tm) == (time_t)-1)
|
|
8469 |
exit (1);
|
|
8470 |
}
|
|
8471 |
|
|
8472 |
static void
|
|
8473 |
mktime_test1 (now)
|
|
8474 |
time_t now;
|
|
8475 |
{
|
|
8476 |
struct tm *lt;
|
|
8477 |
if ((lt = localtime (&now)) && mktime (lt) != now)
|
|
8478 |
exit (1);
|
|
8479 |
}
|
|
8480 |
|
|
8481 |
static void
|
|
8482 |
mktime_test (now)
|
|
8483 |
time_t now;
|
|
8484 |
{
|
|
8485 |
mktime_test1 (now);
|
|
8486 |
mktime_test1 ((time_t) (time_t_max - now));
|
|
8487 |
mktime_test1 ((time_t) (time_t_min + now));
|
|
8488 |
}
|
|
8489 |
|
|
8490 |
static void
|
|
8491 |
irix_6_4_bug ()
|
|
8492 |
{
|
|
8493 |
/* Based on code from Ariel Faigon. */
|
|
8494 |
struct tm tm;
|
|
8495 |
tm.tm_year = 96;
|
|
8496 |
tm.tm_mon = 3;
|
|
8497 |
tm.tm_mday = 0;
|
|
8498 |
tm.tm_hour = 0;
|
|
8499 |
tm.tm_min = 0;
|
|
8500 |
tm.tm_sec = 0;
|
|
8501 |
tm.tm_isdst = -1;
|
|
8502 |
mktime (&tm);
|
|
8503 |
if (tm.tm_mon != 2 || tm.tm_mday != 31)
|
|
8504 |
exit (1);
|
|
8505 |
}
|
|
8506 |
|
|
8507 |
static void
|
|
8508 |
bigtime_test (j)
|
|
8509 |
int j;
|
|
8510 |
{
|
|
8511 |
struct tm tm;
|
|
8512 |
time_t now;
|
|
8513 |
tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
|
|
8514 |
now = mktime (&tm);
|
|
8515 |
if (now != (time_t) -1)
|
|
8516 |
{
|
|
8517 |
struct tm *lt = localtime (&now);
|
|
8518 |
if (! (lt
|
|
8519 |
&& lt->tm_year == tm.tm_year
|
|
8520 |
&& lt->tm_mon == tm.tm_mon
|
|
8521 |
&& lt->tm_mday == tm.tm_mday
|
|
8522 |
&& lt->tm_hour == tm.tm_hour
|
|
8523 |
&& lt->tm_min == tm.tm_min
|
|
8524 |
&& lt->tm_sec == tm.tm_sec
|
|
8525 |
&& lt->tm_yday == tm.tm_yday
|
|
8526 |
&& lt->tm_wday == tm.tm_wday
|
|
8527 |
&& ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
|
|
8528 |
== (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
|
|
8529 |
exit (1);
|
|
8530 |
}
|
|
8531 |
}
|
|
8532 |
|
8877 | 8533 |
int
|
8878 | 8534 |
main ()
|
8879 | 8535 |
{
|
8880 | |
strftime ();
|
8881 | |
;
|
8882 | |
return 0;
|
8883 | |
}
|
8884 | |
_ACEOF
|
8885 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
8536 |
time_t t, delta;
|
|
8537 |
int i, j;
|
|
8538 |
|
|
8539 |
/* This test makes some buggy mktime implementations loop.
|
|
8540 |
Give up after 60 seconds; a mktime slower than that
|
|
8541 |
isn't worth using anyway. */
|
|
8542 |
alarm (60);
|
|
8543 |
|
|
8544 |
for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
|
|
8545 |
continue;
|
|
8546 |
time_t_max--;
|
|
8547 |
if ((time_t) -1 < 0)
|
|
8548 |
for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
|
|
8549 |
continue;
|
|
8550 |
delta = time_t_max / 997; /* a suitable prime number */
|
|
8551 |
for (i = 0; i < N_STRINGS; i++)
|
|
8552 |
{
|
|
8553 |
if (tz_strings[i])
|
|
8554 |
putenv (tz_strings[i]);
|
|
8555 |
|
|
8556 |
for (t = 0; t <= time_t_max - delta; t += delta)
|
|
8557 |
mktime_test (t);
|
|
8558 |
mktime_test ((time_t) 1);
|
|
8559 |
mktime_test ((time_t) (60 * 60));
|
|
8560 |
mktime_test ((time_t) (60 * 60 * 24));
|
|
8561 |
|
|
8562 |
for (j = 1; 0 < j; j *= 2)
|
|
8563 |
bigtime_test (j);
|
|
8564 |
bigtime_test (j - 1);
|
|
8565 |
}
|
|
8566 |
irix_6_4_bug ();
|
|
8567 |
spring_forward_gap ();
|
|
8568 |
exit (0);
|
|
8569 |
}
|
|
8570 |
_ACEOF
|
|
8571 |
rm -f conftest$ac_exeext
|
8886 | 8572 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8887 | |
(eval $ac_link) 2>conftest.er1
|
|
8573 |
(eval $ac_link) 2>&5
|
|
8574 |
ac_status=$?
|
|
8575 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8576 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
8577 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8578 |
(eval $ac_try) 2>&5
|
|
8579 |
ac_status=$?
|
|
8580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8581 |
(exit $ac_status); }; }; then
|
|
8582 |
ac_cv_func_working_mktime=yes
|
|
8583 |
else
|
|
8584 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
8585 |
echo "$as_me: failed program was:" >&5
|
|
8586 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
8587 |
|
|
8588 |
( exit $ac_status )
|
|
8589 |
ac_cv_func_working_mktime=no
|
|
8590 |
fi
|
|
8591 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
8592 |
fi
|
|
8593 |
fi
|
|
8594 |
echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
|
|
8595 |
echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
|
|
8596 |
if test $ac_cv_func_working_mktime = no; then
|
|
8597 |
case $LIBOBJS in
|
|
8598 |
"mktime.$ac_objext" | \
|
|
8599 |
*" mktime.$ac_objext" | \
|
|
8600 |
"mktime.$ac_objext "* | \
|
|
8601 |
*" mktime.$ac_objext "* ) ;;
|
|
8602 |
*) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
|
|
8603 |
esac
|
|
8604 |
|
|
8605 |
fi
|
|
8606 |
|
|
8607 |
|
|
8608 |
for ac_header in stdlib.h
|
|
8609 |
do
|
|
8610 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
8611 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
8612 |
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
8613 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
8614 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
8615 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8616 |
fi
|
|
8617 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
8618 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
8619 |
else
|
|
8620 |
# Is the header compilable?
|
|
8621 |
echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
8622 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
|
8623 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8624 |
/* confdefs.h. */
|
|
8625 |
_ACEOF
|
|
8626 |
cat confdefs.h >>conftest.$ac_ext
|
|
8627 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8628 |
/* end confdefs.h. */
|
|
8629 |
$ac_includes_default
|
|
8630 |
#include <$ac_header>
|
|
8631 |
_ACEOF
|
|
8632 |
rm -f conftest.$ac_objext
|
|
8633 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
8634 |
(eval $ac_compile) 2>conftest.er1
|
8888 | 8635 |
ac_status=$?
|
8889 | 8636 |
grep -v '^ *+' conftest.er1 >conftest.err
|
8890 | 8637 |
rm -f conftest.er1
|
|
8898 | 8645 |
ac_status=$?
|
8899 | 8646 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8900 | 8647 |
(exit $ac_status); }; } &&
|
8901 | |
{ ac_try='test -s conftest$ac_exeext'
|
8902 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8903 | |
(eval $ac_try) 2>&5
|
8904 | |
ac_status=$?
|
8905 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8906 | |
(exit $ac_status); }; }; then
|
8907 | |
ac_cv_lib_intl_strftime=yes
|
|
8648 |
{ ac_try='test -s conftest.$ac_objext'
|
|
8649 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8650 |
(eval $ac_try) 2>&5
|
|
8651 |
ac_status=$?
|
|
8652 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8653 |
(exit $ac_status); }; }; then
|
|
8654 |
ac_header_compiler=yes
|
8908 | 8655 |
else
|
8909 | 8656 |
echo "$as_me: failed program was:" >&5
|
8910 | 8657 |
sed 's/^/| /' conftest.$ac_ext >&5
|
8911 | 8658 |
|
8912 | |
ac_cv_lib_intl_strftime=no
|
8913 | |
fi
|
8914 | |
rm -f conftest.err conftest.$ac_objext \
|
8915 | |
conftest$ac_exeext conftest.$ac_ext
|
8916 | |
LIBS=$ac_check_lib_save_LIBS
|
8917 | |
fi
|
8918 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
|
8919 | |
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
|
8920 | |
if test $ac_cv_lib_intl_strftime = yes; then
|
|
8659 |
ac_header_compiler=no
|
|
8660 |
fi
|
|
8661 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
8662 |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
8663 |
echo "${ECHO_T}$ac_header_compiler" >&6
|
|
8664 |
|
|
8665 |
# Is the header present?
|
|
8666 |
echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
8667 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
|
8668 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8669 |
/* confdefs.h. */
|
|
8670 |
_ACEOF
|
|
8671 |
cat confdefs.h >>conftest.$ac_ext
|
|
8672 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8673 |
/* end confdefs.h. */
|
|
8674 |
#include <$ac_header>
|
|
8675 |
_ACEOF
|
|
8676 |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
8677 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
8678 |
ac_status=$?
|
|
8679 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
8680 |
rm -f conftest.er1
|
|
8681 |
cat conftest.err >&5
|
|
8682 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8683 |
(exit $ac_status); } >/dev/null; then
|
|
8684 |
if test -s conftest.err; then
|
|
8685 |
ac_cpp_err=$ac_c_preproc_warn_flag
|
|
8686 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
|
8687 |
else
|
|
8688 |
ac_cpp_err=
|
|
8689 |
fi
|
|
8690 |
else
|
|
8691 |
ac_cpp_err=yes
|
|
8692 |
fi
|
|
8693 |
if test -z "$ac_cpp_err"; then
|
|
8694 |
ac_header_preproc=yes
|
|
8695 |
else
|
|
8696 |
echo "$as_me: failed program was:" >&5
|
|
8697 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
8698 |
|
|
8699 |
ac_header_preproc=no
|
|
8700 |
fi
|
|
8701 |
rm -f conftest.err conftest.$ac_ext
|
|
8702 |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
8703 |
echo "${ECHO_T}$ac_header_preproc" >&6
|
|
8704 |
|
|
8705 |
# So? What about this header?
|
|
8706 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
|
8707 |
yes:no: )
|
|
8708 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
8709 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
8710 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
8711 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
8712 |
ac_header_preproc=yes
|
|
8713 |
;;
|
|
8714 |
no:yes:* )
|
|
8715 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
8716 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
8717 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
8718 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
8719 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
8720 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
8721 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
8722 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
8723 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
8724 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
8725 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
8726 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
8727 |
(
|
|
8728 |
cat <<\_ASBOX
|
|
8729 |
## ----------------------------------- ##
|
|
8730 |
## Report this to peter.haag@switch.ch ##
|
|
8731 |
## ----------------------------------- ##
|
|
8732 |
_ASBOX
|
|
8733 |
) |
|
|
8734 |
sed "s/^/$as_me: WARNING: /" >&2
|
|
8735 |
;;
|
|
8736 |
esac
|
|
8737 |
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
8738 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
8739 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
8740 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8741 |
else
|
|
8742 |
eval "$as_ac_Header=\$ac_header_preproc"
|
|
8743 |
fi
|
|
8744 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
8745 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
8746 |
|
|
8747 |
fi
|
|
8748 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
8749 |
cat >>confdefs.h <<_ACEOF
|
|
8750 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
8751 |
_ACEOF
|
|
8752 |
|
|
8753 |
fi
|
|
8754 |
|
|
8755 |
done
|
|
8756 |
|
|
8757 |
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
|
|
8758 |
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
|
|
8759 |
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
|
|
8760 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8761 |
else
|
|
8762 |
if test "$cross_compiling" = yes; then
|
|
8763 |
ac_cv_func_realloc_0_nonnull=no
|
|
8764 |
else
|
|
8765 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8766 |
/* confdefs.h. */
|
|
8767 |
_ACEOF
|
|
8768 |
cat confdefs.h >>conftest.$ac_ext
|
|
8769 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8770 |
/* end confdefs.h. */
|
|
8771 |
#if STDC_HEADERS || HAVE_STDLIB_H
|
|
8772 |
# include <stdlib.h>
|
|
8773 |
#else
|
|
8774 |
char *realloc ();
|
|
8775 |
#endif
|
|
8776 |
|
|
8777 |
int
|
|
8778 |
main ()
|
|
8779 |
{
|
|
8780 |
exit (realloc (0, 0) ? 0 : 1);
|
|
8781 |
;
|
|
8782 |
return 0;
|
|
8783 |
}
|
|
8784 |
_ACEOF
|
|
8785 |
rm -f conftest$ac_exeext
|
|
8786 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
8787 |
(eval $ac_link) 2>&5
|
|
8788 |
ac_status=$?
|
|
8789 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8790 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
8791 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8792 |
(eval $ac_try) 2>&5
|
|
8793 |
ac_status=$?
|
|
8794 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8795 |
(exit $ac_status); }; }; then
|
|
8796 |
ac_cv_func_realloc_0_nonnull=yes
|
|
8797 |
else
|
|
8798 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
8799 |
echo "$as_me: failed program was:" >&5
|
|
8800 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
8801 |
|
|
8802 |
( exit $ac_status )
|
|
8803 |
ac_cv_func_realloc_0_nonnull=no
|
|
8804 |
fi
|
|
8805 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
8806 |
fi
|
|
8807 |
fi
|
|
8808 |
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
|
|
8809 |
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
|
|
8810 |
if test $ac_cv_func_realloc_0_nonnull = yes; then
|
|
8811 |
|
|
8812 |
cat >>confdefs.h <<\_ACEOF
|
|
8813 |
#define HAVE_REALLOC 1
|
|
8814 |
_ACEOF
|
|
8815 |
|
|
8816 |
else
|
8921 | 8817 |
cat >>confdefs.h <<\_ACEOF
|
8922 | |
#define HAVE_STRFTIME 1
|
8923 | |
_ACEOF
|
8924 | |
|
8925 | |
LIBS="-lintl $LIBS"
|
8926 | |
fi
|
8927 | |
|
8928 | |
fi
|
8929 | |
done
|
8930 | |
|
8931 | |
|
8932 | |
|
8933 | |
|
8934 | |
|
8935 | |
|
8936 | |
|
8937 | |
|
8938 | |
|
8939 | |
for ac_func in inet_ntoa socket strchr strdup strerror strrchr strstr scandir
|
|
8818 |
#define HAVE_REALLOC 0
|
|
8819 |
_ACEOF
|
|
8820 |
|
|
8821 |
case $LIBOBJS in
|
|
8822 |
"realloc.$ac_objext" | \
|
|
8823 |
*" realloc.$ac_objext" | \
|
|
8824 |
"realloc.$ac_objext "* | \
|
|
8825 |
*" realloc.$ac_objext "* ) ;;
|
|
8826 |
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
|
|
8827 |
esac
|
|
8828 |
|
|
8829 |
|
|
8830 |
cat >>confdefs.h <<\_ACEOF
|
|
8831 |
#define realloc rpl_realloc
|
|
8832 |
_ACEOF
|
|
8833 |
|
|
8834 |
fi
|
|
8835 |
|
|
8836 |
|
|
8837 |
|
|
8838 |
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
|
|
8839 |
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
|
|
8840 |
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
|
|
8841 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8842 |
else
|
|
8843 |
rm -f conftest.sym conftest.file
|
|
8844 |
echo >conftest.file
|
|
8845 |
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
|
|
8846 |
if test "$cross_compiling" = yes; then
|
|
8847 |
ac_cv_func_lstat_dereferences_slashed_symlink=no
|
|
8848 |
else
|
|
8849 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8850 |
/* confdefs.h. */
|
|
8851 |
_ACEOF
|
|
8852 |
cat confdefs.h >>conftest.$ac_ext
|
|
8853 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8854 |
/* end confdefs.h. */
|
|
8855 |
$ac_includes_default
|
|
8856 |
int
|
|
8857 |
main ()
|
|
8858 |
{
|
|
8859 |
struct stat sbuf;
|
|
8860 |
/* Linux will dereference the symlink and fail.
|
|
8861 |
That is better in the sense that it means we will not
|
|
8862 |
have to compile and use the lstat wrapper. */
|
|
8863 |
exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
|
|
8864 |
;
|
|
8865 |
return 0;
|
|
8866 |
}
|
|
8867 |
_ACEOF
|
|
8868 |
rm -f conftest$ac_exeext
|
|
8869 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
8870 |
(eval $ac_link) 2>&5
|
|
8871 |
ac_status=$?
|
|
8872 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8873 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
8874 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8875 |
(eval $ac_try) 2>&5
|
|
8876 |
ac_status=$?
|
|
8877 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8878 |
(exit $ac_status); }; }; then
|
|
8879 |
ac_cv_func_lstat_dereferences_slashed_symlink=yes
|
|
8880 |
else
|
|
8881 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
8882 |
echo "$as_me: failed program was:" >&5
|
|
8883 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
8884 |
|
|
8885 |
( exit $ac_status )
|
|
8886 |
ac_cv_func_lstat_dereferences_slashed_symlink=no
|
|
8887 |
fi
|
|
8888 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
8889 |
fi
|
|
8890 |
else
|
|
8891 |
# If the `ln -s' command failed, then we probably don't even
|
|
8892 |
# have an lstat function.
|
|
8893 |
ac_cv_func_lstat_dereferences_slashed_symlink=no
|
|
8894 |
fi
|
|
8895 |
rm -f conftest.sym conftest.file
|
|
8896 |
|
|
8897 |
fi
|
|
8898 |
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
|
|
8899 |
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
|
|
8900 |
|
|
8901 |
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
|
|
8902 |
|
|
8903 |
cat >>confdefs.h <<_ACEOF
|
|
8904 |
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
|
|
8905 |
_ACEOF
|
|
8906 |
|
|
8907 |
|
|
8908 |
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
|
|
8909 |
case $LIBOBJS in
|
|
8910 |
"lstat.$ac_objext" | \
|
|
8911 |
*" lstat.$ac_objext" | \
|
|
8912 |
"lstat.$ac_objext "* | \
|
|
8913 |
*" lstat.$ac_objext "* ) ;;
|
|
8914 |
*) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
|
|
8915 |
esac
|
|
8916 |
|
|
8917 |
fi
|
|
8918 |
|
|
8919 |
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
|
|
8920 |
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
|
|
8921 |
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
|
|
8922 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8923 |
else
|
|
8924 |
if test "$cross_compiling" = yes; then
|
|
8925 |
ac_cv_func_stat_empty_string_bug=yes
|
|
8926 |
else
|
|
8927 |
cat >conftest.$ac_ext <<_ACEOF
|
|
8928 |
/* confdefs.h. */
|
|
8929 |
_ACEOF
|
|
8930 |
cat confdefs.h >>conftest.$ac_ext
|
|
8931 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
8932 |
/* end confdefs.h. */
|
|
8933 |
$ac_includes_default
|
|
8934 |
int
|
|
8935 |
main ()
|
|
8936 |
{
|
|
8937 |
struct stat sbuf;
|
|
8938 |
exit (stat ("", &sbuf) ? 1 : 0);
|
|
8939 |
;
|
|
8940 |
return 0;
|
|
8941 |
}
|
|
8942 |
_ACEOF
|
|
8943 |
rm -f conftest$ac_exeext
|
|
8944 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
8945 |
(eval $ac_link) 2>&5
|
|
8946 |
ac_status=$?
|
|
8947 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8948 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
8949 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
8950 |
(eval $ac_try) 2>&5
|
|
8951 |
ac_status=$?
|
|
8952 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
8953 |
(exit $ac_status); }; }; then
|
|
8954 |
ac_cv_func_stat_empty_string_bug=yes
|
|
8955 |
else
|
|
8956 |
echo "$as_me: program exited with status $ac_status" >&5
|
|
8957 |
echo "$as_me: failed program was:" >&5
|
|
8958 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
8959 |
|
|
8960 |
( exit $ac_status )
|
|
8961 |
ac_cv_func_stat_empty_string_bug=no
|
|
8962 |
fi
|
|
8963 |
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
8964 |
fi
|
|
8965 |
fi
|
|
8966 |
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
|
|
8967 |
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
|
|
8968 |
if test $ac_cv_func_stat_empty_string_bug = yes; then
|
|
8969 |
case $LIBOBJS in
|
|
8970 |
"stat.$ac_objext" | \
|
|
8971 |
*" stat.$ac_objext" | \
|
|
8972 |
"stat.$ac_objext "* | \
|
|
8973 |
*" stat.$ac_objext "* ) ;;
|
|
8974 |
*) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
|
|
8975 |
esac
|
|
8976 |
|
|
8977 |
|
|
8978 |
cat >>confdefs.h <<_ACEOF
|
|
8979 |
#define HAVE_STAT_EMPTY_STRING_BUG 1
|
|
8980 |
_ACEOF
|
|
8981 |
|
|
8982 |
fi
|
|
8983 |
|
|
8984 |
|
|
8985 |
for ac_func in strftime
|
8940 | 8986 |
do
|
8941 | 8987 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
8942 | 8988 |
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
9034 | 9080 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
9035 | 9081 |
_ACEOF
|
9036 | 9082 |
|
|
9083 |
else
|
|
9084 |
# strftime is in -lintl on SCO UNIX.
|
|
9085 |
echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
|
|
9086 |
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
|
|
9087 |
if test "${ac_cv_lib_intl_strftime+set}" = set; then
|
|
9088 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9089 |
else
|
|
9090 |
ac_check_lib_save_LIBS=$LIBS
|
|
9091 |
LIBS="-lintl $LIBS"
|
|
9092 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9093 |
/* confdefs.h. */
|
|
9094 |
_ACEOF
|
|
9095 |
cat confdefs.h >>conftest.$ac_ext
|
|
9096 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9097 |
/* end confdefs.h. */
|
|
9098 |
|
|
9099 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9100 |
#ifdef __cplusplus
|
|
9101 |
extern "C"
|
|
9102 |
#endif
|
|
9103 |
/* We use char because int might match the return type of a gcc2
|
|
9104 |
builtin and then its argument prototype would still apply. */
|
|
9105 |
char strftime ();
|
|
9106 |
int
|
|
9107 |
main ()
|
|
9108 |
{
|
|
9109 |
strftime ();
|
|
9110 |
;
|
|
9111 |
return 0;
|
|
9112 |
}
|
|
9113 |
_ACEOF
|
|
9114 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9115 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9116 |
(eval $ac_link) 2>conftest.er1
|
|
9117 |
ac_status=$?
|
|
9118 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9119 |
rm -f conftest.er1
|
|
9120 |
cat conftest.err >&5
|
|
9121 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9122 |
(exit $ac_status); } &&
|
|
9123 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9124 |
|| test ! -s conftest.err'
|
|
9125 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9126 |
(eval $ac_try) 2>&5
|
|
9127 |
ac_status=$?
|
|
9128 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9129 |
(exit $ac_status); }; } &&
|
|
9130 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9131 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9132 |
(eval $ac_try) 2>&5
|
|
9133 |
ac_status=$?
|
|
9134 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9135 |
(exit $ac_status); }; }; then
|
|
9136 |
ac_cv_lib_intl_strftime=yes
|
|
9137 |
else
|
|
9138 |
echo "$as_me: failed program was:" >&5
|
|
9139 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9140 |
|
|
9141 |
ac_cv_lib_intl_strftime=no
|
|
9142 |
fi
|
|
9143 |
rm -f conftest.err conftest.$ac_objext \
|
|
9144 |
conftest$ac_exeext conftest.$ac_ext
|
|
9145 |
LIBS=$ac_check_lib_save_LIBS
|
|
9146 |
fi
|
|
9147 |
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
|
|
9148 |
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
|
|
9149 |
if test $ac_cv_lib_intl_strftime = yes; then
|
|
9150 |
cat >>confdefs.h <<\_ACEOF
|
|
9151 |
#define HAVE_STRFTIME 1
|
|
9152 |
_ACEOF
|
|
9153 |
|
|
9154 |
LIBS="-lintl $LIBS"
|
|
9155 |
fi
|
|
9156 |
|
9037 | 9157 |
fi
|
9038 | 9158 |
done
|
|
9159 |
|
|
9160 |
|
|
9161 |
|
|
9162 |
|
|
9163 |
|
|
9164 |
|
|
9165 |
|
|
9166 |
|
|
9167 |
|
|
9168 |
for ac_func in inet_ntoa socket strchr strdup strerror strrchr strstr scandir
|
|
9169 |
do
|
|
9170 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
9171 |
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
9172 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
|
9173 |
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
9174 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9175 |
else
|
|
9176 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9177 |
/* confdefs.h. */
|
|
9178 |
_ACEOF
|
|
9179 |
cat confdefs.h >>conftest.$ac_ext
|
|
9180 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9181 |
/* end confdefs.h. */
|
|
9182 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
9183 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
9184 |
#define $ac_func innocuous_$ac_func
|
|
9185 |
|
|
9186 |
/* System header to define __stub macros and hopefully few prototypes,
|
|
9187 |
which can conflict with char $ac_func (); below.
|
|
9188 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
9189 |
<limits.h> exists even on freestanding compilers. */
|
|
9190 |
|
|
9191 |
#ifdef __STDC__
|
|
9192 |
# include <limits.h>
|
|
9193 |
#else
|
|
9194 |
# include <assert.h>
|
|
9195 |
#endif
|
|
9196 |
|
|
9197 |
#undef $ac_func
|
|
9198 |
|
|
9199 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9200 |
#ifdef __cplusplus
|
|
9201 |
extern "C"
|
|
9202 |
{
|
|
9203 |
#endif
|
|
9204 |
/* We use char because int might match the return type of a gcc2
|
|
9205 |
builtin and then its argument prototype would still apply. */
|
|
9206 |
char $ac_func ();
|
|
9207 |
/* The GNU C library defines this for functions which it implements
|
|
9208 |
to always fail with ENOSYS. Some functions are actually named
|
|
9209 |
something starting with __ and the normal name is an alias. */
|
|
9210 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
9211 |
choke me
|
|
9212 |
#else
|
|
9213 |
char (*f) () = $ac_func;
|
|
9214 |
#endif
|
|
9215 |
#ifdef __cplusplus
|
|
9216 |
}
|
|
9217 |
#endif
|
|
9218 |
|
|
9219 |
int
|
|
9220 |
main ()
|
|
9221 |
{
|
|
9222 |
return f != $ac_func;
|
|
9223 |
;
|
|
9224 |
return 0;
|
|
9225 |
}
|
|
9226 |
_ACEOF
|
|
9227 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9228 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9229 |
(eval $ac_link) 2>conftest.er1
|
|
9230 |
ac_status=$?
|
|
9231 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9232 |
rm -f conftest.er1
|
|
9233 |
cat conftest.err >&5
|
|
9234 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9235 |
(exit $ac_status); } &&
|
|
9236 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9237 |
|| test ! -s conftest.err'
|
|
9238 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9239 |
(eval $ac_try) 2>&5
|
|
9240 |
ac_status=$?
|
|
9241 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9242 |
(exit $ac_status); }; } &&
|
|
9243 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9244 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9245 |
(eval $ac_try) 2>&5
|
|
9246 |
ac_status=$?
|
|
9247 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9248 |
(exit $ac_status); }; }; then
|
|
9249 |
eval "$as_ac_var=yes"
|
|
9250 |
else
|
|
9251 |
echo "$as_me: failed program was:" >&5
|
|
9252 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9253 |
|
|
9254 |
eval "$as_ac_var=no"
|
|
9255 |
fi
|
|
9256 |
rm -f conftest.err conftest.$ac_objext \
|
|
9257 |
conftest$ac_exeext conftest.$ac_ext
|
|
9258 |
fi
|
|
9259 |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
|
9260 |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
|
9261 |
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
9262 |
cat >>confdefs.h <<_ACEOF
|
|
9263 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
9264 |
_ACEOF
|
|
9265 |
|
|
9266 |
fi
|
|
9267 |
done
|
|
9268 |
|
|
9269 |
|
|
9270 |
echo "$as_me:$LINENO: checking for res_search in -lsocket" >&5
|
|
9271 |
echo $ECHO_N "checking for res_search in -lsocket... $ECHO_C" >&6
|
|
9272 |
if test "${ac_cv_lib_socket_res_search+set}" = set; then
|
|
9273 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9274 |
else
|
|
9275 |
ac_check_lib_save_LIBS=$LIBS
|
|
9276 |
LIBS="-lsocket $LIBS"
|
|
9277 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9278 |
/* confdefs.h. */
|
|
9279 |
_ACEOF
|
|
9280 |
cat confdefs.h >>conftest.$ac_ext
|
|
9281 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9282 |
/* end confdefs.h. */
|
|
9283 |
|
|
9284 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9285 |
#ifdef __cplusplus
|
|
9286 |
extern "C"
|
|
9287 |
#endif
|
|
9288 |
/* We use char because int might match the return type of a gcc2
|
|
9289 |
builtin and then its argument prototype would still apply. */
|
|
9290 |
char res_search ();
|
|
9291 |
int
|
|
9292 |
main ()
|
|
9293 |
{
|
|
9294 |
res_search ();
|
|
9295 |
;
|
|
9296 |
return 0;
|
|
9297 |
}
|
|
9298 |
_ACEOF
|
|
9299 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9300 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9301 |
(eval $ac_link) 2>conftest.er1
|
|
9302 |
ac_status=$?
|
|
9303 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9304 |
rm -f conftest.er1
|
|
9305 |
cat conftest.err >&5
|
|
9306 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9307 |
(exit $ac_status); } &&
|
|
9308 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9309 |
|| test ! -s conftest.err'
|
|
9310 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9311 |
(eval $ac_try) 2>&5
|
|
9312 |
ac_status=$?
|
|
9313 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9314 |
(exit $ac_status); }; } &&
|
|
9315 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9316 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9317 |
(eval $ac_try) 2>&5
|
|
9318 |
ac_status=$?
|
|
9319 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9320 |
(exit $ac_status); }; }; then
|
|
9321 |
ac_cv_lib_socket_res_search=yes
|
|
9322 |
else
|
|
9323 |
echo "$as_me: failed program was:" >&5
|
|
9324 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9325 |
|
|
9326 |
ac_cv_lib_socket_res_search=no
|
|
9327 |
fi
|
|
9328 |
rm -f conftest.err conftest.$ac_objext \
|
|
9329 |
conftest$ac_exeext conftest.$ac_ext
|
|
9330 |
LIBS=$ac_check_lib_save_LIBS
|
|
9331 |
fi
|
|
9332 |
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_res_search" >&5
|
|
9333 |
echo "${ECHO_T}$ac_cv_lib_socket_res_search" >&6
|
|
9334 |
if test $ac_cv_lib_socket_res_search = yes; then
|
|
9335 |
|
|
9336 |
|
|
9337 |
echo "$as_me:$LINENO: checking for dn_skipname in -lresolv" >&5
|
|
9338 |
echo $ECHO_N "checking for dn_skipname in -lresolv... $ECHO_C" >&6
|
|
9339 |
if test "${ac_cv_lib_resolv_dn_skipname+set}" = set; then
|
|
9340 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9341 |
else
|
|
9342 |
ac_check_lib_save_LIBS=$LIBS
|
|
9343 |
LIBS="-lresolv $LIBS"
|
|
9344 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9345 |
/* confdefs.h. */
|
|
9346 |
_ACEOF
|
|
9347 |
cat confdefs.h >>conftest.$ac_ext
|
|
9348 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9349 |
/* end confdefs.h. */
|
|
9350 |
|
|
9351 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9352 |
#ifdef __cplusplus
|
|
9353 |
extern "C"
|
|
9354 |
#endif
|
|
9355 |
/* We use char because int might match the return type of a gcc2
|
|
9356 |
builtin and then its argument prototype would still apply. */
|
|
9357 |
char dn_skipname ();
|
|
9358 |
int
|
|
9359 |
main ()
|
|
9360 |
{
|
|
9361 |
dn_skipname ();
|
|
9362 |
;
|
|
9363 |
return 0;
|
|
9364 |
}
|
|
9365 |
_ACEOF
|
|
9366 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9367 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9368 |
(eval $ac_link) 2>conftest.er1
|
|
9369 |
ac_status=$?
|
|
9370 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9371 |
rm -f conftest.er1
|
|
9372 |
cat conftest.err >&5
|
|
9373 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9374 |
(exit $ac_status); } &&
|
|
9375 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9376 |
|| test ! -s conftest.err'
|
|
9377 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9378 |
(eval $ac_try) 2>&5
|
|
9379 |
ac_status=$?
|
|
9380 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9381 |
(exit $ac_status); }; } &&
|
|
9382 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9383 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9384 |
(eval $ac_try) 2>&5
|
|
9385 |
ac_status=$?
|
|
9386 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9387 |
(exit $ac_status); }; }; then
|
|
9388 |
ac_cv_lib_resolv_dn_skipname=yes
|
|
9389 |
else
|
|
9390 |
echo "$as_me: failed program was:" >&5
|
|
9391 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9392 |
|
|
9393 |
ac_cv_lib_resolv_dn_skipname=no
|
|
9394 |
fi
|
|
9395 |
rm -f conftest.err conftest.$ac_objext \
|
|
9396 |
conftest$ac_exeext conftest.$ac_ext
|
|
9397 |
LIBS=$ac_check_lib_save_LIBS
|
|
9398 |
fi
|
|
9399 |
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_skipname" >&5
|
|
9400 |
echo "${ECHO_T}$ac_cv_lib_resolv_dn_skipname" >&6
|
|
9401 |
if test $ac_cv_lib_resolv_dn_skipname = yes; then
|
|
9402 |
cat >>confdefs.h <<_ACEOF
|
|
9403 |
#define HAVE_LIBRESOLV 1
|
|
9404 |
_ACEOF
|
|
9405 |
|
|
9406 |
LIBS="-lresolv $LIBS"
|
|
9407 |
|
|
9408 |
fi
|
|
9409 |
|
|
9410 |
|
|
9411 |
echo "$as_me:$LINENO: checking for __dn_skipname in -lresolv" >&5
|
|
9412 |
echo $ECHO_N "checking for __dn_skipname in -lresolv... $ECHO_C" >&6
|
|
9413 |
if test "${ac_cv_lib_resolv___dn_skipname+set}" = set; then
|
|
9414 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9415 |
else
|
|
9416 |
ac_check_lib_save_LIBS=$LIBS
|
|
9417 |
LIBS="-lresolv $LIBS"
|
|
9418 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9419 |
/* confdefs.h. */
|
|
9420 |
_ACEOF
|
|
9421 |
cat confdefs.h >>conftest.$ac_ext
|
|
9422 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9423 |
/* end confdefs.h. */
|
|
9424 |
|
|
9425 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9426 |
#ifdef __cplusplus
|
|
9427 |
extern "C"
|
|
9428 |
#endif
|
|
9429 |
/* We use char because int might match the return type of a gcc2
|
|
9430 |
builtin and then its argument prototype would still apply. */
|
|
9431 |
char __dn_skipname ();
|
|
9432 |
int
|
|
9433 |
main ()
|
|
9434 |
{
|
|
9435 |
__dn_skipname ();
|
|
9436 |
;
|
|
9437 |
return 0;
|
|
9438 |
}
|
|
9439 |
_ACEOF
|
|
9440 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9441 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9442 |
(eval $ac_link) 2>conftest.er1
|
|
9443 |
ac_status=$?
|
|
9444 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9445 |
rm -f conftest.er1
|
|
9446 |
cat conftest.err >&5
|
|
9447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9448 |
(exit $ac_status); } &&
|
|
9449 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9450 |
|| test ! -s conftest.err'
|
|
9451 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9452 |
(eval $ac_try) 2>&5
|
|
9453 |
ac_status=$?
|
|
9454 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9455 |
(exit $ac_status); }; } &&
|
|
9456 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9457 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9458 |
(eval $ac_try) 2>&5
|
|
9459 |
ac_status=$?
|
|
9460 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9461 |
(exit $ac_status); }; }; then
|
|
9462 |
ac_cv_lib_resolv___dn_skipname=yes
|
|
9463 |
else
|
|
9464 |
echo "$as_me: failed program was:" >&5
|
|
9465 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9466 |
|
|
9467 |
ac_cv_lib_resolv___dn_skipname=no
|
|
9468 |
fi
|
|
9469 |
rm -f conftest.err conftest.$ac_objext \
|
|
9470 |
conftest$ac_exeext conftest.$ac_ext
|
|
9471 |
LIBS=$ac_check_lib_save_LIBS
|
|
9472 |
fi
|
|
9473 |
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_skipname" >&5
|
|
9474 |
echo "${ECHO_T}$ac_cv_lib_resolv___dn_skipname" >&6
|
|
9475 |
if test $ac_cv_lib_resolv___dn_skipname = yes; then
|
|
9476 |
cat >>confdefs.h <<_ACEOF
|
|
9477 |
#define HAVE_LIBRESOLV 1
|
|
9478 |
_ACEOF
|
|
9479 |
|
|
9480 |
LIBS="-lresolv $LIBS"
|
|
9481 |
|
|
9482 |
fi
|
|
9483 |
|
|
9484 |
LIBS="$LIBS -lsocket"
|
|
9485 |
|
|
9486 |
cat >>confdefs.h <<\_ACEOF
|
|
9487 |
#define HAVE_LIBSOCKET 1
|
|
9488 |
_ACEOF
|
|
9489 |
|
|
9490 |
else
|
|
9491 |
|
|
9492 |
echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
|
|
9493 |
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
|
|
9494 |
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
|
|
9495 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9496 |
else
|
|
9497 |
ac_check_lib_save_LIBS=$LIBS
|
|
9498 |
LIBS="-lresolv $LIBS"
|
|
9499 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9500 |
/* confdefs.h. */
|
|
9501 |
_ACEOF
|
|
9502 |
cat confdefs.h >>conftest.$ac_ext
|
|
9503 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9504 |
/* end confdefs.h. */
|
|
9505 |
|
|
9506 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9507 |
#ifdef __cplusplus
|
|
9508 |
extern "C"
|
|
9509 |
#endif
|
|
9510 |
/* We use char because int might match the return type of a gcc2
|
|
9511 |
builtin and then its argument prototype would still apply. */
|
|
9512 |
char res_search ();
|
|
9513 |
int
|
|
9514 |
main ()
|
|
9515 |
{
|
|
9516 |
res_search ();
|
|
9517 |
;
|
|
9518 |
return 0;
|
|
9519 |
}
|
|
9520 |
_ACEOF
|
|
9521 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9522 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9523 |
(eval $ac_link) 2>conftest.er1
|
|
9524 |
ac_status=$?
|
|
9525 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9526 |
rm -f conftest.er1
|
|
9527 |
cat conftest.err >&5
|
|
9528 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9529 |
(exit $ac_status); } &&
|
|
9530 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9531 |
|| test ! -s conftest.err'
|
|
9532 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9533 |
(eval $ac_try) 2>&5
|
|
9534 |
ac_status=$?
|
|
9535 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9536 |
(exit $ac_status); }; } &&
|
|
9537 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9538 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9539 |
(eval $ac_try) 2>&5
|
|
9540 |
ac_status=$?
|
|
9541 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9542 |
(exit $ac_status); }; }; then
|
|
9543 |
ac_cv_lib_resolv_res_search=yes
|
|
9544 |
else
|
|
9545 |
echo "$as_me: failed program was:" >&5
|
|
9546 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9547 |
|
|
9548 |
ac_cv_lib_resolv_res_search=no
|
|
9549 |
fi
|
|
9550 |
rm -f conftest.err conftest.$ac_objext \
|
|
9551 |
conftest$ac_exeext conftest.$ac_ext
|
|
9552 |
LIBS=$ac_check_lib_save_LIBS
|
|
9553 |
fi
|
|
9554 |
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
|
|
9555 |
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
|
|
9556 |
if test $ac_cv_lib_resolv_res_search = yes; then
|
|
9557 |
|
|
9558 |
LIBS="$LIBS -lresolv"
|
|
9559 |
|
|
9560 |
cat >>confdefs.h <<\_ACEOF
|
|
9561 |
#define HAVE_LIBRESOLV 1
|
|
9562 |
_ACEOF
|
|
9563 |
|
|
9564 |
|
|
9565 |
else
|
|
9566 |
|
|
9567 |
|
|
9568 |
echo "$as_me:$LINENO: checking for dn_skipname in -lresolv" >&5
|
|
9569 |
echo $ECHO_N "checking for dn_skipname in -lresolv... $ECHO_C" >&6
|
|
9570 |
if test "${ac_cv_lib_resolv_dn_skipname+set}" = set; then
|
|
9571 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9572 |
else
|
|
9573 |
ac_check_lib_save_LIBS=$LIBS
|
|
9574 |
LIBS="-lresolv $LIBS"
|
|
9575 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9576 |
/* confdefs.h. */
|
|
9577 |
_ACEOF
|
|
9578 |
cat confdefs.h >>conftest.$ac_ext
|
|
9579 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9580 |
/* end confdefs.h. */
|
|
9581 |
|
|
9582 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9583 |
#ifdef __cplusplus
|
|
9584 |
extern "C"
|
|
9585 |
#endif
|
|
9586 |
/* We use char because int might match the return type of a gcc2
|
|
9587 |
builtin and then its argument prototype would still apply. */
|
|
9588 |
char dn_skipname ();
|
|
9589 |
int
|
|
9590 |
main ()
|
|
9591 |
{
|
|
9592 |
dn_skipname ();
|
|
9593 |
;
|
|
9594 |
return 0;
|
|
9595 |
}
|
|
9596 |
_ACEOF
|
|
9597 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9598 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9599 |
(eval $ac_link) 2>conftest.er1
|
|
9600 |
ac_status=$?
|
|
9601 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9602 |
rm -f conftest.er1
|
|
9603 |
cat conftest.err >&5
|
|
9604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9605 |
(exit $ac_status); } &&
|
|
9606 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9607 |
|| test ! -s conftest.err'
|
|
9608 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9609 |
(eval $ac_try) 2>&5
|
|
9610 |
ac_status=$?
|
|
9611 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9612 |
(exit $ac_status); }; } &&
|
|
9613 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9614 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9615 |
(eval $ac_try) 2>&5
|
|
9616 |
ac_status=$?
|
|
9617 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9618 |
(exit $ac_status); }; }; then
|
|
9619 |
ac_cv_lib_resolv_dn_skipname=yes
|
|
9620 |
else
|
|
9621 |
echo "$as_me: failed program was:" >&5
|
|
9622 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9623 |
|
|
9624 |
ac_cv_lib_resolv_dn_skipname=no
|
|
9625 |
fi
|
|
9626 |
rm -f conftest.err conftest.$ac_objext \
|
|
9627 |
conftest$ac_exeext conftest.$ac_ext
|
|
9628 |
LIBS=$ac_check_lib_save_LIBS
|
|
9629 |
fi
|
|
9630 |
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_skipname" >&5
|
|
9631 |
echo "${ECHO_T}$ac_cv_lib_resolv_dn_skipname" >&6
|
|
9632 |
if test $ac_cv_lib_resolv_dn_skipname = yes; then
|
|
9633 |
cat >>confdefs.h <<_ACEOF
|
|
9634 |
#define HAVE_LIBRESOLV 1
|
|
9635 |
_ACEOF
|
|
9636 |
|
|
9637 |
LIBS="-lresolv $LIBS"
|
|
9638 |
|
|
9639 |
fi
|
|
9640 |
|
|
9641 |
|
|
9642 |
echo "$as_me:$LINENO: checking for __dn_skipname in -lresolv" >&5
|
|
9643 |
echo $ECHO_N "checking for __dn_skipname in -lresolv... $ECHO_C" >&6
|
|
9644 |
if test "${ac_cv_lib_resolv___dn_skipname+set}" = set; then
|
|
9645 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
9646 |
else
|
|
9647 |
ac_check_lib_save_LIBS=$LIBS
|
|
9648 |
LIBS="-lresolv $LIBS"
|
|
9649 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9650 |
/* confdefs.h. */
|
|
9651 |
_ACEOF
|
|
9652 |
cat confdefs.h >>conftest.$ac_ext
|
|
9653 |
cat >>conftest.$ac_ext <<_ACEOF
|
|
9654 |
/* end confdefs.h. */
|
|
9655 |
|
|
9656 |
/* Override any gcc2 internal prototype to avoid an error. */
|
|
9657 |
#ifdef __cplusplus
|
|
9658 |
extern "C"
|
|
9659 |
#endif
|
|
9660 |
/* We use char because int might match the return type of a gcc2
|
|
9661 |
builtin and then its argument prototype would still apply. */
|
|
9662 |
char __dn_skipname ();
|
|
9663 |
int
|
|
9664 |
main ()
|
|
9665 |
{
|
|
9666 |
__dn_skipname ();
|
|
9667 |
;
|
|
9668 |
return 0;
|
|
9669 |
}
|
|
9670 |
_ACEOF
|
|
9671 |
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
9672 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
9673 |
(eval $ac_link) 2>conftest.er1
|
|
9674 |
ac_status=$?
|
|
9675 |
grep -v '^ *+' conftest.er1 >conftest.err
|
|
9676 |
rm -f conftest.er1
|
|
9677 |
cat conftest.err >&5
|
|
9678 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9679 |
(exit $ac_status); } &&
|
|
9680 |
{ ac_try='test -z "$ac_c_werror_flag"
|
|
9681 |
|| test ! -s conftest.err'
|
|
9682 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9683 |
(eval $ac_try) 2>&5
|
|
9684 |
ac_status=$?
|
|
9685 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9686 |
(exit $ac_status); }; } &&
|
|
9687 |
{ ac_try='test -s conftest$ac_exeext'
|
|
9688 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
9689 |
(eval $ac_try) 2>&5
|
|
9690 |
ac_status=$?
|
|
9691 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
9692 |
(exit $ac_status); }; }; then
|
|
9693 |
ac_cv_lib_resolv___dn_skipname=yes
|
|
9694 |
else
|
|
9695 |
echo "$as_me: failed program was:" >&5
|
|
9696 |
sed 's/^/| /' conftest.$ac_ext >&5
|
|
9697 |
|
|
9698 |
ac_cv_lib_resolv___dn_skipname=no
|
|
9699 |
fi
|
|
9700 |
rm -f conftest.err conftest.$ac_objext \
|
|
9701 |
conftest$ac_exeext conftest.$ac_ext
|
|
9702 |
LIBS=$ac_check_lib_save_LIBS
|
|
9703 |
fi
|
|
9704 |
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_skipname" >&5
|
|
9705 |
echo "${ECHO_T}$ac_cv_lib_resolv___dn_skipname" >&6
|
|
9706 |
if test $ac_cv_lib_resolv___dn_skipname = yes; then
|
|
9707 |
cat >>confdefs.h <<_ACEOF
|
|
9708 |
#define HAVE_LIBRESOLV 1
|
|
9709 |
_ACEOF
|
|
9710 |
|
|
9711 |
LIBS="-lresolv $LIBS"
|
|
9712 |
|
|
9713 |
fi
|
|
9714 |
|
|
9715 |
|
|
9716 |
fi
|
|
9717 |
|
|
9718 |
|
|
9719 |
fi
|
9039 | 9720 |
|
9040 | 9721 |
|
9041 | 9722 |
# lzo compression requirements
|
|
13463 | 14144 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
13464 | 14145 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
13465 | 14146 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
|
14147 |
s,@RRD_LIBS@,$RRD_LIBS,;t t
|
13466 | 14148 |
s,@CPP@,$CPP,;t t
|
13467 | 14149 |
s,@EGREP@,$EGREP,;t t
|
13468 | 14150 |
s,@opt_objects@,$opt_objects,;t t
|