[libgweather] Fix build check for _NL_MEASUREMENT_MEASUREMENT



commit 2c3e5f039ff45ab67b126bee0f8be86b97fd3bed
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Jan 8 09:18:31 2018 -0800

    Fix build check for _NL_MEASUREMENT_MEASUREMENT
    
    The syntax was wrong and the test was reporting a negative result
    on Linux/glibc, where the symbol is available.

 meson.build | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index c6e3213..d775b71 100644
--- a/meson.build
+++ b/meson.build
@@ -65,9 +65,7 @@ if c_compiler.has_header_symbol('time.h', 'timezone')
   config_h.set('HAVE_TIMEZONE', 1)
 endif
 
-if c_compiler.links('char c; c = *((unsigned char *) nl_langinfo(_NL_MEASUREMENT_MEASUREMENT));',
-                    prefix: '#include <langinfo.h>',
-                    name: '_NL_MEASUREMENT_MEASUREMENT')
+if c_compiler.has_header_symbol('langinfo.h', '_NL_MEASUREMENT_MEASUREMENT')
   config_h.set('HAVE__NL_MEASUREMENT_MEASUREMENT', 1)
 endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]