diff --git a/configure.in b/configure.in index 39207092..bd6fa5d0 100644 --- a/configure.in +++ b/configure.in @@ -216,10 +216,12 @@ case "$target_cpu" in ;; esac +AC_ARG_ENABLE(dynamic-core,AC_HELP_STRING([--disable-dynamic-core],[Disable all dynamic cores]),,enable_dynamic_core=yes) + AH_TEMPLATE(C_DYNAMIC_X86,[Define to 1 to use x86 dynamic cpu core]) AC_ARG_ENABLE(dynamic-x86,AC_HELP_STRING([--disable-dynamic-x86],[Disable x86 dynamic cpu core]),,enable_dynamic_x86=yes) AC_MSG_CHECKING(whether x86 dynamic cpu core will be enabled) -if test x$enable_dynamic_x86 = xno ; then +if test x$enable_dynamic_x86 = xno || test x$enable_dynamic_core=xno; then AC_MSG_RESULT(no) else if test x$c_targetcpu = xx86 ; then @@ -233,7 +235,7 @@ fi AH_TEMPLATE(C_DYNREC,[Define to 1 to use recompiling cpu core. Can not be used together with the dynamic-x86 core]) AC_ARG_ENABLE(dynrec,AC_HELP_STRING([--disable-dynrec],[Disable recompiling cpu core]),,enable_dynrec=yes) AC_MSG_CHECKING(whether recompiling cpu core will be enabled) -if test x$enable_dynrec = xno ; then +if test x$enable_dynrec = xno || test x$enable_dynamic_core = xno; then AC_MSG_RESULT(no) else dnl x86 only enable it if dynamic-x86 is disabled.