From: Michael Jeanson Date: Thu, 15 Oct 2015 20:27:59 +0000 (-0400) Subject: Fix: check for socket lib before function checks X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=0692ec698484e532211e8cc13127d26b9060d954;p=deliverable%2Fbabeltrace.git Fix: check for socket lib before function checks On platforms that require extra libraries to link socket apps, running this macro before the function checks will lead to socket functions being correctly detected. Signed-off-by: Michael Jeanson --- diff --git a/configure.ac b/configure.ac index d30801df4..f66104648 100644 --- a/configure.ac +++ b/configure.ac @@ -81,9 +81,11 @@ if test ! -f "$srcdir/formats/ctf/metadata/ctf-lexer.c"; then ]) fi - AM_PATH_GLIB_2_0(2.22.0, ,AC_MSG_ERROR([glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule) +# Check what libraries are required on this platform to link sockets programs. +AX_LIB_SOCKET_NSL + # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_PID_T @@ -135,9 +137,6 @@ esac AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"]) -# Check what libraries are required on this platform to link sockets programs. -AX_LIB_SOCKET_NSL - # Check for libuuid AC_CHECK_LIB([uuid], [uuid_generate], [