Commit 325c4469 authored by Niels Möller's avatar Niels Möller

* configure.ac: Moved checks for -lnsl and -lsocket earlier.

Updated GMP URL.

* configure.ac: Fixed spurious # in include section i test for
utmp members.

Rev: ChangeLog:1.1000
Rev: configure.ac:1.87
parent 552daf84
2008-11-06 Niels Mller <nisse@lysator.liu.se>
* configure.ac: Moved checks for -lnsl and -lsocket earlier.
Updated GMP URL.
* configure.ac: Fixed spurious # in include section i test for
utmp members.
......
......@@ -387,9 +387,18 @@ LSH_TYPE_SOCKLEN_T
# Checks for libraries
# System libraries first. E.g., X11 libraries depend on gethostbyname,
# which on Solaris is in nsl.
# glibc has a nis-library "libnsl", which we don't need. So use
# AC_SEARCH_LIBS rather than AC_CHECK_LIB.
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_SEARCH_LIBS(inet_ntop, nsl)
AC_CHECK_LIB(socket, setsockopt)
AC_CHECK_LIB(gmp, __gmpz_getlimbn,,
[AC_MSG_ERROR(
[GNU MP not found, or not 3.1 or up, see http://www.swox.com/gmp.])])
[GNU MP not found, or not 3.1 or up, see http://gmplib.org/.])])
LSH_RPATH_FIX
......@@ -450,15 +459,6 @@ AC_CHECK_HEADERS(X11/Xauth.h)
AC_SEARCH_LIBS(XauGetAuthByAddr, Xau, X11)
LSH_RPATH_FIX
# Move these checks for system libraries earlier, before checks for
# gmp, liboop etc
# glibc has a nis-library "libnsl", which we don't need. So use
# AC_SEARCH_LIBS rather than AC_CHECK_LIB.
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_SEARCH_LIBS(inet_ntop, nsl)
AC_CHECK_LIB(socket, setsockopt)
AC_CHECK_LIB(crypt, crypt)
AC_CHECK_LIB(xnet, inet_addr)
# logwtmp is also in libutil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment