This one-line patch ensures that if a feature is deemed required,
its test is not emitted in the suggested tests.  It is not 
perfect, but it works for the case at hand which is right now
the most complex use of the _AS_DETECT_BETTER_SHELL machinery.

A more complete fix would require more m4fu and time that I
have, sorry. :-(

2008-09-18  Paolo Bonzini  <[EMAIL PROTECTED]>

        * lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED): Provide
        _AS_DETECT_SUGGESTED_provide($1).
---
 lib/m4sugar/m4sh.m4 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index 7ebb1a3..0a87a97 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -210,6 +210,7 @@ _ASEOF
 m4_define([_AS_DETECT_REQUIRED_BODY], [:])
 m4_defun([_AS_DETECT_REQUIRED],
 [m4_require([_AS_DETECT_BETTER_SHELL])dnl
+m4_provide([_AS_DETECT_SUGGESTED_provide($1)])dnl
 m4_expand_once([m4_append([_AS_DETECT_REQUIRED_BODY], [
 ($1) || AS_EXIT(1)
 ])], [_AS_DETECT_REQUIRED_provide($1)])])
-- 
1.5.5



Reply via email to