freopen-safer: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / sleep
index e859e59e524e33210cf0119cc19e58c1f6b054d2..f48927e577d7b107d20bc3c60c19f7b06c134300 100644 (file)
@@ -6,12 +6,15 @@ lib/sleep.c
 m4/sleep.m4
 
 Depends-on:
-stdint
 unistd
-verify
+stdint          [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1]
+verify          [test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1]
 
 configure.ac:
 gl_FUNC_SLEEP
+if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
+  AC_LIBOBJ([sleep])
+fi
 gl_UNISTD_MODULE_INDICATOR([sleep])
 
 Makefile.am: