autoconf-patches
[Top][All Lists]
Advanced

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

Re: AS_ESCAPE cleanups


From: Ralf Wildenhues
Subject: Re: AS_ESCAPE cleanups
Date: Thu, 13 Nov 2008 21:08:19 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Eric,

* Eric Blake wrote on Thu, Nov 13, 2008 at 08:30:59PM CET:
> 
> Also, since AS_ESCAPE is (so far) undocumented, we might 
> be able to get away with such a semantics change, [...]

FYI, and FWIW, it has been around for a long time, and it is used a bit
outside of Autoconf:
<http://www.google.com/codesearch?as_q=AS_ESCAPE\W&as_lang=autoconf&as_case=y>

PACKAGE_CONFIG="AS_ESCAPE(AC_PACKAGE_STRING)$PACKAGE_APPEND"
        AC_SUBST([PACKAGE_CONFIG])

       [CS_EMIT_BUILD_PROPERTY([COMPILER.CFLAGS],
                [AS_ESCAPE([$(EMBED_META.CFLAGS)])], [+])
            CS_EMIT_BUILD_PROPERTY([COMPILER.LFLAGS],
                [AS_ESCAPE([$(EMBED_META.LFLAGS)])], [+])])


<http://www.google.com/codesearch?as_q=AS_ESCAPE\W&as_lang=m4&as_case=y>

Most of the m4 links are from older Automake:

AC_DEFUN([_AM_STAMP],
[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
                               [:.*])))/stamp-h[]_AM_STAMP_Count])


                   AC_CONFIG_HEADERS(_AM_File,
dnl COMMANDS, [, INIT-CMDS]
[# update the timestamp
echo timestamp 
>"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index["
][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS
                   m4_popdef([_AM_Dest])])],dnl


But there are some others as well:

  cs_dir=`AS_DIRNAME([$2])`
          AS_ESCAPE(AS_MKDIR_P([$cs_dir]), [$`\])])])


Cheers,
Ralf




reply via email to

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