From e982db92e1cf61970d7057c7f651c6f07d17d2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 28 Nov 2011 21:59:12 -0500 Subject: [PATCH] (v)asprintf: define HAVE_(V)ASPRINTF if found --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a8b9d8b430..a0bfd9f728 100644 --- a/configure.ac +++ b/configure.ac @@ -491,14 +491,14 @@ AC_LINK_IFELSE([ char *c; if (asprintf(&c, "%s %d", "string", 1) == -1) c = NULL; - ])],,[AC_LIBOBJ([asprintf])]) + ])],[AC_DEFINE([HAVE_ASPRINTF],[1],[Define to 1 if you have asprintf function])],[AC_LIBOBJ([asprintf])]) AC_LINK_IFELSE([ AC_LANG_PROGRAM([#include ], [ char *c; va_list ap; if (vasprintf(&c, "%s %d", ap) == -1) c = NULL; - ])],,[AC_LIBOBJ([vasprintf])]) + ])],[AC_DEFINE([HAVE_VASPRINTF],[1],[Define to 1 if you have asprintf function])],[AC_LIBOBJ([vasprintf])]) # Windows CE does not have strcoll() AC_FUNC_STRCOLL -- GitLab