autoconf-patches
[Top][All Lists]
Advanced

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

Re: Make AC_INCLUDES_DEFAULT expand its argument (shell functions 5/n)


From: Paolo Bonzini
Subject: Re: Make AC_INCLUDES_DEFAULT expand its argument (shell functions 5/n)
Date: Mon, 5 May 2003 14:10:25 +0200
User-agent: Mutt/1.4i

> These are no-no :(

I somehow suspected it :-)  Any suggestions?

> | The need for this arises from this idiom in the shell functions patch,
> | needed to pass to the shell function the INCLUDES argument:
> | "AC_INCLUDES_DEFAULT([AS_ESCAPE([$4], ["])])"
> 
> I'm not sure shell functions are the right track for this purpose.
> Everything was designed to precisely avoid dynamic changes here,
> that's precisely why you meet these problems.

Somehow you do need that m4_quote however... maybe something like

m4_bmatch(m4_quote([$1
], [^\n+$], [$1
], [AC_REQUIRE(_AC_INCLUDES_DEFAULT_REQUIREMENTS)$ac_includes_default])

would be better?

Paolo




reply via email to

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