[llvm-commits] CVS: llvm/autoconf/configure.ac

Reid Spencer reid at x10sys.com
Sat Oct 2 01:51:09 PDT 2004

Changes in directory llvm/autoconf:

configure.ac updated: 1.119 -> 1.120
Log message:

Add checks for bzip2 and libz for use with the Compression concept for
lib/System and the compressing llvm archiver.

Diffs of the changes:  (+16 -0)

Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.119 llvm/autoconf/configure.ac:1.120
--- llvm/autoconf/configure.ac:1.119	Mon Sep 27 02:35:19 2004
+++ llvm/autoconf/configure.ac	Sat Oct  2 03:50:58 2004
@@ -247,6 +247,22 @@
 dnl libelf is for sparc only; we can ignore it if we don't have it
 AC_CHECK_LIB(elf, elf_begin)
+dnl Check for bzip2 and zlib compression libraries needed for archive reading/writing
+if test $zlib_found -eq 1 ; then
+  AC_DEFINE([HAVE_ZLIB],[1],[Define if zlib library is available on this platform.])
+if test $bzip2_found -eq 1 ; then
+  AC_DEFINE([HAVE_BZIP2],[1],[Define if bzip2 library is available on this platform.])
+  if test $zlib_found -ne 1 ; then
+    AC_MSG_WARN([**** Neither zlib nor bzip2 compression libraries were found -
+                 archives will not support compression! Install bzip2 or zlib
+                 and then reconfigure to ensure compatibility])
+  fi
 dnl dlopen() is required for plugin support.
 AC_SEARCH_LIBS(dlopen,dl,AC_DEFINE([HAVE_DLOPEN],[1],[Define if dlopen() is available on this platform.]),AC_MSG_WARN([dlopen() not found - disabling plugin support]))

More information about the llvm-commits mailing list