From: Eric Blake Date: Thu, 9 Oct 2014 22:31:46 +0000 (+0900) Subject: autopoint: Fix infinite recursion when tracing configure.ac X-Git-Tag: v0.19.3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d75090f27cf150267bd59a9e1be42ec51bfb7b0e;p=thirdparty%2Fgettext.git autopoint: Fix infinite recursion when tracing configure.ac Reported by Andreas Henriksson at: * autopoint.in (func_trace_autoconf): Temporarily redefine built-in macros, instead of undefining. * gettextize.in: Likewise. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 7f33358e3..4e8b34555 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,12 @@ +2014-10-10 Eric Blake + + autopoint: Fix infinite recursion when tracing configure.ac + Reported by Andreas Henriksson at: + + * autopoint.in (func_trace_autoconf): Temporarily redefine + built-in macros, instead of undefining. + * gettextize.in: Likewise. + 2014-09-01 Daiki Ueno * convert-archive.in: Don't use non-portable 'if ! COMMAND'. diff --git a/gettext-tools/misc/autopoint.in b/gettext-tools/misc/autopoint.in index c31943fa6..87ee374d5 100644 --- a/gettext-tools/misc/autopoint.in +++ b/gettext-tools/misc/autopoint.in @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2002-2013 Free Software Foundation, Inc. +# Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -143,14 +143,14 @@ fi func_trace_autoconf () { echo '\ -dnl disable macros which may abort autom4te -m4_undefine([m4_assert]) -m4_undefine([m4_fatal]) -m4_undefine([m4_warn]) -m4_undefine([m4_errprintn]) -m4_undefine([m4_exit]) -m4_undefine([m4_include]) -m4_undefine([m4_esyscmd]) +dnl replace macros which may abort autom4te with a no-op variant +m4_pushdef([m4_assert]) +m4_pushdef([m4_fatal]) +m4_pushdef([m4_warn]) +m4_pushdef([m4_errprintn]) +m4_pushdef([m4_exit]) +m4_pushdef([m4_include]) +m4_pushdef([m4_esyscmd]) ' \ | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \ --trace="$1":\$% - "$2" 2>/dev/null diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in index dbe4d1eca..33299b975 100644 --- a/gettext-tools/misc/gettextize.in +++ b/gettext-tools/misc/gettextize.in @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 1995-1998, 2000-2013 Free Software Foundation, Inc. +# Copyright (C) 1995-1998, 2000-2014 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -143,14 +143,14 @@ fi func_trace_autoconf () { echo '\ -dnl disable macros which may abort autom4te -m4_undefine([m4_assert]) -m4_undefine([m4_fatal]) -m4_undefine([m4_warn]) -m4_undefine([m4_errprintn]) -m4_undefine([m4_exit]) -m4_undefine([m4_include]) -m4_undefine([m4_esyscmd]) +dnl replace macros which may abort autom4te with a no-op variant +m4_pushdef([m4_assert]) +m4_pushdef([m4_fatal]) +m4_pushdef([m4_warn]) +m4_pushdef([m4_errprintn]) +m4_pushdef([m4_exit]) +m4_pushdef([m4_include]) +m4_pushdef([m4_esyscmd]) ' \ | "$AUTOM4TE" --no-cache --language=Autoconf-without-aclocal-m4 \ --trace="$1":\$% - "$2" 2>/dev/null