Testing some more.
[oota-llvm.git] / autoconf / configure.ac
index 35cbc882263754f1a8dbf802ad3931269b0c66b6..9541b8a46c39e9c4b3b7cff6ecf80e7a1e6ce18c 100644 (file)
@@ -1011,6 +1011,13 @@ fi
 
 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
@@ -1372,7 +1379,7 @@ AC_COMPILE_IFELSE(
     [[#include <mach-o/getsect.h>
       int main() {
         unsigned long p;
-        return (int)getsect("__DATA","ยด__pass_info", &p);
+        return (int)getsect("__DATA","__pass_info", &p);
       }
     ]]),
   AC_MSG_RESULT(yes)