From: Peter Johnson Date: Wed, 3 May 2006 02:47:01 +0000 (-0000) Subject: * configure.ac: Don't error-out configure if Python not found; Python is X-Git-Tag: v0.5.0~9^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=464a53793f803ee4e8b644becc57c1c0507604c1;p=yasm * configure.ac: Don't error-out configure if Python not found; Python is completely optional. Noticed by: Stephen Polkowski svn path=/trunk/yasm/; revision=1518 --- diff --git a/configure.ac b/configure.ac index 80a7a303..1e1e0451 100644 --- a/configure.ac +++ b/configure.ac @@ -264,10 +264,10 @@ if test x$enable_python = xno; then else AC_MSG_NOTICE([Checking to see if we can build Python bindings]) have_python=no - AM_PATH_PYTHON(2.4) + AM_PATH_PYTHON(2.4,[],[AC_MSG_WARN([Python not found])]) - if test -z "$PYTHON" ; then - AC_MSG_WARN([Python not found]) + if test -z "$PYTHON" || test "$PYTHON" = : ; then + have_python=no else AC_MSG_CHECKING([for Pyrex >= 0.9.3]) PYREX_CHECK_VERSION(0.9.3, [AC_MSG_RESULT(yes)