7 Commits

Author SHA1 Message Date
Zurab Kvachadze
9e230d4a81
build/*.m4: Remove Bashisms/POSIX-ify the M4 helper macros
This commit makes it possible to build ModSecurity on systems where
/bin/sh is a POSIX-compliant shell that is not Bash. Debian, Alpine
Linux, and Gentoo Linux with the system shell set to not Bash, are
examples of such systems.

Previously, the helper macros contained two types of Bashisms:

    * The '==' comparison operator. Very easy to change, as the proper
      POSIX-compliant form is '='. For example:

          if test "${var}" == "myvalue" -> if test "${var}" = "myvalue"

    * The '-a' (and) operator in the 'test' builtin. The '-a' and '-o'
      operators were removed in POSIX 2024 (Issue 8). The correct form
      is to use the '&&' and '||' operators respectively. For instance:

          if test -d "${var}" -a -r "${var}/file" ->
              if test -d "${var}" && test -r "${var}/file"

Bug: https://bugs.gentoo.org/887135
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
2025-04-15 19:24:58 +02:00
Hugh McMaster
f05f322302 Use AS_HELP_STRING instead of the obsolete AC_HELP_STRING macro
AC_HELP_STRING has been obsolete since at least Autoconf 2.53,
which was released in 2003.
2022-10-16 18:16:01 +11:00
Felipe Zimmerle
a589f6b693 Build: using PKG-CONFIG in a new fashion
Trying to avoid bulid errors if pkg-config is available.
2021-05-24 10:33:11 -03:00
Felipe Zimmerle
6143eb99e3
Removes LMDB from the default configuration options 2017-05-10 12:50:38 -03:00
Felipe Zimmerle
5febc7b26d Looking for lmdb in the right location under MacOS 2016-07-28 17:40:41 -03:00
Felipe Zimmerle
8a135cff9a
Extends the possible names for liblmdb0 2016-07-14 00:19:47 -03:00
Felipe Zimmerle
4c8aa54099
build: Adds missing lmdb.m4 2016-07-11 13:59:37 -03:00