Automake/Autoconf versions

Brad Hards bhards at bigpond.net.au
Sun Jan 11 01:18:57 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 11 Jan 2004 12:08 pm, Thiago Macieira wrote:
> Brad Hards wrote:
> >#if !defined(HAVE_INITGROUPS_PROTO)
> >#ifdef __cplusplus
> >extern "C" {
> >#endif
> >int initgroups(const char *, gid_t);
> >#ifdef __cplusplus
> >}
> >#endif
> >#endif
>
> Unless I'm mistaken, those are KDE-specific tests and they've been
> corrected for HEAD admin. It's just an #include that was missing
> (probably sys/types.h) so that gid_t is defined.
I think you are mistaken :-)

I am running CVS HEAD (as of last night), and the problem is that the code 
shouldn't be compiled (since I have a working initgroups() prototype). You've 
chopped out the bit which #define's HAVE_INITGROUPS_PROTO 1, after the test 
has already been run.

So in 2.52 it looks like:
<extract>
/* Define if you have the `initgroups' function. */
#define HAVE_INITGROUPS 1


#if !defined(HAVE_INITGROUPS_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
int initgroups(const char *, gid_t);
#ifdef __cplusplus
}
#endif
#endif


/* Define if you have the initgroups prototype */
#define HAVE_INITGROUPS_PROTO 1
</extract>

but in 2.57 it looks like:
<extract>
/* Define to 1 if you have the `initgroups' function. */
#define HAVE_INITGROUPS 1

/* Define if you have the initgroups prototype */
#define HAVE_INITGROUPS_PROTO 1
</extract>
...with some additional stuff in here...

<extract>
#if !defined(HAVE_INITGROUPS_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
int initgroups(const char *, gid_t);
#ifdef __cplusplus
}
#endif
#endif
</extract>

Remember - the same CVS checkout fails with autoconf 2.52 and works with 
autoconf 2.57.

Brad
- -- 
http://linux.conf.au - I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAAKSCGwwszQ/PZzgRAvSWAJ923kTLpGOs4X/dg3ZlGF9GFicmLQCfbT7k
gXeCHG/Hq71ofUmEk3GO+Oc=
=ZJUQ
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list