diff options
author | Julien Cristau <jcristau@debian.org> | 2013-08-12 14:38:22 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-12 22:42:12 +0100 |
commit | d661332de946c356c10a75e29a48f2c2e3599fec (patch) | |
tree | 9959ab12d43f7689797355d5fd00c80b90affa50 /configure.ac | |
parent | 5775731b6489c63212914163f51b7a576df70658 (diff) |
Check for struct sysinfo as well as <sys/sysinfo.h>
Non-linux glibc systems have the latter but not the former.
Signed-off-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 25592540..318863e9 100644 --- a/configure.ac +++ b/configure.ac @@ -211,7 +211,7 @@ AC_ARG_ENABLE(sna, if test "x$SNA" != "xno"; then AC_DEFINE(USE_SNA, 1, [Enable SNA support]) - AC_CHECK_HEADERS([sys/sysinfo.h]) + AC_CHECK_HEADERS([sys/sysinfo.h], AC_CHECK_MEMBERS([struct sysinfo.totalram], [], [], [[#include <sys/sysinfo.h>]])) fi AC_MSG_CHECKING([whether to include SNA support]) AM_CONDITIONAL(SNA, test x$SNA != xno) |