2 include (CheckIncludeFile)
4 check_include_file (argz.h HAVE_ARGZ_H)
10 check_include_file (limits.h HAVE_LIMITS_H)
12 if (NOT HAVE_LIMITS_H)
13 set (ENABLE_NLS FALSE)
16 check_include_file (locale.h HAVE_LOCALE_H)
18 if (NOT HAVE_LOCALE_H)
19 set (ENABLE_NLS FALSE)
22 check_include_file (nl_types.h HAVE_NL_TYPES_H)
24 if (NOT HAVE_NL_TYPES_H)
25 set (ENABLE_NLS FALSE)
28 check_include_file (stdlib.h HAVE_STDLIB_H)
30 if (NOT HAVE_STDLIB_H)
31 set (ENABLE_NLS FALSE)
34 check_include_file (string.h HAVE_STRING_H)
36 if (NOT HAVE_STRING_H)
37 set (ENABLE_NLS FALSE)
40 check_include_file (sys/param.h HAVE_SYS_PARAM_H)
42 if (NOT HAVE_SYS_PARAM_H)
43 set (ENABLE_NLS FALSE)
46 if (NOT HAVE_STDDEF_H)
47 check_include_file (stddef.h HAVE_STDDEF_H)
49 if (NOT HAVE_STDDEF_H)
50 set (ENABLE_NLS FALSE)
56 if (NOT GETTEXT_MSGFMT_EXECUTABLE OR NOT GETTEXT_MSGMERGE_EXECUTABLE)
57 set (ENABLE_NLS FALSE)
61 message (STATUS "Everything is fine. aMule can be localized")
62 set (YYENABLE_NLS TRUE CACHE INTERNAL "For parser, php-parser and to not recheck for nls-support" FORCE)
65 message (STATUS "You need to install GNU gettext/gettext-tools to compile aMule with i18n support.")