shithub: mc

Download patch

ref: b219309416b7f89e2ba6114bdf8f72f91e9f94b9
parent: f639b6a266bd6b2d4950fabcee63ce2f40d5acfd
author: Ori Bernstein <[email protected]>
date: Mon Oct 6 09:24:09 EDT 2014

Probe the architecture.

--- a/configure
+++ b/configure
@@ -30,6 +30,7 @@
 done
 
 OS=`uname`
+MACH=`uname -m`
 
 echo export INST_ROOT=$prefix > config.mk
 
@@ -52,14 +53,25 @@
         ;;
     *)
         echo ''
-        echo ''
-        echo '********************************'
-        echo 'Unknown architecture.'
+        echo '********************************'
+        echo 'Unknown system'
         echo 'Cannot build'
         echo '********************************'
         rm -f config.h config.mk
         exit 1
         ;;
+esac
+echo '#define Instroot "'$prefix'"' > config.h
+case $MACH in
+    *x86_64*)
+        echo 'export ARCH=x64' >> config.mk
+        ;;
+    *)
+        echo ''
+        echo '********************************'
+        echo 'Unknown system'
+        echo 'Cannot build'
+        echo '********************************'
 esac
 
 cat << EOF