changeset 15127:dc03b3279cc1

times: Move AC_LIBOBJ invocations to module description. * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here... * modules/times (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 15:09:59 +0200
parents a54e54654635
children c7623a5ec63d
files ChangeLog m4/times.m4 modules/times
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	times: Move AC_LIBOBJ invocations to module description.
+	* m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
+	* modules/times (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	time_r: Move AC_LIBOBJ invocations to module description.
--- a/m4/times.m4
+++ b/m4/times.m4
@@ -1,4 +1,4 @@
-# times.m4 serial 1
+# times.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@
   AC_CHECK_FUNCS_ONCE([times])
   if test $ac_cv_func_times = no; then
     HAVE_TIMES=0
-    AC_LIBOBJ([times])
   fi
 ])
--- a/modules/times
+++ b/modules/times
@@ -10,6 +10,9 @@
 
 configure.ac:
 gl_FUNC_TIMES
+if test $HAVE_TIMES = 0; then
+  AC_LIBOBJ([times])
+fi
 gl_SYS_TIMES_MODULE_INDICATOR([times])
 
 Makefile.am: