summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Makefile.am12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 6c775711f7..40623aed02 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -20,11 +20,15 @@
ACLOCAL_AMFLAGS = -I ../m4 -I ../gl/m4
-SUBDIRS = includes x509 accelerated auth ext algorithms extras
+SUBDIRS = includes x509 auth ext algorithms extras
if ENABLE_MINITASN1
SUBDIRS += minitasn1
endif
+if ENABLE_NETTLE
+SUBDIRS += accelerated
+endif
+
localedir = $(datadir)/locale
AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS) $(NETTLE_CFLAGS)
@@ -121,13 +125,17 @@ libgnutls_la_LDFLAGS = -no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libgnutls_la_LIBADD = ../gl/libgnu.la x509/libgnutls_x509.la \
- accelerated/libaccelerated.la ext/libgnutls_ext.la \
+ ext/libgnutls_ext.la \
auth/libgnutls_auth.la algorithms/libgnutls_alg.la \
extras/libgnutls_extras.la
thirdparty_libadd = $(LTLIBZ) $(LTLIBINTL) $(LIBSOCKET) \
$(LTLIBPTHREAD) $(LTLIBICONV) $(P11_KIT_LIBS) $(LIB_SELECT) $(TSS_LIBS) \
$(LTLIBICONV)
+if ENABLE_NETTLE
+libgnutls_la_LIBADD += accelerated/libaccelerated.la
+endif
+
if NEEDS_LIBRT
thirdparty_libadd += $(LTLIBRT)
endif