From 273475ce32b58966e35ed688fd6216c63b37d01f Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 29 May 2003 21:31:34 +0000 Subject: [PATCH] Better system includes usage. Remove the DEFAULT_INCLUDES and put \$(top_srcdir)/include instead. git-svn-id: http://ltt.polymtl.ca/svn@38 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 3 +++ ltt/branches/poly/lttv/Makefile.am | 5 +++-- ltt/branches/poly/lttv/module.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index e6731008..6c0b48fc 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -40,6 +40,9 @@ AC_CHECK_FUNCS([select]) lttplugindir="${libdir}/ltt/plugins" AC_SUBST(lttplugindir) +DEFAULT_INCLUDES="-I\$(top_srcdir)/include" +AC_SUBST(DEFAULT_INCLUDES) + AC_CONFIG_FILES([Makefile lttv/Makefile lttv/plugins/Makefile diff --git a/ltt/branches/poly/lttv/Makefile.am b/ltt/branches/poly/lttv/Makefile.am index 34e841ad..13f6de7b 100644 --- a/ltt/branches/poly/lttv/Makefile.am +++ b/ltt/branches/poly/lttv/Makefile.am @@ -1,7 +1,8 @@ bin_PROGRAMS = textui -AM_CPPFLAGS = \ - -I$(top_srcdir)/include +#AM_CPPFLAGS = \ +# -I$(top_srcdir)/include +#INCLUDES=$(top_srcdir)/include # MD //FIXME add headers dependancy textui_SOURCES = main.c module.c option.c hook.c attribute.c diff --git a/ltt/branches/poly/lttv/module.c b/ltt/branches/poly/lttv/module.c index a2ecffe2..a966d6ca 100644 --- a/ltt/branches/poly/lttv/module.c +++ b/ltt/branches/poly/lttv/module.c @@ -7,7 +7,7 @@ * Reworked by Mathieu Desnoyers, May 2003 */ -#include +#include "lttv.h" #include "module.h" #include -- 2.34.1