diff options
Diffstat (limited to 'src/gns/Makefile.am')
-rw-r--r-- | src/gns/Makefile.am | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am index 13f6a6e52..7d343e7ff 100644 --- a/src/gns/Makefile.am +++ b/src/gns/Makefile.am | |||
@@ -88,21 +88,36 @@ bin_PROGRAMS += gnunet-bcd | |||
88 | endif | 88 | endif |
89 | endif | 89 | endif |
90 | 90 | ||
91 | bin_SCRIPTS = gnunet-gns-proxy-setup-ca | ||
92 | |||
93 | plugin_LTLIBRARIES = \ | 91 | plugin_LTLIBRARIES = \ |
94 | libgnunet_plugin_block_gns.la \ | 92 | libgnunet_plugin_block_gns.la \ |
95 | libgnunet_plugin_gnsrecord_gns.la | 93 | libgnunet_plugin_gnsrecord_gns.la |
96 | 94 | ||
97 | xPFX=$(pkgdatadir)/openssl.cnf | ||
98 | 95 | ||
96 | if HAVE_OPENSSL | ||
97 | xOPENSSL=$(shell which openssl) | ||
98 | do_subst_openssl = $(SED) -e 's,[@]OPENSSLBIN[@],${xOPENSSL},g' | ||
99 | endif | ||
100 | |||
101 | if HAVE_NSS | ||
102 | xCERTUTIL=$(shell which certutil) | ||
103 | do_subst_certutil = $(SED) -e 's,[@]CERTUTILBIN[@],${xCERTUTIL},g' | ||
104 | endif | ||
105 | |||
106 | xPFX=$(pkgdatadir)/openssl.cnf | ||
99 | do_subst = $(SED) -e 's,[@]PREFIX[@],${xPFX},g' | 107 | do_subst = $(SED) -e 's,[@]PREFIX[@],${xPFX},g' |
100 | 108 | ||
101 | gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in | 109 | gnunet-gns-proxy-setup-ca: gnunet-gns-proxy-setup-ca.in |
102 | $(do_subst) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca | 110 | $(do_subst) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca.in > gnunet-gns-proxy-setup-ca |
111 | ifeq ($(HAVE_OPENSSL), 1) | ||
112 | $(do_subst_openssl) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca | ||
113 | endif | ||
114 | ifeq ($(HAVE_OPENSSL), 1) | ||
115 | $(do_subst_certutil) < $(top_srcdir)/src/gns/gnunet-gns-proxy-setup-ca | ||
116 | endif | ||
103 | chmod +x gnunet-gns-proxy-setup-ca | 117 | chmod +x gnunet-gns-proxy-setup-ca |
118 | else: | ||
104 | 119 | ||
105 | 120 | bin_SCRIPTS = gnunet-gns-proxy-setup-ca | |
106 | 121 | ||
107 | libgnunet_plugin_gnsrecord_gns_la_SOURCES = \ | 122 | libgnunet_plugin_gnsrecord_gns_la_SOURCES = \ |
108 | plugin_gnsrecord_gns.c | 123 | plugin_gnsrecord_gns.c |