don't export LIBTALLOC_CFLAGS when using the included

This commit is contained in:
Nikos Mavrogiannopoulos
2015-11-11 16:25:45 +01:00
parent b2881375af
commit 8d17358c8b
2 changed files with 5 additions and 4 deletions

View File

@@ -108,10 +108,7 @@ with_local_talloc=no,
)
fi
if test "$with_local_talloc" != no;then
FLAGS='-Iccan/talloc/ -Iccan/typedef_cb/ -Iccan/compiler/'
AC_SUBST([LIBTALLOC_CFLAGS], [$FLAGS])
else
if test "$with_local_talloc" = no;then
AC_DEFINE(HAVE_LIBTALLOC, 1, [have libtalloc])
fi

View File

@@ -11,6 +11,10 @@ AM_CPPFLAGS = -I$(srcdir)/../gl/ -I$(builddir)/../gl/ \
BUILT_SOURCES = ocserv-args.c ocserv-args.h ipc.pb-c.c ipc.pb-c.h \
http-heads.h kkdcp_asn1_tab.c
if LOCAL_TALLOC
AM_CPPFLAGS += -I$(top_srcdir)/src/ccan/talloc
endif
#AM_CPPFLAGS += -DDEBUG_LEAKS
include common.mk