GI tools are not relocatable on W32
Submitted by LRN
Link to original bug (#724885)
Description
GI needs libdir and datadir. Hardcoding @datarootdir@ and @libdir@ doesn't cut it on W32.
A more generic solution is to remember @prefix@, get actual prefix at runtime by checking the parents directories for well-known subdirs (bin, lib, libexec, etc). Then append data and lib directories to runtime prefix (after stripping compile-time prefix from them).