Commit e982db92 authored by Rafaël Carré's avatar Rafaël Carré

(v)asprintf: define HAVE_(V)ASPRINTF if found

parent 718b1f99
...@@ -491,14 +491,14 @@ AC_LINK_IFELSE([ ...@@ -491,14 +491,14 @@ AC_LINK_IFELSE([
char *c; char *c;
if (asprintf(&c, "%s %d", "string", 1) == -1) if (asprintf(&c, "%s %d", "string", 1) == -1)
c = NULL; 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_LINK_IFELSE([
AC_LANG_PROGRAM([#include <stdio.h>], [ AC_LANG_PROGRAM([#include <stdio.h>], [
char *c; char *c;
va_list ap; va_list ap;
if (vasprintf(&c, "%s %d", ap) == -1) if (vasprintf(&c, "%s %d", ap) == -1)
c = NULL; 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() # Windows CE does not have strcoll()
AC_FUNC_STRCOLL AC_FUNC_STRCOLL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment