File: configure.ac

package info (click to toggle)
burgerspace 1.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,524 kB
  • sloc: sh: 10,939; cpp: 5,791; makefile: 240
file content (94 lines) | stat: -rw-r--r-- 2,024 bytes parent folder | download | duplicates (2)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# $Id: configure.ac,v 1.22 2013/02/25 05:04:42 sarrazip Exp $
# configure.ac for burgerspace

AC_PREREQ(2.50)
AC_INIT(src/BurgerSpaceClient.h)
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(burgerspace, 1.9.2)

MANUAL_DATE_EN="February 25th, 2013"; AC_SUBST(MANUAL_DATE_EN)
MANUAL_DATE_FR="25 février 2013"; AC_SUBST(MANUAL_DATE_FR)  # UTF-8

PACKAGE_FULL_NAME="BurgerSpace"
PACKAGE_SUMMARY_EN="A hamburger-smashing video game"
PACKAGE_SUMMARY_FR="Un jeu de hamburgers qu'on écrase"  # UTF-8
PACKAGE_SUMMARY_DE="Ein Hamburger-Quetsch-Spiel"  # UTF-8
AC_SUBST(PACKAGE_FULL_NAME)
AC_SUBST(PACKAGE_SUMMARY_EN)
AC_SUBST(PACKAGE_SUMMARY_FR)
AC_SUBST(PACKAGE_SUMMARY_DE)


AC_DISABLE_STATIC
AC_PROG_LIBTOOL  dnl This must come after AC_DISABLE_STATIC.


# Checks for programs.

AC_PROG_CXX
AC_COMPILE_WARNINGS
AC_LANG_CPLUSPLUS


# Checks for libraries.

MINVER_FLATZEBRA=0.1.6; AC_SUBST(MINVER_FLATZEBRA)
PKG_CHECK_MODULES(FLATZEBRA, flatzebra-0.1 >= $MINVER_FLATZEBRA)


# Check for getopt_long() but don't fail if it is not available:
GETOPT_LONG


# Configuration options.

build_network=no

AC_ARG_WITH([network],
[  --with-network          build network (client-server) version (default: yes)],
[
	if test "$withval" = no; then
		build_network=no
	else
		build_network=yes
	fi
],
[
	build_network=yes
])


# Allow specification of default UDP port.

AC_MSG_RESULT([building network version: $build_network])
AM_CONDITIONAL(BUILD_NETWORK, [test "$build_network" = yes])

DEFAULT_UDP_SERVER_PORT=49152  # private as per IANA
AC_ARG_WITH([default-udp-port],
[  --with-default-udp-port  default UDP port number on which to accept clients (default: 49152)],
[
	if test "$withval" = no; then
		true
	else
		DEFAULT_UDP_SERVER_PORT="$withval"
	fi
]
[
	true
])

AC_SUBST(DEFAULT_UDP_SERVER_PORT)
AC_MSG_RESULT([using $DEFAULT_UDP_SERVER_PORT as default UDP listening port])


# Generate files.

AC_OUTPUT([
	Makefile
	burgerspace.spec
	src/Makefile
	src/burgerspace.desktop
	doc/burgerspace.6
	doc/burgerspace-server.6
])