summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-05-28 20:16:54 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-05-31 12:53:33 -0400
commit92789dfb8a0443d9f1dd8df4ba43c69885136574 (patch)
tree9d41394e2741d43420d05f280af3d53694f18666
parentc1df54855a7eee4d904746ad7b6edc7553bda0af (diff)
config: add AC_CHECK_LIB for math library functions
It ensures library is installed and sets LIBS = -lm Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--configure.ac3
-rw-r--r--tools/Makefile.am2
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e077dd1..3c82220 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,9 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
+# Checks for libraries.
+AC_CHECK_LIB([m], [rint])
+
# Obtain compiler/linker options for the Synaptics driver dependencies
PKG_CHECK_MODULES(XORG, xorg-server xproto)
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 23b083a..2ad48f6 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -22,7 +22,7 @@ bin_PROGRAMS = synclient syndaemon
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(sdkdir)
AM_CFLAGS = $(XI_CFLAGS)
-AM_LDFLAGS = -lm $(XI_LIBS)
+AM_LDFLAGS = $(XI_LIBS)
synclient_SOURCES = synclient.c