Cannot complete NRPR 2.12 error - checking for SSL libraries



I am trying to resolve this issue

checking for SSL headers… SSL headers found in /usr
checking for SSL libraries… configure: error: Cannot find ssl libraries

After running
sudo ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib in the nrpe-2.12 directory

I tried the following link

I install the ssl lib
apt-get install libcurl3-openssl-dev and
sudo apt-get install libssl-dev

It says completed

I even tried reinstalling the nagios plugins as this was suggested somewhere else.

I don’t know what else to do?

Any ideas?

Ubuntu 12.04LTS