configure.ac 1.44 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
17
AC_INIT([MonoBURG], [1.0.6a])
Akim Demaille's avatar
Akim Demaille committed
18
AC_CONFIG_HEADERS([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.
30
AM_INIT_AUTOMAKE([1.11 silent-rules dist-bzip2 check-news -Wall])
Akim Demaille's avatar
Akim Demaille committed
31
AM_SILENT_RULES([yes])
32
33
34
35
36
37
38
39
40
41
42
43
44

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

# Look for a C compiler
AC_PROG_CC

# Look for a yacc-like program
AC_PROG_YACC

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

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

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

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

# Instantiate the output files
AC_OUTPUT