changeset 14188:87bb0468d75c

Allow the user to avoid the GNULIB_TEST_* macros. * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro. Suggested by Paul Eggert.
author Bruno Haible <bruno@clisp.org>
date Thu, 20 Jan 2011 10:31:24 +0100
parents 07245aecd139
children 8d4912d04c80
files ChangeLog m4/gnulib-common.m4
diffstat 2 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-20  Bruno Haible  <bruno@clisp.org>
+
+	Allow the user to avoid the GNULIB_TEST_* macros.
+	* m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
+	Suggested by Paul Eggert.
+
 2011-01-14  Jim Meyering  <meyering@redhat.com>
 
 	bootstrap: avoid failure when there is no .gitmodules file
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 21
+# gnulib-common.m4 serial 22
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -102,6 +102,16 @@
     [Define to 1 when the gnulib module $1 should be tested.])
 ])
 
+# gl_ASSERT_NO_GNULIB_TESTS
+# asserts that there will be no gnulib tests in the scope of the configure.ac
+# and thereby enables an optimization of config.h.
+# Used by Emacs.
+AC_DEFUN([gl_ASSERT_NO_GNULIB_TESTS],
+[
+  dnl Override gl_MODULE_INDICATOR_FOR_TESTS.
+  AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], [])
+])
+
 # Test whether <features.h> exists.
 # Set HAVE_FEATURES_H.
 AC_DEFUN([gl_FEATURES_H],