From 7e9483fdc8f6c64f2f5c09ac385791002edbd6a1 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 5 Oct 2008 15:50:11 +0000 Subject: [PATCH] Fix detection of floating point assembly instructions. They were incorrectly detcted as present because gcc was optimising them away. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index ab4b0af..846fe99 100644 --- a/configure.ac +++ b/configure.ac @@ -113,15 +113,15 @@ AC_TRY_COMPILE([#include ],[Sleep(42);], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for fsin/fcos) -AC_TRY_COMPILE([],[double x; asm("fsin\n\tfcos":"=t"(x):);], +AC_TRY_COMPILE([],[double x; asm volatile("fsin\n\tfcos":"=t"(x):);], [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' operands.])], + AC_DEFINE(HAVE_FSIN_FCOS, 1, [Define to 1 if you have the `fsin' and `fcos' instructions.])], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for fldln2/fxch/fyl2x) -AC_TRY_COMPILE([],[double x; asm("fldln2; fldln2; fxch; fyl2x":"=t"(x):);], +AC_TRY_COMPILE([],[double x; asm volatile("fldln2; fldln2; fxch; fyl2x":"=t"(x):);], [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])], + AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating point instructions.])], [AC_MSG_RESULT(no)]) AC_CHECK_HEADERS(zlib.h)