1
AC_INIT(libiljitirprofiler, 0.1.1, simo.xan@gmail.com)
2
AC_CONFIG_AUX_DIR([build-aux])
3
AM_INIT_AUTOMAKE(libiljitirprofiler, 0.1.1)
4
AM_CONFIG_HEADER(src/config.h)
6
ISODATE=`date +%Y-%m-%d`
8
AC_PREFIX_DEFAULT(/usr/local)
9
if test "${prefix}" == "NONE" ; then
13
AC_ARG_ENABLE(debug, [ --enable-debug Enable debug compilation])
14
AC_ARG_ENABLE(printdebug, [ --enable-printdebug Enable the print debug and the debug compilation])
15
AC_ARG_ENABLE(profile, [ --enable-profile Enable the compilation for the automatically profiler tools])
16
AC_ARG_ENABLE(morpheus, [ --enable-morpheus Enable extra code for the Morpheus project])
18
AM_CONDITIONAL(DEBUG, test "$enable_debug" = "yes")
19
AM_CONDITIONAL(PRINTDEBUG, test "$enable_printdebug" = "yes")
20
AM_CONDITIONAL(PROFILE, test "$enable_profile" = "yes")
21
AM_CONDITIONAL(MORPHEUS, test "$enable_morpheus" = "yes")
23
AC_DEFINE_UNQUOTED(PREFIX, "${prefix}", [Prefix directory])
24
AC_DEFINE_UNQUOTED(DATADIR, "${prefix}/share", [Data directory])
28
AM_CONDITIONAL(CYGWIN,true)
31
AM_CONDITIONAL(CYGWIN,false)
34
AM_CONDITIONAL(CYGWIN,false)
38
AC_ARG_ENABLE([api-doc],
39
AS_HELP_STRING([--enable-api-doc], [generate api documentation]))
40
AM_CONDITIONAL(API_DOC, test "$enable_api_doc" = "yes")
42
##############################################################################################################################
43
# Initialize compiler default options
44
##############################################################################################################################
45
AM_INIT_AUTOMAKE(-Wall -Werror)
49
##############################################################################################################################
50
## Checks for programs.
51
##############################################################################################################################
56
##############################################################################################################################
57
## Checks for libraries.
58
##############################################################################################################################
59
PKG_CHECK_MODULES(XANLIB, libxan >= 0.1.0)
60
AC_SUBST(XANLIB_CFLAGS)
63
PKG_CHECK_MODULES(COMPILERMEMORYMANAGER, libcompilermemorymanager >= 0.1.0)
64
AC_SUBST(COMPILERMEMORYMANAGER_CFLAGS)
65
AC_SUBST(COMPILERMEMORYMANAGER_LIBS)
67
PKG_CHECK_MODULES(LIBILJITU, libiljitu >= 0.1.1)
68
AC_SUBST(LIBILJITU_CFLAGS)
69
AC_SUBST(LIBILJITU_LIBS)
71
PKG_CHECK_MODULES(LIBILJITIR, libiljitir >= 0.1.3)
72
AC_SUBST(LIBILJITIR_CFLAGS)
73
AC_SUBST(LIBILJITIR_LIBS)
75
PKG_CHECK_MODULES(ILJITIROPTIMIZER, libiljitiroptimizer >= 0.1.0)
76
AC_SUBST(ILJITIROPTIMIZER_CFLAGS)
77
AC_SUBST(ILJITIROPTIMIZER_LIBS)
80
##############################################################################################################################
81
## Checks for headers.
82
##############################################################################################################################
84
AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h )
91
pkgconfig/libiljitirprofiler.pc