summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-08-01 08:32:57 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-08-01 08:32:57 +0000
commitbb01b8e8a461ea954729c241bac067ffc54ae055 (patch)
tree16f1c4a9a3e895d5ec73c2f8bae5ba74f1233e16 /aclocal.m4
parent085025b1e45218eb4f9ef7fda055e23f03b8e1b7 (diff)
downloadhaskell-bb01b8e8a461ea954729c241bac067ffc54ae055.tar.gz
fix the hardtop test for ghc-6.2.x, and make it notice failure earlier
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index bace42ab56..7fd96fe079 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1104,11 +1104,15 @@ rm -f *.o
rm -f *.hi
rm -f pwd
rm -f pwd.exe
-$WithGhc -v0 --make pwd
+$WithGhc -v0 --make pwd -o pwd
cd ../..
hardtop=`utils/pwd/pwd forwardslash`
+if ! test -d "$hardtop"; then
+ AC_MSG_ERROR([cannot determine current directory])
+fi
+
dnl Remove common automounter nonsense
dnl
hardtop=`echo $hardtop | sed 's|^/tmp_mnt.*\(/local/.*\)$|\1|' | sed 's|^/tmp_mnt/|/|'`