summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-26 19:35:52 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-26 19:35:52 +0200
commitdaa4ece949d7deb36c3c061b3abda8dc43f46ad6 (patch)
tree3860094d0eec12a7727db86721bb88bbddfb1a70
parent56e661ca3a26b2235acb420e59a19034f1fa895d (diff)
build-sys: do not compile python binding with windows by default
-rw-r--r--configure.ac24
1 files changed, 10 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 7471540..c42066f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -572,22 +572,18 @@ AM_CONDITIONAL(WITH_VALA, [test "x$enable_vala" = "xyes"])
VAPIDIR="${datadir}/vala/vapi"
AC_SUBST(VAPIDIR)
+
AC_ARG_WITH([python],
- AS_HELP_STRING([--with-python], [build python bindings @<:@default=yes@:>@]),
- [case "${withval}" in
- yes|no) ;;
- *) AC_MSG_ERROR([bad value ${withval} for python option]) ;;
+ AS_HELP_STRING([--with-python], [build python bindings @<:@default=auto@:>@]),
+ [case "$withval" in
+ yes|no) with_python="$withval";;
+ *) AC_MSG_ERROR([bad value $withval for python option]) ;;
esac],
- [withval=yes])
-
-if test "$with_gtk" = "3.0"
-then
- WITH_PYTHON=no
-else
- WITH_PYTHON=$withval
-fi
+ [AS_IF([test "$with_gtk" = "3.0" -o test "x$os_win32=xyes"],
+ [with_python=no])]
+)
-if test "$WITH_PYTHON" = "yes"; then
+if test "x$with_python" = "xyes"; then
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.0.0)
AC_SUBST(PYGTK_CFLAGS)
AC_SUBST(PYGTK_LIBS)
@@ -615,7 +611,7 @@ if test "$WITH_PYTHON" = "yes"; then
fi
fi
-AM_CONDITIONAL(WITH_PYTHON, [test "$WITH_PYTHON" = "yes"])
+AM_CONDITIONAL(WITH_PYTHON, [test "x$with_python" = "xyes"])
AC_ARG_ENABLE([dbus],