qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1405939 - /qpid/trunk/qpid/cpp/configure.ac
Date Mon, 05 Nov 2012 20:31:54 GMT
Author: astitcher
Date: Mon Nov  5 20:31:53 2012
New Revision: 1405939

URL: http://svn.apache.org/viewvc?rev=1405939&view=rev
Log:
NO-JIRA: Stop linking libpython with everything when doing autoconf builds for
versions of python that do not have a pkg-config file.

Modified:
    qpid/trunk/qpid/cpp/configure.ac

Modified: qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/configure.ac?rev=1405939&r1=1405938&r2=1405939&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/configure.ac (original)
+++ qpid/trunk/qpid/cpp/configure.ac Mon Nov  5 20:31:53 2012
@@ -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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message