configure.ac 948 Bytes
Newer Older
1 2 3 4 5 6
## ----------------------------------------------------------------------------
## Configure MonoBURG, an IBurg-like code generator generator
##

## ------------------------------------- 
## Project
7
AC_INIT([MonoBURG], [1.0.2])
8
AM_CONFIG_HEADER([config.h])
9 10 11 12 13 14 15 16 17 18 19 20

## -------------------------------------
## Setup autotools

# Need autoconf 2.57 at least.
AC_PREREQ([2.57])

# Auxiliary files.
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_FILES([config/Makefile])

# Initiate automake.
21
AM_INIT_AUTOMAKE([1.7.5 dist-bzip2])
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

## -------------------------------------
## Development tools

# Look for a C compiler
AC_PROG_CC

# Look for a yacc-like program
AC_PROG_YACC

## -------------------------------------
## Environment

# Check for GLIB-2.0 presence
AM_PATH_GLIB_2_0

## -------------------------------------
## Epilogue

# Ask for Makefile creation
AC_CONFIG_FILES([
  Makefile
44 45
  src/Makefile
  tests/Makefile
46 47 48 49
])

# Instantiate the output files
AC_OUTPUT