Commit 1c057fbd 1c057fbd0ab046f7c085685a4171388b1022ad1c by Sergey Poznyakoff

Added checks for presence of Guile components.

Making libmu_scm and guimb commented out until we solve debug_print
name clash (libguile/debug.h vs. mailutils/debug.h).
1 parent 87878338
...@@ -179,8 +179,23 @@ if test x"${usedb2}" = x"yes"; then ...@@ -179,8 +179,23 @@ if test x"${usedb2}" = x"yes"; then
179 LIBS="$LIBS -ldb"]) 179 LIBS="$LIBS -ldb"])
180 fi 180 fi
181 181
182 dnl Check for Guile
183 AC_PATH_PROG(GUILE_CONFIG, guile-config, no, $PATH)
184 AC_SUBST(GUILE_INCLUDES)
185 AC_SUBST(GUILE_LIBS)
186 if test x$GUILE_CONFIG != xno; then
187 GUILE_INCLUDES=`guile-config compile`
188 GUILE_LIBS=`guile-config link`
189 # NOTE: uncomment this when debug_print clash is resolved.
190 # GUIMB=guimb
191 AC_SUBST(GUIMB)
192 # MU_SCM=libmu_scm.a
193 AC_SUBST(MU_SCM)
194 fi
195
182 dnl Output Makefiles 196 dnl Output Makefiles
183 AC_OUTPUT(Makefile mailutils.spec include/Makefile include/mailutils/Makefile 197 AC_OUTPUT(Makefile mailutils.spec include/Makefile include/mailutils/Makefile
184 m4/Makefile doc/Makefile argp/Makefile lib/Makefile mailbox/Makefile 198 m4/Makefile doc/Makefile argp/Makefile lib/Makefile mailbox/Makefile
185 imap4d/Makefile mailbox/include/Makefile from/Makefile mail/Makefile 199 imap4d/Makefile mailbox/include/Makefile from/Makefile mail/Makefile
186 pop3d/Makefile frm/Makefile sieve/Makefile) 200 pop3d/Makefile frm/Makefile sieve/Makefile
201 scripts/Makefile libmu_scm/Makefile guimb/Makefile)
......