From c66eaea3fd358e16fcddbe53e89872c7822e7a4a Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Mon, 5 Mar 2007 23:34:36 +0000
Subject: [PATCH] Add info about NetBSD 4, which has now borrowed the printf
 implementation from FreeBSD.

---
 ChangeLog    | 2 +-
 m4/printf.m4 | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 45a18d9597..9a54c392e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2007-03-05  Bruno Haible  <bruno@clisp.org>
 
 	* m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
-	from Ralf Wildenhues.
+	NetBSD 4, from Ralf Wildenhues.
 
 2007-03-04  Bruno Haible  <bruno@clisp.org>
 
diff --git a/m4/printf.m4 b/m4/printf.m4
index 30f75c115c..c61f4a82a5 100644
--- a/m4/printf.m4
+++ b/m4/printf.m4
@@ -152,6 +152,9 @@ changequote(,)dnl
                                dnl Guess yes on FreeBSD >= 5.
          freebsd[1-4]*)        gl_cv_func_printf_directive_a="guessing no";;
          freebsd* | kfreebsd*) gl_cv_func_printf_directive_a="guessing yes";;
+                               dnl Guess yes on NetBSD >= 4.
+         netbsd[1-3]*)         gl_cv_func_printf_directive_a="guessing no";;
+         netbsd*)              gl_cv_func_printf_directive_a="guessing yes";;
                                dnl If we don't know, assume the worst.
          *)                    gl_cv_func_printf_directive_a="guessing no";;
        esac
@@ -220,7 +223,7 @@ int main ()
       [
 changequote(,)dnl
        case "$host_os" in
-         netbsd*)      gl_cv_func_printf_positions="guessing no";;
+         netbsd[1-3]*) gl_cv_func_printf_positions="guessing no";;
          beos*)        gl_cv_func_printf_positions="guessing no";;
          mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
          *)            gl_cv_func_printf_positions="guessing yes";;
@@ -292,7 +295,7 @@ changequote(,)dnl
          osf*)                 gl_cv_func_snprintf_truncation_c99="guessing yes";;
                                dnl Guess yes on NetBSD >= 3.
          netbsd[1-2]*)         gl_cv_func_snprintf_truncation_c99="guessing no";;
-         netbsd*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
+         netbsd*           )   gl_cv_func_snprintf_truncation_c99="guessing yes";;
                                dnl Guess yes on BeOS.
          beos*)                gl_cv_func_snprintf_truncation_c99="guessing yes";;
                                dnl If we don't know, assume the worst.
@@ -396,6 +399,7 @@ dnl   HP-UX 10.20, 11.00, 11.11, 11.23     #  #  .  .  .  .  #
 dnl   IRIX 6.5                             #  #  .  .  .  .  #
 dnl   OSF/1 5.1                            #  #  .  .  .  .  #
 dnl   OSF/1 4.0d                           #  #  .  .  #  #  #
+dnl   NetBSD 4.0                           .  .  .  .  .  .  .
 dnl   NetBSD 3.0                           .  #  .  #  .  .  .
 dnl   BeOS                                 #  #  .  #  .  .  .
 dnl   mingw                                #  #  .  #  .  #  #
-- 
2.30.2