strtoimax: port to HP-UX 11.11
[gnulib.git] / modules / strndup
index 80f143b..4cb5a90 100644 (file)
@@ -6,12 +6,15 @@ lib/strndup.c
 m4/strndup.m4
 
 Depends-on:
-extensions
 string
-strnlen
+extensions
+strnlen         [test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1]
 
 configure.ac:
 gl_FUNC_STRNDUP
+if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
+  AC_LIBOBJ([strndup])
+fi
 gl_STRING_MODULE_INDICATOR([strndup])
 
 Makefile.am: