From: Simon McVittie Date: Thu, 24 Feb 2011 15:46:00 +0000 (+0000) Subject: Modernize checks for socklen_t X-Git-Tag: dbus-1.4.8~14^2~4^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07a54bb2f18adc2121e7b55689e5d4e54331d65d;p=thirdparty%2Fdbus.git Modernize checks for socklen_t Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie --- diff --git a/configure.ac b/configure.ac index fadb0c31c..aea975a6b 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