75
75
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 $< [$]@'
76
76
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 $< [$]@'
78
AC_SUBST(INTLTOOL_DESKTOP_RULE)
79
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
80
AC_SUBST(INTLTOOL_KEYS_RULE)
81
AC_SUBST(INTLTOOL_PROP_RULE)
82
AC_SUBST(INTLTOOL_OAF_RULE)
83
AC_SUBST(INTLTOOL_PONG_RULE)
84
AC_SUBST(INTLTOOL_SERVER_RULE)
85
AC_SUBST(INTLTOOL_SHEET_RULE)
86
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
87
AC_SUBST(INTLTOOL_UI_RULE)
88
AC_SUBST(INTLTOOL_XAM_RULE)
89
AC_SUBST(INTLTOOL_KBD_RULE)
90
AC_SUBST(INTLTOOL_XML_RULE)
91
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
92
AC_SUBST(INTLTOOL_CAVES_RULE)
93
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
94
AC_SUBST(INTLTOOL_THEME_RULE)
95
AC_SUBST(INTLTOOL_SERVICE_RULE)
96
AC_SUBST(INTLTOOL_POLICY_RULE)
78
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
79
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
80
_IT_SUBST(INTLTOOL_KEYS_RULE)
81
_IT_SUBST(INTLTOOL_PROP_RULE)
82
_IT_SUBST(INTLTOOL_OAF_RULE)
83
_IT_SUBST(INTLTOOL_PONG_RULE)
84
_IT_SUBST(INTLTOOL_SERVER_RULE)
85
_IT_SUBST(INTLTOOL_SHEET_RULE)
86
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
87
_IT_SUBST(INTLTOOL_UI_RULE)
88
_IT_SUBST(INTLTOOL_XAM_RULE)
89
_IT_SUBST(INTLTOOL_KBD_RULE)
90
_IT_SUBST(INTLTOOL_XML_RULE)
91
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
92
_IT_SUBST(INTLTOOL_CAVES_RULE)
93
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
94
_IT_SUBST(INTLTOOL_THEME_RULE)
95
_IT_SUBST(INTLTOOL_SERVICE_RULE)
96
_IT_SUBST(INTLTOOL_POLICY_RULE)
98
98
# Check the gettext tools to make sure they are GNU
99
99
AC_PATH_PROG(XGETTEXT, xgettext)
110
110
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
113
AC_PATH_PROG(INTLTOOL_PERL, [perl])
113
AC_PATH_PROG(INTLTOOL_PERL, perl)
114
114
if test -z "$INTLTOOL_PERL"; then
115
AC_MSG_ERROR([perl not found; required for intltool])
115
AC_MSG_ERROR([perl not found])
117
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
118
AC_MSG_ERROR([perl 5.x required for intltool])
117
AC_MSG_CHECKING([for perl >= 5.8.1])
118
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
119
if test $? -ne 0; then
120
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
122
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
123
AC_MSG_RESULT([$IT_PERL_VERSION])
120
125
if test "x$2" != "xno-xml"; then
121
126
AC_MSG_CHECKING([for XML::Parser])