+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.
-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/' \
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`
/* 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
# include <config.h>
#endif
-#if !HAVE_VASPRINTF
+#if !(HAVE_VASPRINTF && HAVE_POSIX_PRINTF)
#define STATIC static
/* 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
# include <config.h>
#endif
-#if HAVE_VASPRINTF
+#if HAVE_VASPRINTF && HAVE_POSIX_PRINTF
/* Get asprintf(), vasprintf() declarations. */
#include <stdio.h>