Whamcloud - gitweb
file spec2series.in was initially added on branch b_unify.
[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 AC_ARG_WITH(obd-buffer-size, [  --with-obd-buffer-size=[size] set lctl ioctl maximum (default=8K)],OBD_BUFFER_SIZE=$with_obd_buffer_size,OBD_BUFFER_SIZE=8192)
18 AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
19
20 sinclude(portals/build.m4)
21 sinclude(portals/archdep.m4)
22
23 if test x$enable_inkernel = xyes ; then
24 cp Makefile.mk Makefile.in
25 cp mds/Makefile.mk mds/Makefile.in
26 cp portals/Kernelenv.mk portals/Kernelenv.in
27 cp portals/Makefile.mk portals/Makefile.in
28 cp portals/libcfs/Makefile.mk portals/libcfs/Makefile.in
29 cp portals/portals/Makefile.mk portals/portals/Makefile.in
30 cp portals/knals/Makefile.mk portals/knals/Makefile.in
31 cp portals/knals/socknal/Makefile.mk portals/knals/socknal/Makefile.in
32 cp portals/router/Makefile.mk portals/router/Makefile.in
33 fi
34
35 AM_CONFIG_HEADER(portals/include/config.h)
36
37 AC_OUTPUT([Makefile portals/Makefile portals/Kernelenv \
38           portals/libcfs/Makefile portals/portals/Makefile \
39           portals/unals/Makefile portals/knals/Makefile \
40           portals/router/Makefile portals/knals/socknal/Makefile \
41           portals/knals/gmnal/Makefile portals/knals/qswnal/Makefile \
42           portals/knals/scimacnal/Makefile portals/knals/toenal/Makefile \
43           portals/utils/Makefile portals/tests/Makefile portals/doc/Makefile \
44           ldlm/Makefile obdecho/Makefile ptlrpc/Makefile liblustre/Makefile \
45           lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \
46           cobd/Makefile ptlbd/Makefile conf/Makefile  tests/Makefile \
47           utils/Makefile utils/Lustre/Makefile obdfilter/Makefile \
48           obdclass/Makefile llite/Makefile doc/Makefile scripts/Makefile \
49           scripts/lustre.spec])