From 59b756781d398c16a26eb2a603b8ec48cecf8e71 Mon Sep 17 00:00:00 2001 From: Philip McGrath Date: Sun, 25 Feb 2024 14:43:32 -0500 Subject: [PATCH] configure: fix zlib and lz4 submodule checks Conditionals to skip the submodule checks were using the wrong variable names, so the checks were always skipped. The correct behavior is to perform the check unless given `ZLIB=` or `LZ4=`, as applicable. --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 2b4b594ed..7e0247b51 100755 --- a/configure +++ b/configure @@ -897,13 +897,13 @@ if [ ! -f "$srcdir"/nanopass/nanopass.ss ] ; then submod_instructions 'Source in "nanopass" is missing' fi -if [ "${zlibDep}" != "" ] ; then +if [ "${zlibLib}" = "" ] ; then if [ ! -f "$srcdir"/zlib/configure ] ; then submod_instructions 'Source in "zlib" is missing' fi fi -if [ "${LZ4Dep}" != "" ] ; then +if [ "${LZ4Lib}" = "" ] ; then if [ ! -f "$srcdir"/lz4/lib/Makefile ] ; then submod_instructions 'Source in "lz4" is missing' fi @@ -1083,7 +1083,7 @@ cp "$srcdir"/makefiles/buildmain.zuo main.zuo # Some idea, but in the workarea, so it refers to "workarea.zuo" here: cp "$srcdir"/makefiles/workmain.zuo $w/main.zuo -# The content of "$w/Makefile" records configuration decisions, +# The content of "$w/Mf-config" records configuration decisions, # and the Zuo build script takes it from there cat > $w/Mf-config << END srcdir=$srcdir