1238
1238
AC_SUBST([am__untar])
1239
1239
]) # _AM_PROG_TAR
1241
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
1242
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
1243
AC_DEFUN([GNOME_DOC_DEFINES],
1245
AC_ARG_WITH([help-dir],
1246
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
1247
[with_help_dir='${datadir}/gnome/help'])
1248
HELP_DIR="$with_help_dir"
1251
AC_ARG_WITH([omf-dir],
1252
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
1253
[with_omf_dir='${datadir}/omf'])
1254
OMF_DIR="$with_omf_dir"
1257
AC_ARG_WITH([help-formats],
1258
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
1259
[with_help_formats=''])
1260
DOC_USER_FORMATS="$with_help_formats"
1261
AC_SUBST(DOC_USER_FORMATS)
1263
AC_ARG_ENABLE([scrollkeeper],
1264
[AC_HELP_STRING([--disable-scrollkeeper],
1265
[do not make updates to the scrollkeeper database])],,
1266
enable_scrollkeeper=yes)
1267
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
1269
dnl disable scrollkeeper automatically for distcheck
1270
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
1271
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
1273
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
1276
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
1278
AC_DEFUN([GNOME_DOC_INIT],
1279
[AC_REQUIRE([AC_PROG_LN_S])dnl
1281
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
1283
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
1284
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
1285
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
1287
if test "$gdu_cv_have_gdu" = "yes"; then
1288
AC_MSG_RESULT([yes])
1289
ifelse([$2],,[:],[$2])
1292
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
1299
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1300
# serial 40 IT_PROG_INTLTOOL
1301
AC_DEFUN([IT_PROG_INTLTOOL], [
1302
AC_PREREQ([2.50])dnl
1303
AC_REQUIRE([AM_NLS])dnl
1305
case "$am__api_version" in
1307
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
1313
if test -n "$1"; then
1314
AC_MSG_CHECKING([for intltool >= $1])
1316
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1317
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
1318
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1320
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1321
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1322
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
1325
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
1326
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
1327
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
1328
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
1329
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
1332
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 $< [$]@'
1333
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 $< [$]@'
1334
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 $< [$]@'
1335
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 $< [$]@'
1336
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1337
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 $< [$]@'
1338
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 $< [$]@'
1339
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 $< [$]@'
1340
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 $< [$]@'
1341
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 $< [$]@'
1342
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 $< [$]@'
1343
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
1344
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 $< [$]@'
1345
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 $< [$]@'
1346
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 $< [$]@'
1347
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 $< [$]@'
1348
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 $< [$]@'
1349
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 $< [$]@'
1350
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 $< [$]@'
1352
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
1353
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
1354
_IT_SUBST(INTLTOOL_KEYS_RULE)
1355
_IT_SUBST(INTLTOOL_PROP_RULE)
1356
_IT_SUBST(INTLTOOL_OAF_RULE)
1357
_IT_SUBST(INTLTOOL_PONG_RULE)
1358
_IT_SUBST(INTLTOOL_SERVER_RULE)
1359
_IT_SUBST(INTLTOOL_SHEET_RULE)
1360
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
1361
_IT_SUBST(INTLTOOL_UI_RULE)
1362
_IT_SUBST(INTLTOOL_XAM_RULE)
1363
_IT_SUBST(INTLTOOL_KBD_RULE)
1364
_IT_SUBST(INTLTOOL_XML_RULE)
1365
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1366
_IT_SUBST(INTLTOOL_CAVES_RULE)
1367
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
1368
_IT_SUBST(INTLTOOL_THEME_RULE)
1369
_IT_SUBST(INTLTOOL_SERVICE_RULE)
1370
_IT_SUBST(INTLTOOL_POLICY_RULE)
1372
# Check the gettext tools to make sure they are GNU
1373
AC_PATH_PROG(XGETTEXT, xgettext)
1374
AC_PATH_PROG(MSGMERGE, msgmerge)
1375
AC_PATH_PROG(MSGFMT, msgfmt)
1376
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1377
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
1378
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1380
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
1381
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
1382
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
1383
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
1384
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
1387
AC_PATH_PROG(INTLTOOL_PERL, perl)
1388
if test -z "$INTLTOOL_PERL"; then
1389
AC_MSG_ERROR([perl not found])
1391
AC_MSG_CHECKING([for perl >= 5.8.1])
1392
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
1393
if test $? -ne 0; then
1394
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
1396
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
1397
AC_MSG_RESULT([$IT_PERL_VERSION])
1399
if test "x$2" != "xno-xml"; then
1400
AC_MSG_CHECKING([for XML::Parser])
1401
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1404
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1408
# Substitute ALL_LINGUAS so we can use it in po/Makefile
1409
AC_SUBST(ALL_LINGUAS)
1411
# Set DATADIRNAME correctly if it is not set yet
1412
# (copied from glib-gettext.m4)
1413
if test -z "$DATADIRNAME"; then
1415
[AC_LANG_PROGRAM([[]],
1416
[[extern int _nl_msg_cat_cntr;
1417
return _nl_msg_cat_cntr]])],
1418
[DATADIRNAME=share],
1421
dnl On Solaris, if bind_textdomain_codeset is in libc,
1422
dnl GNU format message catalog is always supported,
1423
dnl since both are added to the libc all together.
1424
dnl Hence, we'd like to go with DATADIRNAME=share
1426
AC_CHECK_FUNC(bind_textdomain_codeset,
1427
[DATADIRNAME=share], [DATADIRNAME=lib])
1434
AC_SUBST(DATADIRNAME)
1441
# IT_PO_SUBDIR(DIRNAME)
1442
# ---------------------
1443
# All po subdirs have to be declared with this macro; the subdir "po" is
1444
# declared by IT_PROG_INTLTOOL.
1446
AC_DEFUN([IT_PO_SUBDIR],
1447
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1449
dnl The following CONFIG_COMMANDS should be executed at the very end
1450
dnl of config.status.
1451
AC_CONFIG_COMMANDS_PRE([
1452
AC_CONFIG_COMMANDS([$1/stamp-it], [
1453
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1454
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1456
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1461
'"s|^| $ac_top_srcdir/|" \
1462
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1464
[sed '/^POTFILES =/,/[^\\]$/ {
1468
' "$1/Makefile.in" >"$1/Makefile"]
1469
rm -f "$1/Makefile.tmp"
1470
mv "$1/stamp-it.tmp" "$1/stamp-it"
1475
# _IT_SUBST(VARIABLE)
1476
# -------------------
1477
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1479
AC_DEFUN([_IT_SUBST],
1482
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1487
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1488
# A hint is needed for aclocal from Automake <= 1.9.4:
1489
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1492
1241
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1494
1243
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
10553
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
10554
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
10555
AC_DEFUN([GNOME_DOC_DEFINES],
10557
AC_ARG_WITH([help-dir],
10558
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
10559
[with_help_dir='${datadir}/gnome/help'])
10560
HELP_DIR="$with_help_dir"
10563
AC_ARG_WITH([omf-dir],
10564
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
10565
[with_omf_dir='${datadir}/omf'])
10566
OMF_DIR="$with_omf_dir"
10569
AC_ARG_WITH([help-formats],
10570
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
10571
[with_help_formats=''])
10572
DOC_USER_FORMATS="$with_help_formats"
10573
AC_SUBST(DOC_USER_FORMATS)
10575
AC_ARG_ENABLE([scrollkeeper],
10576
[AC_HELP_STRING([--disable-scrollkeeper],
10577
[do not make updates to the scrollkeeper database])],,
10578
enable_scrollkeeper=yes)
10579
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
10581
dnl disable scrollkeeper automatically for distcheck
10582
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
10583
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
10585
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
10588
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
10590
AC_DEFUN([GNOME_DOC_INIT],
10591
[AC_REQUIRE([AC_PROG_LN_S])dnl
10593
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
10595
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
10596
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
10597
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
10599
if test "$gdu_cv_have_gdu" = "yes"; then
10600
AC_MSG_RESULT([yes])
10601
ifelse([$2],,[:],[$2])
10603
AC_MSG_RESULT([no])
10604
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
10611
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10612
# serial 40 IT_PROG_INTLTOOL
10613
AC_DEFUN([IT_PROG_INTLTOOL], [
10614
AC_PREREQ([2.50])dnl
10615
AC_REQUIRE([AM_NLS])dnl
10617
case "$am__api_version" in
10619
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10625
if test -n "$1"; then
10626
AC_MSG_CHECKING([for intltool >= $1])
10628
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10629
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10630
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10632
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10633
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10634
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
10637
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10638
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10639
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10640
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10641
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10644
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 $< [$]@'
10645
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 $< [$]@'
10646
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 $< [$]@'
10647
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 $< [$]@'
10648
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10649
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 $< [$]@'
10650
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 $< [$]@'
10651
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 $< [$]@'
10652
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 $< [$]@'
10653
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 $< [$]@'
10654
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 $< [$]@'
10655
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
10656
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 $< [$]@'
10657
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 $< [$]@'
10658
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 $< [$]@'
10659
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 $< [$]@'
10660
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 $< [$]@'
10661
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 $< [$]@'
10662
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 $< [$]@'
10664
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10665
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10666
_IT_SUBST(INTLTOOL_KEYS_RULE)
10667
_IT_SUBST(INTLTOOL_PROP_RULE)
10668
_IT_SUBST(INTLTOOL_OAF_RULE)
10669
_IT_SUBST(INTLTOOL_PONG_RULE)
10670
_IT_SUBST(INTLTOOL_SERVER_RULE)
10671
_IT_SUBST(INTLTOOL_SHEET_RULE)
10672
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10673
_IT_SUBST(INTLTOOL_UI_RULE)
10674
_IT_SUBST(INTLTOOL_XAM_RULE)
10675
_IT_SUBST(INTLTOOL_KBD_RULE)
10676
_IT_SUBST(INTLTOOL_XML_RULE)
10677
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10678
_IT_SUBST(INTLTOOL_CAVES_RULE)
10679
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10680
_IT_SUBST(INTLTOOL_THEME_RULE)
10681
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10682
_IT_SUBST(INTLTOOL_POLICY_RULE)
10684
# Check the gettext tools to make sure they are GNU
10685
AC_PATH_PROG(XGETTEXT, xgettext)
10686
AC_PATH_PROG(MSGMERGE, msgmerge)
10687
AC_PATH_PROG(MSGFMT, msgfmt)
10688
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10689
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10690
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10692
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10693
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10694
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10695
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10696
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10699
AC_PATH_PROG(INTLTOOL_PERL, perl)
10700
if test -z "$INTLTOOL_PERL"; then
10701
AC_MSG_ERROR([perl not found])
10703
AC_MSG_CHECKING([for perl >= 5.8.1])
10704
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10705
if test $? -ne 0; then
10706
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10708
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
10709
AC_MSG_RESULT([$IT_PERL_VERSION])
10711
if test "x$2" != "xno-xml"; then
10712
AC_MSG_CHECKING([for XML::Parser])
10713
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10714
AC_MSG_RESULT([ok])
10716
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10720
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10721
AC_SUBST(ALL_LINGUAS)
10723
# Set DATADIRNAME correctly if it is not set yet
10724
# (copied from glib-gettext.m4)
10725
if test -z "$DATADIRNAME"; then
10727
[AC_LANG_PROGRAM([[]],
10728
[[extern int _nl_msg_cat_cntr;
10729
return _nl_msg_cat_cntr]])],
10730
[DATADIRNAME=share],
10733
dnl On Solaris, if bind_textdomain_codeset is in libc,
10734
dnl GNU format message catalog is always supported,
10735
dnl since both are added to the libc all together.
10736
dnl Hence, we'd like to go with DATADIRNAME=share
10738
AC_CHECK_FUNC(bind_textdomain_codeset,
10739
[DATADIRNAME=share], [DATADIRNAME=lib])
10746
AC_SUBST(DATADIRNAME)
10753
# IT_PO_SUBDIR(DIRNAME)
10754
# ---------------------
10755
# All po subdirs have to be declared with this macro; the subdir "po" is
10756
# declared by IT_PROG_INTLTOOL.
10758
AC_DEFUN([IT_PO_SUBDIR],
10759
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10761
dnl The following CONFIG_COMMANDS should be executed at the very end
10762
dnl of config.status.
10763
AC_CONFIG_COMMANDS_PRE([
10764
AC_CONFIG_COMMANDS([$1/stamp-it], [
10765
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10766
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10768
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10773
'"s|^| $ac_top_srcdir/|" \
10774
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10776
[sed '/^POTFILES =/,/[^\\]$/ {
10780
' "$1/Makefile.in" >"$1/Makefile"]
10781
rm -f "$1/Makefile.tmp"
10782
mv "$1/stamp-it.tmp" "$1/stamp-it"
10787
# _IT_SUBST(VARIABLE)
10788
# -------------------
10789
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10791
AC_DEFUN([_IT_SUBST],
10794
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10798
# deprecated macros
10799
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10800
# A hint is needed for aclocal from Automake <= 1.9.4:
10801
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
10804
10804
dnl -*- mode: autoconf -*-
10805
10805
dnl Copyright 2009 Johan Dahlin