commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r835102 - /commons/sandbox/runtime/trunk/src/main/native/configure
Date Wed, 11 Nov 2009 22:26:44 GMT
Author: mturk
Date: Wed Nov 11 22:26:44 2009
New Revision: 835102

URL: http://svn.apache.org/viewvc?rev=835102&view=rev
Log:
Allow 64-bit cross compile on 32-bit windows

Modified:
    commons/sandbox/runtime/trunk/src/main/native/configure

Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=835102&r1=835101&r2=835102&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Wed Nov 11 22:26:44 2009
@@ -112,6 +112,7 @@
 cc_set=no
 cxx_set=no
 test=ctest$$
+mach=unknown
 
 for o
 do
@@ -166,6 +167,10 @@
             libdir="$a"
             shift
         ;;
+        --with-arch=* )
+            mach="$a"
+            shift
+        ;;
         --with-cc=* )
             cc="$a"
             cc_set=yes
@@ -360,7 +365,9 @@
 vminor="`sed -n $minor_sed $topdir/include/acr_version.h`"
 vpatch="`sed -n $patch_sed $topdir/include/acr_version.h`"
 
-mach=`uname -m 2>/dev/null | tr '[A-Z]' '[a-z]'` || mach="unknown"
+if [ ".$mach" = .unknown ]; then
+    mach=`uname -m 2>/dev/null | tr '[A-Z]' '[a-z]'` || mach="unknown"
+fi
 host=`uname -s 2>/dev/null | tr '[A-Z]' '[a-z]'` || host="unknown"
 
 test ".$has_64_bit" = .yes && bits=64



Mime
View raw message