1 | ## xml-i18n-tools.m4 - Configure xml-i18n-tools for the target system. -*-Shell-script-*- |
---|
2 | ## Copyright (C) 2001 Eazel, Inc. |
---|
3 | ## Author: Maciej Stachowiak <mjs@eazel.com> |
---|
4 | ## |
---|
5 | ## This program is free software; you can redistribute it and/or modify |
---|
6 | ## it under the terms of the GNU General Public License as published by |
---|
7 | ## the Free Software Foundation; either version 2 of the License, or |
---|
8 | ## (at your option) any later version. |
---|
9 | ## |
---|
10 | ## This program is distributed in the hope that it will be useful, but |
---|
11 | ## WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | ## General Public License for more details. |
---|
14 | ## |
---|
15 | ## You should have received a copy of the GNU General Public License |
---|
16 | ## along with this program; if not, write to the Free Software |
---|
17 | ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
18 | ## |
---|
19 | ## As a special exception to the GNU General Public License, if you |
---|
20 | ## distribute this file as part of a program that contains a |
---|
21 | ## configuration script generated by Autoconf, you may include it under |
---|
22 | ## the same distribution terms that you use for the rest of that program. |
---|
23 | |
---|
24 | # serial 1 AC_PROG_XML_I18N_TOOLS |
---|
25 | AC_DEFUN(AC_PROG_XML_I18N_TOOLS, |
---|
26 | [ |
---|
27 | # Always use our own xml-i18n-tools. |
---|
28 | |
---|
29 | XML_I18N_EXTRACT='$(top_srcdir)/xml-i18n-extract' |
---|
30 | AC_SUBST(XML_I18N_EXTRACT)dnl |
---|
31 | |
---|
32 | XML_I18N_MERGE='$(top_srcdir)/xml-i18n-merge' |
---|
33 | AC_SUBST(XML_I18N_MERGE)dnl |
---|
34 | |
---|
35 | XML_I18N_UPDATE='$(top_srcdir)/xml-i18n-update' |
---|
36 | AC_SUBST(XML_I18N_UPDATE)dnl |
---|
37 | |
---|
38 | dnl This is a hack - we use the expansion of AC_SUBST instead of |
---|
39 | dnl AC_SUBST itself to avoid automake putting |
---|
40 | dnl XML_I18N_MERGE_OAF_RULE = @XML_I18N_MERGE_OAF_RULE@ |
---|
41 | dnl in all the Makefile.in's |
---|
42 | XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_srcdir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
43 | $(top_srcdir)/xml-i18n-merge -o $(top_srcdir)/po $< [$]*.oaf' |
---|
44 | AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl |
---|
45 | s%@XML_I18N_MERGE_OAF_RULE@%[$]XML_I18N_MERGE_OAF_RULE%g |
---|
46 | AC_DIVERT_POP()dnl |
---|
47 | |
---|
48 | dnl This is a hack - we use the expansion of AC_SUBST instead of |
---|
49 | dnl AC_SUBST itself to avoid automake putting |
---|
50 | dnl XML_I18N_MERGE_KEYS_RULE = @XML_I18N_MERGE_KEYS_RULE@ |
---|
51 | dnl in all the Makefile.in's |
---|
52 | XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_srcdir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
53 | $(top_srcdir)/xml-i18n-merge -k $(top_srcdir)/po $< [$]*.keys' |
---|
54 | AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl |
---|
55 | s%@XML_I18N_MERGE_KEYS_RULE@%[$]XML_I18N_MERGE_KEYS_RULE%g |
---|
56 | AC_DIVERT_POP()dnl |
---|
57 | |
---|
58 | dnl This is a hack - we use the expansion of AC_SUBST instead of |
---|
59 | dnl AC_SUBST itself to avoid automake putting |
---|
60 | dnl XML_I18N_MERGE_DESKTOP_RULE = @XML_I18N_MERGE_DESKTOP_RULE@ |
---|
61 | dnl in all the Makefile.in's |
---|
62 | XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_srcdir)/xml-i18n-merge $(top_srcdir)/po/*.po\ |
---|
63 | $(top_srcdir)/xml-i18n-merge -d $(top_srcdir)/po $< [$]*.desktop' |
---|
64 | AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl |
---|
65 | s%@XML_I18N_MERGE_DESKTOP_RULE@%[$]XML_I18N_MERGE_DESKTOP_RULE%g |
---|
66 | AC_DIVERT_POP()dnl |
---|
67 | |
---|
68 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
69 | # clobbered by the next message. |
---|
70 | exec 5>>./config.log |
---|
71 | ]) |
---|
72 | |
---|
73 | dnl old names |
---|
74 | AC_DEFUN(AM_PROG_XML_I18N_TOOLS, [indir([AC_PROG_XML_I18N_TOOLS])])dnl |
---|