* m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
gl_PREREQ_FTRUNCATE invocations from here...
* modules/ftruncate (configure.ac): ... to here.
+2011-05-07 Bruno Haible <bruno@clisp.org>
+
+ ftruncate: Move AC_LIBOBJ invocations to module description.
+ * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
+ gl_PREREQ_FTRUNCATE invocations from here...
+ * modules/ftruncate (configure.ac): ... to here.
+
2011-05-07 Bruno Haible <bruno@clisp.org>
fsync: Move AC_LIBOBJ invocations to module description.
-# serial 15
+# serial 16
# See if we need to emulate a missing ftruncate function using fcntl or chsize.
AC_CHECK_FUNCS_ONCE([ftruncate])
if test $ac_cv_func_ftruncate = no; then
HAVE_FTRUNCATE=0
- AC_LIBOBJ([ftruncate])
- gl_PREREQ_FTRUNCATE
case "$host_os" in
mingw*)
# Yes, we know mingw lacks ftruncate.
configure.ac:
gl_FUNC_FTRUNCATE
+if test $HAVE_FTRUNCATE = 0; then
+ AC_LIBOBJ([ftruncate])
+ gl_PREREQ_FTRUNCATE
+fi
gl_UNISTD_MODULE_INDICATOR([ftruncate])
Makefile.am: