]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Quote traced macros passed from autom4te to M4.
authorPeter Breitenlohner <peb@mppmu.mpg.de>
Tue, 27 Jan 2009 13:48:04 +0000 (14:48 +0100)
committerEric Blake <ebb9@byu.net>
Tue, 27 Jan 2009 16:28:27 +0000 (09:28 -0700)
* bin/autom4te (handle_m4): Apply shell_quote to macro names.
* tests/tools.at (autom4te --trace and unusual macro names): New
test.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
THANKS
bin/autom4te.in
tests/tools.at

index e7d833fc40d651fb96f1bb25d134146a374f335e..4fdcce6c3e0d3a18c7c0e6a33b8e1c07f5adf613 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-27  Peter Breitenlohner  <peb@mppmu.mpg.de>  (tiny change)
+
+       Quote traced macros passed from autom4te to M4.
+       * bin/autom4te (handle_m4): Apply shell_quote to macro names.
+       * tests/tools.at (autom4te --trace and unusual macro names): New
+       test.
+       * THANKS: Update.
+
 2009-01-26  Eric Blake  <ebb9@byu.net>
 
        Improve AC_DEFUN_ONCE semantics.
diff --git a/THANKS b/THANKS
index a3ae8c27fb0eaf3e1fc5de0179ba16c820865230..54310b5f32597ef4bd9416dc1fe174f6bd9799b3 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -278,6 +278,7 @@ Paul Pogonyshev             ?
 Paul Townsend               ?
 Pavel Roskin                pavel_roskin@geocities.com
 Per Ã˜yvind Karlsen          peroyvind@mandriva.org
+Peter Breitenlohner         peb@mppmu.mpg.de
 Peter Eisentraut            peter_e@gmx.net
 Peter Hendrickson           pdh@wiredyne.com
 Peter O'Gorman              peter@pogma.com
@@ -376,8 +377,8 @@ mode: text
 coding: utf-8
 End:
 
-Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-Free Software Foundation, Inc.
+Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+2008, 2009 Free Software Foundation, Inc.
 
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.2 or
index 50c410cdcf26637ecc751360ca514df5b693b820..4281e03015879353fbb6b148821fc1123286e062 100644 (file)
@@ -6,8 +6,8 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
     if 0;
 
 # autom4te - Wrapper around M4 libraries.
-# Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008 Free Software
-# Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009 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
@@ -466,7 +466,7 @@ sub handle_m4 ($@)
           . ' --debug=aflq'
           . (!exists $ENV{'AUTOM4TE_NO_FATAL'} ? ' --fatal-warning' : '')
           . " @M4_DEBUGFILE@=" . shell_quote ("$tcache" . $req->id . "t")
-          . join (' --trace=',   '', sort @macro)
+          . join (' --trace=', '', map { shell_quote ($_) } sort @macro)
           . " " . files_to_options (@ARGV)
           . " > " . shell_quote ("$ocache" . $req->id . "t"));
 
index 3fa0fdb8a1590cbbfbc95c42fbee8b9a982d1f33..9282e88f9ec729dc1b98b8e991ce9c9fcb3b92bf 100644 (file)
@@ -2,8 +2,8 @@
 
 AT_BANNER([Executables (autoheader, autoupdate...).])
 
-# Copyright (C) 2000, 2001, 2003, 2004, 2006, 2007, 2008 Free Software
-# Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003, 2004, 2006, 2007, 2008, 2009 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
@@ -213,6 +213,19 @@ done
 AT_CLEANUP
 
 
+# autom4te --trace and unusual macro names
+# ----------------------------------------
+
+AT_SETUP([autom4te --trace and unusual macro names])
+
+AT_DATA([file.m4],
+[[
+]])
+AT_CHECK_AUTOM4TE([-t 'TR A CE' -t 'TR(A)CE' file.m4])
+
+AT_CLEANUP
+
+
 ## ------------------ ##
 ## autoconf --trace.  ##
 ## ------------------ ##