From 4e63ba6dd8e96d53597c2d26f9cfbc94c7f31dfa Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 18 Dec 2008 07:54:28 +0000 Subject: [PATCH] Hopefully fix configure test on windows Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3247 --- configure.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 6ca9c561..3ac3a61a 100644 --- a/configure.in +++ b/configure.in @@ -38,11 +38,15 @@ CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" dnl Check if SDL is 1.2.x (1.3 not supported) AC_MSG_CHECKING([SDL version only being 1.2.X]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "SDL.h"]],[[ +AC_COMPILE_IFELSE([ +#include "SDL.h" +void blah(){ #if SDL_MINOR_VERSION != 2 #error "Only SDL 1.2 supported" #endif -]])],AC_MSG_RESULT([yes]),[ +; +} +],AC_MSG_RESULT([yes]),[ AC_MSG_RESULT([no]) AC_MSG_ERROR([Only libSDL 1.2.X supported])])