From: Bruno Haible Date: Sun, 22 May 2011 11:42:00 +0000 (+0200) Subject: strptime: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c645b7f5e50ad293bf5908074fcfb638a445119;p=pspp strptime: Move AC_LIBOBJ invocations to module description. * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and gl_PREREQ_STRPTIME invocations from here... * modules/strptime (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 5ab6346b76..f51c13206a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + strptime: Move AC_LIBOBJ invocations to module description. + * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and + gl_PREREQ_STRPTIME invocations from here... + * modules/strptime (configure.ac): ... to here. + 2011-05-22 Bruno Haible strpbrk: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strptime.m4 b/m4/strptime.m4 index d48cacd7e7..6ffefcad55 100644 --- a/m4/strptime.m4 +++ b/m4/strptime.m4 @@ -1,4 +1,4 @@ -# strptime.m4 serial 6 +# strptime.m4 serial 7 dnl Copyright (C) 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, @@ -11,8 +11,6 @@ AC_DEFUN([gl_FUNC_STRPTIME], AC_CHECK_FUNCS_ONCE([strptime]) if test $ac_cv_func_strptime != yes; then HAVE_STRPTIME=0 - AC_LIBOBJ([strptime]) - gl_PREREQ_STRPTIME fi ]) diff --git a/modules/strptime b/modules/strptime index 763dca5031..a69d583db8 100644 --- a/modules/strptime +++ b/modules/strptime @@ -17,6 +17,10 @@ time_r [test $HAVE_STRPTIME = 0] configure.ac: gl_FUNC_STRPTIME +if test $HAVE_STRPTIME = 0; then + AC_LIBOBJ([strptime]) + gl_PREREQ_STRPTIME +fi gl_TIME_MODULE_INDICATOR([strptime]) Makefile.am: