Ensures library is present and contains the desired symbol.

Signed-off-by: Gaetan Nadon <[email protected]>
---
 configure.ac    |    1 +
 src/Makefile.am |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index e03b13c..9ba51c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,7 @@ XORG_DRIVER_CHECK_EXT(XINPUT, inputproto)
 PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES)
 
 # Checks for libraries.
+AC_CHECK_LIB([m],[sqrt])
 
 # Checks for header files.
 AC_CHECK_HEADERS([linux/input.h])
diff --git a/src/Makefile.am b/src/Makefile.am
index 0b8f60a..80ad025 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -30,6 +30,5 @@ AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS)
 @driver_n...@_drv_la_ltlibraries = @driver_n...@_drv.la
 @driver_n...@_drv_la_ldflags = -module -avoid-version
 @driver_n...@_drv_ladir = @inputdir@
-...@driver_name@_drv_la_LIBADD = -lm
 
 @driver_n...@_drv_la_sources = xf86Aiptek.c xf86Aiptek.h
-- 
1.6.0.4

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to