diff options
| author | Joakim Verona | 2011-09-15 16:11:02 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-09-15 16:11:02 +0200 |
| commit | b728e88fdffdd34065f996682113b072bbc7008c (patch) | |
| tree | c0622d02a303baaf2d6c4db2b50866305ca960e0 /autogen | |
| parent | 8d07d23ecd32b9e9f07234313c2e712a8c42b524 (diff) | |
| parent | 39b3d70b17789e237021787ab80ccdd123b97312 (diff) | |
| download | emacs-b728e88fdffdd34065f996682113b072bbc7008c.tar.gz emacs-b728e88fdffdd34065f996682113b072bbc7008c.zip | |
upstream
Diffstat (limited to 'autogen')
| -rw-r--r-- | autogen/config.in | 3 | ||||
| -rwxr-xr-x | autogen/configure | 45 |
2 files changed, 45 insertions, 3 deletions
diff --git a/autogen/config.in b/autogen/config.in index bfec2882534..3b88849a1e7 100644 --- a/autogen/config.in +++ b/autogen/config.in | |||
| @@ -1172,6 +1172,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1172 | /* Define to 1 if on MINIX. */ | 1172 | /* Define to 1 if on MINIX. */ |
| 1173 | #undef _MINIX | 1173 | #undef _MINIX |
| 1174 | 1174 | ||
| 1175 | /* Define if GNUstep uses ObjC exceptions. */ | ||
| 1176 | #undef _NATIVE_OBJC_EXCEPTIONS | ||
| 1177 | |||
| 1175 | /* The _Noreturn keyword of draft C1X. */ | 1178 | /* The _Noreturn keyword of draft C1X. */ |
| 1176 | #ifndef _Noreturn | 1179 | #ifndef _Noreturn |
| 1177 | # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ | 1180 | # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ |
diff --git a/autogen/configure b/autogen/configure index 6ae1560c238..a0b73bb96c4 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -9977,6 +9977,7 @@ tmp_CFLAGS="$CFLAGS" | |||
| 9977 | CPPFLAGS="$CPPFLAGS -x objective-c" | 9977 | CPPFLAGS="$CPPFLAGS -x objective-c" |
| 9978 | CFLAGS="$CFLAGS -x objective-c" | 9978 | CFLAGS="$CFLAGS -x objective-c" |
| 9979 | TEMACS_LDFLAGS2="\${LDFLAGS}" | 9979 | TEMACS_LDFLAGS2="\${LDFLAGS}" |
| 9980 | GNU_OBJC_CFLAGS= | ||
| 9980 | if test "${with_ns}" != no; then | 9981 | if test "${with_ns}" != no; then |
| 9981 | if test "${opsys}" = darwin; then | 9982 | if test "${opsys}" = darwin; then |
| 9982 | NS_IMPL_COCOA=yes | 9983 | NS_IMPL_COCOA=yes |
| @@ -10004,7 +10005,45 @@ if test "${with_ns}" != no; then | |||
| 10004 | LIB_STANDARD= | 10005 | LIB_STANDARD= |
| 10005 | START_FILES= | 10006 | START_FILES= |
| 10006 | TEMACS_LDFLAGS2= | 10007 | TEMACS_LDFLAGS2= |
| 10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5 | ||
| 10009 | $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; } | ||
| 10010 | if test "${emacs_cv_objc_exceptions+set}" = set; then : | ||
| 10011 | $as_echo_n "(cached) " >&6 | ||
| 10012 | else | ||
| 10013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 10014 | /* end confdefs.h. */ | ||
| 10015 | #include <GNUstepBase/GSConfig.h> | ||
| 10016 | int | ||
| 10017 | main () | ||
| 10018 | { | ||
| 10019 | #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0 | ||
| 10020 | 1; | ||
| 10021 | #else | ||
| 10022 | fail; | ||
| 10023 | #endif | ||
| 10024 | ; | ||
| 10025 | return 0; | ||
| 10026 | } | ||
| 10027 | _ACEOF | ||
| 10028 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 10029 | emacs_cv_objc_exceptions=yes | ||
| 10030 | else | ||
| 10031 | emacs_cv_objc_exceptions=no | ||
| 10032 | fi | ||
| 10033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 10034 | fi | ||
| 10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5 | ||
| 10036 | $as_echo "$emacs_cv_objc_exceptions" >&6; } | ||
| 10037 | if test $emacs_cv_objc_exceptions = yes; then | ||
| 10038 | |||
| 10039 | $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h | ||
| 10040 | |||
| 10041 | GNU_OBJC_CFLAGS="-fobjc-exceptions" | ||
| 10042 | fi | ||
| 10007 | fi | 10043 | fi |
| 10044 | |||
| 10045 | CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS" | ||
| 10046 | |||
| 10008 | ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" | 10047 | ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" |
| 10009 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : | 10048 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
| 10010 | HAVE_NS=yes | 10049 | HAVE_NS=yes |
| @@ -13693,7 +13732,6 @@ $as_echo "#define HAVE_NS 1" >>confdefs.h | |||
| 13693 | 13732 | ||
| 13694 | $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h | 13733 | $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h |
| 13695 | 13734 | ||
| 13696 | GNU_OBJC_CFLAGS= | ||
| 13697 | fi | 13735 | fi |
| 13698 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then | 13736 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then |
| 13699 | 13737 | ||
| @@ -13701,8 +13739,9 @@ $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h | |||
| 13701 | 13739 | ||
| 13702 | # See also .m.o rule in Makefile.in */ | 13740 | # See also .m.o rule in Makefile.in */ |
| 13703 | # FIXME: are all these flags really needed? Document here why. */ | 13741 | # FIXME: are all these flags really needed? Document here why. */ |
| 13704 | C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" | 13742 | C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 13705 | GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | 13743 | ## Extra CFLAGS applied to src/*.m files. |
| 13744 | GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | ||
| 13706 | fi | 13745 | fi |
| 13707 | if test "${NS_HAVE_NSINTEGER}" = "yes"; then | 13746 | if test "${NS_HAVE_NSINTEGER}" = "yes"; then |
| 13708 | 13747 | ||