bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'uname'


From: Bruno Haible
Subject: Re: new module 'uname'
Date: Fri, 7 Aug 2009 08:32:48 +0200
User-agent: KMail/1.9.9

Sam Steingold asked:
> Bruno Haible wrote:
> > configure.ac:
> > gl_FUNC_UNAME
> > gl_SYS_UTSNAME_MODULE_INDICATOR([uname])
> 
> just curious, since I will be using uname for clisp/syscalls:
> what is gl_SYS_UTSNAME_MODULE_INDICATOR?
> why does it take an argument?

gl_SYS_UTSNAME_MODULE_INDICATOR is a macro defined in m4/sys_utsname_h.m4.
It ensures that the AC_SUBSTed variable GNULIB_UNAME has the value 1
when it gets substituted into lib/sys_utsname.in.h.

For header files such as unistd.h or stdio.h, often the header file is
used but a particular function-providing module is not. For 'uname' it's
a bit pointless because no one needs <sys/utsname.h> if he does not want
to use uname(). But I decided to stick with the same idiom for consistency.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]