24
24
[ --enable-debug=[no/yes] enables debug build (default=no)],,
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"
29
CXXFLAGS="-ggdb -O0 -DDEBUG"
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)],,
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)
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)],,
57
if [ ! test "x$enable_tracing" != "xyes"]; then
58
TRACING_CFLAGS="-DMAPNIK_DEBUG"
59
AC_SUBST(TRACING_CFLAGS)
37
65
dnl Check for boost
105
if test "x$ax_cv_boost_iostreams" = "xno"; then
107
echo "Error: You need to install the boost iostreams library!"
112
AX_BOOST_PROGRAM_OPTIONS
113
AM_CONDITIONAL(HAVE_BOOST_PROGRAM_OPTIONS, test "x$ax_cv_boost_program_options" = "xyes")
115
dnl check to build python bindings
118
AM_PATH_PYTHON([2.4])
77
if test "$found_postgresql" = "yes"; then
78
AM_CONDITIONAL(BUILD_POSTGRESQL, test "x$found_postgresql" = "xyes")
121
if test "x$found_postgresql" = "xyes"; then
122
echo "checking whether to enable postgresql... yes"
124
echo "checking whether to enable postgresql... no"
126
AM_CONDITIONAL(HAVE_POSTGRESQL, test "x$found_postgresql" = "xyes")
128
AC_ARG_WITH(gdal-config,
129
[ --with-gdal-config=GDAL_CONFIG use gdal-config specified ],
131
GDAL_CONFIG=$withval;
132
echo "using "$GDAL_CONFIG" for gdal-config";
135
AC_PATH_PROG(GDAL_CONFIG, $PROG, "", $PATH)
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)
147
AM_CONDITIONAL(HAVE_GDAL, test "x$GDAL_CONFIG" != "x")
82
151
if test "x$link_tiff" = "xno"; then
144
220
AC_MSG_RESULT(no)
223
dnl Check for option to enable cairo
224
AC_MSG_CHECKING(whether to enable cairo support)
226
[ --enable-cairo=[no/yes] enables cairo support (default=yes)],,
229
AM_CONDITIONAL(HAVE_CAIRO, test "x$enable_cairo" = "xyes")
231
if [ test "x$enable_cairo" = "xyes"]; then
233
PKG_CHECK_MODULES(CAIRO, cairomm-1.0 >= 1.4.4)
234
dnl AC_DEFINE(HAVE_CAIRO, 1,"")
239
#dnl Set PACKAGE SOURCE DIR in config.h.
240
packagesrcdir=`cd $srcdir && pwd`
242
#dnl Set PACKAGE PREFIX
243
if test "x${prefix}" = "xNONE"; then
244
packageprefix=${ac_default_prefix}
246
packageprefix=${prefix}
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
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)
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)
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)
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)
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)
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}","")
150
298
include/mapnik/Makefile
303
bindings/python/Makefile
304
bindings/python/mapnik/Makefile
305
bindings/python/mapnik/ogcserver/Makefile
306
bindings/python/mapnik/paths.py
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
159
319
mapnik-uninstalled.pc
323
echo "Build configuration:"
324
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"
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"
338
echo "Debugging support:"
339
echo "debugger (gdb)................. $enable_debug"
340
echo "profiling (gprof).............. $enable_profiling"
341
echo "tracing (log output)........... $enable_tracing"
343
dnl echo "build shapeindex application... $ax_cv_boost_program_options"