* common.m4: Add test for libz and zlib.h.

This commit is contained in:
Hans-Peter Nilsson 2008-07-11 02:42:35 +00:00
parent b5bd96244f
commit ecdfd00481

View File

@ -54,6 +54,10 @@ AC_CHECK_FUNCS(getrusage time sigaction __setfpucw)
AC_CHECK_LIB(socket, bind)
AC_CHECK_LIB(nsl, gethostbyname)
# BFD conditionally uses zlib, so we must link it in if libbfd does, by
# using the same condition.
AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
. ${srcdir}/../../bfd/configure.host
dnl Standard (and optional) simulator options.