Re: [gtk-list] New system for getting information about GTK



Owen Taylor <owt1@cornell.edu> writes:
> Hi all, 
> 
> I've been working on some changes to the way GTK programs get
> information about the GTK library.
> 
> To summarize what I have now:
> 
>   gtk-config [--version] [--libs] [--cflags]
> 
> gtk-config --version
>   0.99.5
> 
> gtk-config --libs
>   -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXi -lXext -lX11 -lm
> 
> gtk-config --cflags
>   -I/usr/local/include -I/usr/X11R6/include
> 
> You can either use this directly from the command line or in a Makefile:
> 
>   gcc -o prog `gtk-config --cflags` prog.c `gtk-config --libs`

I think now is a good time to fix the problems with `glib' too.  As a
first step, I would suggest installing glibconfig.h into

	toolincludedir=$exec_prefix/$target_alias/include
	
i.e.

	toolinclude_DATA = glibconfig.h

and let `gtk-config --cflags' also include

	-I $toolincludedir

This is required to properly support people who use $prefix != $exec_prefix,
and use the same $prefix for multiple architectures.

You will find more detailed analyses in my previous mails to the
gtk-list, or I can send you a copy of my mails.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



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