[Ocfs2-test-devel] [PATCH 05/11] ocfs2-test: Changed configure.in to built ocfs2-test RPM.

Marcos Matsunaga Marcos.Matsunaga at oracle.com
Fri Nov 7 14:49:33 PST 2008


This add the feature --enable-third-party so that it will not build
the third party software when building RPMs.

Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
---
 configure.in |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 72a8e22..1950cb9 100644
--- a/configure.in
+++ b/configure.in
@@ -6,11 +6,13 @@ PACKAGE=ocfs2-test
 
 AC_SUBST(PACKAGE)
 
+MPICC=`which mpicc`
+INSTALLDIR=/usr/local
 # Adjust these for the software version.
-MAJOR_VERSION=0
+MAJOR_VERSION=1
 MINOR_VERSION=0
 MICRO_VERSION=1
-EXTRA_VERSION=
+EXTRA_VERSION=0
 
 # Adjust this only to bump the RPM packaging version
 RPM_VERSION=1
@@ -113,12 +115,21 @@ PKG_CHECK_MODULES(OCFS2, ocfs2,, [
   AC_SUBST(OCFS2_LIBS)
 ])
 
+AC_MSG_CHECKING(whether to enable third party packages)
+AC_ARG_ENABLE([third-party], [  --enable-third-party=[yes/no]   Enable third party software build (Disabled by default)],, enable_third_party=no)
+OCFS2_TEST_ENABLE_THIRDPARTY=
+if test "x$enable_third_party" = "xyes"; then
+    OCFS2_TEST_ENABLE_THIRDPARTY=yes
+fi
+AC_SUBST(OCFS2_TEST_ENABLE_THIRDPARTY)
+AC_MSG_RESULT($enable_third_party)
 
 dnl check for Python
 AM_PATH_PYTHON(2.3, , AC_MSG_ERROR([could not find Python 2.3 or higher.]))
 
 AC_CONFIG_FILES([
 Config.make
+vendor/common/ocfs2-test.spec-generic
 ])
 
 AC_OUTPUT
-- 
1.5.6.3




More information about the Ocfs2-test-devel mailing list