1## This file is part of GNU Mailutils.
2## Copyright (C) 2001-2021 Free Software Foundation, Inc.
3##
4## GNU Mailutils is free software; you can redistribute it and/or
5## modify it under the terms of the GNU General Public License as
6## published by the Free Software Foundation; either version 3, or (at
7## your option) any later version.
8##
9## GNU Mailutils is distributed in the hope that it will be useful, but
10## WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12## General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>.
16
17EXTRA_DIST=mailutils.scm.in ancilla.scm
18
19CLEANFILES=\
20 mailutils.scm
21
22sitedir   = @GUILE_SITE@/$(PACKAGE)
23site_DATA = mailutils.scm
24
25MU_FEATURES=\
26 -DVERSION=$(VERSION)\
27 -DLIBDIR=$(libdir)\
28 -DSITEDIR=$(sitedir)\
29 -DBUILDDIR=$(top_builddir)/libmu_scm
30
31if MU_COND_SUPPORT_POP
32  MU_FEATURES += -DMU_SUPPORT_POP
33endif
34
35if MU_COND_SUPPORT_IMAP
36  MU_FEATURES += -DMU_SUPPORT_IMAP
37endif
38
39if MU_COND_SUPPORT_MH
40  MU_FEATURES += -DMU_SUPPORT_MH
41endif
42
43if MU_COND_SUPPORT_MAILDIR
44  MU_FEATURES += -DMU_SUPPORT_MAILDIR
45endif
46
47mailutils.scm: mailutils.scm.in $(top_builddir)/config.status
48	$(AM_V_GEN)m4 $(MU_FEATURES) $(srcdir)/mailutils.scm.in > $@
49
50
51