diff --git a/README.md b/README.md index 7e9b50bf..d6367bd4 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,7 @@ build options: | pfm | `HAVE_PFM` | cpacfstats | | net-snmp | `HAVE_SNMP` | osasnmpd | | glibc-static | `HAVE_LIBC_STATIC` | zfcpdump | +| openssl | `HAVE_OPENSSL` | zkey | This table lists additional build or install options: @@ -366,3 +367,8 @@ the different tools are provided: For running znetconf these programs are required: - modprobe (kmod) - vmcp (s390-tools) + +* zkey: + For building the zkey tools you need openssl version 0.9.7 or newer installed + (openssl-devel.rpm). Tip: you may skip the zkey build by adding + `HAVE_OPENSSL=0` to the make invocation. diff --git a/zkey/Makefile b/zkey/Makefile index 79d1c479..3201e4b8 100644 --- a/zkey/Makefile +++ b/zkey/Makefile @@ -1,9 +1,26 @@ include ../common.mak +ifeq (${HAVE_OPENSSL},0) + +all: + $(SKIP) HAVE_OPENSSL=0 + +install: + $(SKIP) HAVE_OPENSSL=0 + +else + +check_dep: + $(call check_dep, \ + "zkey", \ + "openssl/evp.h", \ + "openssl-devel", \ + "HAVE_OPENSSL=0") + CPPFLAGS += -I../include LDLIBS += -ldl -lcrypto -all: zkey +all: check_dep zkey libs = $(rootdir)/libutil/libutil.a @@ -18,6 +35,8 @@ install: all $(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)/man1 $(INSTALL) -m 644 -c zkey.1 $(DESTDIR)$(MANDIR)/man1 +endif + clean: rm -f *.o zkey