when I install libx264 through apt-get , the ffmpeg configuration goes smoothly but after uninstalling libx264 , i install it again but by compiling src , i got ffmpeg configuration error as "libx264 not found" ?

My Operating system: Kubuntu 9.10 karmic kola 64bit

thanks in advance