File avifile-sdl-libs.patch of Package avifile
Index: avifile-0.7-0.7.45/m4/sdl.m4
===================================================================
--- avifile-0.7-0.7.45.orig/m4/sdl.m4
+++ avifile-0.7-0.7.45/m4/sdl.m4
@@ -50,7 +50,7 @@ AC_ARG_ENABLE(sdltest, [ --disable-sdlt
no_sdl=yes
else
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
- SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs | sed -e 's!-L/usr/lib[[^/]]!!g'`
+ SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
@@ -72,7 +72,7 @@ dnl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "SDL.h"
+#include <SDL/SDL.h>
char*
my_strdup (char *str)
@@ -149,7 +149,7 @@ int main (int argc, char *argv[])
LIBS="$LIBS $SDL_LIBS"
AC_TRY_LINK([
#include <stdio.h>
-#include "SDL.h"
+#include <SDL/SDL.h>
int main(int argc, char *argv[])
{ return 0; }