From c3259803fe255fb55f2cfcdf4cf5bd94ae3befdd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 29 Apr 2023 18:30:47 -0700 Subject: =?UTF-8?q?build:=20support=20explicit=20=E2=80=98PCRE=5FCFLAGS=3D?= =?UTF-8?q?=20PCRE=5FLIBS=3D=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * m4/pcre.m4 (gl_FUNC_PCRE): Check whether PCRE_CFLAGS and PCRE_LIBS are set, not whether they are set to a nonempty value. --- m4/pcre.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/pcre.m4 b/m4/pcre.m4 index f4c71c73..40007822 100644 --- a/m4/pcre.m4 +++ b/m4/pcre.m4 @@ -22,7 +22,7 @@ AC_DEFUN([gl_FUNC_PCRE], if test $test_pcre != no; then - if test -z "$PCRE_CFLAGS" && test -z "$PCRE_LIBS"; then + if test -z "${PCRE_CFLAGS+set}" && test -z "${PCRE_LIBS+set}"; then PKG_CHECK_MODULES([PCRE], [libpcre2-8], [], [: ${PCRE_LIBS=-lpcre2-8}]) fi -- cgit v1.2.1