summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1443984)
raw | patch | inline | side by side (parent: 1443984)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 3 Feb 2014 00:08:00 +0000 (01:08 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 3 Feb 2014 00:08:00 +0000 (01:08 +0100) |
- add AC_DEFINEs for 2 kernels which were missing them.
- declare AM_CONDITIONALs for all kernels we know about + move
declaration at a more sensible location in the file.
- declare AM_CONDITIONALs for all kernels we know about + move
declaration at a more sensible location in the file.
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index f1c7b8aba1169f3a01f7bdf7993c52d192d4871f..d3687b38760cbe7d453fb040ec7bb4661694b3d0 100644 (file)
--- a/configure.ac
+++ b/configure.ac
ac_system="Solaris"
;;
*darwin*)
+ AC_DEFINE([KERNEL_DARWIN], 1, [True if program is to be compiled for a Darwin kernel])
ac_system="Darwin"
;;
*openbsd*)
+ AC_DEFINE([KERNEL_OPENBSD], 1, [True if program is to be compiled for an OpenBSD kernel])
ac_system="OpenBSD"
;;
*aix*)
esac
AC_MSG_RESULT([$ac_system])
+AM_CONDITIONAL([BUILD_LINUX],[test "x$x$ac_system" = "xLinux"])
+AM_CONDITIONAL([BUILD_SOLARIS],[test "x$x$ac_system" = "xSolaris"])
+AM_CONDITIONAL([BUILD_DARWIN],[test "x$x$ac_system" = "xDarwin"])
+AM_CONDITIONAL([BUILD_OPENBSD],[test "x$x$ac_system" = "xOpenBSD"])
+AM_CONDITIONAL([BUILD_AIX],[test "x$x$ac_system" = "xAIX"])
+AM_CONDITIONAL([BUILD_FREEBSD],[test "x$x$ac_system" = "xFreeBSD"])
+
if test "x$ac_system" = "xLinux"
then
AC_ARG_VAR([KERNEL_DIR], [path to Linux kernel sources])
m4_divert_once([HELP_WITH], [
collectd additional packages:])
-AM_CONDITIONAL([BUILD_FREEBSD],[test "x$x$ac_system" = "xFreeBSD"])
-
-AM_CONDITIONAL([BUILD_AIX],[test "x$x$ac_system" = "xAIX"])
-
if test "x$ac_system" = "xAIX"
then
with_perfstat="yes"