~ubuntu-branches/ubuntu/maverick/lordsawar/maverick

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2010-04-10 09:29:33 UTC
  • mfrom: (1.1.9 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100410092933-23uq4dxig30kmtcw
Tags: 0.1.8-1
* New upstream release.
* Add misc:Depends for -data package.
* Bump Standards Version to 3.8.4. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
dnl This is useful to force using autoreconf 2.5.x
3
3
AC_PREREQ(2.59)
4
 
AC_INIT([lordsawar], [0.1.6], [http://sv.nongnu.org/bugs/?group=lordsawar], [lordsawar])
 
4
AC_INIT([lordsawar], [0.1.8], [lordsawar-discuss@nongnu.org], [lordsawar])
5
5
AC_CONFIG_SRCDIR([config.h.in])
6
6
AM_CONFIG_HEADER(config.h)
7
7
AC_CONFIG_MACRO_DIR([m4])
24
24
    
25
25
dnl Checks for programs.
26
26
AC_PROG_CXX
 
27
if test -n "$CXX"; then
 
28
  gppver=`$CXX --version 2>/dev/null | sed -e '2,$d' -e 's@^\([[^0-9.]]*\) \([[0-9.]]*\)\(.*\)@\2@'`
 
29
else
 
30
  AC_MSG_ERROR([*** C++ compiler not found.])
 
31
fi
 
32
AC_SUBST([gppver])
 
33
 
27
34
AC_PROG_LIBTOOL
28
35
 
29
36
dnl The minimum SDL version required
105
112
   AC_CHECK_LIB(expat,XML_ParserCreate,[],[AC_MSG_ERROR([*** Expat not found!])])
106
113
fi
107
114
 
 
115
dnl Check for libtar
 
116
libtar=0
 
117
AC_ARG_WITH(libtar, [  --with-libtar=<dir>      Use libtar from here],
 
118
                      [
 
119
                      libtar=$withval
 
120
                      CPPFLAGS="$CPPFLAGS -I$withval/include"
 
121
                      LDFLAGS="$LDFLAGS -L$withval/lib"
 
122
                      LIBS="$LIBS -ltar"
 
123
                      ]
 
124
                      )
 
125
if test $libtar = 0 ; then
 
126
   AC_CHECK_HEADERS(libtar.h,[],AC_MSG_ERROR([*** Libtar not found!]))
 
127
   AC_CHECK_LIB(tar,tar_open,[],[AC_MSG_ERROR([*** Libtar not found!])])
 
128
fi
 
129
 
108
130
dnl this is needed in cross-compile with mingw32
109
131
AC_ARG_ENABLE(winlibs,             
110
132
              [  --enable-winlibs         enable windows cross-compiling libs],
256
278
        dat/tilesets/bigdefault/Makefile
257
279
        dat/tilesets/stark/Makefile
258
280
        dat/tilesets/bigstark/Makefile
 
281
        dat/tilesets/wesnoth/Makefile
 
282
        dat/tilesets/bigwesnoth/Makefile
259
283
        dat/shield/Makefile 
260
284
        dat/shield/default/Makefile 
261
285
        dat/shield/plain/Makefile 
269
293
        dat/various/items/Makefile
270
294
        dat/various/editor/Makefile
271
295
        dat/map/Makefile 
272
 
        dat/campaign/Makefile 
273
296
        dat/music/Makefile
274
297
        dat/glade/Makefile
275
298
        dat/glade/editor/Makefile