configure: add missing dependency to libm.
authorJoe Konno <joe.konno@intel.com>
Tue, 20 Nov 2012 15:42:27 +0000 (07:42 -0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 20 Nov 2012 17:17:09 +0000 (18:17 +0100)
Build broke when trying to compile with expressive debug CFLAGS (-g3).
This was root-caused to the lack of the "-lm" linker flag. By adding a
simple autoconf check we ensure that libm is linked.

More specifically, recent VEBOX changes depend on cos() and sin() math
functions.

Signed-off-by: Joe Konno <joe.konno@intel.com>
configure.ac

index 4427839..2655d74 100644 (file)
@@ -64,6 +64,7 @@ AM_PROG_CC_C_O
 AC_C_BIGENDIAN
 AC_HEADER_STDC
 AC_SYS_LARGEFILE
+AC_CHECK_LIB([m], [sin])
 
 LIBVA_PACKAGE_VERSION=libva_package_version
 AC_SUBST(LIBVA_PACKAGE_VERSION)