Merge ~lamoura/update-notifier:bionic-fix-translations-on-script into update-notifier:bionic
- Git
- lp:~lamoura/update-notifier
- bionic-fix-translations-on-script
- Merge into bionic
Proposed by
Lucas Albuquerque Medeiros de Moura
Status: | Merged |
---|---|
Approved by: | Sebastien Bacher |
Approved revision: | 34fa8b0e0af9c48e30600b33397b74b76469c2eb |
Merged at revision: | 34fa8b0e0af9c48e30600b33397b74b76469c2eb |
Proposed branch: | ~lamoura/update-notifier:bionic-fix-translations-on-script |
Merge into: | update-notifier:bionic |
Diff against target: |
19557 lines (+19271/-19) 31 files modified
.gitignore (+0/-7) Makefile.in (+808/-0) aclocal.m4 (+2290/-0) compile (+347/-0) configure (+9127/-0) data/Makefile.in (+649/-0) debian/changelog (+7/-0) depcomp (+791/-0) install-sh (+508/-0) missing (+215/-0) pixmaps/16x16/Makefile.in (+494/-0) pixmaps/22x22/Makefile.in (+494/-0) pixmaps/24x24/Makefile.in (+494/-0) pixmaps/48x48/Makefile.in (+494/-0) pixmaps/Makefile.in (+617/-0) pixmaps/scalable/Makefile.in (+494/-0) po/Makefile.in.in (+221/-0) po/ar.po (+1/-1) po/cy.po (+1/-1) po/fr.po (+1/-1) po/hr.po (+1/-1) po/ia.po (+1/-1) po/kab.po (+1/-1) po/ku.po (+1/-1) po/mnw.po (+1/-1) po/mr.po (+1/-1) po/tr.po (+1/-1) po/tt.po (+1/-1) po/uk.po (+1/-1) src/Makefile.in (+715/-0) ui/Makefile.in (+494/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Approve | ||
Andreas Hasenack | Needs Fixing | ||
Review via email: mp+436157@code.launchpad.net |
Commit message
Description of the change
Fix the translation issues caused by:
https:/
Additionally, fix some package build problems identified on:
https:/
To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) : | # |
review:
Needs Information
Revision history for this message
Andreas Hasenack (ahasenack) wrote : | # |
We had a call, and decided on the following:
- leave the translation fix as is. We don't know of a way to mark a string inside a longer translatable string to NOT be translated, so let's just remove the translation for $packages everywhere.
- to avoid unnecessary risk, instead of generating the autoconf files in bionic for each build, just restore the generated files that exist in the current source package in bionic in the ubuntu archive.
review:
Needs Fixing
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/.gitignore b/.gitignore |
2 | index 126e770..3414855 100644 |
3 | --- a/.gitignore |
4 | +++ b/.gitignore |
5 | @@ -1,14 +1,11 @@ |
6 | Makefile |
7 | -Makefile.in |
8 | *.gmo |
9 | -aclocal.m4 |
10 | build-stamp |
11 | config.h |
12 | config.log |
13 | config.guess |
14 | config.status |
15 | config.sub |
16 | -configure |
17 | debian/*.debhelper |
18 | debian/*.debhelper.log |
19 | debian/*.substvars |
20 | @@ -16,12 +13,8 @@ debian/files |
21 | debian/tmp/ |
22 | debian/update-notifier/ |
23 | debian/update-notifier-common/ |
24 | -depcomp |
25 | -install-sh |
26 | -missing |
27 | stamp-h1 |
28 | po/.intltool-merge-cache |
29 | -po/Makefile.in.in |
30 | po/POTFILES |
31 | po/stamp-it |
32 | po/update-notifier.pot |
33 | diff --git a/Makefile.in b/Makefile.in |
34 | new file mode 100644 |
35 | index 0000000..afbcb99 |
36 | --- /dev/null |
37 | +++ b/Makefile.in |
38 | @@ -0,0 +1,808 @@ |
39 | +# Makefile.in generated by automake 1.15 from Makefile.am. |
40 | +# @configure_input@ |
41 | + |
42 | +# Copyright (C) 1994-2014 Free Software Foundation, Inc. |
43 | + |
44 | +# This Makefile.in is free software; the Free Software Foundation |
45 | +# gives unlimited permission to copy and/or distribute it, |
46 | +# with or without modifications, as long as this notice is preserved. |
47 | + |
48 | +# This program is distributed in the hope that it will be useful, |
49 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
50 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
51 | +# PARTICULAR PURPOSE. |
52 | + |
53 | +@SET_MAKE@ |
54 | +VPATH = @srcdir@ |
55 | +am__is_gnu_make = { \ |
56 | + if test -z '$(MAKELEVEL)'; then \ |
57 | + false; \ |
58 | + elif test -n '$(MAKE_HOST)'; then \ |
59 | + true; \ |
60 | + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ |
61 | + true; \ |
62 | + else \ |
63 | + false; \ |
64 | + fi; \ |
65 | +} |
66 | +am__make_running_with_option = \ |
67 | + case $${target_option-} in \ |
68 | + ?) ;; \ |
69 | + *) echo "am__make_running_with_option: internal error: invalid" \ |
70 | + "target option '$${target_option-}' specified" >&2; \ |
71 | + exit 1;; \ |
72 | + esac; \ |
73 | + has_opt=no; \ |
74 | + sane_makeflags=$$MAKEFLAGS; \ |
75 | + if $(am__is_gnu_make); then \ |
76 | + sane_makeflags=$$MFLAGS; \ |
77 | + else \ |
78 | + case $$MAKEFLAGS in \ |
79 | + *\\[\ \ ]*) \ |
80 | + bs=\\; \ |
81 | + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ |
82 | + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ |
83 | + esac; \ |
84 | + fi; \ |
85 | + skip_next=no; \ |
86 | + strip_trailopt () \ |
87 | + { \ |
88 | + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ |
89 | + }; \ |
90 | + for flg in $$sane_makeflags; do \ |
91 | + test $$skip_next = yes && { skip_next=no; continue; }; \ |
92 | + case $$flg in \ |
93 | + *=*|--*) continue;; \ |
94 | + -*I) strip_trailopt 'I'; skip_next=yes;; \ |
95 | + -*I?*) strip_trailopt 'I';; \ |
96 | + -*O) strip_trailopt 'O'; skip_next=yes;; \ |
97 | + -*O?*) strip_trailopt 'O';; \ |
98 | + -*l) strip_trailopt 'l'; skip_next=yes;; \ |
99 | + -*l?*) strip_trailopt 'l';; \ |
100 | + -[dEDm]) skip_next=yes;; \ |
101 | + -[JT]) skip_next=yes;; \ |
102 | + esac; \ |
103 | + case $$flg in \ |
104 | + *$$target_option*) has_opt=yes; break;; \ |
105 | + esac; \ |
106 | + done; \ |
107 | + test $$has_opt = yes |
108 | +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) |
109 | +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) |
110 | +pkgdatadir = $(datadir)/@PACKAGE@ |
111 | +pkgincludedir = $(includedir)/@PACKAGE@ |
112 | +pkglibdir = $(libdir)/@PACKAGE@ |
113 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ |
114 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
115 | +install_sh_DATA = $(install_sh) -c -m 644 |
116 | +install_sh_PROGRAM = $(install_sh) -c |
117 | +install_sh_SCRIPT = $(install_sh) -c |
118 | +INSTALL_HEADER = $(INSTALL_DATA) |
119 | +transform = $(program_transform_name) |
120 | +NORMAL_INSTALL = : |
121 | +PRE_INSTALL = : |
122 | +POST_INSTALL = : |
123 | +NORMAL_UNINSTALL = : |
124 | +PRE_UNINSTALL = : |
125 | +POST_UNINSTALL = : |
126 | +subdir = . |
127 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
128 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
129 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
130 | + $(ACLOCAL_M4) |
131 | +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ |
132 | + $(am__configure_deps) $(am__DIST_COMMON) |
133 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
134 | + configure.lineno config.status.lineno |
135 | +mkinstalldirs = $(install_sh) -d |
136 | +CONFIG_HEADER = config.h |
137 | +CONFIG_CLEAN_FILES = |
138 | +CONFIG_CLEAN_VPATH_FILES = |
139 | +AM_V_P = $(am__v_P_@AM_V@) |
140 | +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) |
141 | +am__v_P_0 = false |
142 | +am__v_P_1 = : |
143 | +AM_V_GEN = $(am__v_GEN_@AM_V@) |
144 | +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
145 | +am__v_GEN_0 = @echo " GEN " $@; |
146 | +am__v_GEN_1 = |
147 | +AM_V_at = $(am__v_at_@AM_V@) |
148 | +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
149 | +am__v_at_0 = @ |
150 | +am__v_at_1 = |
151 | +SOURCES = |
152 | +DIST_SOURCES = |
153 | +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ |
154 | + ctags-recursive dvi-recursive html-recursive info-recursive \ |
155 | + install-data-recursive install-dvi-recursive \ |
156 | + install-exec-recursive install-html-recursive \ |
157 | + install-info-recursive install-pdf-recursive \ |
158 | + install-ps-recursive install-recursive installcheck-recursive \ |
159 | + installdirs-recursive pdf-recursive ps-recursive \ |
160 | + tags-recursive uninstall-recursive |
161 | +am__can_run_installinfo = \ |
162 | + case $$AM_UPDATE_INFO_DIR in \ |
163 | + n|no|NO) false;; \ |
164 | + *) (install-info --version) >/dev/null 2>&1;; \ |
165 | + esac |
166 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
167 | + distclean-recursive maintainer-clean-recursive |
168 | +am__recursive_targets = \ |
169 | + $(RECURSIVE_TARGETS) \ |
170 | + $(RECURSIVE_CLEAN_TARGETS) \ |
171 | + $(am__extra_recursive_targets) |
172 | +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ |
173 | + cscope distdir dist dist-all distcheck |
174 | +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ |
175 | + $(LISP)config.h.in |
176 | +# Read a list of newline-separated strings from the standard input, |
177 | +# and print each of them once, without duplicates. Input order is |
178 | +# *not* preserved. |
179 | +am__uniquify_input = $(AWK) '\ |
180 | + BEGIN { nonempty = 0; } \ |
181 | + { items[$$0] = 1; nonempty = 1; } \ |
182 | + END { if (nonempty) { for (i in items) print i; }; } \ |
183 | +' |
184 | +# Make sure the list of sources is unique. This is necessary because, |
185 | +# e.g., the same source file might be shared among _SOURCES variables |
186 | +# for different programs/libraries. |
187 | +am__define_uniq_tagged_files = \ |
188 | + list='$(am__tagged_files)'; \ |
189 | + unique=`for i in $$list; do \ |
190 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
191 | + done | $(am__uniquify_input)` |
192 | +ETAGS = etags |
193 | +CTAGS = ctags |
194 | +CSCOPE = cscope |
195 | +DIST_SUBDIRS = $(SUBDIRS) |
196 | +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \ |
197 | + COPYING ChangeLog INSTALL NEWS README TODO compile install-sh \ |
198 | + missing |
199 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
200 | +distdir = $(PACKAGE)-$(VERSION) |
201 | +top_distdir = $(distdir) |
202 | +am__remove_distdir = \ |
203 | + if test -d "$(distdir)"; then \ |
204 | + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ |
205 | + && rm -rf "$(distdir)" \ |
206 | + || { sleep 5 && rm -rf "$(distdir)"; }; \ |
207 | + else :; fi |
208 | +am__post_remove_distdir = $(am__remove_distdir) |
209 | +am__relativize = \ |
210 | + dir0=`pwd`; \ |
211 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
212 | + sed_rest='s,^[^/]*/*,,'; \ |
213 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ |
214 | + sed_butlast='s,/*[^/]*$$,,'; \ |
215 | + while test -n "$$dir1"; do \ |
216 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ |
217 | + if test "$$first" != "."; then \ |
218 | + if test "$$first" = ".."; then \ |
219 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ |
220 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ |
221 | + else \ |
222 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ |
223 | + if test "$$first2" = "$$first"; then \ |
224 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ |
225 | + else \ |
226 | + dir2="../$$dir2"; \ |
227 | + fi; \ |
228 | + dir0="$$dir0"/"$$first"; \ |
229 | + fi; \ |
230 | + fi; \ |
231 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ |
232 | + done; \ |
233 | + reldir="$$dir2" |
234 | +DIST_ARCHIVES = $(distdir).tar.gz |
235 | +GZIP_ENV = --best |
236 | +DIST_TARGETS = dist-gzip |
237 | +distuninstallcheck_listfiles = find . -type f -print |
238 | +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
239 | + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
240 | +distcleancheck_listfiles = find . -type f -print |
241 | +ACLOCAL = @ACLOCAL@ |
242 | +ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ |
243 | +ALL_LINGUAS = @ALL_LINGUAS@ |
244 | +AMTAR = @AMTAR@ |
245 | +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
246 | +APP_INDICATOR_CFLAGS = @APP_INDICATOR_CFLAGS@ |
247 | +APP_INDICATOR_LIBS = @APP_INDICATOR_LIBS@ |
248 | +AUTOCONF = @AUTOCONF@ |
249 | +AUTOHEADER = @AUTOHEADER@ |
250 | +AUTOMAKE = @AUTOMAKE@ |
251 | +AWK = @AWK@ |
252 | +CATALOGS = @CATALOGS@ |
253 | +CATOBJEXT = @CATOBJEXT@ |
254 | +CC = @CC@ |
255 | +CCDEPMODE = @CCDEPMODE@ |
256 | +CFLAGS = @CFLAGS@ |
257 | +CPP = @CPP@ |
258 | +CPPFLAGS = @CPPFLAGS@ |
259 | +CYGPATH_W = @CYGPATH_W@ |
260 | +DATADIRNAME = @DATADIRNAME@ |
261 | +DEFS = @DEFS@ |
262 | +DEPDIR = @DEPDIR@ |
263 | +ECHO_C = @ECHO_C@ |
264 | +ECHO_N = @ECHO_N@ |
265 | +ECHO_T = @ECHO_T@ |
266 | +EGREP = @EGREP@ |
267 | +EXEEXT = @EXEEXT@ |
268 | +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
269 | +GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@ |
270 | +GMOFILES = @GMOFILES@ |
271 | +GMSGFMT = @GMSGFMT@ |
272 | +GREP = @GREP@ |
273 | +GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@ |
274 | +INSTALL = @INSTALL@ |
275 | +INSTALL_DATA = @INSTALL_DATA@ |
276 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
277 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
278 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
279 | +INSTOBJEXT = @INSTOBJEXT@ |
280 | +INTLLIBS = @INTLLIBS@ |
281 | +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ |
282 | +INTLTOOL_MERGE = @INTLTOOL_MERGE@ |
283 | +INTLTOOL_PERL = @INTLTOOL_PERL@ |
284 | +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ |
285 | +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ |
286 | +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ |
287 | +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ |
288 | +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ |
289 | +LDFLAGS = @LDFLAGS@ |
290 | +LIBOBJS = @LIBOBJS@ |
291 | +LIBS = @LIBS@ |
292 | +LTLIBOBJS = @LTLIBOBJS@ |
293 | +MAINT = @MAINT@ |
294 | +MAKEINFO = @MAKEINFO@ |
295 | +MKDIR_P = @MKDIR_P@ |
296 | +MKINSTALLDIRS = @MKINSTALLDIRS@ |
297 | +MSGFMT = @MSGFMT@ |
298 | +MSGFMT_OPTS = @MSGFMT_OPTS@ |
299 | +MSGMERGE = @MSGMERGE@ |
300 | +OBJEXT = @OBJEXT@ |
301 | +PACKAGE = @PACKAGE@ |
302 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
303 | +PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ |
304 | +PACKAGE_LIBS = @PACKAGE_LIBS@ |
305 | +PACKAGE_NAME = @PACKAGE_NAME@ |
306 | +PACKAGE_STRING = @PACKAGE_STRING@ |
307 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
308 | +PACKAGE_URL = @PACKAGE_URL@ |
309 | +PACKAGE_VERSION = @PACKAGE_VERSION@ |
310 | +PATH_SEPARATOR = @PATH_SEPARATOR@ |
311 | +PKG_CONFIG = @PKG_CONFIG@ |
312 | +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ |
313 | +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ |
314 | +POFILES = @POFILES@ |
315 | +POSUB = @POSUB@ |
316 | +PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
317 | +PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ |
318 | +SET_MAKE = @SET_MAKE@ |
319 | +SHELL = @SHELL@ |
320 | +STRIP = @STRIP@ |
321 | +USE_NLS = @USE_NLS@ |
322 | +VERSION = @VERSION@ |
323 | +XGETTEXT = @XGETTEXT@ |
324 | +abs_builddir = @abs_builddir@ |
325 | +abs_srcdir = @abs_srcdir@ |
326 | +abs_top_builddir = @abs_top_builddir@ |
327 | +abs_top_srcdir = @abs_top_srcdir@ |
328 | +ac_ct_CC = @ac_ct_CC@ |
329 | +am__include = @am__include@ |
330 | +am__leading_dot = @am__leading_dot@ |
331 | +am__quote = @am__quote@ |
332 | +am__tar = @am__tar@ |
333 | +am__untar = @am__untar@ |
334 | +bindir = @bindir@ |
335 | +build_alias = @build_alias@ |
336 | +builddir = @builddir@ |
337 | +datadir = @datadir@ |
338 | +datarootdir = @datarootdir@ |
339 | +docdir = @docdir@ |
340 | +dvidir = @dvidir@ |
341 | +exec_prefix = @exec_prefix@ |
342 | +gsettingsschemadir = @gsettingsschemadir@ |
343 | +host_alias = @host_alias@ |
344 | +htmldir = @htmldir@ |
345 | +includedir = @includedir@ |
346 | +infodir = @infodir@ |
347 | +install_sh = @install_sh@ |
348 | +intltool__v_merge_options_ = @intltool__v_merge_options_@ |
349 | +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ |
350 | +libdir = @libdir@ |
351 | +libexecdir = @libexecdir@ |
352 | +localedir = @localedir@ |
353 | +localstatedir = @localstatedir@ |
354 | +mandir = @mandir@ |
355 | +mkdir_p = @mkdir_p@ |
356 | +oldincludedir = @oldincludedir@ |
357 | +pdfdir = @pdfdir@ |
358 | +prefix = @prefix@ |
359 | +program_transform_name = @program_transform_name@ |
360 | +psdir = @psdir@ |
361 | +runstatedir = @runstatedir@ |
362 | +sbindir = @sbindir@ |
363 | +sharedstatedir = @sharedstatedir@ |
364 | +srcdir = @srcdir@ |
365 | +sysconfdir = @sysconfdir@ |
366 | +target_alias = @target_alias@ |
367 | +top_build_prefix = @top_build_prefix@ |
368 | +top_builddir = @top_builddir@ |
369 | +top_srcdir = @top_srcdir@ |
370 | +SUBDIRS = data src pixmaps ui po |
371 | +EXTRA_DIST = debian README |
372 | +all: config.h |
373 | + $(MAKE) $(AM_MAKEFLAGS) all-recursive |
374 | + |
375 | +.SUFFIXES: |
376 | +am--refresh: Makefile |
377 | + @: |
378 | +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) |
379 | + @for dep in $?; do \ |
380 | + case '$(am__configure_deps)' in \ |
381 | + *$$dep*) \ |
382 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ |
383 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ |
384 | + && exit 0; \ |
385 | + exit 1;; \ |
386 | + esac; \ |
387 | + done; \ |
388 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ |
389 | + $(am__cd) $(top_srcdir) && \ |
390 | + $(AUTOMAKE) --gnu Makefile |
391 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
392 | + @case '$?' in \ |
393 | + *config.status*) \ |
394 | + echo ' $(SHELL) ./config.status'; \ |
395 | + $(SHELL) ./config.status;; \ |
396 | + *) \ |
397 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ |
398 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ |
399 | + esac; |
400 | + |
401 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
402 | + $(SHELL) ./config.status --recheck |
403 | + |
404 | +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
405 | + $(am__cd) $(srcdir) && $(AUTOCONF) |
406 | +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) |
407 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
408 | +$(am__aclocal_m4_deps): |
409 | + |
410 | +config.h: stamp-h1 |
411 | + @test -f $@ || rm -f stamp-h1 |
412 | + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 |
413 | + |
414 | +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
415 | + @rm -f stamp-h1 |
416 | + cd $(top_builddir) && $(SHELL) ./config.status config.h |
417 | +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
418 | + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
419 | + rm -f stamp-h1 |
420 | + touch $@ |
421 | + |
422 | +distclean-hdr: |
423 | + -rm -f config.h stamp-h1 |
424 | + |
425 | +# This directory's subdirectories are mostly independent; you can cd |
426 | +# into them and run 'make' without going through this Makefile. |
427 | +# To change the values of 'make' variables: instead of editing Makefiles, |
428 | +# (1) if the variable is set in 'config.status', edit 'config.status' |
429 | +# (which will cause the Makefiles to be regenerated when you run 'make'); |
430 | +# (2) otherwise, pass the desired values on the 'make' command line. |
431 | +$(am__recursive_targets): |
432 | + @fail=; \ |
433 | + if $(am__make_keepgoing); then \ |
434 | + failcom='fail=yes'; \ |
435 | + else \ |
436 | + failcom='exit 1'; \ |
437 | + fi; \ |
438 | + dot_seen=no; \ |
439 | + target=`echo $@ | sed s/-recursive//`; \ |
440 | + case "$@" in \ |
441 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
442 | + *) list='$(SUBDIRS)' ;; \ |
443 | + esac; \ |
444 | + for subdir in $$list; do \ |
445 | + echo "Making $$target in $$subdir"; \ |
446 | + if test "$$subdir" = "."; then \ |
447 | + dot_seen=yes; \ |
448 | + local_target="$$target-am"; \ |
449 | + else \ |
450 | + local_target="$$target"; \ |
451 | + fi; \ |
452 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
453 | + || eval $$failcom; \ |
454 | + done; \ |
455 | + if test "$$dot_seen" = "no"; then \ |
456 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
457 | + fi; test -z "$$fail" |
458 | + |
459 | +ID: $(am__tagged_files) |
460 | + $(am__define_uniq_tagged_files); mkid -fID $$unique |
461 | +tags: tags-recursive |
462 | +TAGS: tags |
463 | + |
464 | +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
465 | + set x; \ |
466 | + here=`pwd`; \ |
467 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
468 | + include_option=--etags-include; \ |
469 | + empty_fix=.; \ |
470 | + else \ |
471 | + include_option=--include; \ |
472 | + empty_fix=; \ |
473 | + fi; \ |
474 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
475 | + if test "$$subdir" = .; then :; else \ |
476 | + test ! -f $$subdir/TAGS || \ |
477 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
478 | + fi; \ |
479 | + done; \ |
480 | + $(am__define_uniq_tagged_files); \ |
481 | + shift; \ |
482 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
483 | + test -n "$$unique" || unique=$$empty_fix; \ |
484 | + if test $$# -gt 0; then \ |
485 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
486 | + "$$@" $$unique; \ |
487 | + else \ |
488 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
489 | + $$unique; \ |
490 | + fi; \ |
491 | + fi |
492 | +ctags: ctags-recursive |
493 | + |
494 | +CTAGS: ctags |
495 | +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) |
496 | + $(am__define_uniq_tagged_files); \ |
497 | + test -z "$(CTAGS_ARGS)$$unique" \ |
498 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
499 | + $$unique |
500 | + |
501 | +GTAGS: |
502 | + here=`$(am__cd) $(top_builddir) && pwd` \ |
503 | + && $(am__cd) $(top_srcdir) \ |
504 | + && gtags -i $(GTAGS_ARGS) "$$here" |
505 | +cscope: cscope.files |
506 | + test ! -s cscope.files \ |
507 | + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) |
508 | +clean-cscope: |
509 | + -rm -f cscope.files |
510 | +cscope.files: clean-cscope cscopelist |
511 | +cscopelist: cscopelist-recursive |
512 | + |
513 | +cscopelist-am: $(am__tagged_files) |
514 | + list='$(am__tagged_files)'; \ |
515 | + case "$(srcdir)" in \ |
516 | + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ |
517 | + *) sdir=$(subdir)/$(srcdir) ;; \ |
518 | + esac; \ |
519 | + for i in $$list; do \ |
520 | + if test -f "$$i"; then \ |
521 | + echo "$(subdir)/$$i"; \ |
522 | + else \ |
523 | + echo "$$sdir/$$i"; \ |
524 | + fi; \ |
525 | + done >> $(top_builddir)/cscope.files |
526 | + |
527 | +distclean-tags: |
528 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
529 | + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
530 | + |
531 | +distdir: $(DISTFILES) |
532 | + $(am__remove_distdir) |
533 | + test -d "$(distdir)" || mkdir "$(distdir)" |
534 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
535 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
536 | + list='$(DISTFILES)'; \ |
537 | + dist_files=`for file in $$list; do echo $$file; done | \ |
538 | + sed -e "s|^$$srcdirstrip/||;t" \ |
539 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
540 | + case $$dist_files in \ |
541 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ |
542 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ |
543 | + sort -u` ;; \ |
544 | + esac; \ |
545 | + for file in $$dist_files; do \ |
546 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
547 | + if test -d $$d/$$file; then \ |
548 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ |
549 | + if test -d "$(distdir)/$$file"; then \ |
550 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
551 | + fi; \ |
552 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
553 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ |
554 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
555 | + fi; \ |
556 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ |
557 | + else \ |
558 | + test -f "$(distdir)/$$file" \ |
559 | + || cp -p $$d/$$file "$(distdir)/$$file" \ |
560 | + || exit 1; \ |
561 | + fi; \ |
562 | + done |
563 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
564 | + if test "$$subdir" = .; then :; else \ |
565 | + $(am__make_dryrun) \ |
566 | + || test -d "$(distdir)/$$subdir" \ |
567 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ |
568 | + || exit 1; \ |
569 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
570 | + $(am__relativize); \ |
571 | + new_distdir=$$reldir; \ |
572 | + dir1=$$subdir; dir2="$(top_distdir)"; \ |
573 | + $(am__relativize); \ |
574 | + new_top_distdir=$$reldir; \ |
575 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ |
576 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ |
577 | + ($(am__cd) $$subdir && \ |
578 | + $(MAKE) $(AM_MAKEFLAGS) \ |
579 | + top_distdir="$$new_top_distdir" \ |
580 | + distdir="$$new_distdir" \ |
581 | + am__remove_distdir=: \ |
582 | + am__skip_length_check=: \ |
583 | + am__skip_mode_fix=: \ |
584 | + distdir) \ |
585 | + || exit 1; \ |
586 | + fi; \ |
587 | + done |
588 | + -test -n "$(am__skip_mode_fix)" \ |
589 | + || find "$(distdir)" -type d ! -perm -755 \ |
590 | + -exec chmod u+rwx,go+rx {} \; -o \ |
591 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
592 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
593 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
594 | + || chmod -R a+r "$(distdir)" |
595 | +dist-gzip: distdir |
596 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
597 | + $(am__post_remove_distdir) |
598 | + |
599 | +dist-bzip2: distdir |
600 | + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
601 | + $(am__post_remove_distdir) |
602 | + |
603 | +dist-lzip: distdir |
604 | + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
605 | + $(am__post_remove_distdir) |
606 | + |
607 | +dist-xz: distdir |
608 | + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
609 | + $(am__post_remove_distdir) |
610 | + |
611 | +dist-tarZ: distdir |
612 | + @echo WARNING: "Support for distribution archives compressed with" \ |
613 | + "legacy program 'compress' is deprecated." >&2 |
614 | + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 |
615 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
616 | + $(am__post_remove_distdir) |
617 | + |
618 | +dist-shar: distdir |
619 | + @echo WARNING: "Support for shar distribution archives is" \ |
620 | + "deprecated." >&2 |
621 | + @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 |
622 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
623 | + $(am__post_remove_distdir) |
624 | + |
625 | +dist-zip: distdir |
626 | + -rm -f $(distdir).zip |
627 | + zip -rq $(distdir).zip $(distdir) |
628 | + $(am__post_remove_distdir) |
629 | + |
630 | +dist dist-all: |
631 | + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' |
632 | + $(am__post_remove_distdir) |
633 | + |
634 | +# This target untars the dist file and tries a VPATH configuration. Then |
635 | +# it guarantees that the distribution is self-contained by making another |
636 | +# tarfile. |
637 | +distcheck: dist |
638 | + case '$(DIST_ARCHIVES)' in \ |
639 | + *.tar.gz*) \ |
640 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
641 | + *.tar.bz2*) \ |
642 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
643 | + *.tar.lz*) \ |
644 | + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ |
645 | + *.tar.xz*) \ |
646 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
647 | + *.tar.Z*) \ |
648 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
649 | + *.shar.gz*) \ |
650 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ |
651 | + *.zip*) \ |
652 | + unzip $(distdir).zip ;;\ |
653 | + esac |
654 | + chmod -R a-w $(distdir) |
655 | + chmod u+w $(distdir) |
656 | + mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst |
657 | + chmod a-w $(distdir) |
658 | + test -d $(distdir)/_build || exit 0; \ |
659 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
660 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
661 | + && am__cwd=`pwd` \ |
662 | + && $(am__cd) $(distdir)/_build/sub \ |
663 | + && ../../configure \ |
664 | + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
665 | + $(DISTCHECK_CONFIGURE_FLAGS) \ |
666 | + --srcdir=../.. --prefix="$$dc_install_base" \ |
667 | + && $(MAKE) $(AM_MAKEFLAGS) \ |
668 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
669 | + && $(MAKE) $(AM_MAKEFLAGS) check \ |
670 | + && $(MAKE) $(AM_MAKEFLAGS) install \ |
671 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
672 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
673 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ |
674 | + distuninstallcheck \ |
675 | + && chmod -R a-w "$$dc_install_base" \ |
676 | + && ({ \ |
677 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ |
678 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ |
679 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ |
680 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ |
681 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ |
682 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ |
683 | + && rm -rf "$$dc_destdir" \ |
684 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ |
685 | + && rm -rf $(DIST_ARCHIVES) \ |
686 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
687 | + && cd "$$am__cwd" \ |
688 | + || exit 1 |
689 | + $(am__post_remove_distdir) |
690 | + @(echo "$(distdir) archives ready for distribution: "; \ |
691 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
692 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
693 | +distuninstallcheck: |
694 | + @test -n '$(distuninstallcheck_dir)' || { \ |
695 | + echo 'ERROR: trying to run $@ with an empty' \ |
696 | + '$$(distuninstallcheck_dir)' >&2; \ |
697 | + exit 1; \ |
698 | + }; \ |
699 | + $(am__cd) '$(distuninstallcheck_dir)' || { \ |
700 | + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ |
701 | + exit 1; \ |
702 | + }; \ |
703 | + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ |
704 | + || { echo "ERROR: files left after uninstall:" ; \ |
705 | + if test -n "$(DESTDIR)"; then \ |
706 | + echo " (check DESTDIR support)"; \ |
707 | + fi ; \ |
708 | + $(distuninstallcheck_listfiles) ; \ |
709 | + exit 1; } >&2 |
710 | +distcleancheck: distclean |
711 | + @if test '$(srcdir)' = . ; then \ |
712 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ |
713 | + exit 1 ; \ |
714 | + fi |
715 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ |
716 | + || { echo "ERROR: files left in build directory after distclean:" ; \ |
717 | + $(distcleancheck_listfiles) ; \ |
718 | + exit 1; } >&2 |
719 | +check-am: all-am |
720 | +check: check-recursive |
721 | +all-am: Makefile config.h |
722 | +installdirs: installdirs-recursive |
723 | +installdirs-am: |
724 | +install: install-recursive |
725 | +install-exec: install-exec-recursive |
726 | +install-data: install-data-recursive |
727 | +uninstall: uninstall-recursive |
728 | + |
729 | +install-am: all-am |
730 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
731 | + |
732 | +installcheck: installcheck-recursive |
733 | +install-strip: |
734 | + if test -z '$(STRIP)'; then \ |
735 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
736 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
737 | + install; \ |
738 | + else \ |
739 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
740 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
741 | + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ |
742 | + fi |
743 | +mostlyclean-generic: |
744 | + |
745 | +clean-generic: |
746 | + |
747 | +distclean-generic: |
748 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
749 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
750 | + |
751 | +maintainer-clean-generic: |
752 | + @echo "This command is intended for maintainers to use" |
753 | + @echo "it deletes files that may require special tools to rebuild." |
754 | +clean: clean-recursive |
755 | + |
756 | +clean-am: clean-generic mostlyclean-am |
757 | + |
758 | +distclean: distclean-recursive |
759 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
760 | + -rm -f Makefile |
761 | +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags |
762 | + |
763 | +dvi: dvi-recursive |
764 | + |
765 | +dvi-am: |
766 | + |
767 | +html: html-recursive |
768 | + |
769 | +html-am: |
770 | + |
771 | +info: info-recursive |
772 | + |
773 | +info-am: |
774 | + |
775 | +install-data-am: |
776 | + |
777 | +install-dvi: install-dvi-recursive |
778 | + |
779 | +install-dvi-am: |
780 | + |
781 | +install-exec-am: |
782 | + |
783 | +install-html: install-html-recursive |
784 | + |
785 | +install-html-am: |
786 | + |
787 | +install-info: install-info-recursive |
788 | + |
789 | +install-info-am: |
790 | + |
791 | +install-man: |
792 | + |
793 | +install-pdf: install-pdf-recursive |
794 | + |
795 | +install-pdf-am: |
796 | + |
797 | +install-ps: install-ps-recursive |
798 | + |
799 | +install-ps-am: |
800 | + |
801 | +installcheck-am: |
802 | + |
803 | +maintainer-clean: maintainer-clean-recursive |
804 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
805 | + -rm -rf $(top_srcdir)/autom4te.cache |
806 | + -rm -f Makefile |
807 | +maintainer-clean-am: distclean-am maintainer-clean-generic |
808 | + |
809 | +mostlyclean: mostlyclean-recursive |
810 | + |
811 | +mostlyclean-am: mostlyclean-generic |
812 | + |
813 | +pdf: pdf-recursive |
814 | + |
815 | +pdf-am: |
816 | + |
817 | +ps: ps-recursive |
818 | + |
819 | +ps-am: |
820 | + |
821 | +uninstall-am: |
822 | + |
823 | +.MAKE: $(am__recursive_targets) all install-am install-strip |
824 | + |
825 | +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ |
826 | + am--refresh check check-am clean clean-cscope clean-generic \ |
827 | + cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ |
828 | + dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ |
829 | + distcheck distclean distclean-generic distclean-hdr \ |
830 | + distclean-tags distcleancheck distdir distuninstallcheck dvi \ |
831 | + dvi-am html html-am info info-am install install-am \ |
832 | + install-data install-data-am install-dvi install-dvi-am \ |
833 | + install-exec install-exec-am install-html install-html-am \ |
834 | + install-info install-info-am install-man install-pdf \ |
835 | + install-pdf-am install-ps install-ps-am install-strip \ |
836 | + installcheck installcheck-am installdirs installdirs-am \ |
837 | + maintainer-clean maintainer-clean-generic mostlyclean \ |
838 | + mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ |
839 | + uninstall-am |
840 | + |
841 | +.PRECIOUS: Makefile |
842 | + |
843 | + |
844 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. |
845 | +# Otherwise a system limit (for SysV at least) may be exceeded. |
846 | +.NOEXPORT: |
847 | diff --git a/aclocal.m4 b/aclocal.m4 |
848 | new file mode 100644 |
849 | index 0000000..f191955 |
850 | --- /dev/null |
851 | +++ b/aclocal.m4 |
852 | @@ -0,0 +1,2290 @@ |
853 | +# generated automatically by aclocal 1.15 -*- Autoconf -*- |
854 | + |
855 | +# Copyright (C) 1996-2014 Free Software Foundation, Inc. |
856 | + |
857 | +# This file is free software; the Free Software Foundation |
858 | +# gives unlimited permission to copy and/or distribute it, |
859 | +# with or without modifications, as long as this notice is preserved. |
860 | + |
861 | +# This program is distributed in the hope that it will be useful, |
862 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
863 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
864 | +# PARTICULAR PURPOSE. |
865 | + |
866 | +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) |
867 | +m4_ifndef([AC_AUTOCONF_VERSION], |
868 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
869 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
870 | +[m4_warning([this file was generated for autoconf 2.69. |
871 | +You have another version of autoconf. It may work, but is not guaranteed to. |
872 | +If you have problems, you may need to regenerate the build system entirely. |
873 | +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
874 | + |
875 | +# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
876 | +# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
877 | +# |
878 | +# This file is free software, distributed under the terms of the GNU |
879 | +# General Public License. As a special exception to the GNU General |
880 | +# Public License, this file may be distributed as part of a program |
881 | +# that contains a configuration script generated by Autoconf, under |
882 | +# the same distribution terms as the rest of that program. |
883 | +# |
884 | +# This file can be copied and used freely without restrictions. It can |
885 | +# be used in projects which are not available under the GNU Public License |
886 | +# but which still want to provide support for the GNU gettext functionality. |
887 | +# |
888 | +# Macro to add for using GNU gettext. |
889 | +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
890 | +# |
891 | +# Modified to never use included libintl. |
892 | +# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
893 | +# |
894 | +# Major rework to remove unused code |
895 | +# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
896 | +# |
897 | +# Added better handling of ALL_LINGUAS from GNU gettext version |
898 | +# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
899 | +# |
900 | +# Modified to require ngettext |
901 | +# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
902 | +# |
903 | +# We need this here as well, since someone might use autoconf-2.5x |
904 | +# to configure GLib then an older version to configure a package |
905 | +# using AM_GLIB_GNU_GETTEXT |
906 | +AC_PREREQ(2.53) |
907 | + |
908 | +dnl |
909 | +dnl We go to great lengths to make sure that aclocal won't |
910 | +dnl try to pull in the installed version of these macros |
911 | +dnl when running aclocal in the glib directory. |
912 | +dnl |
913 | +m4_copy([AC_DEFUN],[glib_DEFUN]) |
914 | +m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
915 | +dnl |
916 | +dnl At the end, if we're not within glib, we'll define the public |
917 | +dnl definitions in terms of our private definitions. |
918 | +dnl |
919 | + |
920 | +# GLIB_LC_MESSAGES |
921 | +#-------------------- |
922 | +glib_DEFUN([GLIB_LC_MESSAGES], |
923 | + [AC_CHECK_HEADERS([locale.h]) |
924 | + if test $ac_cv_header_locale_h = yes; then |
925 | + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
926 | + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
927 | + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
928 | + if test $am_cv_val_LC_MESSAGES = yes; then |
929 | + AC_DEFINE(HAVE_LC_MESSAGES, 1, |
930 | + [Define if your <locale.h> file defines LC_MESSAGES.]) |
931 | + fi |
932 | + fi]) |
933 | + |
934 | +# GLIB_PATH_PROG_WITH_TEST |
935 | +#---------------------------- |
936 | +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
937 | +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
938 | +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
939 | +[# Extract the first word of "$2", so it can be a program name with args. |
940 | +set dummy $2; ac_word=[$]2 |
941 | +AC_MSG_CHECKING([for $ac_word]) |
942 | +AC_CACHE_VAL(ac_cv_path_$1, |
943 | +[case "[$]$1" in |
944 | + /*) |
945 | + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
946 | + ;; |
947 | + *) |
948 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
949 | + for ac_dir in ifelse([$5], , $PATH, [$5]); do |
950 | + test -z "$ac_dir" && ac_dir=. |
951 | + if test -f $ac_dir/$ac_word; then |
952 | + if [$3]; then |
953 | + ac_cv_path_$1="$ac_dir/$ac_word" |
954 | + break |
955 | + fi |
956 | + fi |
957 | + done |
958 | + IFS="$ac_save_ifs" |
959 | +dnl If no 4th arg is given, leave the cache variable unset, |
960 | +dnl so AC_PATH_PROGS will keep looking. |
961 | +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
962 | +])dnl |
963 | + ;; |
964 | +esac])dnl |
965 | +$1="$ac_cv_path_$1" |
966 | +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
967 | + AC_MSG_RESULT([$]$1) |
968 | +else |
969 | + AC_MSG_RESULT(no) |
970 | +fi |
971 | +AC_SUBST($1)dnl |
972 | +]) |
973 | + |
974 | +# GLIB_WITH_NLS |
975 | +#----------------- |
976 | +glib_DEFUN([GLIB_WITH_NLS], |
977 | + dnl NLS is obligatory |
978 | + [USE_NLS=yes |
979 | + AC_SUBST(USE_NLS) |
980 | + |
981 | + gt_cv_have_gettext=no |
982 | + |
983 | + CATOBJEXT=NONE |
984 | + XGETTEXT=: |
985 | + INTLLIBS= |
986 | + |
987 | + AC_CHECK_HEADER(libintl.h, |
988 | + [gt_cv_func_dgettext_libintl="no" |
989 | + libintl_extra_libs="" |
990 | + |
991 | + # |
992 | + # First check in libc |
993 | + # |
994 | + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, |
995 | + [AC_TRY_LINK([ |
996 | +#include <libintl.h> |
997 | +], |
998 | + [return !ngettext ("","", 1)], |
999 | + gt_cv_func_ngettext_libc=yes, |
1000 | + gt_cv_func_ngettext_libc=no) |
1001 | + ]) |
1002 | + |
1003 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1004 | + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
1005 | + [AC_TRY_LINK([ |
1006 | +#include <libintl.h> |
1007 | +], |
1008 | + [return !dgettext ("","")], |
1009 | + gt_cv_func_dgettext_libc=yes, |
1010 | + gt_cv_func_dgettext_libc=no) |
1011 | + ]) |
1012 | + fi |
1013 | + |
1014 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1015 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1016 | + fi |
1017 | + |
1018 | + # |
1019 | + # If we don't have everything we want, check in libintl |
1020 | + # |
1021 | + if test "$gt_cv_func_dgettext_libc" != "yes" \ |
1022 | + || test "$gt_cv_func_ngettext_libc" != "yes" \ |
1023 | + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
1024 | + |
1025 | + AC_CHECK_LIB(intl, bindtextdomain, |
1026 | + [AC_CHECK_LIB(intl, ngettext, |
1027 | + [AC_CHECK_LIB(intl, dgettext, |
1028 | + gt_cv_func_dgettext_libintl=yes)])]) |
1029 | + |
1030 | + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
1031 | + AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
1032 | + AC_MSG_RESULT([]) |
1033 | + AC_CHECK_LIB(intl, ngettext, |
1034 | + [AC_CHECK_LIB(intl, dcgettext, |
1035 | + [gt_cv_func_dgettext_libintl=yes |
1036 | + libintl_extra_libs=-liconv], |
1037 | + :,-liconv)], |
1038 | + :,-liconv) |
1039 | + fi |
1040 | + |
1041 | + # |
1042 | + # If we found libintl, then check in it for bind_textdomain_codeset(); |
1043 | + # we'll prefer libc if neither have bind_textdomain_codeset(), |
1044 | + # and both have dgettext and ngettext |
1045 | + # |
1046 | + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
1047 | + glib_save_LIBS="$LIBS" |
1048 | + LIBS="$LIBS -lintl $libintl_extra_libs" |
1049 | + unset ac_cv_func_bind_textdomain_codeset |
1050 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1051 | + LIBS="$glib_save_LIBS" |
1052 | + |
1053 | + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
1054 | + gt_cv_func_dgettext_libc=no |
1055 | + else |
1056 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1057 | + && test "$gt_cv_func_ngettext_libc" = "yes"; then |
1058 | + gt_cv_func_dgettext_libintl=no |
1059 | + fi |
1060 | + fi |
1061 | + fi |
1062 | + fi |
1063 | + |
1064 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1065 | + || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1066 | + gt_cv_have_gettext=yes |
1067 | + fi |
1068 | + |
1069 | + if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1070 | + INTLLIBS="-lintl $libintl_extra_libs" |
1071 | + fi |
1072 | + |
1073 | + if test "$gt_cv_have_gettext" = "yes"; then |
1074 | + AC_DEFINE(HAVE_GETTEXT,1, |
1075 | + [Define if the GNU gettext() function is already present or preinstalled.]) |
1076 | + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
1077 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
1078 | + if test "$MSGFMT" != "no"; then |
1079 | + glib_save_LIBS="$LIBS" |
1080 | + LIBS="$LIBS $INTLLIBS" |
1081 | + AC_CHECK_FUNCS(dcgettext) |
1082 | + MSGFMT_OPTS= |
1083 | + AC_MSG_CHECKING([if msgfmt accepts -c]) |
1084 | + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ |
1085 | +msgid "" |
1086 | +msgstr "" |
1087 | +"Content-Type: text/plain; charset=UTF-8\n" |
1088 | +"Project-Id-Version: test 1.0\n" |
1089 | +"PO-Revision-Date: 2007-02-15 12:01+0100\n" |
1090 | +"Last-Translator: test <foo@bar.xx>\n" |
1091 | +"Language-Team: C <LL@li.org>\n" |
1092 | +"MIME-Version: 1.0\n" |
1093 | +"Content-Transfer-Encoding: 8bit\n" |
1094 | +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) |
1095 | + AC_SUBST(MSGFMT_OPTS) |
1096 | + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1097 | + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
1098 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
1099 | + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
1100 | + return _nl_msg_cat_cntr], |
1101 | + [CATOBJEXT=.gmo |
1102 | + DATADIRNAME=share], |
1103 | + [case $host in |
1104 | + *-*-solaris*) |
1105 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
1106 | + dnl GNU format message catalog is always supported, |
1107 | + dnl since both are added to the libc all together. |
1108 | + dnl Hence, we'd like to go with DATADIRNAME=share and |
1109 | + dnl and CATOBJEXT=.gmo in this case. |
1110 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
1111 | + [CATOBJEXT=.gmo |
1112 | + DATADIRNAME=share], |
1113 | + [CATOBJEXT=.mo |
1114 | + DATADIRNAME=lib]) |
1115 | + ;; |
1116 | + *-*-openbsd*) |
1117 | + CATOBJEXT=.mo |
1118 | + DATADIRNAME=share |
1119 | + ;; |
1120 | + *) |
1121 | + CATOBJEXT=.mo |
1122 | + DATADIRNAME=lib |
1123 | + ;; |
1124 | + esac]) |
1125 | + LIBS="$glib_save_LIBS" |
1126 | + INSTOBJEXT=.mo |
1127 | + else |
1128 | + gt_cv_have_gettext=no |
1129 | + fi |
1130 | + fi |
1131 | + ]) |
1132 | + |
1133 | + if test "$gt_cv_have_gettext" = "yes" ; then |
1134 | + AC_DEFINE(ENABLE_NLS, 1, |
1135 | + [always defined to indicate that i18n is enabled]) |
1136 | + fi |
1137 | + |
1138 | + dnl Test whether we really found GNU xgettext. |
1139 | + if test "$XGETTEXT" != ":"; then |
1140 | + dnl If it is not GNU xgettext we define it as : so that the |
1141 | + dnl Makefiles still can work. |
1142 | + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
1143 | + : ; |
1144 | + else |
1145 | + AC_MSG_RESULT( |
1146 | + [found xgettext program is not GNU xgettext; ignore it]) |
1147 | + XGETTEXT=":" |
1148 | + fi |
1149 | + fi |
1150 | + |
1151 | + # We need to process the po/ directory. |
1152 | + POSUB=po |
1153 | + |
1154 | + AC_OUTPUT_COMMANDS( |
1155 | + [case "$CONFIG_FILES" in *po/Makefile.in*) |
1156 | + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
1157 | + esac]) |
1158 | + |
1159 | + dnl These rules are solely for the distribution goal. While doing this |
1160 | + dnl we only have to keep exactly one list of the available catalogs |
1161 | + dnl in configure.ac. |
1162 | + for lang in $ALL_LINGUAS; do |
1163 | + GMOFILES="$GMOFILES $lang.gmo" |
1164 | + POFILES="$POFILES $lang.po" |
1165 | + done |
1166 | + |
1167 | + dnl Make all variables we use known to autoconf. |
1168 | + AC_SUBST(CATALOGS) |
1169 | + AC_SUBST(CATOBJEXT) |
1170 | + AC_SUBST(DATADIRNAME) |
1171 | + AC_SUBST(GMOFILES) |
1172 | + AC_SUBST(INSTOBJEXT) |
1173 | + AC_SUBST(INTLLIBS) |
1174 | + AC_SUBST(PO_IN_DATADIR_TRUE) |
1175 | + AC_SUBST(PO_IN_DATADIR_FALSE) |
1176 | + AC_SUBST(POFILES) |
1177 | + AC_SUBST(POSUB) |
1178 | + ]) |
1179 | + |
1180 | +# AM_GLIB_GNU_GETTEXT |
1181 | +# ------------------- |
1182 | +# Do checks necessary for use of gettext. If a suitable implementation |
1183 | +# of gettext is found in either in libintl or in the C library, |
1184 | +# it will set INTLLIBS to the libraries needed for use of gettext |
1185 | +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
1186 | +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
1187 | +# on various variables needed by the Makefile.in.in installed by |
1188 | +# glib-gettextize. |
1189 | +dnl |
1190 | +AU_DEFUN([GLIB_GNU_GETTEXT], |
1191 | + [AC_REQUIRE([AC_PROG_CC])dnl |
1192 | + |
1193 | + GLIB_LC_MESSAGES |
1194 | + GLIB_WITH_NLS |
1195 | + |
1196 | + if test "$gt_cv_have_gettext" = "yes"; then |
1197 | + if test "x$ALL_LINGUAS" = "x"; then |
1198 | + LINGUAS= |
1199 | + else |
1200 | + AC_MSG_CHECKING(for catalogs to be installed) |
1201 | + NEW_LINGUAS= |
1202 | + for presentlang in $ALL_LINGUAS; do |
1203 | + useit=no |
1204 | + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
1205 | + desiredlanguages="$LINGUAS" |
1206 | + else |
1207 | + desiredlanguages="$ALL_LINGUAS" |
1208 | + fi |
1209 | + for desiredlang in $desiredlanguages; do |
1210 | + # Use the presentlang catalog if desiredlang is |
1211 | + # a. equal to presentlang, or |
1212 | + # b. a variant of presentlang (because in this case, |
1213 | + # presentlang can be used as a fallback for messages |
1214 | + # which are not translated in the desiredlang catalog). |
1215 | + case "$desiredlang" in |
1216 | + "$presentlang"*) useit=yes;; |
1217 | + esac |
1218 | + done |
1219 | + if test $useit = yes; then |
1220 | + NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
1221 | + fi |
1222 | + done |
1223 | + LINGUAS=$NEW_LINGUAS |
1224 | + AC_MSG_RESULT($LINGUAS) |
1225 | + fi |
1226 | + |
1227 | + dnl Construct list of names of catalog files to be constructed. |
1228 | + if test -n "$LINGUAS"; then |
1229 | + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
1230 | + fi |
1231 | + fi |
1232 | + |
1233 | + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
1234 | + dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
1235 | + dnl Try to locate is. |
1236 | + MKINSTALLDIRS= |
1237 | + if test -n "$ac_aux_dir"; then |
1238 | + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
1239 | + fi |
1240 | + if test -z "$MKINSTALLDIRS"; then |
1241 | + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
1242 | + fi |
1243 | + AC_SUBST(MKINSTALLDIRS) |
1244 | + |
1245 | + dnl Generate list of files to be processed by xgettext which will |
1246 | + dnl be included in po/Makefile. |
1247 | + test -d po || mkdir po |
1248 | + if test "x$srcdir" != "x."; then |
1249 | + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
1250 | + posrcprefix="$srcdir/" |
1251 | + else |
1252 | + posrcprefix="../$srcdir/" |
1253 | + fi |
1254 | + else |
1255 | + posrcprefix="../" |
1256 | + fi |
1257 | + rm -f po/POTFILES |
1258 | + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
1259 | + < $srcdir/po/POTFILES.in > po/POTFILES |
1260 | + ], |
1261 | + [[$0: This macro is deprecated. You should use upstream gettext instead.]]) |
1262 | + |
1263 | +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
1264 | +# ------------------------------- |
1265 | +# Define VARIABLE to the location where catalog files will |
1266 | +# be installed by po/Makefile. |
1267 | +glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
1268 | +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
1269 | +glib_save_prefix="$prefix" |
1270 | +glib_save_exec_prefix="$exec_prefix" |
1271 | +glib_save_datarootdir="$datarootdir" |
1272 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1273 | +test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
1274 | +datarootdir=`eval echo "${datarootdir}"` |
1275 | +if test "x$CATOBJEXT" = "x.mo" ; then |
1276 | + localedir=`eval echo "${libdir}/locale"` |
1277 | +else |
1278 | + localedir=`eval echo "${datadir}/locale"` |
1279 | +fi |
1280 | +prefix="$glib_save_prefix" |
1281 | +exec_prefix="$glib_save_exec_prefix" |
1282 | +datarootdir="$glib_save_datarootdir" |
1283 | +AC_DEFINE_UNQUOTED($1, "$localedir", |
1284 | + [Define the location where the catalogs will be installed]) |
1285 | +]) |
1286 | + |
1287 | +dnl |
1288 | +dnl Now the definitions that aclocal will find |
1289 | +dnl |
1290 | +ifdef(glib_configure_ac,[],[ |
1291 | +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
1292 | +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
1293 | +])dnl |
1294 | + |
1295 | +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) |
1296 | +# |
1297 | +# Create a temporary file with TEST-FILE as its contents and pass the |
1298 | +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with |
1299 | +# 0 and perform ACTION-IF-FAIL for any other exit status. |
1300 | +AC_DEFUN([GLIB_RUN_PROG], |
1301 | +[cat >conftest.foo <<_ACEOF |
1302 | +$2 |
1303 | +_ACEOF |
1304 | +if AC_RUN_LOG([$1 conftest.foo]); then |
1305 | + m4_ifval([$3], [$3], [:]) |
1306 | +m4_ifvaln([$4], [else $4])dnl |
1307 | +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD |
1308 | +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD |
1309 | +fi]) |
1310 | + |
1311 | + |
1312 | +# gnome-common.m4 |
1313 | +# |
1314 | +# serial 3 |
1315 | +# |
1316 | + |
1317 | +dnl GNOME_COMMON_INIT |
1318 | + |
1319 | +AU_DEFUN([GNOME_COMMON_INIT], |
1320 | +[ |
1321 | + dnl this macro should come after AC_CONFIG_MACRO_DIR |
1322 | + AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0]) |
1323 | + |
1324 | + dnl ensure that when the Automake generated makefile calls aclocal, |
1325 | + dnl it honours the $ACLOCAL_FLAGS environment variable |
1326 | + ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" |
1327 | + if test -n "$ac_macro_dir"; then |
1328 | + ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" |
1329 | + fi |
1330 | + |
1331 | + AC_SUBST([ACLOCAL_AMFLAGS]) |
1332 | +], |
1333 | +[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}" |
1334 | +in your top-level Makefile.am, instead, where "m4" is the macro directory set |
1335 | +with AC_CONFIG_MACRO_DIR() in your configure.ac]]) |
1336 | + |
1337 | +AU_DEFUN([GNOME_DEBUG_CHECK], |
1338 | +[ |
1339 | + AX_CHECK_ENABLE_DEBUG([no],[GNOME_ENABLE_DEBUG]) |
1340 | +], |
1341 | +[[$0: This macro is deprecated. You should use AX_CHECK_ENABLE_DEBUG instead and |
1342 | +replace uses of GNOME_ENABLE_DEBUG with ENABLE_DEBUG. |
1343 | +See: http://www.gnu.org/software/autoconf-archive/ax_check_enable_debug.html#ax_check_enable_debug]]) |
1344 | + |
1345 | +dnl GNOME_MAINTAINER_MODE_DEFINES () |
1346 | +dnl define DISABLE_DEPRECATED |
1347 | +dnl |
1348 | +AU_DEFUN([GNOME_MAINTAINER_MODE_DEFINES], |
1349 | +[ |
1350 | + AC_REQUIRE([AM_MAINTAINER_MODE]) |
1351 | + |
1352 | + DISABLE_DEPRECATED="" |
1353 | + if test $USE_MAINTAINER_MODE = yes; then |
1354 | + DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP" |
1355 | + for DOMAIN in $DOMAINS; do |
1356 | + DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" |
1357 | + done |
1358 | + fi |
1359 | + |
1360 | + AC_SUBST(DISABLE_DEPRECATED) |
1361 | +], |
1362 | +[[$0: This macro is deprecated. All of the modules it disables deprecations for |
1363 | +are obsolete. Remove it and all uses of DISABLE_DEPRECATED.]]) |
1364 | + |
1365 | +dnl GLIB_GSETTINGS |
1366 | +dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether |
1367 | +dnl the schema should be compiled |
1368 | +dnl |
1369 | + |
1370 | +AC_DEFUN([GLIB_GSETTINGS], |
1371 | +[ |
1372 | + m4_pattern_allow([AM_V_GEN]) |
1373 | + AC_ARG_ENABLE(schemas-compile, |
1374 | + AS_HELP_STRING([--disable-schemas-compile], |
1375 | + [Disable regeneration of gschemas.compiled on install]), |
1376 | + [case ${enableval} in |
1377 | + yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; |
1378 | + no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; |
1379 | + *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; |
1380 | + esac]) |
1381 | + AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) |
1382 | + PKG_PROG_PKG_CONFIG([0.16]) |
1383 | + AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) |
1384 | + if test x$cross_compiling != xyes; then |
1385 | + GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` |
1386 | + else |
1387 | + AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) |
1388 | + fi |
1389 | + AC_SUBST(GLIB_COMPILE_SCHEMAS) |
1390 | + if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then |
1391 | + ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) |
1392 | + else |
1393 | + ifelse([$1],,[:],[$1]) |
1394 | + fi |
1395 | + |
1396 | + GSETTINGS_RULES=' |
1397 | +.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas |
1398 | + |
1399 | +mostlyclean-am: clean-gsettings-schemas |
1400 | + |
1401 | +gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) |
1402 | + |
1403 | +%.gschema.valid: %.gschema.xml $(gsettings__enum_file) |
1404 | + $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p [$](@D) && touch [$]@ |
1405 | + |
1406 | +all-am: $(gsettings_SCHEMAS:.xml=.valid) |
1407 | +uninstall-am: uninstall-gsettings-schemas |
1408 | +install-data-am: install-gsettings-schemas |
1409 | + |
1410 | +.SECONDARY: $(gsettings_SCHEMAS) |
1411 | + |
1412 | +install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) |
1413 | + @$(NORMAL_INSTALL) |
1414 | + if test -n "$^"; then \ |
1415 | + test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ |
1416 | + $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ |
1417 | + test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ |
1418 | + fi |
1419 | + |
1420 | +uninstall-gsettings-schemas: |
1421 | + @$(NORMAL_UNINSTALL) |
1422 | + @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ |
1423 | + files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ |
1424 | + test -n "$$files" || exit 0; \ |
1425 | + echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ |
1426 | + cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files |
1427 | + test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) |
1428 | + |
1429 | +clean-gsettings-schemas: |
1430 | + rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) |
1431 | + |
1432 | +ifdef gsettings_ENUM_NAMESPACE |
1433 | +$(gsettings__enum_file): $(gsettings_ENUM_FILES) |
1434 | + $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@ |
1435 | +endif |
1436 | +' |
1437 | + _GSETTINGS_SUBST(GSETTINGS_RULES) |
1438 | +]) |
1439 | + |
1440 | +dnl _GSETTINGS_SUBST(VARIABLE) |
1441 | +dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
1442 | +AC_DEFUN([_GSETTINGS_SUBST], |
1443 | +[ |
1444 | +AC_SUBST([$1]) |
1445 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
1446 | +] |
1447 | +) |
1448 | + |
1449 | + |
1450 | +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) |
1451 | +# serial 42 IT_PROG_INTLTOOL |
1452 | +AC_DEFUN([IT_PROG_INTLTOOL], [ |
1453 | +AC_PREREQ([2.50])dnl |
1454 | +AC_REQUIRE([AM_NLS])dnl |
1455 | + |
1456 | +case "$am__api_version" in |
1457 | + 1.[01234]) |
1458 | + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) |
1459 | + ;; |
1460 | + *) |
1461 | + ;; |
1462 | +esac |
1463 | + |
1464 | +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1465 | +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` |
1466 | +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1467 | +if test -n "$1"; then |
1468 | + AC_MSG_CHECKING([for intltool >= $1]) |
1469 | + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) |
1470 | + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
1471 | + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) |
1472 | +fi |
1473 | + |
1474 | +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) |
1475 | +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) |
1476 | +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) |
1477 | +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
1478 | + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) |
1479 | +fi |
1480 | + |
1481 | +if test -z "$AM_DEFAULT_VERBOSITY"; then |
1482 | + AM_DEFAULT_VERBOSITY=1 |
1483 | +fi |
1484 | +AC_SUBST([AM_DEFAULT_VERBOSITY]) |
1485 | + |
1486 | +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' |
1487 | +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' |
1488 | +INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' |
1489 | +AC_SUBST(INTLTOOL_V_MERGE) |
1490 | +AC_SUBST(INTLTOOL__v_MERGE_) |
1491 | +AC_SUBST(INTLTOOL__v_MERGE_0) |
1492 | + |
1493 | +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' |
1494 | +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' |
1495 | +intltool__v_merge_options_0='-q' |
1496 | +AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) |
1497 | +AC_SUBST(intltool__v_merge_options_) |
1498 | +AC_SUBST(intltool__v_merge_options_0) |
1499 | + |
1500 | + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1501 | +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1502 | + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1503 | + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1504 | + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' |
1505 | + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1506 | + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1507 | + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1508 | +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1509 | + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1510 | + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1511 | +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then |
1512 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' |
1513 | +else |
1514 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' |
1515 | +fi |
1516 | + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1517 | + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1518 | + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1519 | + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1520 | + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1521 | + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1522 | + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1523 | + |
1524 | +_IT_SUBST(INTLTOOL_DESKTOP_RULE) |
1525 | +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) |
1526 | +_IT_SUBST(INTLTOOL_KEYS_RULE) |
1527 | +_IT_SUBST(INTLTOOL_PROP_RULE) |
1528 | +_IT_SUBST(INTLTOOL_OAF_RULE) |
1529 | +_IT_SUBST(INTLTOOL_PONG_RULE) |
1530 | +_IT_SUBST(INTLTOOL_SERVER_RULE) |
1531 | +_IT_SUBST(INTLTOOL_SHEET_RULE) |
1532 | +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) |
1533 | +_IT_SUBST(INTLTOOL_UI_RULE) |
1534 | +_IT_SUBST(INTLTOOL_XAM_RULE) |
1535 | +_IT_SUBST(INTLTOOL_KBD_RULE) |
1536 | +_IT_SUBST(INTLTOOL_XML_RULE) |
1537 | +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) |
1538 | +_IT_SUBST(INTLTOOL_CAVES_RULE) |
1539 | +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) |
1540 | +_IT_SUBST(INTLTOOL_THEME_RULE) |
1541 | +_IT_SUBST(INTLTOOL_SERVICE_RULE) |
1542 | +_IT_SUBST(INTLTOOL_POLICY_RULE) |
1543 | + |
1544 | +# Check the gettext tools to make sure they are GNU |
1545 | +AC_PATH_PROG(XGETTEXT, xgettext) |
1546 | +AC_PATH_PROG(MSGMERGE, msgmerge) |
1547 | +AC_PATH_PROG(MSGFMT, msgfmt) |
1548 | +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1549 | +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
1550 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
1551 | +fi |
1552 | +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
1553 | +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
1554 | +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
1555 | +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
1556 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
1557 | +fi |
1558 | + |
1559 | +AC_PATH_PROG(INTLTOOL_PERL, perl) |
1560 | +if test -z "$INTLTOOL_PERL"; then |
1561 | + AC_MSG_ERROR([perl not found]) |
1562 | +fi |
1563 | +AC_MSG_CHECKING([for perl >= 5.8.1]) |
1564 | +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
1565 | +if test $? -ne 0; then |
1566 | + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
1567 | +else |
1568 | + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` |
1569 | + AC_MSG_RESULT([$IT_PERL_VERSION]) |
1570 | +fi |
1571 | +if test "x$2" != "xno-xml"; then |
1572 | + AC_MSG_CHECKING([for XML::Parser]) |
1573 | + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
1574 | + AC_MSG_RESULT([ok]) |
1575 | + else |
1576 | + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
1577 | + fi |
1578 | +fi |
1579 | + |
1580 | +# Substitute ALL_LINGUAS so we can use it in po/Makefile |
1581 | +AC_SUBST(ALL_LINGUAS) |
1582 | + |
1583 | +IT_PO_SUBDIR([po]) |
1584 | + |
1585 | +]) |
1586 | + |
1587 | + |
1588 | +# IT_PO_SUBDIR(DIRNAME) |
1589 | +# --------------------- |
1590 | +# All po subdirs have to be declared with this macro; the subdir "po" is |
1591 | +# declared by IT_PROG_INTLTOOL. |
1592 | +# |
1593 | +AC_DEFUN([IT_PO_SUBDIR], |
1594 | +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
1595 | +dnl |
1596 | +dnl The following CONFIG_COMMANDS should be executed at the very end |
1597 | +dnl of config.status. |
1598 | +AC_CONFIG_COMMANDS_PRE([ |
1599 | + AC_CONFIG_COMMANDS([$1/stamp-it], [ |
1600 | + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then |
1601 | + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) |
1602 | + fi |
1603 | + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" |
1604 | + >"$1/stamp-it.tmp" |
1605 | + [sed '/^#/d |
1606 | + s/^[[].*] *// |
1607 | + /^[ ]*$/d |
1608 | + '"s|^| $ac_top_srcdir/|" \ |
1609 | + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" |
1610 | + ] |
1611 | + [sed '/^POTFILES =/,/[^\\]$/ { |
1612 | + /^POTFILES =/!d |
1613 | + r $1/POTFILES |
1614 | + } |
1615 | + ' "$1/Makefile.in" >"$1/Makefile"] |
1616 | + rm -f "$1/Makefile.tmp" |
1617 | + mv "$1/stamp-it.tmp" "$1/stamp-it" |
1618 | + ]) |
1619 | +])dnl |
1620 | +]) |
1621 | + |
1622 | +# _IT_SUBST(VARIABLE) |
1623 | +# ------------------- |
1624 | +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
1625 | +# |
1626 | +AC_DEFUN([_IT_SUBST], |
1627 | +[ |
1628 | +AC_SUBST([$1]) |
1629 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
1630 | +] |
1631 | +) |
1632 | + |
1633 | +# deprecated macros |
1634 | +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) |
1635 | +# A hint is needed for aclocal from Automake <= 1.9.4: |
1636 | +# AC_DEFUN([AC_PROG_INTLTOOL], ...) |
1637 | + |
1638 | + |
1639 | +# nls.m4 serial 5 (gettext-0.18) |
1640 | +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation, |
1641 | +dnl Inc. |
1642 | +dnl This file is free software; the Free Software Foundation |
1643 | +dnl gives unlimited permission to copy and/or distribute it, |
1644 | +dnl with or without modifications, as long as this notice is preserved. |
1645 | +dnl |
1646 | +dnl This file can be used in projects which are not available under |
1647 | +dnl the GNU General Public License or the GNU Library General Public |
1648 | +dnl License but which still want to provide support for the GNU gettext |
1649 | +dnl functionality. |
1650 | +dnl Please note that the actual code of the GNU gettext library is covered |
1651 | +dnl by the GNU Library General Public License, and the rest of the GNU |
1652 | +dnl gettext package is covered by the GNU General Public License. |
1653 | +dnl They are *not* in the public domain. |
1654 | + |
1655 | +dnl Authors: |
1656 | +dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
1657 | +dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
1658 | + |
1659 | +AC_PREREQ([2.50]) |
1660 | + |
1661 | +AC_DEFUN([AM_NLS], |
1662 | +[ |
1663 | + AC_MSG_CHECKING([whether NLS is requested]) |
1664 | + dnl Default is enabled NLS |
1665 | + AC_ARG_ENABLE([nls], |
1666 | + [ --disable-nls do not use Native Language Support], |
1667 | + USE_NLS=$enableval, USE_NLS=yes) |
1668 | + AC_MSG_RESULT([$USE_NLS]) |
1669 | + AC_SUBST([USE_NLS]) |
1670 | +]) |
1671 | + |
1672 | +dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
1673 | +dnl serial 11 (pkg-config-0.29.1) |
1674 | +dnl |
1675 | +dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
1676 | +dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> |
1677 | +dnl |
1678 | +dnl This program is free software; you can redistribute it and/or modify |
1679 | +dnl it under the terms of the GNU General Public License as published by |
1680 | +dnl the Free Software Foundation; either version 2 of the License, or |
1681 | +dnl (at your option) any later version. |
1682 | +dnl |
1683 | +dnl This program is distributed in the hope that it will be useful, but |
1684 | +dnl WITHOUT ANY WARRANTY; without even the implied warranty of |
1685 | +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1686 | +dnl General Public License for more details. |
1687 | +dnl |
1688 | +dnl You should have received a copy of the GNU General Public License |
1689 | +dnl along with this program; if not, write to the Free Software |
1690 | +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
1691 | +dnl 02111-1307, USA. |
1692 | +dnl |
1693 | +dnl As a special exception to the GNU General Public License, if you |
1694 | +dnl distribute this file as part of a program that contains a |
1695 | +dnl configuration script generated by Autoconf, you may include it under |
1696 | +dnl the same distribution terms that you use for the rest of that |
1697 | +dnl program. |
1698 | + |
1699 | +dnl PKG_PREREQ(MIN-VERSION) |
1700 | +dnl ----------------------- |
1701 | +dnl Since: 0.29 |
1702 | +dnl |
1703 | +dnl Verify that the version of the pkg-config macros are at least |
1704 | +dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's |
1705 | +dnl installed version of pkg-config, this checks the developer's version |
1706 | +dnl of pkg.m4 when generating configure. |
1707 | +dnl |
1708 | +dnl To ensure that this macro is defined, also add: |
1709 | +dnl m4_ifndef([PKG_PREREQ], |
1710 | +dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) |
1711 | +dnl |
1712 | +dnl See the "Since" comment for each macro you use to see what version |
1713 | +dnl of the macros you require. |
1714 | +m4_defun([PKG_PREREQ], |
1715 | +[m4_define([PKG_MACROS_VERSION], [0.29.1]) |
1716 | +m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, |
1717 | + [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) |
1718 | +])dnl PKG_PREREQ |
1719 | + |
1720 | +dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
1721 | +dnl ---------------------------------- |
1722 | +dnl Since: 0.16 |
1723 | +dnl |
1724 | +dnl Search for the pkg-config tool and set the PKG_CONFIG variable to |
1725 | +dnl first found in the path. Checks that the version of pkg-config found |
1726 | +dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is |
1727 | +dnl used since that's the first version where most current features of |
1728 | +dnl pkg-config existed. |
1729 | +AC_DEFUN([PKG_PROG_PKG_CONFIG], |
1730 | +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
1731 | +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) |
1732 | +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) |
1733 | +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
1734 | +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
1735 | +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) |
1736 | + |
1737 | +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
1738 | + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
1739 | +fi |
1740 | +if test -n "$PKG_CONFIG"; then |
1741 | + _pkg_min_version=m4_default([$1], [0.9.0]) |
1742 | + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
1743 | + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
1744 | + AC_MSG_RESULT([yes]) |
1745 | + else |
1746 | + AC_MSG_RESULT([no]) |
1747 | + PKG_CONFIG="" |
1748 | + fi |
1749 | +fi[]dnl |
1750 | +])dnl PKG_PROG_PKG_CONFIG |
1751 | + |
1752 | +dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
1753 | +dnl ------------------------------------------------------------------- |
1754 | +dnl Since: 0.18 |
1755 | +dnl |
1756 | +dnl Check to see whether a particular set of modules exists. Similar to |
1757 | +dnl PKG_CHECK_MODULES(), but does not set variables or print errors. |
1758 | +dnl |
1759 | +dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
1760 | +dnl only at the first occurence in configure.ac, so if the first place |
1761 | +dnl it's called might be skipped (such as if it is within an "if", you |
1762 | +dnl have to call PKG_CHECK_EXISTS manually |
1763 | +AC_DEFUN([PKG_CHECK_EXISTS], |
1764 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
1765 | +if test -n "$PKG_CONFIG" && \ |
1766 | + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
1767 | + m4_default([$2], [:]) |
1768 | +m4_ifvaln([$3], [else |
1769 | + $3])dnl |
1770 | +fi]) |
1771 | + |
1772 | +dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
1773 | +dnl --------------------------------------------- |
1774 | +dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting |
1775 | +dnl pkg_failed based on the result. |
1776 | +m4_define([_PKG_CONFIG], |
1777 | +[if test -n "$$1"; then |
1778 | + pkg_cv_[]$1="$$1" |
1779 | + elif test -n "$PKG_CONFIG"; then |
1780 | + PKG_CHECK_EXISTS([$3], |
1781 | + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` |
1782 | + test "x$?" != "x0" && pkg_failed=yes ], |
1783 | + [pkg_failed=yes]) |
1784 | + else |
1785 | + pkg_failed=untried |
1786 | +fi[]dnl |
1787 | +])dnl _PKG_CONFIG |
1788 | + |
1789 | +dnl _PKG_SHORT_ERRORS_SUPPORTED |
1790 | +dnl --------------------------- |
1791 | +dnl Internal check to see if pkg-config supports short errors. |
1792 | +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
1793 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
1794 | +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
1795 | + _pkg_short_errors_supported=yes |
1796 | +else |
1797 | + _pkg_short_errors_supported=no |
1798 | +fi[]dnl |
1799 | +])dnl _PKG_SHORT_ERRORS_SUPPORTED |
1800 | + |
1801 | + |
1802 | +dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
1803 | +dnl [ACTION-IF-NOT-FOUND]) |
1804 | +dnl -------------------------------------------------------------- |
1805 | +dnl Since: 0.4.0 |
1806 | +dnl |
1807 | +dnl Note that if there is a possibility the first call to |
1808 | +dnl PKG_CHECK_MODULES might not happen, you should be sure to include an |
1809 | +dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
1810 | +AC_DEFUN([PKG_CHECK_MODULES], |
1811 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
1812 | +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
1813 | +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
1814 | + |
1815 | +pkg_failed=no |
1816 | +AC_MSG_CHECKING([for $1]) |
1817 | + |
1818 | +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
1819 | +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
1820 | + |
1821 | +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS |
1822 | +and $1[]_LIBS to avoid the need to call pkg-config. |
1823 | +See the pkg-config man page for more details.]) |
1824 | + |
1825 | +if test $pkg_failed = yes; then |
1826 | + AC_MSG_RESULT([no]) |
1827 | + _PKG_SHORT_ERRORS_SUPPORTED |
1828 | + if test $_pkg_short_errors_supported = yes; then |
1829 | + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` |
1830 | + else |
1831 | + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` |
1832 | + fi |
1833 | + # Put the nasty error message in config.log where it belongs |
1834 | + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
1835 | + |
1836 | + m4_default([$4], [AC_MSG_ERROR( |
1837 | +[Package requirements ($2) were not met: |
1838 | + |
1839 | +$$1_PKG_ERRORS |
1840 | + |
1841 | +Consider adjusting the PKG_CONFIG_PATH environment variable if you |
1842 | +installed software in a non-standard prefix. |
1843 | + |
1844 | +_PKG_TEXT])[]dnl |
1845 | + ]) |
1846 | +elif test $pkg_failed = untried; then |
1847 | + AC_MSG_RESULT([no]) |
1848 | + m4_default([$4], [AC_MSG_FAILURE( |
1849 | +[The pkg-config script could not be found or is too old. Make sure it |
1850 | +is in your PATH or set the PKG_CONFIG environment variable to the full |
1851 | +path to pkg-config. |
1852 | + |
1853 | +_PKG_TEXT |
1854 | + |
1855 | +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl |
1856 | + ]) |
1857 | +else |
1858 | + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
1859 | + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
1860 | + AC_MSG_RESULT([yes]) |
1861 | + $3 |
1862 | +fi[]dnl |
1863 | +])dnl PKG_CHECK_MODULES |
1864 | + |
1865 | + |
1866 | +dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
1867 | +dnl [ACTION-IF-NOT-FOUND]) |
1868 | +dnl --------------------------------------------------------------------- |
1869 | +dnl Since: 0.29 |
1870 | +dnl |
1871 | +dnl Checks for existence of MODULES and gathers its build flags with |
1872 | +dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags |
1873 | +dnl and VARIABLE-PREFIX_LIBS from --libs. |
1874 | +dnl |
1875 | +dnl Note that if there is a possibility the first call to |
1876 | +dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to |
1877 | +dnl include an explicit call to PKG_PROG_PKG_CONFIG in your |
1878 | +dnl configure.ac. |
1879 | +AC_DEFUN([PKG_CHECK_MODULES_STATIC], |
1880 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
1881 | +_save_PKG_CONFIG=$PKG_CONFIG |
1882 | +PKG_CONFIG="$PKG_CONFIG --static" |
1883 | +PKG_CHECK_MODULES($@) |
1884 | +PKG_CONFIG=$_save_PKG_CONFIG[]dnl |
1885 | +])dnl PKG_CHECK_MODULES_STATIC |
1886 | + |
1887 | + |
1888 | +dnl PKG_INSTALLDIR([DIRECTORY]) |
1889 | +dnl ------------------------- |
1890 | +dnl Since: 0.27 |
1891 | +dnl |
1892 | +dnl Substitutes the variable pkgconfigdir as the location where a module |
1893 | +dnl should install pkg-config .pc files. By default the directory is |
1894 | +dnl $libdir/pkgconfig, but the default can be changed by passing |
1895 | +dnl DIRECTORY. The user can override through the --with-pkgconfigdir |
1896 | +dnl parameter. |
1897 | +AC_DEFUN([PKG_INSTALLDIR], |
1898 | +[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) |
1899 | +m4_pushdef([pkg_description], |
1900 | + [pkg-config installation directory @<:@]pkg_default[@:>@]) |
1901 | +AC_ARG_WITH([pkgconfigdir], |
1902 | + [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, |
1903 | + [with_pkgconfigdir=]pkg_default) |
1904 | +AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) |
1905 | +m4_popdef([pkg_default]) |
1906 | +m4_popdef([pkg_description]) |
1907 | +])dnl PKG_INSTALLDIR |
1908 | + |
1909 | + |
1910 | +dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) |
1911 | +dnl -------------------------------- |
1912 | +dnl Since: 0.27 |
1913 | +dnl |
1914 | +dnl Substitutes the variable noarch_pkgconfigdir as the location where a |
1915 | +dnl module should install arch-independent pkg-config .pc files. By |
1916 | +dnl default the directory is $datadir/pkgconfig, but the default can be |
1917 | +dnl changed by passing DIRECTORY. The user can override through the |
1918 | +dnl --with-noarch-pkgconfigdir parameter. |
1919 | +AC_DEFUN([PKG_NOARCH_INSTALLDIR], |
1920 | +[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) |
1921 | +m4_pushdef([pkg_description], |
1922 | + [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) |
1923 | +AC_ARG_WITH([noarch-pkgconfigdir], |
1924 | + [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, |
1925 | + [with_noarch_pkgconfigdir=]pkg_default) |
1926 | +AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) |
1927 | +m4_popdef([pkg_default]) |
1928 | +m4_popdef([pkg_description]) |
1929 | +])dnl PKG_NOARCH_INSTALLDIR |
1930 | + |
1931 | + |
1932 | +dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, |
1933 | +dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
1934 | +dnl ------------------------------------------- |
1935 | +dnl Since: 0.28 |
1936 | +dnl |
1937 | +dnl Retrieves the value of the pkg-config variable for the given module. |
1938 | +AC_DEFUN([PKG_CHECK_VAR], |
1939 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
1940 | +AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl |
1941 | + |
1942 | +_PKG_CONFIG([$1], [variable="][$3]["], [$2]) |
1943 | +AS_VAR_COPY([$1], [pkg_cv_][$1]) |
1944 | + |
1945 | +AS_VAR_IF([$1], [""], [$5], [$4])dnl |
1946 | +])dnl PKG_CHECK_VAR |
1947 | + |
1948 | +# Copyright (C) 2002-2014 Free Software Foundation, Inc. |
1949 | +# |
1950 | +# This file is free software; the Free Software Foundation |
1951 | +# gives unlimited permission to copy and/or distribute it, |
1952 | +# with or without modifications, as long as this notice is preserved. |
1953 | + |
1954 | +# AM_AUTOMAKE_VERSION(VERSION) |
1955 | +# ---------------------------- |
1956 | +# Automake X.Y traces this macro to ensure aclocal.m4 has been |
1957 | +# generated from the m4 files accompanying Automake X.Y. |
1958 | +# (This private macro should not be called outside this file.) |
1959 | +AC_DEFUN([AM_AUTOMAKE_VERSION], |
1960 | +[am__api_version='1.15' |
1961 | +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
1962 | +dnl require some minimum version. Point them to the right macro. |
1963 | +m4_if([$1], [1.15], [], |
1964 | + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
1965 | +]) |
1966 | + |
1967 | +# _AM_AUTOCONF_VERSION(VERSION) |
1968 | +# ----------------------------- |
1969 | +# aclocal traces this macro to find the Autoconf version. |
1970 | +# This is a private macro too. Using m4_define simplifies |
1971 | +# the logic in aclocal, which can simply ignore this definition. |
1972 | +m4_define([_AM_AUTOCONF_VERSION], []) |
1973 | + |
1974 | +# AM_SET_CURRENT_AUTOMAKE_VERSION |
1975 | +# ------------------------------- |
1976 | +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
1977 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
1978 | +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
1979 | +[AM_AUTOMAKE_VERSION([1.15])dnl |
1980 | +m4_ifndef([AC_AUTOCONF_VERSION], |
1981 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
1982 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
1983 | + |
1984 | +# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
1985 | + |
1986 | +# Copyright (C) 2001-2014 Free Software Foundation, Inc. |
1987 | +# |
1988 | +# This file is free software; the Free Software Foundation |
1989 | +# gives unlimited permission to copy and/or distribute it, |
1990 | +# with or without modifications, as long as this notice is preserved. |
1991 | + |
1992 | +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
1993 | +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
1994 | +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. |
1995 | +# |
1996 | +# Of course, Automake must honor this variable whenever it calls a |
1997 | +# tool from the auxiliary directory. The problem is that $srcdir (and |
1998 | +# therefore $ac_aux_dir as well) can be either absolute or relative, |
1999 | +# depending on how configure is run. This is pretty annoying, since |
2000 | +# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
2001 | +# source directory, any form will work fine, but in subdirectories a |
2002 | +# relative path needs to be adjusted first. |
2003 | +# |
2004 | +# $ac_aux_dir/missing |
2005 | +# fails when called from a subdirectory if $ac_aux_dir is relative |
2006 | +# $top_srcdir/$ac_aux_dir/missing |
2007 | +# fails if $ac_aux_dir is absolute, |
2008 | +# fails when called from a subdirectory in a VPATH build with |
2009 | +# a relative $ac_aux_dir |
2010 | +# |
2011 | +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
2012 | +# are both prefixed by $srcdir. In an in-source build this is usually |
2013 | +# harmless because $srcdir is '.', but things will broke when you |
2014 | +# start a VPATH build or use an absolute $srcdir. |
2015 | +# |
2016 | +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
2017 | +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
2018 | +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
2019 | +# and then we would define $MISSING as |
2020 | +# MISSING="\${SHELL} $am_aux_dir/missing" |
2021 | +# This will work as long as MISSING is not called from configure, because |
2022 | +# unfortunately $(top_srcdir) has no meaning in configure. |
2023 | +# However there are other variables, like CC, which are often used in |
2024 | +# configure, and could therefore not use this "fixed" $ac_aux_dir. |
2025 | +# |
2026 | +# Another solution, used here, is to always expand $ac_aux_dir to an |
2027 | +# absolute PATH. The drawback is that using absolute paths prevent a |
2028 | +# configured tree to be moved without reconfiguration. |
2029 | + |
2030 | +AC_DEFUN([AM_AUX_DIR_EXPAND], |
2031 | +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
2032 | +# Expand $ac_aux_dir to an absolute path. |
2033 | +am_aux_dir=`cd "$ac_aux_dir" && pwd` |
2034 | +]) |
2035 | + |
2036 | +# AM_CONDITIONAL -*- Autoconf -*- |
2037 | + |
2038 | +# Copyright (C) 1997-2014 Free Software Foundation, Inc. |
2039 | +# |
2040 | +# This file is free software; the Free Software Foundation |
2041 | +# gives unlimited permission to copy and/or distribute it, |
2042 | +# with or without modifications, as long as this notice is preserved. |
2043 | + |
2044 | +# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
2045 | +# ------------------------------------- |
2046 | +# Define a conditional. |
2047 | +AC_DEFUN([AM_CONDITIONAL], |
2048 | +[AC_PREREQ([2.52])dnl |
2049 | + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
2050 | + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
2051 | +AC_SUBST([$1_TRUE])dnl |
2052 | +AC_SUBST([$1_FALSE])dnl |
2053 | +_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
2054 | +_AM_SUBST_NOTMAKE([$1_FALSE])dnl |
2055 | +m4_define([_AM_COND_VALUE_$1], [$2])dnl |
2056 | +if $2; then |
2057 | + $1_TRUE= |
2058 | + $1_FALSE='#' |
2059 | +else |
2060 | + $1_TRUE='#' |
2061 | + $1_FALSE= |
2062 | +fi |
2063 | +AC_CONFIG_COMMANDS_PRE( |
2064 | +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
2065 | + AC_MSG_ERROR([[conditional "$1" was never defined. |
2066 | +Usually this means the macro was only invoked conditionally.]]) |
2067 | +fi])]) |
2068 | + |
2069 | +# Copyright (C) 1999-2014 Free Software Foundation, Inc. |
2070 | +# |
2071 | +# This file is free software; the Free Software Foundation |
2072 | +# gives unlimited permission to copy and/or distribute it, |
2073 | +# with or without modifications, as long as this notice is preserved. |
2074 | + |
2075 | + |
2076 | +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
2077 | +# written in clear, in which case automake, when reading aclocal.m4, |
2078 | +# will think it sees a *use*, and therefore will trigger all it's |
2079 | +# C support machinery. Also note that it means that autoscan, seeing |
2080 | +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
2081 | + |
2082 | + |
2083 | +# _AM_DEPENDENCIES(NAME) |
2084 | +# ---------------------- |
2085 | +# See how the compiler implements dependency checking. |
2086 | +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". |
2087 | +# We try a few techniques and use that to set a single cache variable. |
2088 | +# |
2089 | +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
2090 | +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
2091 | +# dependency, and given that the user is not expected to run this macro, |
2092 | +# just rely on AC_PROG_CC. |
2093 | +AC_DEFUN([_AM_DEPENDENCIES], |
2094 | +[AC_REQUIRE([AM_SET_DEPDIR])dnl |
2095 | +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
2096 | +AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
2097 | +AC_REQUIRE([AM_DEP_TRACK])dnl |
2098 | + |
2099 | +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], |
2100 | + [$1], [CXX], [depcc="$CXX" am_compiler_list=], |
2101 | + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
2102 | + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], |
2103 | + [$1], [UPC], [depcc="$UPC" am_compiler_list=], |
2104 | + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
2105 | + [depcc="$$1" am_compiler_list=]) |
2106 | + |
2107 | +AC_CACHE_CHECK([dependency style of $depcc], |
2108 | + [am_cv_$1_dependencies_compiler_type], |
2109 | +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2110 | + # We make a subdir and do the tests there. Otherwise we can end up |
2111 | + # making bogus files that we don't know about and never remove. For |
2112 | + # instance it was reported that on HP-UX the gcc test will end up |
2113 | + # making a dummy file named 'D' -- because '-MD' means "put the output |
2114 | + # in D". |
2115 | + rm -rf conftest.dir |
2116 | + mkdir conftest.dir |
2117 | + # Copy depcomp to subdir because otherwise we won't find it if we're |
2118 | + # using a relative directory. |
2119 | + cp "$am_depcomp" conftest.dir |
2120 | + cd conftest.dir |
2121 | + # We will build objects and dependencies in a subdirectory because |
2122 | + # it helps to detect inapplicable dependency modes. For instance |
2123 | + # both Tru64's cc and ICC support -MD to output dependencies as a |
2124 | + # side effect of compilation, but ICC will put the dependencies in |
2125 | + # the current directory while Tru64 will put them in the object |
2126 | + # directory. |
2127 | + mkdir sub |
2128 | + |
2129 | + am_cv_$1_dependencies_compiler_type=none |
2130 | + if test "$am_compiler_list" = ""; then |
2131 | + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
2132 | + fi |
2133 | + am__universal=false |
2134 | + m4_case([$1], [CC], |
2135 | + [case " $depcc " in #( |
2136 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; |
2137 | + esac], |
2138 | + [CXX], |
2139 | + [case " $depcc " in #( |
2140 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; |
2141 | + esac]) |
2142 | + |
2143 | + for depmode in $am_compiler_list; do |
2144 | + # Setup a source with many dependencies, because some compilers |
2145 | + # like to wrap large dependency lists on column 80 (with \), and |
2146 | + # we should not choose a depcomp mode which is confused by this. |
2147 | + # |
2148 | + # We need to recreate these files for each test, as the compiler may |
2149 | + # overwrite some of them when testing with obscure command lines. |
2150 | + # This happens at least with the AIX C compiler. |
2151 | + : > sub/conftest.c |
2152 | + for i in 1 2 3 4 5 6; do |
2153 | + echo '#include "conftst'$i'.h"' >> sub/conftest.c |
2154 | + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
2155 | + # Solaris 10 /bin/sh. |
2156 | + echo '/* dummy */' > sub/conftst$i.h |
2157 | + done |
2158 | + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
2159 | + |
2160 | + # We check with '-c' and '-o' for the sake of the "dashmstdout" |
2161 | + # mode. It turns out that the SunPro C++ compiler does not properly |
2162 | + # handle '-M -o', and we need to detect this. Also, some Intel |
2163 | + # versions had trouble with output in subdirs. |
2164 | + am__obj=sub/conftest.${OBJEXT-o} |
2165 | + am__minus_obj="-o $am__obj" |
2166 | + case $depmode in |
2167 | + gcc) |
2168 | + # This depmode causes a compiler race in universal mode. |
2169 | + test "$am__universal" = false || continue |
2170 | + ;; |
2171 | + nosideeffect) |
2172 | + # After this tag, mechanisms are not by side-effect, so they'll |
2173 | + # only be used when explicitly requested. |
2174 | + if test "x$enable_dependency_tracking" = xyes; then |
2175 | + continue |
2176 | + else |
2177 | + break |
2178 | + fi |
2179 | + ;; |
2180 | + msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
2181 | + # This compiler won't grok '-c -o', but also, the minuso test has |
2182 | + # not run yet. These depmodes are late enough in the game, and |
2183 | + # so weak that their functioning should not be impacted. |
2184 | + am__obj=conftest.${OBJEXT-o} |
2185 | + am__minus_obj= |
2186 | + ;; |
2187 | + none) break ;; |
2188 | + esac |
2189 | + if depmode=$depmode \ |
2190 | + source=sub/conftest.c object=$am__obj \ |
2191 | + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
2192 | + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2193 | + >/dev/null 2>conftest.err && |
2194 | + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2195 | + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
2196 | + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2197 | + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
2198 | + # icc doesn't choke on unknown options, it will just issue warnings |
2199 | + # or remarks (even with -Werror). So we grep stderr for any message |
2200 | + # that says an option was ignored or not supported. |
2201 | + # When given -MP, icc 7.0 and 7.1 complain thusly: |
2202 | + # icc: Command line warning: ignoring option '-M'; no argument required |
2203 | + # The diagnosis changed in icc 8.0: |
2204 | + # icc: Command line remark: option '-MP' not supported |
2205 | + if (grep 'ignoring option' conftest.err || |
2206 | + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
2207 | + am_cv_$1_dependencies_compiler_type=$depmode |
2208 | + break |
2209 | + fi |
2210 | + fi |
2211 | + done |
2212 | + |
2213 | + cd .. |
2214 | + rm -rf conftest.dir |
2215 | +else |
2216 | + am_cv_$1_dependencies_compiler_type=none |
2217 | +fi |
2218 | +]) |
2219 | +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
2220 | +AM_CONDITIONAL([am__fastdep$1], [ |
2221 | + test "x$enable_dependency_tracking" != xno \ |
2222 | + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
2223 | +]) |
2224 | + |
2225 | + |
2226 | +# AM_SET_DEPDIR |
2227 | +# ------------- |
2228 | +# Choose a directory name for dependency files. |
2229 | +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. |
2230 | +AC_DEFUN([AM_SET_DEPDIR], |
2231 | +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
2232 | +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
2233 | +]) |
2234 | + |
2235 | + |
2236 | +# AM_DEP_TRACK |
2237 | +# ------------ |
2238 | +AC_DEFUN([AM_DEP_TRACK], |
2239 | +[AC_ARG_ENABLE([dependency-tracking], [dnl |
2240 | +AS_HELP_STRING( |
2241 | + [--enable-dependency-tracking], |
2242 | + [do not reject slow dependency extractors]) |
2243 | +AS_HELP_STRING( |
2244 | + [--disable-dependency-tracking], |
2245 | + [speeds up one-time build])]) |
2246 | +if test "x$enable_dependency_tracking" != xno; then |
2247 | + am_depcomp="$ac_aux_dir/depcomp" |
2248 | + AMDEPBACKSLASH='\' |
2249 | + am__nodep='_no' |
2250 | +fi |
2251 | +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
2252 | +AC_SUBST([AMDEPBACKSLASH])dnl |
2253 | +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
2254 | +AC_SUBST([am__nodep])dnl |
2255 | +_AM_SUBST_NOTMAKE([am__nodep])dnl |
2256 | +]) |
2257 | + |
2258 | +# Generate code to set up dependency tracking. -*- Autoconf -*- |
2259 | + |
2260 | +# Copyright (C) 1999-2014 Free Software Foundation, Inc. |
2261 | +# |
2262 | +# This file is free software; the Free Software Foundation |
2263 | +# gives unlimited permission to copy and/or distribute it, |
2264 | +# with or without modifications, as long as this notice is preserved. |
2265 | + |
2266 | + |
2267 | +# _AM_OUTPUT_DEPENDENCY_COMMANDS |
2268 | +# ------------------------------ |
2269 | +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
2270 | +[{ |
2271 | + # Older Autoconf quotes --file arguments for eval, but not when files |
2272 | + # are listed without --file. Let's play safe and only enable the eval |
2273 | + # if we detect the quoting. |
2274 | + case $CONFIG_FILES in |
2275 | + *\'*) eval set x "$CONFIG_FILES" ;; |
2276 | + *) set x $CONFIG_FILES ;; |
2277 | + esac |
2278 | + shift |
2279 | + for mf |
2280 | + do |
2281 | + # Strip MF so we end up with the name of the file. |
2282 | + mf=`echo "$mf" | sed -e 's/:.*$//'` |
2283 | + # Check whether this is an Automake generated Makefile or not. |
2284 | + # We used to match only the files named 'Makefile.in', but |
2285 | + # some people rename them; so instead we look at the file content. |
2286 | + # Grep'ing the first line is not enough: some people post-process |
2287 | + # each Makefile.in and add a new line on top of each file to say so. |
2288 | + # Grep'ing the whole file is not good either: AIX grep has a line |
2289 | + # limit of 2048, but all sed's we know have understand at least 4000. |
2290 | + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
2291 | + dirpart=`AS_DIRNAME("$mf")` |
2292 | + else |
2293 | + continue |
2294 | + fi |
2295 | + # Extract the definition of DEPDIR, am__include, and am__quote |
2296 | + # from the Makefile without running 'make'. |
2297 | + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
2298 | + test -z "$DEPDIR" && continue |
2299 | + am__include=`sed -n 's/^am__include = //p' < "$mf"` |
2300 | + test -z "$am__include" && continue |
2301 | + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
2302 | + # Find all dependency output files, they are included files with |
2303 | + # $(DEPDIR) in their names. We invoke sed twice because it is the |
2304 | + # simplest approach to changing $(DEPDIR) to its actual value in the |
2305 | + # expansion. |
2306 | + for file in `sed -n " |
2307 | + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
2308 | + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
2309 | + # Make sure the directory exists. |
2310 | + test -f "$dirpart/$file" && continue |
2311 | + fdir=`AS_DIRNAME(["$file"])` |
2312 | + AS_MKDIR_P([$dirpart/$fdir]) |
2313 | + # echo "creating $dirpart/$file" |
2314 | + echo '# dummy' > "$dirpart/$file" |
2315 | + done |
2316 | + done |
2317 | +} |
2318 | +])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
2319 | + |
2320 | + |
2321 | +# AM_OUTPUT_DEPENDENCY_COMMANDS |
2322 | +# ----------------------------- |
2323 | +# This macro should only be invoked once -- use via AC_REQUIRE. |
2324 | +# |
2325 | +# This code is only required when automatic dependency tracking |
2326 | +# is enabled. FIXME. This creates each '.P' file that we will |
2327 | +# need in order to bootstrap the dependency handling code. |
2328 | +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
2329 | +[AC_CONFIG_COMMANDS([depfiles], |
2330 | + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
2331 | + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
2332 | +]) |
2333 | + |
2334 | +# Do all the work for Automake. -*- Autoconf -*- |
2335 | + |
2336 | +# Copyright (C) 1996-2014 Free Software Foundation, Inc. |
2337 | +# |
2338 | +# This file is free software; the Free Software Foundation |
2339 | +# gives unlimited permission to copy and/or distribute it, |
2340 | +# with or without modifications, as long as this notice is preserved. |
2341 | + |
2342 | +# This macro actually does too much. Some checks are only needed if |
2343 | +# your package does certain things. But this isn't really a big deal. |
2344 | + |
2345 | +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. |
2346 | +m4_define([AC_PROG_CC], |
2347 | +m4_defn([AC_PROG_CC]) |
2348 | +[_AM_PROG_CC_C_O |
2349 | +]) |
2350 | + |
2351 | +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
2352 | +# AM_INIT_AUTOMAKE([OPTIONS]) |
2353 | +# ----------------------------------------------- |
2354 | +# The call with PACKAGE and VERSION arguments is the old style |
2355 | +# call (pre autoconf-2.50), which is being phased out. PACKAGE |
2356 | +# and VERSION should now be passed to AC_INIT and removed from |
2357 | +# the call to AM_INIT_AUTOMAKE. |
2358 | +# We support both call styles for the transition. After |
2359 | +# the next Automake release, Autoconf can make the AC_INIT |
2360 | +# arguments mandatory, and then we can depend on a new Autoconf |
2361 | +# release and drop the old call support. |
2362 | +AC_DEFUN([AM_INIT_AUTOMAKE], |
2363 | +[AC_PREREQ([2.65])dnl |
2364 | +dnl Autoconf wants to disallow AM_ names. We explicitly allow |
2365 | +dnl the ones we care about. |
2366 | +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
2367 | +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
2368 | +AC_REQUIRE([AC_PROG_INSTALL])dnl |
2369 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2370 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2371 | + # is not polluted with repeated "-I." |
2372 | + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
2373 | + # test to see if srcdir already configured |
2374 | + if test -f $srcdir/config.status; then |
2375 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
2376 | + fi |
2377 | +fi |
2378 | + |
2379 | +# test whether we have cygpath |
2380 | +if test -z "$CYGPATH_W"; then |
2381 | + if (cygpath --version) >/dev/null 2>/dev/null; then |
2382 | + CYGPATH_W='cygpath -w' |
2383 | + else |
2384 | + CYGPATH_W=echo |
2385 | + fi |
2386 | +fi |
2387 | +AC_SUBST([CYGPATH_W]) |
2388 | + |
2389 | +# Define the identity of the package. |
2390 | +dnl Distinguish between old-style and new-style calls. |
2391 | +m4_ifval([$2], |
2392 | +[AC_DIAGNOSE([obsolete], |
2393 | + [$0: two- and three-arguments forms are deprecated.]) |
2394 | +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
2395 | + AC_SUBST([PACKAGE], [$1])dnl |
2396 | + AC_SUBST([VERSION], [$2])], |
2397 | +[_AM_SET_OPTIONS([$1])dnl |
2398 | +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
2399 | +m4_if( |
2400 | + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), |
2401 | + [ok:ok],, |
2402 | + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
2403 | + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
2404 | + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
2405 | + |
2406 | +_AM_IF_OPTION([no-define],, |
2407 | +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) |
2408 | + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl |
2409 | + |
2410 | +# Some tools Automake needs. |
2411 | +AC_REQUIRE([AM_SANITY_CHECK])dnl |
2412 | +AC_REQUIRE([AC_ARG_PROGRAM])dnl |
2413 | +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) |
2414 | +AM_MISSING_PROG([AUTOCONF], [autoconf]) |
2415 | +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) |
2416 | +AM_MISSING_PROG([AUTOHEADER], [autoheader]) |
2417 | +AM_MISSING_PROG([MAKEINFO], [makeinfo]) |
2418 | +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
2419 | +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
2420 | +AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
2421 | +# For better backward compatibility. To be removed once Automake 1.9.x |
2422 | +# dies out for good. For more background, see: |
2423 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
2424 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
2425 | +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) |
2426 | +# We need awk for the "check" target (and possibly the TAP driver). The |
2427 | +# system "awk" is bad on some platforms. |
2428 | +AC_REQUIRE([AC_PROG_AWK])dnl |
2429 | +AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
2430 | +AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
2431 | +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
2432 | + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
2433 | + [_AM_PROG_TAR([v7])])]) |
2434 | +_AM_IF_OPTION([no-dependencies],, |
2435 | +[AC_PROVIDE_IFELSE([AC_PROG_CC], |
2436 | + [_AM_DEPENDENCIES([CC])], |
2437 | + [m4_define([AC_PROG_CC], |
2438 | + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl |
2439 | +AC_PROVIDE_IFELSE([AC_PROG_CXX], |
2440 | + [_AM_DEPENDENCIES([CXX])], |
2441 | + [m4_define([AC_PROG_CXX], |
2442 | + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl |
2443 | +AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
2444 | + [_AM_DEPENDENCIES([OBJC])], |
2445 | + [m4_define([AC_PROG_OBJC], |
2446 | + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl |
2447 | +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], |
2448 | + [_AM_DEPENDENCIES([OBJCXX])], |
2449 | + [m4_define([AC_PROG_OBJCXX], |
2450 | + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl |
2451 | +]) |
2452 | +AC_REQUIRE([AM_SILENT_RULES])dnl |
2453 | +dnl The testsuite driver may need to know about EXEEXT, so add the |
2454 | +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This |
2455 | +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. |
2456 | +AC_CONFIG_COMMANDS_PRE(dnl |
2457 | +[m4_provide_if([_AM_COMPILER_EXEEXT], |
2458 | + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
2459 | + |
2460 | +# POSIX will say in a future version that running "rm -f" with no argument |
2461 | +# is OK; and we want to be able to make that assumption in our Makefile |
2462 | +# recipes. So use an aggressive probe to check that the usage we want is |
2463 | +# actually supported "in the wild" to an acceptable degree. |
2464 | +# See automake bug#10828. |
2465 | +# To make any issue more visible, cause the running configure to be aborted |
2466 | +# by default if the 'rm' program in use doesn't match our expectations; the |
2467 | +# user can still override this though. |
2468 | +if rm -f && rm -fr && rm -rf; then : OK; else |
2469 | + cat >&2 <<'END' |
2470 | +Oops! |
2471 | + |
2472 | +Your 'rm' program seems unable to run without file operands specified |
2473 | +on the command line, even when the '-f' option is present. This is contrary |
2474 | +to the behaviour of most rm programs out there, and not conforming with |
2475 | +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
2476 | + |
2477 | +Please tell bug-automake@gnu.org about your system, including the value |
2478 | +of your $PATH and any error possibly output before this message. This |
2479 | +can help us improve future automake versions. |
2480 | + |
2481 | +END |
2482 | + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
2483 | + echo 'Configuration will proceed anyway, since you have set the' >&2 |
2484 | + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
2485 | + echo >&2 |
2486 | + else |
2487 | + cat >&2 <<'END' |
2488 | +Aborting the configuration process, to ensure you take notice of the issue. |
2489 | + |
2490 | +You can download and install GNU coreutils to get an 'rm' implementation |
2491 | +that behaves properly: <http://www.gnu.org/software/coreutils/>. |
2492 | + |
2493 | +If you want to complete the configuration process using your problematic |
2494 | +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
2495 | +to "yes", and re-run configure. |
2496 | + |
2497 | +END |
2498 | + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) |
2499 | + fi |
2500 | +fi |
2501 | +dnl The trailing newline in this macro's definition is deliberate, for |
2502 | +dnl backward compatibility and to allow trailing 'dnl'-style comments |
2503 | +dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. |
2504 | +]) |
2505 | + |
2506 | +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
2507 | +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
2508 | +dnl mangled by Autoconf and run in a shell conditional statement. |
2509 | +m4_define([_AC_COMPILER_EXEEXT], |
2510 | +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
2511 | + |
2512 | +# When config.status generates a header, we must update the stamp-h file. |
2513 | +# This file resides in the same directory as the config header |
2514 | +# that is generated. The stamp files are numbered to have different names. |
2515 | + |
2516 | +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
2517 | +# loop where config.status creates the headers, so we can generate |
2518 | +# our stamp files there. |
2519 | +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
2520 | +[# Compute $1's index in $config_headers. |
2521 | +_am_arg=$1 |
2522 | +_am_stamp_count=1 |
2523 | +for _am_header in $config_headers :; do |
2524 | + case $_am_header in |
2525 | + $_am_arg | $_am_arg:* ) |
2526 | + break ;; |
2527 | + * ) |
2528 | + _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
2529 | + esac |
2530 | +done |
2531 | +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
2532 | + |
2533 | +# Copyright (C) 2001-2014 Free Software Foundation, Inc. |
2534 | +# |
2535 | +# This file is free software; the Free Software Foundation |
2536 | +# gives unlimited permission to copy and/or distribute it, |
2537 | +# with or without modifications, as long as this notice is preserved. |
2538 | + |
2539 | +# AM_PROG_INSTALL_SH |
2540 | +# ------------------ |
2541 | +# Define $install_sh. |
2542 | +AC_DEFUN([AM_PROG_INSTALL_SH], |
2543 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
2544 | +if test x"${install_sh+set}" != xset; then |
2545 | + case $am_aux_dir in |
2546 | + *\ * | *\ *) |
2547 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2548 | + *) |
2549 | + install_sh="\${SHELL} $am_aux_dir/install-sh" |
2550 | + esac |
2551 | +fi |
2552 | +AC_SUBST([install_sh])]) |
2553 | + |
2554 | +# Copyright (C) 2003-2014 Free Software Foundation, Inc. |
2555 | +# |
2556 | +# This file is free software; the Free Software Foundation |
2557 | +# gives unlimited permission to copy and/or distribute it, |
2558 | +# with or without modifications, as long as this notice is preserved. |
2559 | + |
2560 | +# Check whether the underlying file-system supports filenames |
2561 | +# with a leading dot. For instance MS-DOS doesn't. |
2562 | +AC_DEFUN([AM_SET_LEADING_DOT], |
2563 | +[rm -rf .tst 2>/dev/null |
2564 | +mkdir .tst 2>/dev/null |
2565 | +if test -d .tst; then |
2566 | + am__leading_dot=. |
2567 | +else |
2568 | + am__leading_dot=_ |
2569 | +fi |
2570 | +rmdir .tst 2>/dev/null |
2571 | +AC_SUBST([am__leading_dot])]) |
2572 | + |
2573 | +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
2574 | +# From Jim Meyering |
2575 | + |
2576 | +# Copyright (C) 1996-2014 Free Software Foundation, Inc. |
2577 | +# |
2578 | +# This file is free software; the Free Software Foundation |
2579 | +# gives unlimited permission to copy and/or distribute it, |
2580 | +# with or without modifications, as long as this notice is preserved. |
2581 | + |
2582 | +# AM_MAINTAINER_MODE([DEFAULT-MODE]) |
2583 | +# ---------------------------------- |
2584 | +# Control maintainer-specific portions of Makefiles. |
2585 | +# Default is to disable them, unless 'enable' is passed literally. |
2586 | +# For symmetry, 'disable' may be passed as well. Anyway, the user |
2587 | +# can override the default with the --enable/--disable switch. |
2588 | +AC_DEFUN([AM_MAINTAINER_MODE], |
2589 | +[m4_case(m4_default([$1], [disable]), |
2590 | + [enable], [m4_define([am_maintainer_other], [disable])], |
2591 | + [disable], [m4_define([am_maintainer_other], [enable])], |
2592 | + [m4_define([am_maintainer_other], [enable]) |
2593 | + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
2594 | +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
2595 | + dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
2596 | + AC_ARG_ENABLE([maintainer-mode], |
2597 | + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], |
2598 | + am_maintainer_other[ make rules and dependencies not useful |
2599 | + (and sometimes confusing) to the casual installer])], |
2600 | + [USE_MAINTAINER_MODE=$enableval], |
2601 | + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
2602 | + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
2603 | + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
2604 | + MAINT=$MAINTAINER_MODE_TRUE |
2605 | + AC_SUBST([MAINT])dnl |
2606 | +] |
2607 | +) |
2608 | + |
2609 | +# Check to see how 'make' treats includes. -*- Autoconf -*- |
2610 | + |
2611 | +# Copyright (C) 2001-2014 Free Software Foundation, Inc. |
2612 | +# |
2613 | +# This file is free software; the Free Software Foundation |
2614 | +# gives unlimited permission to copy and/or distribute it, |
2615 | +# with or without modifications, as long as this notice is preserved. |
2616 | + |
2617 | +# AM_MAKE_INCLUDE() |
2618 | +# ----------------- |
2619 | +# Check to see how make treats includes. |
2620 | +AC_DEFUN([AM_MAKE_INCLUDE], |
2621 | +[am_make=${MAKE-make} |
2622 | +cat > confinc << 'END' |
2623 | +am__doit: |
2624 | + @echo this is the am__doit target |
2625 | +.PHONY: am__doit |
2626 | +END |
2627 | +# If we don't find an include directive, just comment out the code. |
2628 | +AC_MSG_CHECKING([for style of include used by $am_make]) |
2629 | +am__include="#" |
2630 | +am__quote= |
2631 | +_am_result=none |
2632 | +# First try GNU make style include. |
2633 | +echo "include confinc" > confmf |
2634 | +# Ignore all kinds of additional output from 'make'. |
2635 | +case `$am_make -s -f confmf 2> /dev/null` in #( |
2636 | +*the\ am__doit\ target*) |
2637 | + am__include=include |
2638 | + am__quote= |
2639 | + _am_result=GNU |
2640 | + ;; |
2641 | +esac |
2642 | +# Now try BSD make style include. |
2643 | +if test "$am__include" = "#"; then |
2644 | + echo '.include "confinc"' > confmf |
2645 | + case `$am_make -s -f confmf 2> /dev/null` in #( |
2646 | + *the\ am__doit\ target*) |
2647 | + am__include=.include |
2648 | + am__quote="\"" |
2649 | + _am_result=BSD |
2650 | + ;; |
2651 | + esac |
2652 | +fi |
2653 | +AC_SUBST([am__include]) |
2654 | +AC_SUBST([am__quote]) |
2655 | +AC_MSG_RESULT([$_am_result]) |
2656 | +rm -f confinc confmf |
2657 | +]) |
2658 | + |
2659 | +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
2660 | + |
2661 | +# Copyright (C) 1997-2014 Free Software Foundation, Inc. |
2662 | +# |
2663 | +# This file is free software; the Free Software Foundation |
2664 | +# gives unlimited permission to copy and/or distribute it, |
2665 | +# with or without modifications, as long as this notice is preserved. |
2666 | + |
2667 | +# AM_MISSING_PROG(NAME, PROGRAM) |
2668 | +# ------------------------------ |
2669 | +AC_DEFUN([AM_MISSING_PROG], |
2670 | +[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
2671 | +$1=${$1-"${am_missing_run}$2"} |
2672 | +AC_SUBST($1)]) |
2673 | + |
2674 | +# AM_MISSING_HAS_RUN |
2675 | +# ------------------ |
2676 | +# Define MISSING if not defined so far and test if it is modern enough. |
2677 | +# If it is, set am_missing_run to use it, otherwise, to nothing. |
2678 | +AC_DEFUN([AM_MISSING_HAS_RUN], |
2679 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
2680 | +AC_REQUIRE_AUX_FILE([missing])dnl |
2681 | +if test x"${MISSING+set}" != xset; then |
2682 | + case $am_aux_dir in |
2683 | + *\ * | *\ *) |
2684 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2685 | + *) |
2686 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2687 | + esac |
2688 | +fi |
2689 | +# Use eval to expand $SHELL |
2690 | +if eval "$MISSING --is-lightweight"; then |
2691 | + am_missing_run="$MISSING " |
2692 | +else |
2693 | + am_missing_run= |
2694 | + AC_MSG_WARN(['missing' script is too old or missing]) |
2695 | +fi |
2696 | +]) |
2697 | + |
2698 | +# -*- Autoconf -*- |
2699 | +# Obsolete and "removed" macros, that must however still report explicit |
2700 | +# error messages when used, to smooth transition. |
2701 | +# |
2702 | +# Copyright (C) 1996-2014 Free Software Foundation, Inc. |
2703 | +# |
2704 | +# This file is free software; the Free Software Foundation |
2705 | +# gives unlimited permission to copy and/or distribute it, |
2706 | +# with or without modifications, as long as this notice is preserved. |
2707 | + |
2708 | +AC_DEFUN([AM_CONFIG_HEADER], |
2709 | +[AC_DIAGNOSE([obsolete], |
2710 | +['$0': this macro is obsolete. |
2711 | +You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl |
2712 | +AC_CONFIG_HEADERS($@)]) |
2713 | + |
2714 | +AC_DEFUN([AM_PROG_CC_STDC], |
2715 | +[AC_PROG_CC |
2716 | +am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc |
2717 | +AC_DIAGNOSE([obsolete], |
2718 | +['$0': this macro is obsolete. |
2719 | +You should simply use the 'AC][_PROG_CC' macro instead. |
2720 | +Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', |
2721 | +but upon 'ac_cv_prog_cc_stdc'.])]) |
2722 | + |
2723 | +AC_DEFUN([AM_C_PROTOTYPES], |
2724 | + [AC_FATAL([automatic de-ANSI-fication support has been removed])]) |
2725 | +AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) |
2726 | + |
2727 | +# Helper functions for option handling. -*- Autoconf -*- |
2728 | + |
2729 | +# Copyright (C) 2001-2014 Free Software Foundation, Inc. |
2730 | +# |
2731 | +# This file is free software; the Free Software Foundation |
2732 | +# gives unlimited permission to copy and/or distribute it, |
2733 | +# with or without modifications, as long as this notice is preserved. |
2734 | + |
2735 | +# _AM_MANGLE_OPTION(NAME) |
2736 | +# ----------------------- |
2737 | +AC_DEFUN([_AM_MANGLE_OPTION], |
2738 | +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
2739 | + |
2740 | +# _AM_SET_OPTION(NAME) |
2741 | +# -------------------- |
2742 | +# Set option NAME. Presently that only means defining a flag for this option. |
2743 | +AC_DEFUN([_AM_SET_OPTION], |
2744 | +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) |
2745 | + |
2746 | +# _AM_SET_OPTIONS(OPTIONS) |
2747 | +# ------------------------ |
2748 | +# OPTIONS is a space-separated list of Automake options. |
2749 | +AC_DEFUN([_AM_SET_OPTIONS], |
2750 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
2751 | + |
2752 | +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
2753 | +# ------------------------------------------- |
2754 | +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
2755 | +AC_DEFUN([_AM_IF_OPTION], |
2756 | +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
2757 | + |
2758 | +# Copyright (C) 1999-2014 Free Software Foundation, Inc. |
2759 | +# |
2760 | +# This file is free software; the Free Software Foundation |
2761 | +# gives unlimited permission to copy and/or distribute it, |
2762 | +# with or without modifications, as long as this notice is preserved. |
2763 | + |
2764 | +# _AM_PROG_CC_C_O |
2765 | +# --------------- |
2766 | +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC |
2767 | +# to automatically call this. |
2768 | +AC_DEFUN([_AM_PROG_CC_C_O], |
2769 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
2770 | +AC_REQUIRE_AUX_FILE([compile])dnl |
2771 | +AC_LANG_PUSH([C])dnl |
2772 | +AC_CACHE_CHECK( |
2773 | + [whether $CC understands -c and -o together], |
2774 | + [am_cv_prog_cc_c_o], |
2775 | + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) |
2776 | + # Make sure it works both with $CC and with simple cc. |
2777 | + # Following AC_PROG_CC_C_O, we do the test twice because some |
2778 | + # compilers refuse to overwrite an existing .o file with -o, |
2779 | + # though they will create one. |
2780 | + am_cv_prog_cc_c_o=yes |
2781 | + for am_i in 1 2; do |
2782 | + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ |
2783 | + && test -f conftest2.$ac_objext; then |
2784 | + : OK |
2785 | + else |
2786 | + am_cv_prog_cc_c_o=no |
2787 | + break |
2788 | + fi |
2789 | + done |
2790 | + rm -f core conftest* |
2791 | + unset am_i]) |
2792 | +if test "$am_cv_prog_cc_c_o" != yes; then |
2793 | + # Losing compiler, so override with the script. |
2794 | + # FIXME: It is wrong to rewrite CC. |
2795 | + # But if we don't then we get into trouble of one sort or another. |
2796 | + # A longer-term fix would be to have automake use am__CC in this case, |
2797 | + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
2798 | + CC="$am_aux_dir/compile $CC" |
2799 | +fi |
2800 | +AC_LANG_POP([C])]) |
2801 | + |
2802 | +# For backward compatibility. |
2803 | +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
2804 | + |
2805 | +# Copyright (C) 2001-2014 Free Software Foundation, Inc. |
2806 | +# |
2807 | +# This file is free software; the Free Software Foundation |
2808 | +# gives unlimited permission to copy and/or distribute it, |
2809 | +# with or without modifications, as long as this notice is preserved. |
2810 | + |
2811 | +# AM_RUN_LOG(COMMAND) |
2812 | +# ------------------- |
2813 | +# Run COMMAND, save the exit status in ac_status, and log it. |
2814 | +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) |
2815 | +AC_DEFUN([AM_RUN_LOG], |
2816 | +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD |
2817 | + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD |
2818 | + ac_status=$? |
2819 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2820 | + (exit $ac_status); }]) |
2821 | + |
2822 | +# Check to make sure that the build environment is sane. -*- Autoconf -*- |
2823 | + |
2824 | +# Copyright (C) 1996-2014 Free Software Foundation, Inc. |
2825 | +# |
2826 | +# This file is free software; the Free Software Foundation |
2827 | +# gives unlimited permission to copy and/or distribute it, |
2828 | +# with or without modifications, as long as this notice is preserved. |
2829 | + |
2830 | +# AM_SANITY_CHECK |
2831 | +# --------------- |
2832 | +AC_DEFUN([AM_SANITY_CHECK], |
2833 | +[AC_MSG_CHECKING([whether build environment is sane]) |
2834 | +# Reject unsafe characters in $srcdir or the absolute working directory |
2835 | +# name. Accept space and tab only in the latter. |
2836 | +am_lf=' |
2837 | +' |
2838 | +case `pwd` in |
2839 | + *[[\\\"\#\$\&\'\`$am_lf]]*) |
2840 | + AC_MSG_ERROR([unsafe absolute working directory name]);; |
2841 | +esac |
2842 | +case $srcdir in |
2843 | + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
2844 | + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; |
2845 | +esac |
2846 | + |
2847 | +# Do 'set' in a subshell so we don't clobber the current shell's |
2848 | +# arguments. Must try -L first in case configure is actually a |
2849 | +# symlink; some systems play weird games with the mod time of symlinks |
2850 | +# (eg FreeBSD returns the mod time of the symlink's containing |
2851 | +# directory). |
2852 | +if ( |
2853 | + am_has_slept=no |
2854 | + for am_try in 1 2; do |
2855 | + echo "timestamp, slept: $am_has_slept" > conftest.file |
2856 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2857 | + if test "$[*]" = "X"; then |
2858 | + # -L didn't work. |
2859 | + set X `ls -t "$srcdir/configure" conftest.file` |
2860 | + fi |
2861 | + if test "$[*]" != "X $srcdir/configure conftest.file" \ |
2862 | + && test "$[*]" != "X conftest.file $srcdir/configure"; then |
2863 | + |
2864 | + # If neither matched, then we have a broken ls. This can happen |
2865 | + # if, for instance, CONFIG_SHELL is bash and it inherits a |
2866 | + # broken ls alias from the environment. This has actually |
2867 | + # happened. Such a system could not be considered "sane". |
2868 | + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
2869 | + alias in your environment]) |
2870 | + fi |
2871 | + if test "$[2]" = conftest.file || test $am_try -eq 2; then |
2872 | + break |
2873 | + fi |
2874 | + # Just in case. |
2875 | + sleep 1 |
2876 | + am_has_slept=yes |
2877 | + done |
2878 | + test "$[2]" = conftest.file |
2879 | + ) |
2880 | +then |
2881 | + # Ok. |
2882 | + : |
2883 | +else |
2884 | + AC_MSG_ERROR([newly created file is older than distributed files! |
2885 | +Check your system clock]) |
2886 | +fi |
2887 | +AC_MSG_RESULT([yes]) |
2888 | +# If we didn't sleep, we still need to ensure time stamps of config.status and |
2889 | +# generated files are strictly newer. |
2890 | +am_sleep_pid= |
2891 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2892 | + ( sleep 1 ) & |
2893 | + am_sleep_pid=$! |
2894 | +fi |
2895 | +AC_CONFIG_COMMANDS_PRE( |
2896 | + [AC_MSG_CHECKING([that generated files are newer than configure]) |
2897 | + if test -n "$am_sleep_pid"; then |
2898 | + # Hide warnings about reused PIDs. |
2899 | + wait $am_sleep_pid 2>/dev/null |
2900 | + fi |
2901 | + AC_MSG_RESULT([done])]) |
2902 | +rm -f conftest.file |
2903 | +]) |
2904 | + |
2905 | +# Copyright (C) 2009-2014 Free Software Foundation, Inc. |
2906 | +# |
2907 | +# This file is free software; the Free Software Foundation |
2908 | +# gives unlimited permission to copy and/or distribute it, |
2909 | +# with or without modifications, as long as this notice is preserved. |
2910 | + |
2911 | +# AM_SILENT_RULES([DEFAULT]) |
2912 | +# -------------------------- |
2913 | +# Enable less verbose build rules; with the default set to DEFAULT |
2914 | +# ("yes" being less verbose, "no" or empty being verbose). |
2915 | +AC_DEFUN([AM_SILENT_RULES], |
2916 | +[AC_ARG_ENABLE([silent-rules], [dnl |
2917 | +AS_HELP_STRING( |
2918 | + [--enable-silent-rules], |
2919 | + [less verbose build output (undo: "make V=1")]) |
2920 | +AS_HELP_STRING( |
2921 | + [--disable-silent-rules], |
2922 | + [verbose build output (undo: "make V=0")])dnl |
2923 | +]) |
2924 | +case $enable_silent_rules in @%:@ ((( |
2925 | + yes) AM_DEFAULT_VERBOSITY=0;; |
2926 | + no) AM_DEFAULT_VERBOSITY=1;; |
2927 | + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; |
2928 | +esac |
2929 | +dnl |
2930 | +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) |
2931 | +dnl do not support nested variable expansions. |
2932 | +dnl See automake bug#9928 and bug#10237. |
2933 | +am_make=${MAKE-make} |
2934 | +AC_CACHE_CHECK([whether $am_make supports nested variables], |
2935 | + [am_cv_make_support_nested_variables], |
2936 | + [if AS_ECHO([['TRUE=$(BAR$(V)) |
2937 | +BAR0=false |
2938 | +BAR1=true |
2939 | +V=1 |
2940 | +am__doit: |
2941 | + @$(TRUE) |
2942 | +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then |
2943 | + am_cv_make_support_nested_variables=yes |
2944 | +else |
2945 | + am_cv_make_support_nested_variables=no |
2946 | +fi]) |
2947 | +if test $am_cv_make_support_nested_variables = yes; then |
2948 | + dnl Using '$V' instead of '$(V)' breaks IRIX make. |
2949 | + AM_V='$(V)' |
2950 | + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2951 | +else |
2952 | + AM_V=$AM_DEFAULT_VERBOSITY |
2953 | + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
2954 | +fi |
2955 | +AC_SUBST([AM_V])dnl |
2956 | +AM_SUBST_NOTMAKE([AM_V])dnl |
2957 | +AC_SUBST([AM_DEFAULT_V])dnl |
2958 | +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl |
2959 | +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl |
2960 | +AM_BACKSLASH='\' |
2961 | +AC_SUBST([AM_BACKSLASH])dnl |
2962 | +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
2963 | +]) |
2964 | + |
2965 | +# Copyright (C) 2001-2014 Free Software Foundation, Inc. |
2966 | +# |
2967 | +# This file is free software; the Free Software Foundation |
2968 | +# gives unlimited permission to copy and/or distribute it, |
2969 | +# with or without modifications, as long as this notice is preserved. |
2970 | + |
2971 | +# AM_PROG_INSTALL_STRIP |
2972 | +# --------------------- |
2973 | +# One issue with vendor 'install' (even GNU) is that you can't |
2974 | +# specify the program used to strip binaries. This is especially |
2975 | +# annoying in cross-compiling environments, where the build's strip |
2976 | +# is unlikely to handle the host's binaries. |
2977 | +# Fortunately install-sh will honor a STRIPPROG variable, so we |
2978 | +# always use install-sh in "make install-strip", and initialize |
2979 | +# STRIPPROG with the value of the STRIP variable (set by the user). |
2980 | +AC_DEFUN([AM_PROG_INSTALL_STRIP], |
2981 | +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
2982 | +# Installed binaries are usually stripped using 'strip' when the user |
2983 | +# run "make install-strip". However 'strip' might not be the right |
2984 | +# tool to use in cross-compilation environments, therefore Automake |
2985 | +# will honor the 'STRIP' environment variable to overrule this program. |
2986 | +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. |
2987 | +if test "$cross_compiling" != no; then |
2988 | + AC_CHECK_TOOL([STRIP], [strip], :) |
2989 | +fi |
2990 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2991 | +AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
2992 | + |
2993 | +# Copyright (C) 2006-2014 Free Software Foundation, Inc. |
2994 | +# |
2995 | +# This file is free software; the Free Software Foundation |
2996 | +# gives unlimited permission to copy and/or distribute it, |
2997 | +# with or without modifications, as long as this notice is preserved. |
2998 | + |
2999 | +# _AM_SUBST_NOTMAKE(VARIABLE) |
3000 | +# --------------------------- |
3001 | +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
3002 | +# This macro is traced by Automake. |
3003 | +AC_DEFUN([_AM_SUBST_NOTMAKE]) |
3004 | + |
3005 | +# AM_SUBST_NOTMAKE(VARIABLE) |
3006 | +# -------------------------- |
3007 | +# Public sister of _AM_SUBST_NOTMAKE. |
3008 | +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
3009 | + |
3010 | +# Check how to create a tarball. -*- Autoconf -*- |
3011 | + |
3012 | +# Copyright (C) 2004-2014 Free Software Foundation, Inc. |
3013 | +# |
3014 | +# This file is free software; the Free Software Foundation |
3015 | +# gives unlimited permission to copy and/or distribute it, |
3016 | +# with or without modifications, as long as this notice is preserved. |
3017 | + |
3018 | +# _AM_PROG_TAR(FORMAT) |
3019 | +# -------------------- |
3020 | +# Check how to create a tarball in format FORMAT. |
3021 | +# FORMAT should be one of 'v7', 'ustar', or 'pax'. |
3022 | +# |
3023 | +# Substitute a variable $(am__tar) that is a command |
3024 | +# writing to stdout a FORMAT-tarball containing the directory |
3025 | +# $tardir. |
3026 | +# tardir=directory && $(am__tar) > result.tar |
3027 | +# |
3028 | +# Substitute a variable $(am__untar) that extract such |
3029 | +# a tarball read from stdin. |
3030 | +# $(am__untar) < result.tar |
3031 | +# |
3032 | +AC_DEFUN([_AM_PROG_TAR], |
3033 | +[# Always define AMTAR for backward compatibility. Yes, it's still used |
3034 | +# in the wild :-( We should find a proper way to deprecate it ... |
3035 | +AC_SUBST([AMTAR], ['$${TAR-tar}']) |
3036 | + |
3037 | +# We'll loop over all known methods to create a tar archive until one works. |
3038 | +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
3039 | + |
3040 | +m4_if([$1], [v7], |
3041 | + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
3042 | + |
3043 | + [m4_case([$1], |
3044 | + [ustar], |
3045 | + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. |
3046 | + # There is notably a 21 bits limit for the UID and the GID. In fact, |
3047 | + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 |
3048 | + # and bug#13588). |
3049 | + am_max_uid=2097151 # 2^21 - 1 |
3050 | + am_max_gid=$am_max_uid |
3051 | + # The $UID and $GID variables are not portable, so we need to resort |
3052 | + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls |
3053 | + # below are definitely unexpected, so allow the users to see them |
3054 | + # (that is, avoid stderr redirection). |
3055 | + am_uid=`id -u || echo unknown` |
3056 | + am_gid=`id -g || echo unknown` |
3057 | + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) |
3058 | + if test $am_uid -le $am_max_uid; then |
3059 | + AC_MSG_RESULT([yes]) |
3060 | + else |
3061 | + AC_MSG_RESULT([no]) |
3062 | + _am_tools=none |
3063 | + fi |
3064 | + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) |
3065 | + if test $am_gid -le $am_max_gid; then |
3066 | + AC_MSG_RESULT([yes]) |
3067 | + else |
3068 | + AC_MSG_RESULT([no]) |
3069 | + _am_tools=none |
3070 | + fi], |
3071 | + |
3072 | + [pax], |
3073 | + [], |
3074 | + |
3075 | + [m4_fatal([Unknown tar format])]) |
3076 | + |
3077 | + AC_MSG_CHECKING([how to create a $1 tar archive]) |
3078 | + |
3079 | + # Go ahead even if we have the value already cached. We do so because we |
3080 | + # need to set the values for the 'am__tar' and 'am__untar' variables. |
3081 | + _am_tools=${am_cv_prog_tar_$1-$_am_tools} |
3082 | + |
3083 | + for _am_tool in $_am_tools; do |
3084 | + case $_am_tool in |
3085 | + gnutar) |
3086 | + for _am_tar in tar gnutar gtar; do |
3087 | + AM_RUN_LOG([$_am_tar --version]) && break |
3088 | + done |
3089 | + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
3090 | + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
3091 | + am__untar="$_am_tar -xf -" |
3092 | + ;; |
3093 | + plaintar) |
3094 | + # Must skip GNU tar: if it does not support --format= it doesn't create |
3095 | + # ustar tarball either. |
3096 | + (tar --version) >/dev/null 2>&1 && continue |
3097 | + am__tar='tar chf - "$$tardir"' |
3098 | + am__tar_='tar chf - "$tardir"' |
3099 | + am__untar='tar xf -' |
3100 | + ;; |
3101 | + pax) |
3102 | + am__tar='pax -L -x $1 -w "$$tardir"' |
3103 | + am__tar_='pax -L -x $1 -w "$tardir"' |
3104 | + am__untar='pax -r' |
3105 | + ;; |
3106 | + cpio) |
3107 | + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
3108 | + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
3109 | + am__untar='cpio -i -H $1 -d' |
3110 | + ;; |
3111 | + none) |
3112 | + am__tar=false |
3113 | + am__tar_=false |
3114 | + am__untar=false |
3115 | + ;; |
3116 | + esac |
3117 | + |
3118 | + # If the value was cached, stop now. We just wanted to have am__tar |
3119 | + # and am__untar set. |
3120 | + test -n "${am_cv_prog_tar_$1}" && break |
3121 | + |
3122 | + # tar/untar a dummy directory, and stop if the command works. |
3123 | + rm -rf conftest.dir |
3124 | + mkdir conftest.dir |
3125 | + echo GrepMe > conftest.dir/file |
3126 | + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
3127 | + rm -rf conftest.dir |
3128 | + if test -s conftest.tar; then |
3129 | + AM_RUN_LOG([$am__untar <conftest.tar]) |
3130 | + AM_RUN_LOG([cat conftest.dir/file]) |
3131 | + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
3132 | + fi |
3133 | + done |
3134 | + rm -rf conftest.dir |
3135 | + |
3136 | + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
3137 | + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
3138 | + |
3139 | +AC_SUBST([am__tar]) |
3140 | +AC_SUBST([am__untar]) |
3141 | +]) # _AM_PROG_TAR |
3142 | + |
3143 | diff --git a/compile b/compile |
3144 | new file mode 100755 |
3145 | index 0000000..a85b723 |
3146 | --- /dev/null |
3147 | +++ b/compile |
3148 | @@ -0,0 +1,347 @@ |
3149 | +#! /bin/sh |
3150 | +# Wrapper for compilers which do not understand '-c -o'. |
3151 | + |
3152 | +scriptversion=2012-10-14.11; # UTC |
3153 | + |
3154 | +# Copyright (C) 1999-2014 Free Software Foundation, Inc. |
3155 | +# Written by Tom Tromey <tromey@cygnus.com>. |
3156 | +# |
3157 | +# This program is free software; you can redistribute it and/or modify |
3158 | +# it under the terms of the GNU General Public License as published by |
3159 | +# the Free Software Foundation; either version 2, or (at your option) |
3160 | +# any later version. |
3161 | +# |
3162 | +# This program is distributed in the hope that it will be useful, |
3163 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
3164 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3165 | +# GNU General Public License for more details. |
3166 | +# |
3167 | +# You should have received a copy of the GNU General Public License |
3168 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
3169 | + |
3170 | +# As a special exception to the GNU General Public License, if you |
3171 | +# distribute this file as part of a program that contains a |
3172 | +# configuration script generated by Autoconf, you may include it under |
3173 | +# the same distribution terms that you use for the rest of that program. |
3174 | + |
3175 | +# This file is maintained in Automake, please report |
3176 | +# bugs to <bug-automake@gnu.org> or send patches to |
3177 | +# <automake-patches@gnu.org>. |
3178 | + |
3179 | +nl=' |
3180 | +' |
3181 | + |
3182 | +# We need space, tab and new line, in precisely that order. Quoting is |
3183 | +# there to prevent tools from complaining about whitespace usage. |
3184 | +IFS=" "" $nl" |
3185 | + |
3186 | +file_conv= |
3187 | + |
3188 | +# func_file_conv build_file lazy |
3189 | +# Convert a $build file to $host form and store it in $file |
3190 | +# Currently only supports Windows hosts. If the determined conversion |
3191 | +# type is listed in (the comma separated) LAZY, no conversion will |
3192 | +# take place. |
3193 | +func_file_conv () |
3194 | +{ |
3195 | + file=$1 |
3196 | + case $file in |
3197 | + / | /[!/]*) # absolute file, and not a UNC file |
3198 | + if test -z "$file_conv"; then |
3199 | + # lazily determine how to convert abs files |
3200 | + case `uname -s` in |
3201 | + MINGW*) |
3202 | + file_conv=mingw |
3203 | + ;; |
3204 | + CYGWIN*) |
3205 | + file_conv=cygwin |
3206 | + ;; |
3207 | + *) |
3208 | + file_conv=wine |
3209 | + ;; |
3210 | + esac |
3211 | + fi |
3212 | + case $file_conv/,$2, in |
3213 | + *,$file_conv,*) |
3214 | + ;; |
3215 | + mingw/*) |
3216 | + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
3217 | + ;; |
3218 | + cygwin/*) |
3219 | + file=`cygpath -m "$file" || echo "$file"` |
3220 | + ;; |
3221 | + wine/*) |
3222 | + file=`winepath -w "$file" || echo "$file"` |
3223 | + ;; |
3224 | + esac |
3225 | + ;; |
3226 | + esac |
3227 | +} |
3228 | + |
3229 | +# func_cl_dashL linkdir |
3230 | +# Make cl look for libraries in LINKDIR |
3231 | +func_cl_dashL () |
3232 | +{ |
3233 | + func_file_conv "$1" |
3234 | + if test -z "$lib_path"; then |
3235 | + lib_path=$file |
3236 | + else |
3237 | + lib_path="$lib_path;$file" |
3238 | + fi |
3239 | + linker_opts="$linker_opts -LIBPATH:$file" |
3240 | +} |
3241 | + |
3242 | +# func_cl_dashl library |
3243 | +# Do a library search-path lookup for cl |
3244 | +func_cl_dashl () |
3245 | +{ |
3246 | + lib=$1 |
3247 | + found=no |
3248 | + save_IFS=$IFS |
3249 | + IFS=';' |
3250 | + for dir in $lib_path $LIB |
3251 | + do |
3252 | + IFS=$save_IFS |
3253 | + if $shared && test -f "$dir/$lib.dll.lib"; then |
3254 | + found=yes |
3255 | + lib=$dir/$lib.dll.lib |
3256 | + break |
3257 | + fi |
3258 | + if test -f "$dir/$lib.lib"; then |
3259 | + found=yes |
3260 | + lib=$dir/$lib.lib |
3261 | + break |
3262 | + fi |
3263 | + if test -f "$dir/lib$lib.a"; then |
3264 | + found=yes |
3265 | + lib=$dir/lib$lib.a |
3266 | + break |
3267 | + fi |
3268 | + done |
3269 | + IFS=$save_IFS |
3270 | + |
3271 | + if test "$found" != yes; then |
3272 | + lib=$lib.lib |
3273 | + fi |
3274 | +} |
3275 | + |
3276 | +# func_cl_wrapper cl arg... |
3277 | +# Adjust compile command to suit cl |
3278 | +func_cl_wrapper () |
3279 | +{ |
3280 | + # Assume a capable shell |
3281 | + lib_path= |
3282 | + shared=: |
3283 | + linker_opts= |
3284 | + for arg |
3285 | + do |
3286 | + if test -n "$eat"; then |
3287 | + eat= |
3288 | + else |
3289 | + case $1 in |
3290 | + -o) |
3291 | + # configure might choose to run compile as 'compile cc -o foo foo.c'. |
3292 | + eat=1 |
3293 | + case $2 in |
3294 | + *.o | *.[oO][bB][jJ]) |
3295 | + func_file_conv "$2" |
3296 | + set x "$@" -Fo"$file" |
3297 | + shift |
3298 | + ;; |
3299 | + *) |
3300 | + func_file_conv "$2" |
3301 | + set x "$@" -Fe"$file" |
3302 | + shift |
3303 | + ;; |
3304 | + esac |
3305 | + ;; |
3306 | + -I) |
3307 | + eat=1 |
3308 | + func_file_conv "$2" mingw |
3309 | + set x "$@" -I"$file" |
3310 | + shift |
3311 | + ;; |
3312 | + -I*) |
3313 | + func_file_conv "${1#-I}" mingw |
3314 | + set x "$@" -I"$file" |
3315 | + shift |
3316 | + ;; |
3317 | + -l) |
3318 | + eat=1 |
3319 | + func_cl_dashl "$2" |
3320 | + set x "$@" "$lib" |
3321 | + shift |
3322 | + ;; |
3323 | + -l*) |
3324 | + func_cl_dashl "${1#-l}" |
3325 | + set x "$@" "$lib" |
3326 | + shift |
3327 | + ;; |
3328 | + -L) |
3329 | + eat=1 |
3330 | + func_cl_dashL "$2" |
3331 | + ;; |
3332 | + -L*) |
3333 | + func_cl_dashL "${1#-L}" |
3334 | + ;; |
3335 | + -static) |
3336 | + shared=false |
3337 | + ;; |
3338 | + -Wl,*) |
3339 | + arg=${1#-Wl,} |
3340 | + save_ifs="$IFS"; IFS=',' |
3341 | + for flag in $arg; do |
3342 | + IFS="$save_ifs" |
3343 | + linker_opts="$linker_opts $flag" |
3344 | + done |
3345 | + IFS="$save_ifs" |
3346 | + ;; |
3347 | + -Xlinker) |
3348 | + eat=1 |
3349 | + linker_opts="$linker_opts $2" |
3350 | + ;; |
3351 | + -*) |
3352 | + set x "$@" "$1" |
3353 | + shift |
3354 | + ;; |
3355 | + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) |
3356 | + func_file_conv "$1" |
3357 | + set x "$@" -Tp"$file" |
3358 | + shift |
3359 | + ;; |
3360 | + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) |
3361 | + func_file_conv "$1" mingw |
3362 | + set x "$@" "$file" |
3363 | + shift |
3364 | + ;; |
3365 | + *) |
3366 | + set x "$@" "$1" |
3367 | + shift |
3368 | + ;; |
3369 | + esac |
3370 | + fi |
3371 | + shift |
3372 | + done |
3373 | + if test -n "$linker_opts"; then |
3374 | + linker_opts="-link$linker_opts" |
3375 | + fi |
3376 | + exec "$@" $linker_opts |
3377 | + exit 1 |
3378 | +} |
3379 | + |
3380 | +eat= |
3381 | + |
3382 | +case $1 in |
3383 | + '') |
3384 | + echo "$0: No command. Try '$0 --help' for more information." 1>&2 |
3385 | + exit 1; |
3386 | + ;; |
3387 | + -h | --h*) |
3388 | + cat <<\EOF |
3389 | +Usage: compile [--help] [--version] PROGRAM [ARGS] |
3390 | + |
3391 | +Wrapper for compilers which do not understand '-c -o'. |
3392 | +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining |
3393 | +arguments, and rename the output as expected. |
3394 | + |
3395 | +If you are trying to build a whole package this is not the |
3396 | +right script to run: please start by reading the file 'INSTALL'. |
3397 | + |
3398 | +Report bugs to <bug-automake@gnu.org>. |
3399 | +EOF |
3400 | + exit $? |
3401 | + ;; |
3402 | + -v | --v*) |
3403 | + echo "compile $scriptversion" |
3404 | + exit $? |
3405 | + ;; |
3406 | + cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) |
3407 | + func_cl_wrapper "$@" # Doesn't return... |
3408 | + ;; |
3409 | +esac |
3410 | + |
3411 | +ofile= |
3412 | +cfile= |
3413 | + |
3414 | +for arg |
3415 | +do |
3416 | + if test -n "$eat"; then |
3417 | + eat= |
3418 | + else |
3419 | + case $1 in |
3420 | + -o) |
3421 | + # configure might choose to run compile as 'compile cc -o foo foo.c'. |
3422 | + # So we strip '-o arg' only if arg is an object. |
3423 | + eat=1 |
3424 | + case $2 in |
3425 | + *.o | *.obj) |
3426 | + ofile=$2 |
3427 | + ;; |
3428 | + *) |
3429 | + set x "$@" -o "$2" |
3430 | + shift |
3431 | + ;; |
3432 | + esac |
3433 | + ;; |
3434 | + *.c) |
3435 | + cfile=$1 |
3436 | + set x "$@" "$1" |
3437 | + shift |
3438 | + ;; |
3439 | + *) |
3440 | + set x "$@" "$1" |
3441 | + shift |
3442 | + ;; |
3443 | + esac |
3444 | + fi |
3445 | + shift |
3446 | +done |
3447 | + |
3448 | +if test -z "$ofile" || test -z "$cfile"; then |
3449 | + # If no '-o' option was seen then we might have been invoked from a |
3450 | + # pattern rule where we don't need one. That is ok -- this is a |
3451 | + # normal compilation that the losing compiler can handle. If no |
3452 | + # '.c' file was seen then we are probably linking. That is also |
3453 | + # ok. |
3454 | + exec "$@" |
3455 | +fi |
3456 | + |
3457 | +# Name of file we expect compiler to create. |
3458 | +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` |
3459 | + |
3460 | +# Create the lock directory. |
3461 | +# Note: use '[/\\:.-]' here to ensure that we don't use the same name |
3462 | +# that we are using for the .o file. Also, base the name on the expected |
3463 | +# object file name, since that is what matters with a parallel build. |
3464 | +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d |
3465 | +while true; do |
3466 | + if mkdir "$lockdir" >/dev/null 2>&1; then |
3467 | + break |
3468 | + fi |
3469 | + sleep 1 |
3470 | +done |
3471 | +# FIXME: race condition here if user kills between mkdir and trap. |
3472 | +trap "rmdir '$lockdir'; exit 1" 1 2 15 |
3473 | + |
3474 | +# Run the compile. |
3475 | +"$@" |
3476 | +ret=$? |
3477 | + |
3478 | +if test -f "$cofile"; then |
3479 | + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" |
3480 | +elif test -f "${cofile}bj"; then |
3481 | + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" |
3482 | +fi |
3483 | + |
3484 | +rmdir "$lockdir" |
3485 | +exit $ret |
3486 | + |
3487 | +# Local Variables: |
3488 | +# mode: shell-script |
3489 | +# sh-indentation: 2 |
3490 | +# eval: (add-hook 'write-file-hooks 'time-stamp) |
3491 | +# time-stamp-start: "scriptversion=" |
3492 | +# time-stamp-format: "%:y-%02m-%02d.%02H" |
3493 | +# time-stamp-time-zone: "UTC" |
3494 | +# time-stamp-end: "; # UTC" |
3495 | +# End: |
3496 | diff --git a/configure b/configure |
3497 | new file mode 100755 |
3498 | index 0000000..2e06364 |
3499 | --- /dev/null |
3500 | +++ b/configure |
3501 | @@ -0,0 +1,9127 @@ |
3502 | +#! /bin/sh |
3503 | +# Guess values for system-dependent variables and create Makefiles. |
3504 | +# Generated by GNU Autoconf 2.69. |
3505 | +# |
3506 | +# |
3507 | +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
3508 | +# |
3509 | +# |
3510 | +# This configure script is free software; the Free Software Foundation |
3511 | +# gives unlimited permission to copy, distribute and modify it. |
3512 | +## -------------------- ## |
3513 | +## M4sh Initialization. ## |
3514 | +## -------------------- ## |
3515 | + |
3516 | +# Be more Bourne compatible |
3517 | +DUALCASE=1; export DUALCASE # for MKS sh |
3518 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
3519 | + emulate sh |
3520 | + NULLCMD=: |
3521 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
3522 | + # is contrary to our usage. Disable this feature. |
3523 | + alias -g '${1+"$@"}'='"$@"' |
3524 | + setopt NO_GLOB_SUBST |
3525 | +else |
3526 | + case `(set -o) 2>/dev/null` in #( |
3527 | + *posix*) : |
3528 | + set -o posix ;; #( |
3529 | + *) : |
3530 | + ;; |
3531 | +esac |
3532 | +fi |
3533 | + |
3534 | + |
3535 | +as_nl=' |
3536 | +' |
3537 | +export as_nl |
3538 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. |
3539 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
3540 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
3541 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
3542 | +# Prefer a ksh shell builtin over an external printf program on Solaris, |
3543 | +# but without wasting forks for bash or zsh. |
3544 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ |
3545 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
3546 | + as_echo='print -r --' |
3547 | + as_echo_n='print -rn --' |
3548 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
3549 | + as_echo='printf %s\n' |
3550 | + as_echo_n='printf %s' |
3551 | +else |
3552 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
3553 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
3554 | + as_echo_n='/usr/ucb/echo -n' |
3555 | + else |
3556 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
3557 | + as_echo_n_body='eval |
3558 | + arg=$1; |
3559 | + case $arg in #( |
3560 | + *"$as_nl"*) |
3561 | + expr "X$arg" : "X\\(.*\\)$as_nl"; |
3562 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
3563 | + esac; |
3564 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
3565 | + ' |
3566 | + export as_echo_n_body |
3567 | + as_echo_n='sh -c $as_echo_n_body as_echo' |
3568 | + fi |
3569 | + export as_echo_body |
3570 | + as_echo='sh -c $as_echo_body as_echo' |
3571 | +fi |
3572 | + |
3573 | +# The user is always right. |
3574 | +if test "${PATH_SEPARATOR+set}" != set; then |
3575 | + PATH_SEPARATOR=: |
3576 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
3577 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
3578 | + PATH_SEPARATOR=';' |
3579 | + } |
3580 | +fi |
3581 | + |
3582 | + |
3583 | +# IFS |
3584 | +# We need space, tab and new line, in precisely that order. Quoting is |
3585 | +# there to prevent editors from complaining about space-tab. |
3586 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
3587 | +# splitting by setting IFS to empty value.) |
3588 | +IFS=" "" $as_nl" |
3589 | + |
3590 | +# Find who we are. Look in the path if we contain no directory separator. |
3591 | +as_myself= |
3592 | +case $0 in #(( |
3593 | + *[\\/]* ) as_myself=$0 ;; |
3594 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3595 | +for as_dir in $PATH |
3596 | +do |
3597 | + IFS=$as_save_IFS |
3598 | + test -z "$as_dir" && as_dir=. |
3599 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
3600 | + done |
3601 | +IFS=$as_save_IFS |
3602 | + |
3603 | + ;; |
3604 | +esac |
3605 | +# We did not find ourselves, most probably we were run as `sh COMMAND' |
3606 | +# in which case we are not to be found in the path. |
3607 | +if test "x$as_myself" = x; then |
3608 | + as_myself=$0 |
3609 | +fi |
3610 | +if test ! -f "$as_myself"; then |
3611 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
3612 | + exit 1 |
3613 | +fi |
3614 | + |
3615 | +# Unset variables that we do not need and which cause bugs (e.g. in |
3616 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
3617 | +# suppresses any "Segmentation fault" message there. '((' could |
3618 | +# trigger a bug in pdksh 5.2.14. |
3619 | +for as_var in BASH_ENV ENV MAIL MAILPATH |
3620 | +do eval test x\${$as_var+set} = xset \ |
3621 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
3622 | +done |
3623 | +PS1='$ ' |
3624 | +PS2='> ' |
3625 | +PS4='+ ' |
3626 | + |
3627 | +# NLS nuisances. |
3628 | +LC_ALL=C |
3629 | +export LC_ALL |
3630 | +LANGUAGE=C |
3631 | +export LANGUAGE |
3632 | + |
3633 | +# CDPATH. |
3634 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
3635 | + |
3636 | +# Use a proper internal environment variable to ensure we don't fall |
3637 | + # into an infinite loop, continuously re-executing ourselves. |
3638 | + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
3639 | + _as_can_reexec=no; export _as_can_reexec; |
3640 | + # We cannot yet assume a decent shell, so we have to provide a |
3641 | +# neutralization value for shells without unset; and this also |
3642 | +# works around shells that cannot unset nonexistent variables. |
3643 | +# Preserve -v and -x to the replacement shell. |
3644 | +BASH_ENV=/dev/null |
3645 | +ENV=/dev/null |
3646 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
3647 | +case $- in # (((( |
3648 | + *v*x* | *x*v* ) as_opts=-vx ;; |
3649 | + *v* ) as_opts=-v ;; |
3650 | + *x* ) as_opts=-x ;; |
3651 | + * ) as_opts= ;; |
3652 | +esac |
3653 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
3654 | +# Admittedly, this is quite paranoid, since all the known shells bail |
3655 | +# out after a failed `exec'. |
3656 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
3657 | +as_fn_exit 255 |
3658 | + fi |
3659 | + # We don't want this to propagate to other subprocesses. |
3660 | + { _as_can_reexec=; unset _as_can_reexec;} |
3661 | +if test "x$CONFIG_SHELL" = x; then |
3662 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
3663 | + emulate sh |
3664 | + NULLCMD=: |
3665 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
3666 | + # is contrary to our usage. Disable this feature. |
3667 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' |
3668 | + setopt NO_GLOB_SUBST |
3669 | +else |
3670 | + case \`(set -o) 2>/dev/null\` in #( |
3671 | + *posix*) : |
3672 | + set -o posix ;; #( |
3673 | + *) : |
3674 | + ;; |
3675 | +esac |
3676 | +fi |
3677 | +" |
3678 | + as_required="as_fn_return () { (exit \$1); } |
3679 | +as_fn_success () { as_fn_return 0; } |
3680 | +as_fn_failure () { as_fn_return 1; } |
3681 | +as_fn_ret_success () { return 0; } |
3682 | +as_fn_ret_failure () { return 1; } |
3683 | + |
3684 | +exitcode=0 |
3685 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
3686 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
3687 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
3688 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
3689 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
3690 | + |
3691 | +else |
3692 | + exitcode=1; echo positional parameters were not saved. |
3693 | +fi |
3694 | +test x\$exitcode = x0 || exit 1 |
3695 | +test -x / || exit 1" |
3696 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
3697 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
3698 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
3699 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
3700 | +test \$(( 1 + 1 )) = 2 || exit 1" |
3701 | + if (eval "$as_required") 2>/dev/null; then : |
3702 | + as_have_required=yes |
3703 | +else |
3704 | + as_have_required=no |
3705 | +fi |
3706 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
3707 | + |
3708 | +else |
3709 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3710 | +as_found=false |
3711 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
3712 | +do |
3713 | + IFS=$as_save_IFS |
3714 | + test -z "$as_dir" && as_dir=. |
3715 | + as_found=: |
3716 | + case $as_dir in #( |
3717 | + /*) |
3718 | + for as_base in sh bash ksh sh5; do |
3719 | + # Try only shells that exist, to save several forks. |
3720 | + as_shell=$as_dir/$as_base |
3721 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
3722 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
3723 | + CONFIG_SHELL=$as_shell as_have_required=yes |
3724 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
3725 | + break 2 |
3726 | +fi |
3727 | +fi |
3728 | + done;; |
3729 | + esac |
3730 | + as_found=false |
3731 | +done |
3732 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
3733 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
3734 | + CONFIG_SHELL=$SHELL as_have_required=yes |
3735 | +fi; } |
3736 | +IFS=$as_save_IFS |
3737 | + |
3738 | + |
3739 | + if test "x$CONFIG_SHELL" != x; then : |
3740 | + export CONFIG_SHELL |
3741 | + # We cannot yet assume a decent shell, so we have to provide a |
3742 | +# neutralization value for shells without unset; and this also |
3743 | +# works around shells that cannot unset nonexistent variables. |
3744 | +# Preserve -v and -x to the replacement shell. |
3745 | +BASH_ENV=/dev/null |
3746 | +ENV=/dev/null |
3747 | +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
3748 | +case $- in # (((( |
3749 | + *v*x* | *x*v* ) as_opts=-vx ;; |
3750 | + *v* ) as_opts=-v ;; |
3751 | + *x* ) as_opts=-x ;; |
3752 | + * ) as_opts= ;; |
3753 | +esac |
3754 | +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
3755 | +# Admittedly, this is quite paranoid, since all the known shells bail |
3756 | +# out after a failed `exec'. |
3757 | +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
3758 | +exit 255 |
3759 | +fi |
3760 | + |
3761 | + if test x$as_have_required = xno; then : |
3762 | + $as_echo "$0: This script requires a shell more modern than all" |
3763 | + $as_echo "$0: the shells that I found on your system." |
3764 | + if test x${ZSH_VERSION+set} = xset ; then |
3765 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
3766 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
3767 | + else |
3768 | + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
3769 | +$0: including any error possibly output before this |
3770 | +$0: message. Then install a modern shell, or manually run |
3771 | +$0: the script under such a shell if you do have one." |
3772 | + fi |
3773 | + exit 1 |
3774 | +fi |
3775 | +fi |
3776 | +fi |
3777 | +SHELL=${CONFIG_SHELL-/bin/sh} |
3778 | +export SHELL |
3779 | +# Unset more variables known to interfere with behavior of common tools. |
3780 | +CLICOLOR_FORCE= GREP_OPTIONS= |
3781 | +unset CLICOLOR_FORCE GREP_OPTIONS |
3782 | + |
3783 | +## --------------------- ## |
3784 | +## M4sh Shell Functions. ## |
3785 | +## --------------------- ## |
3786 | +# as_fn_unset VAR |
3787 | +# --------------- |
3788 | +# Portably unset VAR. |
3789 | +as_fn_unset () |
3790 | +{ |
3791 | + { eval $1=; unset $1;} |
3792 | +} |
3793 | +as_unset=as_fn_unset |
3794 | + |
3795 | +# as_fn_set_status STATUS |
3796 | +# ----------------------- |
3797 | +# Set $? to STATUS, without forking. |
3798 | +as_fn_set_status () |
3799 | +{ |
3800 | + return $1 |
3801 | +} # as_fn_set_status |
3802 | + |
3803 | +# as_fn_exit STATUS |
3804 | +# ----------------- |
3805 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
3806 | +as_fn_exit () |
3807 | +{ |
3808 | + set +e |
3809 | + as_fn_set_status $1 |
3810 | + exit $1 |
3811 | +} # as_fn_exit |
3812 | + |
3813 | +# as_fn_mkdir_p |
3814 | +# ------------- |
3815 | +# Create "$as_dir" as a directory, including parents if necessary. |
3816 | +as_fn_mkdir_p () |
3817 | +{ |
3818 | + |
3819 | + case $as_dir in #( |
3820 | + -*) as_dir=./$as_dir;; |
3821 | + esac |
3822 | + test -d "$as_dir" || eval $as_mkdir_p || { |
3823 | + as_dirs= |
3824 | + while :; do |
3825 | + case $as_dir in #( |
3826 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
3827 | + *) as_qdir=$as_dir;; |
3828 | + esac |
3829 | + as_dirs="'$as_qdir' $as_dirs" |
3830 | + as_dir=`$as_dirname -- "$as_dir" || |
3831 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
3832 | + X"$as_dir" : 'X\(//\)[^/]' \| \ |
3833 | + X"$as_dir" : 'X\(//\)$' \| \ |
3834 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
3835 | +$as_echo X"$as_dir" | |
3836 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
3837 | + s//\1/ |
3838 | + q |
3839 | + } |
3840 | + /^X\(\/\/\)[^/].*/{ |
3841 | + s//\1/ |
3842 | + q |
3843 | + } |
3844 | + /^X\(\/\/\)$/{ |
3845 | + s//\1/ |
3846 | + q |
3847 | + } |
3848 | + /^X\(\/\).*/{ |
3849 | + s//\1/ |
3850 | + q |
3851 | + } |
3852 | + s/.*/./; q'` |
3853 | + test -d "$as_dir" && break |
3854 | + done |
3855 | + test -z "$as_dirs" || eval "mkdir $as_dirs" |
3856 | + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
3857 | + |
3858 | + |
3859 | +} # as_fn_mkdir_p |
3860 | + |
3861 | +# as_fn_executable_p FILE |
3862 | +# ----------------------- |
3863 | +# Test if FILE is an executable regular file. |
3864 | +as_fn_executable_p () |
3865 | +{ |
3866 | + test -f "$1" && test -x "$1" |
3867 | +} # as_fn_executable_p |
3868 | +# as_fn_append VAR VALUE |
3869 | +# ---------------------- |
3870 | +# Append the text in VALUE to the end of the definition contained in VAR. Take |
3871 | +# advantage of any shell optimizations that allow amortized linear growth over |
3872 | +# repeated appends, instead of the typical quadratic growth present in naive |
3873 | +# implementations. |
3874 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
3875 | + eval 'as_fn_append () |
3876 | + { |
3877 | + eval $1+=\$2 |
3878 | + }' |
3879 | +else |
3880 | + as_fn_append () |
3881 | + { |
3882 | + eval $1=\$$1\$2 |
3883 | + } |
3884 | +fi # as_fn_append |
3885 | + |
3886 | +# as_fn_arith ARG... |
3887 | +# ------------------ |
3888 | +# Perform arithmetic evaluation on the ARGs, and store the result in the |
3889 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments |
3890 | +# must be portable across $(()) and expr. |
3891 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
3892 | + eval 'as_fn_arith () |
3893 | + { |
3894 | + as_val=$(( $* )) |
3895 | + }' |
3896 | +else |
3897 | + as_fn_arith () |
3898 | + { |
3899 | + as_val=`expr "$@" || test $? -eq 1` |
3900 | + } |
3901 | +fi # as_fn_arith |
3902 | + |
3903 | + |
3904 | +# as_fn_error STATUS ERROR [LINENO LOG_FD] |
3905 | +# ---------------------------------------- |
3906 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
3907 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
3908 | +# script with STATUS, using 1 if that was 0. |
3909 | +as_fn_error () |
3910 | +{ |
3911 | + as_status=$1; test $as_status -eq 0 && as_status=1 |
3912 | + if test "$4"; then |
3913 | + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3914 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
3915 | + fi |
3916 | + $as_echo "$as_me: error: $2" >&2 |
3917 | + as_fn_exit $as_status |
3918 | +} # as_fn_error |
3919 | + |
3920 | +if expr a : '\(a\)' >/dev/null 2>&1 && |
3921 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then |
3922 | + as_expr=expr |
3923 | +else |
3924 | + as_expr=false |
3925 | +fi |
3926 | + |
3927 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
3928 | + as_basename=basename |
3929 | +else |
3930 | + as_basename=false |
3931 | +fi |
3932 | + |
3933 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
3934 | + as_dirname=dirname |
3935 | +else |
3936 | + as_dirname=false |
3937 | +fi |
3938 | + |
3939 | +as_me=`$as_basename -- "$0" || |
3940 | +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3941 | + X"$0" : 'X\(//\)$' \| \ |
3942 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || |
3943 | +$as_echo X/"$0" | |
3944 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ |
3945 | + s//\1/ |
3946 | + q |
3947 | + } |
3948 | + /^X\/\(\/\/\)$/{ |
3949 | + s//\1/ |
3950 | + q |
3951 | + } |
3952 | + /^X\/\(\/\).*/{ |
3953 | + s//\1/ |
3954 | + q |
3955 | + } |
3956 | + s/.*/./; q'` |
3957 | + |
3958 | +# Avoid depending upon Character Ranges. |
3959 | +as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
3960 | +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
3961 | +as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
3962 | +as_cr_digits='0123456789' |
3963 | +as_cr_alnum=$as_cr_Letters$as_cr_digits |
3964 | + |
3965 | + |
3966 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO |
3967 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO |
3968 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
3969 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
3970 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
3971 | + sed -n ' |
3972 | + p |
3973 | + /[$]LINENO/= |
3974 | + ' <$as_myself | |
3975 | + sed ' |
3976 | + s/[$]LINENO.*/&-/ |
3977 | + t lineno |
3978 | + b |
3979 | + :lineno |
3980 | + N |
3981 | + :loop |
3982 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
3983 | + t loop |
3984 | + s/-\n.*// |
3985 | + ' >$as_me.lineno && |
3986 | + chmod +x "$as_me.lineno" || |
3987 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
3988 | + |
3989 | + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
3990 | + # already done that, so ensure we don't try to do so again and fall |
3991 | + # in an infinite loop. This has already happened in practice. |
3992 | + _as_can_reexec=no; export _as_can_reexec |
3993 | + # Don't try to exec as it changes $[0], causing all sort of problems |
3994 | + # (the dirname of $[0] is not the place where we might find the |
3995 | + # original and so on. Autoconf is especially sensitive to this). |
3996 | + . "./$as_me.lineno" |
3997 | + # Exit status is that of the last command. |
3998 | + exit |
3999 | +} |
4000 | + |
4001 | +ECHO_C= ECHO_N= ECHO_T= |
4002 | +case `echo -n x` in #((((( |
4003 | +-n*) |
4004 | + case `echo 'xy\c'` in |
4005 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
4006 | + xy) ECHO_C='\c';; |
4007 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
4008 | + ECHO_T=' ';; |
4009 | + esac;; |
4010 | +*) |
4011 | + ECHO_N='-n';; |
4012 | +esac |
4013 | + |
4014 | +rm -f conf$$ conf$$.exe conf$$.file |
4015 | +if test -d conf$$.dir; then |
4016 | + rm -f conf$$.dir/conf$$.file |
4017 | +else |
4018 | + rm -f conf$$.dir |
4019 | + mkdir conf$$.dir 2>/dev/null |
4020 | +fi |
4021 | +if (echo >conf$$.file) 2>/dev/null; then |
4022 | + if ln -s conf$$.file conf$$ 2>/dev/null; then |
4023 | + as_ln_s='ln -s' |
4024 | + # ... but there are two gotchas: |
4025 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
4026 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
4027 | + # In both cases, we have to default to `cp -pR'. |
4028 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
4029 | + as_ln_s='cp -pR' |
4030 | + elif ln conf$$.file conf$$ 2>/dev/null; then |
4031 | + as_ln_s=ln |
4032 | + else |
4033 | + as_ln_s='cp -pR' |
4034 | + fi |
4035 | +else |
4036 | + as_ln_s='cp -pR' |
4037 | +fi |
4038 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4039 | +rmdir conf$$.dir 2>/dev/null |
4040 | + |
4041 | +if mkdir -p . 2>/dev/null; then |
4042 | + as_mkdir_p='mkdir -p "$as_dir"' |
4043 | +else |
4044 | + test -d ./-p && rmdir ./-p |
4045 | + as_mkdir_p=false |
4046 | +fi |
4047 | + |
4048 | +as_test_x='test -x' |
4049 | +as_executable_p=as_fn_executable_p |
4050 | + |
4051 | +# Sed expression to map a string onto a valid CPP name. |
4052 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
4053 | + |
4054 | +# Sed expression to map a string onto a valid variable name. |
4055 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
4056 | + |
4057 | + |
4058 | +test -n "$DJDIR" || exec 7<&0 </dev/null |
4059 | +exec 6>&1 |
4060 | + |
4061 | +# Name of the host. |
4062 | +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
4063 | +# so uname gets run too. |
4064 | +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
4065 | + |
4066 | +# |
4067 | +# Initializations. |
4068 | +# |
4069 | +ac_default_prefix=/usr/local |
4070 | +ac_clean_files= |
4071 | +ac_config_libobj_dir=. |
4072 | +LIBOBJS= |
4073 | +cross_compiling=no |
4074 | +subdirs= |
4075 | +MFLAGS= |
4076 | +MAKEFLAGS= |
4077 | + |
4078 | +# Identity of this package. |
4079 | +PACKAGE_NAME= |
4080 | +PACKAGE_TARNAME= |
4081 | +PACKAGE_VERSION= |
4082 | +PACKAGE_STRING= |
4083 | +PACKAGE_BUGREPORT= |
4084 | +PACKAGE_URL= |
4085 | + |
4086 | +ac_unique_file="src/update-notifier.c" |
4087 | +# Factoring default headers for most tests. |
4088 | +ac_includes_default="\ |
4089 | +#include <stdio.h> |
4090 | +#ifdef HAVE_SYS_TYPES_H |
4091 | +# include <sys/types.h> |
4092 | +#endif |
4093 | +#ifdef HAVE_SYS_STAT_H |
4094 | +# include <sys/stat.h> |
4095 | +#endif |
4096 | +#ifdef STDC_HEADERS |
4097 | +# include <stdlib.h> |
4098 | +# include <stddef.h> |
4099 | +#else |
4100 | +# ifdef HAVE_STDLIB_H |
4101 | +# include <stdlib.h> |
4102 | +# endif |
4103 | +#endif |
4104 | +#ifdef HAVE_STRING_H |
4105 | +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
4106 | +# include <memory.h> |
4107 | +# endif |
4108 | +# include <string.h> |
4109 | +#endif |
4110 | +#ifdef HAVE_STRINGS_H |
4111 | +# include <strings.h> |
4112 | +#endif |
4113 | +#ifdef HAVE_INTTYPES_H |
4114 | +# include <inttypes.h> |
4115 | +#endif |
4116 | +#ifdef HAVE_STDINT_H |
4117 | +# include <stdint.h> |
4118 | +#endif |
4119 | +#ifdef HAVE_UNISTD_H |
4120 | +# include <unistd.h> |
4121 | +#endif" |
4122 | + |
4123 | +ac_subst_vars='am__EXEEXT_FALSE |
4124 | +am__EXEEXT_TRUE |
4125 | +LTLIBOBJS |
4126 | +LIBOBJS |
4127 | +HAVE_APP_INDICATOR_FALSE |
4128 | +HAVE_APP_INDICATOR_TRUE |
4129 | +APP_INDICATOR_LIBS |
4130 | +APP_INDICATOR_CFLAGS |
4131 | +MKINSTALLDIRS |
4132 | +POSUB |
4133 | +POFILES |
4134 | +PO_IN_DATADIR_FALSE |
4135 | +PO_IN_DATADIR_TRUE |
4136 | +INTLLIBS |
4137 | +INSTOBJEXT |
4138 | +GMOFILES |
4139 | +DATADIRNAME |
4140 | +CATOBJEXT |
4141 | +CATALOGS |
4142 | +MSGFMT_OPTS |
4143 | +ALL_LINGUAS |
4144 | +INTLTOOL_PERL |
4145 | +GMSGFMT |
4146 | +MSGFMT |
4147 | +MSGMERGE |
4148 | +XGETTEXT |
4149 | +INTLTOOL_POLICY_RULE |
4150 | +INTLTOOL_SERVICE_RULE |
4151 | +INTLTOOL_THEME_RULE |
4152 | +INTLTOOL_SCHEMAS_RULE |
4153 | +INTLTOOL_CAVES_RULE |
4154 | +INTLTOOL_XML_NOMERGE_RULE |
4155 | +INTLTOOL_XML_RULE |
4156 | +INTLTOOL_KBD_RULE |
4157 | +INTLTOOL_XAM_RULE |
4158 | +INTLTOOL_UI_RULE |
4159 | +INTLTOOL_SOUNDLIST_RULE |
4160 | +INTLTOOL_SHEET_RULE |
4161 | +INTLTOOL_SERVER_RULE |
4162 | +INTLTOOL_PONG_RULE |
4163 | +INTLTOOL_OAF_RULE |
4164 | +INTLTOOL_PROP_RULE |
4165 | +INTLTOOL_KEYS_RULE |
4166 | +INTLTOOL_DIRECTORY_RULE |
4167 | +INTLTOOL_DESKTOP_RULE |
4168 | +intltool__v_merge_options_0 |
4169 | +intltool__v_merge_options_ |
4170 | +INTLTOOL_V_MERGE_OPTIONS |
4171 | +INTLTOOL__v_MERGE_0 |
4172 | +INTLTOOL__v_MERGE_ |
4173 | +INTLTOOL_V_MERGE |
4174 | +INTLTOOL_EXTRACT |
4175 | +INTLTOOL_MERGE |
4176 | +INTLTOOL_UPDATE |
4177 | +USE_NLS |
4178 | +GETTEXT_PACKAGE |
4179 | +PACKAGE_LIBS |
4180 | +PACKAGE_CFLAGS |
4181 | +GSETTINGS_RULES |
4182 | +GLIB_COMPILE_SCHEMAS |
4183 | +gsettingsschemadir |
4184 | +PKG_CONFIG_LIBDIR |
4185 | +PKG_CONFIG_PATH |
4186 | +PKG_CONFIG |
4187 | +GSETTINGS_DISABLE_SCHEMAS_COMPILE |
4188 | +ACLOCAL_AMFLAGS |
4189 | +EGREP |
4190 | +GREP |
4191 | +CPP |
4192 | +am__fastdepCC_FALSE |
4193 | +am__fastdepCC_TRUE |
4194 | +CCDEPMODE |
4195 | +am__nodep |
4196 | +AMDEPBACKSLASH |
4197 | +AMDEP_FALSE |
4198 | +AMDEP_TRUE |
4199 | +am__quote |
4200 | +am__include |
4201 | +DEPDIR |
4202 | +OBJEXT |
4203 | +EXEEXT |
4204 | +ac_ct_CC |
4205 | +CPPFLAGS |
4206 | +LDFLAGS |
4207 | +CFLAGS |
4208 | +CC |
4209 | +MAINT |
4210 | +MAINTAINER_MODE_FALSE |
4211 | +MAINTAINER_MODE_TRUE |
4212 | +AM_BACKSLASH |
4213 | +AM_DEFAULT_VERBOSITY |
4214 | +AM_DEFAULT_V |
4215 | +AM_V |
4216 | +am__untar |
4217 | +am__tar |
4218 | +AMTAR |
4219 | +am__leading_dot |
4220 | +SET_MAKE |
4221 | +AWK |
4222 | +mkdir_p |
4223 | +MKDIR_P |
4224 | +INSTALL_STRIP_PROGRAM |
4225 | +STRIP |
4226 | +install_sh |
4227 | +MAKEINFO |
4228 | +AUTOHEADER |
4229 | +AUTOMAKE |
4230 | +AUTOCONF |
4231 | +ACLOCAL |
4232 | +VERSION |
4233 | +PACKAGE |
4234 | +CYGPATH_W |
4235 | +am__isrc |
4236 | +INSTALL_DATA |
4237 | +INSTALL_SCRIPT |
4238 | +INSTALL_PROGRAM |
4239 | +target_alias |
4240 | +host_alias |
4241 | +build_alias |
4242 | +LIBS |
4243 | +ECHO_T |
4244 | +ECHO_N |
4245 | +ECHO_C |
4246 | +DEFS |
4247 | +mandir |
4248 | +localedir |
4249 | +libdir |
4250 | +psdir |
4251 | +pdfdir |
4252 | +dvidir |
4253 | +htmldir |
4254 | +infodir |
4255 | +docdir |
4256 | +oldincludedir |
4257 | +includedir |
4258 | +runstatedir |
4259 | +localstatedir |
4260 | +sharedstatedir |
4261 | +sysconfdir |
4262 | +datadir |
4263 | +datarootdir |
4264 | +libexecdir |
4265 | +sbindir |
4266 | +bindir |
4267 | +program_transform_name |
4268 | +prefix |
4269 | +exec_prefix |
4270 | +PACKAGE_URL |
4271 | +PACKAGE_BUGREPORT |
4272 | +PACKAGE_STRING |
4273 | +PACKAGE_VERSION |
4274 | +PACKAGE_TARNAME |
4275 | +PACKAGE_NAME |
4276 | +PATH_SEPARATOR |
4277 | +SHELL' |
4278 | +ac_subst_files='' |
4279 | +ac_user_opts=' |
4280 | +enable_option_checking |
4281 | +enable_silent_rules |
4282 | +enable_maintainer_mode |
4283 | +enable_dependency_tracking |
4284 | +enable_schemas_compile |
4285 | +enable_nls |
4286 | +enable_system_config_printer |
4287 | +enable_deprecations |
4288 | +enable_appindicator |
4289 | +' |
4290 | + ac_precious_vars='build_alias |
4291 | +host_alias |
4292 | +target_alias |
4293 | +CC |
4294 | +CFLAGS |
4295 | +LDFLAGS |
4296 | +LIBS |
4297 | +CPPFLAGS |
4298 | +CPP |
4299 | +PKG_CONFIG |
4300 | +PKG_CONFIG_PATH |
4301 | +PKG_CONFIG_LIBDIR |
4302 | +PACKAGE_CFLAGS |
4303 | +PACKAGE_LIBS |
4304 | +APP_INDICATOR_CFLAGS |
4305 | +APP_INDICATOR_LIBS' |
4306 | + |
4307 | + |
4308 | +# Initialize some variables set by options. |
4309 | +ac_init_help= |
4310 | +ac_init_version=false |
4311 | +ac_unrecognized_opts= |
4312 | +ac_unrecognized_sep= |
4313 | +# The variables have the same names as the options, with |
4314 | +# dashes changed to underlines. |
4315 | +cache_file=/dev/null |
4316 | +exec_prefix=NONE |
4317 | +no_create= |
4318 | +no_recursion= |
4319 | +prefix=NONE |
4320 | +program_prefix=NONE |
4321 | +program_suffix=NONE |
4322 | +program_transform_name=s,x,x, |
4323 | +silent= |
4324 | +site= |
4325 | +srcdir= |
4326 | +verbose= |
4327 | +x_includes=NONE |
4328 | +x_libraries=NONE |
4329 | + |
4330 | +# Installation directory options. |
4331 | +# These are left unexpanded so users can "make install exec_prefix=/foo" |
4332 | +# and all the variables that are supposed to be based on exec_prefix |
4333 | +# by default will actually change. |
4334 | +# Use braces instead of parens because sh, perl, etc. also accept them. |
4335 | +# (The list follows the same order as the GNU Coding Standards.) |
4336 | +bindir='${exec_prefix}/bin' |
4337 | +sbindir='${exec_prefix}/sbin' |
4338 | +libexecdir='${exec_prefix}/libexec' |
4339 | +datarootdir='${prefix}/share' |
4340 | +datadir='${datarootdir}' |
4341 | +sysconfdir='${prefix}/etc' |
4342 | +sharedstatedir='${prefix}/com' |
4343 | +localstatedir='${prefix}/var' |
4344 | +runstatedir='${localstatedir}/run' |
4345 | +includedir='${prefix}/include' |
4346 | +oldincludedir='/usr/include' |
4347 | +docdir='${datarootdir}/doc/${PACKAGE}' |
4348 | +infodir='${datarootdir}/info' |
4349 | +htmldir='${docdir}' |
4350 | +dvidir='${docdir}' |
4351 | +pdfdir='${docdir}' |
4352 | +psdir='${docdir}' |
4353 | +libdir='${exec_prefix}/lib' |
4354 | +localedir='${datarootdir}/locale' |
4355 | +mandir='${datarootdir}/man' |
4356 | + |
4357 | +ac_prev= |
4358 | +ac_dashdash= |
4359 | +for ac_option |
4360 | +do |
4361 | + # If the previous option needs an argument, assign it. |
4362 | + if test -n "$ac_prev"; then |
4363 | + eval $ac_prev=\$ac_option |
4364 | + ac_prev= |
4365 | + continue |
4366 | + fi |
4367 | + |
4368 | + case $ac_option in |
4369 | + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
4370 | + *=) ac_optarg= ;; |
4371 | + *) ac_optarg=yes ;; |
4372 | + esac |
4373 | + |
4374 | + # Accept the important Cygnus configure options, so we can diagnose typos. |
4375 | + |
4376 | + case $ac_dashdash$ac_option in |
4377 | + --) |
4378 | + ac_dashdash=yes ;; |
4379 | + |
4380 | + -bindir | --bindir | --bindi | --bind | --bin | --bi) |
4381 | + ac_prev=bindir ;; |
4382 | + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
4383 | + bindir=$ac_optarg ;; |
4384 | + |
4385 | + -build | --build | --buil | --bui | --bu) |
4386 | + ac_prev=build_alias ;; |
4387 | + -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
4388 | + build_alias=$ac_optarg ;; |
4389 | + |
4390 | + -cache-file | --cache-file | --cache-fil | --cache-fi \ |
4391 | + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
4392 | + ac_prev=cache_file ;; |
4393 | + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
4394 | + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
4395 | + cache_file=$ac_optarg ;; |
4396 | + |
4397 | + --config-cache | -C) |
4398 | + cache_file=config.cache ;; |
4399 | + |
4400 | + -datadir | --datadir | --datadi | --datad) |
4401 | + ac_prev=datadir ;; |
4402 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) |
4403 | + datadir=$ac_optarg ;; |
4404 | + |
4405 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
4406 | + | --dataroo | --dataro | --datar) |
4407 | + ac_prev=datarootdir ;; |
4408 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
4409 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
4410 | + datarootdir=$ac_optarg ;; |
4411 | + |
4412 | + -disable-* | --disable-*) |
4413 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
4414 | + # Reject names that are not valid shell variable names. |
4415 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4416 | + as_fn_error $? "invalid feature name: $ac_useropt" |
4417 | + ac_useropt_orig=$ac_useropt |
4418 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
4419 | + case $ac_user_opts in |
4420 | + *" |
4421 | +"enable_$ac_useropt" |
4422 | +"*) ;; |
4423 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
4424 | + ac_unrecognized_sep=', ';; |
4425 | + esac |
4426 | + eval enable_$ac_useropt=no ;; |
4427 | + |
4428 | + -docdir | --docdir | --docdi | --doc | --do) |
4429 | + ac_prev=docdir ;; |
4430 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
4431 | + docdir=$ac_optarg ;; |
4432 | + |
4433 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
4434 | + ac_prev=dvidir ;; |
4435 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
4436 | + dvidir=$ac_optarg ;; |
4437 | + |
4438 | + -enable-* | --enable-*) |
4439 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
4440 | + # Reject names that are not valid shell variable names. |
4441 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4442 | + as_fn_error $? "invalid feature name: $ac_useropt" |
4443 | + ac_useropt_orig=$ac_useropt |
4444 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
4445 | + case $ac_user_opts in |
4446 | + *" |
4447 | +"enable_$ac_useropt" |
4448 | +"*) ;; |
4449 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
4450 | + ac_unrecognized_sep=', ';; |
4451 | + esac |
4452 | + eval enable_$ac_useropt=\$ac_optarg ;; |
4453 | + |
4454 | + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
4455 | + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
4456 | + | --exec | --exe | --ex) |
4457 | + ac_prev=exec_prefix ;; |
4458 | + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
4459 | + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
4460 | + | --exec=* | --exe=* | --ex=*) |
4461 | + exec_prefix=$ac_optarg ;; |
4462 | + |
4463 | + -gas | --gas | --ga | --g) |
4464 | + # Obsolete; use --with-gas. |
4465 | + with_gas=yes ;; |
4466 | + |
4467 | + -help | --help | --hel | --he | -h) |
4468 | + ac_init_help=long ;; |
4469 | + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
4470 | + ac_init_help=recursive ;; |
4471 | + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
4472 | + ac_init_help=short ;; |
4473 | + |
4474 | + -host | --host | --hos | --ho) |
4475 | + ac_prev=host_alias ;; |
4476 | + -host=* | --host=* | --hos=* | --ho=*) |
4477 | + host_alias=$ac_optarg ;; |
4478 | + |
4479 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
4480 | + ac_prev=htmldir ;; |
4481 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
4482 | + | --ht=*) |
4483 | + htmldir=$ac_optarg ;; |
4484 | + |
4485 | + -includedir | --includedir | --includedi | --included | --include \ |
4486 | + | --includ | --inclu | --incl | --inc) |
4487 | + ac_prev=includedir ;; |
4488 | + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
4489 | + | --includ=* | --inclu=* | --incl=* | --inc=*) |
4490 | + includedir=$ac_optarg ;; |
4491 | + |
4492 | + -infodir | --infodir | --infodi | --infod | --info | --inf) |
4493 | + ac_prev=infodir ;; |
4494 | + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
4495 | + infodir=$ac_optarg ;; |
4496 | + |
4497 | + -libdir | --libdir | --libdi | --libd) |
4498 | + ac_prev=libdir ;; |
4499 | + -libdir=* | --libdir=* | --libdi=* | --libd=*) |
4500 | + libdir=$ac_optarg ;; |
4501 | + |
4502 | + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
4503 | + | --libexe | --libex | --libe) |
4504 | + ac_prev=libexecdir ;; |
4505 | + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
4506 | + | --libexe=* | --libex=* | --libe=*) |
4507 | + libexecdir=$ac_optarg ;; |
4508 | + |
4509 | + -localedir | --localedir | --localedi | --localed | --locale) |
4510 | + ac_prev=localedir ;; |
4511 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
4512 | + localedir=$ac_optarg ;; |
4513 | + |
4514 | + -localstatedir | --localstatedir | --localstatedi | --localstated \ |
4515 | + | --localstate | --localstat | --localsta | --localst | --locals) |
4516 | + ac_prev=localstatedir ;; |
4517 | + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
4518 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
4519 | + localstatedir=$ac_optarg ;; |
4520 | + |
4521 | + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
4522 | + ac_prev=mandir ;; |
4523 | + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
4524 | + mandir=$ac_optarg ;; |
4525 | + |
4526 | + -nfp | --nfp | --nf) |
4527 | + # Obsolete; use --without-fp. |
4528 | + with_fp=no ;; |
4529 | + |
4530 | + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
4531 | + | --no-cr | --no-c | -n) |
4532 | + no_create=yes ;; |
4533 | + |
4534 | + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
4535 | + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
4536 | + no_recursion=yes ;; |
4537 | + |
4538 | + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
4539 | + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
4540 | + | --oldin | --oldi | --old | --ol | --o) |
4541 | + ac_prev=oldincludedir ;; |
4542 | + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
4543 | + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
4544 | + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
4545 | + oldincludedir=$ac_optarg ;; |
4546 | + |
4547 | + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
4548 | + ac_prev=prefix ;; |
4549 | + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
4550 | + prefix=$ac_optarg ;; |
4551 | + |
4552 | + -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
4553 | + | --program-pre | --program-pr | --program-p) |
4554 | + ac_prev=program_prefix ;; |
4555 | + -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
4556 | + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
4557 | + program_prefix=$ac_optarg ;; |
4558 | + |
4559 | + -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
4560 | + | --program-suf | --program-su | --program-s) |
4561 | + ac_prev=program_suffix ;; |
4562 | + -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
4563 | + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
4564 | + program_suffix=$ac_optarg ;; |
4565 | + |
4566 | + -program-transform-name | --program-transform-name \ |
4567 | + | --program-transform-nam | --program-transform-na \ |
4568 | + | --program-transform-n | --program-transform- \ |
4569 | + | --program-transform | --program-transfor \ |
4570 | + | --program-transfo | --program-transf \ |
4571 | + | --program-trans | --program-tran \ |
4572 | + | --progr-tra | --program-tr | --program-t) |
4573 | + ac_prev=program_transform_name ;; |
4574 | + -program-transform-name=* | --program-transform-name=* \ |
4575 | + | --program-transform-nam=* | --program-transform-na=* \ |
4576 | + | --program-transform-n=* | --program-transform-=* \ |
4577 | + | --program-transform=* | --program-transfor=* \ |
4578 | + | --program-transfo=* | --program-transf=* \ |
4579 | + | --program-trans=* | --program-tran=* \ |
4580 | + | --progr-tra=* | --program-tr=* | --program-t=*) |
4581 | + program_transform_name=$ac_optarg ;; |
4582 | + |
4583 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
4584 | + ac_prev=pdfdir ;; |
4585 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
4586 | + pdfdir=$ac_optarg ;; |
4587 | + |
4588 | + -psdir | --psdir | --psdi | --psd | --ps) |
4589 | + ac_prev=psdir ;; |
4590 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
4591 | + psdir=$ac_optarg ;; |
4592 | + |
4593 | + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4594 | + | -silent | --silent | --silen | --sile | --sil) |
4595 | + silent=yes ;; |
4596 | + |
4597 | + -runstatedir | --runstatedir | --runstatedi | --runstated \ |
4598 | + | --runstate | --runstat | --runsta | --runst | --runs \ |
4599 | + | --run | --ru | --r) |
4600 | + ac_prev=runstatedir ;; |
4601 | + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
4602 | + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
4603 | + | --run=* | --ru=* | --r=*) |
4604 | + runstatedir=$ac_optarg ;; |
4605 | + |
4606 | + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
4607 | + ac_prev=sbindir ;; |
4608 | + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
4609 | + | --sbi=* | --sb=*) |
4610 | + sbindir=$ac_optarg ;; |
4611 | + |
4612 | + -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
4613 | + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
4614 | + | --sharedst | --shareds | --shared | --share | --shar \ |
4615 | + | --sha | --sh) |
4616 | + ac_prev=sharedstatedir ;; |
4617 | + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
4618 | + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
4619 | + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
4620 | + | --sha=* | --sh=*) |
4621 | + sharedstatedir=$ac_optarg ;; |
4622 | + |
4623 | + -site | --site | --sit) |
4624 | + ac_prev=site ;; |
4625 | + -site=* | --site=* | --sit=*) |
4626 | + site=$ac_optarg ;; |
4627 | + |
4628 | + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
4629 | + ac_prev=srcdir ;; |
4630 | + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
4631 | + srcdir=$ac_optarg ;; |
4632 | + |
4633 | + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
4634 | + | --syscon | --sysco | --sysc | --sys | --sy) |
4635 | + ac_prev=sysconfdir ;; |
4636 | + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
4637 | + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
4638 | + sysconfdir=$ac_optarg ;; |
4639 | + |
4640 | + -target | --target | --targe | --targ | --tar | --ta | --t) |
4641 | + ac_prev=target_alias ;; |
4642 | + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
4643 | + target_alias=$ac_optarg ;; |
4644 | + |
4645 | + -v | -verbose | --verbose | --verbos | --verbo | --verb) |
4646 | + verbose=yes ;; |
4647 | + |
4648 | + -version | --version | --versio | --versi | --vers | -V) |
4649 | + ac_init_version=: ;; |
4650 | + |
4651 | + -with-* | --with-*) |
4652 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
4653 | + # Reject names that are not valid shell variable names. |
4654 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4655 | + as_fn_error $? "invalid package name: $ac_useropt" |
4656 | + ac_useropt_orig=$ac_useropt |
4657 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
4658 | + case $ac_user_opts in |
4659 | + *" |
4660 | +"with_$ac_useropt" |
4661 | +"*) ;; |
4662 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
4663 | + ac_unrecognized_sep=', ';; |
4664 | + esac |
4665 | + eval with_$ac_useropt=\$ac_optarg ;; |
4666 | + |
4667 | + -without-* | --without-*) |
4668 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
4669 | + # Reject names that are not valid shell variable names. |
4670 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4671 | + as_fn_error $? "invalid package name: $ac_useropt" |
4672 | + ac_useropt_orig=$ac_useropt |
4673 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
4674 | + case $ac_user_opts in |
4675 | + *" |
4676 | +"with_$ac_useropt" |
4677 | +"*) ;; |
4678 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
4679 | + ac_unrecognized_sep=', ';; |
4680 | + esac |
4681 | + eval with_$ac_useropt=no ;; |
4682 | + |
4683 | + --x) |
4684 | + # Obsolete; use --with-x. |
4685 | + with_x=yes ;; |
4686 | + |
4687 | + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
4688 | + | --x-incl | --x-inc | --x-in | --x-i) |
4689 | + ac_prev=x_includes ;; |
4690 | + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
4691 | + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
4692 | + x_includes=$ac_optarg ;; |
4693 | + |
4694 | + -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
4695 | + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
4696 | + ac_prev=x_libraries ;; |
4697 | + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
4698 | + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
4699 | + x_libraries=$ac_optarg ;; |
4700 | + |
4701 | + -*) as_fn_error $? "unrecognized option: \`$ac_option' |
4702 | +Try \`$0 --help' for more information" |
4703 | + ;; |
4704 | + |
4705 | + *=*) |
4706 | + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
4707 | + # Reject names that are not valid shell variable names. |
4708 | + case $ac_envvar in #( |
4709 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) |
4710 | + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
4711 | + esac |
4712 | + eval $ac_envvar=\$ac_optarg |
4713 | + export $ac_envvar ;; |
4714 | + |
4715 | + *) |
4716 | + # FIXME: should be removed in autoconf 3.0. |
4717 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
4718 | + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
4719 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
4720 | + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
4721 | + ;; |
4722 | + |
4723 | + esac |
4724 | +done |
4725 | + |
4726 | +if test -n "$ac_prev"; then |
4727 | + ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
4728 | + as_fn_error $? "missing argument to $ac_option" |
4729 | +fi |
4730 | + |
4731 | +if test -n "$ac_unrecognized_opts"; then |
4732 | + case $enable_option_checking in |
4733 | + no) ;; |
4734 | + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
4735 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
4736 | + esac |
4737 | +fi |
4738 | + |
4739 | +# Check all directory arguments for consistency. |
4740 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
4741 | + datadir sysconfdir sharedstatedir localstatedir includedir \ |
4742 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
4743 | + libdir localedir mandir runstatedir |
4744 | +do |
4745 | + eval ac_val=\$$ac_var |
4746 | + # Remove trailing slashes. |
4747 | + case $ac_val in |
4748 | + */ ) |
4749 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
4750 | + eval $ac_var=\$ac_val;; |
4751 | + esac |
4752 | + # Be sure to have absolute directory names. |
4753 | + case $ac_val in |
4754 | + [\\/$]* | ?:[\\/]* ) continue;; |
4755 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
4756 | + esac |
4757 | + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
4758 | +done |
4759 | + |
4760 | +# There might be people who depend on the old broken behavior: `$host' |
4761 | +# used to hold the argument of --host etc. |
4762 | +# FIXME: To remove some day. |
4763 | +build=$build_alias |
4764 | +host=$host_alias |
4765 | +target=$target_alias |
4766 | + |
4767 | +# FIXME: To remove some day. |
4768 | +if test "x$host_alias" != x; then |
4769 | + if test "x$build_alias" = x; then |
4770 | + cross_compiling=maybe |
4771 | + elif test "x$build_alias" != "x$host_alias"; then |
4772 | + cross_compiling=yes |
4773 | + fi |
4774 | +fi |
4775 | + |
4776 | +ac_tool_prefix= |
4777 | +test -n "$host_alias" && ac_tool_prefix=$host_alias- |
4778 | + |
4779 | +test "$silent" = yes && exec 6>/dev/null |
4780 | + |
4781 | + |
4782 | +ac_pwd=`pwd` && test -n "$ac_pwd" && |
4783 | +ac_ls_di=`ls -di .` && |
4784 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
4785 | + as_fn_error $? "working directory cannot be determined" |
4786 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
4787 | + as_fn_error $? "pwd does not report name of working directory" |
4788 | + |
4789 | + |
4790 | +# Find the source files, if location was not specified. |
4791 | +if test -z "$srcdir"; then |
4792 | + ac_srcdir_defaulted=yes |
4793 | + # Try the directory containing this script, then the parent directory. |
4794 | + ac_confdir=`$as_dirname -- "$as_myself" || |
4795 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4796 | + X"$as_myself" : 'X\(//\)[^/]' \| \ |
4797 | + X"$as_myself" : 'X\(//\)$' \| \ |
4798 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
4799 | +$as_echo X"$as_myself" | |
4800 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
4801 | + s//\1/ |
4802 | + q |
4803 | + } |
4804 | + /^X\(\/\/\)[^/].*/{ |
4805 | + s//\1/ |
4806 | + q |
4807 | + } |
4808 | + /^X\(\/\/\)$/{ |
4809 | + s//\1/ |
4810 | + q |
4811 | + } |
4812 | + /^X\(\/\).*/{ |
4813 | + s//\1/ |
4814 | + q |
4815 | + } |
4816 | + s/.*/./; q'` |
4817 | + srcdir=$ac_confdir |
4818 | + if test ! -r "$srcdir/$ac_unique_file"; then |
4819 | + srcdir=.. |
4820 | + fi |
4821 | +else |
4822 | + ac_srcdir_defaulted=no |
4823 | +fi |
4824 | +if test ! -r "$srcdir/$ac_unique_file"; then |
4825 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
4826 | + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
4827 | +fi |
4828 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
4829 | +ac_abs_confdir=`( |
4830 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
4831 | + pwd)` |
4832 | +# When building in place, set srcdir=. |
4833 | +if test "$ac_abs_confdir" = "$ac_pwd"; then |
4834 | + srcdir=. |
4835 | +fi |
4836 | +# Remove unnecessary trailing slashes from srcdir. |
4837 | +# Double slashes in file names in object file debugging info |
4838 | +# mess up M-x gdb in Emacs. |
4839 | +case $srcdir in |
4840 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
4841 | +esac |
4842 | +for ac_var in $ac_precious_vars; do |
4843 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} |
4844 | + eval ac_env_${ac_var}_value=\$${ac_var} |
4845 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
4846 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} |
4847 | +done |
4848 | + |
4849 | +# |
4850 | +# Report the --help message. |
4851 | +# |
4852 | +if test "$ac_init_help" = "long"; then |
4853 | + # Omit some internal or obsolete options to make the list less imposing. |
4854 | + # This message is too long to be a string in the A/UX 3.1 sh. |
4855 | + cat <<_ACEOF |
4856 | +\`configure' configures this package to adapt to many kinds of systems. |
4857 | + |
4858 | +Usage: $0 [OPTION]... [VAR=VALUE]... |
4859 | + |
4860 | +To assign environment variables (e.g., CC, CFLAGS...), specify them as |
4861 | +VAR=VALUE. See below for descriptions of some of the useful variables. |
4862 | + |
4863 | +Defaults for the options are specified in brackets. |
4864 | + |
4865 | +Configuration: |
4866 | + -h, --help display this help and exit |
4867 | + --help=short display options specific to this package |
4868 | + --help=recursive display the short help of all the included packages |
4869 | + -V, --version display version information and exit |
4870 | + -q, --quiet, --silent do not print \`checking ...' messages |
4871 | + --cache-file=FILE cache test results in FILE [disabled] |
4872 | + -C, --config-cache alias for \`--cache-file=config.cache' |
4873 | + -n, --no-create do not create output files |
4874 | + --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
4875 | + |
4876 | +Installation directories: |
4877 | + --prefix=PREFIX install architecture-independent files in PREFIX |
4878 | + [$ac_default_prefix] |
4879 | + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
4880 | + [PREFIX] |
4881 | + |
4882 | +By default, \`make install' will install all the files in |
4883 | +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
4884 | +an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
4885 | +for instance \`--prefix=\$HOME'. |
4886 | + |
4887 | +For better control, use the options below. |
4888 | + |
4889 | +Fine tuning of the installation directories: |
4890 | + --bindir=DIR user executables [EPREFIX/bin] |
4891 | + --sbindir=DIR system admin executables [EPREFIX/sbin] |
4892 | + --libexecdir=DIR program executables [EPREFIX/libexec] |
4893 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
4894 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
4895 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
4896 | + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
4897 | + --libdir=DIR object code libraries [EPREFIX/lib] |
4898 | + --includedir=DIR C header files [PREFIX/include] |
4899 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] |
4900 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
4901 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
4902 | + --infodir=DIR info documentation [DATAROOTDIR/info] |
4903 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
4904 | + --mandir=DIR man documentation [DATAROOTDIR/man] |
4905 | + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
4906 | + --htmldir=DIR html documentation [DOCDIR] |
4907 | + --dvidir=DIR dvi documentation [DOCDIR] |
4908 | + --pdfdir=DIR pdf documentation [DOCDIR] |
4909 | + --psdir=DIR ps documentation [DOCDIR] |
4910 | +_ACEOF |
4911 | + |
4912 | + cat <<\_ACEOF |
4913 | + |
4914 | +Program names: |
4915 | + --program-prefix=PREFIX prepend PREFIX to installed program names |
4916 | + --program-suffix=SUFFIX append SUFFIX to installed program names |
4917 | + --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
4918 | +_ACEOF |
4919 | +fi |
4920 | + |
4921 | +if test -n "$ac_init_help"; then |
4922 | + |
4923 | + cat <<\_ACEOF |
4924 | + |
4925 | +Optional Features: |
4926 | + --disable-option-checking ignore unrecognized --enable/--with options |
4927 | + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
4928 | + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
4929 | + --enable-silent-rules less verbose build output (undo: "make V=1") |
4930 | + --disable-silent-rules verbose build output (undo: "make V=0") |
4931 | + --enable-maintainer-mode |
4932 | + enable make rules and dependencies not useful (and |
4933 | + sometimes confusing) to the casual installer |
4934 | + --enable-dependency-tracking |
4935 | + do not reject slow dependency extractors |
4936 | + --disable-dependency-tracking |
4937 | + speeds up one-time build |
4938 | + --disable-schemas-compile |
4939 | + Disable regeneration of gschemas.compiled on install |
4940 | + --disable-nls do not use Native Language Support |
4941 | + --enable-system-config-printer |
4942 | + enable on-demand launching of system-config-printer |
4943 | + --enable-deprecations allow deprecated API usage [default=yes] |
4944 | + --enable-appindicator=[no/auto/yes] |
4945 | + Build support for application indicators |
4946 | + |
4947 | +Some influential environment variables: |
4948 | + CC C compiler command |
4949 | + CFLAGS C compiler flags |
4950 | + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
4951 | + nonstandard directory <lib dir> |
4952 | + LIBS libraries to pass to the linker, e.g. -l<library> |
4953 | + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
4954 | + you have headers in a nonstandard directory <include dir> |
4955 | + CPP C preprocessor |
4956 | + PKG_CONFIG path to pkg-config utility |
4957 | + PKG_CONFIG_PATH |
4958 | + directories to add to pkg-config's search path |
4959 | + PKG_CONFIG_LIBDIR |
4960 | + path overriding pkg-config's built-in search path |
4961 | + PACKAGE_CFLAGS |
4962 | + C compiler flags for PACKAGE, overriding pkg-config |
4963 | + PACKAGE_LIBS |
4964 | + linker flags for PACKAGE, overriding pkg-config |
4965 | + APP_INDICATOR_CFLAGS |
4966 | + C compiler flags for APP_INDICATOR, overriding pkg-config |
4967 | + APP_INDICATOR_LIBS |
4968 | + linker flags for APP_INDICATOR, overriding pkg-config |
4969 | + |
4970 | +Use these variables to override the choices made by `configure' or to help |
4971 | +it to find libraries and programs with nonstandard names/locations. |
4972 | + |
4973 | +Report bugs to the package provider. |
4974 | +_ACEOF |
4975 | +ac_status=$? |
4976 | +fi |
4977 | + |
4978 | +if test "$ac_init_help" = "recursive"; then |
4979 | + # If there are subdirs, report their specific --help. |
4980 | + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
4981 | + test -d "$ac_dir" || |
4982 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
4983 | + continue |
4984 | + ac_builddir=. |
4985 | + |
4986 | +case "$ac_dir" in |
4987 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
4988 | +*) |
4989 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
4990 | + # A ".." for each directory in $ac_dir_suffix. |
4991 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
4992 | + case $ac_top_builddir_sub in |
4993 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
4994 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
4995 | + esac ;; |
4996 | +esac |
4997 | +ac_abs_top_builddir=$ac_pwd |
4998 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix |
4999 | +# for backward compatibility: |
5000 | +ac_top_builddir=$ac_top_build_prefix |
The diff has been truncated for viewing.
Need info about the translation fix, I don't know the answer. Maybe ask one of the previous uploaders of this package.