aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-guile-checks.m4
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-02-11 09:37:05 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-02-11 09:37:05 +0800
commit867d9158bca053090c8a815e163fa303fad6a4fb (patch)
tree491cb9ae4592c10c26a8528e2aeb406014da9ae2 /macros/gnome-guile-checks.m4
parentf97c786c151fd4d96f0ae33f0c6bfc4e71ebd2a6 (diff)
downloadgsoc2013-evolution-867d9158bca053090c8a815e163fa303fad6a4fb.tar.gz
gsoc2013-evolution-867d9158bca053090c8a815e163fa303fad6a4fb.tar.zst
gsoc2013-evolution-867d9158bca053090c8a815e163fa303fad6a4fb.zip
Gnome Utils autoconf/automake setup is ready
svn path=/trunk/; revision=12
Diffstat (limited to 'macros/gnome-guile-checks.m4')
-rw-r--r--macros/gnome-guile-checks.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/gnome-guile-checks.m4 b/macros/gnome-guile-checks.m4
new file mode 100644
index 0000000000..df1e9f0665
--- /dev/null
+++ b/macros/gnome-guile-checks.m4
@@ -0,0 +1,23 @@
+AC_DEFUN([GNOME_CHECK_GUILE],
+[
+ AC_CHECK_LIB(qthreads,main,[
+ QTTHREADS_LIB="-lqthreads"
+ AC_CHECK_LIB(termcap,main,TERMCAP_LIB="-ltermcap")
+ AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline")
+ ],[
+ AC_CHECK_LIB(qt, qt_null, QTTHREADS_LIB="-lqt")
+ ],$LIBS)
+ AC_SUBST(TERMCAP_LIB)
+ AC_SUBST(READLINE_LIB)
+ AC_SUBST(QTTHREADS_LIB)
+
+ AC_CHECK_LIB(guile, scm_boot_guile,[
+ GUILE_LIBS="-lguile"
+ ac_cv_guile_found=yes
+ ],[
+ AC_MSG_WARN(Can not find Guile 1.2 on the system)
+ ac_cv_guile_found=no
+ ], $QTTHREADS_LIB $LIBS)
+ AC_SUBST(GUILE_LIBS)
+ AM_CONDITIONAL(GUILE, test x$ac_cv_guile_found = xyes)
+])