From 2465754716634422620b4577e0b7ba79c4ce1a39 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 17 Feb 2024 16:37:56 +0100 Subject: Make zlib an optional dependency Now that we have plumbing in place for both jffsX-utils and mkfs.ubifs, add the missing autoconf and automake changes to allow mtd-utils to be built without a hard dependency on zlib. Signed-off-by: David Oberhollenzer --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 06d154a..11647ba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,9 @@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = $(WARN_CFLAGS) -D_GNU_SOURCE -std=gnu99 -I$(top_srcdir)/include \ -include $(top_builddir)/include/config.h +if WITH_ZLIB AM_CPPFLAGS += -DWITH_ZLIB +endif if WITH_XATTR AM_CPPFLAGS += -DWITH_XATTR -- cgit v1.2.3