X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Date: Fri, 17 Jun 2005 10:10:43 +0100 From: "Gary V. Vaughan" <[EMAIL PROTECTED]> Organization: FSF User-Agent: Mozilla Thunderbird 1.0 (X11/20050305) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Hans Aberg <[EMAIL PROTECTED]> Cc: [email protected] Subject: Re: M4 version macro X-Virus-Scanned: by amavisd-new at av-in.su.se X-Spam-Status: No, hits=-2.987 tagged_above=-99 required=7 tests=AWL, BAYES_00, RCVD_BY_IP X-Spam-Level:Hallo Hans, Hans Aberg wrote:Does M4 have a macro, expanding to its version number (I suspect not)? This might be useful when using M4 to generate parser/lexer files in Bison/Flex, and stamp them with the M4 version used, so it becomes clearly visible in debug reports.CVS M4 (soon to be m4-2.0) has __m4_version__. Release versions of GNU m4 could use syscmd(`m4 --version') if PATH is set reasonably... Cheers, Gary. -- Gary V. Vaughan ())_. [EMAIL PROTECTED],gnu.org} Research Scientist ( '/ http://tkd.kicks-ass.net GNU Hacker / )= http://www.gnu.org/software/libtool Technical Author `(_~)_ http://sources.redhat.com/autobook
I got the info below, which might be used to stamp parser files with
the M4 version. I gather, if __m4_version__ macro is undefined, one
defines it to syscmd(`m4 --version').
