Here's my Configure line:

./Configure --prefix=/NetFuel/autobuild/tools/_SunOS_5.8_sparc/
openssl --openssldir=/NetFuel/autobuild/tools/_SunOS_5.8_sparc/openssl
enable-aes enable-cast enable-dsa enable-dh enable-idea enable-rsa
enable-sha enable-ssl3 enable-tls1 --with-zlib-lib=/usr/local/lib --
with-zlib-include=/usr/local/include zlib-dynamic threads solaris-
sparcv9-cc


The Makefile that is built has ZLIB_INCLUDE=/usr/local/include (as I
would expect it to). However, I get this result when trying to
compile:

making all in crypto/pkcs12...
make[2]: Entering directory `/NetFuel/autobuild/tools/src/
_SunOS_5.8_sparc/openssl-0.9.8e/crypto/pkcs12'
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_add.o p12_add.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_asn.o p12_asn.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_attr.o p12_attr.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_crpt.o p12_crpt.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_crt.o p12_crt.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_decr.o p12_decr.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_init.o p12_init.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_key.o p12_key.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_kiss.o p12_kiss.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_mutl.o p12_mutl.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_utl.o p12_utl.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_npas.o p12_npas.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o pk12err.o pk12err.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_p8d.o p12_p8d.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o p12_p8e.o p12_p8e.c
ar r ../../libcrypto.a p12_add.o p12_asn.o p12_attr.o p12_crpt.o
p12_crt.o p12_decr.o p12_init.o p12_key.o p12_kiss.o p12_mutl.o
p12_utl.o p12_npas.o pk12err.o p12_p8d.o p12_p8e.o
/usr/ccs/bin/ranlib ../../libcrypto.a || echo Never mind.
make[2]: Leaving directory `/NetFuel/autobuild/tools/src/
_SunOS_5.8_sparc/openssl-0.9.8e/crypto/pkcs12'
making all in crypto/comp...
make[2]: Entering directory `/NetFuel/autobuild/tools/src/
_SunOS_5.8_sparc/openssl-0.9.8e/crypto/comp'
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o comp_lib.o comp_lib.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o comp_err.o comp_err.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o c_rle.o c_rle.c
cc -I.. -I../.. -I../../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -xarch=v8 -xO5 -xstrconst -
xdepend -Xa -DB_ENDIAN -DBN_DIV2W -c -o c_zlib.o c_zlib.c
"c_zlib.c", line 25: cannot find include file:
"c_zlib.c", line 98: syntax error before or at: *
"c_zlib.c", line 99: warning: undefined or missing type for: const
"c_zlib.c", line 99: warning: undefined or missing type for: sourceLen
"c_zlib.c", line 100: syntax error before or at: strm
"c_zlib.c", line 100: warning: undefined or missing type for: strm
"c_zlib.c", line 101: syntax error before or at: strm
"c_zlib.c", line 101: warning: undefined or missing type for: strm
"c_zlib.c", line 101: warning: undefined or missing type for: int
"c_zlib.c", line 102: syntax error before or at: strm
"c_zlib.c", line 102: warning: undefined or missing type for: strm
"c_zlib.c", line 103: warning: undefined or missing type for: const
"c_zlib.c", line 103: warning: undefined or missing type for: int
"c_zlib.c", line 104: syntax error before or at: strm
"c_zlib.c", line 104: warning: undefined or missing type for: strm
"c_zlib.c", line 105: syntax error before or at: strm
"c_zlib.c", line 105: warning: undefined or missing type for: strm
"c_zlib.c", line 105: warning: undefined or missing type for: int
"c_zlib.c", line 106: syntax error before or at: strm
"c_zlib.c", line 106: warning: undefined or missing type for: strm
"c_zlib.c", line 106: warning: undefined or missing type for: int
"c_zlib.c", line 107: warning: undefined or missing type for: const
"c_zlib.c", line 107: warning: undefined or missing type for: int
"c_zlib.c", line 130: syntax error before or at: z_stream
"c_zlib.c", line 130: cannot recover from previous errors
cc: acomp failed for c_zlib.c
make[2]: *** [c_zlib.o] Error 2
make[2]: Leaving directory `/NetFuel/autobuild/tools/src/
_SunOS_5.8_sparc/openssl-0.9.8e/crypto/comp'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/NetFuel/autobuild/tools/src/
_SunOS_5.8_sparc/openssl-0.9.8e/crypto'
make: *** [build_crypto] Error 1

I find that if I copy the zlib.h from /usr/local/include to /usr/
include then the compile continues and complains about the next
zXXXX.h file it needs. It appears that once you get into the crypto
build that it ignores/doesn't know about ZLIB_INCLUDE. Could somebody
please provide a quick patch so that Configure makes the crypto
section understand the ZLIB_INCLUDE?

Thanks.

Kevin Martin