Index: configure.in
===================================================================
RCS file: /cvs/gnome/libgnomeprint/configure.in,v
retrieving revision 1.339
diff -u -r1.339 configure.in
--- configure.in	13 Jul 2006 18:43:15 -0000	1.339
+++ configure.in	29 Jul 2006 15:48:23 -0000
@@ -146,6 +146,15 @@
 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 
 dnl =================================
+dnl Checking for libm
+dnl =================================
+AC_CHECK_LIBM
+if test "x$LIBM" = "x"; then
+	AC_MSG_ERROR(You need -lm(mathematic library) for this version of libgnomeprint.)
+fi
+LDFLAGS="$LDFLAGS $LIBM"
+
+dnl =================================
 dnl Checking for freetype2
 dnl =================================
 FREETYPE_LIBS=
