Include <config.h> in standalone tests.
authorLudovic Courtès <ludo@gnu.org>
Sat, 13 Sep 2008 18:09:08 +0000 (20:09 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 13 Sep 2008 18:09:08 +0000 (20:09 +0200)
* test-suite/standalone/Makefile.am (test_cflags): Add `-I$(top_builddir)' so
  that <config.h> can be found.
  (snarfcppopts): Likewise.

* test-suite/standalone/*.c: Include <config.h>.

test-suite/standalone/Makefile.am
test-suite/standalone/test-asmobs-lib.c
test-suite/standalone/test-gh.c
test-suite/standalone/test-list.c
test-suite/standalone/test-num2integral.c
test-suite/standalone/test-with-guile-module.c

index adbe0c8..212fbca 100644 (file)
@@ -32,7 +32,7 @@ TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
 
 test_cflags =                                  \
   -I$(top_srcdir)/test-suite/standalone                \
-  -I$(top_srcdir)                              \
+  -I$(top_srcdir) -I$(top_builddir)            \
   -I$(top_srcdir)/lib -I$(top_builddir)/lib    \
   $(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
 
@@ -40,7 +40,7 @@ AM_LDFLAGS = $(GUILE_CFLAGS)
 
 snarfcppopts =                                                         \
   $(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) -I$(top_srcdir)    \
-  -I$(top_srcdir)/lib -I$(top_builddir)/lib
+  -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir)
 
 SUFFIXES = .x
 .c.x:
index 88cf847..b85f923 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <libguile.h>
 
 long asmob000;
index b273b44..9f1601a 100644 (file)
 
 /* some bits originally by Jim Blandy <jimb@red-bean.com> */
 
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <libguile.h>
 #include <libguile/gh.h>
 
index 3396dff..02634f6 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <libguile.h>
 
 #include <stdio.h>
index d2de418..1e8a016 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <libguile.h>
 
 #include <stdio.h>
index 14d3afd..babc22b 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include <pthread.h>
 #include <libguile.h>