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:
authorMichael Veksler <Mihails.Vekslers@zabbix.com>2020-09-11 09:59:04 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2020-09-18 11:38:36 +0300
commite74a0f0cd1537b7d32a5736b578f20fd3590267a (patch)
tree88c3fb924ccdb1b78e5366f1886b4dd96875c994 /m4
parentbeafc6814983b79be04af59e8af3ef1d76cce0ba (diff)
...G...... [ZBXNEXT-6093] libmodbus.m4 move awk macro
Diffstat (limited to 'm4')
-rw-r--r--m4/libmodbus.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/libmodbus.m4 b/m4/libmodbus.m4
index 0be473ebc09..23364721e3e 100644
--- a/m4/libmodbus.m4
+++ b/m4/libmodbus.m4
@@ -48,6 +48,8 @@ found_libmodbus="31",)
AC_DEFUN([LIBMODBUS_ACCEPT_VERSION],
[
+ AC_PROG_AWK
+
_lib_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'"
_lib_version=`echo ifelse([$1],,[0],[$1]) | $_lib_version_parse`
_lib_wanted=`echo ifelse([$2],,[0],[$2]) | $_lib_version_parse`
@@ -88,7 +90,6 @@ AC_HELP_STRING([--with-libmodbus@<:@=DIR@:>@],[use MODBUS package @<:@default=no
)
if test "x$want_libmodbus" = "xyes"; then
- AC_PROG_AWK
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
PKG_PROG_PKG_CONFIG()
test -z "$PKG_CONFIG" && AC_MSG_ERROR([Not found pkg-config library])