configure.ac 1.47 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
m4_pattern_forbid([^PKG_])

17
## -------------------------------------
18
## Project
19
AC_INIT([MonoBURG], [1.0.6a])
Akim Demaille's avatar
Akim Demaille committed
20
AC_CONFIG_HEADERS([config.h])
21
22

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

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

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

# Initiate automake.
32
AM_INIT_AUTOMAKE([1.11 silent-rules dist-bzip2 check-news -Wall])
Akim Demaille's avatar
Akim Demaille committed
33
AM_SILENT_RULES([yes])
34
35
36
37
38
39
40
41
42
43
44
45
46

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

# Look for a C compiler
AC_PROG_CC

# Look for a yacc-like program
AC_PROG_YACC

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

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

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

# Ask for Makefile creation
AC_CONFIG_FILES([
  Makefile
57
58
  src/Makefile
  tests/Makefile
59
  man/Makefile
60
61
62
63
])

# Instantiate the output files
AC_OUTPUT