[project @ 2003-08-16 11:19:07 by igloo]
[ghc-hetmet.git] / configure.in
index c661c4a..0c5a11a 100644 (file)
@@ -312,6 +312,15 @@ sparc-sun-solaris2*)
         HostVendor_CPP='sun'
         HostOS_CPP='solaris2'
         ;;
+sparc*-linux*)
+        HostPlatform=sparc-unknown-linux
+        TargetPlatform=sparc-unknown-linux
+        BuildPlatform=sparc-unknown-linux
+        HostPlatform_CPP='sparc_unknown_linux'
+        HostArch_CPP='sparc'
+        HostVendor_CPP='unknown'
+        HostOS_CPP='linux'
+        ;;
 *)
         echo "Unrecognised platform: $HostPlatform"
         exit 1
@@ -731,7 +740,7 @@ FPTOOLS_GREENCARD(3.00)
 
 AC_ARG_ENABLE(src-tree-happy,
 [  --enable-src-tree-happy
-        Build and use source tree (fptools/happy) version of happy.
+        Build and use source tree (fptools/happy) version of Happy.
 ],
 [UseSrcTreeHappy=YES],
 [UseSrcTreeHappy=NO]
@@ -744,7 +753,7 @@ fi;
 
 AC_ARG_ENABLE(src-tree-haddock,
 [  --enable-src-tree-haddock
-        Build and use source tree (fptools/haddock) version of haddock.
+        Build and use source tree (fptools/haddock) version of Haddock.
 ],
 [UseSrcTreeHaddock=YES],
 [UseSrcTreeHaddock=NO]
@@ -752,6 +761,19 @@ AC_ARG_ENABLE(src-tree-haddock,
 dnl ** check for installed haddock
 FPTOOLS_HADDOCK
 
+AC_ARG_ENABLE(src-tree-alex,
+[  --enable-src-tree-alex
+        Build and use source tree (fptools/alex) version of Alex.
+],
+[UseSrcTreeAlex=YES],
+[UseSrcTreeAlex=NO]
+)
+dnl ** check for installed alex binary + version
+dnl    (don't do it if we're booting from .hc files though.)
+if test "$BootingFromHc" = "NO"; then
+FPTOOLS_ALEX
+fi;
+
 dnl --------------------------------------------------
 dnl ### program checking section ends here ###
 dnl --------------------------------------------------