Canot find library on compile - fixing PKG_CONFIG_PATH isn't working

I am using bash on OSX Leopard.

When I attempt ./configure I get this error:

checking for OPENSSL... configure: error: Package requirements (openssl) were not met:

No package 'openssl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

So then I do "locate openssl.pc" and that returns "/usr/lib/pkgconfig/openssl.pc"

Then I do "export PKG_CONFIG_PATH=/usr/lib/pkgconfig"
That returns "0.9.7l" so I know that pkg-config can find it.
But then when I enter "./configure" again I get the exact same error as before.

Hi,

If you say which package you are trying to build it might be
easier to determine the problem. Odds are somebody has
already tried to build it.

A.

Without any further information,
you can either set the PKG_CONFIG_PATH
in the global 'profile' file as I do, located
in '/etc/profile' or the usual way to define
environmental variables with the more modern
./configure is to put it on the same line e.g.

PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure

Hope this helps.

A.