blob: 68d09c385b4ad8e89a4b35bd0b1e2a7c91f5d463 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 98082f81da1b49876081ff1ab340e952755f985a Mon Sep 17 00:00:00 2001
2From: OBATA Akio <obache@users.noreply.github.com>
3Date: Fri, 11 May 2018 18:36:26 +0900
4Subject: [PATCH] configure.ac: fix condition for suppliment snprintf
5 implementation
6
7$sasl_cv_snprintf means requremnt of suppliment snprintf
8implementation, not existence of system snprintf implementation,
9
10Upstream-Status: Submitted [https://github.com/cyrusimap/cyrus-sasl/pull/512]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index ac59f14..9804e98 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -1264,7 +1264,7 @@ SNPRINTFOBJS=""
21 LTSNPRINTFOBJS=""
22 AC_CHECK_FUNC(snprintf, [AC_DEFINE(HAVE_SNPRINTF,[],[Does the system have snprintf()?])], [sasl_cv_snprintf=yes])
23 AC_CHECK_FUNC(vsnprintf, [AC_DEFINE(HAVE_VSNPRINTF,[],[Does the system have vsnprintf()?])], [sasl_cv_snprintf=yes])
24-if test $sasl_cv_snprintf = no; then
25+if test $sasl_cv_snprintf = yes; then
26 AC_LIBOBJ(snprintf)
27 SNPRINTFOBJS="snprintf.o"
28 LTSNPRINTFOBJS="snprintf.lo"