From 7c90057cfee7bfcf03f92bf8c837b11790a17aeb Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Mon, 7 Oct 2024 20:43:36 +0300 Subject: [PATCH] [libpng16] ci: Verification should pass regardless of autoconf artifacts Allow ci_verify_configure.sh to pass regardless whether the configure script and the associated configure control files are present. This is necessary for the branches newer than 'libpng16', where these artifacts are no longer auto-generated by default. This is a cherry-pick of commit 09ec97edc099538d548a67253b990660c912af4f from branch 'libpng18'. --- ci/ci_verify_configure.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/ci_verify_configure.sh b/ci/ci_verify_configure.sh index 141c7a283..b0e4d4944 100755 --- a/ci/ci_verify_configure.sh +++ b/ci/ci_verify_configure.sh @@ -122,6 +122,10 @@ function ci_build { ci_spawn export CFLAGS="${CFLAGS:-"-O2"} -fsanitize=$CI_SANITIZERS" ci_spawn export LDFLAGS="${LDFLAGS}${LDFLAGS:+" "}-fsanitize=$CI_SANITIZERS" } + # Spawn "autogen.sh" if the configure script is not available. + [[ -x "$CI_SRC_DIR/configure" ]] || { + ci_spawn "$CI_SRC_DIR/autogen.sh" --maintainer + } # And... build! ci_spawn mkdir -p "$CI_BUILD_DIR" ci_spawn cd "$CI_BUILD_DIR"