test for round() using C++ compiler, not C one (should fix IRIX mipsPro build)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-05-09 16:29:05 +00:00
parent dc6923a52c
commit 371bc2f714
2 changed files with 17 additions and 1 deletions

View File

@@ -4713,7 +4713,11 @@ if test "$wxUSE_FILE" = "yes"; then
WX_CHECK_FUNCS(fsync)
fi
dnl at least under IRIX with mipsPro the C99 round() function is available when
dnl building using the C compiler but not when using C++ one
AC_LANG_PUSH(C++)
WX_CHECK_FUNCS(round,,,[#include <math.h>])
AC_LANG_POP()
dnl the following tests are for Unix(like) systems only
if test "$TOOLKIT" != "MSW"; then