[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 4e / cb5263f8ac915ebdca43bf9a405fb3c2530b2d
1 Return-Path: <david@tethera.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 30F07431FCB\r
6         for <notmuch@notmuchmail.org>; Sun, 24 Nov 2013 03:57:37 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id FuP5Bi1-hBGP for <notmuch@notmuchmail.org>;\r
16         Sun, 24 Nov 2013 03:57:32 -0800 (PST)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 74822431FC3\r
21         for <notmuch@notmuchmail.org>; Sun, 24 Nov 2013 03:57:32 -0800 (PST)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <david@tethera.net>)\r
24         id 1VkYJb-0006q3-8T; Sun, 24 Nov 2013 07:57:27 -0400\r
25 Received: (nullmailer pid 29436 invoked by uid 1000); Sun, 24 Nov 2013\r
26         11:57:23 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: notmuch sha1 implementation broken on (some) big-endian architectures\r
30 User-Agent: Notmuch/0.17~rc1 (http://notmuchmail.org) Emacs/24.3.1\r
31         (x86_64-pc-linux-gnu)\r
32 Date: Sun, 24 Nov 2013 07:57:22 -0400\r
33 Message-ID: <87eh666mhp.fsf@zancas.localnet>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Sun, 24 Nov 2013 11:57:37 -0000\r
49 \r
50 \r
51 The following code, when linked with libnotmuch.a and libutil.a does a\r
52 passable imitation of sha1sum on amd64 (and I guess also i386) but\r
53 computes a different digest on powerpc and probably sparc and s390x.\r
54 \r
55 In the long run we should maybe outsource hash computations to\r
56 e.g. librhash, but I'd like a simpler fix for 0.17, if possible\r
57 \r
58 P.S. I blame Austin for adding the "missing-headers" test which found\r
59 this bug ;).\r
60 \r
61 /* 8<----------------------------------------- */\r
62 \r
63 #include <stdio.h>\r
64 \r
65 #include "notmuch.h"\r
66 char * notmuch_sha1_of_file(const char* filename);\r
67 \r
68 int\r
69 main (int argc, char **argv)\r
70 {\r
71 \r
72     char *digest = notmuch_sha1_of_file (argv[1]);\r
73 \r
74     printf("%s  %s\n",digest,argv[1]);\r
75     return 0;\r
76 }\r