Bläddra i källkod

Update m4/ax_count_cpus.m4 to support W32

Evgeny Grin (Karlson2k) 12 år sedan
förälder
incheckning
a9e36d3720
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      m4/ax_count_cpus.m4

+ 9 - 0
m4/ax_count_cpus.m4

@@ -15,6 +15,7 @@
 #
 # LICENSE
 #
+#   Copyright (c) 2014 Karlson2k (Evgeny Grin) <[email protected]>
 #   Copyright (c) 2012 Brian Aker <[email protected]>
 #   Copyright (c) 2008 Michael Paul Bailey <[email protected]>
 #   Copyright (c) 2008 Christophe Tournayre <[email protected]>
@@ -45,6 +46,14 @@
           AS_IF([test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo],[
             CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
             ])
+          ])],[
+        *mingw*],[
+        AS_IF([test -n "$NUMBER_OF_PROCESSORS"],[
+          CPU_COUNT="$NUMBER_OF_PROCESSORS"
+          ])],[
+        *cygwin*],[
+        AS_IF([test -n "$NUMBER_OF_PROCESSORS"],[
+          CPU_COUNT="$NUMBER_OF_PROCESSORS"
           ])
         ])