From 33ba3bd8d42b9eba7d9fb077824f9ebaefdbf64e Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 10 Sep 2006 08:57:55 +0300 Subject: [PATCH] Prepend $(top_builddir) to @INSTALL@ if it is relative. Reported to elinks-users on 2006-08-23. [ From commit 57a9871ea1c36f2a378dca139ff4fea8980bb1f6 in ELinks 0.12.GIT. Should fix an error building ELinks in the source directory on SunOS. The error was again reported to elinks-users on 2007-05-10. --KON ] --- Makefile.config.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.config.in b/Makefile.config.in index 21d5ae9c2..17a4e02c8 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -38,7 +38,10 @@ ACLOCAL = @ACLOCAL@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ -INSTALL = @INSTALL@ +# The INSTALL substituted by configure can be either absolute or +# relative to the top build directory. Adjust it so that it can +# be used in build subdirectories. +INSTALL = $(if $(patsubst /%,,$(firstword @INSTALL@)),$(top_builddir)/)@INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) INSTALL_DATA = @INSTALL_DATA@ INSTALL_SCRIPT = @INSTALL_SCRIPT@