* configure.ac (AC_SEARCH_LIBS): Add check for zlib.
[deliverable/binutils-gdb.git] / gdb / configure.ac
index 43aa2dd09285f4462ef30aa8e7f9a9debf3dfd1b..101dedf1380301b670559ee27ddfba18b2c9eaf7 100644 (file)
@@ -399,6 +399,9 @@ AC_SEARCH_LIBS(gethostbyname, nsl)
 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
 AC_SEARCH_LIBS(socketpair, socket)
 
+# Link in zlib if we can.  This allows us to read compressed debug sections.
+AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+
 # For the TUI, we need enhanced curses functionality.
 #
 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
This page took 0.024605 seconds and 4 git commands to generate.