5 # By Robert B. Quattlebaum Jr. <darco@users.sf.net>
9 AC_DEFUN([SYNFIG_DEPS],
13 AC_CHECK_FUNCS([floor pow sqrt],,$2)
16 CXXFLAGS="$CXXFLAGS $LIBXMLPP_CFLAGS"
17 LIBS="$LIBS $LIBXMLPP_LIBS"
22 AC_DEFUN([USING_SYNFIG],
24 AC_ARG_WITH(synfig-includes,
25 [ --with-synfig-includes Specify location of synfig headers],[
26 CXXFLAGS="$CXXFLAGS -I$withval"
29 AC_PATH_PROG(SYNFIG_CONFIG,synfig-config,no)
31 if test "$SYNFIG_CONFIG" = "no"; then
32 no_SYNFIG_config="yes"
35 AC_MSG_CHECKING([if $SYNFIG_CONFIG works])
36 if $SYNFIG_CONFIG --libs >/dev/null 2>&1; then
37 SYNFIG_VERSION="`$SYNFIG_CONFIG --version`"
38 AC_MSG_RESULT([yes, $SYNFIG_VERSION])
39 CXXFLAGS="$CXXFLAGS `$SYNFIG_CONFIG --cxxflags`"
43 no_SYNFIG_config="yes"