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


> 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.


Ah, that's it.

It finally dawned on me that I get the "whatever" from the script
variable 'with_xiss_prefix', i.e. the script creates a variable
corresponding to each command-line option to 'configure'.  So I now have

  AC_DEFINE(HAVE_LIBXISS, 1, [Define if you have the xISS library.])
  XISS_INCLUDES="-I${with_xiss_prefix}/include"
  AC_SUBST(XISS_INCLUDES)

which gives the required result.

Thanks for your help!

     Richard



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