| OLD | NEW |
| 1 # gettext.m4 serial 59 (gettext-0.16.1) | 1 # gettext.m4 serial 60 (gettext-0.17) |
| 2 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. | 2 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. |
| 3 dnl This file is free software; the Free Software Foundation | 3 dnl This file is free software; the Free Software Foundation |
| 4 dnl gives unlimited permission to copy and/or distribute it, | 4 dnl gives unlimited permission to copy and/or distribute it, |
| 5 dnl with or without modifications, as long as this notice is preserved. | 5 dnl with or without modifications, as long as this notice is preserved. |
| 6 dnl | 6 dnl |
| 7 dnl This file can can be used in projects which are not available under | 7 dnl This file can can be used in projects which are not available under |
| 8 dnl the GNU General Public License or the GNU Library General Public | 8 dnl the GNU General Public License or the GNU Library General Public |
| 9 dnl License but which still want to provide support for the GNU gettext | 9 dnl License but which still want to provide support for the GNU gettext |
| 10 dnl functionality. | 10 dnl functionality. |
| 11 dnl Please note that the actual code of the GNU gettext library is covered | 11 dnl Please note that the actual code of the GNU gettext library is covered |
| 12 dnl by the GNU Library General Public License, and the rest of the GNU | 12 dnl by the GNU Library General Public License, and the rest of the GNU |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 INTLLIBS="$LIBINTL" | 355 INTLLIBS="$LIBINTL" |
| 356 AC_SUBST(INTLLIBS) | 356 AC_SUBST(INTLLIBS) |
| 357 | 357 |
| 358 dnl Make all documented variables known to autoconf. | 358 dnl Make all documented variables known to autoconf. |
| 359 AC_SUBST(LIBINTL) | 359 AC_SUBST(LIBINTL) |
| 360 AC_SUBST(LTLIBINTL) | 360 AC_SUBST(LTLIBINTL) |
| 361 AC_SUBST(POSUB) | 361 AC_SUBST(POSUB) |
| 362 ]) | 362 ]) |
| 363 | 363 |
| 364 | 364 |
| 365 dnl Checks for special options needed on MacOS X. | |
| 366 dnl Defines INTL_MACOSX_LIBS. | |
| 367 AC_DEFUN([gt_INTL_MACOSX], | |
| 368 [ | |
| 369 dnl Check for API introduced in MacOS X 10.2. | |
| 370 AC_CACHE_CHECK([for CFPreferencesCopyAppValue], | |
| 371 gt_cv_func_CFPreferencesCopyAppValue, | |
| 372 [gt_save_LIBS="$LIBS" | |
| 373 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
| 374 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], | |
| 375 [CFPreferencesCopyAppValue(NULL, NULL)], | |
| 376 [gt_cv_func_CFPreferencesCopyAppValue=yes], | |
| 377 [gt_cv_func_CFPreferencesCopyAppValue=no]) | |
| 378 LIBS="$gt_save_LIBS"]) | |
| 379 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
| 380 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, | |
| 381 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
the CoreFoundation framework.]) | |
| 382 fi | |
| 383 dnl Check for API introduced in MacOS X 10.3. | |
| 384 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, | |
| 385 [gt_save_LIBS="$LIBS" | |
| 386 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
| 387 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();
], | |
| 388 [gt_cv_func_CFLocaleCopyCurrent=yes], | |
| 389 [gt_cv_func_CFLocaleCopyCurrent=no]) | |
| 390 LIBS="$gt_save_LIBS"]) | |
| 391 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
| 392 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, | |
| 393 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the C
oreFoundation framework.]) | |
| 394 fi | |
| 395 INTL_MACOSX_LIBS= | |
| 396 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLoca
leCopyCurrent = yes; then | |
| 397 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
| 398 fi | |
| 399 AC_SUBST([INTL_MACOSX_LIBS]) | |
| 400 ]) | |
| 401 | |
| 402 | |
| 403 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. | 365 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. |
| 404 m4_define([gt_NEEDS_INIT], | 366 m4_define([gt_NEEDS_INIT], |
| 405 [ | 367 [ |
| 406 m4_divert_text([DEFAULTS], [gt_needs=]) | 368 m4_divert_text([DEFAULTS], [gt_needs=]) |
| 407 m4_define([gt_NEEDS_INIT], []) | 369 m4_define([gt_NEEDS_INIT], []) |
| 408 ]) | 370 ]) |
| 409 | 371 |
| 410 | 372 |
| 411 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) | 373 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) |
| 412 AC_DEFUN([AM_GNU_GETTEXT_NEED], | 374 AC_DEFUN([AM_GNU_GETTEXT_NEED], |
| 413 [ | 375 [ |
| 414 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) | 376 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) |
| 415 ]) | 377 ]) |
| 416 | 378 |
| 417 | 379 |
| 418 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) | 380 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) |
| 419 AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) | 381 AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
| OLD | NEW |