getpagesize: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 11:10:22 +0000 (13:10 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:07 +0000 (00:06 +0200)
* m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
from here...
* modules/getpagesize (configure.ac): ... to here.

ChangeLog
m4/getpagesize.m4
modules/getpagesize

index b1c66fd..3291e64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
+       getpagesize: Move AC_LIBOBJ invocations to module description.
+       * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
+       from here...
+       * modules/getpagesize (configure.ac): ... to here.
+
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
        getopt: Move AC_LIBOBJ invocations to module description.
        * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
        (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
index 79dfbbe..f7ac1ef 100644 (file)
@@ -1,4 +1,4 @@
-# getpagesize.m4 serial 8
+# getpagesize.m4 serial 9
 dnl Copyright (C) 2002, 2004-2005, 2007, 2009-2011 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -24,7 +24,6 @@ AC_DEFUN([gl_FUNC_GETPAGESIZE],
   case "$host_os" in
     mingw*)
       REPLACE_GETPAGESIZE=1
-      AC_LIBOBJ([getpagesize])
       ;;
   esac
   dnl Also check whether it's declared.
index 6ad1620..015fbe6 100644 (file)
@@ -10,6 +10,9 @@ unistd
 
 configure.ac:
 gl_FUNC_GETPAGESIZE
+if test $REPLACE_GETPAGESIZE = 1; then
+  AC_LIBOBJ([getpagesize])
+fi
 gl_UNISTD_MODULE_INDICATOR([getpagesize])
 
 Makefile.am: