diff options
-rw-r--r-- | configure.ac | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 91bbe755a..0dd74a690 100644 --- a/configure.ac +++ b/configure.ac @@ -148,7 +148,34 @@ AC_ARG_ENABLE([python], esac], [enable_python=yes] ) + +AC_ARG_ENABLE([tcl], + [AS_HELP_STRING([--enable-tcl], + [generate SWIG/Tcl components (default is yes)])], + [case "${enableval}" in + yes) enable_tcl=yes ;; + no) enable_tcl=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-tcl]) ;; + esac], + [enable_tcl=no] +) + +AC_ARG_ENABLE([guile], + [AS_HELP_STRING([--enable-guile], + [generate SWIG/Guile components (default is yes)])], + [case "${enableval}" in + yes) enable_guile=yes ;; + no) enable_guile=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-guile]) ;; + esac], + [enable_guile=no] +) +if test x${enable_guile} = xno -a x${enable_tcl} = xno; then + enable_python=yes +fi AM_CONDITIONAL([PYTHON], [test x$enable_python = xyes]) +AM_CONDITIONAL([TCL], [test x$enable_tcl = xyes]) +AM_CONDITIONAL([GUILE], [test x$enable_guile = xyes]) AC_CHECK_PROG([XMLTO],[xmlto],[yes],[]) AM_CONDITIONAL([HAS_XMLTO], [test x$XMLTO = xyes]) @@ -402,7 +429,7 @@ AC_SUBST(with_LIBDIRPATH) AC_CONFIG_FILES([\ Makefile \ run_tests.sh \ - config/Makefile \ + config/Makefile ]) dnl run_tests.sh is created from run_tests.sh.in . Make it executable. |