mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Build on macOS 14 arm64
This commit is contained in:
parent
f04dcc0262
commit
e31ff7e60b
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -78,7 +78,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-12]
|
os: [macos-14]
|
||||||
configure:
|
configure:
|
||||||
- {label: "with parser generation", opt: "--enable-parser-generation" }
|
- {label: "with parser generation", opt: "--enable-parser-generation" }
|
||||||
- {label: "wo curl", opt: "--without-curl" }
|
- {label: "wo curl", opt: "--without-curl" }
|
||||||
@ -91,10 +91,12 @@ jobs:
|
|||||||
- {label: "with pcre2", opt: "--with-pcre2" }
|
- {label: "with pcre2", opt: "--with-pcre2" }
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Dependencies
|
- name: Setup Dependencies
|
||||||
# autoconf, curl, pcre2 not installed because they're already
|
# curl, pcre2 not installed because they're already
|
||||||
# included in the image
|
# included in the image
|
||||||
run: |
|
run: |
|
||||||
brew install automake \
|
brew install autoconf \
|
||||||
|
automake \
|
||||||
|
libtool \
|
||||||
yajl \
|
yajl \
|
||||||
lmdb \
|
lmdb \
|
||||||
lua \
|
lua \
|
||||||
|
@ -27,30 +27,41 @@ else
|
|||||||
|
|
||||||
AC_MSG_CHECKING([for libpcre config script])
|
AC_MSG_CHECKING([for libpcre config script])
|
||||||
|
|
||||||
for x in ${test_paths}; do
|
AC_CHECK_PROG([PCRE_CONFIG_IN_ENV], [pcre-config], [yes], [no])
|
||||||
dnl # Determine if the script was specified and use it directly
|
|
||||||
if test ! -d "$x" -a -e "$x"; then
|
|
||||||
PCRE_CONFIG=$x
|
|
||||||
pcre_path="no"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl # Try known config script names/locations
|
if test "$PCRE_CONFIG_IN_ENV" = "yes"; then
|
||||||
for PCRE_CONFIG in pcre-config; do
|
AC_MSG_NOTICE([pcre-config found in envinronment])
|
||||||
if test -e "${x}/bin/${PCRE_CONFIG}"; then
|
|
||||||
pcre_path="${x}/bin"
|
PCRE_CONFIG=pcre-config
|
||||||
|
pcre_path="no"
|
||||||
|
else
|
||||||
|
AC_MSG_NOTICE([pcre-config not found in environment. checking known paths])
|
||||||
|
|
||||||
|
for x in ${test_paths}; do
|
||||||
|
dnl # Determine if the script was specified and use it directly
|
||||||
|
if test ! -d "$x" -a -e "$x"; then
|
||||||
|
PCRE_CONFIG=$x
|
||||||
|
pcre_path="no"
|
||||||
break
|
break
|
||||||
elif test -e "${x}/${PCRE_CONFIG}"; then
|
fi
|
||||||
pcre_path="${x}"
|
|
||||||
|
dnl # Try known config script names/locations
|
||||||
|
for PCRE_CONFIG in pcre-config; do
|
||||||
|
if test -e "${x}/bin/${PCRE_CONFIG}"; then
|
||||||
|
pcre_path="${x}/bin"
|
||||||
|
break
|
||||||
|
elif test -e "${x}/${PCRE_CONFIG}"; then
|
||||||
|
pcre_path="${x}"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
pcre_path=""
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if test -n "$pcre_path"; then
|
||||||
break
|
break
|
||||||
else
|
|
||||||
pcre_path=""
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if test -n "$pcre_path"; then
|
fi
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if test -n "${pcre_path}"; then
|
if test -n "${pcre_path}"; then
|
||||||
if test "${pcre_path}" != "no"; then
|
if test "${pcre_path}" != "no"; then
|
||||||
|
@ -78,6 +78,29 @@ else
|
|||||||
# fi
|
# fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# FIX: if the include directory in CFLAGS ends with "include/yajl",
|
||||||
|
# remove the suffix "/yajl". the library header files are included
|
||||||
|
# using the prefix (for example, #include <yajl/yajl_tree.h>), and
|
||||||
|
# this is even the case for the library itself (for example,
|
||||||
|
# yajl_tree.h includes yajl/yajl_common.h).
|
||||||
|
|
||||||
|
new_cflags=""
|
||||||
|
|
||||||
|
for flag in $YAJL_CFLAGS; do
|
||||||
|
case "$flag" in
|
||||||
|
-I*/include/yajl)
|
||||||
|
new_flag="${flag%/yajl}"
|
||||||
|
new_cflags="$new_cflags $new_flag"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
new_cflags="$new_cflags $flag"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
YAJL_CFLAGS="$new_cflags"
|
||||||
|
|
||||||
|
|
||||||
if test -z "${YAJL_LDADD}"; then
|
if test -z "${YAJL_LDADD}"; then
|
||||||
if test -z "${YAJL_MANDATORY}"; then
|
if test -z "${YAJL_MANDATORY}"; then
|
||||||
if test -z "${YAJL_DISABLED}"; then
|
if test -z "${YAJL_DISABLED}"; then
|
||||||
|
@ -164,8 +164,8 @@ AC_CHECK_HEADERS([iostream])
|
|||||||
AC_CHECK_HEADERS([sys/utsname.h])
|
AC_CHECK_HEADERS([sys/utsname.h])
|
||||||
|
|
||||||
|
|
||||||
# ??
|
# Initialize libtool
|
||||||
LT_INIT([dlopen])
|
LT_INIT
|
||||||
|
|
||||||
# Identify platform
|
# Identify platform
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user