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 --- jffsX-utils/Makemodule.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'jffsX-utils') diff --git a/jffsX-utils/Makemodule.am b/jffsX-utils/Makemodule.am index ee8d040..266c12e 100644 --- a/jffsX-utils/Makemodule.am +++ b/jffsX-utils/Makemodule.am @@ -1,7 +1,6 @@ mkfs_jffs2_SOURCES = \ jffsX-utils/mkfs.jffs2.c \ jffsX-utils/rbtree.h \ - jffsX-utils/compr_zlib.c \ jffsX-utils/compr.h \ jffsX-utils/rbtree.c \ jffsX-utils/compr.c \ @@ -30,6 +29,10 @@ if WITH_LZO mkfs_jffs2_SOURCES += jffsX-utils/compr_lzo.c endif +if WITH_ZLIB +mkfs_jffs2_SOURCES += jffsX-utils/compr_zlib.c +endif + EXTRA_DIST += jffsX-utils/device_table.txt jffsX-utils/mkfs.jffs2.1 dist_man1_MANS += jffsX-utils/mkfs.jffs2.1 -- cgit v1.2.3