[build] Do not hardcode the glade catalog path
commit57b931cde47620d67ecb45e6e6d8282379202538
authorNicola Fontana <ntd@entidi.it>
Wed, 7 Apr 2010 15:24:03 +0000 (7 17:24 +0200)
committerNicola Fontana <ntd@entidi.it>
Wed, 7 Apr 2010 15:35:35 +0000 (7 17:35 +0200)
treece0741a22506d4b2b05d745a0de0439c727e00e2
parente84c018f64b1241ecad9f88c464c943d1d59b3f7
[build] Do not hardcode the glade catalog path

Although the official glade documentation suggests it:

http://library.gnome.org/devel/gladeui/stable/catalogintro.html

hardcoding catalogdir is a bad idea in the first place and it breaks
VPATH builds. I have not found the ideal solution so I choosed an ugly
one: substituting ${datarootdir} of the glade catalog path with the one
set by the ADG project.

The implementation exactly tries to do this, although some corner cases
are not properly handled. For instance, if the glade catalog path does
not start with `pkg-config --variable=datarootdir gladeui-1.0`, it will
be hardcoded verbatim with the above problems.
Makefile.am
configure.ac
src/Makefile.am
src/adg-gtk-1.pc.in