This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: include path


>>>>> "Richard" == Richard Stuckey <Richard.Stuckey@arc.com> writes:

Richard> AC_ARG_WITH(xiss,
Richard>   AS_HELP_STRING([--with-xiss], [include xiss support (auto/yes/no)]),
Richard>   [], [with_xiss=auto])
Richard> AC_MSG_CHECKING([whether to use xiss])
Richard> AC_MSG_RESULT([$with_xiss])

Richard> However, I can not find a way of adding the include path.

A typical approach is to define a new variable in configure.ac, then
AC_SUBST it:

    XISS_INCLUDES="-Iwhatever"
    AC_SUBST(XISS_INCLUDES)

Then in Makefile.in:

    XISS_INCLUDES = @XISS_INCLUDES@

Finally, add $(XISS_INCLUDES) to INTERNAL_CFLAGS_BASE.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]