Add --with-system-zlib in binutils
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 31 Mar 2015 10:53:41 +0000 (03:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 31 Mar 2015 10:53:55 +0000 (03:53 -0700)
commit0ee42ecde7aadb3e68ae5b944f7b1b6a859ebcfd
treed340d7c5a7897eef99004fa960d0086f1801ce8a
parentb38f7f340bf021f9ad017cc88beddb9b0eaae06b
Add --with-system-zlib in binutils

This patch adds --with-system-zlib and remove --with-zlib in binutils.

* Makefile.am (ZLIB): New.
(ZLIBINC): Likewise.
(AM_CFLAGS): Add $(ZLIBINC).
(readelf_LDADD): Add $(ZLIB).
* configure.ac (AM_ZLIB): Removed.
(zlibdir): New.  AC_SUBST.
(zlibinc): Likewise.
Add --with-system-zlib.
* readelf.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
(uncompress_section_contents): Don't check HAVE_ZLIB_H.
* Makefile.in: Regenerated.
* config.in: Likewise.
* configure: Likewise.
binutils/ChangeLog
binutils/Makefile.am
binutils/Makefile.in
binutils/config.in
binutils/configure
binutils/configure.ac
binutils/doc/Makefile.in
binutils/readelf.c