You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/23 12:30:50 UTC

svn commit: r818042 - /commons/sandbox/runtime/trunk/src/main/native/configure

Author: mturk
Date: Wed Sep 23 10:30:50 2009
New Revision: 818042

URL: http://svn.apache.org/viewvc?rev=818042&view=rev
Log:
Fix detecting jvm version check

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=818042&r1=818041&r2=818042&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Wed Sep 23 10:30:50 2009
@@ -322,6 +322,9 @@
     exit 1
 fi
 
+jvm_64_bit=no
+test ".`java -version 2>&1 | grep '64-Bit'`" != . && jvm_64_bit=yes
+
 major_sed='/#define.*ACR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
 minor_sed='/#define.*ACR_MINOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
 patch_sed='/#define.*ACR_PATCH_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
@@ -369,7 +372,7 @@
         mach=i386
         if [ ".$host" = .darwin ]; then
             if [ ".$has_32_bit" = .no ]; then
-                test ".`java -version | grep '64-Bit'`" != . && has_64_bit=yes
+                test ".$jvm_64_bit" = .yes && has_64_bit=yes
             fi
             test ".$has_64_bit" = .yes && mach=x86_64
             test ".$has_32_bit" = .yes && mach=i386