autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Generic mechanism to detect shell features, take 2


From: Paolo Bonzini
Subject: [PATCH] Generic mechanism to detect shell features, take 2
Date: Tue, 13 Jan 2004 18:10:17 +0100

This addresses the flaws that Eric found.  Apart from logic errors, the main
difference is that the execution of the tests is factored out in _AS_RUN,
which uses eval to test the current shell (as I suggested, Paul confirmed,
and Eric tested).

2003-01-12 Paolo Bonzini <address@hidden>
           Eric Sunshine <address@hidden>
           Paul Eggert <address@hidden>

        * lib/m4sugar/m4sh.m4 (M4SH-SANITIZE): New diversion.
        (AS_INIT): Output shell initialization there. Removed optional
        parameter. Expand _AS_SHELL_FN_SPY.
        (AS_INIT_WITH_SHELL_FN): Removed.
        (_AS_SHELL_FN_SPY): New macro.
        (AS_DETECT_REQUIRED, AS_DETECT_SUGGESTED): New
        macros.
        (AS_SHELL_SANITIZE): Remove loop to find better shell
        and documentation for the parameter.
        (_AS_DETECT_BETTER_SHELL): Move it here.
        (_AS_SHELL_FN_WORK): Remove shell invocation, reformat.
        (_AS_RUN): Move it here, support testing with eval.
        (AS_REQUIRE_SHELL_FN): Require shell functions when
        it is used.
        (_AS_LINENO_WORKS): Put around braces, we do not
        trigger the bash bug anymore.
        * lib/autotest/general.m4: Document M4SH-SANITIZE, do not
        use AS_INIT_WITH_SHELL_FN.


Attachment: autoconf-generic-shell-detection.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]