X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fconfigure.in;h=01366dcee442cb0474c89911330a346749683240;hb=bccba5d4611ed852efc645007bcfa3989d8b08a2;hp=1a6a722ca4b31e1b92fc29989f9c290485125fc5;hpb=ac6150589ff8ed99fc40aa5eb75ad10af8f1c5c2;p=fs%2Flustre-release.git diff --git a/lustre/configure.in b/lustre/configure.in index 1a6a722..01366dc 100644 --- a/lustre/configure.in +++ b/lustre/configure.in @@ -7,11 +7,23 @@ AC_CANONICAL_SYSTEM # See the file COPYING in this distribution # Automake variables. Steal the version number from lustre.spec.in. -AM_INIT_AUTOMAKE(obd, builtin([esyscmd], [sed -ne '/^%define version /{ s/.*version //; p; q; }' scripts/lustre.spec.in])) +AM_INIT_AUTOMAKE(lustre, builtin([esyscmd], [sed -ne '/^%define version /{ s/.*version //; p; q; }' scripts/lustre.spec.in])) #AM_MAINTAINER_MODE AC_PROG_CC AC_PROG_RANLIB +# +# Check for required packages + +AC_PATH_PROG([XML2_CONFIG], [xml2-config], [],) +if test -z "$XML2_CONFIG"; then + AC_MSG_ERROR([xml2-config not found; libxml2-dev libraries must be installed.]) +fi +XML2_CFLAGS=$($XML2_CONFIG --cflags) +XML2_LIBS=$($XML2_CONFIG --libs) +AC_SUBST(XML2_CFLAGS) +AC_SUBST(XML2_LIBS) + # Kernel build environment. ac_default_prefix= bindir='${exec_prefix}/usr/bin' @@ -59,7 +71,7 @@ EXTRAVERSION="`sed -ne 's/^EXTRAVERSION[ ]*=[ ]*//gp' $LINUX/Makefile`" changequote([, ]) RELEASE="$LVERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION" -moduledir='$(libdir)/modules/'$RELEASE +moduledir='$(libdir)/modules/'$RELEASE/kernel AC_SUBST(moduledir) AC_SUBST(EXTRAVERSION) @@ -76,9 +88,10 @@ AC_SUBST(docdir) demodir='$(docdir)/demo' AC_SUBST(demodir) -AC_OUTPUT(Makefile lib/Makefile ldlm/Makefile obdecho/Makefile ptlrpc/Makefile \ +AC_OUTPUT(Makefile lov/Makefile lib/Makefile ldlm/Makefile \ + obdecho/Makefile ptlrpc/Makefile \ osc/Makefile mdc/Makefile mds/Makefile ost/Makefile utils/Makefile \ - tests/Makefile obdfilter/Makefile obdclass/Makefile obdext2/Makefile \ + tests/Makefile obdfilter/Makefile obdclass/Makefile \ llite/Makefile obdfs/Makefile demos/Makefile \ doc/Makefile scripts/Makefile scripts/lustre.spec \ extN/Makefile)