annotate m4/getdomainname.m4 @ 10661:65c9436dc0d3

Move the getdomainname() declaration to <unistd.h>.
author Bruno Haible <bruno@clisp.org>
date Sun, 19 Oct 2008 03:36:00 +0200
parents 87c42e194f4a
children f6cba5a556ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10661
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
1 # getdomainname.m4 serial 3
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
2 dnl Copyright (C) 2002-2003, 2008 Free Software Foundation, Inc.
5611
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4730
diff changeset
3 dnl This file is free software; the Free Software Foundation
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4730
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
87c42e194f4a Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4730
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4730
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_GETDOMAINNAME],
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
10661
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
9 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
10
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
11 dnl Persuade glibc <unistd.h> to declare getdomainname().
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
12 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
13
4730
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 AC_REPLACE_FUNCS(getdomainname)
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 if test $ac_cv_func_getdomainname = no; then
10661
65c9436dc0d3 Move the getdomainname() declaration to <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 5611
diff changeset
16 HAVE_GETDOMAINNAME=0
4730
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 gl_PREREQ_GETDOMAINNAME
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 fi
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 ])
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 # Prerequisites of lib/getdomainname.c.
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 AC_DEFUN([gl_PREREQ_GETDOMAINNAME], [
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 :
64e0a1bfa9bb New module 'getdomainname'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 ])