else
AC_CACHE_CHECK([for __cxa_demangle() in <cxxabi.h>], wx_cv_func_cxa_demangle,
[
- AC_TRY_COMPILE([#include <cxxabi.h>],
+ AC_TRY_LINK([#include <cxxabi.h>],
[
int rc;
__cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
fi
if test "$wxUSE_DEBUGREPORT" = "yes"; then
- AC_DEFINE(wxUSE_DEBUGREPORT)
- SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
+ if test "$USE_OS2" = "1"; then
+ AC_MSG_WARN([Creating debug reports not supported under OS/2 yet, disabled])
+ wxUSE_DEBUGREPORT=no
+ else
+ AC_DEFINE(wxUSE_DEBUGREPORT)
+ SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
+ fi
fi
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then