506
506
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 $< [$]@'
507
507
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 $< [$]@'
509
AC_SUBST(INTLTOOL_DESKTOP_RULE)
510
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
511
AC_SUBST(INTLTOOL_KEYS_RULE)
512
AC_SUBST(INTLTOOL_PROP_RULE)
513
AC_SUBST(INTLTOOL_OAF_RULE)
514
AC_SUBST(INTLTOOL_PONG_RULE)
515
AC_SUBST(INTLTOOL_SERVER_RULE)
516
AC_SUBST(INTLTOOL_SHEET_RULE)
517
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
518
AC_SUBST(INTLTOOL_UI_RULE)
519
AC_SUBST(INTLTOOL_XAM_RULE)
520
AC_SUBST(INTLTOOL_KBD_RULE)
521
AC_SUBST(INTLTOOL_XML_RULE)
522
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
523
AC_SUBST(INTLTOOL_CAVES_RULE)
524
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
525
AC_SUBST(INTLTOOL_THEME_RULE)
526
AC_SUBST(INTLTOOL_SERVICE_RULE)
527
AC_SUBST(INTLTOOL_POLICY_RULE)
509
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
510
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
511
_IT_SUBST(INTLTOOL_KEYS_RULE)
512
_IT_SUBST(INTLTOOL_PROP_RULE)
513
_IT_SUBST(INTLTOOL_OAF_RULE)
514
_IT_SUBST(INTLTOOL_PONG_RULE)
515
_IT_SUBST(INTLTOOL_SERVER_RULE)
516
_IT_SUBST(INTLTOOL_SHEET_RULE)
517
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
518
_IT_SUBST(INTLTOOL_UI_RULE)
519
_IT_SUBST(INTLTOOL_XAM_RULE)
520
_IT_SUBST(INTLTOOL_KBD_RULE)
521
_IT_SUBST(INTLTOOL_XML_RULE)
522
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
523
_IT_SUBST(INTLTOOL_CAVES_RULE)
524
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
525
_IT_SUBST(INTLTOOL_THEME_RULE)
526
_IT_SUBST(INTLTOOL_SERVICE_RULE)
527
_IT_SUBST(INTLTOOL_POLICY_RULE)
529
529
# Check the gettext tools to make sure they are GNU
530
530
AC_PATH_PROG(XGETTEXT, xgettext)
541
541
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
544
AC_PATH_PROG(INTLTOOL_PERL, [perl])
544
AC_PATH_PROG(INTLTOOL_PERL, perl)
545
545
if test -z "$INTLTOOL_PERL"; then
546
AC_MSG_ERROR([perl not found; required for intltool])
546
AC_MSG_ERROR([perl not found])
548
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
549
AC_MSG_ERROR([perl 5.x required for intltool])
548
AC_MSG_CHECKING([for perl >= 5.8.1])
549
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
550
if test $? -ne 0; then
551
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
553
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
554
AC_MSG_RESULT([$IT_PERL_VERSION])
551
556
if test "x$2" != "xno-xml"; then
552
557
AC_MSG_CHECKING([for XML::Parser])
1105
1121
# Generate code to set up dependency tracking. -*- Autoconf -*-
1107
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1123
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1108
1124
# Free Software Foundation, Inc.
1110
1126
# This file is free software; the Free Software Foundation
1111
1127
# gives unlimited permission to copy and/or distribute it,
1112
1128
# with or without modifications, as long as this notice is preserved.
1116
1132
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1117
1133
# ------------------------------
1118
1134
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1119
[for mf in $CONFIG_FILES; do
1120
# Strip MF so we end up with the name of the file.
1121
mf=`echo "$mf" | sed -e 's/:.*$//'`
1122
# Check whether this is an Automake generated Makefile or not.
1123
# We used to match only the files named `Makefile.in', but
1124
# some people rename them; so instead we look at the file content.
1125
# Grep'ing the first line is not enough: some people post-process
1126
# each Makefile.in and add a new line on top of each file to say so.
1127
# Grep'ing the whole file is not good either: AIX grep has a line
1128
# limit of 2048, but all sed's we know have understand at least 4000.
1129
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1130
dirpart=`AS_DIRNAME("$mf")`
1134
# Extract the definition of DEPDIR, am__include, and am__quote
1135
# from the Makefile without running `make'.
1136
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1137
test -z "$DEPDIR" && continue
1138
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1139
test -z "am__include" && continue
1140
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1141
# When using ansi2knr, U may be empty or an underscore; expand it
1142
U=`sed -n 's/^U = //p' < "$mf"`
1143
# Find all dependency output files, they are included files with
1144
# $(DEPDIR) in their names. We invoke sed twice because it is the
1145
# simplest approach to changing $(DEPDIR) to its actual value in the
1147
for file in `sed -n "
1148
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1149
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1150
# Make sure the directory exists.
1151
test -f "$dirpart/$file" && continue
1152
fdir=`AS_DIRNAME(["$file"])`
1153
AS_MKDIR_P([$dirpart/$fdir])
1154
# echo "creating $dirpart/$file"
1155
echo '# dummy' > "$dirpart/$file"
1136
# Autoconf 2.62 quotes --file arguments for eval, but not when files
1137
# are listed without --file. Let's play safe and only enable the eval
1138
# if we detect the quoting.
1139
case $CONFIG_FILES in
1140
*\'*) eval set x "$CONFIG_FILES" ;;
1141
*) set x $CONFIG_FILES ;;
1146
# Strip MF so we end up with the name of the file.
1147
mf=`echo "$mf" | sed -e 's/:.*$//'`
1148
# Check whether this is an Automake generated Makefile or not.
1149
# We used to match only the files named `Makefile.in', but
1150
# some people rename them; so instead we look at the file content.
1151
# Grep'ing the first line is not enough: some people post-process
1152
# each Makefile.in and add a new line on top of each file to say so.
1153
# Grep'ing the whole file is not good either: AIX grep has a line
1154
# limit of 2048, but all sed's we know have understand at least 4000.
1155
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1156
dirpart=`AS_DIRNAME("$mf")`
1160
# Extract the definition of DEPDIR, am__include, and am__quote
1161
# from the Makefile without running `make'.
1162
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1163
test -z "$DEPDIR" && continue
1164
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1165
test -z "am__include" && continue
1166
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1167
# When using ansi2knr, U may be empty or an underscore; expand it
1168
U=`sed -n 's/^U = //p' < "$mf"`
1169
# Find all dependency output files, they are included files with
1170
# $(DEPDIR) in their names. We invoke sed twice because it is the
1171
# simplest approach to changing $(DEPDIR) to its actual value in the
1173
for file in `sed -n "
1174
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1175
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1176
# Make sure the directory exists.
1177
test -f "$dirpart/$file" && continue
1178
fdir=`AS_DIRNAME(["$file"])`
1179
AS_MKDIR_P([$dirpart/$fdir])
1180
# echo "creating $dirpart/$file"
1181
echo '# dummy' > "$dirpart/$file"
1158
1185
])# _AM_OUTPUT_DEPENDENCY_COMMANDS