Add --with-system-zlib in gdb
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 31 Mar 2015 15:24:02 +0000 (08:24 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 31 Mar 2015 15:24:18 +0000 (08:24 -0700)
commit711a72d3d6f8cd3c3f408e718ff19aa4bfd2144e
tree87513c7ddcc1337bf2e2fe85f3328ef4151c6d66
parent518a69099cf8eca95a86c4d1ff4b8d8c30cf3c6b
Add --with-system-zlib in gdb

This patch adds --with-system-zlib and removes --with-zlib in gdb.

* Makefile.in (ZLIB): New.
(ZLIBINC): Likewise.
(INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
(CLIBS): Add $(ZLIB).
* acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
Add -lz to LIBS.
* gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
* top.c (print_gdb_configuration): Remove --with-zlib and
--without-zlib.
* config.in: Regenerated.
* configure: Likewise.
gdb/ChangeLog
gdb/Makefile.in
gdb/acinclude.m4
gdb/config.in
gdb/configure
gdb/gdb_bfd.c
gdb/top.c