diff options
author | Max Kellermann <max@duempel.org> | 2011-10-09 17:09:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-09 17:31:57 +0200 |
commit | 410459318056fd1ddbdf5b03c53e677a66f7c929 (patch) | |
tree | 24b48e0cf472d665f5329c7288214abe6af868b0 | |
parent | 78e1704122620ef747b47b7cefc55e43f8444e8e (diff) | |
download | mpd-410459318056fd1ddbdf5b03c53e677a66f7c929.tar.gz mpd-410459318056fd1ddbdf5b03c53e677a66f7c929.tar.xz mpd-410459318056fd1ddbdf5b03c53e677a66f7c929.zip |
configure.ac: use AC_SEARCH_LIBS for socket, gethostbyname, exp
AC_SEARCH_LIBS allows the function to be present in libc.
-rw-r--r-- | configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 10663a81b..0d9693093 100644 --- a/configure.ac +++ b/configure.ac @@ -117,12 +117,13 @@ AC_CHECK_FUNCS(daemon fork) AC_SEARCH_LIBS([syslog], [bsd socket inet], [AC_DEFINE(HAVE_SYSLOG, 1, [Define if syslog() is available])]) -AC_CHECK_LIB(socket,socket,MPD_LIBS="$MPD_LIBS -lsocket",) -AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) +AC_SEARCH_LIBS([socket], [socket]) +AC_SEARCH_LIBS([gethostbyname], [nsl]) AC_CHECK_FUNCS(pipe2 accept4) -AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",) +AC_SEARCH_LIBS([exp], [m],, + [AC_MSG_ERROR([exp() not found])]) AC_CHECK_HEADERS(locale.h) AC_CHECK_HEADERS(valgrind/memcheck.h) |