mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE.
This commit is contained in:
parent
92957a0ee2
commit
2200c78ef6
@ -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
10
aclocal.m4
vendored
@ -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.])
|
||||
|
Loading…
Reference in New Issue
Block a user