From ecdfd004814e6ae1298b05f5c137970c07f5e6b7 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 11 Jul 2008 02:42:35 +0000 Subject: [PATCH] * common.m4: Add test for libz and zlib.h. --- sim/common/common.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim/common/common.m4 b/sim/common/common.m4 index f5877540f24..215208d8712 100644 --- a/sim/common/common.m4 +++ b/sim/common/common.m4 @@ -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. -- 2.30.2