From: Bruno Haible Date: Sun, 22 May 2011 13:07:41 +0000 (+0200) Subject: time_r: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64e13d308b5004abd50ea7fc8c5a3066976f8afd;p=pspp time_r: Move AC_LIBOBJ invocations to module description. * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R invocations from here... * modules/time_r (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 43ee29ebb5..dbc4f57899 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + time_r: Move AC_LIBOBJ invocations to module description. + * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R + invocations from here... + * modules/time_r (configure.ac): ... to here. + 2011-05-22 Bruno Haible timegm: Move AC_LIBOBJ invocations to module description. diff --git a/m4/time_r.m4 b/m4/time_r.m4 index 9bb28005fc..d646edc2d3 100644 --- a/m4/time_r.m4 +++ b/m4/time_r.m4 @@ -50,10 +50,6 @@ AC_DEFUN([gl_TIME_R], else HAVE_LOCALTIME_R=0 fi - if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then - AC_LIBOBJ([time_r]) - gl_PREREQ_TIME_R - fi ]) # Prerequisites of lib/time_r.c. diff --git a/modules/time_r b/modules/time_r index c7874a91dc..c235e08bb2 100644 --- a/modules/time_r +++ b/modules/time_r @@ -11,6 +11,10 @@ time configure.ac: gl_TIME_R +if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then + AC_LIBOBJ([time_r]) + gl_PREREQ_TIME_R +fi gl_TIME_MODULE_INDICATOR([time_r]) Makefile.am: