~ubuntu-branches/ubuntu/trusty/enigma/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Erich Schubert
  • Date: 2013-04-06 14:54:02 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130406145402-jgjrtk7hac8gtvza
Tags: 1.20-dfsg.1-1
* New upstream release (Closes: #704595)
  (Repacked: dropped zipios++ source and main menu music)
* Update watch file, sf.net again.
* Fix documentation links (Closes: #653508)
* Conflict with enigma-level-previews to encourage deinstallation
  (Pregenerated level previews were only used with version 1.01)
* Use dh7 for building instead of CDBS
* Update to policy 3.9.4.0 (no changes)
* Register documentation with doc-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Process this file with autoconf to produce a configure script.
2
 
AC_INIT([enigma],[1.01])
 
2
AC_INIT([enigma],[1.20])
3
3
AC_PREREQ(2.59)
4
4
AC_CANONICAL_BUILD
5
5
AC_CANONICAL_TARGET
137
137
 
138
138
SDL_LIBS="$SDL_LIBS -lSDL_mixer"
139
139
 
140
 
AC_CHECK_LIB(SDL_mixer, Mix_QuickLoad_RAW, have_mix_quickload="yes", have_mix_quickload="no")
141
 
if test "$have_mix_quickload" = no; then
142
 
  AC_MSG_ERROR([SDL_mixer >= 1.2.5 is required to compile Enigma])
 
140
if test "$MINGW32" = no; then
 
141
  AC_CHECK_LIB(SDL_mixer, Mix_QuickLoad_RAW, have_mix_quickload="yes", have_mix_quickload="no")
 
142
  if test "$have_mix_quickload" = no; then
 
143
    AC_MSG_ERROR([SDL_mixer >= 1.2.5 is required to compile Enigma])
 
144
  fi
143
145
fi
144
146
 
145
147
AC_CHECK_LIB(SDL_mixer, Mix_Init, have_mix_init="yes", have_mix_init="no")
150
152
dnl ----------------------------------------
151
153
dnl Check for SDL_ttf library
152
154
dnl ---------------------------------------
153
 
AC_MSG_CHECKING([for SDL_ttf >=2.0.6])
154
 
AC_RUN_IFELSE([AC_LANG_SOURCE(
155
 
    [[#include <SDL_ttf.h>
156
 
      int main(int argc, char *argv[]) {
157
 
      if (TTF_MAJOR_VERSION < 2)
158
 
        return 1;
159
 
      else if (TTF_MAJOR_VERSION == 2 && TTF_MINOR_VERSION == 0 && TTF_PATCHLEVEL < 6) 
160
 
        return 1;
161
 
      return 0;}]])],
162
 
  [AC_MSG_RESULT([found])],
163
 
  [AC_MSG_ERROR([SDL_ttf >= 2.0.6 not found.])])
 
155
if test "$MINGW32" = no; then
 
156
  AC_MSG_CHECKING([for SDL_ttf >=2.0.6])
 
157
  AC_RUN_IFELSE([AC_LANG_SOURCE(
 
158
      [[#include <SDL_ttf.h>
 
159
        int main(int argc, char *argv[]) {
 
160
        if (TTF_MAJOR_VERSION < 2)
 
161
          return 1;
 
162
        else if (TTF_MAJOR_VERSION == 2 && TTF_MINOR_VERSION == 0 && TTF_PATCHLEVEL < 6) 
 
163
          return 1;
 
164
        return 0;}]])],
 
165
    [AC_MSG_RESULT([found])],
 
166
    [AC_MSG_ERROR([SDL_ttf >= 2.0.6 not found.])])
 
167
fi
164
168
AC_CHECK_LIB(SDL_ttf, main,,[AC_MSG_ERROR([SDL_ttf is required to compile Enigma])])
165
169
 
166
170
SDL_LIBS="$SDL_LIBS -lSDL_ttf"
176
180
dnl ----------------------------------------
177
181
dnl Check for libpng
178
182
dnl ---------------------------------------
179
 
if test "$MINGW32" = yes; then
180
 
  AC_CHECK_LIB(png12,png_create_write_struct,,[AC_MSG_ERROR([libpng is required to compile Enigma])])
181
 
else
 
183
if test "$MINGW32" = no; then
182
184
  AC_CHECK_LIB(png,png_create_write_struct,,[AC_MSG_ERROR([libpng is required to compile Enigma])])
 
185
dnl else
 
186
dnl   AC_CHECK_LIB(png12,png_create_write_struct,,[AC_MSG_ERROR([libpng is required to compile Enigma])])
183
187
fi
184
188
 
185
189
dnl ----------------------------------------
217
221
dnl ----------------------------------------
218
222
dnl Check for libcurl
219
223
dnl ---------------------------------------
220
 
AC_CHECK_LIB(curl,curl_global_init,,[AC_MSG_ERROR([libcurl is required to compile Enigma])])
 
224
if test "$MINGW32" = yes; then
 
225
  AC_CHECK_LIB(curl,main,,[AC_MSG_ERROR([libcurl is required to compile Enigma])])
 
226
else
 
227
  AC_CHECK_LIB(curl,curl_global_init,,[AC_MSG_ERROR([libcurl is required to compile Enigma])])
 
228
fi
221
229
 
222
230
dnl ----------------------------------------
223
231
dnl Activate optimizations when profiling, to get rid of
384
392
           data/levels/enigma_vii/Makefile
385
393
           data/levels/enigma_viii/Makefile
386
394
           data/levels/enigma_ix/Makefile
 
395
           data/levels/enigma_x/Makefile
387
396
           data/levels/enigma_cross/Makefile
388
397
           data/levels/enigma_esprit/Makefile
389
398
           data/levels/enigma_oxyd/Makefile
392
401
           data/levels/enigma_oxydextra/Makefile
393
402
           data/levels/enigma_experimental/Makefile
394
403
           data/levels/enigma_demolevels/Makefile
 
404
           data/levels/enigma_advent_10/Makefile
395
405
           data/levels/pentomino_i/Makefile
396
406
           data/levels/soko/Makefile
397
407
           data/levels/soko/skinner_microban01/Makefile
415
425
           data/levels/patches/Makefile
416
426
           data/fonts/Makefile
417
427
           data/music/Makefile
 
428
           data/music/game/Makefile
418
429
           data/music/menu/Makefile
419
430
           data/soundsets/Makefile
420
431
           data/soundsets/enigma/Makefile