From 2200c78ef64628a7ba6b8fd2a9457495cf8a692e Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 10 Nov 2003 06:13:18 -0800 Subject: [PATCH] [svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE. --- ChangeLog | 5 +++++ aclocal.m4 | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8eee4b3f..d9e6ab2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-11-10 Hrvoje Niksic + + * aclocal.m4 (WGET_SOCKLEN_T): Use AC_COMPILE_IFELSE instead of + AC_TRY_COMPILE. + 2003-11-10 Hrvoje Niksic * aclocal.m4 (WGET_STRUCT_UTIMBUF): Use AC_CHECK_TYPES instead of diff --git a/aclocal.m4 b/aclocal.m4 index 8e085231..d71269ac 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -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 #include socklen_t x; -], - [], [AC_MSG_RESULT(socklen_t)], [ - AC_TRY_COMPILE([ + ], [AC_MSG_RESULT(socklen_t)], [ + AC_COMPILE_IFELSE([ #include #include 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.]) -- 2.39.2