Add --with-system-zlib in gas
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 31 Mar 2015 10:55:56 +0000 (03:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 31 Mar 2015 10:56:12 +0000 (03:56 -0700)
commit0138187e9fc351c6d4615bbe2ab020a3ac646b50
tree5863d905a08e1fca6445b29b1f8aada03c805b86
parent0ee42ecde7aadb3e68ae5b944f7b1b6a859ebcfd
Add --with-system-zlib in gas

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

gas/

* Makefile.am (ZLIBINC): New.
(AM_CFLAGS): Add $(ZLIBINC).
* as.c: (show_usage): Don't check HAVE_ZLIB_H.
(parse_args): Likewise.
* compress-debug.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
(compress_init): Don't check HAVE_ZLIB_H.
(compress_data): Likewise.
(compress_finish): Likewise.
* configure.ac (AM_ZLIB): Removed.
(zlibinc): New.  AC_SUBST.
Add --with-system-zlib.
* Makefile.in: Regenerated.
* config.in: Likewise.
* configure: Likewise.
* doc/Makefile.in: Likewise.

gas/testsuite/

* gas/i386/dw2-compress-1.d: Expect .zdebug_info.
gas/ChangeLog
gas/Makefile.am
gas/Makefile.in
gas/as.c
gas/compress-debug.c
gas/config.in
gas/configure
gas/configure.ac
gas/doc/Makefile.in
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/dw2-compress-1.d