DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-valgrind-tests
-SUBDIRS = gl lib extra libdane po
+SUBDIRS = gl lib extra
-SUBDIRS += src doc tests
+if ENABLE_DANE
+SUBDIRS += libdane
+endif
+
+SUBDIRS += po src doc tests
if HAVE_GUILE
SUBDIRS += guile
SUBDIRS = includes
-defexecdir = $(bindir)
-defexec_DATA =
-
-
libgnutls_dane_la_LDFLAGS = -no-undefined
-if ENABLE_DANE
lib_LTLIBRARIES = libgnutls-dane.la
libgnutls_dane_la_SOURCES = dane.c dane-params.c errors.c libdane.map
libgnutls_dane_la_LDFLAGS += -export-symbols-regex '^(dane).*'
endif
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gnutls-dane.pc
+DISTCLEANFILES = $(pkgconfig_DATA)
+
if HAVE_LD_OUTPUT_DEF
libgnutls_dane_la_LDFLAGS += \
-Wl,--output-def,libgnutls-dane-$(DLL_VERSION).def
libgnutls_dane-$(DLL_VERSION).def: libgnutls-dane.la
-defexec_DATA += libgnutls-dane-$(DLL_VERSION).def
-endif
-endif
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gnutls-dane.pc
-DISTCLEANFILES = $(pkgconfig_DATA)
+defexecdir = $(bindir)
+defexec_DATA = libgnutls-dane-$(DLL_VERSION).def
DISTCLEANFILES += $(defexec_DATA)
+endif
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
-nobase_include_HEADERS =
-
-if ENABLE_DANE
-nobase_include_HEADERS += gnutls/dane.h
-endif
+nobase_include_HEADERS = gnutls/dane.h