Subject: Re: [pkgsrc bootstrap] nbcompat' configure should not find a certain mad library function
To: Andreas Hallmann <hallmann@ahatec.de>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 06/24/2005 10:44:09
On Thu, Jun 23, 2005 at 05:24:14PM +0200, Andreas Hallmann wrote:
> Hi all,
>
> trying pkgsrc for nextstep I have the following problem:
>
> Nextstep has many mad library functions.
>
> I.e.:
>
> extern int strcoll(char *to, size_t maxsize, const char *from);
>
> So nbcompat's config find it, but need a two parameter version.
>
> Is there a standard way to predefine strcoll as absent (even so this mad
> version is there) ?
libnbcompat's autoconf doesn't test for strcoll() at all, it is
always assumed to be the 2-argument version.
a test should be added to check that what is available is the
2-argument version, and if not, build it into libnbcompat. NetBSD's
strcoll() is simply a wrapper around strcmp(), fwiw. that is probably
OK if a suitable strcoll() isn't available.
grant.