From b0db1ca289bc77c208d3a17fee344f12e39bbfb6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 12 Sep 2009 13:10:16 +0000 Subject: [PATCH] Don't use NASM on x86_64 builds. --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 1a2d63090..973cb2cc1 100644 --- a/configure.in +++ b/configure.in @@ -676,6 +676,14 @@ CheckNASM() return ;; esac + + dnl Mac OS X might report itself as "i386" but generate x86_64 code. + dnl So see what size we think a pointer is, and bail if not 32-bit. + AC_CHECK_SIZEOF([void *], 4) + if test x"$SIZEOF_VOID_P" != x4; then + return + fi + dnl Check for NASM (for assembly blit routines) AC_ARG_ENABLE(nasm, AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [[default=yes]]]),