On Tue, May 25, 2010 at 2:30 PM, Stefano Lattarini <
stefano.lattar...@gmail.com> wrote:
> At Tuesday 25 May 2010, Alex Farber wrote:
> > ./configure WX_CPP="compiler flags..." WX_LIBS="linker flags..."
> >
> > This doesn't work, because AC_SUBST is done when configure script
> > is generated, a
At Tuesday 25 May 2010, Alex Farber wrote:
> ./configure WX_CPP="compiler flags..." WX_LIBS="linker flags..."
>
> This doesn't work, because AC_SUBST is done when configure script
> is generated, and not when it is executed.
No, this doesn't work because you are setting the WX_CPP and WX_LIBS
s
Currently I have the following code to build wxWidgets program with
autotools:
configure.ac:
WX_CPP="`wx-config --cppflags`"
AC_SUBST(WX_CPP)
WX_LIBS="`wx-config --libs`"
AC_SUBST(WX_LIBS)
Makefile.am:
AM_CXXFLAGS = $(WX_CPP)
program_LDADD = $(WX_LIBS)
This works fine. Now I want to use WX_CPP