allow absolute path in --with-openssl=

This commit is contained in:
Igor Sysoev 2009-05-24 14:14:08 +00:00
parent 83b0b36110
commit c8a13e5c23

View file

@ -45,12 +45,24 @@ END
;;
*)
case $OPENSSL in
/*)
ngx_prefix="$OPENSSL/openssl"
;;
*)
ngx_prefix="$PWD/$OPENSSL/openssl"
;;
esac
cat << END >> $NGX_MAKEFILE
$OPENSSL/openssl/include/openssl/ssl.h: $NGX_MAKEFILE
cd $OPENSSL \\
&& \$(MAKE) clean \\
&& ./config --prefix=$PWD/$OPENSSL/openssl no-shared $OPENSSL_OPT \\
&& ./config --prefix=$ngx_prefix no-shared $OPENSSL_OPT \\
&& \$(MAKE) \\
&& \$(MAKE) install