From 4a3bd4a068d9bda0c1ee1cb186d1d042b14fe167 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Fri, 27 Mar 2026 18:04:40 +0300 Subject: [PATCH] Correct PCRE_CHECK --- .github/workflows/c-cpp.yml | 5 ++++- Makefile.FreeBSD | 2 +- Makefile.Linux | 2 +- Makefile.openwrt-mips | 2 +- Makefile.unix | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 78253bf..d378450 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -28,7 +28,10 @@ jobs: run: ln -s Makefile.Linux Makefile - name: Linux libraries if: ${{ startsWith(matrix.target, 'ubuntu') }} - run: sudo apt install libssl-dev libpam-dev + run: sudo apt install libssl-dev libpam-dev libpcre libpcre-dev + - name: Mac libraries + if: ${{ startsWith(matrix.target, 'macos') }} + run: brew install pcre - name: ln Mac if: ${{ startsWith(matrix.target, 'macos') }} run: ln -s Makefile.FreeBSD Makefile diff --git a/Makefile.FreeBSD b/Makefile.FreeBSD index 50453f9..e42714a 100644 --- a/Makefile.FreeBSD +++ b/Makefile.FreeBSD @@ -40,7 +40,7 @@ ifeq ($(PAM_CHECK), true) PLUGINS += PamAuth endif PCRE_CHECK = $(shell echo "\#include \\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false) -ifeq ($(OPENSSL_CHECK), true) +ifeq ($(PCRE_CHECK), true) PLUGINS += PCREPlugin endif diff --git a/Makefile.Linux b/Makefile.Linux index e3daa23..d831f6a 100644 --- a/Makefile.Linux +++ b/Makefile.Linux @@ -42,7 +42,7 @@ ifeq ($(OPENSSL_CHECK), true) PLUGINS += SSLPlugin endif PCRE_CHECK = $(shell echo "#include \\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false) -ifeq ($(OPENSSL_CHECK), true) +ifeq ($(PCRE_CHECK), true) PLUGINS += PCREPlugin endif PAM_CHECK = $(shell echo "#include \\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pam -o testpam - 2>/dev/null && rm testpam && echo true||echo false) diff --git a/Makefile.openwrt-mips b/Makefile.openwrt-mips index 48d3cb9..3d79f4b 100644 --- a/Makefile.openwrt-mips +++ b/Makefile.openwrt-mips @@ -42,7 +42,7 @@ ifeq ($(OPENSSL_CHECK), true) PLUGINS += SSLPlugin endif PCRE_CHECK = $(shell echo "#include \\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false) -ifeq ($(OPENSSL_CHECK), true) +ifeq ($(PCRE_CHECK), true) PLUGINS += PCREPlugin endif PAM_CHECK = $(shell echo "#include \\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pam -o testpam - 2>/dev/null && rm testpam && echo true||echo false) diff --git a/Makefile.unix b/Makefile.unix index bbb93ea..ef4d671 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -44,7 +44,7 @@ ifeq ($(PAM_CHECK), true) PLUGINS += PamAuth endif PCRE_CHECK = $(shell echo "\#include \\n int main(){return 0;}" | cc -x c $(CFLAGS) $(LDFLAGS) -l pcre -o testpcre - 2>/dev/null && rm testpcre && echo true||echo false) -ifeq ($(OPENSSL_CHECK), true) +ifeq ($(PCRE_CHECK), true) PLUGINS += PCREPlugin endif include Makefile.inc