From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10367 invoked by alias); 5 May 2008 14:12:14 -0000 Received: (qmail 10356 invoked by uid 22791); 5 May 2008 14:12:14 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 May 2008 14:11:52 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id 052DC3900EA for ; Mon, 5 May 2008 10:57:36 -0300 (BRST) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m45EAYuH2342996 for ; Mon, 5 May 2008 11:10:43 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m45EAQik029772 for ; Mon, 5 May 2008 11:10:26 -0300 Received: from [9.18.238.95] (dyn531828.br.ibm.com [9.18.238.95]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m45EAQS2029733; Mon, 5 May 2008 11:10:26 -0300 Subject: Re: [RFC][patch 1/9] initial Python support From: Thiago Jung Bauermann To: Daniel Jacobowitz Cc: gdb-patches@sourceware.org In-Reply-To: <20080505131026.GB27076@caradoc.them.org> References: <20080429155212.444237503@br.ibm.com> <20080429155304.288626880@br.ibm.com> <1209963038.25743.14.camel@localhost.localdomain> <20080505131026.GB27076@caradoc.them.org> Content-Type: text/plain Date: Mon, 05 May 2008 14:46:00 -0000 Message-Id: <1209996380.25743.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2008-05/txt/msg00205.txt.bz2 On Mon, 2008-05-05 at 09:10 -0400, Daniel Jacobowitz wrote: > On Mon, May 05, 2008 at 01:50:38AM -0300, Thiago Jung Bauermann wrote: > > % ../configure --with-libpython2.5-prefix=/blah > > configure: error: invalid package name: libpython2.5-prefix > > Do we even want this option? I don't care much about it... > Maybe we just want > --with-python, --without-python, and --with-python=/path. The last one isn't implemented by the AC_ARG_WITH option, IIUC. I'd have to explicitly implement it. Would it work work just like --with-libpython2.5-prefix? Why would it be less problematic and less complicated? > BTW, could you do me a favor... make GDB fail to build if > --with-python is specified on the command line but Python could not be > found. That's how I made it. > IMO the default should be "use python if > we find it", but with --with-python it should be "use python or go > boom". % ../src/configure --with-python [big snip] checking whether to use python... yes checking for libpython2.5... no checking for libpython2.4... no configure: error: python is missing or unusable make[1]: *** [configure-gdb] Error 1 make[1]: Leaving directory `/tmp/master-build' make: *** [all] Error 2 Boom. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center