vlc/vlc-2.0 | branch: master | Rafaël Carré <[email protected]> | Mon Nov 28 
21:59:12 2011 -0500| [0a1ecaa736217750d6f15b008befef62ce294294] | committer: 
Rafaël Carré

(v)asprintf: define HAVE_(V)ASPRINTF if found
(cherry picked from commit e982db92e1cf61970d7057c7f651c6f07d17d2b2)

Signed-off-by: Rafaël Carré <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=0a1ecaa736217750d6f15b008befef62ce294294
---

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index c40f46c..4690563 100644
--- a/configure.ac
+++ b/configure.ac
@@ -527,14 +527,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 <stdio.h>], [
         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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to