~ubuntu-branches/ubuntu/lucid/tuxtype/lucid-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2006-10-30 13:48:49 UTC
  • mfrom: (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061030134849-5fdruftday0c02gs
Tags: 1.5.6.dfsg1-3ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT(Makefile.am)
3
 
 
 
1
# Process this file with autoconf to produce a configure script.
 
2
AC_INIT(tuxtype, 1.5.6, )
 
3
AC_CANONICAL_HOST
 
4
AC_CANONICAL_TARGET
4
5
AM_CONFIG_HEADER(config.h)
5
 
 
6
 
AM_INIT_AUTOMAKE(tuxtype,1.0)
7
 
 
8
 
dnl Checks for programs.
 
6
AM_INIT_AUTOMAKE(tuxtype, 1.5.6)
 
7
 
 
8
AC_CONFIG_SRCDIR([tuxtype/funcs.h])
 
9
 
 
10
# Checks for programs.
 
11
AC_PROG_CXX
9
12
AC_PROG_CC
10
 
AC_PROG_RANLIB
11
 
AC_PATH_PROG(SDLCONFIG,sdl-config)
12
 
SDLLIBS=`$SDLCONFIG --libs`
13
 
AC_SUBST(SDLLIBS)
14
 
dnl Checks for libraries.
15
 
 
16
 
dnl Checks for header files.
17
 
 
18
 
dnl Checks for typedefs, structures, and compiler characteristics.
19
 
 
20
 
dnl Checks for library functions.
21
 
 
22
 
dnl Check for SDL
23
 
SDL_VERSION=1.0.0
 
13
AC_PROG_CPP
 
14
AC_PROG_INSTALL
 
15
AC_PROG_LN_S
 
16
AC_PROG_MAKE_SET
 
17
 
 
18
AC_PREFIX_DEFAULT(/usr/local)
 
19
if test "x$prefix" = "xNONE"; then
 
20
  prefix=$ac_default_prefix
 
21
  ac_configure_args="$ac_configure_args --prefix $prefix"
 
22
fi
 
23
 
 
24
# Checks for libraries.
 
25
# Check for SDL
 
26
SDL_VERSION=1.2.5
 
27
 
24
28
AM_PATH_SDL($SDL_VERSION,
25
 
        :,
26
 
        AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
27
 
)
 
29
            :,
 
30
            AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
 
31
 
 
32
AC_CHECK_LIB([SDL_image], [IMG_Load], ,[AC_MSG_ERROR(SDL_image not found http://www.libsdl.org/projects/SDL_image, )])
 
33
AC_CHECK_LIB([SDL_mixer], [Mix_PlayMusic], ,[AC_MSG_ERROR(SDL_mixer not found http://www.libsdl.org/projects/SDL_mixer, )])
 
34
AC_CHECK_LIB([SDL_ttf], [TTF_Init], ,[AC_MSG_ERROR(SDL_ttf not found http://www.libsdl.org/projects/SDL_ttf, )])
 
35
 
 
36
# Checks for header files.
 
37
AC_HEADER_STDC
 
38
AC_CHECK_HEADERS([stdlib.h string.h])
 
39
 
 
40
# Checks for typedefs, structures, and compiler characteristics.
 
41
AC_C_CONST
 
42
AC_C_INLINE
 
43
 
 
44
# Checks for library functions.
 
45
AC_CHECK_FUNCS([atexit memset strchr strstr malloc])
 
46
 
 
47
#
 
48
SDL_CFLAGS=`sdl-config --cflags`
28
49
CFLAGS="$CFLAGS $SDL_CFLAGS"
29
 
LIBS="$LIBS $SDL_LIBS"
30
 
 
31
 
AC_OUTPUT(Makefile tuxtype/Makefile tuxtype/docs/Makefile tuxtype/docs/en/Makefile tuxtype/images/Makefile tuxtype/sounds/Makefile tuxtype/data/Makefile )
 
50
 
 
51
SDL_LIBS=`sdl-config --libs`
 
52
LIBS="$SDL_LIBS $LIBS"
 
53
 
 
54
# Sam's Install Kludge-work
 
55
CPPFLAGS="$CPPFLAGS -DDATA_PREFIX=\\\"\$(prefix)\\\""
 
56
 
 
57
AC_CONFIG_FILES([Makefile
 
58
tuxtype/Makefile
 
59
tuxtype/data/Makefile
 
60
tuxtype/data/images/Makefile
 
61
tuxtype/data/images/backgrounds/Makefile
 
62
tuxtype/data/images/cities/Makefile
 
63
tuxtype/data/images/comets/Makefile
 
64
tuxtype/data/images/hands/Makefile
 
65
tuxtype/data/images/keyboard/Makefile
 
66
tuxtype/data/images/menu/Makefile
 
67
tuxtype/data/images/status/Makefile
 
68
tuxtype/data/images/tux/Makefile
 
69
tuxtype/data/scripts/Makefile
 
70
tuxtype/data/sounds/Makefile
 
71
tuxtype/data/themes/Makefile
 
72
tuxtype/data/themes/armenian/Makefile
 
73
tuxtype/data/themes/armenian/images/Makefile
 
74
tuxtype/data/themes/bokmal/Makefile
 
75
tuxtype/data/themes/bokmal/words/Makefile
 
76
tuxtype/data/themes/bokmal/images/Makefile
 
77
tuxtype/data/themes/bokmal/images/status/Makefile
 
78
tuxtype/data/themes/catalan/Makefile
 
79
tuxtype/data/themes/catalan/words/Makefile
 
80
tuxtype/data/themes/dansk/Makefile
 
81
tuxtype/data/themes/dansk/sounds/Makefile
 
82
tuxtype/data/themes/dansk/words/Makefile
 
83
tuxtype/data/themes/deutsch/Makefile
 
84
tuxtype/data/themes/deutsch/words/Makefile
 
85
tuxtype/data/themes/espanol/Makefile
 
86
tuxtype/data/themes/espanol/images/Makefile
 
87
tuxtype/data/themes/espanol/words/Makefile
 
88
tuxtype/data/themes/euskara/Makefile
 
89
tuxtype/data/themes/euskara/images/Makefile
 
90
tuxtype/data/themes/euskara/words/Makefile
 
91
tuxtype/data/themes/french/Makefile
 
92
tuxtype/data/themes/french/words/Makefile
 
93
tuxtype/data/themes/greek/Makefile
 
94
tuxtype/data/themes/greek/words/Makefile
 
95
tuxtype/data/themes/italian/Makefile
 
96
tuxtype/data/themes/italian/words/Makefile
 
97
tuxtype/data/themes/jamaican/Makefile
 
98
tuxtype/data/themes/jamaican/images/Makefile
 
99
tuxtype/data/themes/jamaican/words/Makefile
 
100
tuxtype/data/themes/lithuanian/Makefile
 
101
tuxtype/data/themes/lithuanian/images/Makefile
 
102
tuxtype/data/themes/lithuanian/images/status/Makefile
 
103
tuxtype/data/themes/lithuanian/sounds/Makefile
 
104
tuxtype/data/themes/lithuanian/words/Makefile
 
105
tuxtype/data/themes/nederlands/Makefile
 
106
tuxtype/data/themes/nederlands/words/Makefile
 
107
tuxtype/data/themes/nynorsk/Makefile
 
108
tuxtype/data/themes/nynorsk/images/Makefile
 
109
tuxtype/data/themes/nynorsk/images/status/Makefile
 
110
tuxtype/data/themes/nynorsk/words/Makefile
 
111
tuxtype/data/themes/russian/Makefile
 
112
tuxtype/data/themes/russian/images/Makefile
 
113
tuxtype/data/themes/russian/images/status/Makefile
 
114
tuxtype/data/themes/russian/words/Makefile
 
115
tuxtype/data/themes/svenska/Makefile
 
116
tuxtype/data/themes/svenska/words/Makefile
 
117
tuxtype/data/themes/swahili/Makefile
 
118
tuxtype/data/themes/swahili/words/Makefile
 
119
tuxtype/data/words/Makefile
 
120
tuxtype/docs/Makefile
 
121
tuxtype/docs/en/Makefile
 
122
tuxtype.spec])
 
123
 
 
124
AC_OUTPUT