From eecd41059d9dd3b6be5681105c64d53491687e89 Mon Sep 17 00:00:00 2001 From: Joe Konno Date: Tue, 20 Nov 2012 07:42:27 -0800 Subject: [PATCH] configure.ac: Ensure libm is linked Build broke when I tried 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. Signed-off-by: Joe Konno --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4427839..e5885d6 100644 --- a/configure.ac +++ b/configure.ac @@ -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) -- 1.7.11.7