summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-06-13 17:23:30 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-13 19:20:18 +0200
commitf9312bc9034f4e229c1e598c5867fc87d232066c (patch)
tree6e1dbcb41cebac4a040fa453444864c6c04eb1f8 /configure.ac
parent4bbbb0dad905ea4c78201791e873dd2fc1bcef3b (diff)
downloadptxdist-f9312bc9034f4e229c1e598c5867fc87d232066c.tar.gz
ptxdist-f9312bc9034f4e229c1e598c5867fc87d232066c.tar.xz
Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool
Using a fix path is a bad idea. Lets 'configure' search for the tool and use it as is. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 44c244831..1723ef958 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,6 +182,9 @@ case "$AWK_VERSION" in
esac
AC_MSG_RESULT([$AWK_VERSION])
+# fall back to 'false' for systems which do not provide a 'sysctl' tool
+AC_PATH_PROGS(SYSCTL, sysctl false,, $PATH)
+
dnl Check for lex
AC_PROG_LEX
AC_PATH_PROGS(LEX, ${LEX},, $PATH)