From ac2f2f092dfbe2599baba119daf8cd036a2ec043 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 3 May 2015 19:34:18 +0200 Subject: Add libfec check to configure.ac --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index c7d2380..2e420cd 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,12 @@ AC_PROG_INSTALL AC_CHECK_LIB([pthread], [pthread_create], [], AC_MSG_ERROR([libpthread is required])) AX_BOOST_BASE([1.41.0], [], AC_MSG_ERROR([BOOST 1.41 or later is required])) +# we need to check for libm before checking for fec +AC_CHECK_LIB([m], [sin]) +AC_SEARCH_LIBS([init_rs_char], [fec], [], [ + AC_MSG_ERROR([unable to find libfec]) +]) + # Checks for header files. AC_MSG_CHECKING([for OS type]) AC_PREPROC_IFELSE( -- cgit v1.2.3