Whamcloud - gitweb
branch scripts
[fs/lustre-release.git] / configure.ac
1 sinclude(lustre/version.m4)
2
3 AC_INIT([Lustre], [LUSTRE_VERSION], [http://bugzilla.lustre.org/], [lustre])
4
5 if test "LUSTRE_VERSION" = "LUSTRE""_VERSION" ; then
6         cat >&2 <<-EOF
7         This script was not built with a version number.
8
9         This is likely due to an incorrect checkout, or a broken
10         tarball.
11
12         Please see README.lustrecvs, or contact your Lustre vendor.
13         EOF
14         exit 1
15 fi
16
17 AC_CONFIG_SRCDIR(lustre/obdclass/obdo.c)
18 AM_INIT_AUTOMAKE
19 # AM_MAINTAINER_MODE
20
21 sinclude(build/build.ac)
22 sinclude(portals/portals.ac)
23 sinclude(lustre/lustre.ac)
24
25 AC_CONFIG_HEADERS([config.h])
26
27 CPPFLAGS="-include \$(top_builddir)/config.h $CPPFLAGS"
28 EXTRA_KCFLAGS="-include $PWD/config.h $EXTRA_KCFLAGS"
29 AC_SUBST(EXTRA_KCFLAGS)
30
31 AC_OUTPUT([
32 Makefile
33 autoMakefile
34 ])
35
36 cat <<EOF
37
38 CPPFLAGS: $CPPFLAGS
39 LLCPPFLAGS: $LLCPPFLAGS
40 CFLAGS: $CFLAGS
41 EXTRA_KCFLAGS: $EXTRA_KCFLAGS
42 LLCFLAGS: $LLCFLAGS
43
44 Type 'make' to build Lustre.
45 EOF