chiark / gitweb /
disable Python/Guile wrappers unless --enable-shared
authorstevenj <stevenj@alum.mit.edu>
Mon, 14 Jun 2010 18:37:16 +0000 (14:37 -0400)
committerstevenj <stevenj@alum.mit.edu>
Mon, 14 Jun 2010 18:37:16 +0000 (14:37 -0400)
darcs-hash:20100614183716-c8de0-9cba4159abbf8bc1d3e73c76341331116b6bfbb3.gz

configure.ac

index d136de58ebe45cc94ca9acba508d375a5f53481b..b83d0516eefd6c365f310f28c975a86c532e6b34 100644 (file)
@@ -91,6 +91,10 @@ fi
 dnl -----------------------------------------------------------------------
 dnl SWIG wrappers
 
+if test "$enable_shared" = no; then
+   AC_MSG_WARN([Python and Guile wrappers require --enable-shared; disabling])
+else
+
 dnl Guile:
 AC_CHECK_PROG(GUILE_CONFIG, guile-config, guile-config, unknown)
 if test "x$GUILE_CONFIG" = "xunknown"; then
@@ -141,6 +145,8 @@ if test $have_python = yes; then
 fi
 AM_CONDITIONAL(WITH_PYTHON, test x"$have_python" = "xyes")
 
+fi
+
 dnl -----------------------------------------------------------------------
 dnl Compiling Octave plug-in