From: stevenj Date: Mon, 14 Jun 2010 18:37:16 +0000 (-0400) Subject: disable Python/Guile wrappers unless --enable-shared X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6774ac0f5aa09b1a4a1555d1b68ed3499e6bc316;p=nlopt.git disable Python/Guile wrappers unless --enable-shared darcs-hash:20100614183716-c8de0-9cba4159abbf8bc1d3e73c76341331116b6bfbb3.gz --- diff --git a/configure.ac b/configure.ac index d136de5..b83d051 100644 --- a/configure.ac +++ b/configure.ac @@ -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