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
8 AM_INIT_AUTOMAKE(lustre, b1_4)
11 # Four main targets: lustre kernel modules, utilities, tests, and liblustre
12 AC_MSG_CHECKING([whether to build kernel modules])
13 AC_ARG_ENABLE([modules],
14 AC_HELP_STRING([--disable-modules],
15 [disable building of Lustre kernel modules]),
16 [],[enable_modules='yes'])
17 AC_MSG_RESULT([$enable_modules])
18 AM_CONDITIONAL(MODULES, test x$enable_modules = xyes)
20 AC_MSG_CHECKING([whether to build Lustre library])
21 AC_ARG_ENABLE([liblustre],
22 AC_HELP_STRING([--disable-liblustre],
23 [disable building of Lustre library]),
24 [],[enable_liblustre='yes'])
25 AC_MSG_RESULT([$enable_liblustre])
26 AM_CONDITIONAL(LIBLUSTRE, test x$enable_liblustre = xyes)
28 AC_MSG_CHECKING([whether to build utilities])
29 AC_ARG_ENABLE([utils],
30 AC_HELP_STRING([--disable-utils],
31 [disable building of Lustre utility programs]),
32 [],[enable_utils='yes'])
33 AC_MSG_RESULT([$enable_utils])
35 AC_MSG_CHECKING([whether to build Lustre tests])
36 AC_ARG_ENABLE([tests],
37 AC_HELP_STRING([--disable-tests],
38 [disable building of Lustre tests]),
39 [],[enable_tests='yes'])
40 AC_MSG_RESULT([$enable_tests])
42 # specify wether to build doc or not
43 AC_MSG_CHECKING([whether to build docs])
45 AC_HELP_STRING([--disable-doc],
46 [skip creation of pdf documentation]),
48 if test x$enable_doc = xyes ; then
57 AC_MSG_RESULT([$enable_doc])
58 AM_CONDITIONAL(DOC, test x$ENABLE_DOC = x1)
61 # default backing fs is ext3
64 # LLNL patches their ext3 and calls it extN
65 AC_MSG_CHECKING([whether to use extN])
67 AC_HELP_STRING([--enable-extN],
68 [use extN instead of ext3 for lustre backend]),
69 [BACKINGFS='extN'],[enable_extN='no'])
70 AC_MSG_RESULT([$enable_extN])
71 AM_CONDITIONAL(EXTN, test x$enable_extN = xyes)
74 AC_MSG_CHECKING([whether to enable ldiskfs])
75 AC_ARG_ENABLE([ldiskfs],
76 AC_HELP_STRING([--enable-ldiskfs],
77 [use ldiskfs for the Lustre backing FS]),
78 [BACKINGFS='ldiskfs'],[enable_ldiskfs='no'])
79 AC_MSG_RESULT([$enable_ldiskfs])
80 AM_CONDITIONAL(LDISKFS, test x$enable_ldiskfs = xyes)
82 AC_MSG_CHECKING([which backing filesystem to use])
83 AC_MSG_RESULT([$BACKINGFS])
86 # the pinger is temporary, until we have the recovery node in place
87 AC_MSG_CHECKING([whether to enable pinger support])
88 AC_ARG_ENABLE([pinger],
89 AC_HELP_STRING([--disable-pinger],
90 [disable recovery pinger support]),
91 [],[enable_pinger='yes'])
92 AC_MSG_RESULT([$enable_pinger])
93 if test x$enable_pinger != xno ; then
94 AC_DEFINE(ENABLE_PINGER, 1, Use the Pinger)
97 AC_MSG_CHECKING([maximum OBD ioctl size])
98 AC_ARG_WITH([obd-buffer-size],
99 AC_HELP_STRING([--with-obd-buffer-size=[size]],
100 [set lctl ioctl maximum bytes (default=8192)]),
102 OBD_BUFFER_SIZE=$with_obd_buffer_size
106 AC_MSG_RESULT([$OBD_BUFFER_SIZE bytes])
107 AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
109 # specify location of libsysio tree
110 AC_MSG_CHECKING([location of libsysio])
112 AC_HELP_STRING([--with-sysio=[path]],
113 [set path to libsysio source (default=../libsysio)]),
118 SYSIO='$(top_srcdir)/../libsysio'
119 SYSIO_PATH='../libsysio'
121 AC_MSG_RESULT([$SYSIO_PATH])
123 AC_CHECK_FILE([$SYSIO_PATH/src/libsysio.a],[],
125 if test x$enable_liblustre = xyes ; then
126 AC_MSG_ERROR([A built libsysio tree is required for building liblustre.])
132 AC_MSG_CHECKING([whether to build mpitests])
133 AC_ARG_ENABLE([mpitests],
134 AC_HELP_STRING([--enable-mpitests],
135 [build liblustre mpi tests]),
136 [],[enable_mpitests=no])
137 AC_MSG_RESULT([$enable_mpitests])
138 AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
141 AC_MSG_CHECKING([whether to enable snapfs support])
142 AC_ARG_ENABLE([snapfs],
143 AC_HELP_STRING([--enable-snapfs],
145 [],[enable_snapfs='no'])
147 AC_MSG_RESULT([$enable_snapfs])
148 AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes)
149 if test x$enable_snapfs = xyes ; then
150 AC_DEFINE(CONFIG_SNAPFS, 1, [enable snap support])
153 sinclude(portals/build.m4)
154 sinclude(portals/archdep.m4)
156 if test x$enable_inkernel = xyes ; then
157 find . -name Makefile.mk | sed 's/.mk$//' | xargs -n 1 \
158 sh -e -x -c '(cp -f $0.mk $0.in)'
161 # we need to pass a full path here for kernel makefiles
162 INCLUDE_RULES="include $PWD/Rules"
163 AC_SUBST(INCLUDE_RULES)
165 # ptlrpc kernel build requires this
170 AM_CONDITIONAL(UTILS, test x$enable_utils = xyes)
171 AM_CONDITIONAL(TESTS, test x$enable_tests = xyes)
173 AM_CONFIG_HEADER(include/config.h)
184 include/linux/Makefile
185 include/lustre/Makefile
190 liblustre/tests/Makefile
204 obdclass/autoMakefile
208 obdfilter/autoMakefile
217 portals/knals/Makefile
218 portals/knals/autoMakefile
219 portals/knals/gmnal/Makefile
220 portals/knals/gmnal/autoMakefile
221 portals/knals/ibnal/Makefile
222 portals/knals/ibnal/autoMakefile
223 portals/knals/qswnal/Makefile
224 portals/knals/qswnal/autoMakefile
225 portals/knals/socknal/Makefile
226 portals/knals/socknal/autoMakefile
227 portals/libcfs/Makefile
228 portals/libcfs/autoMakefile
229 portals/portals/Makefile
230 portals/portals/autoMakefile
231 portals/router/Makefile
232 portals/router/autoMakefile
233 portals/tests/Makefile
234 portals/tests/autoMakefile
235 portals/unals/Makefile
236 portals/utils/Makefile
243 scripts/version_tag.pl
249 utils/Lustre/Makefile