Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJurijs Klopovskis <jurijs.klopovskis@zabbix.com>2022-06-08 17:02:12 +0300
committerJurijs Klopovskis <jurijs.klopovskis@zabbix.com>2022-06-08 17:02:12 +0300
commitb5711b04fbcee8827282634b407c80d4bf629b44 (patch)
treec44acddc230f05d28377faca99763f660d3c14a9 /m4
parent0f65791df350f44d09e716619402748e52ad2ffa (diff)
....I..... [ZBX-21064] checking that libpcre(2)_dir is set with compiler that does not support static libs
Diffstat (limited to 'm4')
-rw-r--r--m4/pcre.m43
-rw-r--r--m4/pcre2.m43
2 files changed, 6 insertions, 0 deletions
diff --git a/m4/pcre.m4 b/m4/pcre.m4
index 7e925f6bf14..89533fbf135 100644
--- a/m4/pcre.m4
+++ b/m4/pcre.m4
@@ -144,6 +144,9 @@ AC_HELP_STRING([--with-libpcre@<:@=DIR@:>@], [use libpcre from given base instal
LIBPCRE_CFLAGS=`$PKG_CONFIG --cflags libpcre`
if test "x$enable_static_libs" = "xyes" && test "x$static_linking_support" = "xno"; then
+ if test -z "$libpcre_dir"; then
+ AC_MSG_ERROR([libpcre directory must be given explicitly if static libs are used])
+ fi
LIBPCRE_LIBS="$libpcre_dir/lib/libpcre.a"
else
LIBPCRE_LDFLAGS=`$PKG_CONFIG --libs-only-L libpcre`
diff --git a/m4/pcre2.m4 b/m4/pcre2.m4
index a6a7dd1e33f..0568c564f74 100644
--- a/m4/pcre2.m4
+++ b/m4/pcre2.m4
@@ -144,6 +144,9 @@ AC_HELP_STRING([--with-libpcre2@<:@=DIR@:>@], [use libpcre2 from given base inst
LIBPCRE2_CFLAGS=`$PKG_CONFIG --cflags libpcre2-8`
if test "x$enable_static_libs" = "xyes" && test "x$static_linking_support" = "xno"; then
+ if test -z "$libpcre2_dir"; then
+ AC_MSG_ERROR([libpcre2 directory must be given explicitly if static libs are used])
+ fi
LIBPCRE2_LIBS="$libpcre2_dir/lib/libpcre2-8.a"
else
LIBPCRE2_LDFLAGS=`$PKG_CONFIG --libs-only-L libpcre2-8`