5 # By Robert B. Quattlebaum Jr. <darco@users.sf.net>
8 AC_DEFUN([SYNFIG_DEPS],
12 AC_CHECK_FUNCS([floor pow sqrt],,$2)
16 AC_DEFUN([USING_SYNFIG],
18 AC_ARG_WITH(synfig-includes,
19 [ --with-synfig-includes Specify location of synfig headers],[
20 CXXFLAGS="$CXXFLAGS -I$withval"
23 AC_PATH_PROG(SYNFIG_CONFIG,synfig-config,no)
25 if test "$SYNFIG_CONFIG" = "no"; then
26 no_SYNFIG_config="yes"
29 AC_MSG_CHECKING([if $SYNFIG_CONFIG works])
30 if $SYNFIG_CONFIG --libs >/dev/null 2>&1; then
31 SYNFIG_VERSION="`$SYNFIG_CONFIG --version`"
32 AC_MSG_RESULT([yes, $SYNFIG_VERSION])
33 SYNFIG_CXXFLAGS="`$SYNFIG_CONFIG --cxxflags`"
34 SYNFIG_CFLAGS="`$SYNFIG_CONFIG --cflags`"
35 SYNFIG_LIBS="`$SYNFIG_CONFIG --libs`"
36 CXXFLAGS="$CXXFLAGS $SYNFIG_CXXFLAGS"
37 AC_SUBST(SYNFIG_CXXFLAGS)
39 AC_SUBST(SYNFIG_CFLAGS)
43 no_SYNFIG_config="yes"