From: Bruno Haible Date: Thu, 20 Jan 2011 09:31:24 +0000 (+0100) Subject: Allow the user to avoid the GNULIB_TEST_* macros. X-Git-Tag: v0.1~3332 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=ff4bb04bec0c8d7834bfb0590d6de08fa0ceefd0;hp=9063c7931ab1d25649a9c70cd8f45be92c58de93;p=gnulib.git Allow the user to avoid the GNULIB_TEST_* macros. * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro. Suggested by Paul Eggert. --- diff --git a/ChangeLog b/ChangeLog index 85e510e97..3ca0e4491 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-01-20 Bruno Haible + + 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 bootstrap: avoid failure when there is no .gitmodules file diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 1a1794ce9..c4f41f180 100644 --- 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 @@ 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 exists. # Set HAVE_FEATURES_H. AC_DEFUN([gl_FEATURES_H],