File: configure.ac

package info (click to toggle)
flatzebra 0.1.6-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,688 kB
  • ctags: 458
  • sloc: sh: 10,939; cpp: 1,960; makefile: 89
file content (80 lines) | stat: -rw-r--r-- 1,989 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# $Id: configure.ac,v 1.19 2012/07/06 04:36:47 sarrazip Exp $
# configure.ac for the FlatZebra library

AC_PREREQ(2.54)

AC_INIT(src/flatzebra/GameEngine.h)

AM_INIT_AUTOMAKE(flatzebra, 0.1.6)
API=`echo $VERSION | cut -d . -f -2`; AC_SUBST(API)
RELEASE=`echo $VERSION | cut -d . -f 3`; AC_SUBST(RELEASE)

PACKAGE_FULL_NAME="FlatZebra"
PACKAGE_SUMMARY_EN="Small Engine for 2D video games like BurgerSpace"
PACKAGE_SUMMARY_FR="Petit moteur pour jeux vidéo 2D comme BurgerSpace"
AC_SUBST(PACKAGE_FULL_NAME)
AC_SUBST(PACKAGE_SUMMARY_EN)
AC_SUBST(PACKAGE_SUMMARY_FR)


MINVER_SDL=1.2.4;       AC_SUBST(MINVER_SDL)
MINVER_SDL_IMAGE=1.2.2; AC_SUBST(MINVER_SDL_IMAGE)
MINVER_SDL_MIXER=1.2.4; AC_SUBST(MINVER_SDL_MIXER)


# Checks for programs.

AC_PROG_CXX
AC_COMPILE_WARNINGS
AC_LANG_CPLUSPLUS

AC_DISABLE_STATIC
# This macro changes the default behavior of AC_PROG_LIBTOOL so
# that static libraries will not be built by default.
# This avoids compiling every file twice.
# The user can still override this new default by using `--enable-static'.

AM_PROG_LIBTOOL
# This must come after AC_DISABLE_STATIC.


# Checks for libraries.

# Use C mode for SDL tests:
AC_LANG_C

AM_PATH_SDL(1.2.4)

# Remove any -rpath option from SDL_LIBS, so as not to hardcode
# the library path into the executable file:
#

SDL_LIBS=`echo $SDL_LIBS | sed ['s:-Wl,-rpath,[^ ]*: :g]'`

# AM_PATH_SDL does not stop if SDL is not found; therefore:
if test "_$SDL_LIBS" = _; then
	AC_MSG_ERROR([SDL not found])
fi

# We also need the SDL_image and SDL_mixer libraries:
AM_TRY_LINK_SDL_IMAGE
TRY_LINK_SDL_MIXER

# This will insert SDL_image and SDL_mixer in the dependency_libs field
# of the installed .la file. The flatzebra shared library will also
# specify SDL_image and SDL_mixer as being needed.
#
SDL_LIBS="$SDL_LIBS -lSDL_image -lSDL_mixer"

# Back to C++ mode after SDL tests.
AC_LANG_CPLUSPLUS


AC_CONFIG_FILES([
	Makefile
	flatzebra.spec
	flatzebra-0.1.pc
	src/Makefile
	src/flatzebra/Makefile
])
AC_OUTPUT