I have openssl installed at the default location and tried to configure 
the openssl extension for ruby 1.9, but it doesn't find openssl:

[ruby/src/ruby-1.9.0-2004.01.09/ext/openssl] ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for unistd.h... yes
checking for sys/time.h... yes
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.

I can fix that by adding the openssl dir to the C_INCLUDE_PATH, as 
below. But is that really the best way to fix the problem?

[ruby/src/ruby-1.9.0-2004.01.09/ext/openssl] 
C_INCLUDE_PATH='/usr/local/ssl/include' ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for unistd.h... yes
checking for sys/time.h... yes
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... yes
checking for OpenSSL_add_all_digests() in -lcrypto... no
checking for OpenSSL_add_all_digests() in -llibeay32... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.

So I'm not sure what I'm doing wrong now. Is the wrong lib being searched?

Thanks for any suggestions.