1 |
dnl Process this file with autoconf to produce a configure script. |
2 |
dnl Written in 2000 by Christian Bauer <Christian.Bauer@uni-mainz.de> |
3 |
|
4 |
AC_INIT |
5 |
AC_CONFIG_SRCDIR(src/main.cpp) |
6 |
AC_PREREQ(2.50) |
7 |
|
8 |
dnl Detect the canonical host and target build environment. |
9 |
AC_CANONICAL_HOST |
10 |
AC_CANONICAL_TARGET |
11 |
|
12 |
dnl This defines PACKAGE and VERSION. |
13 |
AM_CONFIG_HEADER(config.h) |
14 |
AM_INIT_AUTOMAKE([SIDPlayer], [4.3]) |
15 |
|
16 |
dnl Checks for programs. |
17 |
AC_PROG_CXX |
18 |
AC_PROG_CXXCPP |
19 |
AC_PROG_INSTALL |
20 |
|
21 |
dnl Check for SDL. |
22 |
AM_PATH_SDL(1.2.0, , AC_MSG_ERROR([You need SDL 1.2 to SIDPlayer.])) |
23 |
CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -DSDL -DSID_PLAYER" |
24 |
LIBS="$LIBS $SDL_LIBS" |
25 |
|
26 |
dnl Generate Makefiles. |
27 |
AC_OUTPUT([ |
28 |
Makefile |
29 |
SIDPlayer.spec |
30 |
src/Makefile |
31 |
src/clamp_includes/Makefile |
32 |
src/soundplay_includes/Makefile |
33 |
]) |
34 |
|
35 |
dnl Print summary. |
36 |
echo "Configuration done. Now type \"make\"." |