Re: glibconfig.h in glib



Dave Glowacki <dglo@ssec.wisc.edu> writes:
> In glib/Makefile.am, glibconfig.h is installed in $(configincludedir),
> but 'configincludedir' is set to '$(pkglibdir)/include', which
> eventually expands to "${exec_prefix}/lib/glib".
> 
> Shouldn't it be installed using '$(pkgincludedir)' instead?  That way it'd
> end up as "${exec_prefix}/include/glib/glibconfig.h"

Nope.  

	$(pkgincludedir) == $(prefix)/include/glib

`glibconfig.h' is based on the output of the `configure' process, and is
architecture dependent ==> should go into $(exec_prefix).
 
> Aside from that, my 'ORBit' build just fell over in ORBit/src/ORBitutil
> because trace.c includes <glib.h> which includes <glibconfig.h>.
> 
> Assuming the above fix is made to glib's Makefile.am), either 'glib.h'
> should be including <glib/glibconfig.h> or everything which includes
> <glib.h> needs to build with "-I/path/to/gnome/include/glib" (obviously
> the 'glib.h' fix is preferable...)

This should be done automatically if you use the `glib-config' program,
or use the AM_PATH_GLIB autoconf/m4 macro.  (And, no, the suggested
`glib.h' fix is not necessarily preferable.)

- 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]