RSS

(root)/ildjit/iljit-gc-allocator : 1 : configure.in

« back to all changes in this revision

Viewing changes to configure.in

Speziale Ettore
2009-11-18 10:59:23
Revision ID: ettore@mars-20091118105923-rbfi7xyabtlfj02c
Initial import into Bazaar.

Show diffs side-by-side

added added

removed removed

 
1
AC_INIT(iljit-gc-allocator, 0.1.1, simo.xan@gmail.com)
 
2
AC_CONFIG_AUX_DIR([build-aux])
 
3
AM_INIT_AUTOMAKE(iljit-gc-allocator, 0.1.1)
 
4
AM_CONFIG_HEADER(src/config.h)
 
5
AC_SUBST(VERSION)
 
6
ISODATE=`date +%Y-%m-%d`
 
7
AC_SUBST(ISODATE)
 
8
AC_PREFIX_DEFAULT(/usr/local)
 
9
if test "${prefix}" == "NONE" ; then
 
10
        prefix=/usr/local
 
11
fi
 
12
AC_ARG_ENABLE(debug, [  --enable-debug    Enable debug compilation])
 
13
AC_ARG_ENABLE(printdebug, [  --enable-printdebug    Enable the print debug and the debug compilation])
 
14
AC_ARG_ENABLE(profile, [  --enable-profile    Enable the compilation for the automatically profiler tools])
 
15
AM_CONDITIONAL(DEBUG, test "$enable_debug" = "yes")
 
16
AM_CONDITIONAL(PRINTDEBUG, test "$enable_printdebug" = "yes")
 
17
AM_CONDITIONAL(PROFILE, test "$enable_profile" = "yes")
 
18
AC_DEFINE_UNQUOTED(PREFIX,              "${prefix}",                            [Prefix directory])
 
19
AC_DEFINE_UNQUOTED(DATADIR,             "${prefix}/share",                      [Data directory])
 
20
AC_CANONICAL_HOST
 
21
case $host_os in
 
22
  *cygwin*)
 
23
    AM_CONDITIONAL(CYGWIN,true)
 
24
    ;;
 
25
  *solaris*)
 
26
    AM_CONDITIONAL(CYGWIN,false)
 
27
    ;;  
 
28
    *)
 
29
    AM_CONDITIONAL(CYGWIN,false)
 
30
    ;;
 
31
esac
 
32
##############################################################################################################################
 
33
#                                               Initialize compiler default options
 
34
##############################################################################################################################
 
35
AM_INIT_AUTOMAKE(-Wall -Werror)
 
36
CFLAGS="$CFLAGS -Wall"
 
37
AC_SUBST(CFLAGS)
 
38
 
 
39
##############################################################################################################################
 
40
#                                               Checks for programs.
 
41
##############################################################################################################################
 
42
AC_PROG_INSTALL
 
43
AC_PROG_CC
 
44
AC_PROG_LIBTOOL
 
45
AC_CHECK_TOOL(PKGVAR, pkg-config)
 
46
if test -z "$PKGVAR" ; then
 
47
        echo "ERROR: I can't find the pkg-config program, then you have to install it" ;
 
48
        exit 1 ;
 
49
fi
 
50
 
 
51
##############################################################################################################################
 
52
##                                              Checks for libraries.
 
53
##############################################################################################################################
 
54
PKG_CHECK_MODULES(ILJITES_ILJITU, libiljitu >= 0.1.0)
 
55
AC_SUBST(ILJITES_ILJITU_CFLAGS)
 
56
AC_SUBST(ILJITES_ILJITU_LIBS)
 
57
 
 
58
PKG_CHECK_MODULES(XAN, libxan >= 0.1.0)
 
59
AC_SUBST(XAN_CFLAGS)
 
60
AC_SUBST(XAN_LIBS)
 
61
 
 
62
PKG_CHECK_MODULES(COMPILERMEMORYMANAGER, libcompilermemorymanager >= 0.1.0)
 
63
AC_SUBST(COMPILERMEMORYMANAGER_CFLAGS)
 
64
AC_SUBST(COMPILERMEMORYMANAGER_LIBS)
 
65
 
 
66
PKG_CHECK_MODULES(IRVIRTUALMACHINE, libirvirtualmachine >= 0.1.0)
 
67
AC_SUBST(IRVIRTUALMACHINE_CFLAGS)
 
68
AC_SUBST(IRVIRTUALMACHINE_LIBS)
 
69
 
 
70
 
 
71
##############################################################################################################################
 
72
#                                               Checks for header files.
 
73
##############################################################################################################################
 
74
AC_HEADER_STDC
 
75
AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h string.h memory.h alloca.h locale.h )
 
76
 
 
77
AC_FUNC_ALLOCA
 
78
 
 
79
AC_OUTPUT(
 
80
        Makefile 
 
81
        src/Makefile
 
82
)

Loggerhead 1.17 is a web-based interface for Bazaar branches