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 arlo.cworth.org (Postfix) with ESMTP id 20D5B6DE13EA
\r
6 for <notmuch@notmuchmail.org>; Wed, 20 May 2015 01:38:01 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=1.053 tagged_above=-999 required=5 tests=[AWL=0.401,
\r
12 SPF_NEUTRAL=0.652] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id Bbs_IibtyAQ0 for <notmuch@notmuchmail.org>;
\r
16 Wed, 20 May 2015 01:37:55 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by arlo.cworth.org (Postfix) with ESMTP id 0C6F96DE13DA
\r
19 for <notmuch@notmuchmail.org>; Wed, 20 May 2015 01:37:55 -0700 (PDT)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id 0E7631000F2;
\r
22 Wed, 20 May 2015 11:37:29 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: David Bremner <david@tethera.net>, David Bremner <david@tethera.net>,
\r
25 Ronny Chevalier <chevalier.ronny@gmail.com>
\r
26 Subject: Re: [PATCH] configure: Add sanity checking for environment variables
\r
27 In-Reply-To: <1432109551-16861-1-git-send-email-david@tethera.net>
\r
28 References: <m2617onuhh.fsf@guru.guru-group.fi>
\r
29 <1432109551-16861-1-git-send-email-david@tethera.net>
\r
30 User-Agent: Notmuch/0.19+115~g9a981cb (http://notmuchmail.org) Emacs/24.3.1
\r
31 (x86_64-unknown-linux-gnu)
\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
33 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
34 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
35 Date: Wed, 20 May 2015 11:37:28 +0300
\r
36 Message-ID: <m2oalftzjr.fsf@guru.guru-group.fi>
\r
38 Content-Type: text/plain
\r
39 Cc: notmuch@notmuchmail.org
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.18
\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: Wed, 20 May 2015 08:38:01 -0000
\r
54 On Wed, May 20 2015, David Bremner <david@tethera.net> wrote:
\r
56 > Passing in environment variables incompatible with the compiler may
\r
57 > cause other parts of the configure script to fail in hard to
\r
58 > understand ways, so we abort early.
\r
61 > meh, the previous version was borken by lazy evaluation of CXXFLAGS
\r
62 > using make syntax. Better suggestions for how to do this?
\r
64 > configure | 31 +++++++++++++++++++++++++++++--
\r
65 > 1 file changed, 29 insertions(+), 2 deletions(-)
\r
67 > diff --git a/configure b/configure
\r
68 > index 4af7ba9..650b976 100755
\r
71 > @@ -269,6 +269,35 @@ dependencies are available:
\r
75 > +printf "int main(void){return 0;}\n" > minimal.c
\r
77 > +printf "Sanity checking C compilation environment... "
\r
78 > +if ${CC} ${CFLAGS} ${CPPFLAGS} minimal.c ${LDFLAGS} -o minimal > /dev/null 2>&1
\r
80 still 2 spaces ----------------^
\r
85 > + printf "Fail.\n"
\r
86 > + errors=$((errors + 1))
\r
89 > +printf "Sanity checking C++ compilation environment... "
\r
90 > +if ${CXX} ${CXXFLAGS_for_sh} ${CPPFLAGS} minimal.c ${LDFLAGS} -o minimal > /dev/null 2>&1
\r
92 ${CXXFLAGS:-$CFLAGS} ?
\r
97 > + printf "Fail.\n"
\r
98 > + errors=$((errors + 1))
\r
101 > +if [ $errors -gt 0 ]; then
\r
103 > +*** Error: Initial sanity checking of environment failed. Please try
\r
104 > +running configure in a clean environment, and if the problem persists,
\r
107 > + rm -f minimal minimal.c
\r
111 > if pkg-config --version > /dev/null 2>&1; then
\r
112 > have_pkg_config=1
\r
113 > @@ -690,8 +719,6 @@ else
\r
115 > rm -f compat/check_asctime
\r
117 > -printf "int main(void){return 0;}\n" > minimal.c
\r
119 > printf "Checking for rpath support... "
\r
120 > if ${CC} -Wl,--enable-new-dtags -Wl,-rpath,/tmp/ -o minimal minimal.c >/dev/null 2>&1
\r
125 > _______________________________________________
\r
126 > notmuch mailing list
\r
127 > notmuch@notmuchmail.org
\r
128 > http://notmuchmail.org/mailman/listinfo/notmuch
\r