changeset 2482:4733bb1a9b72

added detection of zlib
author alex
date Fri, 26 Oct 2001 13:50:05 +0000
parents 0e9a5504a246
children 22bfa362af42
files configure
diffstat 1 files changed, 22 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Oct 26 13:39:15 2001 +0000
+++ b/configure	Fri Oct 26 13:50:05 2001 +0000
@@ -6,6 +6,9 @@
 #
 # Changes in reversed order:
 #
+# 2001/10/26 by al3x
+# - added detection of zlib (used by libmpdemux/demux_mov.c)
+#
 # 2001/10/22 by Jeroen Dobbelaere
 # - added selection of libmad
 #
@@ -1147,6 +1150,13 @@
 _libdl=no
 cc_check -ldl && _libdl=yes
 
+# check for zlib.h
+cat > $TMPC << EOF
+#include <zlib.h>
+int main( void ) { return 0; }
+EOF
+_zlib=no
+cc_check -lz && _zlib=yes
 
 # check for sys/soundcard.h
 cat > $TMPC << EOF
@@ -1699,6 +1709,7 @@
 echo "Checking for Win32 DLL support ... $_win32"
 echo "Checking for DirectShow ... $_dshow"
 echo "Checking for iconv function ... $_iconv"
+echo "Checking for zlib ... $_zlib"
 
 # check if compiler supports C++ and C++-libs are installed correctly
 if test "$_win32" = yes && test "$_dshow" = yes ; then
@@ -2076,6 +2087,13 @@
  _have_libdl='#undef  HAVE_LIBDL'
 fi
 
+if test "$_zlib" = yes ; then
+ _have_zlib='#define HAVE_ZLIB 1'
+ _zlib='-lz'
+else
+ _have_zlib='#undef  HAVE_ZLIB'
+ _zlib=''
+fi
 
 # Checking for CFLAGS
 if test "$_profile" || test "$_debug" ; then
@@ -2361,7 +2379,7 @@
 
 X11_INC=$_x11incdir
 X11DIR=$_x11libdir
-X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_libmad
+X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_libmad $_zlib
 
 TERMCAP_LIB=$_libtermcap
 XMM_LIBS = $_xmmplibs
@@ -2490,13 +2508,15 @@
 /* Define this if your system has the "sys/mman.h" header file */
 $_have_mman_h
 
-
 /* Define this if you have the elf dynamic linker -ldl library */
 $_have_libdl
 
 /* Define this if you have the kstat kernel statistics library */
 $_have_libkstat
 
+/* Define this if you have zlib */
+$_have_zlib
+
 /* LIRC (remote control, see www.lirc.org) support: */
 $_lircdefs