[gnome-common] Define GNOME_COMMON_INIT with AU_DEFUN



commit f96a12fc3ead855c129d7ab35737a8b0deceeae5
Author: Christian Persch <chpe gnome org>
Date:   Sun May 30 22:41:02 2010 +0200

    Define GNOME_COMMON_INIT with AU_DEFUN
    
    ... to mark it as deprecated.
    
    Bug #608285.

 macros2/gnome-common.m4 |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/macros2/gnome-common.m4 b/macros2/gnome-common.m4
index 252e861..f5c60e0 100644
--- a/macros2/gnome-common.m4
+++ b/macros2/gnome-common.m4
@@ -1,11 +1,11 @@
 # gnome-common.m4
 #
-# serial 2
+# serial 3
 # 
 
 dnl GNOME_COMMON_INIT
 
-AC_DEFUN([GNOME_COMMON_INIT],
+AU_DEFUN([GNOME_COMMON_INIT],
 [
   dnl this macro should come after AC_CONFIG_MACRO_DIR
   AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
@@ -18,7 +18,10 @@ AC_DEFUN([GNOME_COMMON_INIT],
   fi
 
   AC_SUBST([ACLOCAL_AMFLAGS])
-])
+],
+[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
+in your top-level Makefile.am, instead, where "m4" is the macro directory set
+with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
 AC_DEFUN([GNOME_DEBUG_CHECK],
 [



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]