[commit: ghc] master: aclocal.m4: call cygpath on mingw32 only (d7705f2)

git at git.haskell.org git at git.haskell.org
Wed Sep 20 22:20:38 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d7705f2fbead058700940321982a6315450dbcd1/ghc

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

commit d7705f2fbead058700940321982a6315450dbcd1
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Wed Sep 20 23:18:22 2017 +0100

    aclocal.m4: call cygpath on mingw32 only
    
    The only reason I noticed is warning these lines on linux:
    
    ```
    $ ./configure --target=sparc-unknown-linux-gnu
    ...
    ./configure: line 9708: cygpath: command not found
    ./configure: line 9708: ArCmd: command not found
    ```
    
    POSIX shell syntax requires no spaces in assignments.
    Fixed guarding condition while at it.
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>


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

d7705f2fbead058700940321982a6315450dbcd1
 aclocal.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index d053311..203d11f 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1149,8 +1149,8 @@ else
   fi
 fi])
 fp_prog_ar_args=$fp_cv_prog_ar_args
-if test "$HostOS" != "mingw32"; then
-    ArCmd = "$(cygpath -m $ArCmd)"
+if test "$HostOS" = "mingw32"; then
+    ArCmd=$(cygpath -m $ArCmd)
 fi
 AC_SUBST([ArCmd], ["$fp_prog_ar"])
 AC_SUBST([ArArgs], ["$fp_prog_ar_args"])



More information about the ghc-commits mailing list