1 Return-Path: <tomi.ollila@iki.fi>
\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 9CF21431FAF
\r
6 for <notmuch@notmuchmail.org>; Tue, 10 Apr 2012 10:26:38 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 4tV0oZ8xkJ2D for <notmuch@notmuchmail.org>;
\r
16 Tue, 10 Apr 2012 10:26:36 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 3393B431FAE
\r
19 for <notmuch@notmuchmail.org>; Tue, 10 Apr 2012 10:26:36 -0700 (PDT)
\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)
\r
21 id 789A568055; Tue, 10 Apr 2012 20:26:33 +0300 (EEST)
\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
23 To: Vladimir Marek <Vladimir.Marek@Oracle.COM>,
\r
24 Notmuch Mail <notmuch@notmuchmail.org>
\r
25 Subject: Re: [PATCH 1/4] Make configure use /bin/bash instead of /bin/sh
\r
26 In-Reply-To: <20120409121930.GA10554@pub.czech.sun.com>
\r
27 References: <1333966665-10469-1-git-send-email-Vladimir.Marek@oracle.com>
\r
28 <1333966665-10469-2-git-send-email-Vladimir.Marek@oracle.com>
\r
29 <CAB+hUn9eVVBN7xzMSUT6kB2+MNn8H6KoKuxGDOwck0sgp9qgmw@mail.gmail.com>
\r
30 <20120409121930.GA10554@pub.czech.sun.com>User-Agent:
\r
31 Notmuch/0.12+77~gee11800 (http://notmuchmail.org) Emacs/23.3.1
\r
32 (x86_64-unknown-linux-gnu)
\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
34 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
35 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
36 Date: Tue, 10 Apr 2012 20:26:33 +0300
\r
37 Message-ID: <m2ehrv4hx2.fsf@guru.guru-group.fi>
\r
39 Content-Type: text/plain; charset=us-ascii
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Tue, 10 Apr 2012 17:26:38 -0000
\r
54 On Mon, Apr 09 2012, Vladimir Marek wrote:
\r
56 >> > Posix /bin/sh is not capable of running this configure and fails.
\r
58 >> What fails? What would it take to make this work on posix sh instead?
\r
60 >> The tests do require bash, but generally I think it would be preferable to
\r
61 >> not depend on bash to build.
\r
63 > Well I gave it a quick stab. This is not posix:
\r
74 http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
\r
76 all of those are part of Shell Command Language...
\r
78 Does the configure script work if you replace /bin/sh with /bin/ksh
\r
81 If yes, something like the following could be added to the beginning
\r
85 if test ! x"${option$*=}" = x"value" 2>/dev/null; then
\r
86 if test x"${PREVENT_LOOPING-}" = x; then
\r
87 PREVENT_LOOPING=true; export PREVENT_LOOPING
\r
88 test ! -x /bin/ksh || exec /bin/ksh "$0" "$@"
\r
89 test ! -x /bin/bash || exec /bin/bash "$0" "$@"
\r
91 echo "Cannot find compatible shell for '$0'" >&2
\r
98 > First two cases are easy to replace by `...` resp `expr ...`. The rest
\r
99 > leads to external utility like sed. The dirtiest part of configure is
\r
100 > parsing the commandline arguments, but that could be replaced by
\r
101 > /usr/bin/getopts.
\r
103 > If it is appealing way of doing that, I can rework my patch and submit
\r
104 > it for consideration.
\r
109 > _______________________________________________
\r
110 > notmuch mailing list
\r
111 > notmuch@notmuchmail.org
\r
112 > http://notmuchmail.org/mailman/listinfo/notmuch
\r