regex: also remove dependency on HAVE_WCSCOLL
[gnulib.git] / modules / wcstok
index 6f92b05..f7b1ed6 100644 (file)
@@ -8,11 +8,14 @@ m4/wcstok.m4
 
 Depends-on:
 wchar
-wcsspn
-wcspbrk
+wcsspn          [test $HAVE_WCSTOK = 0]
+wcspbrk         [test $HAVE_WCSTOK = 0]
 
 configure.ac:
 gl_FUNC_WCSTOK
+if test $HAVE_WCSTOK = 0; then
+  AC_LIBOBJ([wcstok])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcstok])
 
 Makefile.am: