diff options
author | David Terei <davidterei@gmail.com> | 2013-02-14 15:58:58 +0100 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2013-02-14 16:01:28 +0100 |
commit | c043732145c274476f904d9b4387740b2a47b401 (patch) | |
tree | f1482e7d649791f9f392b75f28a6f2e28aaefad9 /aclocal.m4 | |
parent | 99af12a7c7126540e6e1887af41ff50040dcf033 (diff) | |
download | haskell-c043732145c274476f904d9b4387740b2a47b401.tar.gz |
Fix issues with finding llvm tools again (#7661).
Patch modified from one by Karel Gardas <karel.gardas@centrum.cz>.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 942d6bbab6..f09adb7ef6 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1981,9 +1981,9 @@ AC_DEFUN([XCODE_VERSION],[ # AC_DEFUN([FIND_LLVM_PROG],[ FP_ARG_WITH_PATH_GNU_PROG_OPTIONAL([$1], [$2], [$3]) - if test "$1" == ""; then + if test "$$1" == ""; then GOOD_PATH=`echo $PATH | tr ':,;' ' '` - $1=`${FindCmd} ${GOOD_PATH} -type f -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1` + $1=`${FindCmd} ${GOOD_PATH} -type f -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' -or -type l -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1` fi ]) |