]> sjero.net Git - wget/commitdiff
[svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE.
authorhniksic <devnull@localhost>
Mon, 10 Nov 2003 14:13:18 +0000 (06:13 -0800)
committerhniksic <devnull@localhost>
Mon, 10 Nov 2003 14:13:18 +0000 (06:13 -0800)
ChangeLog
aclocal.m4

index 8eee4b3f543744cec78a0c56a87351ef155bf3ea..d9e6ab2ff88c1b0f3e7cbee4b586c3dbcf914141 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 8e085231a6a3bfeaa89cebb2abbbd166e8e2ff8d..d71269ac3e0fb84940455392d885901c4d3a1c41 100644 (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.])