Whamcloud - gitweb
Branch b1_8
authoryangsheng <yangsheng>
Fri, 17 Jul 2009 13:30:26 +0000 (13:30 +0000)
committeryangsheng <yangsheng>
Fri, 17 Jul 2009 13:30:26 +0000 (13:30 +0000)
b=19615

i=shadow, johann

Disable server build for rhel4 & sles9.

build/autoconf/lustre-build-linux.m4

index d0cdb76..bb92895 100644 (file)
@@ -104,7 +104,7 @@ AC_MSG_CHECKING([that RedHat kernel])
 LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
        ],[
-               #ifndef RHEL_MAJOR
+               #ifndef RHEL_RELEASE_CODE
                #error "not redhat kernel"
                #endif
        ],[
@@ -115,19 +115,7 @@ LB_LINUX_TRY_COMPILE([
                AC_MSG_RESULT([no])
 ])
 
-AC_MSG_CHECKING([that SuSe kernel])
-LB_LINUX_TRY_COMPILE([
-               #include <linux/version.h>
-       ],[
-               #ifndef SLE_VERSION_CODE
-               #error "not sles kernel"
-               #endif
-       ],[
-               SUSE_KERNEL="yes"
-               AC_MSG_RESULT([yes])
-       ],[
-               AC_MSG_RESULT([no])
-])
+LB_LINUX_CONFIG([SUSE_KERNEL],[SUSE_KERNEL="yes"],[])
 
 ])