diff options
Diffstat (limited to 'gl/m4/snprintf.m4')
| -rw-r--r-- | gl/m4/snprintf.m4 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gl/m4/snprintf.m4 b/gl/m4/snprintf.m4 index 522b107b..3698e844 100644 --- a/gl/m4/snprintf.m4 +++ b/gl/m4/snprintf.m4 | |||
| @@ -1,9 +1,13 @@ | |||
| 1 | # snprintf.m4 serial 5 | 1 | # snprintf.m4 serial 6 |
| 2 | dnl Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2004, 2007-2013 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
| 6 | 6 | ||
| 7 | dnl Libintl 0.17 will replace snprintf only if it does not support %1$s, | ||
| 8 | dnl but defers to any gnulib snprintf replacements. Therefore, gnulib | ||
| 9 | dnl must guarantee that the decision for replacing snprintf is a superset | ||
| 10 | dnl of the reasons checked by libintl. | ||
| 7 | AC_DEFUN([gl_FUNC_SNPRINTF], | 11 | AC_DEFUN([gl_FUNC_SNPRINTF], |
| 8 | [ | 12 | [ |
| 9 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | 13 | AC_REQUIRE([gl_STDIO_H_DEFAULTS]) |
| @@ -13,7 +17,17 @@ AC_DEFUN([gl_FUNC_SNPRINTF], | |||
| 13 | gl_SNPRINTF_SIZE1 | 17 | gl_SNPRINTF_SIZE1 |
| 14 | case "$gl_cv_func_snprintf_size1" in | 18 | case "$gl_cv_func_snprintf_size1" in |
| 15 | *yes) | 19 | *yes) |
| 16 | gl_cv_func_snprintf_usable=yes | 20 | gl_SNPRINTF_RETVAL_C99 |
| 21 | case "$gl_cv_func_snprintf_retval_c99" in | ||
| 22 | *yes) | ||
| 23 | gl_PRINTF_POSITIONS | ||
| 24 | case "$gl_cv_func_printf_positions" in | ||
| 25 | *yes) | ||
| 26 | gl_cv_func_snprintf_usable=yes | ||
| 27 | ;; | ||
| 28 | esac | ||
| 29 | ;; | ||
| 30 | esac | ||
| 17 | ;; | 31 | ;; |
| 18 | esac | 32 | esac |
| 19 | fi | 33 | fi |
