summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2020-07-05 18:53:20 +0300
committerTor Lillqvist <tml@collabora.com>2020-11-15 10:37:44 +0100
commit1008cb39e8e7f69f64862747a65f4de8f7998a3a (patch)
tree4e203c3553376cea37b441d5949b9338111b68b4
parent7369376a0f254da50c8fa273e454dbe87de009f2 (diff)
Allow also --disable-python on macOS
Change-Id: I27cdd86a730a042d6e846c90319c306f5a3b35ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98159 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105875 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4efb2c3381df..1f120e9ba9e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8710,6 +8710,10 @@ AC_SUBST(XMLLINT)
# Optionally user can pass an option to configure, i. e.
# ./configure PYTHON=/usr/bin/python
# =====================================================================
+if test $_os = Darwin -a "$enable_python" != no -a "$enable_python" != fully-internal -a "$enable_python" != internal; then
+ # Only allowed choices for macOS are 'no', 'internal' (default), and 'fully-internal'
+ enable_python=internal
+fi
if test "$build_os" != "cygwin" -a "$enable_python" != fully-internal; then
if test -n "$PYTHON"; then
PYTHON_FOR_BUILD=$PYTHON