shithub: mc

Download patch

ref: 90667a77d0114888cba6302b7349fe702b5cf90f
parent: 088821d3c9428b43f4dfedea591b0af63d0b9b8d
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