File: configure.in

package info (click to toggle)
burgerspace 1.5-3.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,380 kB
  • ctags: 319
  • sloc: sh: 8,688; cpp: 2,664; makefile: 197
file content (54 lines) | stat: -rw-r--r-- 1,450 bytes parent folder | download
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
# configure.in for burgerspace
# $Id$

AC_INIT(src/BurgerSpaceEngine.cc)
AM_INIT_AUTOMAKE(burgerspace, 1.5)
# Version 1.0 published on 2001-03-03.
# Version 1.1 published on 2001-03-10.
# Version 1.2 published on 2001-03-13.
# Version 1.3 published on 2001-03-23.
# Version 1.4 started   on 2001-03-24.

# Checks for programs.
AC_PROG_CXX
AC_LANG_CPLUSPLUS
AM_PROG_LIBTOOL

# Checks for libraries.
AC_ARG_WITH(gengameng-prefix,
    [--with-gengameng-prefix=DIR   Dir prefix where gengameng library is installed],
    [
	#
	# It will be preferable to have a gengameng-config script which
	# accepts --cflags and --libs flags, in order to avoid having to
	# call sdl-config directly from here.
	#
	GENGAMENG_CFLAGS="-I$withval/include/gengameng `sdl-config --cflags`"
	LIBS="-L$withval/lib -lgengameng $LIBS -lSDL_image `sdl-config --libs`"
	AC_MSG_RESULT([using $withval as gengameng prefix])
    ],
    [
	if test -d /usr/local/include/gengameng
	then	_tmp=/usr/local
	elif test -d /usr/include/gengameng
	then	_tmp=/usr
	else	
		AC_MSG_ERROR([could not find gengameng library; use --with-gengameng-prefix])
	fi

	AC_MSG_RESULT([using $_tmp as gengameng prefix])

	GENGAMENG_CFLAGS="-I$_tmp/include/gengameng `sdl-config --cflags`"
	LIBS="-L$_tmp/lib -lgengameng $LIBS -lSDL_image `sdl-config --libs`"

	unset _tmp
    ])

AC_SUBST(GENGAMENG_CFLAGS)

AC_OUTPUT( \
	Makefile \
	burgerspace.spec \
	src/Makefile \
	src/images/Makefile \
	doc/Makefile)