+ # libintl may or may not be trivially locatable. On OS X this is always
+ # true. On Linux it will depend on whether we're on a normal Linux distro,
+ # in which case libintl.h is going to be available in /usr/include and
+ # the library itself is part of glibc, or on a bare-bones build system
+ # where we need to pick it up from the GTK dependency stack.
+ #
+ if not os.path.isfile ('/usr/include/libintl.h'):
+ # XXXX hack hack hack
+ prefinclude = ''.join ([ '-I', os.path.expanduser ('~/gtk/inst/include') ])
+ preflib = ''.join ([ '-L', os.path.expanduser ('~/gtk/inst/lib') ])
+ conf.env.append_value('CFLAGS', [ prefinclude ])
+ conf.env.append_value('CXXFLAGS', [prefinclude ])
+ conf.env.append_value('LINKFLAGS', [ preflib ])