]> sigrok.org Git - libsigrok.git/commitdiff
sr: Remove zlib dependency.
authorHåvard Espeland <redacted>
Sun, 22 Apr 2012 12:31:40 +0000 (14:31 +0200)
committerHåvard Espeland <redacted>
Sun, 22 Apr 2012 12:59:10 +0000 (14:59 +0200)
No longer needed by Sigma driver.

README
configure.ac
hardware/asix-sigma/asix-sigma.c

diff --git a/README b/README
index cb29ccafe6b7c2ee452751a16c52ddb942e28d71..b56414689ef2db1c61c758613a168af778fe5f26 100644 (file)
--- a/README
+++ b/README
@@ -24,7 +24,6 @@ Requirements
  - libglib >= 2.22.0
  - libusb >= 1.0.5 (for most logic analyzer hardware)
  - libzip >= 0.8
- - zlib >= 1.2.3.1
  - libftdi >= 0.16 (for some logic analyzer hardware)
  - libudev >= 151 (for some logic analyzer hardware)
 
index 8c9fad59c648a673981a04a9029e14c8588c1c72..4f2ef2b0bbde273aa0223f402df9549b26fea906 100644 (file)
@@ -194,22 +194,6 @@ PKG_CHECK_MODULES([libzip], [libzip >= 0.8],
        [CFLAGS="$CFLAGS $libzip_CFLAGS"; LIBS="$LIBS $libzip_LIBS";
        SR_PKGLIBS="$SR_PKGLIBS libzip"])
 
-# zlib is only needed for some hardware drivers.
-if test "x$LA_ASIX_SIGMA" != xno; then
-       case "$build" in
-       *freebsd*)
-               # FreeBSD has zlib, but no pkg-config file for it.
-               # Check manually, and do NOT add it to SR_PKGLIBS.
-               AC_CHECK_LIB(z, uncompress)
-               ;;
-       *)
-               PKG_CHECK_MODULES([zlib], [zlib >= 1.2.3.1],
-                       [CFLAGS="$CFLAGS $zlib_CFLAGS"; LIBS="$LIBS $zlib_LIBS";
-                       SR_PKGLIBS="$SR_PKGLIBS zlib"])
-               ;;
-       esac
-fi
-
 # libftdi is only needed for some hardware drivers.
 if test "x$LA_ASIX_SIGMA" != xno \
      -o "x$LA_CHRONOVU_LA8" != xno; then
@@ -301,7 +285,7 @@ echo "Detected libraries:"
 echo
 
 # Note: This only works for libs with pkg-config integration.
-for lib in "glib-2.0" "gthread-2.0" "libusb-1.0" "libzip" "zlib" "libftdi" "libudev" "alsa"; do
+for lib in "glib-2.0" "gthread-2.0" "libusb-1.0" "libzip" "libftdi" "libudev" "alsa"; do
        if `$PKG_CONFIG --exists $lib`; then
                ver=`$PKG_CONFIG --modversion $lib`
                answer="yes ($ver)"
index 0e32908f4208da30ca55339b85daa13b20e80ab5..5fc45c347a04c012c42ac087292f052efdd7c11f 100644 (file)
@@ -27,7 +27,6 @@
 #include <glib/gstdio.h>
 #include <ftdi.h>
 #include <string.h>
-#include <zlib.h>
 #include "sigrok.h"
 #include "sigrok-internal.h"
 #include "asix-sigma.h"