projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5bd962
)
* common.m4: Add test for libz and zlib.h.
author
Hans-Peter Nilsson
<hp@axis.com>
Fri, 11 Jul 2008 02:42:35 +0000
(
02:42
+0000)
committer
Hans-Peter Nilsson
<hp@axis.com>
Fri, 11 Jul 2008 02:42:35 +0000
(
02:42
+0000)
sim/common/common.m4
patch
|
blob
|
history
diff --git
a/sim/common/common.m4
b/sim/common/common.m4
index f5877540f24cec3661e8670b28465f10a87510f1..215208d87121023239ff045b619fccf36c09d900 100644
(file)
--- 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.