From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6733 invoked by alias); 30 Jul 2010 15:59:27 -0000 Received: (qmail 6722 invoked by uid 22791); 30 Jul 2010 15:59:26 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Jul 2010 15:59:22 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6UFxFwT012632 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Jul 2010 11:59:15 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6UFxE17008557; Fri, 30 Jul 2010 11:59:14 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o6UFxD07020880; Fri, 30 Jul 2010 11:59:13 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 4BA6F3792BD; Fri, 30 Jul 2010 09:59:13 -0600 (MDT) From: Tom Tromey To: Doug Evans Cc: Michael Snyder , Mike Frysinger , "gdb-patches\@sourceware.org" Subject: Re: FYI: update for Python 2.7 References: <4C4DFDDD.1010203@vmware.com> <201007261738.26882.vapier@gentoo.org> <4C4E07F7.4030409@vmware.com> <4C506398.6090901@vmware.com> Date: Fri, 30 Jul 2010 15:59:00 -0000 In-Reply-To: (Doug Evans's message of "Thu, 29 Jul 2010 17:03:15 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00581.txt.bz2 >>>>> "Doug" == Doug Evans writes: Doug> I'm happy to do it. Thanks for the offer, but I went ahead and did it this morning. Here is what I am checking in. I am putting it on the 7.2 branch as well. Tom 2010-07-30 Tom Tromey * configure: Rebuild. * configure.ac: Add missing case for Python 2.7. Index: configure.ac =================================================================== RCS file: /cvs/src/src/gdb/configure.ac,v retrieving revision 1.127 diff -u -r1.127 configure.ac --- configure.ac 28 Jul 2010 23:24:57 -0000 1.127 +++ configure.ac 30 Jul 2010 15:58:03 -0000 @@ -622,7 +622,7 @@ dnl yes - Include python support, error if it's missing. dnl If we find python in $PATH, use it to fetch configure options, dnl otherwise assume the compiler can find it with no help from us. -dnl Python 2.6, 2.5, and then 2.4 are tried in turn. +dnl Python 2.7, 2.6, 2.5, and then 2.4 are tried in turn. dnl auto - Same as "yes", but if python is missing from the system, dnl fall back to "no". dnl /path/to/python/exec-prefix - @@ -631,7 +631,7 @@ dnl the compilation parameters. Otherwise use dnl -I/path/to/python/exec-prefix/include, dnl -L/path/to/python/exec-prefix/lib. -dnl Python 2.6, 2.5, and then 2.4 are tried in turn. +dnl Python 2.7, 2.6, 2.5, and then 2.4 are tried in turn. dnl NOTE: This case is historical. It is what was done for 7.0/7.1 dnl but is deprecated. dnl /path/to/python/executable - @@ -780,6 +780,10 @@ esac elif test "${have_python_config}" != failed; then if test "${have_libpython}" = no; then + AC_TRY_LIBPYTHON(python2.7, have_libpython, + ${python_includes}, "${python_libs} -lpython2.7") + fi + if test "${have_libpython}" = no; then AC_TRY_LIBPYTHON(python2.6, have_libpython, ${python_includes}, "${python_libs} -lpython2.6") fi