Browse Source

[master] add -I for builddir to find generated spec_config.h.

Add -I flag for builddir to find generated spec_config.h.

Also remove the ../spec_config.h target. It didn't work as-is
since it referenced file in the wrong directory. Instead of fixing
this I decided to remove. In normal build, the previous directory
does build it first. In the case of attempting to build specific
directories first, doesn't work yet due to other problems already
(like missing dns components).

This was noticed in a failed distcheck.
Jeremy C. Reed 14 years ago
parent
commit
a83e29a881
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/bin/auth/tests/Makefile.am

+ 1 - 4
src/bin/auth/tests/Makefile.am

@@ -1,4 +1,5 @@
 AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
+AM_CPPFLAGS += -I$(top_builddir)/src/bin # for generated spec_config.h header
 AM_CPPFLAGS += -I$(top_builddir)/src/lib/dns -I$(top_srcdir)/src/bin
 AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
 AM_CPPFLAGS += $(BOOST_INCLUDES)
@@ -16,10 +17,6 @@ CLEANFILES = *.gcno *.gcda
 
 TESTS =
 if HAVE_GTEST
-../spec_config.h: ../spec_config.h.pre
-	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@
-
-CLEANFILES += ../spec_config.h
 
 BUILT_SOURCES = ../spec_config.h
 TESTS += run_unittests