From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Freja Nordsiek Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] Add to the 2.1.x branch GUILE_SITE_CCACHE_DIR and GUILE_EXTENSION_DIR Autoconf macros along with needed siteccachdir entry in pkgconfig file Date: Sun, 12 Mar 2017 10:38:29 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1146370a842112054a855b51 X-Trace: blaine.gmane.org 1489311525 14741 195.159.176.226 (12 Mar 2017 09:38:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 09:38:45 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 12 10:38:41 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmzxY-0002zH-7y for guile-devel@m.gmane.org; Sun, 12 Mar 2017 10:38:40 +0100 Original-Received: from localhost ([::1]:46341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmzxc-0001Mf-Po for guile-devel@m.gmane.org; Sun, 12 Mar 2017 05:38:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmzxS-0001MO-Dx for guile-devel@gnu.org; Sun, 12 Mar 2017 05:38:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmzxR-0004r9-8n for guile-devel@gnu.org; Sun, 12 Mar 2017 05:38:34 -0400 Original-Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:33093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmzxQ-0004qX-UR for guile-devel@gnu.org; Sun, 12 Mar 2017 05:38:33 -0400 Original-Received: by mail-wr0-x229.google.com with SMTP id u48so87448000wrc.0 for ; Sun, 12 Mar 2017 01:38:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=I82o3ZruaLmgbejpRjAEZOOSCAqaPto35pKGvBajJlY=; b=tFuf4ICMv1Dbg318wpDt968+FcNZF+CSJpnbyrIYNYHLdMi6ilaTjNp83X47/F+QFs 3yz66Y/3NhVDZIgTcW52ss6/78QxbkJQU9J99XZvhHtn0ieqQ/hQ1rGJDX/zMHQDioFq kDRMn1W7mu0dSsY+xLA3vg9wSMUJlsl2b6WxCrU0OUY7WpzmSr7MS2DJEoDKmT1jHB+H 8yxW0zYDhz6iOQhbqj4I2FilgExn6XuljOUSitQw08b2i5vmzqFbISej0zN0bWMsxY0q FG4GI3s4z99s3rpM3h+ZVsLN2RE4Q5XMcPS8KRUFVxskCFsnTUiWVTA7K1JiMkXfNXy9 2klw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=I82o3ZruaLmgbejpRjAEZOOSCAqaPto35pKGvBajJlY=; b=FoquCiPMB/J8SuELBEeohP4oEVE69jtJ1FriiItBOXFCGNeyhvsYopTq8a7OB+2FJO u8UwYO91yIhtSqxAokadMU8fVRVExTxmiyUeQ0ms+txLbTwk/34vSSNpwgV0Un2Rmu/K zhmwByiLkRjUVmVSKWE/YqHpEjccoiZurVzFUBDoUtyhjBJIMgjmehsQc1b2mJYT89D8 m3EbtIxDogDal0WNV59j7OUGeljf1NbsozDzJxZkKfEa1bc+1rYm9d7UPzsdV6kCLxg/ KIVLC8U1MuimTdaLPh2Nq/xt/kMEwGb2YJyxWM31r8z++qMrpIos05StaWmu1HHLCnJG wuRg== X-Gm-Message-State: AMke39lGohMEhLHJOMo1ZWYcGKzII52xG5ywuLoUDbclrjx4h0ydS4+wzsXHrfKVR35knQljdUfjaPojEmFmAA== X-Received: by 10.223.150.123 with SMTP id c56mr22392863wra.202.1489311510023; Sun, 12 Mar 2017 01:38:30 -0800 (PST) Original-Received: by 10.28.234.73 with HTTP; Sun, 12 Mar 2017 01:38:29 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::229 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19033 Archived-At: --001a1146370a842112054a855b51 Content-Type: text/plain; charset=UTF-8 Guile provides the GUILE_SITE_DIR Autoconf macro for finding where a user should install scheme files, but there are no equivalent macros for the directories to put compiled go files and C extensions into. The patch adds the equivalent macros to do this for the 2.1.x branch (it might work as is for the 2.0.x branch but I haven't tested it), which are more or less copy-pastes of the GUILE_SITE_DIR macro. GUILE_SITE_CCACHE_DIR does require an additional entry to be put into Guile's pkgconfig file, which I named siteccachedir to fit in with the rest. One major issue is that the GUILE_SITE_CCACHE_DIR macro will fail for any version of Guile that does not have the new entry in the pkgconfig file, which would be all 2.0.x and 2.1.x releases thus far. One way around it would be to instead of using pkgconfig for it would to instead use the following macro that uses the Guile interpreter itself to find the directory (this is more or less the version I use in one of my own projects). AC_DEFUN([GUILE_SITE_CCACHE_DIR], [AC_REQUIRE([GUILE_PROGS]) AC_MSG_CHECKING([for Guile site-ccache directory]) GUILE_SITE_CCACHE=`$GUILE -c "(display (%site-ccache-dir))"` if test $? != "0" -o "$GUILE_SITE_CCACHE" = ""; then AC_MSG_FAILURE([siteccachedir not found]) fi AC_MSG_RESULT([$GUILE_SITE_CCACHE]) AC_SUBST([GUILE_SITE_CCACHE]) ]) I honestly think this is the better version since it will work even without the entry in the pkgconfig file but using pkgconfig fits in better with the existing macros and may be preferred by others. Also, this version requires GUILE_PROGS to have succeeded. Even if this version is accepted, I still think the added entry to the pkgconfig file is a good idea. Freja Nordsiek --001a1146370a842112054a855b51 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Added-GUILE_SITE_CCACHE_DIR-and-GUILE_EXTENSION_DIR-.patch" Content-Disposition: attachment; filename="0001-Added-GUILE_SITE_CCACHE_DIR-and-GUILE_EXTENSION_DIR-.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j06h9b3u0 RnJvbSA2YmE2YTBmMWEzMmIyNDg3MTBkNjRjZTMwN2ZhNDlhOWI2YTI5ZDhmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBGcmVqYSBOb3Jkc2llayA8Zm5vcmRzaWVAZ21haWwuY29tPgpE YXRlOiBTdW4sIDEyIE1hciAyMDE3IDEwOjIyOjUzICswMTAwClN1YmplY3Q6IFtQQVRDSF0gQWRk ZWQgR1VJTEVfU0lURV9DQ0FDSEVfRElSIGFuZCBHVUlMRV9FWFRFTlNJT05fRElSIEF1dG9jb25m CiBtYWNyb3MgZm9yIGZpbmRpbmcgd2hlcmUgdXNlciBjb21waWxlZCAuZ28gYW5kIEMgZXh0ZW5z aW9ucyBzaG91bGQgZ28uCgotLS0KIG1ldGEvZ3VpbGUtMi4yLnBjLmluIHwgIDEgKwogbWV0YS9n dWlsZS5tNCAgICAgICAgfCA0OCArKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKysrKysrKysKIDIgZmlsZXMgY2hhbmdlZCwgNDkgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdp dCBhL21ldGEvZ3VpbGUtMi4yLnBjLmluIGIvbWV0YS9ndWlsZS0yLjIucGMuaW4KaW5kZXggYzhm NDg1Yi4uYzZkMTJiNSAxMDA2NDQKLS0tIGEvbWV0YS9nd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