Automake/Autoconf versions

Thiago Macieira thiago.macieira at kdemail.net
Sun Jan 11 02:32:38 GMT 2004


Brad Hards wrote:
>/* 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>

Hmm... I see. Seems it's a bug or a misfeature in autoconf/autoheader.

The code in admin/acinclude.m4.in reads:
if test "x$kde_cv_func_$1" = xyes; then
  AC_DEFINE(HAVE_$5, 1, [Define if you have $1])
  $6
fi
if test "x$kde_cv_proto_$1" = xno; then
  AC_DEFINE(HAVE_$5_PROTO, 1,
  [Define if you have the $1 prototype])
fi

AH_VERBATIM([_HAVE_$5_PROTO],
[here writing the prototype]

It would seem then that Autoconf >= 2.57 is required.

Still, I think the attached patch is required, since gid_t has to be 
defined before the function is declared. Any thoughts?

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiagom (AT) mail (dot) com
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: admin-acinclude.diff
Type: text/x-diff
Size: 541 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040111/964cfbf9/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040111/964cfbf9/attachment.sig>


More information about the kde-core-devel mailing list