Hello Pedro,

* Pedro Sousa wrote on Fri, Sep 29, 2006 at 01:22:38PM CEST:
> 
> fltk2-config --cxxflags  -> gives the compile command options
> fltk2-config --ldflags    -> gives the linking command options
> 
> For this I supposed that I could make a simple Makefile.am like this
> -------------------------------------------------------------------------
> FLTK_CXXFLAGS = `fltk2-config --cxxflags`
> FLTK_LDFLAGS = `fltk2-config --ldflags`

Put this in configure.ac:
  FLTK_CXXFLAGS=`fltk2-config --cxxflags`
  AC_SUBST([FLTK_CXXFLAGS])
  FLTK_LDFLAGS=`fltk2-config --ldflags`
  AC_SUBST([FLTK_LDFLAGS])

and then just use $(FLTK_CXXFLAGS) and $(FLTK_LDFLAGS) in Makefile.am.

Cheers,
Ralf


Reply via email to