Allow the user to avoid the GNULIB_TEST_* macros.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Jan 2011 09:31:24 +0000 (10:31 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 20 Jan 2011 09:31:24 +0000 (10:31 +0100)
* m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
Suggested by Paul Eggert.

ChangeLog
m4/gnulib-common.m4

index 85e510e..3ca0e44 100644 (file)
--- 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
index 1a1794c..c4f41f1 100644 (file)
@@ -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 @@ AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS],
     [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],