| OLD | NEW |
| 1 # po.m4 serial 13 (gettext-0.15) | 1 # po.m4 serial 15 (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 |
| 13 dnl gettext package package is covered by the GNU General Public License. | 13 dnl gettext package package is covered by the GNU General Public License. |
| 14 dnl They are *not* in the public domain. | 14 dnl They are *not* in the public domain. |
| 15 | 15 |
| 16 dnl Authors: | 16 dnl Authors: |
| 17 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | 17 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
| 18 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | 18 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
| 19 | 19 |
| 20 AC_PREREQ(2.50) | 20 AC_PREREQ(2.50) |
| 21 | 21 |
| 22 dnl Checks for all prerequisites of the po subdirectory. | 22 dnl Checks for all prerequisites of the po subdirectory. |
| 23 AC_DEFUN([AM_PO_SUBDIRS], | 23 AC_DEFUN([AM_PO_SUBDIRS], |
| 24 [ | 24 [ |
| 25 AC_REQUIRE([AC_PROG_MAKE_SET])dnl | 25 AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
| 26 AC_REQUIRE([AC_PROG_INSTALL])dnl | 26 AC_REQUIRE([AC_PROG_INSTALL])dnl |
| 27 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | 27 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake |
| 28 AC_REQUIRE([AM_NLS])dnl | 28 AC_REQUIRE([AM_NLS])dnl |
| 29 | 29 |
| 30 dnl Release version of the gettext macros. This is used to ensure that |
| 31 dnl the gettext macros and po/Makefile.in.in are in sync. |
| 32 AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) |
| 33 |
| 30 dnl Perform the following tests also if --disable-nls has been given, | 34 dnl Perform the following tests also if --disable-nls has been given, |
| 31 dnl because they are needed for "make dist" to work. | 35 dnl because they are needed for "make dist" to work. |
| 32 | 36 |
| 33 dnl Search for GNU msgfmt in the PATH. | 37 dnl Search for GNU msgfmt in the PATH. |
| 34 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. | 38 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. |
| 35 dnl The second test excludes FreeBSD msgfmt. | 39 dnl The second test excludes FreeBSD msgfmt. |
| 36 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | 40 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
| 37 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | 41 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && |
| 38 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/
dev/null; then exit 1; else exit 0; fi)], | 42 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/
dev/null; then exit 1; else exit 0; fi)], |
| 39 :) | 43 :) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 dnl Search for GNU msgmerge 0.11 or newer in the PATH. | 81 dnl Search for GNU msgmerge 0.11 or newer in the PATH. |
| 78 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, | 82 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, |
| 79 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1
], :) | 83 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1
], :) |
| 80 | 84 |
| 81 dnl Installation directories. | 85 dnl Installation directories. |
| 82 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we | 86 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we |
| 83 dnl have to define it here, so that it can be used in po/Makefile. | 87 dnl have to define it here, so that it can be used in po/Makefile. |
| 84 test -n "$localedir" || localedir='${datadir}/locale' | 88 test -n "$localedir" || localedir='${datadir}/locale' |
| 85 AC_SUBST([localedir]) | 89 AC_SUBST([localedir]) |
| 86 | 90 |
| 91 dnl Support for AM_XGETTEXT_OPTION. |
| 92 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 93 AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) |
| 94 |
| 87 AC_CONFIG_COMMANDS([po-directories], [[ | 95 AC_CONFIG_COMMANDS([po-directories], [[ |
| 88 for ac_file in $CONFIG_FILES; do | 96 for ac_file in $CONFIG_FILES; do |
| 89 # Support "outfile[:infile[:infile...]]" | 97 # Support "outfile[:infile[:infile...]]" |
| 90 case "$ac_file" in | 98 case "$ac_file" in |
| 91 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 99 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 92 esac | 100 esac |
| 93 # PO directories have a Makefile.in generated from Makefile.in.in. | 101 # PO directories have a Makefile.in generated from Makefile.in.in. |
| 94 case "$ac_file" in */Makefile.in) | 102 case "$ac_file" in */Makefile.in) |
| 95 # Adjust a relative srcdir. | 103 # Adjust a relative srcdir. |
| 96 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | 104 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 EOF | 427 EOF |
| 420 done | 428 done |
| 421 fi | 429 fi |
| 422 if test -n "$POMAKEFILEDEPS"; then | 430 if test -n "$POMAKEFILEDEPS"; then |
| 423 cat >> "$ac_file.tmp" <<EOF | 431 cat >> "$ac_file.tmp" <<EOF |
| 424 Makefile: $POMAKEFILEDEPS | 432 Makefile: $POMAKEFILEDEPS |
| 425 EOF | 433 EOF |
| 426 fi | 434 fi |
| 427 mv "$ac_file.tmp" "$ac_file" | 435 mv "$ac_file.tmp" "$ac_file" |
| 428 ]) | 436 ]) |
| 437 |
| 438 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION. |
| 439 AC_DEFUN([AM_XGETTEXT_OPTION_INIT], |
| 440 [ |
| 441 XGETTEXT_EXTRA_OPTIONS= |
| 442 ]) |
| 443 |
| 444 dnl Registers an option to be passed to xgettext in the po subdirectory. |
| 445 AC_DEFUN([AM_XGETTEXT_OPTION], |
| 446 [ |
| 447 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT]) |
| 448 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1" |
| 449 ]) |
| OLD | NEW |