[PATCH 6/8] CLI: refactor dumping of tags.
[notmuch-archives.git] / 06 / 67cf10604496867f33b5e57314e286fe964914
1 Return-Path: <jrollins@finestructure.net>\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 BD601431FBC\r
6         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 15:57:26 -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 3ogb6WSnPPgQ for <notmuch@notmuchmail.org>;\r
11         Sat, 28 Nov 2009 15:57:25 -0800 (PST)\r
12 Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7])\r
13         by olra.theworths.org (Postfix) with ESMTP id ECC55431FAE\r
14         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 15:57:24 -0800 (PST)\r
15 Received: from servo.finestructure.net (lair.fifthhorseman.net\r
16         [216.254.116.241])\r
17         (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
18         by tarap.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id nASNvNlq010199\r
19         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
20         for <notmuch@notmuchmail.org>; Sat, 28 Nov 2009 18:57:24 -0500 (EST)\r
21 Received: from jrollins by servo.finestructure.net with local (Exim 4.69)\r
22         (envelope-from <jrollins@finestructure.net>)\r
23         id 1NEXAe-0007FZ-2z; Sat, 28 Nov 2009 18:57:44 -0500\r
24 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
25 To: notmuch@notmuchmail.org\r
26 Date: Sat, 28 Nov 2009 18:57:36 -0500\r
27 Message-Id: <1259452657-27608-2-git-send-email-jrollins@finestructure.net>\r
28 X-Mailer: git-send-email 1.6.5\r
29 In-Reply-To: <1259452657-27608-1-git-send-email-jrollins@finestructure.net>\r
30 References: <1259452657-27608-1-git-send-email-jrollins@finestructure.net>\r
31 X-No-Spam-Score: Local\r
32 X-Scanned-By: MIMEDefang 2.65 on 128.59.29.7\r
33 Subject: [notmuch] [PATCH 2/3] add checking for zlib development libraries\r
34         to configure script\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.12\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Sat, 28 Nov 2009 23:57:26 -0000\r
48 \r
49 ---\r
50  configure |   14 +++++++++++++-\r
51  1 files changed, 13 insertions(+), 1 deletions(-)\r
52 \r
53 diff --git a/configure b/configure\r
54 index ab28fa3..1010799 100755\r
55 --- a/configure\r
56 +++ b/configure\r
57 @@ -63,6 +63,15 @@ else\r
58      errors=$((errors + 1))\r
59  fi\r
60  \r
61 +if printf 'int main(){return 0;}' | gcc -x c -lz -o /dev/null - > /dev/null 2>&1; then\r
62 +    echo "Checking for zlib development files... Yes."\r
63 +    have_zlib=1\r
64 +else\r
65 +    echo "Checking for zlib development files... No."\r
66 +    have_zlib=0\r
67 +    errors=$((errors + 1))\r
68 +fi\r
69 +\r
70  if pkg-config --modversion valgrind > /dev/null 2>&1; then\r
71      echo "Checking for valgrind development files... Yes."\r
72      have_valgrind=-DHAVE_VALGRIND\r
73 @@ -91,13 +100,16 @@ EOF\r
74         echo "  The talloc library (including development files such as headers)"\r
75         echo "  http://talloc.samba.org/"\r
76      fi\r
77 +    if [ $have_zlib -eq 0 ]; then\r
78 +       echo "  The zlib library (including development files such as headers)"\r
79 +    fi\r
80      cat <<EOF\r
81  \r
82  On a modern, package-based operating system such as Debian, you can\r
83  install all of the dependencies with the following simple command\r
84  line:\r
85  \r
86 -       sudo apt-get install libxapian-dev libgmime-2.4-dev libtalloc-dev\r
87 +       sudo apt-get install libxapian-dev libgmime-2.4-dev libtalloc-dev libz-dev\r
88  \r
89  On other systems, a similar command can be used, but the details of the \r
90  package names may be different, (such as "devel" in place of "dev").\r
91 -- \r
92 1.6.5\r
93 \r