[Gambas-user] Release of Gambas 2.1

Laurent Carlier lordheavym at ...626...
Mon Feb 25 13:58:33 CET 2008


Le Monday 25 February 2008 11:44:12 Benoit Minisini, vous avez écrit :
> On lundi 25 février 2008, Laurent Carlier wrote:
> > Le Monday 25 February 2008 02:19:26 Steven Drinnan, vous avez écrit :
> > > I checked the XML output from RPM and got
> > > libffi-devel installs here (checked)
> > >  <rpmTag name="Dirnames">
> > >         <string>/usr/lib/</string>
> > >         <string>/usr/lib/libffi-3.0.1/</string>
> > >         <string>/usr/lib/libffi-3.0.1/include/</string>
> > >         <string>/usr/lib/pkgconfig/</string>
> > >         <string>/usr/share/info/</string>
> > >         <string>/usr/share/man/man3/</string>
> > >   </rpmTag>
> > >
> > > and libffi instals here (checked)
> > >  <rpmTag name="Dirnames">
> > >         <string>/usr/lib/</string>
> > >         <string>/usr/share/doc/</string>
> > >         <string>/usr/share/doc/libffi-3.0.1/</string>
> > >   </rpmTag>
> > >
> > >
> > > Steven
> > >
> > > On Sun, 2008-02-24 at 09:13 +0100, Benoit Minisini wrote:
> > > > On dimanche 24 février 2008, Steven Drinnan wrote:
> > > > > I am sure rpm query
> > > > >
> > > > > libffi-3.0.1-1.fc8
> > > > > and
> > > > > libffi-devel-3.0.1-1.fc8
> > > > >
> > > > > and i am running Fedora 8
> > > > >
> > > > > where they are installed - the default location as I installed via
> > > > > RPM
> > > > >
> > > > > As for the config file I thought I attached it to the email last
> > > > > time but you can download it here
> > > > >
> > > > > www.sjdsoft.hk/outputconfig.txt
> > > > >
> > > > > Many thanks for your help
> > > > >
> > > > > Steven
> > > >
> > > > Where are the libffi headers installed on Fedora 8?
> > >
> > > -----------------------------------------------------------------------
> > >-- This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> > Ah ! a pkg-config entry :-) Benoit ?
> >
> > ++
>
> I can' tcheck both a list of paths and pkg-config. Or maybe I can insert
> `pkg-config ...` in the list of paths?

This can be done in configure.ac:
--8<--
dnl ---- Check for ffi library

GB_COMPONENT_PKG_CONFIG(
  ffi,
  FFI,
  [foreign function interface],
  [],
  libffi)

if test -z "$FFI_LIB"; then
  GB_COMPONENT(
    ffi,
    FFI,
    [foreign function interface],
    [],
    [GB_FIND(ffi.h, /usr/local /usr /usr/lib /usr/lib/gcc/*/*, include 
ffi/include)],
    [GB_FIND(libffi.$SHLIBEXT, /usr/local /usr, lib)],
    [-lffi])
fi

if test -z "$FFI_LIB"; then
  AC_MSG_ERROR([libffi library and headers are required])
fi
--8<--

And in gbx/Makefile.am:
--8<--
gbx2_LDADD = @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ 
@GBX_THREAD_LIB@ @TTY_LIB@ @FFI_LIB@
gbx2_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS)

gb_la_LIBADD = @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ 
@GBX_THREAD_LIB@ @TTY_LIB@ @FFI_LIB@
gb_la_LDFLAGS = -module @LD_FLAGS@ @FFI_LDFLAGS@
gb_la_CFLAGS = -DGBX_INFO $(AM_CFLAGS) -O0
--8<--

Calling GB_COMPONENT_PKG_CONFIG() first take care of FFI_LDFLAGS.

++




More information about the User mailing list