configure.ac 1.41 KB
Newer Older
1
## configure.ac: this file is part of MonoBURG.
2
##
3
4
## MonoBURG, an iburg like code generator generator.
##
Roland Levillain's avatar
Roland Levillain committed
5
## Copyright (C) 2001, 2002, 2004, 2005, 2012 Ximian, Inc.
6
7
8
9
10
11
12
13
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##
## The complete GNU General Public Licence Notice can be found as the
## `NOTICE' file in the root directory.
14

15
## -------------------------------------
16
## Project
Roland Levillain's avatar
Roland Levillain committed
17
AC_INIT([MonoBURG], [1.0.6])
18
AM_CONFIG_HEADER([config.h])
19
20

## -------------------------------------
Roland Levillain's avatar
Roland Levillain committed
21
## Set up the Autotools
22
23
24
25
26

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

# Auxiliary files.
Roland Levillain's avatar
Roland Levillain committed
27
AC_CONFIG_AUX_DIR([build-aux])
28
29

# Initiate automake.
Roland Levillain's avatar
Roland Levillain committed
30
AM_INIT_AUTOMAKE([1.7.5 dist-bzip2 check-news -Wall])
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

44
# Check for GLib 2.6 presence.
Roland Levillain's avatar
Roland Levillain committed
45
46
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.6], ,
                  [AC_MSG_ERROR([Glib 2.6 or newer is required])])
47
48
49
50
51
52
53

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

# Ask for Makefile creation
AC_CONFIG_FILES([
  Makefile
54
55
  src/Makefile
  tests/Makefile
56
  man/Makefile
57
58
59
60
])

# Instantiate the output files
AC_OUTPUT