- AS_CASE([$OTOOL], [:], [AC_MSG_WARN([Missing otool?])], [AC_SUBST([CY_OBJECTIVEC_MACH], [1])])
+ AC_CHECK_TOOLS([_OTOOL], [otool])
+ AS_IF([test "x$_OTOOL" = x], [AC_MSG_ERROR([You need otool])])
+ AC_CHECK_TOOLS([_LIPO], [lipo])
+ AS_IF([test "x$_LIPO" = x], [AC_MSG_ERROR([You need lipo])])
+ AC_CHECK_TOOLS([_NM], [nm])
+ AS_IF([test "x$_NM" = x], [AC_MSG_ERROR([You need nm])])
+ AC_SUBST([CY_OBJECTIVEC_MACH], [1])
+ AC_SUBST([CY_ATTACH_GROUP], [procmod])