Can't compile php 5.2.6



I have downloaded the source for php 5.2.6 but I'm not able to compile it on
a Fedora Core 9:

/configure --enable-so --with-zlib --enable-exif --with-gd --with-mysql
--enable-zip --with-jpeg-dir=/usr/lib64 --with-png-dir=/usr/lib64
....
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.

But the problems s not the libjpeg library because config.log say:
configure:35255: gcc -o conftest -g -O2 conftest.c -lz -lresolv -lm -ldl
-lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:35239: warning: conflicting types for built-in function 'fabsf'
configure:35227: checking for floorf
configure:35255: gcc -o conftest -g -O2 conftest.c -lz -lresolv -lm -ldl
-lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:35239: warning: conflicting types for built-in function 'floorf'


Searching for solution on Internet gave me a lot of hits, but no solution
that works.

Does anyone know how to fix this?


--
Jørn Dahl-Stamnes
http://www.dahl-stamnes.net/dahls/
.