[PATCH v2 4/7] emacs: Improve error handling for notmuch-call-notmuch-json
[notmuch-archives.git] / ad / 24b979d40c3249c5a0bfad7465cbbf83326e46
1 Return-Path: <marten@veldthuis.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 44186431FBC\r
6         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 14:06:49 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id HfR+TuOWI7xK for <notmuch@notmuchmail.org>;\r
11         Fri, 27 Nov 2009 14:06:48 -0800 (PST)\r
12 Received: from mout.perfora.net (mout.perfora.net [74.208.4.195])\r
13         by olra.theworths.org (Postfix) with ESMTP id 67D74431FAE\r
14         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 14:06:48 -0800 (PST)\r
15 Received: from smtp04.online.nl (smtp04.online.nl [194.134.41.34])\r
16         by mx.perfora.net (node=mxus2) with ESMTP (Nemesis)\r
17         id 0LpcRq-1NkkDZ1aje-00fY3H for notmuch@notmuchmail.org;\r
18         Fri, 27 Nov 2009 17:06:47 -0500\r
19 Received: from smtp04.online.nl (localhost [127.0.0.1])\r
20         by smtp04.online.nl (Postfix) with ESMTP id AA1BDE098\r
21         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 23:06:41 +0100 (CET)\r
22 Received: from home.veldthuis.com (s55919504.adsl.wanadoo.nl [85.145.149.4])\r
23         by smtp04.online.nl (Postfix) with ESMTP\r
24         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 23:06:41 +0100 (CET)\r
25 Received: by home.veldthuis.com (Postfix, from userid 501)\r
26         id 999542DA664; Fri, 27 Nov 2009 23:06:40 +0100 (CET)\r
27 Date: Fri, 27 Nov 2009 23:06:40 +0100\r
28 From: Marten Veldthuis <marten@veldthuis.com>\r
29 To: notmuch@notmuchmail.org\r
30 Message-ID: <20091127220640.GA17750@gopher.local>\r
31 Mail-Followup-To: notmuch@notmuchmail.org\r
32 References: <1258983810-27522-2-git-send-email-jeff@ocjtech.us>\r
33         <1259000055-15068-1-git-send-email-jeff@ocjtech.us>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii; format=flowed\r
36 Content-Disposition: inline\r
37 In-Reply-To: <1259000055-15068-1-git-send-email-jeff@ocjtech.us>\r
38 User-Agent: Mutt/1.5.20 (2009-06-14)\r
39 X-Online-Scanned: by Cloudmark authority (on smtp04.online.nl)\r
40 Subject: Re: [notmuch] [PATCH] Add tests to configure script to detect\r
41  strndup and getline\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.12\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Fri, 27 Nov 2009 22:06:49 -0000\r
55 \r
56 On Mon, Nov 23, 2009 at 12:14:15PM -0600, Jeffrey C. Ollie wrote:\r
57 > cat > Makefile.config <<EOF\r
58 > prefix = /usr/local\r
59 > bash_completion_dir = /etc/bash_completion.d\r
60 >-CFLAGS += ${have_valgrind}\r
61 >+CFLAGS += ${have_valgrind} ${strndup} ${getline}\r
62 > EOF\r
63 \r
64 This doesn't seem to do much for me, they don't seem to end up in the args \r
65 passed to g++. I'm no Makefile wizard, so I got notmuch finally compiling by \r
66 simply copy/pasting the ${strndup} and ${getline} from Makefile.config to \r
67 Makefile:\r
68 \r
69 # Now smash together user's values with our extra values\r
70 override CFLAGS += $(WARN_FLAGS) $(extra_cflags) -Dstrndup=_notmuch_strndup \r
71 -Dgetline=_notmuch_getline\r
72 override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags) \r
73 -Dstrndup=_notmuch_strndup -Dgetline=_notmuch_getline\r
74 \r
75 -- \r
76 - Marten\r