- if (pkg_config_path is not None):
- # told to search for pkgconfig files
- if pkg_config_path.find (user_gtk_root) >= 0:
- # told to search user_gtk_root
- prefinclude = ''.join ([ '-I', user_gtk_root + '/include'])
- preflib = ''.join ([ '-L', user_gtk_root + '/lib'])
- conf.env.append_value('CFLAGS', [ prefinclude ])
- conf.env.append_value('CXXFLAGS', [prefinclude ])
- conf.env.append_value('LINKFLAGS', [ preflib ])
- conf.define ('NEED_INTL', 1)
- autowaf.display_msg(conf, 'Will use explicit linkage against libintl in ' + user_gtk_root, 'yes')
- else:
- print ('\n\n**** Cannot locate libintl.h and PKG_CONFIG_PATH does not include ', user_gtk_root, '- this needs fixing before the build can continue')
- sys.exit (-1)
- else:
- print ('\n\n**** Cannot locate libintl.h and PKG_CONFIG_PATH is not set - this needs fixing before the build can continue')