From: Michael Jeanson Date: Tue, 9 Feb 2016 23:50:22 +0000 (-0500) Subject: Fix: check for socket lib before function checks X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=39fa4402ef8cc741ca600d9a671fbc9e694a5853 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 Signed-off-by: Jérémie Galarneau --- diff --git a/configure.ac b/configure.ac index c2307b57..42698e75 100644 --- a/configure.ac +++ b/configure.ac @@ -84,6 +84,9 @@ 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 @@ -145,9 +148,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 uuid in system libs AC_CHECK_FUNCS([uuid_generate], [