From 39fa4402ef8cc741ca600d9a671fbc9e694a5853 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 9 Feb 2016 18:50:22 -0500 Subject: [PATCH] Fix: check for socket lib before function checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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], [ -- 2.34.1