diff options
Diffstat (limited to 'usr/src/Makefile')
-rw-r--r-- | usr/src/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/Makefile b/usr/src/Makefile index a7a4f8b1fa..ce8962609a 100644 --- a/usr/src/Makefile +++ b/usr/src/Makefile @@ -26,6 +26,7 @@ # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved. # Copyright 2016 Toomas Soome <tsoome@me.com> # Copyright 2017 Joyent, Inc. +# Copyright 2018 OmniOS Community Edition (OmniOSce) Association. # # @@ -289,3 +290,13 @@ java-version: $(ECHO) No Java compiler found; \ exit 1; \ fi + +openssl-version: + @if [ -x "$(OPENSSL)" ]; then \ + $(ECHO) $(OPENSSL); \ + $(OPENSSL) version; \ + $(OPENSSL) version -f | \ + $(SED) -n '/_API/{s/.*_API/ API/;s/ -.*//;p;}'; \ + else \ + $(ECHO) No OpenSSL utility found; \ + fi |