diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2019-02-02 17:47:48 +0300 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2019-02-02 17:47:48 +0300 |
commit | 7b98ffd345f13d96896f54c5c054d087fc21d856 (patch) | |
tree | 2896b64bf73f05ec5cf34d393fa282114555c99b /src/Makefile.am | |
parent | 5f7b10e632971cadf277208d3fde711c35868ccb (diff) | |
download | gnutls-7b98ffd345f13d96896f54c5c054d087fc21d856.tar.gz |
build: do not generate mech-list.h if p11-kit is not available
Compiling GnuTLS with no p11-kit installed will result in a serie of
warnings during build time because mech-list.h will be generated even if
pkcs11 tool compilation is disabled. Move mech-list.h generation to
happen only if pkcs11 is enabled, thus removing these warnings.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index eb3c578648..0374924c53 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -56,7 +56,7 @@ ARGS_STAMPS = \ systemkey-args.stamp srptool-args.stamp ocsptool-args.stamp p11tool-args.stamp \ danetool-args.stamp serv-args.stamp psktool-args.stamp -BUILT_SOURCES = $(ARGS_BUILT) mech-list.h +BUILT_SOURCES = $(ARGS_BUILT) DISTCLEANFILES = $(BUILT_SOURCES) $(ARGS_STAMPS) @@ -226,8 +226,9 @@ libcmd_danetool_la_LIBADD += $(INET_PTON_LIB) $(LIB_CLOCK_GETTIME) # p11 tool if ENABLE_PKCS11 +BUILT_SOURCES += mech-list.h p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c \ - certtool-extras.c p11tool.h common.c + certtool-extras.c p11tool.h common.c mech-list.h p11tool_LDADD = ../lib/libgnutls.la p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la gl/libgnu_gpl.la p11tool_LDADD += $(COMMON_LIBS) |