"sdl-config --libs" missing -rpath /usr/X11R6/lib?

Hello,

Using a freshly compiled & installed SDL 1.1.4 (on a Mandrake 7.1
system) I want to compile & run the “test” programs. So I started
./configure in the test directory and I got:

checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.1.0… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log
for the
*** exact error that occured. This usually means SDL was incorrectly
installed
*** or that you have moved SDL since it was installed. In the latter
case, you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.1.0 not found!

looking at config.log:

configure:2281: gcc -o conftest -g -O2 -I/usr/X11R6/include
-I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT conftest.c
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread 1>&5
/usr/bin/ld: warning: libX11.so.6, needed by /usr/local/lib/libSDL.so,
not found (try using --rpath)
/usr/bin/ld: warning: libXext.so.6, needed by /usr/local/lib/libSDL.so,
not found (try using --rpath)

apparently, SDL links against some X libraries, but ld can not locate
them?

(note; my ld.so.conf contains /usr/X11R6/lib where libX11.so.6 and
libXext.so.6 reside)

looking at sdl-config --libs output provides:

-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread

now I am wondering if /usr/X11R6/lib should also be included in the
sdl-config --libs output.

(ps, I can compile & link a test program using: cc sdl-config --libs
-L /usr/X11R6/lib/ -lX11 -lXext -I /usr/local/include/SDL/ testbitmap.c)

best regards,

Jeroen Janssen