File: configure.ac

package info (click to toggle)
pong2 0.1.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,908 kB
  • ctags: 452
  • sloc: sh: 3,362; cpp: 2,157; ansic: 1,130; makefile: 34
file content (53 lines) | stat: -rw-r--r-- 1,561 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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/main.cpp)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(pong2, 0.1.1)

AM_CONFIG_HEADER(config.h)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX

AC_PROG_RANLIB

dnl Checks for header files.
AC_HEADER_STDC

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Check for headers
# AC_CHECK_HEADERS([jpeglib.h])

dnl Checks for libraries.
AC_CHECK_LIB([GL], [glBegin],, AC_MSG_ERROR([Error! You do not have OpenGL
installed. You will not be able to play this game.]))

AC_CHECK_LIB([GLU], [gluLookAt],, AC_MSG_ERROR([Error! You do not have OpenGL
installed. You will not be able to play this game.]))

# AC_CHECK_LIB([jpeg], [jpeg_start_compress],, AC_MSG_ERROR([libjpeg not found!]))

AC_CHECK_LIB([SDL_net], [SDLNet_Init],, AC_MSG_ERROR([Error! You need
SDL_net. Check out http://www.libsdl.org/projects/SDL_net/ for
more info.]))

# AC_CHECK_LIB([SDL_ttf], [TTF_OpenFont],, AC_MSG_ERROR([Error! You need SDL_ttf.
# Check out http://www.libsdl.org/projects/SDL_ttf/ for more info.]))

# AC_CHECK_LIB([SDL_image], [IMG_Load],, AC_MSG_ERROR([SDL_image not found]))

dnl Check for SDL
SDL_VERSION=1.2.4
AM_PATH_SDL($SDL_VERSION,:,
			AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
dnl CFLAGS="$CFLAGS $SDL_CFLAGS"
CFLAGS="$CFLAGS $SDL_CFLAGS -DPATH_PREFIX=\\\"\$(datadir)/\$(PACKAGE)/\\\""
CXXFLAGS="$CFLAGS"
LIBS="$LIBS $SDL_LIBS"

dnl Checks for library functions.

AC_OUTPUT([Makefile src/Makefile src/net/Makefile data/Makefile])