Permalink
Browse files

Use AC_SEARCH_LIBS

  • Loading branch information...
1 parent cb38288 commit edfa60a3b3447a00fbc939ef46302f317d6c9d29 @rubenk rubenk committed with pieterlexis Jan 2, 2015
Showing with 3 additions and 11 deletions.
  1. +3 −11 configure.ac
View
@@ -41,17 +41,9 @@ AS_IF([test "x$enable_hardening" != "xno"], [
AC_LD_RELRO
])
-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])

0 comments on commit edfa60a

Please sign in to comment.