Add test for exceptions. Exceptions are illegal, but somebody (whose name

I dont want to say, but it rhymes with "fcc") is using them in a test program.
This commit is contained in:
ramiro%netscape.com 1999-03-01 12:01:32 +00:00
Родитель ef51b76f97
Коммит 90607bf011
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -455,6 +455,17 @@ if test $ac_cv_cpp_explicit = yes ; then
AC_DEFINE(HAVE_CPP_EXPLICIT)
fi
AC_CACHE_CHECK(for C++ \"exceptions\",
ac_cv_cpp_exceptions,
[AC_TRY_COMPILE(class X { public: X() {} };
static void F() { throw X(); },
try { F(); } catch(X & e) { },
ac_cv_cpp_exceptions=yes,
ac_cv_cpp_exceptions=no)])
if test $ac_cv_cpp_exceptions = yes ; then
AC_DEFINE(HAVE_CPP_EXCEPTIONS)
fi
AC_CACHE_CHECK(for C++ \"using\" keyword,
ac_cv_cpp_using,
[AC_TRY_COMPILE(class X { public: int go() {return 3;} };