134 |
|
|
135 |
dnl Checking sizeof void * is needed for fdlibm to work properly on ppc64, |
dnl Checking sizeof void * is needed for fdlibm to work properly on ppc64, |
136 |
dnl at least. |
dnl at least. |
137 |
AC_CHECK_SIZEOF(void *) |
AC_COMPILE_CHECK_SIZEOF(void *) |
138 |
|
|
139 |
dnl Checking for endianess. |
dnl Checking for endianess. |
140 |
AC_C_BIGENDIAN |
AC_C_BIGENDIAN_CROSS |
141 |
|
|
142 |
dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there. |
dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there. |
143 |
dnl On that system, sys/ioctl.h will not include sys/filio.h unless |
dnl On that system, sys/ioctl.h will not include sys/filio.h unless |
144 |
dnl BSD_COMP is defined; just including sys/filio.h is simpler. |
dnl BSD_COMP is defined; just including sys/filio.h is simpler. |
|
AC_CHECK_HEADERS([unistd.h sys/types.h sys/config.h sys/ioctl.h asm/ioctls.h]) |
|
|
AC_CHECK_HEADERS([inttypes.h stdint.h utime.h sys/utime.h sys/filio.h]) |
|
|
AC_CHECK_HEADERS([sys/time.h]) |
|
|
AC_CHECK_HEADERS([sys/select.h]) |
|
145 |
dnl Check for crt_externs.h on Darwin. |
dnl Check for crt_externs.h on Darwin. |
146 |
AC_CHECK_HEADERS([crt_externs.h]) |
AC_CHECK_HEADERS([unistd.h sys/types.h sys/config.h sys/ioctl.h \ |
147 |
|
asm/ioctls.h \ |
148 |
|
inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \ |
149 |
|
sys/time.h \ |
150 |
|
sys/select.h \ |
151 |
|
crt_externs.h]) |
152 |
|
|
153 |
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t])) |
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t])) |
154 |
AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t])) |
AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t])) |
155 |
AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t])) |
AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t])) |
156 |
AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t])) |
AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t])) |
157 |
|
|
158 |
AC_CHECK_FUNCS([ftruncate fsync select]) |
AC_CHECK_FUNCS([ftruncate fsync select \ |
159 |
AC_CHECK_FUNCS([gethostname socket strerror fork pipe execve open close]) |
gethostname socket strerror fork pipe execve open close \ |
160 |
AC_CHECK_FUNCS([lseek fstat read write htonl memset htons connect]) |
lseek fstat read write htonl memset htons connect \ |
161 |
AC_CHECK_FUNCS([getsockname sizeof getpeername bind listen accept]) |
getsockname getpeername bind listen accept \ |
162 |
AC_CHECK_FUNCS([recvfrom send sendto setsockopt getsockopt time mktime]) |
recvfrom send sendto setsockopt getsockopt time mktime \ |
163 |
AC_CHECK_FUNCS([localtime_r]) |
localtime_r \ |
164 |
AC_CHECK_FUNCS([strerror_r]) |
strerror_r]) |
165 |
|
|
166 |
AC_HEADER_TIME |
AC_HEADER_TIME |
167 |
AC_STRUCT_TM |
AC_STRUCT_TM |
191 |
|
|
192 |
AC_C_CONST |
AC_C_CONST |
193 |
|
|
|
dnl FIXME - does not allow cross compiling |
|
|
AC_C_BIGENDIAN |
|
|
|
|
194 |
dnl When using gcc we want warnings, lots of warnings :-) |
dnl When using gcc we want warnings, lots of warnings :-) |
195 |
if test "x${GCC}" = xyes; then |
if test "x${GCC}" = xyes; then |
196 |
dnl We want ISO C90 pedantic ansi, but with longlong (jlong) support |
dnl We want ISO C90 pedantic ansi, but with longlong (jlong) support |