forked from gaiusm/pge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
executable file
·71 lines (57 loc) · 1.76 KB
/
configure.ac
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
AC_INIT([pge], [2.0])
AC_PREREQ(2.69)
AM_INIT_AUTOMAKE([subdir-objects])
AC_PROG_AWK
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CONFIG_SRCDIR([version.c])
AC_CONFIG_MACRO_DIR([m4])
AS_MKDIR_P(c)
AS_MKDIR_P(m2)
AS_MKDIR_P(python)
LT_INIT
LT_PREREQ([])
AC_SUBST([LIBTOOL_DEPS])
AC_ARG_ENABLE([maintainer],
[ --enable-maintainer Turn on maintainer],
[case "${enableval}" in
yes) maintainer=true ;;
no) maintainer=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-maintainer]) ;;
esac],[maintainer=false])
AM_CONDITIONAL([MAINTAINER], [test x$maintainer = xtrue])
AC_ARG_ENABLE([langm2],
[ --enable-langm2 Turn on building the implementation from Modula-2 sources],
[case "${enableval}" in
yes) langm2=true ;;
no) langm2=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-langm2]) ;;
esac],[langm2=false])
AM_CONDITIONAL([LANGM2], [test x$langm2 = xtrue])
AC_ARG_ENABLE([langc],
[ --enable-langc Turn on building the implementation from C sources],
[case "${enableval}" in
yes) langc=true ;;
no) langc=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-langc]) ;;
esac],[langc=false])
AM_CONDITIONAL([LANGC], [test x$langc = xtrue])
AC_MSG_CHECKING([checking to see that you have set a source language])
if test x$langc = xtrue; then
AC_MSG_RESULT([(C)... yes])
elif test x$langm2 = xtrue; then
AC_MSG_RESULT([(Modula-2)... yes])
else
AC_MSG_ERROR([you must specify either --enable-langc or --enable-langm2])
fi
AC_HAVE_LIBRARY(-lpth)
AC_SUBST([langm2])
AC_SUBST([langc])
AC_SUBST([maintainer])
dnl create these files
AC_CONFIG_FILES([Makefile m2/Makefile c/Makefile localrun.sh],
[chmod +x localrun.sh])
AC_OUTPUT