[Lcdproc] Problem in configure (acinclude) with libg15render detection

Robert Buchholz rob@thetruth.de
Mon Oct 2 23:54:01 2006


This is a multi-part message in MIME format.
--------------060909090206060403090209
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hey guys,

as the title says, I didn't get ./configure to detect the installed
libg15render (it found the header and all, but the linking failed with
the g15r_initCanvas function).
The problem seems to be that libg15render needs also to be linked with
the math library for the ceilf() function.

The attached patch fixed this for me, but please someone tell me if this
is "the right way" to do it :-)

Thanks a lot,

Robert

--------------060909090206060403090209
Content-Type: text/x-patch;
 name="0.5.1_pre20061001-acinclude.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="0.5.1_pre20061001-acinclude.patch"

--- acinclude.m4.orig	2006-10-03 00:35:04.000000000 +0200
+++ acinclude.m4	2006-10-03 00:35:42.000000000 +0200
@@ -143,6 +143,7 @@
 				AC_MSG_WARN([The g15 driver needs g15daemon_client.h])
 			])
 			AC_CHECK_HEADERS([libg15render.h],[
+				AC_CHECK_LIB(m, pow)
 				AC_CHECK_LIB(g15render, g15r_initCanvas,[
 					LIBG15="$LIBG15 -lg15render"
 					DRIVERS="$DRIVERS g15${SO}"

--------------060909090206060403090209--