[Xfce4-commits] <xfwm4:xfce-4.6> Add linkage to libm when compositor is used (bug #6231)
Olivier Fourdan
noreply at xfce.org
Tue Feb 23 09:24:01 CET 2010
Updating branch refs/heads/xfce-4.6
to 957bded4722d5e8f593992ac557af1b7da393839 (commit)
from e41ca57421ae5e361ced784ad938df1e82008237 (commit)
commit 957bded4722d5e8f593992ac557af1b7da393839
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Tue Feb 23 09:11:47 2010 +0100
Add linkage to libm when compositor is used (bug #6231)
configure.ac.in | 5 +++++
src/Makefile.am | 3 ++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/configure.ac.in b/configure.ac.in
index 57523d9..e72a9f8 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -164,6 +164,7 @@ dnl Xcomposite and related extensions
dnl
compositor="no"
ENABLE_COMPOSITOR=""
+MATH_LIBS=""
AC_ARG_ENABLE([compositor],
AC_HELP_STRING([--enable-compositor], [enable compositor in xfwm4 (default)])
AC_HELP_STRING([--disable-compositor], [disable compositor in xfwm4]),
@@ -175,10 +176,14 @@ if test x"$enable_compositor" = x"yes"; then
PKG_CHECK_MODULES(COMPOSITOR, xcomposite >= [xcomposite_minimum_version] xfixes xdamage)
AC_DEFINE([HAVE_COMPOSITOR], [1], [Define to enable compositor])
ENABLE_COMPOSITOR="--enable-compositor"
+ AC_DEFINE([HAVE_COMPOSITOR], [1], [Define to enable compositor])
compositor="yes"
+ dnl Math lib is required for compositor internals
+ MATH_LIBS=" -lm"
fi
fi
fi
+AC_SUBST([MATH_LIBS])
AC_SUBST(ENABLE_COMPOSITOR)
dnl
diff --git a/src/Makefile.am b/src/Makefile.am
index e5f774d..f0188f4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -108,7 +108,8 @@ xfwm4_LDADD = \
$(LIBSTARTUP_NOTIFICATION_LIBS) \
$(RENDER_LIBS) \
$(COMPOSITOR_LIBS) \
- $(RANDR_LIBS)
+ $(RANDR_LIBS) \
+ $(MATH_LIBS)
EXTRA_DIST = \
inline-default-icon.h default_icon.png default_icon.svg \
More information about the Xfce4-commits
mailing list