1051
1051
AC_SUBST([am__untar])
1052
1052
]) # _AM_PROG_TAR
1054
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
1055
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
1056
AC_DEFUN([GNOME_DOC_DEFINES],
1058
AC_ARG_WITH([help-dir],
1059
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
1060
[with_help_dir='${datadir}/gnome/help'])
1061
HELP_DIR="$with_help_dir"
1064
AC_ARG_WITH([omf-dir],
1065
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
1066
[with_omf_dir='${datadir}/omf'])
1067
OMF_DIR="$with_omf_dir"
1070
AC_ARG_WITH([help-formats],
1071
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
1072
[with_help_formats=''])
1073
DOC_USER_FORMATS="$with_help_formats"
1074
AC_SUBST(DOC_USER_FORMATS)
1076
AC_ARG_ENABLE([scrollkeeper],
1077
[AC_HELP_STRING([--disable-scrollkeeper],
1078
[do not make updates to the scrollkeeper database])],,
1079
enable_scrollkeeper=yes)
1080
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
1082
dnl disable scrollkeeper automatically for distcheck
1083
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
1084
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
1086
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
1089
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
1091
AC_DEFUN([GNOME_DOC_INIT],
1092
[AC_REQUIRE([AC_PROG_LN_S])dnl
1094
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
1096
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
1097
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
1098
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
1100
if test "$gdu_cv_have_gdu" = "yes"; then
1101
AC_MSG_RESULT([yes])
1102
ifelse([$2],,[:],[$2])
1105
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
1112
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1113
# serial 40 IT_PROG_INTLTOOL
1114
AC_DEFUN([IT_PROG_INTLTOOL], [
1115
AC_PREREQ([2.50])dnl
1116
AC_REQUIRE([AM_NLS])dnl
1118
case "$am__api_version" in
1120
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1126
if test -n "$1"; then
1127
AC_MSG_CHECKING([for intltool >= $1])
1129
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1130
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1131
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1133
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1134
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1135
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
1138
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
1139
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
1140
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
1141
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1142
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1145
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< [$]@'
1146
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@'
1147
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1148
INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< [$]@'
1149
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1150
INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< [$]@'
1151
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1152
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< [$]@'
1153
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@'
1154
INTLTOOL_UI_RULE='%.ui: %.ui.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 $< [$]@'
1155
INTLTOOL_XML_RULE='%.xml: %.xml.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 $< [$]@'
1156
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
1157
INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< [$]@'
1158
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1159
INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< [$]@'
1160
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1161
INTLTOOL_THEME_RULE='%.theme: %.theme.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 $< [$]@'
1162
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 $< [$]@'
1163
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 $< [$]@'
1165
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1166
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1167
_IT_SUBST(INTLTOOL_KEYS_RULE)
1168
_IT_SUBST(INTLTOOL_PROP_RULE)
1169
_IT_SUBST(INTLTOOL_OAF_RULE)
1170
_IT_SUBST(INTLTOOL_PONG_RULE)
1171
_IT_SUBST(INTLTOOL_SERVER_RULE)
1172
_IT_SUBST(INTLTOOL_SHEET_RULE)
1173
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1174
_IT_SUBST(INTLTOOL_UI_RULE)
1175
_IT_SUBST(INTLTOOL_XAM_RULE)
1176
_IT_SUBST(INTLTOOL_KBD_RULE)
1177
_IT_SUBST(INTLTOOL_XML_RULE)
1178
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1179
_IT_SUBST(INTLTOOL_CAVES_RULE)
1180
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1181
_IT_SUBST(INTLTOOL_THEME_RULE)
1182
_IT_SUBST(INTLTOOL_SERVICE_RULE)
1183
_IT_SUBST(INTLTOOL_POLICY_RULE)
1185
# Check the gettext tools to make sure they are GNU
1186
AC_PATH_PROG(XGETTEXT, xgettext)
1187
AC_PATH_PROG(MSGMERGE, msgmerge)
1188
AC_PATH_PROG(MSGFMT, msgfmt)
1189
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1190
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1191
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1193
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
1194
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
1195
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
1196
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1197
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1200
AC_PATH_PROG(INTLTOOL_PERL, perl)
1201
if test -z "$INTLTOOL_PERL"; then
1202
AC_MSG_ERROR([perl not found])
1204
AC_MSG_CHECKING([for perl >= 5.8.1])
1205
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1206
if test $? -ne 0; then
1207
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1209
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
1210
AC_MSG_RESULT([$IT_PERL_VERSION])
1212
if test "x$2" != "xno-xml"; then
1213
AC_MSG_CHECKING([for XML::Parser])
1214
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1217
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1221
# Substitute ALL_LINGUAS so we can use it in po/Makefile
1222
AC_SUBST(ALL_LINGUAS)
1224
# Set DATADIRNAME correctly if it is not set yet
1225
# (copied from glib-gettext.m4)
1226
if test -z "$DATADIRNAME"; then
1228
[AC_LANG_PROGRAM([[]],
1229
[[extern int _nl_msg_cat_cntr;
1230
return _nl_msg_cat_cntr]])],
1231
[DATADIRNAME=share],
1234
dnl On Solaris, if bind_textdomain_codeset is in libc,
1235
dnl GNU format message catalog is always supported,
1236
dnl since both are added to the libc all together.
1237
dnl Hence, we'd like to go with DATADIRNAME=share
1239
AC_CHECK_FUNC(bind_textdomain_codeset,
1240
[DATADIRNAME=share], [DATADIRNAME=lib])
1247
AC_SUBST(DATADIRNAME)
1254
# IT_PO_SUBDIR(DIRNAME)
1255
# ---------------------
1256
# All po subdirs have to be declared with this macro; the subdir "po" is
1257
# declared by IT_PROG_INTLTOOL.
1259
AC_DEFUN([IT_PO_SUBDIR],
1260
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1262
dnl The following CONFIG_COMMANDS should be executed at the very end
1263
dnl of config.status.
1264
AC_CONFIG_COMMANDS_PRE([
1265
AC_CONFIG_COMMANDS([$1/stamp-it], [
1266
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1267
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1269
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1274
'"s|^| $ac_top_srcdir/|" \
1275
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1277
[sed '/^POTFILES =/,/[^\\]$/ {
1281
' "$1/Makefile.in" >"$1/Makefile"]
1282
rm -f "$1/Makefile.tmp"
1283
mv "$1/stamp-it.tmp" "$1/stamp-it"
1288
# _IT_SUBST(VARIABLE)
1289
# -------------------
1290
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1292
AC_DEFUN([_IT_SUBST],
1295
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1300
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1301
# A hint is needed for aclocal from Automake <= 1.9.4:
1302
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1054
1305
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1056
1307
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
10271
10566
AC_SUBST(WARN_CXXFLAGS)
10274
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
10275
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
10276
AC_DEFUN([GNOME_DOC_DEFINES],
10278
AC_ARG_WITH([help-dir],
10279
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
10280
[with_help_dir='${datadir}/gnome/help'])
10281
HELP_DIR="$with_help_dir"
10284
AC_ARG_WITH([omf-dir],
10285
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
10286
[with_omf_dir='${datadir}/omf'])
10287
OMF_DIR="$with_omf_dir"
10290
AC_ARG_WITH([help-formats],
10291
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
10292
[with_help_formats=''])
10293
DOC_USER_FORMATS="$with_help_formats"
10294
AC_SUBST(DOC_USER_FORMATS)
10296
AC_ARG_ENABLE([scrollkeeper],
10297
[AC_HELP_STRING([--disable-scrollkeeper],
10298
[do not make updates to the scrollkeeper database])],,
10299
enable_scrollkeeper=yes)
10300
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
10302
dnl disable scrollkeeper automatically for distcheck
10303
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
10304
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
10306
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
10309
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
10311
AC_DEFUN([GNOME_DOC_INIT],
10312
[AC_REQUIRE([AC_PROG_LN_S])dnl
10314
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
10316
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
10317
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
10318
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
10320
if test "$gdu_cv_have_gdu" = "yes"; then
10321
AC_MSG_RESULT([yes])
10322
ifelse([$2],,[:],[$2])
10324
AC_MSG_RESULT([no])
10325
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
10331
10569
dnl GLIB_GSETTINGS
10332
10570
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
10333
10571
dnl the schema should be compiled
10475
10714
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
10479
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10480
# serial 40 IT_PROG_INTLTOOL
10481
AC_DEFUN([IT_PROG_INTLTOOL], [
10482
AC_PREREQ([2.50])dnl
10483
AC_REQUIRE([AM_NLS])dnl
10485
case "$am__api_version" in
10487
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10493
if test -n "$1"; then
10494
AC_MSG_CHECKING([for intltool >= $1])
10496
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10497
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10498
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10500
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10501
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10502
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
10505
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10506
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10507
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10508
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10509
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10512
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< [$]@'
10513
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@'
10514
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10515
INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< [$]@'
10516
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10517
INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< [$]@'
10518
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10519
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< [$]@'
10520
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@'
10521
INTLTOOL_UI_RULE='%.ui: %.ui.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 $< [$]@'
10522
INTLTOOL_XML_RULE='%.xml: %.xml.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 $< [$]@'
10523
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
10524
INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< [$]@'
10525
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10526
INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< [$]@'
10527
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10528
INTLTOOL_THEME_RULE='%.theme: %.theme.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 $< [$]@'
10529
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 $< [$]@'
10530
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 $< [$]@'
10532
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10533
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10534
_IT_SUBST(INTLTOOL_KEYS_RULE)
10535
_IT_SUBST(INTLTOOL_PROP_RULE)
10536
_IT_SUBST(INTLTOOL_OAF_RULE)
10537
_IT_SUBST(INTLTOOL_PONG_RULE)
10538
_IT_SUBST(INTLTOOL_SERVER_RULE)
10539
_IT_SUBST(INTLTOOL_SHEET_RULE)
10540
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10541
_IT_SUBST(INTLTOOL_UI_RULE)
10542
_IT_SUBST(INTLTOOL_XAM_RULE)
10543
_IT_SUBST(INTLTOOL_KBD_RULE)
10544
_IT_SUBST(INTLTOOL_XML_RULE)
10545
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10546
_IT_SUBST(INTLTOOL_CAVES_RULE)
10547
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10548
_IT_SUBST(INTLTOOL_THEME_RULE)
10549
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10550
_IT_SUBST(INTLTOOL_POLICY_RULE)
10552
# Check the gettext tools to make sure they are GNU
10553
AC_PATH_PROG(XGETTEXT, xgettext)
10554
AC_PATH_PROG(MSGMERGE, msgmerge)
10555
AC_PATH_PROG(MSGFMT, msgfmt)
10556
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10557
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10558
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10560
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10561
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10562
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10563
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10564
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10567
AC_PATH_PROG(INTLTOOL_PERL, perl)
10568
if test -z "$INTLTOOL_PERL"; then
10569
AC_MSG_ERROR([perl not found])
10571
AC_MSG_CHECKING([for perl >= 5.8.1])
10572
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10573
if test $? -ne 0; then
10574
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10576
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
10577
AC_MSG_RESULT([$IT_PERL_VERSION])
10579
if test "x$2" != "xno-xml"; then
10580
AC_MSG_CHECKING([for XML::Parser])
10581
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10582
AC_MSG_RESULT([ok])
10584
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10588
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10589
AC_SUBST(ALL_LINGUAS)
10591
# Set DATADIRNAME correctly if it is not set yet
10592
# (copied from glib-gettext.m4)
10593
if test -z "$DATADIRNAME"; then
10595
[AC_LANG_PROGRAM([[]],
10596
[[extern int _nl_msg_cat_cntr;
10597
return _nl_msg_cat_cntr]])],
10598
[DATADIRNAME=share],
10601
dnl On Solaris, if bind_textdomain_codeset is in libc,
10602
dnl GNU format message catalog is always supported,
10603
dnl since both are added to the libc all together.
10604
dnl Hence, we'd like to go with DATADIRNAME=share
10606
AC_CHECK_FUNC(bind_textdomain_codeset,
10607
[DATADIRNAME=share], [DATADIRNAME=lib])
10614
AC_SUBST(DATADIRNAME)
10621
# IT_PO_SUBDIR(DIRNAME)
10622
# ---------------------
10623
# All po subdirs have to be declared with this macro; the subdir "po" is
10624
# declared by IT_PROG_INTLTOOL.
10626
AC_DEFUN([IT_PO_SUBDIR],
10627
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10629
dnl The following CONFIG_COMMANDS should be executed at the very end
10630
dnl of config.status.
10631
AC_CONFIG_COMMANDS_PRE([
10632
AC_CONFIG_COMMANDS([$1/stamp-it], [
10633
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10634
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10636
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10641
'"s|^| $ac_top_srcdir/|" \
10642
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10644
[sed '/^POTFILES =/,/[^\\]$/ {
10648
' "$1/Makefile.in" >"$1/Makefile"]
10649
rm -f "$1/Makefile.tmp"
10650
mv "$1/stamp-it.tmp" "$1/stamp-it"
10655
# _IT_SUBST(VARIABLE)
10656
# -------------------
10657
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10659
AC_DEFUN([_IT_SUBST],
10662
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10666
# deprecated macros
10667
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10668
# A hint is needed for aclocal from Automake <= 1.9.4:
10669
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
10672
10717
dnl -*- mode: autoconf -*-
10673
10718
dnl Copyright 2009 Johan Dahlin