Commits

Martin Albrecht  committed 9f5a003

yet another fixing attempt for cache size detection

  • Participants
  • Parent commits 134db58

Comments (0)

Files changed (2)

 pkgincludesub_HEADERS = src/m4ri.h src/brilliantrussian.h src/misc.h src/packedmatrix.h src/grayflex.h src/strassen.h src/parity.h src/permutation.h src/config.h src/trsm.h src/lqup.h src/solve.h  src/pluq_mmpf.h
 
 #libm4ri_la_LDFLAGS = -version-info 0:0:0
-libm4ri_la_LDFLAGS = -release 0.0.20090409
+libm4ri_la_LDFLAGS = -release 0.0.20090615
 
 check_PROGRAMS=test_multiplication test_elimination test_trsm test_lqup test_solve test_kernel
 test_multiplication_SOURCES=testsuite/test_multiplication.c

File m4/ax_cache_size.m4

       fi
       if test -n "$sysctl_exe"; then
 	if test -z "$ax_l2_size" ; then
-	  ax_l2_size=$((`$sysctl_exe -n hw.l2cachesize 2>/dev/null` / 1024))
+          sysctl_out= `$sysctl_exe -n hw.l2cachesize 2>/dev/null`;
+          if test -z "$sysctl_out"; then
+            sysctl_out=0;
+          fi;
+	  ax_l2_size=$(($sysctl_out / 1024))
 	fi
 	if test -z "$ax_l1_size" ; then
-	  ax_l1_size=$((`$sysctl_exe -n hw.l1dcachesize 2>/dev/null` / 1024))
+          sysctl_out= `$sysctl_exe -n hw.l1dcachesize 2>/dev/null`;
+          if test -z "$sysctl_out"; then
+            sysctl_out=0;
+          fi;
+	  ax_l1_size=$(($sysctl_out / 1024))
 	fi
 	if test -z "$ax_l1_size" ; then
-	  ax_l1_size=$((`$sysctl_exe -n hw.l1cachesize 2>/dev/null` / 1024))
+          sysctl_out= `$sysctl_exe -n hw.l1cachesize 2>/dev/null`;
+          if test -z "$sysctl_out"; then
+            sysctl_out=0;
+          fi;
+	  ax_l1_size=$(($sysctl_out / 1024))
         fi
       fi
     fi