Copy the INSTALL hack from mk/config.mk.in into distrib/Makefile-bin-vars.in
authorIan Lynagh <igloo@earth.li>
Sat, 24 Nov 2007 16:30:28 +0000 (16:30 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 24 Nov 2007 16:30:28 +0000 (16:30 +0000)
configure will set INSTALL to ./install-sh if it can't find it in the path,
so we need to replace the . with the path to our root.

distrib/Makefile-bin-vars.in

index 511f237..18a73e7 100644 (file)
@@ -37,6 +37,13 @@ CP          = cp
 LN_S        = @LN_S@
 CHMOD       = chmod
 INSTALL            = @INSTALL@
+#
+# Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
+# install-sh script (if chosen). This not terribly useful to us, so we convert
+# it into an abs. path.
+# 
+INSTALL                        := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
+
 exeext      = @exeext@
 SED            = @SedCmd@
 DEFAULT_TMPDIR = /tmp