]> git.saurik.com Git - cycript.git/blobdiff - configure.ac
Ported things mentioned in DOUG comments.
[cycript.git] / configure.ac
index 91fd7ffd8753541a99632e59fb5488374782e4d1..a89979c83a2897fcd48ec0e408acd408dd9036f5 100644 (file)
@@ -198,7 +198,15 @@ AS_CASE([$am_cv_func_iconv], [yes], [], [AC_MSG_ERROR([You need iconv])])
 AC_LANG_POP([C])
 AS_IF([test "x$CY_OBJECTIVEC" = x1], [
        AC_CHECK_HEADER([mach/mach.h], [
 AC_LANG_POP([C])
 AS_IF([test "x$CY_OBJECTIVEC" = x1], [
        AC_CHECK_HEADER([mach/mach.h], [
-               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([SO], [$acl_shlibext])
+               AC_SUBST([CY_OBJECTIVEC_MACH], [1])
+               AC_SUBST([CY_ATTACH_GROUP], [procmod])
        ])
 ])
 AS_IF([test "x$GMAKE" != xmake], [
        ])
 ])
 AS_IF([test "x$GMAKE" != xmake], [