summaryrefslogtreecommitdiff
path: root/configure.ac
blob: af3b959a03f35685e46398182b21d2ef13e9a4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
AC_INIT([mplemmings], [0.01], [lpouzenc@gmail.com],
	[mplemmings], [http://www.pouzenc.fr/mplemmings])
AC_PREREQ([2.68]) # Default version in Ubuntu 12.04.
# May work with earlier autoconf versions but this is untested.

AC_CONFIG_SRCDIR([src/mplemmings.c]) # Check the presence of this file
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([mplemmings_config.h]) # Generate config.h (PACKAGE_* macros, VERSION...)
AC_CONFIG_MACRO_DIR([m4]) # Don't use old-style aclocal.m4

AM_INIT_AUTOMAKE([1.11 -Wall -Werror subdir-objects]) # Default version in Ubuntu 12.04.
# May work with earlier automake versions but this is untested.
AC_CONFIG_FILES([Makefile])

# Prerequities list
AC_PROG_CC
AM_PROG_CC_C_O # For per target CPPFLAGS (used in Makefile.am)
#AC_PROG_LEX
#AC_PROG_YACC

# Depedancies detection
# This uses "pkg-config --cflags sdl2" mechanics and sets DEPS_CFLAGS and DEPS_LIBS makefile vars
PKG_CHECK_MODULES([DEPS], [sdl2 SDL2_image])

# Files generation
AC_OUTPUT