From 984e414921a4e22c44d877d3f10fd55ae942397b Mon Sep 17 00:00:00 2001
From: Eric Blake <ebb9@byu.net>
Date: Mon, 26 Jan 2009 09:24:23 -0700
Subject: [PATCH] Silence warning reintroduced by recent extensions patch.

* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
(gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
autoconf.

Signed-off-by: Eric Blake <ebb9@byu.net>
---
 ChangeLog        | 5 +++++
 m4/extensions.m4 | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a8f6e1d485..bd387c99da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-26  Eric Blake  <ebb9@byu.net>
 
+	Silence warning reintroduced by recent extensions patch.
+	* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
+	(gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
+	autoconf.
+
 	Backport improved autoconf semantics of AC_DEFUN_ONCE.
 	* m4/00gnulib.m4: New file.
 	* gnulib-tool (func_get_filelist): Always use it.
diff --git a/m4/extensions.m4 b/m4/extensions.m4
index b7ee9ef130..ba6d5e190f 100644
--- a/m4/extensions.m4
+++ b/m4/extensions.m4
@@ -1,4 +1,4 @@
-# serial 7  -*- Autoconf -*-
+# serial 8  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
 # Copyright (C) 2003, 2006-2009 Free Software Foundation, Inc.
@@ -20,7 +20,7 @@
 # AC_DEFINE.  The goal here is to define all known feature-enabling
 # macros, then, if reports of conflicts are made, disable macros that
 # cause problems on some platforms (such as __EXTENSIONS__).
-AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
+AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS],
 [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
 AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 
@@ -90,7 +90,7 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 # ------------------------
 # Enable extensions on systems that normally disable them,
 # typically due to standards-conformance issues.
-AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS],
+AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS],
 [
   dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS.
   dnl gnulib does not need it. But if it gets required by third-party macros
-- 
2.30.2