Fail the build unless libSDL is installed.
PATCH 1/1 Fail the build unless libSDL is installed.
Fail the build unless libSDL is installed.
Signed-off-by Arun Sharma <[email protected]>
tools/check/check_sdl_lib new file +10 -0
@@ -0,0 +1,10 @@ +#!/bin/bash +# CHECK-BUILD CHECK-INSTALL + +function error { + echo 'Check for SDL library failed.' + exit 1 +} + +set -e +ldconfig -p | grep libSDL-.*so || error