Subject: Re: how can a package detect it is getting built with pkgsrc?
To: Joerg Sonnenberger <joerg@britannica.bec.de>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-pkg
Date: 04/12/2007 22:15:22
On 12/04/2007, at 21:00, Joerg Sonnenberger wrote:

> On Thu, Apr 12, 2007 at 08:57:44PM +0200, Klaus Heinz wrote:
>> Basically, I want to treat "pkgsrc" as a platform, like RedHat,  
>> Gentoo,
>> Debian, for which the software already provides startup scripts.
>
> That's fine. But I don't think it should be detected via a magic
> environment variable, but requested explicitly. Something like
> "--with-rc-style=pkgsrc". This is useful for other platforms where  
> more
> than one solution exists and e.g. on Linux it might indead be a better
> choice to still keep the sysv init scripts.

Nitpick: Strictly speaking, and as far as I recall from the  
AC_ARG_WITH macro definition, this specific case is not suitable for  
a --with argument: these are provided to indicate dependencies on  
external software (see the info manual).  AC_ARG_VAR may be better,  
and is what I've used in other situations (see, e.g. monotone's  
BOOST_SUFFIX configure variable).

Cheers,

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>