summaryrefslogtreecommitdiff
path: root/configure.ac
blob: f9875155a85efd38a422aaf7f4a904a57f66955d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
dnl -*- Autoconf -*-

AC_INIT([mumi], [m4_translit(m4_esyscmd([cat VERSION]),m4_newline)])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([gnu color-tests -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])

GUILE_PKG([2.2])
GUILE_PROGS
if test "x$GUILD" = "x"; then
   AC_MSG_ERROR(['guild' binary not found; please check your guile-2.2 installation.])
fi

GUILE_MODULE_AVAILABLE([have_json], [(json)])
if test "x$have_json" != "xyes"; then
  AC_MSG_ERROR([Guile-JSON is missing; please install it.])
fi

GUILE_MODULE_AVAILABLE([have_guile_debbugs], [(debbugs soap)])
if test "x$have_guile_debbugs" != "xyes"; then
  AC_MSG_ERROR([Guile-Debbugs is missing; please install it.])
fi

GUILE_MODULE_AVAILABLE([have_guile_email], [(email email)])
if test "x$have_guile_email" != "xyes"; then
  AC_MSG_ERROR([guile-email is missing; please install it.])
fi

dnl GUILE_MODULE_AVAILABLE([have_fibers], [(fibers web server)])
dnl if test "x$have_fibers" != "xyes"; then
dnl   AC_MSG_ERROR([Guile fibers is missing; please install it.])
dnl fi

AC_PATH_PROG([MUMIMU], [mumimu])

guilemoduledir="${datarootdir}/guile/site/${GUILE_EFFECTIVE_VERSION}"
AC_SUBST([guilemoduledir])
AC_SUBST([GUILE_EFFECTIVE_VERSION])

dnl Substitute placeholders to generate these target files
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([mumi/config.scm])
AC_CONFIG_FILES([scripts/mumi], [chmod +x scripts/mumi])
AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])

AC_OUTPUT