Patch for res_init() check in acinclude.m4.in

Albert Chin-A-Young china at thewrittenword.com
Mon Apr 7 19:13:47 BST 2003


On Mon, Apr 07, 2003 at 10:20:15AM +0200, Michael Matz wrote:
> Hi,
> 
> On Fri, 4 Apr 2003, Marcus Camen wrote:
> 
> > -    [ AC_MSG_RESULT(no) ]
> > -  )
> > +    [res_init()],
> 
> This must be a complete C-statement, i.e. including the final ';'.  Given
> that it is missing here, I suppose this never was correctly tested, so I'm
> not yet applying it yet.  But if you fix, I might ;-)

Really? From acinclude.m4:
AC_DEFUN(AC_CHECK_SETENV,
[
        KDE_CHECK_FUNC_EXT(setenv, [
#include <stdlib.h>
], 
                [setenv("VAR", "VALUE", 1);],
                [int setenv (const char *, const char *, int)],
                [SETENV])
])

The ';' is added automatically by autoconf.

-- 
albert chin (china at thewrittenword.com)




More information about the kde-core-devel mailing list