BlockContext's caller is now stored in sender field
[panda.git] / configure.ac
blobc44b8260392e544cdfdfdaac47278f7b4fb94bd2
2 AC_PREREQ([2.52])
4 m4_define(panda_major_version, 0)
5 m4_define(panda_minor_version, 0)
6 m4_define(panda_micro_version, 54)
7 m4_define(panda_version, panda_major_version.panda_minor_version.panda_micro_version)
9 AC_INIT([Panda], [panda_version],
10         [https://bugs.launchpad.net/panda-smalltalk/+filebug],
11         [panda])
13 AC_CONFIG_HEADERS([config.h])
14 AC_CONFIG_SRCDIR([src/st-lexer.c])
16 AM_INIT_AUTOMAKE([1.10 foreign -Wall subdir-objects])
18 AC_CANONICAL_HOST
20 AC_PROG_CC
21 AC_PROG_CC_C99
22 AM_PROG_CC_C_O
23 if test "x$ac_cv_prog_cc_c99" = "xno"; then
24    AC_MSG_ERROR([cannot find a C99-conforming compiler])
27 AC_PROG_INSTALL
28 AC_PROG_MAKE_SET
29 AM_PROG_LIBTOOL
31 # platform checks
32 AC_CHECK_SIZEOF([void *])
33 AC_CHECK_SIZEOF([int])
34 AC_CHECK_ALIGNOF([void *])
35 debug_default=yes
36 AC_ARG_ENABLE(debug,
37               AC_HELP_STRING([--enable-debug=@<:@no/yes@:>@],
38                              [turn on debugging support @<:@default=yes@:>@]),,
39               enable_debug=$debug_default)
40 if test "x$enable_debug" = "xyes"; then
41 AC_DEFINE([ST_DEBUG], [1], ["Debug support enabled"])
44 # recommended gcc optimization flags for libtommath
45 if test "x$GCC" = "xyes"; then
46     TOMMATH_CFLAGS="-O3 -funroll-loops -fomit-frame-pointer"
47     GDTOA_CFLAGS="-O2 -fPIC -funroll-loops -finline-functions"
49 AC_SUBST(TOMMATH_CFLAGS)
50 AC_SUBST(GDTOA_CFLAGS)
52 AC_DEFINE(PANDA_MAJOR_VERSION, panda_major_version, [Panda major version])
53 AC_SUBST(PANDA_MAJOR_VERSION, panda_major_version)
54 AC_DEFINE(PANDA_MINOR_VERSION, panda_minor_version, [Panda minor version])
55 AC_SUBST(PANDA_MINOR_VERSION, panda_minor_version)
56 AC_DEFINE(PANDA_MICRO_VERSION, panda_micro_version, [Panda micro version])
57 AC_SUBST(PANDA_MICRO_VERSION, panda_micro_version)
59 AC_SUBST([AM_CPPFLAGS])
60 AC_SUBST([AM_CFLAGS])
61 AC_SUBST([AM_CXXFLAGS])
62 AC_SUBST([AM_LDFLAGS])
64 AC_CONFIG_FILES([
65 Makefile
68 AC_OUTPUT