Whamcloud - gitweb
1. Config for universal lustre headers
authorliangzhen <liangzhen>
Thu, 2 Mar 2006 06:54:35 +0000 (06:54 +0000)
committerliangzhen <liangzhen>
Thu, 2 Mar 2006 06:54:35 +0000 (06:54 +0000)
2. Fix for ltest build problem

lustre/autoconf/lustre-core.m4
lustre/include/Makefile.am
lustre/include/linux/Makefile.am

index b436017..1217643 100644 (file)
@@ -575,6 +575,10 @@ AC_CHECK_FUNCS([inet_ntoa])
 # llite/xattr.c
 AC_CHECK_HEADERS([linux/xattr_acl.h])
 
+# use universal lustre headers 
+# i.e: include/obd.h instead of include/linux/obd.h
+AC_CHECK_FILE($PWD/lustre/include/obd.h, [AC_DEFINE(UNIV_LUSTRE_HEADERS, 1, [Use universal lustre headers])])
+
 # Super safe df
 AC_ARG_ENABLE([mindf],
       AC_HELP_STRING([--enable-mindf],
index 6091bd2..1547664 100644 (file)
@@ -5,6 +5,13 @@
 # See the file COPYING in this distribution
 
 SUBDIRS = linux lustre
+
+linuxdir = $(includedir)
+
+if UTILS
+linux_HEADERS = lustre_idl.h
+endif
+
 EXTRA_DIST = ioctl.h liblustre.h lprocfs_status.h lustre_cfg.h \
             lustre_commit_confd.h lustre_debug.h lustre_dlm.h \
             lustre_export.h lustre_fsfilt.h lustre_ha.h       \
index 6d02881..0f07562 100644 (file)
@@ -3,12 +3,6 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-linuxdir = $(includedir)/linux
-
-if UTILS
-linux_HEADERS = lustre_idl.h
-endif
-
 EXTRA_DIST = lprocfs_status.h lustre_debug.h lustre_lib.h types.h\
   lustre_dlm.h lustre_handles.h lustre_net.h obd_class.h obd_support.h  \
   lustre_log.h lustre_compat25.h lustre_fsfilt.h lustre_mds.h obd.h \