Re: sample gobject.pc.in file - What do the "@"s mean?



Sven Neumann <sven gimp org> writes:

> TomF <TomF sjpc org> writes:
> 
> > I am going to download the source for some of the gnome2 packages that
> > have *.pc files to see if I can figure out what it is in configure.in
> > that builds *.pc from *.pc.in.  
> 
> all files that appear in AC_OUTPUT() in configure.in will be generated
> from their .in sources when configure is run. So basically you only
> need to add the gnucash.pc.in file and add gnucash.pc to AC_OUTPUT().
> Of course you will also need a few modifications to Makefile.am in order
> to get the pc file installed and distributed. Something like the
> following should do:
> 
> pkgconfigdir = $(libdir)/pkgconfig
> pkgconfig_DATA = gnucash.pc

If you need to do anything more complex, my ac_config_pkgconfig_in.m4
file (in the ac-archive) provides a AC_CONFIG_PKGCONFIG_IN macro to do
more complex .pc.in generation within configure.  With recent
autoconf/makes, it might be possible to automate the .pc file
generation in config.status, now that automake uses autoconf traces.

I have a slightly more recent version than the one publicly available,
which I mean to submit soon--contact me if you want a copy.


Regards,
Roger

-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]