[Libreoffice-commits] .: configure.in
Tor Lillqvist
tml at kemper.freedesktop.org
Sun Apr 15 06:41:28 PDT 2012
configure.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 10acafe29e02a4fc307c085f7b550bd2281f482c
Author: Tor Lillqvist <tml at iki.fi>
Date: Sun Apr 15 15:38:47 2012 +0200
Guard against lack of pkg-config in one more place
diff --git a/configure.in b/configure.in
index bac6866..01b86c2 100644
--- a/configure.in
+++ b/configure.in
@@ -6294,7 +6294,10 @@ if test $enable_python = system; then
python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
python_libs=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'));"`
python_libdir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'));"`
- if $PKG_CONFIG --exists python-$python_version; then
+ if test -z "$PKG_CONFIG"; then
+ PYTHON_CFLAGS="-I$python_include"
+ PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
+ elif $PKG_CONFIG --exists python-$python_version; then
PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version`"
PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version` $python_libs"
else
More information about the Libreoffice-commits
mailing list