aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2012-12-07 04:28:52 +0000
committerIan Lance Taylor <ian@airs.com>2012-12-07 04:28:52 +0000
commitae2eea65c66ca86d63e6f46ec9926ae0ac7eb2f7 (patch)
treee861425fbfab2e2b222d1e4a2c4167eb908a4385 /gold/configure.ac
parentdecdd3bc369ed3d5fdc9dc1d0fcf9b0b21cfceef (diff)
downloadgdb-ae2eea65c66ca86d63e6f46ec9926ae0ac7eb2f7.zip
gdb-ae2eea65c66ca86d63e6f46ec9926ae0ac7eb2f7.tar.gz
gdb-ae2eea65c66ca86d63e6f46ec9926ae0ac7eb2f7.tar.bz2
* configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.
Use $ac_cv_header_zlib_h = yes as the condition in AM_CONDITIONAL. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r--gold/configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/configure.ac b/gold/configure.ac
index f8297f2..727078d 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -486,8 +486,8 @@ else
fi
# Link in zlib if we can. This allows us to write compressed sections.
-AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
-AM_CONDITIONAL(HAVE_ZLIB, test "$ac_cv_search_zlibVersion" != "no")
+AM_ZLIB
+AM_CONDITIONAL(HAVE_ZLIB, test "$ac_cv_header_zlib_h" = "yes")
dnl We have to check these in C, not C++, because autoconf generates
dnl tests which have no type information, and current glibc provides