]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Align to gnulib.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Nov 2007 00:19:48 +0000 (00:19 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:15:33 +0000 (12:15 +0200)
gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/configure.ac

index 7b4b6abae6da853d9a472a6378efe907f69dd8be..13be3f94eecd21b1380d392b9d01825e9c84f5db 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-10  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Do _snprintf check like gnulib's vasnprintf.m4 does.
+
 2007-11-10  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac: Invoke AC_TYPE_LONG_LONG_INT instead of
index aba61d2c4addef8fdfb7cf41ab4ce48055088bfc..77028379ad814f9c260541ff64ecbdd22dc85217 100644 (file)
@@ -78,7 +78,9 @@ AC_EGREP_CPP([Need own alloca], [
 AC_SUBST([ALLOCA_H])
 
 AC_CHECK_FUNCS([snprintf vasprintf wcslen])
-AC_CHECK_DECLS([_snprintf])
+dnl Use the _snprintf function only if it is declared (because on NetBSD it
+dnl is defined as a weak alias of snprintf; we prefer to use the latter).
+AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>])
 gt_PRINTF_POSIX
 gl_EOVERFLOW