aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2012-01-10 00:02:47 +0000
committerRoland McGrath <roland@gnu.org>2012-01-10 00:02:47 +0000
commit52546677d16665d5807657b453c808d1d625c309 (patch)
treee957e7571291ea8e4b461d75bd45ae7b208fb863 /binutils
parent4299088ecd2d8e9bbfec05761ac8295830ab4737 (diff)
downloadfsf-binutils-gdb-52546677d16665d5807657b453c808d1d625c309.zip
fsf-binutils-gdb-52546677d16665d5807657b453c808d1d625c309.tar.gz
fsf-binutils-gdb-52546677d16665d5807657b453c808d1d625c309.tar.bz2
binutils/
* configure.in: Use AM_ZLIB. * configure: Regenerated. ld/ * configure.in: Use AM_ZLIB. * configure: Regenerated.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rwxr-xr-xbinutils/configure25
-rw-r--r--binutils/configure.in2
3 files changed, 28 insertions, 4 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 326432f..c78b13f 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-09 Roland McGrath <mcgrathr@google.com>
+
+ * configure.in: Use AM_ZLIB.
+ * configure: Regenerated.
+
2012-01-06 Nick Clifton <nickc@redhat.com>
* po/ru.po: Updated Russian translation.
diff --git a/binutils/configure b/binutils/configure
index 028abb9..8d324e4 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -776,6 +776,7 @@ enable_werror
enable_build_warnings
enable_nls
enable_maintainer_mode
+with_zlib
enable_rpath
with_libiconv_prefix
'
@@ -1433,6 +1434,7 @@ Optional Packages:
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-zlib include zlib support (auto/yes/no) default=auto
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
@@ -11202,7 +11204,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11205 "configure"
+#line 11207 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11308,7 +11310,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11311 "configure"
+#line 11313 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12994,7 +12996,19 @@ _ACEOF
# Link in zlib if we can. This allows us to read compressed debug
# sections. This is used only by readelf.c (objdump uses bfd for
# reading compressed sections).
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
+
+ # See if the user specified whether he wants zlib support or not.
+
+# Check whether --with-zlib was given.
+if test "${with_zlib+set}" = set; then :
+ withval=$with_zlib;
+else
+ with_zlib=auto
+fi
+
+
+ if test "$with_zlib" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
$as_echo_n "checking for library containing zlibVersion... " >&6; }
if test "${ac_cv_search_zlibVersion+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -13061,6 +13075,11 @@ done
fi
+ if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
+ as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
+ fi
+ fi
+
case "${host}" in
diff --git a/binutils/configure.in b/binutils/configure.in
index d38b677..d0443cf 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -155,7 +155,7 @@ AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
# Link in zlib if we can. This allows us to read compressed debug
# sections. This is used only by readelf.c (objdump uses bfd for
# reading compressed sections).
-AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
+AM_ZLIB
BFD_BINARY_FOPEN