]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use our own vasprintf() if the system has a deficient one.
authorBruno Haible <bruno@clisp.org>
Fri, 20 Jun 2003 12:58:13 +0000 (12:58 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:43 +0000 (12:10 +0200)
gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/Makefile.am
gettext-runtime/libasprintf/configure.ac
gettext-runtime/libasprintf/lib-asprintf.c
gettext-runtime/libasprintf/lib-asprintf.h

index 657e60222512018c1bd6d01b37cf4b579da3182e..e2e0943e81904bba25e4037ed4c69fc01a60af45 100644 (file)
@@ -1,3 +1,11 @@
+2003-06-20  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Invoke gt_PRINTF_POSIX.
+       * lib-asprintf.h: Ignore an existing vasprintf() if it doesn't support
+       POSIX/XSI format strings.
+       * lib-asprintf.c: Likewise.
+       * Makefile.am (config.h_vms): Define HAVE_POSIX_PRINTF.
+
 2003-06-19  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac (jm_AC_TYPE_LONG_LONG): Replaces gt_TYPE_LONGLONG.
index f2cf86bfc045449cd9acffe33c788dab6b6126ca..16817693de910a3ff627588cf27825d45e01015b 100644 (file)
@@ -189,6 +189,7 @@ config.h_vms: config.h.in
             -e 's/#undef HAVE_LONG_DOUBLE$$/#define HAVE_LONG_DOUBLE 1/' \
             -e 's/#undef HAVE_LONG_LONG$$/#define HAVE_LONG_LONG 1/' \
             -e 's/#undef HAVE_MEMORY_H$$/#define HAVE_MEMORY_H 1/' \
+            -e 's/#undef HAVE_POSIX_PRINTF$$/#define HAVE_POSIX_PRINTF 1/' \
             -e 's/#undef HAVE_PTRDIFF_T$$/#define HAVE_PTRDIFF_T 1/' \
             -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
             -e 's/#undef HAVE_STRINGS_H$$/#define HAVE_STRINGS_H 1/' \
index 9d1ed6cac832991300b25e6df09b359e2afd59be..dec12fbad844f5ddad08a033ad83102249b687e0 100644 (file)
@@ -69,6 +69,7 @@ AC_EGREP_CPP([Need own alloca], [
 AC_SUBST([ALLOCA_H])
 
 AC_CHECK_FUNCS([snprintf vasprintf])
+gt_PRINTF_POSIX
 
 dnl Check for tools needed for formatting the documentation.
 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
index b9569933e2d363d3c41a286db23838196b03f170..777405fdb812ba0bd7c5d60b153d4c3e9409b9d5 100644 (file)
@@ -1,5 +1,5 @@
 /* Library functions for class autosprintf.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002.
 
    This program is free software; you can redistribute it and/or modify it
@@ -21,7 +21,7 @@
 # include <config.h>
 #endif
 
-#if !HAVE_VASPRINTF
+#if !(HAVE_VASPRINTF && HAVE_POSIX_PRINTF)
 
 #define STATIC static
 
index 916e33147aa9f56bd4f80e05820893e4b37aec37..a9cb29064b4de7ed79a545488dbaf54af634df6c 100644 (file)
@@ -1,5 +1,5 @@
 /* Library functions for class autosprintf.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2003 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002.
 
    This program is free software; you can redistribute it and/or modify it
@@ -21,7 +21,7 @@
 # include <config.h>
 #endif
 
-#if HAVE_VASPRINTF
+#if HAVE_VASPRINTF && HAVE_POSIX_PRINTF
 
 /* Get asprintf(), vasprintf() declarations.  */
 #include <stdio.h>