annotate aclocal.m4 @ 276:23034db7dd8a 2.5

fixed expression 'slots' to not store null on a pass 1 store
author lost
date Mon, 31 Aug 2009 08:39:36 +0000
parents d5392bb5da3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
272
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1 # generated automatically by aclocal 1.10.2 -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
2
d5392bb5da3c Added generated files
lost
parents:
diff changeset
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
5 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
6 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
7 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
8
d5392bb5da3c Added generated files
lost
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
d5392bb5da3c Added generated files
lost
parents:
diff changeset
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
12 # PARTICULAR PURPOSE.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
13
d5392bb5da3c Added generated files
lost
parents:
diff changeset
14 m4_ifndef([AC_AUTOCONF_VERSION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
17 [m4_warning([this file was generated for autoconf 2.63.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
18 You have another version of autoconf. It may work, but is not guaranteed to.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
19 If you have problems, you may need to regenerate the build system entirely.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
21
d5392bb5da3c Added generated files
lost
parents:
diff changeset
22 # po.m4 serial 15 (gettext-0.17)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
23 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
24 dnl This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
25 dnl gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
26 dnl with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
27 dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
28 dnl This file can can be used in projects which are not available under
d5392bb5da3c Added generated files
lost
parents:
diff changeset
29 dnl the GNU General Public License or the GNU Library General Public
d5392bb5da3c Added generated files
lost
parents:
diff changeset
30 dnl License but which still want to provide support for the GNU gettext
d5392bb5da3c Added generated files
lost
parents:
diff changeset
31 dnl functionality.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
32 dnl Please note that the actual code of the GNU gettext library is covered
d5392bb5da3c Added generated files
lost
parents:
diff changeset
33 dnl by the GNU Library General Public License, and the rest of the GNU
d5392bb5da3c Added generated files
lost
parents:
diff changeset
34 dnl gettext package package is covered by the GNU General Public License.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
35 dnl They are *not* in the public domain.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
36
d5392bb5da3c Added generated files
lost
parents:
diff changeset
37 dnl Authors:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
38 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
39 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
40
d5392bb5da3c Added generated files
lost
parents:
diff changeset
41 AC_PREREQ(2.50)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
42
d5392bb5da3c Added generated files
lost
parents:
diff changeset
43 dnl Checks for all prerequisites of the po subdirectory.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
44 AC_DEFUN([AM_PO_SUBDIRS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
45 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
46 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
47 AC_REQUIRE([AC_PROG_INSTALL])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
48 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
d5392bb5da3c Added generated files
lost
parents:
diff changeset
49 AC_REQUIRE([AM_NLS])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
50
d5392bb5da3c Added generated files
lost
parents:
diff changeset
51 dnl Release version of the gettext macros. This is used to ensure that
d5392bb5da3c Added generated files
lost
parents:
diff changeset
52 dnl the gettext macros and po/Makefile.in.in are in sync.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
53 AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
54
d5392bb5da3c Added generated files
lost
parents:
diff changeset
55 dnl Perform the following tests also if --disable-nls has been given,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
56 dnl because they are needed for "make dist" to work.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
57
d5392bb5da3c Added generated files
lost
parents:
diff changeset
58 dnl Search for GNU msgfmt in the PATH.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
59 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
60 dnl The second test excludes FreeBSD msgfmt.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
61 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
62 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
d5392bb5da3c Added generated files
lost
parents:
diff changeset
63 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
64 :)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
65 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
66
d5392bb5da3c Added generated files
lost
parents:
diff changeset
67 dnl Test whether it is GNU msgfmt >= 0.15.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
68 changequote(,)dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
69 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
70 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
71 *) MSGFMT_015=$MSGFMT ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
72 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
73 changequote([,])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
74 AC_SUBST([MSGFMT_015])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
75 changequote(,)dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
76 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
77 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
78 *) GMSGFMT_015=$GMSGFMT ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
79 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
80 changequote([,])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
81 AC_SUBST([GMSGFMT_015])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
82
d5392bb5da3c Added generated files
lost
parents:
diff changeset
83 dnl Search for GNU xgettext 0.12 or newer in the PATH.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
84 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
85 dnl The second test excludes FreeBSD xgettext.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
86 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
87 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
d5392bb5da3c Added generated files
lost
parents:
diff changeset
88 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
89 :)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
90 dnl Remove leftover from FreeBSD xgettext call.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
91 rm -f messages.po
d5392bb5da3c Added generated files
lost
parents:
diff changeset
92
d5392bb5da3c Added generated files
lost
parents:
diff changeset
93 dnl Test whether it is GNU xgettext >= 0.15.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
94 changequote(,)dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
95 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
96 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
97 *) XGETTEXT_015=$XGETTEXT ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
98 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
99 changequote([,])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
100 AC_SUBST([XGETTEXT_015])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
101
d5392bb5da3c Added generated files
lost
parents:
diff changeset
102 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
103 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
104 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
105
d5392bb5da3c Added generated files
lost
parents:
diff changeset
106 dnl Installation directories.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
107 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
d5392bb5da3c Added generated files
lost
parents:
diff changeset
108 dnl have to define it here, so that it can be used in po/Makefile.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
109 test -n "$localedir" || localedir='${datadir}/locale'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
110 AC_SUBST([localedir])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
111
d5392bb5da3c Added generated files
lost
parents:
diff changeset
112 dnl Support for AM_XGETTEXT_OPTION.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
113 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
114 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
115
d5392bb5da3c Added generated files
lost
parents:
diff changeset
116 AC_CONFIG_COMMANDS([po-directories], [[
d5392bb5da3c Added generated files
lost
parents:
diff changeset
117 for ac_file in $CONFIG_FILES; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
118 # Support "outfile[:infile[:infile...]]"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
119 case "$ac_file" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
120 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
121 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
122 # PO directories have a Makefile.in generated from Makefile.in.in.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
123 case "$ac_file" in */Makefile.in)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
124 # Adjust a relative srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
125 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
126 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
127 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
128 # In autoconf-2.13 it is called $ac_given_srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
129 # In autoconf-2.50 it is called $srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
130 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
131 case "$ac_given_srcdir" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
132 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
133 /*) top_srcdir="$ac_given_srcdir" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
134 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
135 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
136 # Treat a directory as a PO directory if and only if it has a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
137 # POTFILES.in file. This allows packages to have multiple PO
d5392bb5da3c Added generated files
lost
parents:
diff changeset
138 # directories under different names or in different locations.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
139 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
140 rm -f "$ac_dir/POTFILES"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
141 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
142 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
143 POMAKEFILEDEPS="POTFILES.in"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
144 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
d5392bb5da3c Added generated files
lost
parents:
diff changeset
145 # on $ac_dir but don't depend on user-specified configuration
d5392bb5da3c Added generated files
lost
parents:
diff changeset
146 # parameters.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
147 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
148 # The LINGUAS file contains the set of available languages.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
149 if test -n "$OBSOLETE_ALL_LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
150 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
151 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
152 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
153 # Hide the ALL_LINGUAS assigment from automake < 1.5.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
154 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
155 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
156 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
157 # The set of available languages was given in configure.in.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
158 # Hide the ALL_LINGUAS assigment from automake < 1.5.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
159 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
160 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
161 # Compute POFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
162 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
163 # Compute UPDATEPOFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
164 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
165 # Compute DUMMYPOFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
166 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
167 # Compute GMOFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
168 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
169 case "$ac_given_srcdir" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
170 .) srcdirpre= ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
171 *) srcdirpre='$(srcdir)/' ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
172 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
173 POFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
174 UPDATEPOFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
175 DUMMYPOFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
176 GMOFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
177 for lang in $ALL_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
178 POFILES="$POFILES $srcdirpre$lang.po"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
179 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
180 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
181 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
182 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
183 # CATALOGS depends on both $ac_dir and the user's LINGUAS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
184 # environment variable.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
185 INST_LINGUAS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
186 if test -n "$ALL_LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
187 for presentlang in $ALL_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
188 useit=no
d5392bb5da3c Added generated files
lost
parents:
diff changeset
189 if test "%UNSET%" != "$LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
190 desiredlanguages="$LINGUAS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
191 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
192 desiredlanguages="$ALL_LINGUAS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
193 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
194 for desiredlang in $desiredlanguages; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
195 # Use the presentlang catalog if desiredlang is
d5392bb5da3c Added generated files
lost
parents:
diff changeset
196 # a. equal to presentlang, or
d5392bb5da3c Added generated files
lost
parents:
diff changeset
197 # b. a variant of presentlang (because in this case,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
198 # presentlang can be used as a fallback for messages
d5392bb5da3c Added generated files
lost
parents:
diff changeset
199 # which are not translated in the desiredlang catalog).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
200 case "$desiredlang" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
201 "$presentlang"*) useit=yes;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
202 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
203 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
204 if test $useit = yes; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
205 INST_LINGUAS="$INST_LINGUAS $presentlang"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
206 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
207 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
208 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
209 CATALOGS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
210 if test -n "$INST_LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
211 for lang in $INST_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
212 CATALOGS="$CATALOGS $lang.gmo"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
213 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
214 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
215 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
216 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
217 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
218 if test -f "$f"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
219 case "$f" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
220 *.orig | *.bak | *~) ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
221 *) cat "$f" >> "$ac_dir/Makefile" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
222 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
223 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
224 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
225 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
226 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
227 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
228 done]],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
229 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
d5392bb5da3c Added generated files
lost
parents:
diff changeset
230 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
d5392bb5da3c Added generated files
lost
parents:
diff changeset
231 # from automake < 1.5.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
232 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
233 # Capture the value of LINGUAS because we need it to compute CATALOGS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
234 LINGUAS="${LINGUAS-%UNSET%}"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
235 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
236 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
237
d5392bb5da3c Added generated files
lost
parents:
diff changeset
238 dnl Postprocesses a Makefile in a directory containing PO files.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
239 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
240 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
241 # When this code is run, in config.status, two variables have already been
d5392bb5da3c Added generated files
lost
parents:
diff changeset
242 # set:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
243 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
244 # - LINGUAS is the value of the environment variable LINGUAS at configure
d5392bb5da3c Added generated files
lost
parents:
diff changeset
245 # time.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
246
d5392bb5da3c Added generated files
lost
parents:
diff changeset
247 changequote(,)dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
248 # Adjust a relative srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
249 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
250 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
251 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
252 # In autoconf-2.13 it is called $ac_given_srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
253 # In autoconf-2.50 it is called $srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
254 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
255 case "$ac_given_srcdir" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
256 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
257 /*) top_srcdir="$ac_given_srcdir" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
258 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
259 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
260
d5392bb5da3c Added generated files
lost
parents:
diff changeset
261 # Find a way to echo strings without interpreting backslash.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
262 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
263 gt_echo='echo'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
264 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
265 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
266 gt_echo='printf %s\n'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
267 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
268 echo_func () {
d5392bb5da3c Added generated files
lost
parents:
diff changeset
269 cat <<EOT
d5392bb5da3c Added generated files
lost
parents:
diff changeset
270 $*
d5392bb5da3c Added generated files
lost
parents:
diff changeset
271 EOT
d5392bb5da3c Added generated files
lost
parents:
diff changeset
272 }
d5392bb5da3c Added generated files
lost
parents:
diff changeset
273 gt_echo='echo_func'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
274 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
275 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
276
d5392bb5da3c Added generated files
lost
parents:
diff changeset
277 # A sed script that extracts the value of VARIABLE from a Makefile.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
278 sed_x_variable='
d5392bb5da3c Added generated files
lost
parents:
diff changeset
279 # Test if the hold space is empty.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
280 x
d5392bb5da3c Added generated files
lost
parents:
diff changeset
281 s/P/P/
d5392bb5da3c Added generated files
lost
parents:
diff changeset
282 x
d5392bb5da3c Added generated files
lost
parents:
diff changeset
283 ta
d5392bb5da3c Added generated files
lost
parents:
diff changeset
284 # Yes it was empty. Look if we have the expected variable definition.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
285 /^[ ]*VARIABLE[ ]*=/{
d5392bb5da3c Added generated files
lost
parents:
diff changeset
286 # Seen the first line of the variable definition.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
287 s/^[ ]*VARIABLE[ ]*=//
d5392bb5da3c Added generated files
lost
parents:
diff changeset
288 ba
d5392bb5da3c Added generated files
lost
parents:
diff changeset
289 }
d5392bb5da3c Added generated files
lost
parents:
diff changeset
290 bd
d5392bb5da3c Added generated files
lost
parents:
diff changeset
291 :a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
292 # Here we are processing a line from the variable definition.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
293 # Remove comment, more precisely replace it with a space.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
294 s/#.*$/ /
d5392bb5da3c Added generated files
lost
parents:
diff changeset
295 # See if the line ends in a backslash.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
296 tb
d5392bb5da3c Added generated files
lost
parents:
diff changeset
297 :b
d5392bb5da3c Added generated files
lost
parents:
diff changeset
298 s/\\$//
d5392bb5da3c Added generated files
lost
parents:
diff changeset
299 # Print the line, without the trailing backslash.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
300 p
d5392bb5da3c Added generated files
lost
parents:
diff changeset
301 tc
d5392bb5da3c Added generated files
lost
parents:
diff changeset
302 # There was no trailing backslash. The end of the variable definition is
d5392bb5da3c Added generated files
lost
parents:
diff changeset
303 # reached. Clear the hold space.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
304 s/^.*$//
d5392bb5da3c Added generated files
lost
parents:
diff changeset
305 x
d5392bb5da3c Added generated files
lost
parents:
diff changeset
306 bd
d5392bb5da3c Added generated files
lost
parents:
diff changeset
307 :c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
308 # A trailing backslash means that the variable definition continues in the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
309 # next line. Put a nonempty string into the hold space to indicate this.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
310 s/^.*$/P/
d5392bb5da3c Added generated files
lost
parents:
diff changeset
311 x
d5392bb5da3c Added generated files
lost
parents:
diff changeset
312 :d
d5392bb5da3c Added generated files
lost
parents:
diff changeset
313 '
d5392bb5da3c Added generated files
lost
parents:
diff changeset
314 changequote([,])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
315
d5392bb5da3c Added generated files
lost
parents:
diff changeset
316 # Set POTFILES to the value of the Makefile variable POTFILES.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
317 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
318 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
319 # Compute POTFILES_DEPS as
d5392bb5da3c Added generated files
lost
parents:
diff changeset
320 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
321 POTFILES_DEPS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
322 for file in $POTFILES; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
323 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
324 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
325 POMAKEFILEDEPS=""
d5392bb5da3c Added generated files
lost
parents:
diff changeset
326
d5392bb5da3c Added generated files
lost
parents:
diff changeset
327 if test -n "$OBSOLETE_ALL_LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
328 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
329 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
330 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
331 # The LINGUAS file contains the set of available languages.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
332 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
333 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
334 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
335 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
336 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
337 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
338 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
339 # Hide the ALL_LINGUAS assigment from automake < 1.5.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
340 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
341 # Compute POFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
342 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
343 # Compute UPDATEPOFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
344 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
345 # Compute DUMMYPOFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
346 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
347 # Compute GMOFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
348 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
349 # Compute PROPERTIESFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
350 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
351 # Compute CLASSFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
352 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
353 # Compute QMFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
354 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
355 # Compute MSGFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
356 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
357 # Compute RESOURCESDLLFILES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
358 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
359 case "$ac_given_srcdir" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
360 .) srcdirpre= ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
361 *) srcdirpre='$(srcdir)/' ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
362 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
363 POFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
364 UPDATEPOFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
365 DUMMYPOFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
366 GMOFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
367 PROPERTIESFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
368 CLASSFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
369 QMFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
370 MSGFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
371 RESOURCESDLLFILES=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
372 for lang in $ALL_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
373 POFILES="$POFILES $srcdirpre$lang.po"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
374 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
375 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
376 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
377 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
378 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
379 QMFILES="$QMFILES $srcdirpre$lang.qm"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
380 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
381 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
382 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
383 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
384 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
385 # CATALOGS depends on both $ac_dir and the user's LINGUAS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
386 # environment variable.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
387 INST_LINGUAS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
388 if test -n "$ALL_LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
389 for presentlang in $ALL_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
390 useit=no
d5392bb5da3c Added generated files
lost
parents:
diff changeset
391 if test "%UNSET%" != "$LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
392 desiredlanguages="$LINGUAS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
393 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
394 desiredlanguages="$ALL_LINGUAS"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
395 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
396 for desiredlang in $desiredlanguages; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
397 # Use the presentlang catalog if desiredlang is
d5392bb5da3c Added generated files
lost
parents:
diff changeset
398 # a. equal to presentlang, or
d5392bb5da3c Added generated files
lost
parents:
diff changeset
399 # b. a variant of presentlang (because in this case,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
400 # presentlang can be used as a fallback for messages
d5392bb5da3c Added generated files
lost
parents:
diff changeset
401 # which are not translated in the desiredlang catalog).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
402 case "$desiredlang" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
403 "$presentlang"*) useit=yes;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
404 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
405 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
406 if test $useit = yes; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
407 INST_LINGUAS="$INST_LINGUAS $presentlang"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
408 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
409 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
410 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
411 CATALOGS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
412 JAVACATALOGS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
413 QTCATALOGS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
414 TCLCATALOGS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
415 CSHARPCATALOGS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
416 if test -n "$INST_LINGUAS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
417 for lang in $INST_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
418 CATALOGS="$CATALOGS $lang.gmo"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
419 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
420 QTCATALOGS="$QTCATALOGS $lang.qm"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
421 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
422 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
423 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
424 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
425 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
426 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
427
d5392bb5da3c Added generated files
lost
parents:
diff changeset
428 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
429 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
430 # Add dependencies that cannot be formulated as a simple suffix rule.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
431 for lang in $ALL_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
432 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
433 cat >> "$ac_file.tmp" <<EOF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
434 $frobbedlang.msg: $lang.po
d5392bb5da3c Added generated files
lost
parents:
diff changeset
435 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
436 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
d5392bb5da3c Added generated files
lost
parents:
diff changeset
437 EOF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
438 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
439 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
440 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
441 # Add dependencies that cannot be formulated as a simple suffix rule.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
442 for lang in $ALL_LINGUAS; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
443 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
444 cat >> "$ac_file.tmp" <<EOF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
445 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
d5392bb5da3c Added generated files
lost
parents:
diff changeset
446 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
447 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
d5392bb5da3c Added generated files
lost
parents:
diff changeset
448 EOF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
449 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
450 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
451 if test -n "$POMAKEFILEDEPS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
452 cat >> "$ac_file.tmp" <<EOF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
453 Makefile: $POMAKEFILEDEPS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
454 EOF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
455 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
456 mv "$ac_file.tmp" "$ac_file"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
457 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
458
d5392bb5da3c Added generated files
lost
parents:
diff changeset
459 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
460 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
461 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
462 XGETTEXT_EXTRA_OPTIONS=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
463 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
464
d5392bb5da3c Added generated files
lost
parents:
diff changeset
465 dnl Registers an option to be passed to xgettext in the po subdirectory.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
466 AC_DEFUN([AM_XGETTEXT_OPTION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
467 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
468 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
469 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
470 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
471
d5392bb5da3c Added generated files
lost
parents:
diff changeset
472 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
473 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
474 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
475 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
476 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
477
d5392bb5da3c Added generated files
lost
parents:
diff changeset
478 # AM_AUTOMAKE_VERSION(VERSION)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
479 # ----------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
480 # Automake X.Y traces this macro to ensure aclocal.m4 has been
d5392bb5da3c Added generated files
lost
parents:
diff changeset
481 # generated from the m4 files accompanying Automake X.Y.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
482 # (This private macro should not be called outside this file.)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
483 AC_DEFUN([AM_AUTOMAKE_VERSION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
484 [am__api_version='1.10'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
485 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
d5392bb5da3c Added generated files
lost
parents:
diff changeset
486 dnl require some minimum version. Point them to the right macro.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
487 m4_if([$1], [1.10.2], [],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
488 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
489 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
490
d5392bb5da3c Added generated files
lost
parents:
diff changeset
491 # _AM_AUTOCONF_VERSION(VERSION)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
492 # -----------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
493 # aclocal traces this macro to find the Autoconf version.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
494 # This is a private macro too. Using m4_define simplifies
d5392bb5da3c Added generated files
lost
parents:
diff changeset
495 # the logic in aclocal, which can simply ignore this definition.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
496 m4_define([_AM_AUTOCONF_VERSION], [])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
497
d5392bb5da3c Added generated files
lost
parents:
diff changeset
498 # AM_SET_CURRENT_AUTOMAKE_VERSION
d5392bb5da3c Added generated files
lost
parents:
diff changeset
499 # -------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
500 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
501 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
502 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
503 [AM_AUTOMAKE_VERSION([1.10.2])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
504 m4_ifndef([AC_AUTOCONF_VERSION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
505 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
506 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
507
d5392bb5da3c Added generated files
lost
parents:
diff changeset
508 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
509
d5392bb5da3c Added generated files
lost
parents:
diff changeset
510 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
511 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
512 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
513 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
514 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
515
d5392bb5da3c Added generated files
lost
parents:
diff changeset
516 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
d5392bb5da3c Added generated files
lost
parents:
diff changeset
517 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
d5392bb5da3c Added generated files
lost
parents:
diff changeset
518 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
519 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
520 # Of course, Automake must honor this variable whenever it calls a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
521 # tool from the auxiliary directory. The problem is that $srcdir (and
d5392bb5da3c Added generated files
lost
parents:
diff changeset
522 # therefore $ac_aux_dir as well) can be either absolute or relative,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
523 # depending on how configure is run. This is pretty annoying, since
d5392bb5da3c Added generated files
lost
parents:
diff changeset
524 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
d5392bb5da3c Added generated files
lost
parents:
diff changeset
525 # source directory, any form will work fine, but in subdirectories a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
526 # relative path needs to be adjusted first.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
527 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
528 # $ac_aux_dir/missing
d5392bb5da3c Added generated files
lost
parents:
diff changeset
529 # fails when called from a subdirectory if $ac_aux_dir is relative
d5392bb5da3c Added generated files
lost
parents:
diff changeset
530 # $top_srcdir/$ac_aux_dir/missing
d5392bb5da3c Added generated files
lost
parents:
diff changeset
531 # fails if $ac_aux_dir is absolute,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
532 # fails when called from a subdirectory in a VPATH build with
d5392bb5da3c Added generated files
lost
parents:
diff changeset
533 # a relative $ac_aux_dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
534 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
535 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
536 # are both prefixed by $srcdir. In an in-source build this is usually
d5392bb5da3c Added generated files
lost
parents:
diff changeset
537 # harmless because $srcdir is `.', but things will broke when you
d5392bb5da3c Added generated files
lost
parents:
diff changeset
538 # start a VPATH build or use an absolute $srcdir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
539 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
540 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
541 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
542 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
543 # and then we would define $MISSING as
d5392bb5da3c Added generated files
lost
parents:
diff changeset
544 # MISSING="\${SHELL} $am_aux_dir/missing"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
545 # This will work as long as MISSING is not called from configure, because
d5392bb5da3c Added generated files
lost
parents:
diff changeset
546 # unfortunately $(top_srcdir) has no meaning in configure.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
547 # However there are other variables, like CC, which are often used in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
548 # configure, and could therefore not use this "fixed" $ac_aux_dir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
549 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
550 # Another solution, used here, is to always expand $ac_aux_dir to an
d5392bb5da3c Added generated files
lost
parents:
diff changeset
551 # absolute PATH. The drawback is that using absolute paths prevent a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
552 # configured tree to be moved without reconfiguration.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
553
d5392bb5da3c Added generated files
lost
parents:
diff changeset
554 AC_DEFUN([AM_AUX_DIR_EXPAND],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
555 [dnl Rely on autoconf to set up CDPATH properly.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
556 AC_PREREQ([2.50])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
557 # expand $ac_aux_dir to an absolute path
d5392bb5da3c Added generated files
lost
parents:
diff changeset
558 am_aux_dir=`cd $ac_aux_dir && pwd`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
559 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
560
d5392bb5da3c Added generated files
lost
parents:
diff changeset
561 # AM_CONDITIONAL -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
562
d5392bb5da3c Added generated files
lost
parents:
diff changeset
563 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
d5392bb5da3c Added generated files
lost
parents:
diff changeset
564 # Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
565 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
566 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
567 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
568 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
569
d5392bb5da3c Added generated files
lost
parents:
diff changeset
570 # serial 8
d5392bb5da3c Added generated files
lost
parents:
diff changeset
571
d5392bb5da3c Added generated files
lost
parents:
diff changeset
572 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
573 # -------------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
574 # Define a conditional.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
575 AC_DEFUN([AM_CONDITIONAL],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
576 [AC_PREREQ(2.52)dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
577 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
578 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
579 AC_SUBST([$1_TRUE])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
580 AC_SUBST([$1_FALSE])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
581 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
582 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
583 if $2; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
584 $1_TRUE=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
585 $1_FALSE='#'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
586 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
587 $1_TRUE='#'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
588 $1_FALSE=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
589 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
590 AC_CONFIG_COMMANDS_PRE(
d5392bb5da3c Added generated files
lost
parents:
diff changeset
591 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
592 AC_MSG_ERROR([[conditional "$1" was never defined.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
593 Usually this means the macro was only invoked conditionally.]])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
594 fi])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
595
d5392bb5da3c Added generated files
lost
parents:
diff changeset
596 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
d5392bb5da3c Added generated files
lost
parents:
diff changeset
597 # Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
598 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
599 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
600 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
601 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
602
d5392bb5da3c Added generated files
lost
parents:
diff changeset
603 # serial 9
d5392bb5da3c Added generated files
lost
parents:
diff changeset
604
d5392bb5da3c Added generated files
lost
parents:
diff changeset
605 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
d5392bb5da3c Added generated files
lost
parents:
diff changeset
606 # written in clear, in which case automake, when reading aclocal.m4,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
607 # will think it sees a *use*, and therefore will trigger all it's
d5392bb5da3c Added generated files
lost
parents:
diff changeset
608 # C support machinery. Also note that it means that autoscan, seeing
d5392bb5da3c Added generated files
lost
parents:
diff changeset
609 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
d5392bb5da3c Added generated files
lost
parents:
diff changeset
610
d5392bb5da3c Added generated files
lost
parents:
diff changeset
611
d5392bb5da3c Added generated files
lost
parents:
diff changeset
612 # _AM_DEPENDENCIES(NAME)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
613 # ----------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
614 # See how the compiler implements dependency checking.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
615 # NAME is "CC", "CXX", "GCJ", or "OBJC".
d5392bb5da3c Added generated files
lost
parents:
diff changeset
616 # We try a few techniques and use that to set a single cache variable.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
617 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
618 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
d5392bb5da3c Added generated files
lost
parents:
diff changeset
619 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
d5392bb5da3c Added generated files
lost
parents:
diff changeset
620 # dependency, and given that the user is not expected to run this macro,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
621 # just rely on AC_PROG_CC.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
622 AC_DEFUN([_AM_DEPENDENCIES],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
623 [AC_REQUIRE([AM_SET_DEPDIR])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
624 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
625 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
626 AC_REQUIRE([AM_DEP_TRACK])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
627
d5392bb5da3c Added generated files
lost
parents:
diff changeset
628 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
629 [$1], CXX, [depcc="$CXX" am_compiler_list=],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
630 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
631 [$1], UPC, [depcc="$UPC" am_compiler_list=],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
632 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
633 [depcc="$$1" am_compiler_list=])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
634
d5392bb5da3c Added generated files
lost
parents:
diff changeset
635 AC_CACHE_CHECK([dependency style of $depcc],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
636 [am_cv_$1_dependencies_compiler_type],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
637 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
638 # We make a subdir and do the tests there. Otherwise we can end up
d5392bb5da3c Added generated files
lost
parents:
diff changeset
639 # making bogus files that we don't know about and never remove. For
d5392bb5da3c Added generated files
lost
parents:
diff changeset
640 # instance it was reported that on HP-UX the gcc test will end up
d5392bb5da3c Added generated files
lost
parents:
diff changeset
641 # making a dummy file named `D' -- because `-MD' means `put the output
d5392bb5da3c Added generated files
lost
parents:
diff changeset
642 # in D'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
643 mkdir conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
644 # Copy depcomp to subdir because otherwise we won't find it if we're
d5392bb5da3c Added generated files
lost
parents:
diff changeset
645 # using a relative directory.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
646 cp "$am_depcomp" conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
647 cd conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
648 # We will build objects and dependencies in a subdirectory because
d5392bb5da3c Added generated files
lost
parents:
diff changeset
649 # it helps to detect inapplicable dependency modes. For instance
d5392bb5da3c Added generated files
lost
parents:
diff changeset
650 # both Tru64's cc and ICC support -MD to output dependencies as a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
651 # side effect of compilation, but ICC will put the dependencies in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
652 # the current directory while Tru64 will put them in the object
d5392bb5da3c Added generated files
lost
parents:
diff changeset
653 # directory.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
654 mkdir sub
d5392bb5da3c Added generated files
lost
parents:
diff changeset
655
d5392bb5da3c Added generated files
lost
parents:
diff changeset
656 am_cv_$1_dependencies_compiler_type=none
d5392bb5da3c Added generated files
lost
parents:
diff changeset
657 if test "$am_compiler_list" = ""; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
658 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
659 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
660 for depmode in $am_compiler_list; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
661 # Setup a source with many dependencies, because some compilers
d5392bb5da3c Added generated files
lost
parents:
diff changeset
662 # like to wrap large dependency lists on column 80 (with \), and
d5392bb5da3c Added generated files
lost
parents:
diff changeset
663 # we should not choose a depcomp mode which is confused by this.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
664 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
665 # We need to recreate these files for each test, as the compiler may
d5392bb5da3c Added generated files
lost
parents:
diff changeset
666 # overwrite some of them when testing with obscure command lines.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
667 # This happens at least with the AIX C compiler.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
668 : > sub/conftest.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
669 for i in 1 2 3 4 5 6; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
671 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
d5392bb5da3c Added generated files
lost
parents:
diff changeset
672 # Solaris 8's {/usr,}/bin/sh.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
673 touch sub/conftst$i.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
674 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d5392bb5da3c Added generated files
lost
parents:
diff changeset
676
d5392bb5da3c Added generated files
lost
parents:
diff changeset
677 case $depmode in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
678 nosideeffect)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
679 # after this tag, mechanisms are not by side-effect, so they'll
d5392bb5da3c Added generated files
lost
parents:
diff changeset
680 # only be used when explicitly requested
d5392bb5da3c Added generated files
lost
parents:
diff changeset
681 if test "x$enable_dependency_tracking" = xyes; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
682 continue
d5392bb5da3c Added generated files
lost
parents:
diff changeset
683 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
684 break
d5392bb5da3c Added generated files
lost
parents:
diff changeset
685 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
686 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
687 none) break ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
688 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
689 # We check with `-c' and `-o' for the sake of the "dashmstdout"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
690 # mode. It turns out that the SunPro C++ compiler does not properly
d5392bb5da3c Added generated files
lost
parents:
diff changeset
691 # handle `-M -o', and we need to detect this.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
692 if depmode=$depmode \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
693 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
694 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
695 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
696 >/dev/null 2>conftest.err &&
d5392bb5da3c Added generated files
lost
parents:
diff changeset
697 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d5392bb5da3c Added generated files
lost
parents:
diff changeset
698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
d5392bb5da3c Added generated files
lost
parents:
diff changeset
699 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
d5392bb5da3c Added generated files
lost
parents:
diff changeset
700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
701 # icc doesn't choke on unknown options, it will just issue warnings
d5392bb5da3c Added generated files
lost
parents:
diff changeset
702 # or remarks (even with -Werror). So we grep stderr for any message
d5392bb5da3c Added generated files
lost
parents:
diff changeset
703 # that says an option was ignored or not supported.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
704 # When given -MP, icc 7.0 and 7.1 complain thusly:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
705 # icc: Command line warning: ignoring option '-M'; no argument required
d5392bb5da3c Added generated files
lost
parents:
diff changeset
706 # The diagnosis changed in icc 8.0:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
707 # icc: Command line remark: option '-MP' not supported
d5392bb5da3c Added generated files
lost
parents:
diff changeset
708 if (grep 'ignoring option' conftest.err ||
d5392bb5da3c Added generated files
lost
parents:
diff changeset
709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
710 am_cv_$1_dependencies_compiler_type=$depmode
d5392bb5da3c Added generated files
lost
parents:
diff changeset
711 break
d5392bb5da3c Added generated files
lost
parents:
diff changeset
712 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
713 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
714 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
715
d5392bb5da3c Added generated files
lost
parents:
diff changeset
716 cd ..
d5392bb5da3c Added generated files
lost
parents:
diff changeset
717 rm -rf conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
718 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
719 am_cv_$1_dependencies_compiler_type=none
d5392bb5da3c Added generated files
lost
parents:
diff changeset
720 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
721 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
722 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
723 AM_CONDITIONAL([am__fastdep$1], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
724 test "x$enable_dependency_tracking" != xno \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
725 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
726 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
727
d5392bb5da3c Added generated files
lost
parents:
diff changeset
728
d5392bb5da3c Added generated files
lost
parents:
diff changeset
729 # AM_SET_DEPDIR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
730 # -------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
731 # Choose a directory name for dependency files.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
732 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
d5392bb5da3c Added generated files
lost
parents:
diff changeset
733 AC_DEFUN([AM_SET_DEPDIR],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
734 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
735 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
736 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
737
d5392bb5da3c Added generated files
lost
parents:
diff changeset
738
d5392bb5da3c Added generated files
lost
parents:
diff changeset
739 # AM_DEP_TRACK
d5392bb5da3c Added generated files
lost
parents:
diff changeset
740 # ------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
741 AC_DEFUN([AM_DEP_TRACK],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
742 [AC_ARG_ENABLE(dependency-tracking,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
743 [ --disable-dependency-tracking speeds up one-time build
d5392bb5da3c Added generated files
lost
parents:
diff changeset
744 --enable-dependency-tracking do not reject slow dependency extractors])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
745 if test "x$enable_dependency_tracking" != xno; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
746 am_depcomp="$ac_aux_dir/depcomp"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
747 AMDEPBACKSLASH='\'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
748 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
749 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
750 AC_SUBST([AMDEPBACKSLASH])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
751 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
752 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
753
d5392bb5da3c Added generated files
lost
parents:
diff changeset
754 # Generate code to set up dependency tracking. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
755
d5392bb5da3c Added generated files
lost
parents:
diff changeset
756 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
d5392bb5da3c Added generated files
lost
parents:
diff changeset
757 # Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
758 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
759 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
760 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
761 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
762
d5392bb5da3c Added generated files
lost
parents:
diff changeset
763 #serial 5
d5392bb5da3c Added generated files
lost
parents:
diff changeset
764
d5392bb5da3c Added generated files
lost
parents:
diff changeset
765 # _AM_OUTPUT_DEPENDENCY_COMMANDS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
766 # ------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
767 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
768 [{
d5392bb5da3c Added generated files
lost
parents:
diff changeset
769 # Autoconf 2.62 quotes --file arguments for eval, but not when files
d5392bb5da3c Added generated files
lost
parents:
diff changeset
770 # are listed without --file. Let's play safe and only enable the eval
d5392bb5da3c Added generated files
lost
parents:
diff changeset
771 # if we detect the quoting.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
772 case $CONFIG_FILES in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
773 *\'*) eval set x "$CONFIG_FILES" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
774 *) set x $CONFIG_FILES ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
775 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
776 shift
d5392bb5da3c Added generated files
lost
parents:
diff changeset
777 for mf
d5392bb5da3c Added generated files
lost
parents:
diff changeset
778 do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
779 # Strip MF so we end up with the name of the file.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
780 mf=`echo "$mf" | sed -e 's/:.*$//'`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
781 # Check whether this is an Automake generated Makefile or not.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
782 # We used to match only the files named `Makefile.in', but
d5392bb5da3c Added generated files
lost
parents:
diff changeset
783 # some people rename them; so instead we look at the file content.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
784 # Grep'ing the first line is not enough: some people post-process
d5392bb5da3c Added generated files
lost
parents:
diff changeset
785 # each Makefile.in and add a new line on top of each file to say so.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
786 # Grep'ing the whole file is not good either: AIX grep has a line
d5392bb5da3c Added generated files
lost
parents:
diff changeset
787 # limit of 2048, but all sed's we know have understand at least 4000.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
788 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
789 dirpart=`AS_DIRNAME("$mf")`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
790 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
791 continue
d5392bb5da3c Added generated files
lost
parents:
diff changeset
792 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
793 # Extract the definition of DEPDIR, am__include, and am__quote
d5392bb5da3c Added generated files
lost
parents:
diff changeset
794 # from the Makefile without running `make'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
795 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
796 test -z "$DEPDIR" && continue
d5392bb5da3c Added generated files
lost
parents:
diff changeset
797 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
798 test -z "am__include" && continue
d5392bb5da3c Added generated files
lost
parents:
diff changeset
799 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
800 # When using ansi2knr, U may be empty or an underscore; expand it
d5392bb5da3c Added generated files
lost
parents:
diff changeset
801 U=`sed -n 's/^U = //p' < "$mf"`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
802 # Find all dependency output files, they are included files with
d5392bb5da3c Added generated files
lost
parents:
diff changeset
803 # $(DEPDIR) in their names. We invoke sed twice because it is the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
804 # simplest approach to changing $(DEPDIR) to its actual value in the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
805 # expansion.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
806 for file in `sed -n "
d5392bb5da3c Added generated files
lost
parents:
diff changeset
807 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
808 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
809 # Make sure the directory exists.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
810 test -f "$dirpart/$file" && continue
d5392bb5da3c Added generated files
lost
parents:
diff changeset
811 fdir=`AS_DIRNAME(["$file"])`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
812 AS_MKDIR_P([$dirpart/$fdir])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
813 # echo "creating $dirpart/$file"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
814 echo '# dummy' > "$dirpart/$file"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
815 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
816 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
817 }
d5392bb5da3c Added generated files
lost
parents:
diff changeset
818 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
819
d5392bb5da3c Added generated files
lost
parents:
diff changeset
820
d5392bb5da3c Added generated files
lost
parents:
diff changeset
821 # AM_OUTPUT_DEPENDENCY_COMMANDS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
822 # -----------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
823 # This macro should only be invoked once -- use via AC_REQUIRE.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
824 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
825 # This code is only required when automatic dependency tracking
d5392bb5da3c Added generated files
lost
parents:
diff changeset
826 # is enabled. FIXME. This creates each `.P' file that we will
d5392bb5da3c Added generated files
lost
parents:
diff changeset
827 # need in order to bootstrap the dependency handling code.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
828 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
829 [AC_CONFIG_COMMANDS([depfiles],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
830 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
831 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
832 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
833
d5392bb5da3c Added generated files
lost
parents:
diff changeset
834 # Do all the work for Automake. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
835
d5392bb5da3c Added generated files
lost
parents:
diff changeset
836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
837 # 2005, 2006, 2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
838 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
839 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
840 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
841 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
842
d5392bb5da3c Added generated files
lost
parents:
diff changeset
843 # serial 13
d5392bb5da3c Added generated files
lost
parents:
diff changeset
844
d5392bb5da3c Added generated files
lost
parents:
diff changeset
845 # This macro actually does too much. Some checks are only needed if
d5392bb5da3c Added generated files
lost
parents:
diff changeset
846 # your package does certain things. But this isn't really a big deal.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
847
d5392bb5da3c Added generated files
lost
parents:
diff changeset
848 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
849 # AM_INIT_AUTOMAKE([OPTIONS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
850 # -----------------------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
851 # The call with PACKAGE and VERSION arguments is the old style
d5392bb5da3c Added generated files
lost
parents:
diff changeset
852 # call (pre autoconf-2.50), which is being phased out. PACKAGE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
853 # and VERSION should now be passed to AC_INIT and removed from
d5392bb5da3c Added generated files
lost
parents:
diff changeset
854 # the call to AM_INIT_AUTOMAKE.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
855 # We support both call styles for the transition. After
d5392bb5da3c Added generated files
lost
parents:
diff changeset
856 # the next Automake release, Autoconf can make the AC_INIT
d5392bb5da3c Added generated files
lost
parents:
diff changeset
857 # arguments mandatory, and then we can depend on a new Autoconf
d5392bb5da3c Added generated files
lost
parents:
diff changeset
858 # release and drop the old call support.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
859 AC_DEFUN([AM_INIT_AUTOMAKE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
860 [AC_PREREQ([2.60])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
861 dnl Autoconf wants to disallow AM_ names. We explicitly allow
d5392bb5da3c Added generated files
lost
parents:
diff changeset
862 dnl the ones we care about.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
863 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
864 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
865 AC_REQUIRE([AC_PROG_INSTALL])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
866 if test "`cd $srcdir && pwd`" != "`pwd`"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
867 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
d5392bb5da3c Added generated files
lost
parents:
diff changeset
868 # is not polluted with repeated "-I."
d5392bb5da3c Added generated files
lost
parents:
diff changeset
869 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
870 # test to see if srcdir already configured
d5392bb5da3c Added generated files
lost
parents:
diff changeset
871 if test -f $srcdir/config.status; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
872 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
873 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
874 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
875
d5392bb5da3c Added generated files
lost
parents:
diff changeset
876 # test whether we have cygpath
d5392bb5da3c Added generated files
lost
parents:
diff changeset
877 if test -z "$CYGPATH_W"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
878 if (cygpath --version) >/dev/null 2>/dev/null; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
879 CYGPATH_W='cygpath -w'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
880 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
881 CYGPATH_W=echo
d5392bb5da3c Added generated files
lost
parents:
diff changeset
882 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
883 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
884 AC_SUBST([CYGPATH_W])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
885
d5392bb5da3c Added generated files
lost
parents:
diff changeset
886 # Define the identity of the package.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
887 dnl Distinguish between old-style and new-style calls.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
888 m4_ifval([$2],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
889 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
890 AC_SUBST([PACKAGE], [$1])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
891 AC_SUBST([VERSION], [$2])],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
892 [_AM_SET_OPTIONS([$1])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
893 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
894 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
895 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
896 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
897 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
898
d5392bb5da3c Added generated files
lost
parents:
diff changeset
899 _AM_IF_OPTION([no-define],,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
900 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
901 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
902
d5392bb5da3c Added generated files
lost
parents:
diff changeset
903 # Some tools Automake needs.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
904 AC_REQUIRE([AM_SANITY_CHECK])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
905 AC_REQUIRE([AC_ARG_PROGRAM])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
906 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
d5392bb5da3c Added generated files
lost
parents:
diff changeset
907 AM_MISSING_PROG(AUTOCONF, autoconf)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
908 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
d5392bb5da3c Added generated files
lost
parents:
diff changeset
909 AM_MISSING_PROG(AUTOHEADER, autoheader)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
910 AM_MISSING_PROG(MAKEINFO, makeinfo)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
911 AM_PROG_INSTALL_SH
d5392bb5da3c Added generated files
lost
parents:
diff changeset
912 AM_PROG_INSTALL_STRIP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
913 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
914 # We need awk for the "check" target. The system "awk" is bad on
d5392bb5da3c Added generated files
lost
parents:
diff changeset
915 # some platforms.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
916 AC_REQUIRE([AC_PROG_AWK])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
917 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
918 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
919 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
920 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
921 [_AM_PROG_TAR([v7])])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
922 _AM_IF_OPTION([no-dependencies],,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
923 [AC_PROVIDE_IFELSE([AC_PROG_CC],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
924 [_AM_DEPENDENCIES(CC)],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
925 [define([AC_PROG_CC],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
926 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
927 AC_PROVIDE_IFELSE([AC_PROG_CXX],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
928 [_AM_DEPENDENCIES(CXX)],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
929 [define([AC_PROG_CXX],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
930 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
931 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
932 [_AM_DEPENDENCIES(OBJC)],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
933 [define([AC_PROG_OBJC],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
934 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
935 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
936 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
937
d5392bb5da3c Added generated files
lost
parents:
diff changeset
938
d5392bb5da3c Added generated files
lost
parents:
diff changeset
939 # When config.status generates a header, we must update the stamp-h file.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
940 # This file resides in the same directory as the config header
d5392bb5da3c Added generated files
lost
parents:
diff changeset
941 # that is generated. The stamp files are numbered to have different names.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
942
d5392bb5da3c Added generated files
lost
parents:
diff changeset
943 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
944 # loop where config.status creates the headers, so we can generate
d5392bb5da3c Added generated files
lost
parents:
diff changeset
945 # our stamp files there.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
946 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
947 [# Compute $1's index in $config_headers.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
948 _am_arg=$1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
949 _am_stamp_count=1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
950 for _am_header in $config_headers :; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
951 case $_am_header in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
952 $_am_arg | $_am_arg:* )
d5392bb5da3c Added generated files
lost
parents:
diff changeset
953 break ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
954 * )
d5392bb5da3c Added generated files
lost
parents:
diff changeset
955 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
956 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
957 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
958 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
959
d5392bb5da3c Added generated files
lost
parents:
diff changeset
960 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
961 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
962 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
963 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
964 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
965
d5392bb5da3c Added generated files
lost
parents:
diff changeset
966 # AM_PROG_INSTALL_SH
d5392bb5da3c Added generated files
lost
parents:
diff changeset
967 # ------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
968 # Define $install_sh.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
969 AC_DEFUN([AM_PROG_INSTALL_SH],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
970 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
971 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d5392bb5da3c Added generated files
lost
parents:
diff changeset
972 AC_SUBST(install_sh)])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
973
d5392bb5da3c Added generated files
lost
parents:
diff changeset
974 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
975 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
976 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
977 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
978 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
979
d5392bb5da3c Added generated files
lost
parents:
diff changeset
980 # serial 2
d5392bb5da3c Added generated files
lost
parents:
diff changeset
981
d5392bb5da3c Added generated files
lost
parents:
diff changeset
982 # Check whether the underlying file-system supports filenames
d5392bb5da3c Added generated files
lost
parents:
diff changeset
983 # with a leading dot. For instance MS-DOS doesn't.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
984 AC_DEFUN([AM_SET_LEADING_DOT],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
985 [rm -rf .tst 2>/dev/null
d5392bb5da3c Added generated files
lost
parents:
diff changeset
986 mkdir .tst 2>/dev/null
d5392bb5da3c Added generated files
lost
parents:
diff changeset
987 if test -d .tst; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
988 am__leading_dot=.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
989 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
990 am__leading_dot=_
d5392bb5da3c Added generated files
lost
parents:
diff changeset
991 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
992 rmdir .tst 2>/dev/null
d5392bb5da3c Added generated files
lost
parents:
diff changeset
993 AC_SUBST([am__leading_dot])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
994
d5392bb5da3c Added generated files
lost
parents:
diff changeset
995 # Check to see how 'make' treats includes. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
996
d5392bb5da3c Added generated files
lost
parents:
diff changeset
997 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
998 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
999 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1000 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1001 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1002
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1003 # serial 3
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1004
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1005 # AM_MAKE_INCLUDE()
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1006 # -----------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1007 # Check to see how make treats includes.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1008 AC_DEFUN([AM_MAKE_INCLUDE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1009 [am_make=${MAKE-make}
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1010 cat > confinc << 'END'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1011 am__doit:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1012 @echo done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1013 .PHONY: am__doit
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1014 END
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1015 # If we don't find an include directive, just comment out the code.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1016 AC_MSG_CHECKING([for style of include used by $am_make])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1017 am__include="#"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1018 am__quote=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1019 _am_result=none
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1020 # First try GNU make style include.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1021 echo "include confinc" > confmf
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1022 # We grep out `Entering directory' and `Leaving directory'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1023 # messages which can occur if `w' ends up in MAKEFLAGS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1024 # In particular we don't look at `^make:' because GNU make might
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1025 # be invoked under some other name (usually "gmake"), in which
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1026 # case it prints its new name instead of `make'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1027 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1028 am__include=include
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1029 am__quote=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1030 _am_result=GNU
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1031 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1032 # Now try BSD make style include.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1033 if test "$am__include" = "#"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1034 echo '.include "confinc"' > confmf
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1035 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1036 am__include=.include
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1037 am__quote="\""
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1038 _am_result=BSD
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1039 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1040 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1041 AC_SUBST([am__include])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1042 AC_SUBST([am__quote])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1043 AC_MSG_RESULT([$_am_result])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1044 rm -f confinc confmf
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1045 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1046
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1047 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1048
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1049 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1050 # Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1051 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1052 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1053 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1054 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1055
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1056 # serial 5
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1057
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1058 # AM_MISSING_PROG(NAME, PROGRAM)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1059 # ------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1060 AC_DEFUN([AM_MISSING_PROG],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1061 [AC_REQUIRE([AM_MISSING_HAS_RUN])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1062 $1=${$1-"${am_missing_run}$2"}
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1063 AC_SUBST($1)])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1064
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1065
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1066 # AM_MISSING_HAS_RUN
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1067 # ------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1068 # Define MISSING if not defined so far and test if it supports --run.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1069 # If it does, set am_missing_run to use it, otherwise, to nothing.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1070 AC_DEFUN([AM_MISSING_HAS_RUN],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1071 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1072 AC_REQUIRE_AUX_FILE([missing])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1073 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1074 # Use eval to expand $SHELL
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1075 if eval "$MISSING --run true"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1076 am_missing_run="$MISSING --run "
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1077 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1078 am_missing_run=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1079 AC_MSG_WARN([`missing' script is too old or missing])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1080 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1081 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1082
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1083 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1084 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1085 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1086 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1087 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1088
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1089 # AM_PROG_MKDIR_P
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1090 # ---------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1091 # Check for `mkdir -p'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1092 AC_DEFUN([AM_PROG_MKDIR_P],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1093 [AC_PREREQ([2.60])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1094 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1095 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1096 dnl while keeping a definition of mkdir_p for backward compatibility.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1097 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1098 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1099 dnl Makefile.ins that do not define MKDIR_P, so we do our own
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1100 dnl adjustment using top_builddir (which is defined more often than
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1101 dnl MKDIR_P).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1102 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1103 case $mkdir_p in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1104 [[\\/$]]* | ?:[[\\/]]*) ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1105 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1106 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1107 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1108
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1109 # Helper functions for option handling. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1110
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1111 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1112 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1113 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1114 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1115 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1116
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1117 # serial 4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1118
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1119 # _AM_MANGLE_OPTION(NAME)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1120 # -----------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1121 AC_DEFUN([_AM_MANGLE_OPTION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1122 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1123
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1124 # _AM_SET_OPTION(NAME)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1125 # ------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1126 # Set option NAME. Presently that only means defining a flag for this option.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1127 AC_DEFUN([_AM_SET_OPTION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1128 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1129
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1130 # _AM_SET_OPTIONS(OPTIONS)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1131 # ----------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1132 # OPTIONS is a space-separated list of Automake options.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1133 AC_DEFUN([_AM_SET_OPTIONS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1134 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1135
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1136 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1137 # -------------------------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1138 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1139 AC_DEFUN([_AM_IF_OPTION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1140 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1141
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1142 # Check to make sure that the build environment is sane. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1143
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1144 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1145 # Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1146 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1147 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1148 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1149 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1150
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1151 # serial 4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1152
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1153 # AM_SANITY_CHECK
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1154 # ---------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1155 AC_DEFUN([AM_SANITY_CHECK],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1156 [AC_MSG_CHECKING([whether build environment is sane])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1157 # Just in case
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1158 sleep 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1159 echo timestamp > conftest.file
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1160 # Do `set' in a subshell so we don't clobber the current shell's
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1161 # arguments. Must try -L first in case configure is actually a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1162 # symlink; some systems play weird games with the mod time of symlinks
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1163 # (eg FreeBSD returns the mod time of the symlink's containing
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1164 # directory).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1165 if (
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1166 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1167 if test "$[*]" = "X"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1168 # -L didn't work.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1169 set X `ls -t $srcdir/configure conftest.file`
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1170 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1171 rm -f conftest.file
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1172 if test "$[*]" != "X $srcdir/configure conftest.file" \
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1173 && test "$[*]" != "X conftest.file $srcdir/configure"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1174
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1175 # If neither matched, then we have a broken ls. This can happen
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1176 # if, for instance, CONFIG_SHELL is bash and it inherits a
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1177 # broken ls alias from the environment. This has actually
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1178 # happened. Such a system could not be considered "sane".
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1179 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1180 alias in your environment])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1181 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1182
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1183 test "$[2]" = conftest.file
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1184 )
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1185 then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1186 # Ok.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1187 :
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1188 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1189 AC_MSG_ERROR([newly created file is older than distributed files!
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1190 Check your system clock])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1191 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1192 AC_MSG_RESULT(yes)])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1193
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1194 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1195 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1196 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1197 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1198 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1199
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1200 # AM_PROG_INSTALL_STRIP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1201 # ---------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1202 # One issue with vendor `install' (even GNU) is that you can't
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1203 # specify the program used to strip binaries. This is especially
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1204 # annoying in cross-compiling environments, where the build's strip
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1205 # is unlikely to handle the host's binaries.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1206 # Fortunately install-sh will honor a STRIPPROG variable, so we
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1207 # always use install-sh in `make install-strip', and initialize
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1208 # STRIPPROG with the value of the STRIP variable (set by the user).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1209 AC_DEFUN([AM_PROG_INSTALL_STRIP],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1210 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1211 # Installed binaries are usually stripped using `strip' when the user
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1212 # run `make install-strip'. However `strip' might not be the right
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1213 # tool to use in cross-compilation environments, therefore Automake
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1214 # will honor the `STRIP' environment variable to overrule this program.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1215 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1216 if test "$cross_compiling" != no; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1217 AC_CHECK_TOOL([STRIP], [strip], :)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1218 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1219 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1220 AC_SUBST([INSTALL_STRIP_PROGRAM])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1221
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1222 # Copyright (C) 2006 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1223 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1224 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1225 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1226 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1227
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1228 # _AM_SUBST_NOTMAKE(VARIABLE)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1229 # ---------------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1230 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1231 # This macro is traced by Automake.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1232 AC_DEFUN([_AM_SUBST_NOTMAKE])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1233
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1234 # Check how to create a tarball. -*- Autoconf -*-
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1235
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1236 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1237 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1238 # This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1239 # gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1240 # with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1241
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1242 # serial 2
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1243
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1244 # _AM_PROG_TAR(FORMAT)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1245 # --------------------
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1246 # Check how to create a tarball in format FORMAT.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1247 # FORMAT should be one of `v7', `ustar', or `pax'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1248 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1249 # Substitute a variable $(am__tar) that is a command
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1250 # writing to stdout a FORMAT-tarball containing the directory
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1251 # $tardir.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1252 # tardir=directory && $(am__tar) > result.tar
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1253 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1254 # Substitute a variable $(am__untar) that extract such
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1255 # a tarball read from stdin.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1256 # $(am__untar) < result.tar
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1257 AC_DEFUN([_AM_PROG_TAR],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1258 [# Always define AMTAR for backward compatibility.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1259 AM_MISSING_PROG([AMTAR], [tar])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1260 m4_if([$1], [v7],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1261 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1262 [m4_case([$1], [ustar],, [pax],,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1263 [m4_fatal([Unknown tar format])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1264 AC_MSG_CHECKING([how to create a $1 tar archive])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1265 # Loop over all known methods to create a tar archive until one works.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1266 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1267 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1268 # Do not fold the above two line into one, because Tru64 sh and
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1269 # Solaris sh will not grok spaces in the rhs of `-'.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1270 for _am_tool in $_am_tools
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1271 do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1272 case $_am_tool in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1273 gnutar)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1274 for _am_tar in tar gnutar gtar;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1275 do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1276 AM_RUN_LOG([$_am_tar --version]) && break
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1277 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1278 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1279 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1280 am__untar="$_am_tar -xf -"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1281 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1282 plaintar)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1283 # Must skip GNU tar: if it does not support --format= it doesn't create
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1284 # ustar tarball either.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1285 (tar --version) >/dev/null 2>&1 && continue
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1286 am__tar='tar chf - "$$tardir"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1287 am__tar_='tar chf - "$tardir"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1288 am__untar='tar xf -'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1289 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1290 pax)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1291 am__tar='pax -L -x $1 -w "$$tardir"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1292 am__tar_='pax -L -x $1 -w "$tardir"'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1293 am__untar='pax -r'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1294 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1295 cpio)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1296 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1297 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1298 am__untar='cpio -i -H $1 -d'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1299 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1300 none)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1301 am__tar=false
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1302 am__tar_=false
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1303 am__untar=false
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1304 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1305 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1306
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1307 # If the value was cached, stop now. We just wanted to have am__tar
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1308 # and am__untar set.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1309 test -n "${am_cv_prog_tar_$1}" && break
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1310
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1311 # tar/untar a dummy directory, and stop if the command works
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1312 rm -rf conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1313 mkdir conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1314 echo GrepMe > conftest.dir/file
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1315 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1316 rm -rf conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1317 if test -s conftest.tar; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1318 AM_RUN_LOG([$am__untar <conftest.tar])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1319 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1320 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1321 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1322 rm -rf conftest.dir
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1323
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1324 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1325 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1326 AC_SUBST([am__tar])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1327 AC_SUBST([am__untar])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1328 ]) # _AM_PROG_TAR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1329
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1330 m4_include([m4/alloca.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1331 m4_include([m4/argp.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1332 m4_include([m4/dirname.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1333 m4_include([m4/dos.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1334 m4_include([m4/double-slash-root.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1335 m4_include([m4/errno_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1336 m4_include([m4/error.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1337 m4_include([m4/exitfail.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1338 m4_include([m4/extensions.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1339 m4_include([m4/float_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1340 m4_include([m4/getopt.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1341 m4_include([m4/gnulib-common.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1342 m4_include([m4/gnulib-comp.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1343 m4_include([m4/include_next.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1344 m4_include([m4/inline.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1345 m4_include([m4/intmax_t.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1346 m4_include([m4/inttypes_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1347 m4_include([m4/longlong.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1348 m4_include([m4/malloc.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1349 m4_include([m4/mempcpy.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1350 m4_include([m4/multiarch.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1351 m4_include([m4/onceonly.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1352 m4_include([m4/printf.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1353 m4_include([m4/rawmemchr.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1354 m4_include([m4/size_max.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1355 m4_include([m4/sleep.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1356 m4_include([m4/stdbool.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1357 m4_include([m4/stdint.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1358 m4_include([m4/stdint_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1359 m4_include([m4/stdio_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1360 m4_include([m4/stdlib_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1361 m4_include([m4/strcase.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1362 m4_include([m4/strchrnul.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1363 m4_include([m4/strerror.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1364 m4_include([m4/string_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1365 m4_include([m4/strings_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1366 m4_include([m4/strndup.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1367 m4_include([m4/strnlen.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1368 m4_include([m4/sysexits.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1369 m4_include([m4/unistd_h.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1370 m4_include([m4/vasnprintf.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1371 m4_include([m4/vsnprintf.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1372 m4_include([m4/wchar.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1373 m4_include([m4/wchar_t.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1374 m4_include([m4/wint_t.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1375 m4_include([m4/xalloc.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1376 m4_include([m4/xsize.m4])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1377 m4_include([m4/xstrndup.m4])