+dnl check for inlining
+AC_MSG_CHECKING(whether method inlining should be supported)
+AC_ARG_ENABLE([inlining],
+ [AS_HELP_STRING(--enable-inlining,enable method inlining [[default=no]])],
+ [case "${enableval}" in
+ yes) ENABLE_INLINING=yes;;
+ *) ENABLE_INLINING=no;;
+ esac],
+ [ENABLE_INLINING=no])
+AC_MSG_RESULT(${ENABLE_INLINING})
+AM_CONDITIONAL([ENABLE_INLINING], test x"${ENABLE_INLINING}" = "xyes")
+
+if test x"${ENABLE_INLINING}" = "xyes"; then
+ AC_DEFINE([ENABLE_INLINING], 1, [use method inlining])
+fi
+
+
+dnl check for inlining debug options
+AC_MSG_CHECKING(whether method inlining debug options should be enabled)
+AC_ARG_ENABLE([inlining-debug],
+ [AS_HELP_STRING(--enable-inlining-debug,enable method inlining debug options [[default=no]])],
+ [case "${enableval}" in
+ yes) ENABLE_INLINING_DEBUG=yes;;
+ *) ENABLE_INLINING_DEBUG=no;;
+ esac],
+ [ENABLE_INLINING_DEBUG=no])
+AC_MSG_RESULT(${ENABLE_INLINING_DEBUG})
+AM_CONDITIONAL([ENABLE_INLINING_DEBUG], test x"${ENABLE_INLINING_DEBUG}" = "xyes")
+
+if test x"${ENABLE_INLINING_DEBUG}" = "xyes"; then
+ AC_DEFINE([ENABLE_INLINING_DEBUG], 1, [enable method inlining debug options])
+fi
+
+
+dnl check for replacement
+AC_MSG_CHECKING(whether on-stack replacement should be supported)
+AC_ARG_ENABLE([replacement],
+ [AS_HELP_STRING(--enable-replacement,enable on-stack replacement [[default=no]])],
+ [case "${enableval}" in
+ yes) ENABLE_REPLACEMENT=yes;;
+ *) ENABLE_REPLACEMENT=no;;
+ esac],
+ [ENABLE_REPLACEMENT=no])
+AC_MSG_RESULT(${ENABLE_REPLACEMENT})
+AM_CONDITIONAL([ENABLE_REPLACEMENT], test x"${ENABLE_REPLACEMENT}" = "xyes")
+
+if test x"${ENABLE_REPLACEMENT}" = "xyes"; then
+ AC_DEFINE([ENABLE_REPLACEMENT], 1, [use on-stack replacement])
+fi
+
+
+dnl check for loop optimization
+AC_MSG_CHECKING(whether loop optimization should be supported)
+AC_ARG_ENABLE([loop],
+ [AS_HELP_STRING(--enable-loop,enable loop optimization [[default=no]])],
+ [case "${enableval}" in
+ yes) ENABLE_LOOP=yes;;
+ *) ENABLE_LOOP=no;;
+ esac],
+ [ENABLE_LOOP=no])
+AC_MSG_RESULT(${ENABLE_LOOP})
+AM_CONDITIONAL([ENABLE_LOOP], test x"${ENABLE_LOOP}" = "xyes")
+
+if test x"${ENABLE_LOOP}" = "xyes"; then
+ AC_DEFINE([ENABLE_LOOP], 1, [use loop optimization])
+fi
+
+
+dnl check if linear scan register allocator(lsra) with SSA should be used
+AC_MSG_CHECKING(whether lsra with ssa should be supported)
+AC_ARG_ENABLE([ssa],
+ [AS_HELP_STRING(--disable-ssa,disable ssa [[default=no]])],
+ [case "${enableval}" in
+ no) ENABLE_SSA=no;;
+ *) ENABLE_SSA=yes;;
+ esac],
+ [ENABLE_SSA=no])
+AC_MSG_RESULT(${ENABLE_SSA})
+AM_CONDITIONAL([ENABLE_SSA], test x"${ENABLE_SSA}" = "xyes")
+
+if test x"${ENABLE_SSA}" = "xyes"; then
+ AC_DEFINE([ENABLE_SSA], 1, [enable lsra with ssa])
+ ENABLE_LSRA="no"
+fi
+
+