getdomainname: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 09:41:07 +0000 (11:41 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:04 +0000 (00:06 +0200)
* m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
gl_PREREQ_GETDOMAINNAME invocations from here...
* modules/getdomainname (configure.ac): ... to here.

ChangeLog
m4/getdomainname.m4
modules/getdomainname

index 53ecdedd46caff01ce96112d62a39f4726f46e58..8c14b0ae6c864bd0460f8d7695b9f1005e0cf3af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+       getdomainname: Move AC_LIBOBJ invocations to module description.
+       * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
+       gl_PREREQ_GETDOMAINNAME invocations from here...
+       * modules/getdomainname (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
        getline: Move AC_LIBOBJ invocations to module description.
index db7d480ed17b096235efdec1214ac75d626713b1..9e93fc93cde4fb918d12796910045921beecec56 100644 (file)
@@ -1,4 +1,4 @@
-# getdomainname.m4 serial 6
+# getdomainname.m4 serial 7
 dnl Copyright (C) 2002-2003, 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -82,11 +82,6 @@ AC_DEFUN([gl_FUNC_GETDOMAINNAME],
      || test "$gl_cv_func_getdomainname_in_libnsl" = yes; then
     REPLACE_GETDOMAINNAME=1
   fi
-
-  if test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1; then
-    AC_LIBOBJ([getdomainname])
-    gl_PREREQ_GETDOMAINNAME
-  fi
 ])
 
 # Prerequisites of lib/getdomainname.c.
index c7f77b0ec04c7cc1dd42c853e8c119bab52f8a7e..457de318c302cb42b84cd754f6820ad8c4c20b0d 100644 (file)
@@ -13,6 +13,10 @@ sys_socket      [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAM
 
 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: