From e4754c863a68a1258aaaab99aef5634f68da7498 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Mon, 18 Feb 2019 11:28:09 +0100 Subject: [PATCH] Update snprintf.m4, add _HW_FUNC_XPRINTF_REPLACE - Add _HW_FUNC_XPRINTF_REPLACE again to snprintf.m4, in a modified way. Use AC_LIBOBJ([rrd_snprintf]) instead of original AC_LIBOBJ([snprintf]) - Fixes the following configure messages under MinGW-w64: ./configure: line 14694: _HW_FUNC_XPRINTF_REPLACE: command not found ./configure: line 14752: _HW_FUNC_XPRINTF_REPLACE: command not found --- m4/snprintf.m4 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 index 328cb52d..0591202d 100644 --- a/m4/snprintf.m4 +++ b/m4/snprintf.m4 @@ -215,4 +215,17 @@ AC_DEFUN([HW_FUNC_ASPRINTF], _HW_FUNC_XPRINTF_REPLACE]) ])# HW_FUNC_ASPRINTF +# _HW_FUNC_XPRINTF_REPLACE +# ------------------------ +# Arrange for building rrd_snprintf.c. Must be called if one or more of the +# functions provided by rrd_snprintf.c are needed. +AC_DEFUN([_HW_FUNC_XPRINTF_REPLACE], +[ + AS_IF([test "x$_hw_cv_func_xprintf_replace_done" != xyes], + [AC_C_CONST + HW_HEADER_STDARG_H + AC_LIBOBJ([rrd_snprintf]) + _hw_cv_func_xprintf_replace_done=yes]) +])# _HW_FUNC_XPRINTF_REPLACE + dnl vim: set joinspaces textwidth=80: -- 2.47.2