diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-11-05 20:31:53 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-11-05 20:31:53 +0000 |
| commit | e3c8a3d852dc9ecce5c282022bcfe3166a4a788e (patch) | |
| tree | 80e9f18b7cebd10f7b07abfc3e9a29f657a4d5d4 /qpid/cpp | |
| parent | bb9160e892017cd58a14b9eb0ebd282e787229d5 (diff) | |
| download | qpid-python-e3c8a3d852dc9ecce5c282022bcfe3166a4a788e.tar.gz | |
NO-JIRA: Stop linking libpython with everything when doing autoconf builds for
versions of python that do not have a pkg-config file.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1405939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac index 4d39b87879..e7e8053f43 100644 --- a/qpid/cpp/configure.ac +++ b/qpid/cpp/configure.ac @@ -210,10 +210,11 @@ AS_IF([test -n "$PYTHON"], [ # location AC_MSG_WARN([Didn't find Python 2.7 developer libs - looking for older version]) PYTHON_INC=$($PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()') - AC_CHECK_LIB([python$PYTHON_VERSION],[Py_Initialize]) + AC_CHECK_LIB([python$PYTHON_VERSION],[Py_Initialize],[ + PYTHON_LIBS="-lpython$PYTHON_VERSION" + ]) AC_CHECK_FILE(["$PYTHON_INC/Python.h"],[ PYTHON_CFLAGS="-I$PYTHON_INC" - PYTHON_LIBS="-lpython$PYTHON_VERSION" have_python_dev=yes ],[ if test yes = "$with_python" ; then |
