[balsa/wip/gmime3: 163/197] Test for <locale.h> and set HAVE_LOCALE_H if found



commit 2a01572600dc9164146fb3dad2048ba7580e8163
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Jan 26 16:57:55 2018 -0500

    Test for <locale.h> and set HAVE_LOCALE_H if found
    
        * meson.build: Test for <locale.h> and set HAVE_LOCALE_H if
        found.

 ChangeLog   |    5 +++++
 meson.build |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2f015d3..cb2d2df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-26  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       * meson.build: test for <locale.h> and set HAVE_LOCALE_H if
+       found.
+
 2018-01-21  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Meson build system changes to mirror the autotools changes in
diff --git a/meson.build b/meson.build
index 15e3021..1658936 100644
--- a/meson.build
+++ b/meson.build
@@ -559,6 +559,11 @@ if not compiler.has_header('zlib.h')
   error('zlib library required')
 endif
 
+if compiler.has_header('locale.h')
+  conf.set('HAVE_LOCALE_H', 1,
+    description : 'Define to 1 if you have the <locale.h> header')
+endif
+
 # set more warnings.
 #
 


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