aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-04 07:05:07 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-04 07:05:07 +0000
commit37130d2b5edab108b05a29cd71b7476ff0bed172 (patch)
tree1d0878aa7cd741674982aab6d490d31954dc532d /autoconf
parentac6a47588b22e7ea4d5ba6a3335c7a5a471cbf85 (diff)
downloadexternal_llvm-37130d2b5edab108b05a29cd71b7476ff0bed172.zip
external_llvm-37130d2b5edab108b05a29cd71b7476ff0bed172.tar.gz
external_llvm-37130d2b5edab108b05a29cd71b7476ff0bed172.tar.bz2
Provide support for auto-detection and use of compression libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index f0ffcb5..bdc3151 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -250,6 +250,8 @@ AC_CHECK_LIB(elf, elf_begin)
dnl Check for bzip2 and zlib compression libraries needed for archive reading/writing
AC_CHECK_LIB(bz2,BZ2_bzCompressInit,[bzip2_found=1],[bzip2_found=0])
AC_CHECK_LIB(z,gzopen,[zlib_found=1],[zlib_found=0])
+AC_SUBST([HAVE_ZLIB],$zlib_found)
+AC_SUBST([HAVE_BZIP2],$bzip2_found)
if test $zlib_found -eq 1 ; then
AC_DEFINE([HAVE_ZLIB],[1],[Define if zlib library is available on this platform.])
fi