[pacman-dev] [PATCH 1/2] configure.ac: we use fabs now so -lm is needed

Xavier Chantry chantry.xavier at gmail.com
Sat Apr 2 10:02:44 EDT 2011


Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
---
 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3299302..9fb9cb0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -131,6 +131,9 @@ AC_PATH_PROGS([BASH_SHELL], [bash bash4 bash3], [false])
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION(0.13.1)
 
+AC_CHECK_LIB([m], [fabs], ,
+	AC_MSG_ERROR([libm is needed to compile pacman!]))
+
 # Check for libarchive
 AC_CHECK_LIB([archive], [archive_read_data], ,
 	AC_MSG_ERROR([libarchive is needed to compile pacman!]))
-- 
1.7.4.2



More information about the pacman-dev mailing list