Auto(conf|make|whatever it is) tracks deps only when the library is simple filename. It failed because it wanted to create libdnsacl before libacl, this way it knows it should wait.
@@ -18,7 +18,7 @@ lib_LTLIBRARIES += libdnsacl.la
libdnsacl_la_SOURCES = dns.h dns.cc
-libdnsacl_la_LIBADD = $(top_builddir)/src/lib/acl/libacl.la
+libdnsacl_la_LIBADD = libacl.la
libdnsacl_la_LIBADD += $(top_builddir)/src/lib/dns/libdns++.la
CLEANFILES = *.gcno *.gcda