From 07a54bb2f18adc2121e7b55689e5d4e54331d65d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 24 Feb 2011 15:46:00 +0000 Subject: [PATCH] Modernize checks for socklen_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index fadb0c31..aea975a6 100644 --- a/configure.ac +++ b/configure.ac @@ -601,14 +601,16 @@ fi dnl check for socklen_t AC_MSG_CHECKING(whether socklen_t is defined) -AC_TRY_COMPILE([ +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include #include -],[ +]], [[ socklen_t foo; foo = 1; -],dbus_have_socklen_t=yes,dbus_have_socklen_t=no) +]])], +[dbus_have_socklen_t=yes], +[dbus_have_socklen_t=no]) AC_MSG_RESULT($dbus_have_socklen_t) if test "x$dbus_have_socklen_t" = "xyes"; then