diff options
Diffstat (limited to 'modules/truncate')
-rw-r--r-- | modules/truncate | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/truncate b/modules/truncate index 82814fe83a..c6a108720b 100644 --- a/modules/truncate +++ b/modules/truncate @@ -16,13 +16,17 @@ ftruncate [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1] configure.ac: gl_FUNC_TRUNCATE -if test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1; then - AC_LIBOBJ([truncate]) +gl_CONDITIONAL([GL_COND_OBJ_TRUNCATE], + [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1]) +AM_COND_IF([GL_COND_OBJ_TRUNCATE], [ gl_PREREQ_TRUNCATE -fi +]) gl_UNISTD_MODULE_INDICATOR([truncate]) Makefile.am: +if GL_COND_OBJ_TRUNCATE +lib_SOURCES += truncate.c +endif Include: <unistd.h> |