-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
137 lines (115 loc) · 4.57 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
dnl =========================================================================
dnl = =
dnl = Applied Type System =
dnl = =
dnl = Hongwei Xi =
dnl = =
dnl =========================================================================
dnl =
dnl = ATS - Unleashing the Power of Types!
dnl =
dnl = Copyright (C) 2002-2010 Hongwei Xi.
dnl =
dnl = ATS is free software; you can redistribute it and/or modify it under
dnl = the terms of the GNU General Public License as published by the Free
dnl = Software Foundation; either version 2.1, or (at your option) any later
dnl = version.
dnl =
dnl = ATS is distributed in the hope that it will be useful, but WITHOUT ANY
dnl = WARRANTY; without even the implied warranty of MERCHANTABILITY or
dnl = FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl = for more details.
dnl =
dnl = You should have received a copy of the GNU General Public License
dnl = along with ATS; see the file COPYING. If not, write to the Free
dnl = Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
dnl = 02110-1301, USA.
dnl =
dnl =
dnl = Author: Hongwei Xi (hwxi AT cs DOT bu DOT edu)
dnl = Author: Likai Liu (liulk AT cs DOT bu DOT edu)
dnl =
dnl = beg of [configure.ac]
dnl = Autoconf requirements
dnl = AC_INIT(package, version, bug-report-address)
dnl = information on the package
dnl = checks for programs
dnl = checks for libraries
dnl = checks for header files
dnl = checks for types
dnl = checks for structures
dnl = checks for compiler characteristics
dnl = checks for library functions
dnl = checks for system services
dnl = AC_CONFIG_FILES([file...])
AC_INIT([ATS/Anairiats], [0.2.12], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.11], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.10], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.9], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.8], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.7], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.6], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.5], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.4], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.3], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.2], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.1], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.2.0], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.1.9], [[email protected]])
dnl = AC_INIT([ATS/Anairiats], [0.1.8], [[email protected]])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([config.mk])
AC_CONFIG_FILES([ats_env.sh])
AC_CONFIG_FILES([test.sh])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MKDIR_P
AC_PROG_LN_S
PKG_PROG_PKG_CONFIG
dnl = check for complex.h
AC_CHECK_HEADERS(complex.h)
dnl = check for curses.h
AC_CHECK_HEADERS(curses.h)
dnl = check for gmp.h
AC_CHECK_HEADERS(gmp.h)
AC_SUBST(HAVE_LIBGMP, ${ac_cv_header_gmp_h%no})
dnl = check for pcre.h
AC_CHECK_HEADERS(pcre.h)
AC_SUBST(HAVE_LIBPCRE, ${ac_cv_header_pcre_h%no})
dnl = check for [cairo/cairo]
dnl = AC_CHECK_HEADERS(cairo/cairo.h)
dnl = check for [glib-2.0.0]
dnl = AM_PATH_GLIB_2_0(2.10.0, [
dnl = AC_DEFINE([HAVE_LIBGLIB20], [1], [Define to 1 if you have glib-2.0])
dnl = have_glib=1
dnl = ])
dnl = AC_SUBST(HAVE_LIBGLIB20, $have_glib)
dnl = check for [gtk+-2.0.0]
dnl = AM_PATH_GTK_2_0(2.10.0, [
dnl = AC_DEFINE([HAVE_LIBGTK20], [1], [Define to 1 if you have gtk+2.0])
dnl = have_gtk=1
dnl = ])
dnl = AC_SUBST(HAVE_LIBGTK20, $have_gtk)
dnl = check for [GL/gl.h GL/glut.h]
dnl = AC_CHECK_HEADERS(GL/gl.h GL/glut.h)
dnl = check for [SDL]
dnl = AM_PATH_SDL(1.0.0, [
dnl = AC_DEFINE([HAVE_LIBSDL10], [1], [Define to 1 if you have SDL-1.0])
dnl = have_sdl=1
dnl = ])
dnl = AC_SUBST(HAVE_LIBSDL10, $have_sdl)
dnl = check for SIZEOF_VOIDP
AC_CHECK_SIZEOF(void*)
dnl = check for some functions
AC_CHECK_FUNCS(drand48_r erand48_r)
AC_CHECK_FUNCS(posix_memalign memalign)
dnl = AH_TEMPLATE([HAVE_GCBDW],
dnl = [Informs us the availability of Boehm-Demers-Weiser
dnl = garbage collection installed on the system.])
dnl = PKG_CHECK_MODULES([GCBDW], [Boehm-Demers-Weiser GC >= 7.1], [AC_DEFINE(HAVE_GCBDW)], [true])
dnl = CFLAGS="$CFLAGS $GCBDW_CFLAGS"
dnl = LDFLAGS="$LDFLAGS $GCBDW_LDFLAGS"
AC_OUTPUT
dnl = end of [configure.ac]