[aravis] build: explicitely requires standard math library.



commit 434f41cacf313a88b372cb118d60f8f4edc5801a
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Oct 18 16:43:07 2013 +0200

    build: explicitely requires standard math library.

 aravis.pc.in |    4 ++--
 configure.ac |    9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/aravis.pc.in b/aravis.pc.in
index f4c8d15..a9a213b 100644
--- a/aravis.pc.in
+++ b/aravis.pc.in
@@ -6,6 +6,6 @@ includedir= includedir@
 Name: Aravis
 Description: Camera control and image acquisition library
 Version: @VERSION@
-Requires: glib-2.0 gobject-2.0
-Libs: -L${libdir} -laravis- ARAVIS_API_VERSION@
+Requires: glib-2.0 gobject-2.0 gio-2.0 libxml-2.0 gthread-2.0
+Libs: -L${libdir} -laravis- ARAVIS_API_VERSION@ -lm
 Cflags: -I${includedir}/aravis- ARAVIS_API_VERSION@
diff --git a/configure.ac b/configure.ac
index 9249739..a898a59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,9 @@ ARAVIS_GSTREAMER_REQUIREMENTS="gstreamer-base-0.10 >= 0.10.31 gstreamer-app-0.10
 
 PKG_CHECK_MODULES(ARAVIS, [$ARAVIS_REQUIREMENTS])
 
+# Standard math library doesn't come with a pkgconfig file.
+ARAVIS_LIBS="-lm ${ARAVIS_LIBS}"
+
 AC_SUBST(ARAVIS_CFLAGS)
 AC_SUBST(ARAVIS_LIBS)
 
@@ -88,6 +91,9 @@ if test "x$enable_viewer" = "xyes"; then
 fi
 AM_CONDITIONAL(ARAVIS_BUILD_VIEWER, test "x$build_viewer" = "xyes")
 
+# Standard math library doesn't come with a pkgconfig file.
+ARAVIS_VIEWER_LIBS="-lm ${ARAVIS_VIEWER_LIBS}"
+
 AC_SUBST(ARAVIS_VIEWER_CFLAGS)
 AC_SUBST(ARAVIS_VIEWER_LIBS)
 
@@ -102,6 +108,9 @@ AM_CONDITIONAL(ARAVIS_BUILD_GST_PLUGIN, test "x$build_gst_plugin" = "xyes")
 
 AM_CONDITIONAL(ARAVIS_BUILD_CPP_TEST, test "x$enable_cpp_test" = "xyes")
 
+# Standard math library doesn't come with a pkgconfig file.
+ARAVIS_GST_PLUGIN_LIBS="-lm ${ARAVIS_GST_PLUGIN_LIBS}"
+
 AC_SUBST(ARAVIS_GST_PLUGIN_CFLAGS)
 AC_SUBST(ARAVIS_GST_PLUGIN_LIBS)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]