diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-12-02 11:10:56 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-12-02 11:10:56 +0000 |
commit | 47702c85524afceba520cc3c2d2bc0d9a4e02e40 (patch) | |
tree | 4af410fdae9bca347bdfa23f78ebaa0026e51873 /source4/python | |
parent | 10ad200350e304f1ca7b4080a04f4fe4eeb80763 (diff) | |
download | samba-47702c85524afceba520cc3c2d2bc0d9a4e02e40.tar.gz samba-47702c85524afceba520cc3c2d2bc0d9a4e02e40.tar.bz2 samba-47702c85524afceba520cc3c2d2bc0d9a4e02e40.zip |
Initial step at cleaning and splitting up configure.in.
(This used to be commit 369a9c1ac1ff94a1d3f51eac20a39577f9cf2155)
Diffstat (limited to 'source4/python')
-rw-r--r-- | source4/python/config.m4 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/source4/python/config.m4 b/source4/python/config.m4 new file mode 100644 index 0000000000..6892b4d604 --- /dev/null +++ b/source4/python/config.m4 @@ -0,0 +1,27 @@ +################################################# +# Check if the user wants Python + +# At the moment, you can use this to set which Python binary to link +# against. (Libraries built for Python2.2 can't be used by 2.1, +# though they can coexist in different directories.) In the future +# this might make the Python stuff be built by default. + +# Defaulting python breaks the clean target if python isn't installed + +PYTHON= + +AC_ARG_WITH(python, +[ --with-python=PYTHONNAME build Python libraries], +[ case "${withval-python}" in + yes) + PYTHON=python + EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext" + ;; + no) + PYTHON= + ;; + *) + PYTHON=${withval-python} + ;; + esac ]) +AC_SUBST(PYTHON) |