message(STATUS "Graphviz version: ${GRAPHVIZ_VERSION_FULL}")
-find_package(PkgConfig)
-if(PkgConfig_FOUND)
- pkg_check_modules(SVG_2_36 librsvg-2.0>=2.36.0 cairo>=1.0.0)
-endif()
-
include(config_checks)
if(NOT HAVE_GETOPT_H)
find_package(GETOPT REQUIRED)
set( HAVE_EXPAT ${EXPAT_FOUND} )
set( HAVE_LIBGD ${GD_FOUND} )
set( HAVE_ZLIB ${ZLIB_FOUND} )
-set( HAVE_SVG_2_36 ${SVG_2_36_FOUND} )
if(LTDL_FOUND)
set(ENABLE_LTDL 1)
[AS_HELP_STRING([--with-rsvg=yes],[rsvg library])],
[], [with_rsvg=yes])
-have_svg_2_36="no"
if test "x$with_rsvg" != "xyes"; then
use_rsvg="No (disabled)"
else
],[
use_rsvg="No (rsvg library not available)"
])
- PKG_CHECK_MODULES([SVG_2_36], [librsvg-2.0 >= 2.36.0 cairo >= 1.0.0],[
- have_svg_2_36="yes"
- AC_DEFINE(HAVE_SVG_2_36, 1, [Have librsvg >= 2.36])
- ],[
- have_svg_2_36="no"
- ])
fi
AM_CONDITIONAL(WITH_RSVG, [test "x$use_rsvg" = "xYes"])