Whamcloud - gitweb
add snapfs building support in lustre
[fs/lustre-release.git] / lustre / configure.in
1 # Copyright (C) 2001-2003 Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 AC_INIT
7 AC_CANONICAL_SYSTEM
8
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]))
11 #AM_MAINTAINER_MODE
12
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)
16
17 # the pinger is temporary, until we have the recovery node in place
18 AC_ARG_ENABLE(pinger, [  --enable-pinger recovery pinger support])
19 if test x$enable_pinger = xyes ; then
20   AC_DEFINE(ENABLE_PINGER, 1, Use the Pinger)
21 fi
22
23 # very experimental orphan support
24 AC_ARG_ENABLE(orphans, [  --enable-orphans very experimental orphan recovery support])
25 if test x$enable_orphans = xyes ; then
26   AC_DEFINE(ENABLE_ORPHANS, 1, Compile with orphan support)
27 fi
28
29 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)
30 AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
31
32 # specify location of libsysio tree
33 AC_ARG_WITH(sysio, [  --with-sysio=[path] set path to libsysio source (default=../libsysio)], sysiodir=$withval)
34 if test x$sysiodir = x; then
35         SYSIO='$(top_srcdir)/../libsysio'
36 else
37         SYSIO=$sysiodir
38 fi
39 AC_SUBST(SYSIO)
40
41 # snap compilation 
42 AC_ARG_ENABLE(snapfs, [ --enable-snapfs build snapfs])
43 AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes)
44
45
46 sinclude(portals/build.m4)
47 sinclude(portals/archdep.m4)
48
49 if test x$enable_inkernel = xyes ; then
50         find . -name Makefile.mk | sed 's/.mk$//' | xargs -n 1 \
51                 sh -e -x -c '(cp -f $0.mk $0.in)'
52 fi
53
54 AM_CONFIG_HEADER(portals/include/config.h)
55
56 AC_OUTPUT([Makefile lvfs/Makefile portals/Makefile portals/Kernelenv \
57           portals/libcfs/Makefile portals/portals/Makefile \
58           portals/unals/Makefile portals/knals/Makefile \
59           portals/router/Makefile portals/knals/socknal/Makefile \
60           portals/knals/gmnal/Makefile portals/knals/qswnal/Makefile \
61           portals/knals/scimacnal/Makefile \
62           portals/knals/ibnal/Makefile \
63           portals/utils/Makefile portals/tests/Makefile portals/doc/Makefile \
64           obdecho/Makefile ptlrpc/Makefile liblustre/Makefile \
65           lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \
66           cobd/Makefile ptlbd/Makefile conf/Makefile  tests/Makefile \
67           utils/Makefile utils/Lustre/Makefile obdfilter/Makefile \
68           obdclass/Makefile snapfs/Makefile snapfs/utils/Makefile \
69           include/Makefile include/linux/Makefile llite/Makefile doc/Makefile scripts/Makefile \
70           scripts/lustre.spec])