unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: guile-user@gnu.org
Subject: configuring guile packages [was: GNU Guile 2.9.8 Released [beta]]
Date: Fri, 3 Jan 2020 10:44:21 -0800	[thread overview]
Message-ID: <b43e8b53-79fd-c488-f887-e282759f0bdd@gmail.com> (raw)
In-Reply-To: <296377b9-14f8-107a-21f3-ca2c139ef336@gmail.com>

On 1/3/20 6:53 AM, Matt Wette wrote:
>>  I am running into other issues, however, when there is a
>> guile in my path that appears before anything else, but a guile-2 
>> that appears from another directory.  I am working to add 
>> --with-guile to fix that.  I'm having problems checking against 
>> 2.0.14, for example.
I have been working on my configures.  I have separate guile-2.0.14, 
-2.2.4 and -2.9.8 installs.
To get everything to work I ended up with the following configure.ac and 
nyacc.m4.  Not beautiful
but it's working for 2.0.14, 2.2.X and 2.9.8.

===== snip from configure.ac =====
m4_include([./pkg.m4])
m4_include([./guile.m4])
m4_include([./nyacc.m4])

AC_ARG_WITH(guile, [    --with-guile            path to binary],
             ,with_guile=unspecified)

if test "_$with_guile" != "_unspecified"; then
   GUILE=$with_guile
   GUILE_EFFECTIVE_VERSION=`$GUILE -c "(display (effective-version))"`
   guile_libdir=`$GUILE -c "(display (assq-ref %guile-build-info 'libdir))"`
   PKG_CONFIG_LIBDIR=$guile_libdir/pkgconfig
   PKG_CONFIG=pkg-config
   export PKG_CONFIG_LIBDIR
else
   GUILE_PKG([3.2 3.0 2.9 2.2 2.0])
   GUILE_PROGS
fi

GUILE_SITE_DIR
GUILE_SITE_GO_DIR
GUILE_DATA_DIR

==========================

===== nyacc.m4 =====
dnl GUILE_SITE_GO_DIR
AC_DEFUN([GUILE_SITE_GO_DIR],
  [AC_MSG_CHECKING(for Guile site directory)
   GUILE_SITE_GO=`$GUILE -c '(display (%site-ccache-dir))'`
   AC_MSG_RESULT($GUILE_SITE_GO)
   if test "$GUILE_SITE_GO" = ""; then
      AC_MSG_FAILURE(sitedir not found)
   fi
   AC_SUBST(GUILE_SITE_GO)
  ])

dnl GUILE_DATA_DIR
AC_DEFUN([GUILE_DATA_DIR],
  [AC_MSG_CHECKING(for Guile data directory)
   GUILE_DATA=`$GUILE -c "(display (assq-ref %guile-build-info 'datadir))"`
   AC_MSG_RESULT($GUILE_DATA)
   if test "$GUILE_DATA" = ""; then
      AC_MSG_FAILURE(datadir not found)
   fi
   AC_SUBST(GUILE_DATA)
  ])
===================





  reply	other threads:[~2020-01-03 18:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-02 13:36 GNU Guile 2.9.8 Released [beta] Andy Wingo
2020-01-03  5:34 ` Nala Ginrut
2020-01-03  9:02   ` tomas
2020-01-03 14:29   ` Matt Wette
2020-01-03 14:53     ` Matt Wette
2020-01-03 18:44       ` Matt Wette [this message]
2020-01-03 23:29         ` configuring guile packages [was: GNU Guile 2.9.8 Released [beta]] Matt Wette
2020-01-06  6:56           ` Nala Ginrut
2020-01-08 14:21             ` Nala Ginrut
2020-01-08 18:24               ` Jason Earl
2020-01-08 18:43                 ` Nala Ginrut
2020-01-05 10:41   ` GNU Guile 2.9.8 Released [beta] Andy Wingo
2020-01-07 20:00 ` Stefan Israelsson Tampe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b43e8b53-79fd-c488-f887-e282759f0bdd@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).