From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 025A56DE1536 for ; Tue, 14 Feb 2017 14:14:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[AWL=0.000, HEADER_FROM_DIFFERENT_DOMAINS=0.001] 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 qBDNYGmOnS1t for ; Tue, 14 Feb 2017 14:14:25 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 71D636DE1512 for ; Tue, 14 Feb 2017 14:14:25 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cdkrq-0006ub-Ff; Tue, 14 Feb 2017 16:42:34 -0500 Received: (nullmailer pid 9790 invoked by uid 1000); Tue, 14 Feb 2017 21:43:05 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: aidecode@aidecode.name, David Bremner Subject: [PATCH 1/2] configure: add test for gpgconf --create-socketdir Date: Tue, 14 Feb 2017 16:42:38 -0500 Message-Id: <20170214214239.9330-2-david@tethera.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170214214239.9330-1-david@tethera.net> References: <20170214214239.9330-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Tue, 14 Feb 2017 22:14:26 -0000 This is primarily intended for use in the test suite (since notmuch builds fine without gnupg installed). Thus we only write the variable to sh.config. --- configure | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure b/configure index f1773044..46063b5d 100755 --- a/configure +++ b/configure @@ -602,6 +602,19 @@ if [ $WITH_DOCS = "1" ] ; then fi fi +have_gpgconf_socketdir=0 +printf "Checking for gpgconf --{create,remove}-socketdir... " +if gpgconf --dump-options > /dev/null ; then + if gpgconf --dump-options | grep -q create-socketdir ; then + printf "Yes.\n" + have_gpgconf_socketdir=1 + else + printf "No.\n" + fi +else + printf "No. (missing or broken gpgconf?)\n" +fi + libdir_in_ldconfig=0 printf "Checking which platform we are on... " @@ -1179,6 +1192,9 @@ NOTMUCH_PYTHON=${python} # Are the ruby development files (and ruby) available? If not skip # building/testing ruby bindings. NOTMUCH_HAVE_RUBY_DEV=${have_ruby_dev} + +# Recent enough gnupg to support gpgconf --create-socketdir? +NOTMUCH_HAVE_GPGCONF_SOCKETDIR=${have_gpgconf_socketdir} EOF # Finally, after everything configured, inform the user how to continue. -- 2.11.0