changeset 15125:901e19816fac

timegm: Move AC_LIBOBJ invocations to module description. * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM invocations from here... * modules/timegm (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 15:06:04 +0200
parents f4866d768f30
children a54e54654635
files ChangeLog m4/timegm.m4 modules/timegm
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	timegm: Move AC_LIBOBJ invocations to module description.
+	* m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
+	invocations from here...
+	* modules/timegm (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	tcgetsid: Move AC_LIBOBJ invocations to module description.
--- a/m4/timegm.m4
+++ b/m4/timegm.m4
@@ -1,4 +1,4 @@
-# timegm.m4 serial 10
+# timegm.m4 serial 11
 dnl Copyright (C) 2003, 2007, 2009-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,
@@ -18,10 +18,6 @@
   else
     HAVE_TIMEGM=0
   fi
-  if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
-    AC_LIBOBJ([timegm])
-    gl_PREREQ_TIMEGM
-  fi
 ])
 
 # Prerequisites of lib/timegm.c.
--- a/modules/timegm
+++ b/modules/timegm
@@ -13,6 +13,10 @@
 
 configure.ac:
 gl_FUNC_TIMEGM
+if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
+  AC_LIBOBJ([timegm])
+  gl_PREREQ_TIMEGM
+fi
 gl_TIME_MODULE_INDICATOR([timegm])
 
 Makefile.am: