1524
1524
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
1526
1526
AC_DEFUN([GNOME_DOC_INIT],
1527
[AC_REQUIRE([AC_PROG_LN_S])dnl
1528
1529
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
1530
1531
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
1592
1594
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1593
1595
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1595
AC_SUBST(INTLTOOL_DESKTOP_RULE)
1596
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
1597
AC_SUBST(INTLTOOL_KEYS_RULE)
1598
AC_SUBST(INTLTOOL_PROP_RULE)
1599
AC_SUBST(INTLTOOL_OAF_RULE)
1600
AC_SUBST(INTLTOOL_PONG_RULE)
1601
AC_SUBST(INTLTOOL_SERVER_RULE)
1602
AC_SUBST(INTLTOOL_SHEET_RULE)
1603
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
1604
AC_SUBST(INTLTOOL_UI_RULE)
1605
AC_SUBST(INTLTOOL_XAM_RULE)
1606
AC_SUBST(INTLTOOL_KBD_RULE)
1607
AC_SUBST(INTLTOOL_XML_RULE)
1608
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1609
AC_SUBST(INTLTOOL_CAVES_RULE)
1610
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
1611
AC_SUBST(INTLTOOL_THEME_RULE)
1612
AC_SUBST(INTLTOOL_SERVICE_RULE)
1613
AC_SUBST(INTLTOOL_POLICY_RULE)
1597
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1598
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1599
_IT_SUBST(INTLTOOL_KEYS_RULE)
1600
_IT_SUBST(INTLTOOL_PROP_RULE)
1601
_IT_SUBST(INTLTOOL_OAF_RULE)
1602
_IT_SUBST(INTLTOOL_PONG_RULE)
1603
_IT_SUBST(INTLTOOL_SERVER_RULE)
1604
_IT_SUBST(INTLTOOL_SHEET_RULE)
1605
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1606
_IT_SUBST(INTLTOOL_UI_RULE)
1607
_IT_SUBST(INTLTOOL_XAM_RULE)
1608
_IT_SUBST(INTLTOOL_KBD_RULE)
1609
_IT_SUBST(INTLTOOL_XML_RULE)
1610
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1611
_IT_SUBST(INTLTOOL_CAVES_RULE)
1612
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1613
_IT_SUBST(INTLTOOL_THEME_RULE)
1614
_IT_SUBST(INTLTOOL_SERVICE_RULE)
1615
_IT_SUBST(INTLTOOL_POLICY_RULE)
1615
1617
# Check the gettext tools to make sure they are GNU
1616
1618
AC_PATH_PROG(XGETTEXT, xgettext)
1617
1619
AC_PATH_PROG(MSGMERGE, msgmerge)
1618
1620
AC_PATH_PROG(MSGFMT, msgfmt)
1621
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1619
1622
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1620
1623
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1626
1629
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1629
AC_PATH_PROG(INTLTOOL_PERL, [perl])
1632
AC_PATH_PROG(INTLTOOL_PERL, perl)
1630
1633
if test -z "$INTLTOOL_PERL"; then
1631
AC_MSG_ERROR([perl not found; required for intltool])
1634
AC_MSG_ERROR([perl not found])
1633
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
1634
AC_MSG_ERROR([perl 5.x required for intltool])
1636
AC_MSG_CHECKING([for perl >= 5.8.1])
1637
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1638
if test $? -ne 0; then
1639
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1641
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
1642
AC_MSG_RESULT([$IT_PERL_VERSION])
1636
1644
if test "x$2" != "xno-xml"; then
1637
1645
AC_MSG_CHECKING([for XML::Parser])
1695
1706
'"s|^| $ac_top_srcdir/|" \
1696
1707
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1698
if test ! -f "$1/Makefile"; then
1699
AC_MSG_ERROR([$1/Makefile is not ready.])
1701
mv "$1/Makefile" "$1/Makefile.tmp"
1702
1709
[sed '/^POTFILES =/,/[^\\]$/ {
1703
1710
/^POTFILES =/!d
1706
' "$1/Makefile.tmp" >"$1/Makefile"]
1713
' "$1/Makefile.in" >"$1/Makefile"]
1707
1714
rm -f "$1/Makefile.tmp"
1708
1715
mv "$1/stamp-it.tmp" "$1/stamp-it"
1720
# _IT_SUBST(VARIABLE)
1721
# -------------------
1722
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1724
AC_DEFUN([_IT_SUBST],
1727
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1714
1731
# deprecated macros
1715
1732
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
8356
8373
AC_MSG_RESULT([$SED])
8376
# nls.m4 serial 3 (gettext-0.15)
8377
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8378
dnl This file is free software; the Free Software Foundation
8379
dnl gives unlimited permission to copy and/or distribute it,
8380
dnl with or without modifications, as long as this notice is preserved.
8382
dnl This file can can be used in projects which are not available under
8383
dnl the GNU General Public License or the GNU Library General Public
8384
dnl License but which still want to provide support for the GNU gettext
8386
dnl Please note that the actual code of the GNU gettext library is covered
8387
dnl by the GNU Library General Public License, and the rest of the GNU
8388
dnl gettext package package is covered by the GNU General Public License.
8389
dnl They are *not* in the public domain.
8392
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8393
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8399
AC_MSG_CHECKING([whether NLS is requested])
8400
dnl Default is enabled NLS
8402
[ --disable-nls do not use Native Language Support],
8403
USE_NLS=$enableval, USE_NLS=yes)
8404
AC_MSG_RESULT($USE_NLS)
8359
8408
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8361
8410
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.