Based on a patch by Ryuta Suzuki! llvm-svn: 116695
The previous method used the DESTDIR environment variable at configure time, but sometimes it is only available at install time. See PR8397. llvm-svn: 116689