install-reloc: Support multi-binary installation.
[gnulib.git] / modules / link
index 6a006c3..5ea0ac2 100644 (file)
@@ -6,13 +6,16 @@ lib/link.c
 m4/link.m4
 
 Depends-on:
-stat
-strdup-posix
-sys_stat
 unistd
+stat            [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
+strdup-posix    [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
+sys_stat        [test $HAVE_LINK = 0 || test $REPLACE_LINK = 1]
 
 configure.ac:
 gl_FUNC_LINK
+if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
+  AC_LIBOBJ([link])
+fi
 gl_UNISTD_MODULE_INDICATOR([link])
 
 Makefile.am: