_Exit: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Fri, 6 May 2011 10:58:23 +0000 (12:58 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:05:56 +0000 (00:05 +0200)
* m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
invocations from here...
* modules/_Exit (configure.ac): ... to here.

ChangeLog
m4/_Exit.m4
modules/_Exit

index af32cd3..efd0b79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-06  Bruno Haible  <bruno@clisp.org>
+
+       _Exit: Move AC_LIBOBJ invocations to module description.
+       * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
+       invocations from here...
+       * modules/_Exit (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        euidaccess: Respect rules for use of AC_LIBOBJ.
index 329b8cd..dec5c6d 100644 (file)
@@ -1,4 +1,4 @@
-# _Exit.m4 serial 1
+# _Exit.m4 serial 2
 dnl Copyright (C) 2010-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,
@@ -10,8 +10,6 @@ AC_DEFUN([gl_FUNC__EXIT],
   AC_CHECK_FUNCS([_Exit])
   if test $ac_cv_func__Exit = no; then
     HAVE__EXIT=0
-    AC_LIBOBJ([_Exit])
-    gl_PREREQ__EXIT
   fi
 ])
 
index 2b5cc08..179a02b 100644 (file)
@@ -10,6 +10,10 @@ stdlib
 
 configure.ac:
 gl_FUNC__EXIT
+if test $HAVE__EXIT = 0; then
+  AC_LIBOBJ([_Exit])
+  gl_PREREQ__EXIT
+fi
 gl_STDLIB_MODULE_INDICATOR([_Exit])
 
 Makefile.am: