i have installed nagios and i want to install nrpe. While installing NRPE, when i execute (/home/abc/nrpe/configure)

Code:
./configure
it stops after reaching the following line

Code:
...
checking for type of socket size... size_t
checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries
I have installed libssl-dev and openssl package as i found them as a solution for this error.

I tried the following option also

Code:
./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib
But the error remains.

What can be the possible solution for this ? I am using ubuntu 12.04 as my operating system. Thanks in advance.