summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 6cc0c7a4..33ce007d 100644
--- a/configure.in
+++ b/configure.in
@@ -34,6 +34,12 @@ AC_PROG_CPP
AM_PROG_LIBTOOL
AC_STDC_HEADERS
+AC_CHECK_LIBM
+
+LIBS="$LIBS $LIBM"
+
+AC_CHECK_FUNCS(sincos)
+
dnl ===========================================================================
AC_ARG_ENABLE(xlib,
@@ -268,7 +274,7 @@ if test "x$GCC" = "xyes"; then
fi
CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS"
-CAIRO_LIBS="$CAIRO_LIBS -lm"
+CAIRO_LIBS="$CAIRO_LIBS"
AC_SUBST(CAIRO_CFLAGS)
AC_SUBST(CAIRO_LIBS)