[commit: ghc] ghc-7.8: configure.ac: fix test == bashism (0d5e352)

git at git.haskell.org git at git.haskell.org
Wed Nov 26 23:17:04 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/0d5e3521b4135ea06e30b6cc5b819d35cc9cdbaf/ghc

>---------------------------------------------------------------

commit 0d5e3521b4135ea06e30b6cc5b819d35cc9cdbaf
Author: Tuncer Ayaz <tuncer.ayaz at gmail.com>
Date:   Wed Nov 26 16:43:19 2014 +0100

    configure.ac: fix test == bashism
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


>---------------------------------------------------------------

0d5e3521b4135ea06e30b6cc5b819d35cc9cdbaf
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index f455e3d..27322c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,7 +199,7 @@ echo "main = putStrLn \"%function\"" > conftestghc.hs
 # Check whether LLVM backend is default for this platform
 ${WithGhc} conftestghc.hs 2>&1 >/dev/null
 res=`./conftestghc`
-if test "x$res" == "x%object"
+if test "x$res" = "x%object"
 then
     AC_MSG_RESULT(yes)
     echo "Buggy bootstrap compiler"
@@ -215,14 +215,14 @@ fi
 # -fllvm is not the default, but set a flag so the Makefile can check
 # -for it in the build flags later on
 ${WithGhc} -fforce-recomp -fllvm conftestghc.hs 2>&1 >/dev/null
-if test $? == 0
+if test $? = 0
 then
     res=`./conftestghc`
-    if test "x$res" == "x%object"
+    if test "x$res" = "x%object"
     then
         AC_MSG_RESULT(yes)
         GHC_LLVM_AFFECTED_BY_9439=1
-    elif test "x$res" == "x%function"
+    elif test "x$res" = "x%function"
     then
         AC_MSG_RESULT(no)
         GHC_LLVM_AFFECTED_BY_9439=0



More information about the ghc-commits mailing list