configure.ac 1.83 KB
Newer Older
1
# Configure template for BoxedSdf.                      -*-Autoconf-*-
2
#
3
# Copyright (C) 2003, 2004  EPITA Research and Development Laboratory.
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307  USA

20
21
AC_PREREQ(2.57)

22
AC_INIT([boxedsdf], 0.3, [transformers-bugs@lrde.epita.fr])
23

24
25
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_FILES([config/Makefile])
26

27
AM_INIT_AUTOMAKE([foreign 1.8.3 dist-bzip2])
28

29
30
# Make sure $prefix is defined.
test "x$prefix" = xNONE && prefix=$ac_default_prefix
31

32
USE_XT_PACKAGES
vasseu_c's avatar
vasseu_c committed
33
test -f $PGEN/bin/sdf2table ||
34
  AC_MSG_ERROR([cannot find sdf2table.  Use --with-sdf.])
vasseu_c's avatar
vasseu_c committed
35
test -f $STRATEGO_TOOLS/bin/sdf-to-sig ||
36
  AC_MSG_ERROR([cannot find sdf-to-sig.  Use --with-strategoxt.])
37

38
39
40
41
42
43
AC_CHECK_PROGS([HELP2MAN], [help2man], [NONE])
if test x"$HELP2MAN" = xNONE; then
  AC_MSG_ERROR([cannot find help2man. Check your path.])
fi
AC_SUBST([HELP2MAN])

44
45
46
47
AC_PROG_CC
AC_PROG_INSTALL

AC_CONFIG_FILES([Makefile
48
		config/version.str
49
		lib/Makefile
50
		lib/ppgen/Makefile
51
52
53
54
55
		src/Makefile
		src/syn/Makefile
		src/boxed2sdf/Makefile
		src/boxed2pp-table/Makefile
		src/pack-boxedsdf/Makefile
56
		src/pp/Makefile
57
		src/boxedsdf-merge/Makefile
58
		src/boxedsdf-update/Makefile
59
		src/parser/Makefile
60
61
62
		test/Makefile
		test/defs])
AC_OUTPUT