[llvm-commits] [llvm] r109163 - /llvm/trunk/autoconf/configure.ac

Eric Christopher echristo at apple.com
Thu Jul 22 14:13:40 PDT 2010


Author: echristo
Date: Thu Jul 22 16:13:40 2010
New Revision: 109163

URL: http://llvm.org/viewvc/llvm-project?rev=109163&view=rev
Log:
Try to work around the relative install-sh path problem.

Patch from Eli.

Modified:
    llvm/trunk/autoconf/configure.ac

Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=109163&r1=109162&r2=109163&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Thu Jul 22 16:13:40 2010
@@ -1011,6 +1011,13 @@
 
 dnl Find the install program
 AC_PROG_INSTALL
+dnl Prepend src dir to install path dir if it's a relative path
+dnl This is a hack for installs that take place in something other
+dnl than the top level.
+case "$INSTALL" in
+ [[\\/$]]* | ?:[[\\/]]* ) ;;
+ *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
+esac
 
 dnl Checks for documentation and testing tools that we can do without. If these
 dnl are not found then they are set to "true" which always succeeds but does





More information about the llvm-commits mailing list