filename | acinclude.m4 |
changeset | 977:8514fb4bc101 |
prev | 964:f2f3c7612d06 |
next | 985:52e64faac752 |
author | nkeynes |
date | Wed Feb 04 21:45:21 2009 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Fix signedness in mmu_ext_page_remapped (Thanks kaz!) Fix fallthrough case in mmu_utlb_entry_for_vpn Fix signedness warnings in cache.c |
file | annotate | diff | log | raw |
1.1 --- a/acinclude.m4 Thu Jan 15 04:15:11 2009 +00001.2 +++ b/acinclude.m4 Wed Feb 04 21:45:21 2009 +00001.3 @@ -89,3 +89,17 @@1.4 [ $3 ]1.5 fi1.6 ]);1.7 +1.8 +# AC_HAVE_OBJC([if-present],[if-not-present])1.9 +# Check if we have a working Objective-C compiler1.10 +AC_DEFUN([AC_HAVE_OBJC], [1.11 +AC_PROG_OBJC1.12 +AC_MSG_CHECKING([for a working Objective-C compiler])1.13 +AC_LANG_PUSH([Objective C])dnl1.14 +_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@interface Foo @end]], [])],1.15 + [AC_MSG_RESULT([yes])1.16 + $1 ],1.17 + [AC_MSG_RESULT([No])1.18 + $2 ]);1.19 +AC_LANG_POP([Objective C])1.20 +]);
.