Re: question about autoconf & automake



El mié, 28-08-2002 a las 18:49, Ruben Porras escribió:
Who can I know wher my files are instaled, I mean, for example

the Makefile.am y de $sourcedir/pixmaps is

## Process this file with automake to produce Makefile.in

pixmapdir = $(datadir)/gtklilo/pixmaps
[...]

But, what happens if the user change the path with ./configure
--prefix=somewhere?

window1_icon=gdk_pixbuf_new_from_file("/usr/local/share/gtklilo/pixmaps/debian.xpm", NULL);

How can I change the last sentence?

You want to add (src/Makefile.am) something like:
INCLUDES = \
        -DAPP_PIXMAPS=\"$(pkgdatadir)/pixmaps\"

And use it on your program as:
window1_icon = gdk_pixbuf_new_from_file(APP_PIXMAPS 
                        "/debian.xpm", NULL);


-- 
German Poo Caaman~o
mailto:gpoo ubiobio cl
http://www.ubiobio.cl/~gpoo/chilelindo.html
«Hay 10 tipos de personas: las que entienden binario y las que no.»




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