intl: fix incorrect detection of header
Although find_library returns the library as a list of args, has_header
returns a tuple(is_found, is_cached) which is non-empty and thus always
true. Which is confusing...
Check whether it actually got found.
@@ -457,7 +457,7 @@ class IntlSystemDependency(SystemDependency):
h = self.clib_compiler.has_header('libintl.h', '', env)
self.link_args = self.clib_compiler.find_library('intl', env, [])
- if h and self.link_args:
+ if h[0] and self.link_args:
self.is_found = True
