From 122284bd770a88874510d8bfd3f213ecf0a2635a Mon Sep 17 00:00:00 2001 From: James Cameron Date: Thu, 27 Feb 2020 11:58:19 +1100 Subject: [PATCH] Build by default for python 3 5fa33b2 introduced build for either python 2 or python 3, with the default of python 2. `configure` and `autogen.sh` now accept `--with-python3` or `--with-python2` options, with the default of python 3. Signed-off-by: James Cameron --- configure.ac | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 12f50abd..808ef2b0 100644 --- a/configure.ac +++ b/configure.ac @@ -16,16 +16,16 @@ GNOME_COMPILE_WARNINGS(maximum) AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal]) AC_ARG_WITH([python2], - AS_HELP_STRING([--with-python2], [build for Python 2 (default)]), - [], [with_python2=unset]) + AS_HELP_STRING([--with-python2], [build for Python 2]), + [with_python3=no], [with_python2=unset]) AC_ARG_WITH([python3], - AS_HELP_STRING([--with-python3], [build for Python 3]), - [with_python2=no], [with_python3=unset]) + AS_HELP_STRING([--with-python3], [build for Python 3 (default)]), + [], [with_python3=unset]) -AS_IF([test "x$with_python2" != xno], - [AM_PATH_PYTHON([2.7])], - [AS_IF([test "x$with_python3" = xyes], [AM_PATH_PYTHON([3])],)]) +AS_IF([test "x$with_python3" != xno], + [AM_PATH_PYTHON([3])], + [AS_IF([test "x$with_python2" = xyes], [AM_PATH_PYTHON([2.7])],)]) PKG_CHECK_MODULES(EXT, gtk+-3.0 gdk-3.0 gdk-pixbuf-2.0 sm ice alsa librsvg-2.0 xfixes xi x11)