Index: script/confhc =================================================================== RCS file: /home/cvs/root/nhc98/script/confhc,v retrieving revision 1.41 diff -u -r1.41 confhc --- script/confhc 12 Nov 2004 17:53:45 -0000 1.41 +++ script/confhc 2 Dec 2004 10:35:06 -0000 @@ -65,8 +65,9 @@ # Now look for GHC. Determining the version number here is due to Simon Marlow. ghcsym () { echo __GLASGOW_HASKELL__ >ghcsym.hs; - $1 -E -cpp -optP-P ghcsym.hs -o $2; - rm -f ghcsym.hs; + $1 -E -cpp -optP-P ghcsym.hs -o ghcsym.out; + grep -e '^[0-9]*$' ghcsym.out > $2; + rm -f ghcsym.hs ghcsym.out; } echo -n " Looking for ghc... " if which ghc >/dev/null 2>&1