~ubuntu-branches/ubuntu/trusty/mapnik/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-20 15:39:58 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090520153958-cf6z1ql9zva4y4dq
Tags: 0.6.0-1ubuntu1
* Merge from debian unstable (LP: #378819), remaining changes:
  - debian/control:
    + Change bdeps from python2.5-dev to python-all-dev (>= 2.5)
    + Change XS-Python-Version from 2.5 to >= 2.5
  - debian/rules:
    + Various changes to enable python2.5 and python2.6 builds
* debian/patches/libtool2_2.diff Dropped. Included upsteam.
* Removed quilt support.

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 Created by Anjuta application wizard.
3
3
 
4
 
AC_INIT(mapnik, 0.4.0)
 
4
AC_INIT(mapnik, 0.6.0)
5
5
 
6
6
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
7
7
AM_CONFIG_HEADER(config.h)
24
24
        [  --enable-debug=[no/yes]        enables debug build (default=no)],,
25
25
                 enable_debug=no)
26
26
 
27
 
dnl Checks for libraries
28
27
if [ ! test "x$enable_debug" != "xyes"]; then
29
28
  AC_DEFINE(DEBUG, 1, [Define to enable debug build])
30
 
  CXXFLAGS="${CXXFLAGS} -g -DDEBUG -DMAPNIK_DEBUG"
31
 
  AC_MSG_RESULT(yes)
32
 
else
33
 
  AC_MSG_RESULT(no)
34
 
fi
35
 
 
 
29
  CXXFLAGS="-ggdb -O0 -DDEBUG"
 
30
  AC_MSG_RESULT(yes)
 
31
else
 
32
  CXXFLAGS="-O3"
 
33
  AC_MSG_RESULT(no)
 
34
fi
 
35
 
 
36
 
 
37
dnl Check for option to enable profiling
 
38
AC_MSG_CHECKING(whether to enable profiling)
 
39
AC_ARG_ENABLE(profiling,
 
40
        [  --enable-profiling=[no/yes]        enables profiling build (default=no)],,
 
41
                 enable_profiling=no)
 
42
 
 
43
if [ ! test "x$enable_profiling" != "xyes"]; then
 
44
  AC_DEFINE(PROFILING, 1, [Define to enable profiling build])
 
45
  PROFILING_CFLAGS="$PROFILING_CFLAGS -pg"
 
46
  AC_SUBST(PROFILING_CFLAGS)
 
47
else
 
48
  AC_MSG_RESULT(no)
 
49
fi
 
50
 
 
51
dnl Check for option to enable tracing
 
52
AC_MSG_CHECKING(whether to enable tracing)
 
53
AC_ARG_ENABLE(tracing,
 
54
        [  --enable-tracing=[no/yes]        enables tracing build (default=no)],,
 
55
                 enable_tracing=no)
 
56
 
 
57
if [ ! test "x$enable_tracing" != "xyes"]; then
 
58
  TRACING_CFLAGS="-DMAPNIK_DEBUG"
 
59
  AC_SUBST(TRACING_CFLAGS)
 
60
  AC_MSG_RESULT(yes)
 
61
else
 
62
  AC_MSG_RESULT(no)
 
63
fi
36
64
 
37
65
dnl Check for boost
38
66
AX_BOOST_BASE
73
101
  exit
74
102
fi
75
103
 
 
104
AX_BOOST_IOSTREAMS
 
105
if test "x$ax_cv_boost_iostreams" = "xno"; then
 
106
  echo
 
107
  echo "Error: You need to install the boost iostreams library!"
 
108
  echo
 
109
  exit
 
110
fi
 
111
 
 
112
AX_BOOST_PROGRAM_OPTIONS
 
113
AM_CONDITIONAL(HAVE_BOOST_PROGRAM_OPTIONS, test "x$ax_cv_boost_program_options" = "xyes")
 
114
 
 
115
dnl check to build python bindings
 
116
AX_BOOST_PYTHON
 
117
 
 
118
AM_PATH_PYTHON([2.4])
 
119
 
76
120
AX_LIB_POSTGRESQL
77
 
if test "$found_postgresql" = "yes"; then
78
 
  AM_CONDITIONAL(BUILD_POSTGRESQL, test "x$found_postgresql" = "xyes")
79
 
fi
 
121
if test "x$found_postgresql" = "xyes"; then
 
122
  echo "checking whether to enable postgresql... yes"
 
123
else
 
124
  echo "checking whether to enable postgresql... no"
 
125
fi
 
126
AM_CONDITIONAL(HAVE_POSTGRESQL, test "x$found_postgresql" = "xyes")
 
127
 
 
128
AC_ARG_WITH(gdal-config,
 
129
[  --with-gdal-config=GDAL_CONFIG    use gdal-config specified ],
 
130
[
 
131
  GDAL_CONFIG=$withval;
 
132
  echo "using "$GDAL_CONFIG" for gdal-config";
 
133
],[
 
134
  PROG="gdal-config";
 
135
  AC_PATH_PROG(GDAL_CONFIG, $PROG, "", $PATH)
 
136
])
 
137
 
 
138
if test "x$GDAL_CONFIG" != "x"; then
 
139
  GDAL_CFLAGS=`$GDAL_CONFIG --cflags`
 
140
  GDAL_LIBS=`$GDAL_CONFIG --libs`
 
141
  AC_SUBST(GDAL_CFLAGS)
 
142
  AC_SUBST(GDAL_LIBS)
 
143
  found_gdal="yes"
 
144
else
 
145
  found_gdal="no"
 
146
fi
 
147
AM_CONDITIONAL(HAVE_GDAL, test "x$GDAL_CONFIG" != "x")
 
148
 
80
149
 
81
150
AX_CHECK_TIFF
82
151
if test "x$link_tiff" = "xno"; then
99
168
  exit
100
169
fi
101
170
 
 
171
## test for optional sqlite3 support
 
172
AX_LIB_SQLITE3
 
173
if [ test "x$success" = "xyes"]; then
 
174
  found_sqlite3="yes"
 
175
fi
 
176
AM_CONDITIONAL(HAVE_SQLITE3, test "x$success" = "xyes")
 
177
 
102
178
PKG_CHECK_MODULES(PNG, libpng)
103
179
AC_SUBST(PNG_CFLAGS)
104
180
AC_SUBST(PNG_LIBS)
129
205
 
130
206
 
131
207
dnl Check for option to enable libxml2
132
 
AC_MSG_CHECKING(whether to enable included libxml2 building)
 
208
AC_MSG_CHECKING(whether to enable libxml2 support)
133
209
AC_ARG_ENABLE(libxml2,
134
 
        [  --enable-libxml2=[no/yes]        enables included libxml2 build (default=no)],,
 
210
        [  --enable-libxml2=[no/yes]        enables libxml2 support (default=no)],,
135
211
                 enable_libxml2=no)
136
212
 
137
213
AM_CONDITIONAL(HAVE_LIBXML2, test "x$enable_libxml2" = "xyes")
144
220
  AC_MSG_RESULT(no)
145
221
fi
146
222
 
 
223
dnl Check for option to enable cairo
 
224
AC_MSG_CHECKING(whether to enable cairo support)
 
225
AC_ARG_ENABLE(cairo,
 
226
        [  --enable-cairo=[no/yes]        enables cairo support (default=yes)],,
 
227
                 enable_cairo=yes)
 
228
 
 
229
AM_CONDITIONAL(HAVE_CAIRO, test "x$enable_cairo" = "xyes")
 
230
 
 
231
if [ test "x$enable_cairo" = "xyes"]; then
 
232
  AC_MSG_RESULT(yes)
 
233
  PKG_CHECK_MODULES(CAIRO, cairomm-1.0 >= 1.4.4)
 
234
  dnl AC_DEFINE(HAVE_CAIRO, 1,"")
 
235
else
 
236
  AC_MSG_RESULT(no)
 
237
fi
 
238
 
 
239
#dnl Set PACKAGE SOURCE DIR in config.h.
 
240
packagesrcdir=`cd $srcdir && pwd`
 
241
 
 
242
#dnl Set PACKAGE PREFIX
 
243
if test "x${prefix}" = "xNONE"; then
 
244
  packageprefix=${ac_default_prefix}
 
245
else
 
246
  packageprefix=${prefix}
 
247
fi
 
248
 
 
249
#dnl Set PACKAGE DIRS in config.h
 
250
packagedatadir=share/${PACKAGE}
 
251
packagedocdir=doc/${PACKAGE}
 
252
packagepixmapsdir=share/pixmaps/${PACKAGE}
 
253
packagelibdir=lib/${PACKAGE}
 
254
systemfontsdir=share/fonts
 
255
 
 
256
#dnl Subst PACKAGE_DATA_DIR.
 
257
NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}"
 
258
AC_SUBST(NO_PREFIX_PACKAGE_DATA_DIR)
 
259
PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
 
260
AC_SUBST(PACKAGE_DATA_DIR)
 
261
 
 
262
dnl Subst PACKAGE_DOC_DIR.
 
263
NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}"
 
264
AC_SUBST(NO_PREFIX_PACKAGE_DOC_DIR)
 
265
PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}"
 
266
AC_SUBST(PACKAGE_DOC_DIR)
 
267
 
 
268
dnl Subst PACKAGE_PIXMAPS_DIR.
 
269
NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}"
 
270
AC_SUBST(NO_PREFIX_PACKAGE_PIXMAPS_DIR)
 
271
PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
 
272
AC_SUBST(PACKAGE_PIXMAPS_DIR)
 
273
 
 
274
dnl Subst PACKAGE_LIB_DIR
 
275
NO_PREFIX_PACKAGE_LIB_DIR="${packagelibmapsdir}"
 
276
AC_SUBST(NO_PREFIX_PACKAGE_LIB_DIR)
 
277
PACKAGE_LIB_DIR="${packageprefix}/${packagelibdir}"
 
278
AC_SUBST(PACKAGE_LIB_DIR)
 
279
 
 
280
dnl Subst SYSTEM_FONTS_DIR
 
281
NO_PREFIX_SYSTEM_FONTS_DIR="${systemfontsdir}"
 
282
AC_SUBST(NO_PREFIX_SYSTEM_FONTS_DIR)
 
283
SYSTEM_FONTS_DIR="${packageprefix}/${systemfontsdir}"
 
284
AC_SUBST(SYSTEM_FONTS_DIR)
 
285
 
 
286
AC_DEFINE_UNQUOTED(SYSTEM_FONTS_DIR, "${packageprefix}/${systemfontsdir}","")
 
287
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${packageprefix}/${packagelibdir}","")
 
288
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${packageprefix}/${packagedatadir}","")
 
289
AC_DEFINE_UNQUOTED(SYSTEM_DATA_DIR, "${packageprefix}/${systemdatadir}","")
 
290
AC_DEFINE_UNQUOTED(PACKAGE_DOC_DIR, "${packageprefix}/${packagedocdir}","")
 
291
AC_DEFINE_UNQUOTED(PACKAGE_PIXMAPS_DIR, "${packageprefix}/${packagepixmapsdir}","")
 
292
AC_DEFINE_UNQUOTED(SYSTEM_PIXMAPS_DIR, "${packageprefix}/${systempixmapsdir}","")
 
293
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}","")
 
294
 
147
295
AC_OUTPUT([
148
296
Makefile
149
297
include/Makefile
150
298
include/mapnik/Makefile
 
299
agg/Makefile
 
300
agg/src/Makefile
 
301
agg/include/Makefile
 
302
bindings/Makefile
 
303
bindings/python/Makefile
 
304
bindings/python/mapnik/Makefile
 
305
bindings/python/mapnik/ogcserver/Makefile
 
306
bindings/python/mapnik/paths.py
151
307
plugins/Makefile
152
308
plugins/input/Makefile
153
309
plugins/input/gdal/Makefile
154
310
plugins/input/postgis/Makefile
155
311
plugins/input/raster/Makefile
156
312
plugins/input/shape/Makefile
 
313
plugins/input/osm/Makefile
 
314
plugins/input/ogr/Makefile
 
315
plugins/input/sqlite/Makefile
 
316
plugins/input/kismet/Makefile
157
317
src/Makefile
158
318
mapnik.pc
159
319
mapnik-uninstalled.pc
160
 
agg/Makefile
161
 
agg/src/Makefile
162
 
agg/include/Makefile
163
320
])
 
321
 
 
322
echo
 
323
echo "Build configuration:"
 
324
echo "--------------------"
 
325
echo
 
326
echo "Library support:"
 
327
echo "cairo ......................... $enable_cairo" 
 
328
echo "build included agg library..... $enable_included_agg"
 
329
echo "libxml2 loader ................ $enable_libxml2"
 
330
echo
 
331
echo "Plugin support:"
 
332
echo "build plugin (input/postgis)... $found_postgresql" 
 
333
echo "build plugin (input/gdal)...... $found_gdal" 
 
334
echo "build plugin (input/ogr)....... $found_gdal" 
 
335
echo "build plugin (input/osm)....... $enable_libxml2" 
 
336
echo "build plugin (input/sqlite).... $found_sqlite3" 
 
337
echo
 
338
echo "Debugging support:"
 
339
echo "debugger (gdb)................. $enable_debug" 
 
340
echo "profiling (gprof).............. $enable_profiling"
 
341
echo "tracing (log output)........... $enable_tracing"
 
342
 
 
343
dnl echo "build shapeindex application... $ax_cv_boost_program_options" 
 
344
 
 
345
echo