[libgweather] build: Name the links() configuration test



commit 55d9dec1afd4c98e58fa97c9d9d212dc123bd9e3
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Nov 27 13:42:39 2017 +0000

    build: Name the links() configuration test
    
    This makes it easier to check in the logs and output.

 meson.build |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index b6b0c59..9a22630 100644
--- a/meson.build
+++ b/meson.build
@@ -60,7 +60,9 @@ 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>')
+if c_compiler.links('char c; c = *((unsigned char *) nl_langinfo(_NL_MEASUREMENT_MEASUREMENT));',
+                    prefix: '#include <langinfo.h>',
+                    name: '_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]