From ab27f84b14a317d78a9dd145ef5c82e0ef88f583 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Thu, 18 Feb 2010 19:27:15 +0100 Subject: libstdc++ depends on libm on some platforms --- configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 7fbc2cf..da7f0b1 100644 --- a/configure.in +++ b/configure.in @@ -58,8 +58,10 @@ AC_PROG_AWK AC_CHECK_LIB([pthread], [pthread_create]) # If using GNU C++, libstdc++ must be available. if test "x$GXX" = "xyes"; then + # libstdc++ depends on libm on some platforms + AC_CHECK_LIB([m], [main]) AC_CHECK_LIB([stdc++], [main], , - [AC_MSG_ERROR([cannot link with -lstdc++])], [-lm]) + [AC_MSG_ERROR([cannot link with -lstdc++])]) fi # Extra CXXFLAGS are appended at the end of CXXFLAGS for libzmq. -- cgit v1.2.3