crosstool-NG with support for Xtensa
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
425 B

# Find out how to count CPUs
AC_DEFUN([CTNG_CPU_COUNT],
[AC_CACHE_CHECK([whether to use getconf or sysctl to count CPUs],
[ctng_cv_cpu_count],
[getconf _NPROCESSORS_ONLN >/dev/null 2>&1 && \
ctng_cv_cpu_count="getconf _NPROCESSORS_ONLN"
sysctl -n hw.ncpu >/dev/null 2>&1 && \
ctng_cv_cpu_count="sysctl -n hw.ncpu"])
AC_SUBST(CPU_COUNT, "$ctng_cv_cpu_count")
])