diff --git a/intl/langprefs.c b/intl/langprefs.c index 20137b65ed..5436040f98 100644 --- a/intl/langprefs.c +++ b/intl/langprefs.c @@ -26,10 +26,10 @@ #if HAVE_CFPREFERENCESCOPYAPPVALUE # include -# include -# include -# include -# include +# include +# include +# include +# include extern void _nl_locale_name_canonicalize (char *name); #endif diff --git a/intl/localename.c b/intl/localename.c index b855ace348..7d661e490c 100644 --- a/intl/localename.c +++ b/intl/localename.c @@ -29,11 +29,11 @@ #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE # include -# include +# include # if HAVE_CFLOCALECOPYCURRENT -# include +# include # elif HAVE_CFPREFERENCESCOPYAPPVALUE -# include +# include # endif #endif diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 624a807859..f06f45c154 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -1,4 +1,3 @@ -# gettext.m4 serial 37 (gettext-0.14.4) dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -444,10 +443,6 @@ __fsetlocking]) gt_LC_MESSAGES fi - if test -n "$INTL_MACOSX_LIBS"; then - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" - fi - dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't @@ -488,15 +483,12 @@ AC_DEFUN([gt_INTL_MACOSX], dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], gt_cv_func_CFPreferencesCopyAppValue, - [gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" - gt_save_LIBS="$LIBS" - LIBS="$LIBS -framework CoreFoundation" - AC_TRY_LINK([#include ], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) - CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, @@ -504,14 +496,11 @@ AC_DEFUN([gt_INTL_MACOSX], fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, - [gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" - gt_save_LIBS="$LIBS" - LIBS="$LIBS -framework CoreFoundation" - AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) - CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, diff --git a/status.15x b/status.15x index 4930753210..7c1d43bb45 100644 --- a/status.15x +++ b/status.15x @@ -68,3 +68,5 @@ What's new * BUILD/INSTALLATION - Very light Makefile cleanup. + +- Fix the building on Mac OS X 10.5 of a binary compatible with OS X 10.4.