public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* dlm: master - avoid configure failure with F10's 2.6.27.21 kernel headers
@ 2009-06-25 17:29 Jim Meyering
  0 siblings, 0 replies; only message in thread
From: Jim Meyering @ 2009-06-25 17:29 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=ac6d6c210989e598ef3f809ee68ac093f63ac41a
Commit:        ac6d6c210989e598ef3f809ee68ac093f63ac41a
Parent:        1889f9256d0e19855cd31fc180a6219d27b8764e
Author:        Jim Meyering <meyering@redhat.com>
AuthorDate:    Fri Jun 19 20:24:18 2009 +0200
Committer:     Jim Meyering <meyering@redhat.com>
CommitterDate: Thu Jun 25 19:27:29 2009 +0200

avoid configure failure with F10's 2.6.27.21 kernel headers

* configure.ac: Include <linux/types.h> before checking for
linux/dlm_plock.h.  Otherwise, we'd get a syntax error on __u32.
---
 configure.ac |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b10639b..d50de87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,12 +154,17 @@ BACKUP_CPPFLAGS="$CPPFLAGS"
 CPPFLAGS="$KERNEL_CPPFLAGS"
 
 # check kernel headers
+AC_CHECK_HEADERS([linux/major.h linux/types.h linux/dlmconstants.h])
+AC_CHECK_HEADERS([linux/dlm.h linux/dlm_device.h])
 # 2.6.26 adds dlm_plock.h that's our checking barrier, instead
 # of implementing some insane kernel version checks
-AC_CHECK_HEADERS([linux/major.h linux/types.h linux/dlmconstants.h linux/dlm.h linux/dlm_device.h linux/dlm_plock.h],,
+# At least on 2.6.27.21-170.2.56.fc10.x86_64, one must include
+# <linux/types.h> to avoid syntax errors regarding __u32.
+AC_CHECK_HEADERS([linux/dlm_plock.h],,
 		 [AC_MSG_ERROR([Unable to find dlm kernel headers.
 Make sure to install kernel headers 2.6.26 (or higher) or use --with-kernel=path
-configure option to point to the kernel source.])])
+configure option to point to the kernel source.])],
+  [#include <linux/types.h>])
 
 
 CPPFLAGS="$BACKUP_CPPFLAGS"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-25 17:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 17:29 dlm: master - avoid configure failure with F10's 2.6.27.21 kernel headers Jim Meyering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).