Typo
[synfig.git] / synfig-core / m4 / synfig.m4
1 # SYNFIG M4 Macro
2 # For GNU Autotools
3 # $Id$
4 #
5 # By Robert B. Quattlebaum Jr. <darco@users.sf.net>
6 #       AM_LIBXMLPP(,$2)
7
8
9 AC_DEFUN([SYNFIG_DEPS],
10 [
11         USING_ETL(,$2)
12         AM_PATH_XML2(,,$2)
13         AC_CHECK_FUNCS([floor pow sqrt],,$2)
14         AM_LIBXMLPP(,$2)
15
16         CXXFLAGS="$CXXFLAGS $LIBXMLPP_CFLAGS"
17         LIBS="$LIBS $LIBXMLPP_LIBS"
18
19         $1
20 ])
21
22 AC_DEFUN([USING_SYNFIG],
23 [
24         AC_ARG_WITH(synfig-includes,
25         [  --with-synfig-includes    Specify location of synfig headers],[
26         CXXFLAGS="$CXXFLAGS -I$withval"
27         ])
28
29         AC_PATH_PROG(SYNFIG_CONFIG,synfig-config,no)
30
31         if test "$SYNFIG_CONFIG" = "no"; then
32                 no_SYNFIG_config="yes"
33                 $2
34         else
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`"
40                         $1
41                 else
42                         AC_MSG_RESULT(no)
43                         no_SYNFIG_config="yes"
44                         $2
45                 fi
46         fi
47
48         SYNFIG_DEPS($1,$2)
49 ])
50
51