[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Quote macro names passed from autom4te to M4
From: |
Peter Breitenlohner |
Subject: |
Quote macro names passed from autom4te to M4 |
Date: |
Tue, 27 Jan 2009 15:10:02 +0100 (CET) |
User-agent: |
Alpine 1.10 (LNX 962 2008-03-14) |
Hi,
I recently tried to define autoconf macros for a new language `Lang' using
[AC_DEFUN([AC_LANG_COMPILER(Lang)], [AC_REQUIRE([AC_PROG_CLANG])])
but as a consequence aclocal failed:
autom4te ... --trace='AC_LANG_COMPILER(Lang)' ...
=> /bin/sh /usr/bin/m4 ... --trace=AC_LANG_COMPILER(Lang) ...
=> /bin/sh failed with: syntax error at `(' or so.
The reason is, that the macro names passed from autom4te to M4 lack proper
shell quoting.
Attached is a small patch (against git as of today) fixing this problem,
together with a test case.
Regards
Peter Breitenlohner <address@hidden>
0001-Quote-traced-macros-passed-from-autom4te-to-M4.patch
Description: Text document
- Quote macro names passed from autom4te to M4,
Peter Breitenlohner <=