mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fix error checking for objc_set_unexpected
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5004cb7a24
commit
4b9b34753c
3 changed files with 7288 additions and 7468 deletions
|
@ -4,6 +4,8 @@
|
||||||
* Documentation/news.texi:
|
* Documentation/news.texi:
|
||||||
* Documentation/ReleaseNotes.gsdoc:
|
* Documentation/ReleaseNotes.gsdoc:
|
||||||
Update for new release.
|
Update for new release.
|
||||||
|
* configure.ac: Fix error checking for objc_set_unexpected
|
||||||
|
* configure: regenerate
|
||||||
|
|
||||||
2008-12-22 Richard Frith-Macdonald <rfm@gnu.org>
|
2008-12-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
29
configure.ac
29
configure.ac
|
@ -1391,6 +1391,22 @@ AC_EGREP_HEADER(objc_get_uninstalled_dtable, objc/objc-api.h,
|
||||||
AC_DEFINE(HAVE_OBJC_GET_UNINSTALLED_DTABLE,1,
|
AC_DEFINE(HAVE_OBJC_GET_UNINSTALLED_DTABLE,1,
|
||||||
[ Define if objc-api.h defines this function]),)
|
[ Define if objc-api.h defines this function]),)
|
||||||
|
|
||||||
|
# Don't revert any Objective-C flags as they are used in the next test
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# This function needed by for handling uncaught exceptions
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
AC_MSG_CHECKING(for objc_set_unexpected() in runtime)
|
||||||
|
AC_LINK_IFELSE([#include "$srcdir/config/config.unexpected.m"],
|
||||||
|
have_unexpected=yes, have_unexpected=no)
|
||||||
|
if test $have_unexpected = yes; then
|
||||||
|
AC_DEFINE(HAVE_UNEXPECTED,1,
|
||||||
|
[Define if libobjc has the objc_set_unexpected() function])
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($have_unexpected)
|
||||||
|
|
||||||
|
# Don't revert any Objective-C flags as they are used in the next test
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Function needed by @synchronize directive
|
# Function needed by @synchronize directive
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
@ -2003,19 +2019,6 @@ case "$target_cpu" in
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
have_unexpected=yes
|
|
||||||
saved_CPPFLAGS="$CPPFLAGS"
|
|
||||||
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
|
|
||||||
AC_MSG_CHECKING(for objc_set_unexpected() in runtime)
|
|
||||||
AC_COMPILE_IFELSE([#include "$srcdir/config/config.unexpected.m"],
|
|
||||||
have_unexpected=yes, have_unexpected=no)
|
|
||||||
if test $have_unexpected = yes; then
|
|
||||||
AC_DEFINE(HAVE_UNEXPECTED,1,
|
|
||||||
[Define if libobjc has the objc_set_unexpected() function])
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT($have_unexpected)
|
|
||||||
CPPFLAGS="$saved_CPPFLAGS"
|
|
||||||
|
|
||||||
if test "$exceptions" = "yes"; then
|
if test "$exceptions" = "yes"; then
|
||||||
# ffcall will mess up native exceptions, so we must disable it.
|
# ffcall will mess up native exceptions, so we must disable it.
|
||||||
do_broken_libffcall=yes
|
do_broken_libffcall=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue