use C++ compiler for va_copy test, at least under IRIX the C99 C compiler has it but C++ compiler doesn't have it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-05-15 00:33:14 +00:00
parent b46b1d59d6
commit 65c1133755
2 changed files with 15 additions and 1 deletions

View File

@@ -1937,6 +1937,7 @@ dnl checks needed to define wxVaCopy
AC_CACHE_CHECK([for va_copy],
wx_cv_func_va_copy,
[
AC_LANG_PUSH(C++)
AC_LINK_IFELSE([
#include <stdarg.h>
void foo(char *f, ...)
@@ -1955,6 +1956,7 @@ AC_CACHE_CHECK([for va_copy],
wx_cv_func_va_copy=yes,
wx_cv_func_va_copy=no
)
AC_LANG_POP()
]
)