aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2017-09-25 10:20:08 -0500
committerStephen Houston <smhouston88@gmail.com>2017-09-25 10:20:08 -0500
commita790f13308ea54bef1ef1d2d267f8d10c4834a93 (patch)
tree2ea29a51df496587aef498f6f3b3e3a47830125f
parentEphoto exif data: Don't forget to clean up the allocated mem. (diff)
downloadephoto-a790f13308ea54bef1ef1d2d267f8d10c4834a93.tar.gz
Update meson wrt to gettext and nls translations.
-rw-r--r--meson.build14
-rw-r--r--po/meson.build2
2 files changed, 8 insertions, 8 deletions
diff --git a/meson.build b/meson.build
index aae480f..b068dd7 100644
--- a/meson.build
+++ b/meson.build
@@ -59,18 +59,20 @@ endif
##### Check for arpa/inet and netinet/in.h
if cc.has_header('arpa/inet.h') == true
cfg.set ('HAVE_ARPA_INET_H' , 1)
-else
- cfg.set ('HAVE_ARPA_INET_H' , 0)
endif
if cc.has_header('netinet/in.h') == true
cfg.set ('HAVE_NETINET_IN_H' , 1)
-else
- cfg.set ('HAVE_NETINET_IN_H' , 0)
endif
if exif.found() == true
cfg.set ('HAVE_LIBEXIF' , 1)
-else
- cfg.set ('HAVE_LIBEXIF' , 0)
+endif
+if get_option('nls') == true
+ if cc.has_header('locale.h') == true
+ if cc.has_header('libintl.h') == true
+ cfg.set ('HAVE_GETTEXT' , 1)
+ endif
+ endif
+ cfg.set ('ENABLE_NLS' , 1)
endif
configure_file(output: 'config.h', configuration: cfg)
diff --git a/po/meson.build b/po/meson.build
index e9bd647..ca521c7 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,6 +1,4 @@
if get_option('nls')
i18n = import('i18n')
i18n.gettext('ephoto')
- cfg = configuration_data()
- cfg.set('HAVE_GETTEXT', '1')
endif