diff options
author | PHO <pho@cielonegro.org> | 2022-02-08 16:24:30 +0900 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-02-09 03:57:37 -0500 |
commit | 62fa126d0f04c507e622c1f0356f26c9692e2b8e (patch) | |
tree | d9b5116e625d9c23fd02c151f9b98e7414ffca15 | |
parent | a172be07e3dce758a2325104a3a37fc8b1d20c9c (diff) | |
download | haskell-62fa126d0f04c507e622c1f0356f26c9692e2b8e.tar.gz |
Fix a portability issue in m4/find_llvm_prog.m4
`test A == B' is a Bash extension, which doesn't work on platforms where
/bin/sh is not Bash.
-rw-r--r-- | m4/find_llvm_prog.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/find_llvm_prog.m4 b/m4/find_llvm_prog.m4 index dc620ae470..ea2031a9f6 100644 --- a/m4/find_llvm_prog.m4 +++ b/m4/find_llvm_prog.m4 @@ -15,7 +15,7 @@ AC_DEFUN([FIND_LLVM_PROG],[ AC_CHECK_TOOLS([$1], [$PROG_VERSION_CANDIDATES $2], []) AS_IF([test x"$$1" != x],[ PROG_VERSION=`$$1 --version | awk '/.*version [[0-9\.]]+/{for(i=1;i<=NF;i++){ if(\$i ~ /^[[0-9\.]]+$/){print \$i}}}'` - AS_IF([test x"$PROG_VERSION" == x], + AS_IF([test x"$PROG_VERSION" = x], [AC_MSG_RESULT(no) $1="" AC_MSG_NOTICE([We only support llvm $3 to $4 (no version found).])], |