| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
AC_DEFUN([gt_INTL_MACOSX], |
|---|
| 19 |
[ |
|---|
| 20 |
|
|---|
| 21 |
AC_CACHE_CHECK([for CFPreferencesCopyAppValue], |
|---|
| 22 |
gt_cv_func_CFPreferencesCopyAppValue, |
|---|
| 23 |
[gt_save_LIBS="$LIBS" |
|---|
| 24 |
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
|---|
| 25 |
AC_TRY_LINK([ |
|---|
| 26 |
[CFPreferencesCopyAppValue(NULL, NULL)], |
|---|
| 27 |
[gt_cv_func_CFPreferencesCopyAppValue=yes], |
|---|
| 28 |
[gt_cv_func_CFPreferencesCopyAppValue=no]) |
|---|
| 29 |
LIBS="$gt_save_LIBS"]) |
|---|
| 30 |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
|---|
| 31 |
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, |
|---|
| 32 |
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) |
|---|
| 33 |
fi |
|---|
| 34 |
|
|---|
| 35 |
AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, |
|---|
| 36 |
[gt_save_LIBS="$LIBS" |
|---|
| 37 |
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
|---|
| 38 |
AC_TRY_LINK([ |
|---|
| 39 |
[gt_cv_func_CFLocaleCopyCurrent=yes], |
|---|
| 40 |
[gt_cv_func_CFLocaleCopyCurrent=no]) |
|---|
| 41 |
LIBS="$gt_save_LIBS"]) |
|---|
| 42 |
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
|---|
| 43 |
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, |
|---|
| 44 |
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) |
|---|
| 45 |
fi |
|---|
| 46 |
INTL_MACOSX_LIBS= |
|---|
| 47 |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
|---|
| 48 |
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
|---|
| 49 |
fi |
|---|
| 50 |
AC_SUBST([INTL_MACOSX_LIBS]) |
|---|
| 51 |
]) |
|---|