summaryrefslogtreecommitdiff
path: root/java/openjdk11/files/patch-make-autoconf-build-performance.m4
blob: 04aa1f5e707a8c12d330dc75ccad73458b83608b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- make/autoconf/build-performance.m4
+++ make/autoconf/build-performance.m4
@@ -41,6 +41,10 @@ AC_DEFUN([BPERF_CHECK_CORES],
     # Looks like a MacOSX system
     NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu`
     FOUND_CORES=yes
+  elif test -x /sbin/sysctl; then
+    # Looks like a BSD system
+    NUM_CORES=`/sbin/sysctl -n hw.ncpu`
+    FOUND_CORES=yes
   elif test "x$OPENJDK_BUILD_OS" = xaix ; then
     NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print [$]4 }'`
     FOUND_CORES=yes