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

Chris Shoemaker chris at cvs.gnucash.org
Thu May 11 01:04:57 EDT 2006


Author: chris
Date: 2006-05-11 01:04:56 -0400 (Thu, 11 May 2006)
New Revision: 14022
Trac: http://svn.gnucash.org/trac/changeset/14022

Modified:
   gnucash/trunk/configure.in
Log:
   Warn if no g-wrap runtime module is available during configure.


Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in	2006-05-11 03:56:21 UTC (rev 14021)
+++ gnucash/trunk/configure.in	2006-05-11 05:04:56 UTC (rev 14022)
@@ -304,6 +304,16 @@
 
 AS_SCRUB_INCLUDE(CFLAGS)
 
+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
+
 ### Check size of long_long - some guile's are broken.
 AC_MSG_CHECKING(if guile long_long is at least as big as gint64)
 GNC_OLDCFLAGS="$CFLAGS"
@@ -380,14 +390,7 @@
 gnc_have_guile_www=no
 
 AC_MSG_CHECKING([if guile needs our copy of (guile www)])
-if ${GUILE} -c "(use-modules (www main))" > /dev/null 2>&1
-then
-  gnc_have_guile_www=yes
-  AC_MSG_RESULT(no)
-else
-  gnc_have_guile_www=no
-  AC_MSG_RESULT(yes)
-fi
+GUILE_MODULE_AVAILABLE(gnc_have_guile_www,[(www main)])
 
 AM_CONDITIONAL(GNC_HAVE_GUILE_WWW, test "${gnc_have_guile_www}" = yes)
 



More information about the gnucash-changes mailing list