From: Bruno Haible Date: Sun, 22 May 2011 13:06:04 +0000 (+0200) Subject: timegm: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2401 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=044bd0be9f515ab03041a6fa37c5b5801e9f735a;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index fb057cf74..43ee29ebb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + 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 + tcgetsid: Move AC_LIBOBJ invocations to module description. * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ and gl_PREREQ_TCGETSID invocations from here... diff --git a/m4/timegm.m4 b/m4/timegm.m4 index f18568c5a..caabc86ad 100644 --- 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 @@ AC_DEFUN([gl_FUNC_TIMEGM], 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. diff --git a/modules/timegm b/modules/timegm index ade34754f..0ec9d65e7 100644 --- a/modules/timegm +++ b/modules/timegm @@ -13,6 +13,10 @@ time_r [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1] 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: