X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=config%2Flustre-build.m4;h=89d4685fcb624d5e4387f99497a349166100c5dd;hb=cfbd77e4cd349f9414552e80e9f78f427ab13b53;hp=6f771e51d82dcad89d5ee7773c674e6a80507663;hpb=a6aa05240b686d3c5ee2ccf3c282511e93cb62d1;p=fs%2Flustre-release.git diff --git a/config/lustre-build.m4 b/config/lustre-build.m4 index 6f771e5..89d4685 100644 --- a/config/lustre-build.m4 +++ b/config/lustre-build.m4 @@ -105,7 +105,7 @@ AC_SUBST(BUILDID) # # LB_CHECK_FILE # -# Check for file existance even when cross compiling +# Check for file existence even when cross compiling # $1 - file to check # $2 - do 'yes' # $3 - do 'no' @@ -499,7 +499,7 @@ AS_IF([test x$enable_server = xyes], # # The purpose of this function is to assemble command line options # for the rpmbuild command based on the options passed to the configure -# script, and also upon the descisions that configure makes based on +# script, and also upon the decisions that configure makes based on # the tests that it runs. # These strings can be passed to rpmbuild on the command line # in the Make targets named "rpms" and "srpm". @@ -511,6 +511,9 @@ CONFIGURE_ARGS= eval set -- $ac_configure_args for arg; do case $arg in + --*dir=* ) ;; + -C | --cache-file=* ) ;; + --prefix=* | --*-prefix=* ) ;; --enable-dist ) ;; --with-release=* ) ;; --with-kmp-moddir=* ) ;; @@ -521,6 +524,7 @@ for arg; do --enable-tests | --disable-tests ) ;; --enable-utils | --disable-utils ) ;; --enable-iokit | --disable-iokit ) ;; + --enable-dlc | --disable-dlc ) ;; * ) CONFIGURE_ARGS="$CONFIGURE_ARGS '$arg'" ;; esac done @@ -577,11 +581,9 @@ if test x$enable_zfs = xyes ; then fi if test x$enable_iokit != xyes ; then RPMBINARGS="$RPMBINARGS --without lustre_iokit" - RPMSRCARGS="$RPMSRCARGS --without lustre_iokit" fi -if test x$BUILD_DLC != xyes ; then - RPMBINARGS="$RPMBINARGS --without lnet_dlc" - RPMSRCARGS="$RPMSRCARGS --without lnet_dlc" +if test x$USE_DLC = xyes ; then + RPMBINARGS="$RPMBINARGS --with lnet_dlc" fi RPMBUILD_BINARY_ARGS=$RPMBINARGS @@ -624,6 +626,12 @@ LC_CONFIG_CLIENT LB_CONFIG_MPITESTS LB_CONFIG_SERVERS +AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], []) +if test "x$RST2MAN" = "x"; then + AC_MSG_ERROR( + [rst2man is needed to build the man pages. Install python-docutils.]) +fi + # Tests depends from utils (multiop from liblustreapi) AS_IF([test "x$enable_utils" = xno], [enable_tests="no"])