freopen-safer: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / strstr-simple
index 9ebf5dac8941b527235f6e0cf333cd24006efef9..c61afc45adff69a15b4e6916bfb2c26b2e2e52c6 100644 (file)
@@ -8,12 +8,15 @@ m4/strstr.m4
 
 Depends-on:
 string
-stdbool
-memchr
-memcmp
+stdbool         [test $REPLACE_STRSTR = 1]
+memchr          [test $REPLACE_STRSTR = 1]
+memcmp          [test $REPLACE_STRSTR = 1]
 
 configure.ac:
 gl_FUNC_STRSTR_SIMPLE
+if test $REPLACE_STRSTR = 1; then
+  AC_LIBOBJ([strstr])
+fi
 gl_STRING_MODULE_INDICATOR([strstr])
 
 Makefile.am: