1 diff --git a/sdl-config.in b/sdl-config.in
2 index e0fcc0c..bf7928a 100644
5 @@ -42,14 +42,18 @@ while test $# -gt 0; do
9 - echo -I@includedir@/SDL @SDL_CFLAGS@
11 + for i in @includedir@/SDL $SDL_PATH; do
12 + SDL_CFLAGS="$SDL_CFLAGS -I$i"
14 + echo $SDL_CFLAGS @SDL_CFLAGS@
16 @ENABLE_SHARED_TRUE@ --libs)
17 -@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
18 +@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@ $SDL_LIB_PATH
19 @ENABLE_SHARED_TRUE@ ;;
20 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
21 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
22 -@ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@
23 +@ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ $SDL_LIB_PATH
24 @ENABLE_STATIC_TRUE@ ;;