aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.in
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers@google.com>2008-07-12 21:36:53 +0000
committerCraig Silverstein <csilvers@google.com>2008-07-12 21:36:53 +0000
commit4474d12b51711449d9e9913d8d16260a2a06b6fc (patch)
tree2f41f02abb82d23036712671e959ae3c3be6e36e /ld/configure.in
parent604ead4a925d04413de72b61cfc3d39eeacf6fae (diff)
downloadgdb-4474d12b51711449d9e9913d8d16260a2a06b6fc.zip
gdb-4474d12b51711449d9e9913d8d16260a2a06b6fc.tar.gz
gdb-4474d12b51711449d9e9913d8d16260a2a06b6fc.tar.bz2
2008-07-12 Craig Silverstein <csilvers@google.com>
* configure.in: Check for, and include, libz.a if it is present. * configure: Regenerate. * config.in: Regenerate.
Diffstat (limited to 'ld/configure.in')
-rw-r--r--ld/configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/configure.in b/ld/configure.in
index 9158d2b..40afab9 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -148,6 +148,10 @@ BFD_BINARY_FOPEN
AC_CHECK_DECLS([strstr, free, sbrk, getenv, environ])
+# Link in zlib if we can. This is needed only for the bootstrap tests
+# right now, since those tests use libbfd, which depends on zlib.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
# When converting linker scripts into strings for use in emulation
# files, use astring.sed if the compiler supports ANSI string
# concatenation, or ostring.sed otherwise. This is to support the