summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-09-20 23:18:22 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-09-20 23:18:22 +0100
commitd7705f2fbead058700940321982a6315450dbcd1 (patch)
treee0436675db75fd8d40cf754e2cf1082e53b67dbc /aclocal.m4
parent02ff70563e490d2a7f3141eab7229803c523da57 (diff)
downloadhaskell-d7705f2fbead058700940321982a6315450dbcd1.tar.gz
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@gentoo.org>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index d053311d02..203d11f289 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"])