1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

[meson] More fixes related to CONFIG_NLS

This commit is contained in:
Witold Filipczyk 2021-03-28 18:56:19 +02:00
parent cba5ff4405
commit 834e644515
4 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ conf_data.set('CONFIG_LIBDOM', get_option('libdom'))
#CONFIG_XBEL_BOOKMARKS=true #CONFIG_XBEL_BOOKMARKS=true
#CONFIG_COOKIES=true #CONFIG_COOKIES=true
#CONFIG_DOM=true #CONFIG_DOM=true
if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') == 1 or conf_data.get('CONFIG_ECMASCRIPT_SMJS') if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') or conf_data.get('CONFIG_ECMASCRIPT_SMJS')
conf_data.set('CONFIG_ECMASCRIPT', true) conf_data.set('CONFIG_ECMASCRIPT', true)
else else
conf_data.set('CONFIG_ECMASCRIPT', false) conf_data.set('CONFIG_ECMASCRIPT', false)

View File

@ -1,4 +1,4 @@
if conf_data.get('CONFIG_NLS') == 1 if conf_data.get('CONFIG_NLS')
i18n = import('i18n') i18n = import('i18n')
# define GETTEXT_PACKAGE # define GETTEXT_PACKAGE
add_project_arguments('-DGETTEXT_PACKAGE="elinks"', language:'c') add_project_arguments('-DGETTEXT_PACKAGE="elinks"', language:'c')

View File

@ -23,7 +23,7 @@ extern "C" {
#endif #endif
/* NLS can be disabled through the configure --disable-nls option. */ /* NLS can be disabled through the configure --disable-nls option. */
#if CONFIG_NLS #ifdef CONFIG_NLS
/* Get declarations of GNU message catalog functions. */ /* Get declarations of GNU message catalog functions. */
#include "intl/gettext/libgnuintl.h" #include "intl/gettext/libgnuintl.h"

View File

@ -1,4 +1,4 @@
if conf_data.get('CONFIG_NLS') == 1 if conf_data.get('CONFIG_NLS')
subdir('gettext') subdir('gettext')
endif endif
srcs += files('charsets.c') srcs += files('charsets.c')