Code

src/liboping.c: Only include <stdint.h> if the configure script found it.
[liboping.git] / configure.ac
index 5b72c133c6b3dadf05b06e754e2767e03a15e7b7..631e72d5293bc432209f0057ad2597309e5479ab 100644 (file)
@@ -169,6 +169,16 @@ AC_CHECK_FUNCS(socket, [],
                AC_MSG_ERROR(cannot find socket)))
 AM_CONDITIONAL(BUILD_WITH_LIBSOCKET, test "x$socket_needs_socket" = "xyes")
 
+# Under Solaris, the `xnet' library provides `recvmsg' which complies with the
+# X/Open CAE Specification.
+with_libxnet="no"
+AC_CHECK_LIB(xnet, __xnet_recvmsg, [with_libxnet="yes"],[])
+if test "x$with_libxnet" = "xyes"
+then
+       CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
+fi
+AM_CONDITIONAL(BUILD_WITH_LIBXNET, test "x$with_libxnet" = "xyes")
+
 nanosleep_needs_rt="no"
 AC_CHECK_FUNCS(nanosleep, [],
        AC_CHECK_LIB(rt, nanosleep,