--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 4254E431FC2\r
+ for <notmuch@notmuchmail.org>; Sun, 20 Oct 2013 07:51:10 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 2Sgv-O53NEad for <notmuch@notmuchmail.org>;\r
+ Sun, 20 Oct 2013 07:50:59 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 82263431FC0\r
+ for <notmuch@notmuchmail.org>; Sun, 20 Oct 2013 07:50:59 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 6058110007D;\r
+ Sun, 20 Oct 2013 17:50:48 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Claudio Bley <claudio.bley@googlemail.com>\r
+Subject: Re: notmuch on w32\r
+In-Reply-To:\r
+ <CAMP44s3UeDJVYY+qDjyJ6qKOWZ59tyGzj776HrGh=wMV_JvnvQ@mail.gmail.com>\r
+References: <87mwm71x91.wl%claudio.bley@gmail.com>\r
+ <87bo2lvxx3.fsf@zancas.localnet>\r
+ <CAMP44s3UeDJVYY+qDjyJ6qKOWZ59tyGzj776HrGh=wMV_JvnvQ@mail.gmail.com>\r
+User-Agent: Notmuch/0.16+112~g46b74be (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Sun, 20 Oct 2013 17:50:48 +0300\r
+Message-ID: <m2k3h86lo7.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 20 Oct 2013 14:51:10 -0000\r
+\r
+On Sat, Oct 19 2013, Felipe Contreras <felipe.contreras@gmail.com> wrote:\r
+\r
+> On Sat, Oct 19, 2013 at 2:54 PM, David Bremner <david@tethera.net> wrote:\r
+>> Claudio Bley <claudio.bley@googlemail.com> writes:\r
+>>\r
+>>> I wanted to use notmuch on MS Windows and thus have ported the code to\r
+>>> be able to compile with MinGW and MSYS using the GNU autotools on that\r
+>>> platform.\r
+>>\r
+>> Do you really need autotools, or was it just the easiest path to get\r
+>> things working on w32?\r
+>\r
+> No, you don't. I've compiled many things for Windows using MinGW, and\r
+> you don't need autotools.\r
+\r
+Me too, using the current configure script with MSYS bash should be no\r
+problem (if there is I'm interested to know where). \r
+\r
+I'd suggest you do a system that attaches to the current system with as\r
+small changes as possible (so you get reviewers) and put all windows\r
+specific things to separate script(s) (which is executed *only* when windows\r
+build is detected). The gnulib dependency could be handled so that in \r
+case (ext/*)gnulib directory does not exist, first\r
+'git clone git://git.savannah.gnu.org/gnulib.git' is done -- and then\r
+a specific commit is checked out from the clone (git reset --hard <hash>)\r
+This way we get an exact working tree from gnulib but only when someone\r
+attempts to do w32 build (if there are some licensing issues (copyright\r
+assignment papers???) we can require user to manually execute the script\r
+which checks out the repository, maybe with magic command line argument)\r
+A draft of a checkout script is at the end of this email.\r
+(If you desire to build required parts using autotools in your custom\r
+script please do so. In any case nobody will take the responsibility\r
+to support the w32 build :D)\r
+\r
+\r
+Tomi\r
+\r
+>\r
+> In fact, autotools makes things worst (as usual), by requiring m4,\r
+> perl, and bunch of heavy dependencies.\r
+>\r
+> % make CROSS_COMPILE=i486-mingw32-\r
+>\r
+> -- \r
+> Felipe Contreras\r
+\r
+--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--\r
+\r
+#!/bin/sh\r
+\r
+set -eux\r
+\r
+# commit 9f15e6702a27649a59263a7ed571805a979d9e70\r
+# Author: Eric Blake <eblake@redhat.com>\r
+# Date: Fri Oct 18 10:30:42 2013 -0600\r
+\r
+commit=9f15e6702a27649a59263a7ed571805a979d9e70\r
+\r
+test -d ext || mkdir ext\r
+cd ext\r
+test -d gnulib || git clone git://git.savannah.gnu.org/gnulib.git\r
+\r
+cd gnulib\r
+if git reset --hard $commit\r
+then\r
+ :\r
+else\r
+ git fetch origin\r
+ git reset --hard $commit\r
+fi\r