Hi
My configure script doesn’t work. There is a problem when he tries to compile
the SDL example
in my configure.in ( same than smpeg )
dnl Check for SDL
SDL_VERSION=1.1.3
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
I put the same macro to test SDL in acinclude.m4 than smpeg acinclude.m4
smpeg config.log : It Ok
configure:1915: checking for sdl-config
configure:1950: checking for SDL - version >= 1.1.3
configure:2032: gcc -o conftest -g -O2 -I/usr/include/SDL -D_REENTRANT conftest.c -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
my config.log : He doesn’t find SDL.h. But the SDL_CFLAGS is missing.
And SDL_CFLAGS contains the right value
configure:4208: checking for sdl-config
configure:4243: checking for SDL - version >= 1.1.3
configure:4331: g++ -o conftest -O2 -Wall -s conftest.C -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread 1>&5
configure:4275: SDL.h: No such file or directory
What’s wrong ? I just try to make a configure script for SDL and KDE
environment.
Thanks
Regards
Nicolas