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: Harlan Stenn
Subject: Re: AC_PATH_PROG: Using a variable for prog-to-check-for
Date: Sat, 13 Sep 2008 03:23:41 +0000

I wrote:
> So what's the secret to using a (shell) variable for the 2nd arg in
> AC_PATH_PROG?  I want the user to be able to override the default name,
> as it may be suffixed by -32 or -64...
> 
> I've tried using:
> 
>  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).
> 
> I'll keep digging, and if anybody has a suggestion I'd love to hear it.

Looks like:

 PATH_NET_SNMP_CONFIG=whatever
 AC_PATH_PROG([PATH_NET_SNMP_CONFIG], [$[]PATH_NET_SNMP_CONFIG])

is the ticket.

H




reply via email to

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