1 # Copyright (C) 2001-2003 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
9 # Automake variables. Steal the version number from lustre.spec.in.
10 AM_INIT_AUTOMAKE(lustre, builtin([esyscmd], [sed -ne '/^%define version /{ s/.*version //; p; q; }' scripts/lustre.spec.in]))
13 # LLNL patches their ext3 and calls it extN
14 AC_ARG_ENABLE(extN, [ --enable-extN use extN instead of ext3 for lustre backend])
15 AM_CONDITIONAL(EXTN, test x$enable_extN = xyes)
17 # specify wether to build doc or not
18 AC_ARG_ENABLE(doc, [ --disable-doc skip creation of pdf documentation],
20 if test x$enable_doc = xyes ; then
27 AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
30 # the pinger is temporary, until we have the recovery node in place
31 AC_ARG_ENABLE(pinger, [ --disable-pinger disable recovery pinger support])
32 if test x$enable_pinger != xno ; then
33 AC_DEFINE(ENABLE_PINGER, 1, Use the Pinger)
36 AC_ARG_WITH(obd-buffer-size, [ --with-obd-buffer-size=[size] set lctl ioctl maximum bytes (default=8192)],OBD_BUFFER_SIZE=$with_obd_buffer_size,OBD_BUFFER_SIZE=8192)
37 AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
39 # specify location of libsysio tree
40 AC_ARG_WITH(sysio, [ --with-sysio=[path] set path to libsysio source (default=../libsysio)], sysiodir=$withval)
41 if test x$sysiodir = x; then
42 SYSIO='$(top_srcdir)/../libsysio'
49 AC_ARG_ENABLE(mpitests, [ --enable-mpitests build liblustre mpi tests])
50 AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
53 AC_ARG_ENABLE(snapfs, [ --enable-snapfs build snapfs])
54 AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes)
57 AC_ARG_ENABLE(smfs, [ --enable-smfs build smfs])
58 AM_CONDITIONAL(SMFS, test x$enable_smfs = xyes)
62 sinclude(portals/build.m4)
63 sinclude(portals/archdep.m4)
65 if test x$enable_inkernel = xyes ; then
66 find . -name Makefile.mk | sed 's/.mk$//' | xargs -n 1 \
67 sh -e -x -c '(cp -f $0.mk $0.in)'
70 AM_CONFIG_HEADER(portals/include/config.h)
72 AC_OUTPUT([Makefile lvfs/Makefile portals/Makefile portals/Kernelenv \
73 portals/libcfs/Makefile portals/portals/Makefile \
74 portals/unals/Makefile portals/knals/Makefile \
75 portals/router/Makefile portals/knals/socknal/Makefile \
76 portals/knals/gmnal/Makefile portals/knals/qswnal/Makefile \
77 portals/knals/scimacnal/Makefile \
78 portals/knals/ibnal/Makefile \
79 portals/utils/Makefile portals/tests/Makefile portals/doc/Makefile \
80 obdecho/Makefile ptlrpc/Makefile liblustre/Makefile liblustre/tests/Makefile \
81 lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \
82 cobd/Makefile ptlbd/Makefile conf/Makefile tests/Makefile \
83 utils/Makefile utils/Lustre/Makefile obdfilter/Makefile \
84 obdclass/Makefile smfs/Makefile snapfs/Makefile snapfs/utils/Makefile \
85 include/Makefile include/linux/Makefile llite/Makefile doc/Makefile scripts/Makefile \