From 9ae46699504c63af285d40ad8856a29300d318e4 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 31 Mar 2015 05:54:55 -0700 Subject: [PATCH] Revert the AM_ZLIB change in bfd * configure.ac: Revert the AM_ZLIB change. * Makefile.in: Regenerated. * aclocal.m4: Likewise. * configure: Likewise. * doc/Makefile.in: Likewise. --- bfd/ChangeLog | 8 ++++++++ bfd/Makefile.in | 3 ++- bfd/aclocal.m4 | 1 + bfd/configure | 12 ++++++++---- bfd/configure.ac | 13 +++---------- bfd/doc/Makefile.in | 3 ++- 6 files changed, 24 insertions(+), 16 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 25bec346f3c..52ee750fdf8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2015-03-31 H.J. Lu + + * configure.ac: Revert the AM_ZLIB change. + * Makefile.in: Regenerated. + * aclocal.m4: Likewise. + * configure: Likewise. + * doc/Makefile.in: Likewise. + 2015-03-30 H.J. Lu PR ld/18169 diff --git a/bfd/Makefile.in b/bfd/Makefile.in index 92eb33d75be..aac3eb2b9dc 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -75,7 +75,8 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ $(top_srcdir)/../config/plugins.m4 \ $(top_srcdir)/../config/po.m4 \ $(top_srcdir)/../config/progtest.m4 \ - $(top_srcdir)/../config/stdint.m4 $(top_srcdir)/../libtool.m4 \ + $(top_srcdir)/../config/stdint.m4 \ + $(top_srcdir)/../config/zlib.m4 $(top_srcdir)/../libtool.m4 \ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \ $(top_srcdir)/bfd.m4 $(top_srcdir)/warning.m4 \ diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4 index d9e743e031f..d3243c62687 100644 --- a/bfd/aclocal.m4 +++ b/bfd/aclocal.m4 @@ -979,6 +979,7 @@ m4_include([../config/plugins.m4]) m4_include([../config/po.m4]) m4_include([../config/progtest.m4]) m4_include([../config/stdint.m4]) +m4_include([../config/zlib.m4]) m4_include([../libtool.m4]) m4_include([../ltoptions.m4]) m4_include([../ltsugar.m4]) diff --git a/bfd/configure b/bfd/configure index b8f1b2b5fda..2231e780bae 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13853,20 +13853,24 @@ cat >>confdefs.h <<_ACEOF _ACEOF -# Use the system's zlib library. -zlibdir=-L../zlib -zlibinc="-I\$(srcdir)/../zlib" +# Link in zlib if we can. This allows us to read compressed debug sections. +# This is used only by compress.c. + + # Use the system's zlib library. + zlibdir=-L../zlib + zlibinc="-I\$(srcdir)/../zlib" # Check whether --with-system-zlib was given. if test "${with_system_zlib+set}" = set; then : withval=$with_system_zlib; zlibdir= -zlibinc= + zlibinc= fi + # If we are configured native, pick a core file support file. COREFILE= COREFLAG= diff --git a/bfd/configure.ac b/bfd/configure.ac index 54267818f01..a1b20358dbf 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -236,16 +236,9 @@ AC_CHECK_DECLS(snprintf) AC_CHECK_DECLS(vsnprintf) AC_CHECK_DECLS(strnlen) -# Use the system's zlib library. -zlibdir=-L../zlib -zlibinc="-I\$(srcdir)/../zlib" -AC_ARG_WITH(system-zlib, -[AS_HELP_STRING([--with-system-zlib], [use installed libz])], -zlibdir= -zlibinc= -) -AC_SUBST(zlibdir) -AC_SUBST(zlibinc) +# Link in zlib if we can. This allows us to read compressed debug sections. +# This is used only by compress.c. +AM_ZLIB # If we are configured native, pick a core file support file. COREFILE= diff --git a/bfd/doc/Makefile.in b/bfd/doc/Makefile.in index 6038113c29b..cb9a214e5b9 100644 --- a/bfd/doc/Makefile.in +++ b/bfd/doc/Makefile.in @@ -71,7 +71,8 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ $(top_srcdir)/../config/plugins.m4 \ $(top_srcdir)/../config/po.m4 \ $(top_srcdir)/../config/progtest.m4 \ - $(top_srcdir)/../config/stdint.m4 $(top_srcdir)/../libtool.m4 \ + $(top_srcdir)/../config/stdint.m4 \ + $(top_srcdir)/../config/zlib.m4 $(top_srcdir)/../libtool.m4 \ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \ $(top_srcdir)/bfd.m4 $(top_srcdir)/warning.m4 \ -- 2.30.2