X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=config%2Flustre-build.m4;h=81e7644788d73c81af5b23bbef46c99403f4069a;hp=2f6a98cba493ce6bc80e7fec75d078b0a402fc6a;hb=b2e73f26c73f32db81458253ac319d60d4e3a4bf;hpb=dad844c741166945d9443d7649b7568cddedb531 diff --git a/config/lustre-build.m4 b/config/lustre-build.m4 index 2f6a98c..81e7644 100644 --- a/config/lustre-build.m4 +++ b/config/lustre-build.m4 @@ -210,6 +210,18 @@ AC_ARG_ENABLE([tests], AC_HELP_STRING([--disable-tests], [disable building of Lustre tests]), [], [enable_tests="yes"]) + +# +# Check to see if we can build the lutf +# +AX_PYTHON_DEVEL() +AS_IF([test "x$PYTHON_VERSION_CHECK" = xno], [ + enable_lutf="no" +], [ + AX_PKG_SWIG(2.0, [ enable_lutf="yes" ], + [ enable_lutf="no" ]) +]) + AC_MSG_RESULT([$enable_tests]) ]) # LB_CONFIG_TESTS @@ -427,6 +439,7 @@ AM_CONDITIONAL([USE_QUILT], [test x$use_quilt = xyes]) AM_CONDITIONAL([RHEL], [test -f /etc/redhat-release]) AM_CONDITIONAL([SUSE], [test -f /etc/SUSE-brand -o -f /etc/SuSE-release]) AM_CONDITIONAL([UBUNTU], [test x$UBUNTU_KERNEL = xyes]) +AM_CONDITIONAL([BUILD_LUTF], [test x$enable_lutf = xyes]) LN_CONDITIONALS LC_CONDITIONALS @@ -555,6 +568,9 @@ fi if test x$enable_tests != xyes ; then RPMBINARGS="$RPMBINARGS --without lustre_tests" fi +if test x$enable_lutf != xyes ; then + RPMBINARGS="$RPMBINARGS --without lustre_tests_lutf" +fi if test x$enable_utils != xyes ; then RPMBINARGS="$RPMBINARGS --without lustre_utils" fi