esac
# We have to configure even if we don't build here for make dist to work
-AC_CONFIG_SUBDIRS(libsysio)
+AC_CONFIG_SUBDIRS([libsysio])
])
#
esac
AC_SUBST(LUSTREIOKIT_SUBDIR)
# We have to configure even if we don't build here for make dist to work
-AC_CONFIG_SUBDIRS(lustre-iokit)
+AC_CONFIG_SUBDIRS([lustre-iokit])
AM_CONDITIONAL(BUILD_LUSTREIOKIT, [test "x$with_lustre_iokit" != xno])
])
AC_HELP_STRING([--with-automount@<:@=<automount-file-name>@:>@],
[with automounts @<:@<automount-file-name>=.mount@:>@]),
[ if test x${withval} = xyes; then
- AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\".mount\\\""
+ AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\".mount\\\""
elif test x${withval} != x; then
AUTOMOUNT=-DAUTOMOUNT_FILE_NAME="\\\"${withval}\\\""
fi])
AC_ARG_WITH(cplant_yod,
AC_HELP_STRING([--with-cplant-yod],[build cplant yod I/O driver]),
- [ case "${withval}" in
+ [ case "${withval}" in
yes) if test x${with_stdfd_dev} != xyes; then
with_stdfd_dev=yes
AM_CONDITIONAL(WITH_STDFD_DEV, test x$with_stdfd_dev = xyes)
yes) AC_MSG_ERROR(need path to compiler for --with-cplant-tests);;
no) with_cplant_tests=no;;
*) CC=${withval}
- CCDEPMODE=${CC}
+ CCDEPMODE=${CC}
CPP="${CC} -E"
AC_CHECK_FILE(${CC},
[ if test x${with_cplant_yod} != xyes; then
AC_DEFINE(_LARGEFILE64_SOURCE)
fi
-# Alpha linux defines
-#
+# Alpha linux defines
+#
AC_MSG_CHECKING(for alpha linux)
alpha_linux_env=no
if test `expr ${machine} : "alpha"` = 5 && \
AC_MSG_RESULT($alpha_linux_env)
AM_CONDITIONAL(TEST_ALPHA_ARG, test x$alpha_linux_env = xyes)
-# Check for __st_ino
+# Check for __st_ino
#
AC_MSG_CHECKING(for __st_ino)
AC_TRY_COMPILE([
AC_DEFINE(HAVE__ST_INO)
fi
-# Check for st_gen
+# Check for st_gen
#
AC_MSG_CHECKING(for st_gen)
AC_TRY_COMPILE([
],[
], [
AC_DEFINE(HAVE_POSIX2008_SCANDIR, 1, [POSIX 2008 scandir])
-AC_MSG_RESULT(yes)
+AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
])
],[
], [
AC_DEFINE(HAVE_POSIX2008_SCANDIR, 1, [POSIX 2008 scandir])
-AC_MSG_RESULT(yes)
+AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
])
-AC_INIT
+AC_PREREQ([2.57])
+AC_INIT([lustre-iokit],[2.3.65], [http://bugs.hpdd.intel.com/])
AC_CONFIG_AUX_DIR([.])
-AM_INIT_AUTOMAKE(lustre-iokit,1.4.0)
+AM_INIT_AUTOMAKE
AC_PATH_PROGS(BASH, bash)
AC_PATH_PROGS(PERL, perl)
RELEASE="1"
[#check global
LC_CONFIG_QUOTA
#check for utils
+if test x$enable_quota != xno -a x$enable_utils != xno; then
AC_CHECK_HEADER(sys/quota.h,
[AC_DEFINE(HAVE_SYS_QUOTA_H, 1, [Define to 1 if you have <sys/quota.h>.])],
[AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
+fi
])
#
DIST_SUBDIRS = linux darwin
if LIBLUSTRE
-INCLUDES = -I$(SYSIO)/include
noinst_LIBRARIES = liblustreclass.a
liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c mea.c uuid.c
liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
liblustreclass_a_SOURCES += lu_object.c cl_object.c lu_ref.c
liblustreclass_a_SOURCES += cl_page.c cl_lock.c cl_io.c
liblustreclass_a_SOURCES += #llog_ioctl.c rbtree.c
-liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS)
-liblustreclass_a_CFLAGS = $(LLCFLAGS)
+liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -I$(SYSIO)/include
+liblustreclass_a_CFLAGS = $(LLCFLAGS) -I$(SYSIO)/include
endif
bin_PROGRAMS = lfs req_layout
bin_SCRIPTS = $(bin_scripts)
sbin_SCRIPTS = $(sbin_scripts)
-endif # UTILS
lib_LIBRARIES = liblustreapi.a
if LDISKFS_ENABLED
libiam_a_SOURCES = libiam.c
endif
-wirecheck_SOURCES = wirecheck.c
-wirecheck_CPPFLAGS = -DCC="\"$(CC)\""
-
-wiretest_SOURCES = wiretest.c
-
obdio_SOURCES = obdio.c obdiolib.c obdiolib.h
obdbarrier_SOURCES = obdbarrier.c obdiolib.c obdiolib.h
req_layout_SOURCES = req-layout.c
l_getidentity_DEPENDENCIES := $(LIBPTLCTL)
ltrack_stats_SOURCES = ltrack_stats.c
+endif # UTILS
+
+wirecheck_SOURCES = wirecheck.c
+wirecheck_CPPFLAGS = -DCC="\"$(CC)\""
+
+wiretest_SOURCES = wiretest.c
lhsmtool_posix_SOURCES = lhsmtool_posix.c
lhsmtool_posix_LDADD := liblustreapi.a $(PTHREAD_LIBS)