autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.67-53-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.67-53-gcd12a7f
Date: Wed, 08 Sep 2010 17:15:02 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=cd12a7faeaac12c8f55f1a48e56436146be9e3ce

The branch, master has been updated
       via  cd12a7faeaac12c8f55f1a48e56436146be9e3ce (commit)
      from  e10883c0df120d6faf7436fd088930f549b8a963 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cd12a7faeaac12c8f55f1a48e56436146be9e3ce
Author: Eric Blake <address@hidden>
Date:   Wed Sep 8 10:31:50 2010 -0600

    m4sh: preserve set -vx over re-exec
    
    See http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00035.html
    for the motivation for this patch.
    
    * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Trace through
    re-exec, to make it easier to debug script startup issues.
    Idea from recent bug-gnulib change to init.sh.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    5 +++++
 lib/m4sugar/m4sh.m4 |    9 ++++++++-
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5edb50c..0277419 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-09-08  Eric Blake  <address@hidden>
 
+       m4sh: preserve set -vx over re-exec
+       * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Trace through
+       re-exec, to make it easier to debug script startup issues.
+       Idea from recent bug-gnulib change to init.sh.
+
        docs: update alloca recommendations
        * doc/autoconf.texi (Particular Functions): Don't redeclare alloca
        on FreeBSD.
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index ef99cb5..ca22161 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -227,11 +227,18 @@ dnl Remove any tests from suggested that are also required
        [# We cannot yet assume a decent shell, so we have to provide a
        # neutralization value for shells without unset; and this also
        # works around shells that cannot unset nonexistent variables.
+       # Preserve -v and -x to the replacement shell.
        BASH_ENV=/dev/null
        ENV=/dev/null
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        export CONFIG_SHELL
-       exec "$CONFIG_SHELL" "$as_myself" ${1+"address@hidden"}])
+       case $- in @%:@ ((((
+         *v*x* | *x*v* ) as_opts=-vx ;;
+         *v* ) as_opts=-v ;;
+         *x* ) as_opts=-x ;;
+         * ) as_opts= ;;
+       esac
+       exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"address@hidden"}])
 
 dnl Unfortunately, $as_me isn't available here.
     AS_IF([test x$as_have_required = xno],


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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