* don't try to use guile if it's pre-2.x; but add some beginning compat
functions for 1.8 and friends
This commit is contained in:
@ -7,7 +7,9 @@
|
||||
|
||||
`guile'[1] is an interpreter/library for the Scheme programming language[2],
|
||||
specifically meant for extending other programs. It is, in fact, the
|
||||
official GNU language for doing so.
|
||||
official GNU language for doing so. 'muile' requires guile 2.x to get the full
|
||||
support; older versions will not support e.g. the 'mu-stats.scm' things
|
||||
discussed below.
|
||||
|
||||
The combination of mu + guile is called `muile', and allows you to write
|
||||
little Scheme-programs to query the mu-database, or inspect individual
|
||||
|
||||
@ -16,6 +16,9 @@
|
||||
** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
**
|
||||
*/
|
||||
#if HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif /*HAVE_CONFIG_H*/
|
||||
|
||||
#include <mu-runtime.h>
|
||||
|
||||
@ -27,7 +30,13 @@
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
mu_runtime_init ("/home/djcb/.mu");
|
||||
|
||||
#ifdef HAVE_PRE2_GUILE
|
||||
g_warning ("Note: muile will not function correctly unless you have a "
|
||||
"UTF-8 locale.");
|
||||
#endif /* HAVE_PRE2_GUILE */
|
||||
|
||||
mu_runtime_init (mu_util_guess_mu_homedir());
|
||||
|
||||
scm_with_guile (&mu_guile_msg_init, NULL);
|
||||
scm_with_guile (&mu_guile_store_init, NULL);
|
||||
|
||||
Reference in New Issue
Block a user