From: Tomi Ollila Date: Fri, 22 Jan 2016 22:01:53 +0000 (+0200) Subject: [PATCH] configure: pass HAVE_TIMEGM to build X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2392c358df53a9b3ff54bbc888a06e31ddbb415b;p=notmuch-archives.git [PATCH] configure: pass HAVE_TIMEGM to build --- diff --git a/05/27e735c43c61a0b8a407134b38fc0a9665ff52 b/05/27e735c43c61a0b8a407134b38fc0a9665ff52 new file mode 100644 index 000000000..0bcea3fce --- /dev/null +++ b/05/27e735c43c61a0b8a407134b38fc0a9665ff52 @@ -0,0 +1,86 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 642926DE0C42 + for ; Fri, 22 Jan 2016 14:01:48 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.064 +X-Spam-Level: +X-Spam-Status: No, score=0.064 tagged_above=-999 required=5 tests=[AWL=0.604, + RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id xzAeshWCelkh for ; + Fri, 22 Jan 2016 14:01:45 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 79D286DE0B38 + for ; Fri, 22 Jan 2016 14:01:45 -0800 (PST) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id D82E0100090; Sat, 23 Jan 2016 00:01:54 +0200 (EET) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Cc: tomi.ollila@iki.fi +Subject: [PATCH] configure: pass HAVE_TIMEGM to build +Date: Sat, 23 Jan 2016 00:01:53 +0200 +Message-Id: <1453500113-13315-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 2.6.4 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 22 Jan 2016 22:01:48 -0000 + +Checking the existence of timegm() function and setting +configure internal variable ${have_timegm} was done, but +actually defining HAVE_TIMEGM in build was not done -- +meaning that compat timegm() was always part of final +notmuch binaries. +--- + configure | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/configure b/configure +index abd28da..a79f6bd 100755 +--- a/configure ++++ b/configure +@@ -969,6 +969,10 @@ HAVE_STRCASESTR = ${have_strcasestr} + # build its own version) + HAVE_STRSEP = ${have_strsep} + ++# Whether the timegm function is available (if not, then notmuch will ++# build its own version) ++HAVE_TIMEGM = ${have_timegm} ++ + # Whether struct dirent has d_type (if not, then notmuch will use stat) + HAVE_D_TYPE = ${have_d_type} + +@@ -1041,6 +1045,7 @@ CONFIGURE_CFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS) \\ + \$(VALGRIND_CFLAGS) \\ + -DHAVE_STRCASESTR=\$(HAVE_STRCASESTR) \\ + -DHAVE_STRSEP=\$(HAVE_STRSEP) \\ ++ -DHAVE_TIMEGM=\$(HAVE_TIMEGM) \\ + -DHAVE_D_TYPE=\$(HAVE_D_TYPE) \\ + -DSTD_GETPWUID=\$(STD_GETPWUID) \\ + -DSTD_ASCTIME=\$(STD_ASCTIME) \\ +@@ -1054,6 +1059,7 @@ CONFIGURE_CXXFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS) \\ + \$(VALGRIND_CFLAGS) \$(XAPIAN_CXXFLAGS) \\ + -DHAVE_STRCASESTR=\$(HAVE_STRCASESTR) \\ + -DHAVE_STRSEP=\$(HAVE_STRSEP) \\ ++ -DHAVE_TIMEGM=\$(HAVE_TIMEGM) \\ + -DHAVE_D_TYPE=\$(HAVE_D_TYPE) \\ + -DSTD_GETPWUID=\$(STD_GETPWUID) \\ + -DSTD_ASCTIME=\$(STD_ASCTIME) \\ +-- +1.9.3 +