[Gnucash-changes] r14022 - gnucash/trunk - Warn if no g-wrap runtime module is available during configure.

Derek Atkins warlord at MIT.EDU
Thu May 11 09:45:05 EDT 2006


Chris,

Chris Shoemaker <chris at cvs.gnucash.org> writes:

> +GUILE_MODULE_AVAILABLE(have_gwrap_runtime, [(g-wrap runtime)])
> +if test "$have_gwrap_runtime" = "no"; then
> +   AC_MSG_WARN([
> +
> +    Unable to find the g-wrap runtime module, a.k.a. guile-g-wrap. 
> +    You won't be able to run GnuCash without it!
> +
> +])  
> +fi

Unfortunately this doesn't take --with-g-wrap-prefix into account,
On my system I have g-wrap 1.9.6 installed into /opt/g-wrap-1.9.6
and configure gnucash with --with-g-wrap-prefix=/opt/g-wrap-1.9.6.
gnucash used to build AND run just fine, but now it throws out
this error (even though the runtime is exactly where I said it
would be, in /opt/g-wrap-1.9.6).

I think we need to add update GUILE_LOAD_PATH, and maybe even
LD_LIBRARY_PATH, based on the information we get back from the g-wrap
checks.  In particular, we should use G_WRAP_MODULE_DIR and
G_WRAP_LIB_DIR.

FYI, src/bin/overrides/gnucash-env says this (on this particular
system where your check fails):

GNC_MODULE_PATH="/opt/gnucash-svn/lib/gnucash:${GNC_MODULE_PATH}"

EXTRA_PATH="/opt/g-wrap-1.9.6/share/guile/site"
EXTRA_PATH="${EXTRA_PATH}:/opt/gnucash-svn/share/gnucash/guile-modules"
EXTRA_PATH="${EXTRA_PATH}:/opt/gnucash-svn/share/gnucash/scm"

GUILE_LOAD_PATH="${EXTRA_PATH}:${GUILE_LOAD_PATH}"

EXTRA_LIBS="${GNC_MODULE_PATH}"
EXTRA_LIBS="${EXTRA_LIBS}:/opt/gnucash-svn/lib"
EXTRA_LIBS="${EXTRA_LIBS}:/opt/gnucash-svn/lib/gnucash"
EXTRA_LIBS="${EXTRA_LIBS}:/opt/g-wrap-1.9.6/lib"

LD_LIBRARY_PATH="${EXTRA_LIBS}:${LD_LIBRARY_PATH}"
LTDL_LIBRARY_PATH="${EXTRA_LIBS}:${LTDL_LIBRARY_PATH}"

export GNC_MODULE_PATH
export GUILE_LOAD_PATH
export LD_LIBRARY_PATH
export LTDL_LIBRARY_PATH

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list