From: Paul Eggert Date: Mon, 24 Jan 2011 04:41:25 +0000 (-0800) Subject: Allow the user to avoid the GNULIB_TEST_* macros. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b086578bdd013639454393116fe04cad3fa4078f;hp=fe810bf8507a92354b4750e6dd1b3bd974ab7fc5;p=pspp Allow the user to avoid the GNULIB_TEST_* macros. * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro. --- diff --git a/ChangeLog b/ChangeLog index 5e210fde8f..4d00591efa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-23 Paul Eggert + + Allow the user to avoid the GNULIB_TEST_* macros. + * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro. + 2011-01-23 Bruno Haible New module 'vma-iter'. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index c4f41f180b..ecbf33694e 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 22 +# gnulib-common.m4 serial 23 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_POSIXCHECK +# asserts that there will never be a need to #define GNULIB_POSIXCHECK. +# and thereby enables an optimization of configure and config.h. +# Used by Emacs. +AC_DEFUN([gl_ASSERT_NO_GNULIB_POSIXCHECK], +[ + dnl Override gl_WARN_ON_USE_PREPARE. + AC_DEFUN([gl_WARN_ON_USE_PREPARE], []) +]) + # 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.