* m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
(gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
here...
* modules/stat (configure.ac): ... to here.
+2011-05-21 Bruno Haible <bruno@clisp.org>
+
+ stat: Move AC_LIBOBJ invocations to module description.
+ * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
+ (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
+ here...
+ * modules/stat (configure.ac): ... to here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
sleep: Move AC_LIBOBJ invocations to module description.
-# serial 7
+# serial 8
# Copyright (C) 2009-2011 Free Software Foundation, Inc.
#
AC_DEFINE([REPLACE_FUNC_STAT_FILE], [1], [Define to 1 if stat needs
help when passed a file name with a trailing slash]);;
esac
- if test $REPLACE_STAT = 1; then
- AC_LIBOBJ([stat])
- dnl Prerequisites of lib/stat.c.
- AC_REQUIRE([AC_C_INLINE])
- fi
+])
+
+# Prerequisites of lib/stat.c.
+AC_DEFUN([gl_PREREQ_STAT],
+[
+ AC_REQUIRE([AC_C_INLINE])
+ :
])
configure.ac:
gl_FUNC_STAT
+if test $REPLACE_STAT = 1; then
+ AC_LIBOBJ([stat])
+ gl_PREREQ_STAT
+fi
gl_SYS_STAT_MODULE_INDICATOR([stat])
Makefile.am: