8417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8418
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8419
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8420
$as_echo_n "(cached) " >&6
8422
gt_save_LIBS="$LIBS"
8423
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425
/* end confdefs.h. */
8426
#include <CoreFoundation/CFPreferences.h>
8430
CFPreferencesCopyAppValue(NULL, NULL)
8435
if ac_fn_c_try_link "$LINENO"; then :
8436
gt_cv_func_CFPreferencesCopyAppValue=yes
8438
gt_cv_func_CFPreferencesCopyAppValue=no
8440
rm -f core conftest.err conftest.$ac_objext \
8441
conftest$ac_exeext conftest.$ac_ext
8442
LIBS="$gt_save_LIBS"
8444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8445
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8446
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8448
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8452
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8453
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8454
$as_echo_n "(cached) " >&6
8456
gt_save_LIBS="$LIBS"
8457
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459
/* end confdefs.h. */
8460
#include <CoreFoundation/CFLocale.h>
8464
CFLocaleCopyCurrent();
8469
if ac_fn_c_try_link "$LINENO"; then :
8470
gt_cv_func_CFLocaleCopyCurrent=yes
8472
gt_cv_func_CFLocaleCopyCurrent=no
8474
rm -f core conftest.err conftest.$ac_objext \
8475
conftest$ac_exeext conftest.$ac_ext
8476
LIBS="$gt_save_LIBS"
8478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8479
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8480
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8482
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8486
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8487
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"