From 426d56795fec6bd64691fcd8a64454bd6fb866b3 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 8 Oct 2025 16:40:50 +0200 Subject: [PATCH] - simdzone-zone-load, configure checks that the simdzone directory has the submodule files and prints an error otherwise. --- configure | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index ecc3dd4f9..c0bc17b1e 100755 --- a/configure +++ b/configure @@ -25403,6 +25403,8 @@ then : enableval=$enable_haswell; fi +if test ! -f simdzone/configure.ac; then as_fn_error $? "There is no \"simdzone/configure.ac\" file. The simdzone directory has not been fetched, perhaps get it with 'git submodule update --init'." "$LINENO" 5; fi +if test ! -f simdzone/configure; then as_fn_error $? "There is no \"simdzone/configure\" file. The simdzone directory has no configure script file, perhaps run 'autoreconf -fi'." "$LINENO" 5; fi subdirs="$subdirs simdzone" diff --git a/configure.ac b/configure.ac index 4e13d62d5..25b4354ba 100644 --- a/configure.ac +++ b/configure.ac @@ -2486,6 +2486,8 @@ AC_CONFIG_HEADERS([config.h]) # Arguments introduced specifically for simdzone. AC_ARG_ENABLE(westmere, AS_HELP_STRING([--disable-westmere], [Disable Westmere (SSE4.2) parser kernel])) AC_ARG_ENABLE(haswell, AS_HELP_STRING([--disable-haswell], [Disable Haswell (AVX2) parser kernel])) +if test ! -f simdzone/configure.ac; then AC_MSG_ERROR([There is no "simdzone/configure.ac" file. The simdzone directory has not been fetched, perhaps get it with 'git submodule update --init'.]); fi +if test ! -f simdzone/configure; then AC_MSG_ERROR([There is no "simdzone/configure" file. The simdzone directory has no configure script file, perhaps run 'autoreconf -fi'.]); fi AC_CONFIG_SUBDIRS([simdzone]) # Pick up the objects for simdzone. SIMDZONE_OBJ=`(cd simdzone; make list_objs) | sed -e 's?src?simdzone/src?g'`