Mercurial > gnulib
changeset 39844:b1d36d1d2842
gettext: Use newer macOS APIs when possible.
* m4/intlmacosx.m4 (gt_INTL_MACOSX): Fix variable name.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 16 Sep 2018 17:08:04 +0200 |
parents | 55d99f7539f8 |
children | 6b89ce1f6b37 |
files | m4/intlmacosx.m4 |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/intlmacosx.m4 Sun Sep 16 14:45:15 2018 +0200 +++ b/m4/intlmacosx.m4 Sun Sep 16 17:08:04 2018 +0200 @@ -58,12 +58,14 @@ [gt_cv_func_CFLocaleCopyPreferredLanguages=yes], [gt_cv_func_CFLocaleCopyPreferredLanguages=no]) LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then + if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1], [Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then + if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ + || test $gt_cv_func_CFLocaleCopyCurrent = yes \ + || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS])