␊ |
␊ |
dnl checking for specific cpu support␊ |
dnl AC_SUBST([mode_386],["#"])␊ |
AC_SUBST([mode_386],["#"])␊ |
AC_SUBST([mode_mmx],["#"])␊ |
AC_SUBST([mode_cmov],["#"])␊ |
AC_SUBST([mode_sse],["#"])␊ |
AC_SUBST([mode_sse2],["#"])␊ |
AC_SUBST([mode_3dnow],["#"])␊ |
AC_SUBST([mode_athlon],["#"])␊ |
dnl AC_SUBST([mode_X86_64],["#"])␊ |
AC_SUBST([mode_X86_64],["#"])␊ |
AC_SUBST([ASM_DEFINES],[""])␊ |
␊ |
#AC_MSG_CHECKING([for specific cpu support])␊ |
#AC_TRY_RUN([␊ |
#int main()␊ |
#{␊ |
# #if #cpu (i386)␊ |
# return 0;␊ |
# #else␊ |
# return 1;␊ |
# #endif␊ |
#}␊ |
#], [AC_MSG_RESULT([i386 (32bit) is supported])]␊ |
# # [ASM_DEFINES=$ASM_DEFINES" -DASM_386"]␊ |
# [AC_SUBST([mode_386],[""])],␊ |
#[ AC_TRY_RUN([␊ |
# int main()␊ |
# {␊ |
# #if #cpu (x86_64)␊ |
# return 0;␊ |
# #else␊ |
# return 1;␊ |
# #endif␊ |
# }␊ |
# ], [AC_MSG_RESULT([X86_64 (64bit) is supported])]␊ |
# [ASM_DEFINES=$ASM_DEFINES" -DASM_X86_64"]␊ |
# [AC_SUBST([mode_X86_64],[""])],␊ |
# [AC_MSG_RESULT([no, generic support])])␊ |
#])␊ |
AC_MSG_CHECKING([for specific cpu support])␊ |
AC_TRY_RUN([␊ |
int main()␊ |
{␊ |
#if #cpu (i386)␊ |
return 0;␊ |
#else␊ |
return 1;␊ |
#endif␊ |
}␊ |
], [AC_MSG_RESULT([i386 (32bit) is supported])]␊ |
[ASM_DEFINES=$ASM_DEFINES" -DASM_386"]␊ |
[AC_SUBST([mode_386],[""])],␊ |
[ AC_TRY_RUN([␊ |
int main()␊ |
{␊ |
#if #cpu (x86_64)␊ |
return 0;␊ |
#else␊ |
return 1;␊ |
#endif␊ |
}␊ |
], [AC_MSG_RESULT([X86_64 (64bit) is supported])]␊ |
[ASM_DEFINES=$ASM_DEFINES" -DASM_X86_64"]␊ |
[AC_SUBST([mode_X86_64],[""])],␊ |
[AC_MSG_RESULT([no, generic support])])␊ |
])␊ |
␊ |
if test "x$mode_386" = "x"; then␊ |
␊ |