* acinclude.m4: modify the AC_GWRAP_CHECK_GUILE() macro to

take an argument, the g-wrap module directory.  Then actually
	  test that the g-wrap module loads.  This should detect systems
	  without slib installed.
	* configure.in: all the new gwrap check macro
	  Fixes #113218


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8351 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins
2003-05-20 23:48:06 +00:00
parent 5214fd68c3
commit d35dbc0d6f
3 changed files with 16 additions and 1 deletions

View File

@@ -3,6 +3,13 @@
* src/scm/printing/print-check.scm: some finer adjustments on
the locations for Deluxe personal checks.
* acinclude.m4: modify the AC_GWRAP_CHECK_GUILE() macro to
take an argument, the g-wrap module directory. Then actually
test that the g-wrap module loads. This should detect systems
without slib installed.
* configure.in: all the new gwrap check macro
Fixes #113218
2003-05-19 Derek Atkins <derek@ihtfp.com>
* src/engine/QueryNew.[ch]: add gncQueryGetBooks() API to return

View File

@@ -3935,6 +3935,14 @@ AC_DEFUN(AC_GWRAP_CHECK_GUILE,
if test "${GUILE}" = "no" ; then
AC_MSG_ERROR(g-wrap couldn't find guile.)
fi
AC_MSG_CHECKING(if g-wrap works)
$GUILE -c "(set! %load-path (cons \"$1\" %load-path)) (use-modules (g-wrap))"
status=$?
if test $status != 0 ; then
AC_MSG_ERROR([g-wrap could not run. Perhaps missing slib?])
else
AC_MSG_RESULT(yes)
fi
])
dnl AM_PATH_GWRAP ([MINIMUM-VERSION, MAXIMUM-VERSION, [ACTION-IF-FOUND.

View File

@@ -198,7 +198,7 @@ G_WRAP_MODULE_DIR=`${G_WRAP_CONFIG} --guile-module-directory`
G_WRAP_LIB_DIR=`echo $G_WRAP_MODULE_DIR | sed -e 's|share/guile|lib|'`
AC_MSG_RESULT($G_WRAP_MODULE_DIR)
AC_GWRAP_CHECK_GUILE
AC_GWRAP_CHECK_GUILE($G_WRAP_MODULE_DIR)
AC_SUBST(G_WRAP_CONFIG)
AC_SUBST(G_WRAP_COMPILE_ARGS)