tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robbin...@apache.org
Subject svn commit: r448865 - in /incubator/tuscany/cpp/sca: configure.ac runtime/extensions/Makefile.am
Date Fri, 22 Sep 2006 08:44:15 GMT
Author: robbinspg
Date: Fri Sep 22 01:44:14 2006
New Revision: 448865

URL: http://svn.apache.org/viewvc?view=rev&rev=448865
Log:
Build extensions optionally

./configure with:
 --enable-python to build python extension
 --enable-ruby to build ruby extension
 --enable-php to build php extension

The base ./build.sh does not specify these options so the extensions will NOT be built by
default

Modified:
    incubator/tuscany/cpp/sca/configure.ac
    incubator/tuscany/cpp/sca/runtime/extensions/Makefile.am

Modified: incubator/tuscany/cpp/sca/configure.ac
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/configure.ac?view=diff&rev=448865&r1=448864&r2=448865
==============================================================================
--- incubator/tuscany/cpp/sca/configure.ac (original)
+++ incubator/tuscany/cpp/sca/configure.ac Fri Sep 22 01:44:14 2006
@@ -41,6 +41,55 @@
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([getcwd putenv strdup])
 # AC_CONFIG_SUBDIRS([samples])
+
+AC_MSG_CHECKING(whether to build Python extension)
+AC_ARG_ENABLE(python, [  --enable-python  enable python. default=no],
+[ case "${enableval}" in
+  no)
+    AC_MSG_RESULT(no)
+    want_python=false
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    want_python=true
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+AM_CONDITIONAL([WANT_PYTHON], [test x$want_python = xtrue])
+
+AC_MSG_CHECKING(whether to build Ruby extension)
+AC_ARG_ENABLE(ruby, [  --enable-ruby  enable ruby. default=no],
+[ case "${enableval}" in
+  no)
+    AC_MSG_RESULT(no)
+    want_ruby=false
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    want_ruby=true
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+AM_CONDITIONAL([WANT_RUBY], [test x$want_ruby = xtrue])
+
+AC_MSG_CHECKING(whether to build PHP extension)
+AC_ARG_ENABLE(php, [  --enable-php  enable php. default=no],
+[ case "${enableval}" in
+  no)
+    AC_MSG_RESULT(no)
+    want_php=false
+    ;;
+  *)
+    AC_MSG_RESULT(yes)
+    want_php=true
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
+AM_CONDITIONAL([WANT_PHP], [test x$want_php = xtrue])
+
 AC_CONFIG_FILES([Makefile
                  tools/Makefile
                  tools/scagen/Makefile

Modified: incubator/tuscany/cpp/sca/runtime/extensions/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/Makefile.am?view=diff&rev=448865&r1=448864&r2=448865
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/Makefile.am Fri Sep 22 01:44:14 2006
@@ -1 +1,10 @@
-SUBDIRS = cpp ws python ruby php
+if WANT_PYTHON
+  PYTHON_EXTENSION = python
+endif
+if WANT_RUBY
+  RUBY_EXTENSION = ruby
+endif
+if WANT_PHP
+  PHP_EXTENSION = php
+endif
+SUBDIRS = cpp ws ${PYTHON_EXTENSION} ${RUBY_EXTENSION} ${PHP_EXTENSION}



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message