New kcompat headers depend on urcu's arch.h and arch_atomic.h
authorJan Blunck <jblunck@suse.de>
Wed, 10 Jun 2009 18:07:18 +0000 (20:07 +0200)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 12 Jun 2009 16:59:32 +0000 (12:59 -0400)
Signed-off-by: Jan Blunck <jblunck@suse.de>
configure.ac

index 7e0ea07c33909b117d6f7971a3108ced9fa513df..006a903501fe0011231dc520661fcc2e1af56487 100644 (file)
@@ -50,19 +50,6 @@ AC_C_INLINE
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol])
 
-AC_ARG_WITH(kcompat, [  --with-kcompat path     Path to userspace kcompat source
-], [
-        AC_CHECK_FILE("$withval/kcompat.h", [
-                KCOMPAT_CFLAGS="-I$withval"
-                KCOMPAT_LIBS=
-                ], AC_MSG_ERROR([Cannot find kcompat.h in kcompat directory]))
-], [
-        PKG_CHECK_MODULES(KCOMPAT, [libkcompat], , [
-               AC_MSG_ERROR([Must specify kcompat path.])])
-])
-AC_SUBST(KCOMPAT_CFLAGS)
-AC_SUBST(KCOMPAT_LIBS)
-
 AC_ARG_WITH(urcu, [  --with-urcu path  Path to userspace RCU source], [
        AC_CHECK_FILE(["$withval/urcu.h"], [
                URCU_CFLAGS="-I$withval"
@@ -75,6 +62,19 @@ AC_ARG_WITH(urcu, [  --with-urcu path        Path to userspace RCU source], [
 AC_SUBST(URCU_CFLAGS)
 AC_SUBST(URCU_LIBS)
 
+AC_ARG_WITH(kcompat, [  --with-kcompat path     Path to userspace kcompat source
+], [
+        AC_CHECK_FILE("$withval/kcompat.h", [
+                KCOMPAT_CFLAGS="-I$withval $URCU_CFLAGS"
+                KCOMPAT_LIBS=
+                ], AC_MSG_ERROR([Cannot find kcompat.h in kcompat directory]))
+], [
+        PKG_CHECK_MODULES(KCOMPAT, [libkcompat], , [
+               AC_MSG_ERROR([Must specify kcompat path.])])
+])
+AC_SUBST(KCOMPAT_CFLAGS)
+AC_SUBST(KCOMPAT_LIBS)
+
 AC_CONFIG_FILES([
        Makefile
        libust/Makefile
This page took 0.024903 seconds and 4 git commands to generate.