From 534c0c3c31a74347c830b26fac27bba2429b8884 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 2 Dec 2005 01:32:41 +0000 Subject: [PATCH] Fix the stder redirection for sdl-config detection. --- src/conio/Common.gmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/conio/Common.gmake b/src/conio/Common.gmake index bbfaa5c64a..090148b298 100644 --- a/src/conio/Common.gmake +++ b/src/conio/Common.gmake @@ -5,19 +5,19 @@ ifndef SDL_CONFIG WITH_SDL := 1 endif else - ifeq ($(shell sdl-config --cflags 2>&1 > /dev/null && echo YES),YES) + ifeq ($(shell sdl-config --cflags > /dev/null 2>&1 && echo YES),YES) SDL_CONFIG := sdl-config WITH_SDL := 1 else - ifeq ($(shell sdl13-config --cflags 2>&1 > /dev/null && echo YES),YES) + ifeq ($(shell sdl13-config --cflags > /dev/null 2>&1 && echo YES),YES) SDL_CONFIG := sdl13-config WITH_SDL := 1 else - ifeq ($(shell sdl12-config --cflags 2>&1 > /dev/null && echo YES),YES) + ifeq ($(shell sdl12-config --cflags > /dev/null 2>&1 && echo YES),YES) SDL_CONFIG := sdl12-config WITH_SDL := 1 else - ifeq ($(shell sdl11-config --cflags 2>&1 > /dev/null && echo YES),YES) + ifeq ($(shell sdl11-config --cflags > /dev/null 2>&1 && echo YES),YES) SDL_CONFIG := sdl11-config WITH_SDL := 1 endif @@ -29,7 +29,7 @@ endif ifdef WITH_SDL ifdef SDL_CONFIG - ifeq ($(shell ${SDL_CONFIG} --cflags 2>&1 > /dev/null && echo YES),YES) + ifeq ($(shell ${SDL_CONFIG} --cflags > /dev/null 2>&1 && echo YES),YES) CIOLIB-MT_CFLAGS += -DWITH_SDL CIOLIB-MT_CFLAGS += $(shell $(SDL_CONFIG) --cflags) ifdef STATIC_SDL -- GitLab