Changeset 691 for trunk/configure.ac

Show
Ignore:
Timestamp:
04/06/08 14:13:13 (9 months ago)
Author:
andreas
Message:

- updated autotools build files
- build now osm plugin automatic if libxml2 is used
- moved osm/Makefile to osm/Makefile.example because if name collision

-> better move the example to another directory later

- optional CAIRO support
- changed libxml2 switch comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r556 r691  
    7676AX_LIB_POSTGRESQL 
    7777if test "$found_postgresql" = "yes"; then 
    78   AM_CONDITIONAL(BUILD_POSTGRESQL, test "x$found_postgresql" = "xyes") 
     78  AM_CONDITIONAL(HAVE_POSTGRESQL, test "x$found_postgresql" = "xyes") 
    7979fi 
    8080 
     
    130130 
    131131dnl Check for option to enable libxml2 
    132 AC_MSG_CHECKING(whether to enable included libxml2 building) 
     132AC_MSG_CHECKING(whether to enable libxml2 support) 
    133133AC_ARG_ENABLE(libxml2, 
    134         [  --enable-libxml2=[no/yes]        enables included libxml2 build (default=no)],, 
     134        [  --enable-libxml2=[no/yes]        enables libxml2 support (default=no)],, 
    135135                 enable_libxml2=no) 
    136136 
     
    145145fi 
    146146 
     147dnl Check for option to enable cairo 
     148AC_MSG_CHECKING(whether to enable cairo support) 
     149AC_ARG_ENABLE(cairo, 
     150        [  --enable-cairo=[no/yes]        enables cairo support (default=yes)],, 
     151                 enable_cairo=yes) 
     152 
     153AM_CONDITIONAL(HAVE_CAIRO, test "x$enable_cairo" = "xyes") 
     154 
     155if [ test "x$enable_cairo" = "xyes"]; then 
     156  AC_MSG_RESULT(yes) 
     157  PKG_CHECK_MODULES(CAIRO, cairomm-1.0 >= 1.4.4) 
     158  dnl AC_DEFINE(HAVE_CAIRO, 1,"") 
     159else 
     160  AC_MSG_RESULT(no) 
     161fi 
     162 
     163 
    147164AC_OUTPUT([ 
    148165Makefile 
     
    155172plugins/input/raster/Makefile 
    156173plugins/input/shape/Makefile 
     174plugins/input/osm/Makefile 
    157175src/Makefile 
    158176mapnik.pc