diff options
-rw-r--r-- | configure.ac | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 66e466b5297d..8f9e1c71047a 100644 --- a/configure.ac +++ b/configure.ac @@ -1245,9 +1245,12 @@ AC_ARG_ENABLE(lto, AC_ARG_ENABLE(python, AS_HELP_STRING([--enable-python=<no/auto/system/internal/fully-internal>], [Enables or disables Python support at run-time. - Also specifies what Python to use. 'auto' is the default. + Also specifies what Python to use at build-time. 'fully-internal' even forces the internal version for uses of Python - during the build.])) + during the build. + On macOS the only choices are + 'internal' (default) or 'fully-internal'. Otherwise the default is 'auto'. + ])) libo_FUZZ_ARG_ENABLE(gtk3, AS_HELP_STRING([--disable-gtk3], @@ -8773,6 +8776,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" != fully-internal -a "$enable_python" != internal; then + # Only allowed choices for macOS are '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 |