Debug: increase verbosity in pcre2.m4 for macOS GitHub Actions

Added AC_MSG_NOTICE macros to pcre2.m4 to enhance debugging output. This change aims to identify the cause of build failures on macOS runners in GitHub Actions, which do not occur locally or on other platforms (Linux, Windows).

The added verbosity will help trace the build process and inspect variable values for inconsistencies in the macOS runner environment.
This commit is contained in:
Gabor Berkes 2024-12-11 08:57:43 +00:00
parent a07d0c7d34
commit 784cf0b64c
2 changed files with 7 additions and 3 deletions

View File

@ -105,7 +105,6 @@ jobs:
geoip \ geoip \
ssdeep \ ssdeep \
pcre \ pcre \
pcre2 \
bison \ bison \
flex flex
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@ -29,8 +29,8 @@ if test "x${with_pcre2}" == "xno"; then
AC_MSG_NOTICE([Support for PCRE2 was disabled by the utilization of --without-pcre2 or --with-pcre2=no]) AC_MSG_NOTICE([Support for PCRE2 was disabled by the utilization of --without-pcre2 or --with-pcre2=no])
PCRE2_DISABLED=yes PCRE2_DISABLED=yes
else else
# pcre2 is the default
PCRE2_MANDATORY=yes PCRE2_MANDATORY=yes
AC_MSG_NOTICE([PCRE2 is enabled by default.])
# if test "x${with_pcre2}" == "xyes"; then # if test "x${with_pcre2}" == "xyes"; then
# PCRE2_MANDATORY=yes # PCRE2_MANDATORY=yes
# AC_MSG_NOTICE([PCRE2 support was marked as mandatory by the utilization of --with-pcre2=yes]) # AC_MSG_NOTICE([PCRE2 support was marked as mandatory by the utilization of --with-pcre2=yes])
@ -98,9 +98,14 @@ else
AC_MSG_NOTICE([PCRE2 is disabled by default.]) AC_MSG_NOTICE([PCRE2 is disabled by default.])
else else
PCRE2_FOUND=1 PCRE2_FOUND=1
AC_MSG_NOTICE([using PCRE2 v${PCRE2_VERSION}])
PCRE2_CFLAGS="${PCRE2_CFLAGS}" PCRE2_CFLAGS="${PCRE2_CFLAGS}"
PCRE2_DISPLAY="${PCRE2_LDADD}, ${PCRE2_CFLAGS}" PCRE2_DISPLAY="${PCRE2_LDADD}, ${PCRE2_CFLAGS}"
AC_MSG_NOTICE([using PCRE2_VERSION ${PCRE2_VERSION}])
AC_MSG_NOTICE([using PCRE2_LDADD ${PCRE2_LDADD}])
AC_MSG_NOTICE([using PCRE2_LIBS ${PCRE2_LIBS}])
AC_MSG_NOTICE([using PCRE2_LDFLAGS ${PCRE2_LDFLAGS}])
AC_MSG_NOTICE([using PCRE2_CFLAGS ${PCRE2_CFLAGS}])
AC_MSG_NOTICE([using PCRE2_DISPLAY ${PCRE2_DISPLAY}])
AC_SUBST(PCRE2_VERSION) AC_SUBST(PCRE2_VERSION)
AC_SUBST(PCRE2_LDADD) AC_SUBST(PCRE2_LDADD)
AC_SUBST(PCRE2_LIBS) AC_SUBST(PCRE2_LIBS)