autoconf
[Top][All Lists]
Advanced

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

Re: AC_PATH_PROG: Using a variable for prog-to-check-for


From: Ralf Wildenhues
Subject: Re: AC_PATH_PROG: Using a variable for prog-to-check-for
Date: Sat, 13 Sep 2008 08:11:56 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hi Harlan,

* Harlan Stenn wrote on Sat, Sep 13, 2008 at 05:23:41AM CEST:
> I wrote:
> > 
> >  PATH_NET_SNMP_CONFIG=whatever
> >  AC_PATH_PROG([PATH_NET_SNMP_CONFIG], [$PATH_NET_SNMP_CONFIG])
> > 
> > and that doesn't work (with autoconf 2.59).

What doesn't work with it?  It seems to work fine in a test here (with
both 2.59 and current).  Maybe there is some other code around it which
causes the problem (e.g., PATH_NET_SNMP_CONFIG is also a m4 defined
name, or these two lines are part of an underquoted expansion)?

> Looks like:
> 
>  PATH_NET_SNMP_CONFIG=whatever
>  AC_PATH_PROG([PATH_NET_SNMP_CONFIG], [$[]PATH_NET_SNMP_CONFIG])
> 
> is the ticket.

FWIW, the only change this quoting gets me is inside of a comment.
Looking at the diff of the configure scripts may hint you at what
is different for you.

Cheers,
Ralf




reply via email to

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