small configure offering re: -lz



This patch is only for gnome-libs configure.in, but the same thing should apply
to most of the GNOME packages.  It tries to detect the bad -lz problem at
configure time and tell the builder what to do about it.

Index: gnome-libs/configure.in
===================================================================
RCS file: /cvs/gnome/gnome-libs/configure.in,v
retrieving revision 1.154
diff -u -r1.154 configure.in
--- configure.in	1999/01/13 00:54:31	1.154
+++ configure.in	1999/01/13 13:08:33
@@ -163,6 +163,11 @@
 AC_CHECK_LIB(z, inflate,
   AC_CHECK_HEADER(zlib.h,
     Z_LIBS="-lz";  AC_DEFINE(HAVE_LIBZ)))
+AC_CHECK_LIB(z, compress, ,
+  AC_MSG_ERROR([[*** Incorrect libz version found.  Please make sure you do not have an
+*** outdated libz.a / libz.so hiding in your X11 distribution or elsewhere
+*** on your system.  Versions of libz with the "compress" and "uncompress"
+*** symbols are sufficiently recent to build GNOME.]]))
 
 dnl Test for libjpeg
 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,

(On a more useful note I hope to submit something to catch incompatible indent
for ORBit soon, after I put out the latest "fires"....)

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
electrical and computer engineering					 KF8NH
carnegie mellon university	      ["God, root, what is difference?" -Pitr]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]