Commits

Ondřej Surý  committed 5902acd

Make test build more resilient to top_builddir changes

  • Participants
  • Parent commits 19ef549

Comments (0)

Files changed (4)

File configure.ac

 AC_CONFIG_FILES([Makefile
                 src/Makefile
 		tests/Makefile
-		tests/gdtest/test_config.h
+		tests/test_config.h
                 config/Makefile
                 config/gdlib-config
 		config/gdlib.pc])

File tests/Makefile.am

 endif
 
 LDADD = ../src/libgd.la libgdtest.a
-AM_CPPFLAGS = -I../src -I gdtest
+AM_CPPFLAGS = -I$(top_srcdir)/src -I $(top_srcdir)/tests/gdtest
 
 TESTS = $(check_PROGRAMS)
 

File tests/gdtest/test_config.h.in

-/* Define the full path to the top src dir, required to get the path
- * of each input data */
-#define GDTEST_TOP_DIR "@srcdir@"

File tests/test_config.h.in

+/* Define the full path to the top src dir, required to get the path
+ * of each input data */
+#define GDTEST_TOP_DIR "@srcdir@"