autoconf
[Top][All Lists]
Advanced

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

Re: regression in autoconf 2.65 ?


From: Vincent Torri
Subject: Re: regression in autoconf 2.65 ?
Date: Sun, 29 Nov 2009 11:17:54 +0100 (CET)


Hey,

According to Vincent Torri on 11/28/2009 2:22 AM:
AC_DEFUN([ECORE_CHECK_MODULE],
[
m4_pushdef([UP], m4_toupper([[$1]]))dnl
m4_pushdef([DOWN], m4_tolower([[$1]]))dnl

Lose the extra quotes.  Per the NEWS, m4_toupper and m4_tolower now
properly quote their expansion.  So you need:

m4_pushdef([UP], m4_toupper([$1]))dnl
m4_pushdef([DOWN], m4_tolower([$1]))dnl

and everything else should fall into place.  For example,

it seems to work with autoconf 2.64 and 2.65.


have_ecore_[]m4_defn([DOWN])=no

i don't understand what i have to change here.

with the extra quotes, this line was producing
have_ecore_foo[foo]=no
instead of the intended
have_ecore_foo=no

Sorry that this is a backwards-incompatible change, but we did document
it, and it makes m4_toupper more consistent with other m4sugar text
manipulation macros, in that it does not spuriously cause macro expansion
of the resulting text if the case-change happens to name an existing macro.

well, m4 quoting is still like voodoo magic for me. I guess i have to carefully read the doc...

In order to write a configure.ac script that will work with both 2.64 and
younger, and with 2.65, you will need a wrapper function.  Here's one way
to write it:

m4_pushdef([AAA],[BBB])dnl
m4_if(m4_toupper([aaa]),[BBB],
 [m4_define([my_toupper],[m4_toupper([[$1]])])],
 [m4_copy([m4_toupper], [my_toupper])])
m4_popdef([AAA])

I really use AAA, BBB and aaa ? (that sounds like a really stupid question) or should I replace them by something ?

Vincent Torri




reply via email to

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