[svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE.

This commit is contained in:
hniksic 2003-11-10 06:13:18 -08:00
parent 92957a0ee2
commit 2200c78ef6
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-11-10 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_SOCKLEN_T): Use AC_COMPILE_IFELSE instead of
AC_TRY_COMPILE.
2003-11-10 Hrvoje Niksic <hniksic@xemacs.org>
* aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of

10
aclocal.m4 vendored
View File

@ -23,18 +23,16 @@ dnl size_t *, we use that, else we use int.
AC_DEFUN([WGET_SOCKLEN_T], [
AC_MSG_CHECKING(for socklen_t)
AC_TRY_COMPILE([
AC_COMPILE_IFELSE([
#include <sys/types.h>
#include <sys/socket.h>
socklen_t x;
],
[], [AC_MSG_RESULT(socklen_t)], [
AC_TRY_COMPILE([
], [AC_MSG_RESULT(socklen_t)], [
AC_COMPILE_IFELSE([
#include <sys/types.h>
#include <sys/socket.h>
int accept (int, struct sockaddr *, size_t *);
],
[], [
], [
AC_MSG_RESULT(size_t)
AC_DEFINE([socklen_t], [size_t],
[Define to int or size_t on systems without socklen_t.])