summaryrefslogtreecommitdiff
path: root/m4/vasnprintf.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-26 02:15:46 +0000
committerBruno Haible <bruno@clisp.org>2007-03-26 02:15:46 +0000
commit5b57d6d54bcc8b9339b6216e0d62e750ab6e2ef3 (patch)
tree771cc9b3f940ab01a7a283ea17c06af4ebeb4692 /m4/vasnprintf.m4
parentc2a27af8e00b5f7d0b6fcdea066daecae3d50d30 (diff)
downloadgnulib-5b57d6d54bcc8b9339b6216e0d62e750ab6e2ef3.tar.gz
Prefer nl_langinfo over localeconv.
Diffstat (limited to 'm4/vasnprintf.m4')
-rw-r--r--m4/vasnprintf.m414
1 files changed, 13 insertions, 1 deletions
diff --git a/m4/vasnprintf.m4 b/m4/vasnprintf.m4
index 5aa05bc61c..a225c1c478 100644
--- a/m4/vasnprintf.m4
+++ b/m4/vasnprintf.m4
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 9
+# vasnprintf.m4 serial 10
dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -62,6 +62,18 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF],
AC_CHECK_FUNCS(snprintf wcslen)
])
+# Extra prerequisites of lib/vasnprintf.c for supporting the 'a' directive.
+AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A],
+[
+ AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
+ if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then
+ AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
+ [Define if the vasnprintf implementation needs special code for
+ the 'a' and 'A' directives.])
+ AC_CHECK_FUNCS([nl_langinfo])
+ fi
+])
+
# Prerequisites of lib/asnprintf.c.
AC_DEFUN([gl_PREREQ_ASNPRINTF],
[