bug-automake
[Top][All Lists]
Advanced

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

bug#7990: Quoting problem with AM_COND_IF


From: Eric Blake
Subject: bug#7990: Quoting problem with AM_COND_IF
Date: Sat, 05 Feb 2011 13:49:09 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

On 02/05/2011 12:26 PM, Dennis Schridde wrote:
> AM_CONDITIONAL([CONDITION],[test -x /tmp])
> AS_IF([test -x /bin],
>     AM_COND_IF([CONDITION],,
>         AC_MSG_ERROR([comma separated, message])
>     )
> )

The quoting problem is with you, not with AM_COND_IF.  This should be
written:

AS_IF([test -x /bin],
      [AM_COND_IF([CONDITION],,
           [AC_MSG_ERROR([comma separated, message])
      ])
])

Remember the quoting rule of thumb - every argument to a macro should be
inside a single layer of quotes unless you really want the macro
expanded first (which is rare)

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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