install-reloc: Support multi-binary installation.
[gnulib.git] / modules / getsubopt
index 52e5d9e..a544ca3 100644 (file)
@@ -6,11 +6,17 @@ lib/getsubopt.c
 m4/getsubopt.m4
 
 Depends-on:
-strchrnul
 stdlib
+extensions
+strchrnul       [test $HAVE_GETSUBOPT = 0]
+memchr          [test $HAVE_GETSUBOPT = 0]
 
 configure.ac:
 gl_FUNC_GETSUBOPT
+if test $HAVE_GETSUBOPT = 0; then
+  AC_LIBOBJ([getsubopt])
+  gl_PREREQ_GETSUBOPT
+fi
 gl_STDLIB_MODULE_INDICATOR([getsubopt])
 
 Makefile.am: