From 3bdd962559eae5cd9d13e8616a44b8e3bf497880 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 2 Jan 2015 20:05:39 +0100 Subject: [PATCH] Use AC_SEARCH_LIBS --- configure.ac | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 27d4abe94..606b5092d 100644 --- a/configure.ac +++ b/configure.ac @@ -39,17 +39,9 @@ AC_CC_STACK_PROTECTOR AC_CC_PARAM_SSP_BUFFER_SIZE([4]) AC_CC_D_FORTIFY_SOURCE -AC_CHECK_FUNC([socket], [], [ - AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket $LIBS"]) -]) - -AC_CHECK_FUNC([gethostent], [], [ - AC_CHECK_LIB([nsl], [gethostent], [LIBS="-lnsl $LIBS"]) -]) - -AC_CHECK_FUNC([inet_aton], [], [ - AC_CHECK_LIB([resolv], [inet_aton], [LIBS="-lresolv $LIBS"]) -]) +AC_SEARCH_LIBS([socket], [socket]) +AC_SEARCH_LIBS([gethostent], [nsl]) +AC_SEARCH_LIBS([inet_aton], [resolv]) m4_ifndef([LT_INIT],[ AC_PROG_LIBTOOL([disable-static]) -- 2.40.0