diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-02-24 15:46:00 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-02-24 15:46:00 +0000 |
commit | 07a54bb2f18adc2121e7b55689e5d4e54331d65d (patch) | |
tree | 56d086e8a5eb3e6c82130be94755574b3db400bd | |
parent | 1704a7d48330cc0d8320896054dee3ee34ddb69a (diff) |
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 <simon.mcvittie@collabora.co.uk>
-rw-r--r-- | configure.ac | 8 |
1 files 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 <sys/types.h> #include <sys/socket.h> #include <netdb.h> -],[ +]], [[ 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 |