Whamcloud - gitweb
9eda4b6b893d12a904080003c6adc99ed39d4ade
[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 # specify wether to build doc or not
18 AC_ARG_ENABLE(doc, [  --disable-doc skip creation of pdf documentation],
19                    [
20                         if test x$enable_doc = xyes ; then
21                             ENABLE_DOC=1           
22                         else
23                             ENABLE_DOC=0
24                         fi
25                    ],
26                    [ ENABLE_DOC=0 ])
27 AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
28 AC_SUBST(ENABLE_DOC)
29
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)
34 fi
35
36 # very experimental orphan support
37 AC_ARG_ENABLE(orphans, [  --enable-orphans very experimental orphan recovery support])
38 if test x$enable_orphans = xyes ; then
39   AC_DEFINE(ENABLE_ORPHANS, 1, Compile with orphan support)
40 fi
41
42 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)
43 AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
44
45 # specify location of libsysio tree
46 AC_ARG_WITH(sysio, [  --with-sysio=[path] set path to libsysio source (default=../libsysio)], sysiodir=$withval)
47 if test x$sysiodir = x; then
48         SYSIO='$(top_srcdir)/../libsysio'
49 else
50         SYSIO=$sysiodir
51 fi
52 AC_SUBST(SYSIO)
53
54 # snap compilation 
55 AC_ARG_ENABLE(snapfs, [ --enable-snapfs build snapfs])
56 AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes)
57
58
59 sinclude(portals/build.m4)
60 sinclude(portals/archdep.m4)
61
62 if test x$enable_inkernel = xyes ; then
63         find . -name Makefile.mk | sed 's/.mk$//' | xargs -n 1 \
64                 sh -e -x -c '(cp -f $0.mk $0.in)'
65 fi
66
67 AM_CONFIG_HEADER(portals/include/config.h)
68
69 AC_OUTPUT([Makefile lvfs/Makefile portals/Makefile portals/Kernelenv \
70           portals/libcfs/Makefile portals/portals/Makefile \
71           portals/unals/Makefile portals/knals/Makefile \
72           portals/router/Makefile portals/knals/socknal/Makefile \
73           portals/knals/gmnal/Makefile portals/knals/qswnal/Makefile \
74           portals/knals/scimacnal/Makefile \
75           portals/knals/ibnal/Makefile \
76           portals/utils/Makefile portals/tests/Makefile portals/doc/Makefile \
77           obdecho/Makefile ptlrpc/Makefile liblustre/Makefile \
78           lov/Makefile osc/Makefile mdc/Makefile mds/Makefile ost/Makefile \
79           cobd/Makefile ptlbd/Makefile conf/Makefile  tests/Makefile \
80           utils/Makefile utils/Lustre/Makefile obdfilter/Makefile \
81           obdclass/Makefile snapfs/Makefile snapfs/utils/Makefile \
82           include/Makefile include/linux/Makefile llite/Makefile doc/Makefile scripts/Makefile \
83           scripts/lustre.spec])