view modules/getdomainname @ 15042:8e387f7f0bf9

memrchr: Move AC_LIBOBJ invocations to module description. * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from here... * modules/memrchr (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 15:25:34 +0200
parents e04076de7206
children
line wrap: on
line source

Description:
getdomainname() function: Return machine's NIS domain name.

Files:
lib/getdomainname.c
m4/getdomainname.m4

Depends-on:
unistd
extensions
netdb           [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
sys_socket      [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]

configure.ac:
gl_FUNC_GETDOMAINNAME
if test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1; then
  AC_LIBOBJ([getdomainname])
  gl_PREREQ_GETDOMAINNAME
fi
gl_UNISTD_MODULE_INDICATOR([getdomainname])

Makefile.am:

Include:
<unistd.h>

License:
GPL

Maintainer:
all