diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-02-18 19:27:15 +0100 |
---|---|---|
committer | Martin Lucina <mato@kotelna.sk> | 2010-02-18 19:27:15 +0100 |
commit | ab27f84b14a317d78a9dd145ef5c82e0ef88f583 (patch) | |
tree | 9689cdbe58a2332d8a14b00fe8abdb8c898cf72f | |
parent | 495f0d105f809a265c34aa9a0eb20af0dcdcf283 (diff) |
libstdc++ depends on libm on some platforms
-rw-r--r-- | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
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. |