Merge lp://qastaging/~laney/ubuntu/karmic/cdbs/cdbs-merge-0.4.59 into lp://qastaging/ubuntu/karmic/cdbs
- Karmic (9.10)
- cdbs-merge-0.4.59
- Merge into karmic
Proposed by
Iain Lane
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp://qastaging/~laney/ubuntu/karmic/cdbs/cdbs-merge-0.4.59 | ||||
Merge into: | lp://qastaging/ubuntu/karmic/cdbs | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp://qastaging/~laney/ubuntu/karmic/cdbs/cdbs-merge-0.4.59 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Westby (community) | Approve | ||
Review via email:
|
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Iain Lane (laney) wrote : | # |
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
James Westby (james-w) wrote : | # |
Looks good, thanks.
James
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '1/class/ant-vars.mk.in' |
2 | --- 1/class/ant-vars.mk.in 2007-01-15 13:04:23 +0000 |
3 | +++ 1/class/ant-vars.mk.in 2009-08-18 14:56:29 +0000 |
4 | @@ -53,7 +53,7 @@ |
5 | # Set compile.debug and compile.optimize depending on DEB_BUILD_OPTIONS to |
6 | # match the behaviour of C/C++ programs |
7 | DEB_ANT_ARGS = -Dcompile.debug=true |
8 | -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
9 | +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) |
10 | DEB_ANT_ARGS += -Dcompile.optimize=false |
11 | else |
12 | DEB_ANT_ARGS += -Dcompile.optimize=true |
13 | |
14 | === modified file '1/class/ant.mk.in' |
15 | --- 1/class/ant.mk.in 2009-03-17 13:33:07 +0000 |
16 | +++ 1/class/ant.mk.in 2009-08-18 14:56:29 +0000 |
17 | @@ -51,7 +51,7 @@ |
18 | common-install-impl:: |
19 | $(if $(DEB_ANT_INSTALL_TARGET),$(DEB_ANT_INVOKE) $(DEB_ANT_INSTALL_TARGET),@echo "DEB_ANT_INSTALL_TARGET unset, skipping default ant.mk common-install target") |
20 | |
21 | -ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) |
22 | +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
23 | common-build-arch common-build-indep:: debian/stamp-ant-check |
24 | debian/stamp-ant-check: debian/stamp-ant-build |
25 | $(if $(DEB_ANT_CHECK_TARGET),$(DEB_ANT_INVOKE) $(DEB_ANT_CHECK_TARGET),@echo "DEB_ANT_CHECK_TARGET unset, not running checks") |
26 | |
27 | === modified file '1/class/autotools.mk.in' |
28 | --- 1/class/autotools.mk.in 2007-01-15 13:04:23 +0000 |
29 | +++ 1/class/autotools.mk.in 2009-08-18 14:56:29 +0000 |
30 | @@ -26,7 +26,7 @@ |
31 | |
32 | # Overriden from makefile-vars.mk. We pass CFLAGS and friends to ./configure, so |
33 | # no need to pass them to make. |
34 | -DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR) |
35 | +DEB_MAKE_EXTRA_ARGS = |
36 | |
37 | common-configure-arch common-configure-indep:: common-configure-impl |
38 | common-configure-impl:: $(DEB_BUILDDIR)/config.status |
39 | |
40 | === modified file '1/class/cmake.mk.in' |
41 | --- 1/class/cmake.mk.in 2008-04-29 11:25:42 +0000 |
42 | +++ 1/class/cmake.mk.in 2009-08-18 14:56:29 +0000 |
43 | @@ -34,7 +34,7 @@ |
44 | |
45 | # Overriden from makefile-vars.mk |
46 | # We pass CFLAGS and friends to cmake, so no need to pass them to make |
47 | -DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR) |
48 | +DEB_MAKE_EXTRA_ARGS = |
49 | |
50 | DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR) |
51 | |
52 | |
53 | === modified file '1/class/gnome.mk.in' |
54 | --- 1/class/gnome.mk.in 2008-04-29 11:25:42 +0000 |
55 | +++ 1/class/gnome.mk.in 2009-08-18 14:56:29 +0000 |
56 | @@ -22,18 +22,15 @@ |
57 | ifndef _cdbs_class_gnome |
58 | _cdbs_class_gnome = 1 |
59 | |
60 | -# for dh_desktop |
61 | -CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.2.21) |
62 | - |
63 | include $(_cdbs_class_path)/autotools.mk$(_cdbs_makefile_suffix) |
64 | -ifndef _cdbs_rules_debhelper |
65 | -include $(_cdbs_class_path)/docbookxml.mk$(_cdbs_makefile_suffix) |
66 | -endif |
67 | |
68 | DEB_MAKE_ENVVARS += GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
69 | |
70 | include $(_cdbs_rules_path)/langpack.mk$(_cdbs_makefile_suffix) |
71 | |
72 | +# for dh_desktop |
73 | +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 4.2.21) |
74 | + |
75 | # Most GNOME upstreams don't bother to fix this. |
76 | clean:: |
77 | test -d $(DEB_BUILDDIR) && cd $(DEB_BUILDDIR) && \ |
78 | @@ -41,12 +38,11 @@ |
79 | if test -d doc; then find doc -name '*.omf.out' -exec rm -f \{\} \; ; fi; \ |
80 | if test -d help; then find help -name '*.omf.out' -exec rm -f \{\} \; ; fi |
81 | |
82 | -ifdef _cdbs_rules_debhelper |
83 | +# debhelper.mk targets, so silently ignored if debhelper.mk not included |
84 | $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: |
85 | dh_scrollkeeper -p$(cdbs_curpkg) $(DEB_DH_SCROLLKEEPER_ARGS) |
86 | $(if $(wildcard /usr/bin/dh_gconf),dh_gconf -p$(cdbs_curpkg) $(DEB_DH_GCONF_ARGS)) |
87 | $(if $(wildcard /usr/bin/dh_desktop),dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS)) |
88 | $(if $(wildcard /usr/bin/dh_icons),dh_icons -p$(cdbs_curpkg) $(DEB_DH_ICONS_ARGS)) |
89 | -endif |
90 | |
91 | endif |
92 | |
93 | === modified file '1/class/kde.mk.in' |
94 | --- 1/class/kde.mk.in 2009-04-08 18:42:57 +0000 |
95 | +++ 1/class/kde.mk.in 2009-08-18 14:56:29 +0000 |
96 | @@ -39,18 +39,18 @@ |
97 | export kde_confdir = \$${sysconfdir}/kde3 |
98 | export kde_htmldir = \$${datadir}/doc/kde/HTML |
99 | |
100 | -ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
101 | +ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) |
102 | cdbs_kde_enable_final = $(if $(DEB_KDE_ENABLE_FINAL),--enable-final,) |
103 | endif |
104 | |
105 | -ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
106 | +ifneq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) |
107 | cdbs_kde_enable_final = |
108 | cdbs_kde_enable_debug = --enable-debug=yes |
109 | else |
110 | cdbs_kde_enable_debug = --disable-debug |
111 | endif |
112 | |
113 | -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
114 | +ifneq (,$(filter debug,$(DEB_BUILD_OPTIONS))) |
115 | cdbs_kde_enable_debug = --enable-debug=full |
116 | endif |
117 | |
118 | |
119 | === modified file '1/class/langcore.mk.in' |
120 | --- 1/class/langcore.mk.in 2008-04-29 11:25:42 +0000 |
121 | +++ 1/class/langcore.mk.in 2009-08-18 14:56:29 +0000 |
122 | @@ -24,7 +24,7 @@ |
123 | |
124 | CFLAGS += -g -Wall |
125 | CXXFLAGS += -g -Wall |
126 | -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
127 | +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) |
128 | DEB_OPT_FLAG = -O0 |
129 | else |
130 | DEB_OPT_FLAG = -O2 |
131 | |
132 | === modified file '1/class/makefile-vars.mk.in' |
133 | --- 1/class/makefile-vars.mk.in 2009-04-27 16:49:15 +0000 |
134 | +++ 1/class/makefile-vars.mk.in 2009-08-18 14:56:29 +0000 |
135 | @@ -27,7 +27,11 @@ |
136 | |
137 | DEB_MAKE_MAKEFILE = |
138 | DEB_MAKE_ENVVARS = |
139 | -DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) $(if $(DEB_MAKE_MAKEFILE), -f $(DEB_MAKE_MAKEFILE),) -C $(DEB_BUILDDIR) CFLAGS="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" CXXFLAGS="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" CPPFLAGS="$(or $(CPPFLAGS_$(cdbs_curpkg)),$(CPPFLAGS))" LDFLAGS="$(or $(LDFLAGS_$(cdbs_curpkg)),$(LDFLAGS))" |
140 | +DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) $(if $(DEB_MAKE_MAKEFILE), -f $(DEB_MAKE_MAKEFILE),) -C $(DEB_BUILDDIR) $(DEB_MAKE_EXTRA_ARGS) |
141 | + |
142 | +# Derived classes that supply the flags some other way (e.g., configure) |
143 | +# should set this variable to empty. |
144 | +DEB_MAKE_EXTRA_ARGS = CFLAGS="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" CXXFLAGS="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" CPPFLAGS="$(or $(CPPFLAGS_$(cdbs_curpkg)),$(CPPFLAGS))" LDFLAGS="$(or $(LDFLAGS_$(cdbs_curpkg)),$(LDFLAGS))" |
145 | |
146 | # This variable is deprecated. |
147 | DEB_BUILD_MAKE_TARGET = |
148 | |
149 | === modified file '1/class/makefile.mk.in' |
150 | --- 1/class/makefile.mk.in 2007-01-15 13:04:23 +0000 |
151 | +++ 1/class/makefile.mk.in 2009-08-18 14:56:29 +0000 |
152 | @@ -32,7 +32,7 @@ |
153 | +$(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET) |
154 | touch $@ |
155 | |
156 | -clean:: makefile-clean |
157 | +cleanbuilddir:: makefile-clean |
158 | makefile-clean:: |
159 | $(if $(DEB_MAKE_CLEAN_TARGET),+-$(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET),@echo "DEB_MAKE_CLEAN_TARGET unset, not running clean") |
160 | rm -f debian/stamp-makefile-build |
161 | @@ -41,7 +41,7 @@ |
162 | common-install-impl:: |
163 | $(if $(DEB_MAKE_INSTALL_TARGET),+$(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET),@echo "DEB_MAKE_INSTALL_TARGET unset, skipping default makefile.mk common-install target") |
164 | |
165 | -ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) |
166 | +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
167 | common-build-arch common-build-indep:: debian/stamp-makefile-check |
168 | debian/stamp-makefile-check: debian/stamp-makefile-build |
169 | $(if $(DEB_MAKE_CHECK_TARGET),+$(DEB_MAKE_INVOKE) $(DEB_MAKE_CHECK_TARGET),@echo "DEB_MAKE_CHECK_TARGET unset, not running checks") |
170 | |
171 | === modified file '1/class/perlmodule-vars.mk.in' |
172 | --- 1/class/perlmodule-vars.mk.in 2009-04-27 16:49:15 +0000 |
173 | +++ 1/class/perlmodule-vars.mk.in 2009-08-18 14:56:29 +0000 |
174 | @@ -26,7 +26,7 @@ |
175 | include $(_cdbs_class_path)/makefile-vars.mk$(_cdbs_makefile_suffix) |
176 | |
177 | # Override optimizations to follow Perl Policy 3.3 |
178 | -DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR) OPTIMIZE="$(CFLAGS)" |
179 | +DEB_MAKE_EXTRA_ARGS = OPTIMIZE="$(CFLAGS)" |
180 | |
181 | # Install into first listed package by default. |
182 | # Unset for standard debhelper rules (use debian/tmp if multiple packages). |
183 | @@ -38,6 +38,6 @@ |
184 | DEB_MAKE_BUILD_TARGET = all |
185 | DEB_MAKE_CLEAN_TARGET = distclean |
186 | DEB_MAKE_CHECK_TARGET = test |
187 | -DEB_MAKE_INSTALL_TARGET = install PREFIX=$(if $(DEB_MAKEMAKER_PACKAGE),$(CURDIR)/debian/$(DEB_MAKEMAKER_PACKAGE)/usr,$(DEB_DESTDIR)/usr) |
188 | +DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(if $(DEB_MAKEMAKER_PACKAGE),$(CURDIR)/debian/$(DEB_MAKEMAKER_PACKAGE),$(DEB_DESTDIR)) |
189 | |
190 | endif |
191 | |
192 | === modified file '1/class/qmake.mk.in' |
193 | --- 1/class/qmake.mk.in 2008-04-29 11:25:42 +0000 |
194 | +++ 1/class/qmake.mk.in 2009-08-18 14:56:29 +0000 |
195 | @@ -24,14 +24,14 @@ |
196 | |
197 | include $(_cdbs_class_path)/makefile.mk$(_cdbs_makefile_suffix) |
198 | |
199 | -DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) $(MAKE) -C $(DEB_BUILDDIR) |
200 | +DEB_MAKE_EXTRA_ARGS = |
201 | |
202 | DEB_MAKE_INSTALL_TARGET = install INSTALL_ROOT=$(DEB_DESTDIR) |
203 | DEB_MAKE_CLEAN_TARGET = distclean |
204 | |
205 | QMAKE = qmake |
206 | |
207 | -ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
208 | +ifneq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) |
209 | DEB_QMAKE_CONFIG_VAL = nostrip |
210 | endif |
211 | |
212 | |
213 | === modified file '1/rules/buildcore.mk.in' |
214 | --- 1/rules/buildcore.mk.in 2009-04-27 16:49:15 +0000 |
215 | +++ 1/rules/buildcore.mk.in 2009-08-18 14:56:29 +0000 |
216 | @@ -32,7 +32,7 @@ |
217 | test -x debian/rules |
218 | |
219 | testroot: |
220 | - $(if$(_cdbs_rules_debhelper),dh_testroot,test "`id -u`" = 0) |
221 | + $(if $(_cdbs_rules_debhelper),dh_testroot,test "`id -u`" = 0) |
222 | |
223 | $(patsubst %,makebuilddir/%,$(DEB_ALL_PACKAGES)) :: makebuilddir/% : |
224 | $(if $(DEB_BUILDDIR_$(cdbs_curpkg)),mkdir -p "$(DEB_BUILDDIR_$(cdbs_curpkg))") |
225 | @@ -51,7 +51,7 @@ |
226 | |
227 | # This variable is used by tarball.mk, but we want it here in order to check |
228 | # tarball contents before unpacking. tarball.mk imports this file anyway. |
229 | -DEB_TARBALL ?= $(wildcard *.tar *.tgz *.tar.gz *.tar.bz *.tar.bz2 *.zip) |
230 | +DEB_TARBALL ?= $(wildcard *.tar *.tgz *.tar.gz *.tar.bz *.tar.bz2 *.tar.lzma *.zip) |
231 | |
232 | ifneq (, $(findstring .bz2, $(DEB_TARBALL))) |
233 | CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), bzip2 |
234 | @@ -73,6 +73,7 @@ |
235 | *.tar$(close_parenthesis) tar -tf $$i | grep "/config\.[^/]*$$" > $$i.cdbs-config_list ;; \ |
236 | *.tgz|*.tar.gz$(close_parenthesis) tar -tzf $$i | grep "/config\.[^/]*$$" > $$i.cdbs-config_list ;; \ |
237 | *.tar.bz|*.tar.bz2$(close_parenthesis) tar -tjf $$i | grep "/config\.[^/]*$$" > $$i.cdbs-config_list ;; \ |
238 | + *.tar.lzma$(close_parenthesis) tar -t --lzma -f $$i | grep "/config\.[^/]*$$" > $$i.cdbs-config_list ;; \ |
239 | *.zip$(close_parenthesis) unzip -l $$i | grep "/config\.[^/]*$$" > $$i.cdbs-config_list ;; \ |
240 | *$(close_parenthesis) echo Warning: tarball $$i with unknown format >&2 ;; \ |
241 | esac ; \ |
242 | @@ -83,8 +84,8 @@ |
243 | |
244 | # Avoid recursive braindamage if we're building autotools-dev |
245 | ifeq (, $(shell grep -x 'Package: autotools-dev' debian/control)) |
246 | -config_guess := $(shell find $(DEB_SRCDIR) -type f -name config.guess) |
247 | -config_sub := $(shell find $(DEB_SRCDIR) -type f -name config.sub) |
248 | +config_guess := $(shell find $(DEB_SRCDIR) \( -type f -or -type l \) -name config.guess) |
249 | +config_sub := $(shell find $(DEB_SRCDIR) \( -type f -or -type l \) -name config.sub) |
250 | ifneq (, $(config_all_tar)) |
251 | config_guess_tar := $(filter %/config.guess, $(config_all_tar)) |
252 | config_sub_tar := $(filter %/config.sub, $(config_all_tar)) |
253 | @@ -92,7 +93,7 @@ |
254 | endif |
255 | # Ditto for gnulib |
256 | ifeq (, $(shell grep -x 'Package: gnulib' debian/control)) |
257 | -config_rpath := $(shell find $(DEB_SRCDIR) -type f -name config.rpath) |
258 | +config_rpath := $(shell find $(DEB_SRCDIR) \( -type f -or -type l \) -name config.rpath) |
259 | ifneq (, $(config_all_tar)) |
260 | config_rpath_tar := $(filter %/config.rpath, $(config_all_tar)) |
261 | endif |
262 | @@ -162,7 +163,7 @@ |
263 | # information, see Policy §5.2, Policy §7.6, and Debian Bug #178809. |
264 | # For now, you may override the dependencies by setting the variable |
265 | # DEB_BUILD_DEPENDENCIES, below. This is not recommended. |
266 | -DEB_BUILD_DEPENDENCIES = build-arch build-indep |
267 | +DEB_BUILD_DEPENDENCIES ?= build-arch build-indep |
268 | build: $(DEB_BUILD_DEPENDENCIES) |
269 | |
270 | # This target should take care of actually compiling the package from source. |
271 | |
272 | === modified file '1/rules/debhelper.mk.in' |
273 | --- 1/rules/debhelper.mk.in 2009-04-27 16:49:15 +0000 |
274 | +++ 1/rules/debhelper.mk.in 2009-08-18 14:56:29 +0000 |
275 | @@ -101,6 +101,7 @@ |
276 | CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 6) |
277 | endif |
278 | ifeq ($(DH_COMPAT),7) |
279 | +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), cdbs (>= 0.4.53) |
280 | CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), debhelper (>= 7.0.1) |
281 | endif |
282 | |
283 | |
284 | === modified file '1/rules/tarball.mk.in' |
285 | --- 1/rules/tarball.mk.in 2009-04-27 16:49:15 +0000 |
286 | +++ 1/rules/tarball.mk.in 2009-08-18 14:56:29 +0000 |
287 | @@ -96,6 +96,10 @@ |
288 | tar -C $(_cdbs_tarball_dir) $(_cdbs_tar_verbose) -x -j -f $(call _cdbs_stampname_to_tarname,$@) |
289 | touch $@ |
290 | |
291 | +$(addsuffix .lzma,$(_cdbs_tarball_stamp_base)): |
292 | + tar -C $(_cdbs_tarball_dir) $(_cdbs_tar_verbose) -x --lzma -f $(call _cdbs_stampname_to_tarname,$@) |
293 | + touch $@ |
294 | + |
295 | $(addsuffix .zip,$(_cdbs_tarball_stamp_base)): |
296 | unzip $(call _cdbs_stampname_to_tarname,$@) -d $(_cdbs_tarball_dir) |
297 | touch $@ |
298 | |
299 | === modified file 'Makefile.in' |
300 | --- Makefile.in 2009-04-27 16:49:15 +0000 |
301 | +++ Makefile.in 2009-08-18 14:56:29 +0000 |
302 | @@ -1,4 +1,4 @@ |
303 | -# Makefile.in generated by automake 1.10.1 from Makefile.am. |
304 | +# Makefile.in generated by automake 1.10.2 from Makefile.am. |
305 | # @configure_input@ |
306 | |
307 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
308 | @@ -291,8 +291,8 @@ |
309 | esac; \ |
310 | done; \ |
311 | for i in $$list; do \ |
312 | - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ |
313 | - else file=$$i; fi; \ |
314 | + if test -f $$i; then file=$$i; \ |
315 | + else file=$(srcdir)/$$i; fi; \ |
316 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ |
317 | case "$$ext" in \ |
318 | 1*) ;; \ |
319 | @@ -435,7 +435,7 @@ |
320 | unique=`for i in $$list; do \ |
321 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
322 | done | \ |
323 | - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ |
324 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
325 | END { if (nonempty) { for (i in files) print i; }; }'`; \ |
326 | mkid -fID $$unique |
327 | tags: TAGS |
328 | |
329 | === modified file 'aclocal.m4' |
330 | --- aclocal.m4 2009-04-27 16:49:15 +0000 |
331 | +++ aclocal.m4 2009-08-18 14:56:29 +0000 |
332 | @@ -1,4 +1,4 @@ |
333 | -# generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
334 | +# generated automatically by aclocal 1.10.2 -*- Autoconf -*- |
335 | |
336 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
337 | # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
338 | @@ -13,13 +13,13 @@ |
339 | |
340 | m4_ifndef([AC_AUTOCONF_VERSION], |
341 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
342 | -m4_if(AC_AUTOCONF_VERSION, [2.63],, |
343 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, |
344 | [m4_warning([this file was generated for autoconf 2.63. |
345 | You have another version of autoconf. It may work, but is not guaranteed to. |
346 | If you have problems, you may need to regenerate the build system entirely. |
347 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
348 | |
349 | -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. |
350 | +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
351 | # |
352 | # This file is free software; the Free Software Foundation |
353 | # gives unlimited permission to copy and/or distribute it, |
354 | @@ -34,7 +34,7 @@ |
355 | [am__api_version='1.10' |
356 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
357 | dnl require some minimum version. Point them to the right macro. |
358 | -m4_if([$1], [1.10.1], [], |
359 | +m4_if([$1], [1.10.2], [], |
360 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
361 | ]) |
362 | |
363 | @@ -48,12 +48,12 @@ |
364 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
365 | # ------------------------------- |
366 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
367 | -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
368 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
369 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
370 | -[AM_AUTOMAKE_VERSION([1.10.1])dnl |
371 | +[AM_AUTOMAKE_VERSION([1.10.2])dnl |
372 | m4_ifndef([AC_AUTOCONF_VERSION], |
373 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
374 | -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) |
375 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
376 | |
377 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
378 | |
379 | @@ -397,13 +397,13 @@ |
380 | |
381 | # Helper functions for option handling. -*- Autoconf -*- |
382 | |
383 | -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
384 | +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. |
385 | # |
386 | # This file is free software; the Free Software Foundation |
387 | # gives unlimited permission to copy and/or distribute it, |
388 | # with or without modifications, as long as this notice is preserved. |
389 | |
390 | -# serial 3 |
391 | +# serial 4 |
392 | |
393 | # _AM_MANGLE_OPTION(NAME) |
394 | # ----------------------- |
395 | @@ -420,7 +420,7 @@ |
396 | # ---------------------------------- |
397 | # OPTIONS is a space-separated list of Automake options. |
398 | AC_DEFUN([_AM_SET_OPTIONS], |
399 | -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
400 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
401 | |
402 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
403 | # ------------------------------------------- |
404 | |
405 | === modified file 'debian/changelog' |
406 | --- debian/changelog 2009-07-23 16:06:46 +0000 |
407 | +++ debian/changelog 2009-08-18 14:56:29 +0000 |
408 | @@ -1,3 +1,120 @@ |
409 | +cdbs (0.4.59ubuntu1) karmic; urgency=low |
410 | + |
411 | + * Merge from debian unstable (LP: #414791), remaining changes: |
412 | + - 1/class/autotools-files.mk.in: Add -i option when calling libtoolize to |
413 | + install missing files. (Debian #525849) |
414 | + - 1/class/gnome.mk.in: |
415 | + + Include langpack.mk. |
416 | + + Check if $DEB_BUILDDIR actually exists before cd'ing to it. |
417 | + - Add 1/class/kde4.mk.in: Generic KDE4 build rules. Install it in |
418 | + Makefile.am. |
419 | + - 1/class/kde.mk.in: |
420 | + + Call dh_icons and bump autogenerated debhelper build dependency |
421 | + appropriately. |
422 | + + Add --without-arts to standard configure flags, since it is |
423 | + deprecated. |
424 | + + build POT file, and add X-Ubuntu-Gettext-Domain to .desktop files. |
425 | + - 1/class/python-distutils.mk.in: |
426 | + + Supply --install-layout=deb install argument, to install files into |
427 | + /usr instead of /usr/local/. |
428 | + + Rename dist-packages/ to site-packages/ again, so that packages which |
429 | + expect setup.py to install to site-packages/ and depend on that in |
430 | + their dh_install files don't break. dh_py* will take care of the final |
431 | + renaming. |
432 | + - Add 1/rules/clean-la.mk.in: Remove dependency_libs lines from .la files. |
433 | + Install it in Makefile.am. |
434 | + - 1/rules/debhelper.mk.in: |
435 | + + Do not install upstream changelogs by default. They are huge and thus |
436 | + waste a lot of archive and CD space, quite uninteresting for ordinary |
437 | + users, and easy to get by downloading the source package or visiting the |
438 | + upstream page pointed out in copyright. |
439 | + + Symlink /usr/share/doc/ files to identical versions in any depending |
440 | + package which is built by the source package (except copyright, to |
441 | + adhere to Debian Policy). This can be disabled by setting |
442 | + $CDBS_NO_DOC_SYMLINKING. |
443 | + + Symlink identical Gnome help files (like untranslated images). This |
444 | + can be disabled by setting $CDBS_NO_GNOME_HELP_SYMLINKING. Add fdupes |
445 | + dependency for this. |
446 | + - Add 1/rules/langpack.mk.in: Generic langpack related tasks: Build POT |
447 | + files and add X-Ubuntu-Gettext-Domain to .desktop/.server/.directory |
448 | + files. Install file in Makefile.am. Add intltool dependency for this. |
449 | + - 1/rules/simple-patchsys.mk.in: Revert the change for Debian bug #387103 |
450 | + that causes patches to be unapplied before cleaning the build directory; |
451 | + the original issue was addressed more thoroughly in 0.4.49 with a fix |
452 | + for Debian bug #424080, and unpatch-before-clean breaks some relevant |
453 | + use cases that involve patching of build systems. (Debian #494254) |
454 | + - scripts/cdbs-edit-patch: Add fallback if DEB_TAR_SRCDIR contains |
455 | + variables. |
456 | + * Revert changes in Debian r383 (relaxed versioned build-deps when satisfied |
457 | + in Lenny) - some of these build-deps are still required for Dapper. |
458 | + |
459 | + -- Iain Lane <laney@ubuntu.com> Thu, 23 Jul 2009 20:07:17 +0100 |
460 | + |
461 | +cdbs (0.4.59) unstable; urgency=low |
462 | + |
463 | + * Defer setting DEB_BUILD_DEPENDENCIES in buildcore.mk (use ?= not =), |
464 | + to respect prior override. Closes: bug#205395, thanks to Robert |
465 | + Jordens, and to Joachim Breitner for reviving. |
466 | + |
467 | + -- Jonas Smedegaard <dr@jones.dk> Tue, 21 Jul 2009 18:49:44 +0200 |
468 | + |
469 | +cdbs (0.4.58) unstable; urgency=high |
470 | + |
471 | + * Revert change in 0.4.57 ensuring post-patches finished before |
472 | + configure in autotools.mk: Causes configure to be invoked again |
473 | + after build. |
474 | + * Set urgency=high as this cause FTBFS for packages not supporting |
475 | + multiple configure runs (see bugs #537011, #536992, #536963). |
476 | + |
477 | + -- Jonas Smedegaard <dr@jones.dk> Tue, 14 Jul 2009 20:31:47 +0200 |
478 | + |
479 | +cdbs (0.4.57) unstable; urgency=low |
480 | + |
481 | + [ Jonas Smedegaard ] |
482 | + * Have debhelper.mk build-depend on cdbs 0.4.53 or newer for DH v7. |
483 | + * Relax build-dependencies (e.g. drop versioning when satisfied in |
484 | + oldstable and not explicitly required by policy): |
485 | + + keep old versioning for perl (required by policy) |
486 | + + relax slightly versioning for python |
487 | + + drop some old versionings for debhelper, gnulib, type-handling, |
488 | + cdbs and patchutils |
489 | + * Adjust gnome.mk to extend build-dependencies after including classes |
490 | + which initialize them. |
491 | + * Append trunk in Vcs-* stanzas of debian/control, and use viewsvn |
492 | + (not vswn) in Vcs-Browser stanza. Closes: bug#531692. |
493 | + * Build-depend on python-all-dev (not python2.4-dev or python2.5-dev), |
494 | + and generalize python-distutils tests to try all available versions |
495 | + of python. Closes: bug#525855, thanks to Martin Pitt. |
496 | + * Use $(filter ...) instead of $(findstring ...) to extract space- |
497 | + separated options from DEB_BUILD_OPTIONS in debian/rules. |
498 | + * Fix autotools.mk not completing all dependencies of post-patches |
499 | + before doing configure. |
500 | + * Fix doc-base section (Debian, not Programming). Closes: bug#532193, |
501 | + thanks to Drew Parsons. |
502 | + * Fix testroot rule broken since 0.4.54. Closes: bug#532262, thanks to |
503 | + Frédéric Brière. |
504 | + * Fix makefile.mk to cleanup before cleanbuilddir (not in parallel). |
505 | + Closes: bug#521711, thanks to Raúl Sánchez Siles. |
506 | + * Fix perlmodule-vars.mk to work with recent MakeMaker (set DESTDIR |
507 | + instead of PREFIX). Closes: bug#534895, thanks to Kevin Ryde. |
508 | + * Fix override autotools config.{guess,sub,rpath} also when symlinks. |
509 | + Closes: bug#536351. |
510 | + * Drop noop inclusion of docbookxml.mk in gnome.mk. |
511 | + * Unconditionally add binary-install/* rules in gnome.mk (they are |
512 | + silently ignored if debhelper.mk not included). |
513 | + |
514 | + [ Peter Eisentraut ] |
515 | + * Document the class for KDE 4 provided by pkg-kde-tools, and document the |
516 | + KDE 3 class as obsolescent. Move up the cmake section so the order makes |
517 | + sense again. (closes: #520383) |
518 | + * Allow JAVACMD to include options (patch by Matthias Klose) (ant.mk) |
519 | + (closes: #520105) |
520 | + * Reenabled the ant-1 test |
521 | + * Added support for lzma-compressed tarballs (patch by Robert Millan) |
522 | + (buildcore.mk, tarball.mk) (closes: #529355); added test case |
523 | + |
524 | + -- Jonas Smedegaard <dr@jones.dk> Fri, 10 Jul 2009 11:00:48 +0200 |
525 | + |
526 | cdbs (0.4.56ubuntu6) karmic; urgency=low |
527 | |
528 | * 1/class/python-distutils.mk: |
529 | @@ -1180,7 +1297,7 @@ |
530 | - Make docbookxml.mk a noop now that catalogs work in sid. |
531 | |
532 | -- Colin Walters <walters@debian.org> Wed, 11 Feb 2004 12:59:20 -0500 |
533 | - |
534 | + |
535 | cdbs (0.4.18) unstable; urgency=low |
536 | |
537 | * Andres Salomon <dilinger@voxel.net>: |
538 | @@ -1188,7 +1305,7 @@ |
539 | - Don't generate maintainer scripts for udebs (Closes: #216148) |
540 | |
541 | -- Colin Walters <walters@debian.org> Tue, 20 Jan 2004 13:51:20 -0500 |
542 | - |
543 | + |
544 | cdbs (0.4.17) unstable; urgency=low |
545 | |
546 | * Colin Walters <walters@debian.org>: |
547 | @@ -1297,7 +1414,7 @@ |
548 | - Added an example for the Ant class and improved its documentation |
549 | |
550 | -- Stefan Gybas <sgybas@debian.org> Wed, 10 Sep 2003 13:21:26 +0200 |
551 | - |
552 | + |
553 | cdbs (0.4.7) unstable; urgency=low |
554 | |
555 | * Colin Walters <walters@debian.org>: |
556 | @@ -1345,7 +1462,7 @@ |
557 | patch). |
558 | |
559 | -- Jonas Smedegaard <dr@jones.dk> Sun, 24 Aug 2003 14:47:38 +0200 |
560 | - |
561 | + |
562 | cdbs (0.4.5.3) unstable; urgency=low |
563 | |
564 | * Jeff Bailey <jbailey@nisa.net>: |
565 | @@ -1428,7 +1545,7 @@ |
566 | - Various small tweaks to perlmodule.mk and python-distutils.mk. |
567 | |
568 | -- Jonas Smedegaard <dr@jones.dk> Tue, 24 Jun 2003 16:54:55 +0200 |
569 | - |
570 | + |
571 | cdbs (0.4.3.1) unstable; urgency=low |
572 | |
573 | * Colin Walters <walters@debian.org>: |
574 | @@ -1598,3 +1715,4 @@ |
575 | * Initial version (Closes: #188049). |
576 | |
577 | -- Colin Walters <walters@debian.org> Mon, 12 May 2003 17:23:20 -0400 |
578 | + |
579 | |
580 | === modified file 'debian/control' |
581 | --- debian/control 2009-04-27 16:49:15 +0000 |
582 | +++ debian/control 2009-08-18 14:56:29 +0000 |
583 | @@ -3,7 +3,7 @@ |
584 | Priority: optional |
585 | Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
586 | XSBC-Original-Maintainer: CDBS Hackers <build-common-hackers@lists.alioth.debian.org> |
587 | -Build-Depends-Indep: debhelper (>= 5), graphviz, realpath, fakeroot, python-dev, python-all-dev, python-central, python-support, libxml2-utils, xsltproc, docbook-xml, docbook-xsl, dblatex, ant, sharutils, gs-common, texlive-extra-utils |
588 | +Build-Depends-Indep: debhelper (>= 5), graphviz, realpath, fakeroot, python-dev, python-all-dev, python-central, python-support, libxml2-utils, xsltproc, docbook-xml, docbook-xsl, dblatex, ant, kaffe, sharutils, gs-common, texlive-extra-utils, lzma |
589 | Uploaders: Jonas Smedegaard <dr@jones.dk>, Marc Dequènes (Duck) <Duck@DuckCorp.org>, Peter Eisentraut <petere@debian.org> |
590 | Standards-Version: 3.7.3 |
591 | Vcs-Bzr: https://code.launchpad.net/~ubuntu-core-dev/cdbs/ubuntu |
592 | |
593 | === modified file 'debian/copyright' |
594 | --- debian/copyright 2009-04-27 16:49:15 +0000 |
595 | +++ debian/copyright 2009-08-18 14:56:29 +0000 |
596 | @@ -13,7 +13,7 @@ |
597 | 2004, David B Harris <dbharris@eelf.ddts.net> |
598 | 2006, Fathi Boudra <fboudra@free.fr> |
599 | 2006, Marc Dequènes (Duck) <Duck@DuckCorp.org> |
600 | - 2006-2007 Peter Eisentraut <petere@debian.org> |
601 | + 2006-2009 Peter Eisentraut <petere@debian.org> |
602 | 2006, Peter Rockai <me@mornfall.net> |
603 | License: GPL-2+ |
604 | |
605 | |
606 | === modified file 'debian/doc-base' |
607 | --- debian/doc-base 2008-04-29 11:25:42 +0000 |
608 | +++ debian/doc-base 2009-08-18 14:56:29 +0000 |
609 | @@ -2,7 +2,7 @@ |
610 | Title: CDBS Documentation |
611 | Author: Marc Dequènes (Duck) <Duck@DuckCorp.org> |
612 | Abstract: Documentation for the Common Debian Build System |
613 | -Section: Programming |
614 | +Section: Debian |
615 | |
616 | Format: HTML |
617 | Index: /usr/share/doc/cdbs/cdbs-doc.html |
618 | |
619 | === modified file 'debian/rules' |
620 | --- debian/rules 2008-04-29 11:25:42 +0000 |
621 | +++ debian/rules 2009-08-18 14:56:29 +0000 |
622 | @@ -26,3 +26,8 @@ |
623 | include 1/class/autotools.mk.in |
624 | |
625 | DEB_MAKE_CHECK_TARGET = check |
626 | + |
627 | +# Unset these variables so config.guess/config.sub in the test suite are not |
628 | +# replaced (because the test suite is supposed to test the replacing later). |
629 | +config_guess = |
630 | +config_sub = |
631 | |
632 | === modified file 'doc/cdbs-doc.xml' |
633 | --- doc/cdbs-doc.xml 2009-04-27 16:49:15 +0000 |
634 | +++ doc/cdbs-doc.xml 2009-08-18 14:56:29 +0000 |
635 | @@ -46,6 +46,8 @@ |
636 | |
637 | <copyright> |
638 | <year>2007</year> |
639 | + <year>2008</year> |
640 | + <year>2009</year> |
641 | <holder>Peter Eisentraut</holder> |
642 | </copyright> |
643 | |
644 | @@ -1212,6 +1214,40 @@ |
645 | </sect1> |
646 | |
647 | <sect1> |
648 | + <title>The CMake Class</title> |
649 | + |
650 | + <para>CMake is a cross-platform build tool. On Unix-like systems |
651 | + it typically generates makefiles, which are then run through make |
652 | + normally. To use the CMake class, add this include to |
653 | + your <filename>debian/rules</filename>: |
654 | + |
655 | +<programlisting> |
656 | +include /usr/share/cdbs/1/class/cmake.mk |
657 | +</programlisting> |
658 | + |
659 | + The class takes care of the call to <command>cmake</command> and |
660 | + the subsequent calls to <command>make</command>, with all the |
661 | + necessary options to honor <varname>DEB_BUILD_OPTIONS</varname>, |
662 | + for example. To that end, the CMake class builds upon the |
663 | + makefile class.</para> |
664 | + |
665 | + <para>CMake is designed to always use separate source and build |
666 | + directories. Therefore, the CMake class by default builds the project |
667 | + in a separate build directory named like <filename>obj-<replaceable>platform</replaceable></filename> |
668 | + under the top-level source directory.</para> |
669 | + |
670 | + <para><varname>DEB_BUILD_OPTIONS</varname> is checked for the |
671 | + following options: |
672 | + <variablelist> |
673 | + <varlistentry> |
674 | + <term><literal>noopt</literal></term> |
675 | + <listitem><para>use <option>-O0</option> instead of <option>-O2</option></para></listitem> |
676 | + </varlistentry> |
677 | + </variablelist> |
678 | + </para> |
679 | + </sect1> |
680 | + |
681 | + <sect1> |
682 | <title>The Perl Class</title> |
683 | |
684 | <para>The Perl class can manage Perl module packages using |
685 | @@ -1410,13 +1446,47 @@ |
686 | <sect1> |
687 | <title>The KDE Class</title> |
688 | |
689 | - <para>To use the KDE class, add this line to your |
690 | + <para>The support for building KDE-related packages for KDE |
691 | + version 4 and higher using CDBS is included in the |
692 | + package <literal>pkg-kde-tools</literal>. To use the KDE class, |
693 | + add this line to your |
694 | <filename>debian/rules</filename> file: |
695 | <programlisting> |
696 | +include /usr/share/pkg-kde-tools/makefiles/1/cdbs/kde.mk |
697 | +</programlisting> |
698 | + and add <literal>pkg-kde-tools</literal> to the build |
699 | + dependencies. The KDE class inherits the cmake class, so |
700 | + everything that was said there also applies here.</para> |
701 | + |
702 | + <para>The KDE class provides a plethora of options to |
703 | + the <command>cmake</command> call that have been chosen so that |
704 | + the resulting packages integrate properly with Debian.</para> |
705 | + |
706 | + <para>The following files are excluded from compression: |
707 | + <itemizedlist> |
708 | + <listitem><para><filename>.dcl</filename></para></listitem> |
709 | + <listitem><para><filename>.docbook</filename></para></listitem> |
710 | + <listitem><para><filename>-license</filename></para></listitem> |
711 | + <listitem><para><filename>.tag</filename></para></listitem> |
712 | + <listitem><para><filename>.sty</filename></para></listitem> |
713 | + <listitem><para><filename>.el</filename></para></listitem> |
714 | + </itemizedlist> |
715 | + </para> |
716 | + |
717 | + <sect2> |
718 | + <title>Obsolescent: KDE 3 Support</title> |
719 | + |
720 | + <para>The class named <filename>kde.mk</filename> included in |
721 | + CDBS is for building KDE-3-based packages. It will eventually |
722 | + be removed from CDBS.</para> |
723 | + |
724 | + <para>To use it, add |
725 | + this line to <filename>debian/rules</filename>: |
726 | +<programlisting> |
727 | include /usr/share/cdbs/1/class/kde.mk |
728 | </programlisting> |
729 | - The KDE class inherits the autotools class, so everything that |
730 | - was said there also applies here.</para> |
731 | + This KDE 3 class inherits the autotools class, so everything |
732 | + that was said there also applies here.</para> |
733 | |
734 | <para>CDBS automatically exports the following variables with the right values: |
735 | <itemizedlist> |
736 | @@ -1433,14 +1503,6 @@ |
737 | defaults. |
738 | </para> |
739 | |
740 | - <para>The following files are excluded from compression: |
741 | - <itemizedlist> |
742 | - <listitem><para><filename>.dcl</filename></para></listitem> |
743 | - <listitem><para><filename>.docbook</filename></para></listitem> |
744 | - <listitem><para><filename>-license</filename></para></listitem> |
745 | - </itemizedlist> |
746 | - </para> |
747 | - |
748 | <para>The class handles configure options specific to KDE (not |
749 | forgetting to disable rpath and activating xinerama), set the |
750 | correct autotools directory, and launch make rules adequately.</para> |
751 | @@ -1464,6 +1526,7 @@ |
752 | </varlistentry> |
753 | </variablelist> |
754 | </para> |
755 | + </sect2> |
756 | </sect1> |
757 | |
758 | <sect1> |
759 | @@ -1505,40 +1568,6 @@ |
760 | </sect1> |
761 | |
762 | <sect1> |
763 | - <title>The CMake Class</title> |
764 | - |
765 | - <para>CMake is a cross-platform build tool. On Unix-like systems |
766 | - it typically generates makefiles, which are then run through make |
767 | - normally. To use the CMake class, add this include to |
768 | - your <filename>debian/rules</filename>: |
769 | - |
770 | -<programlisting> |
771 | -include /usr/share/cdbs/1/class/cmake.mk |
772 | -</programlisting> |
773 | - |
774 | - The class takes care of the call to <command>cmake</command> and |
775 | - the subsequent calls to <command>make</command>, with all the |
776 | - necessary options to honor <varname>DEB_BUILD_OPTIONS</varname>, |
777 | - for example. To that end, the CMake class builds upon the |
778 | - makefile class.</para> |
779 | - |
780 | - <para>CMake is designed to always use separate source and build |
781 | - directories. Therefore, the CMake class by default builds the project |
782 | - in a separate build directory named like <filename>obj-<replaceable>platform</replaceable></filename> |
783 | - under the top-level source directory.</para> |
784 | - |
785 | - <para><varname>DEB_BUILD_OPTIONS</varname> is checked for the |
786 | - following options: |
787 | - <variablelist> |
788 | - <varlistentry> |
789 | - <term><literal>noopt</literal></term> |
790 | - <listitem><para>use <option>-O0</option> instead of <option>-O2</option></para></listitem> |
791 | - </varlistentry> |
792 | - </variablelist> |
793 | - </para> |
794 | - </sect1> |
795 | - |
796 | - <sect1> |
797 | <title>The Ant Class</title> |
798 | |
799 | <para>Ant is a build tool for software written in the Java |
800 | |
801 | === modified file 'test/Makefile.am' |
802 | --- test/Makefile.am 2009-04-27 16:49:15 +0000 |
803 | +++ test/Makefile.am 2009-08-18 14:56:29 +0000 |
804 | @@ -27,6 +27,7 @@ |
805 | autotools-3.sh \ |
806 | autotools-4.sh \ |
807 | autotools-5.sh \ |
808 | + autotools-lzma.sh \ |
809 | recursive.sh \ |
810 | udeb-1.sh \ |
811 | hdparm.sh \ |
812 | @@ -46,7 +47,8 @@ |
813 | distutils-5.sh \ |
814 | distutils-6.sh \ |
815 | distutils-7.sh \ |
816 | - distutils-8.sh |
817 | + distutils-8.sh \ |
818 | + ant-1.sh |
819 | |
820 | TARBALLS = tarballs/autotools-test-0.1.tar.gz \ |
821 | tarballs/distutils-test-0.1.tar.gz |
822 | |
823 | === modified file 'test/Makefile.in' |
824 | --- test/Makefile.in 2009-04-27 16:49:15 +0000 |
825 | +++ test/Makefile.in 2009-08-18 14:56:29 +0000 |
826 | @@ -1,4 +1,4 @@ |
827 | -# Makefile.in generated by automake 1.10.1 from Makefile.am. |
828 | +# Makefile.in generated by automake 1.10.2 from Makefile.am. |
829 | # @configure_input@ |
830 | |
831 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
832 | @@ -121,6 +121,7 @@ |
833 | autotools-3.sh \ |
834 | autotools-4.sh \ |
835 | autotools-5.sh \ |
836 | + autotools-lzma.sh \ |
837 | recursive.sh \ |
838 | udeb-1.sh \ |
839 | hdparm.sh \ |
840 | @@ -140,7 +141,8 @@ |
841 | distutils-5.sh \ |
842 | distutils-6.sh \ |
843 | distutils-7.sh \ |
844 | - distutils-8.sh |
845 | + distutils-8.sh \ |
846 | + ant-1.sh |
847 | |
848 | TARBALLS = tarballs/autotools-test-0.1.tar.gz \ |
849 | tarballs/distutils-test-0.1.tar.gz |
850 | @@ -152,8 +154,8 @@ |
851 | @for dep in $?; do \ |
852 | case '$(am__configure_deps)' in \ |
853 | *$$dep*) \ |
854 | - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ |
855 | - && exit 0; \ |
856 | + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ |
857 | + && { if test -f $@; then exit 0; else break; fi; }; \ |
858 | exit 1;; \ |
859 | esac; \ |
860 | done; \ |
861 | @@ -185,7 +187,7 @@ |
862 | |
863 | |
864 | check-TESTS: $(TESTS) |
865 | - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ |
866 | + @failed=0; all=0; xfail=0; xpass=0; skip=0; \ |
867 | srcdir=$(srcdir); export srcdir; \ |
868 | list=' $(TESTS) '; \ |
869 | if test -n "$$list"; then \ |
870 | @@ -196,7 +198,7 @@ |
871 | if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ |
872 | all=`expr $$all + 1`; \ |
873 | case " $(XFAIL_TESTS) " in \ |
874 | - *$$ws$$tst$$ws*) \ |
875 | + *[\ \ ]$$tst[\ \ ]*) \ |
876 | xpass=`expr $$xpass + 1`; \ |
877 | failed=`expr $$failed + 1`; \ |
878 | echo "XPASS: $$tst"; \ |
879 | @@ -208,7 +210,7 @@ |
880 | elif test $$? -ne 77; then \ |
881 | all=`expr $$all + 1`; \ |
882 | case " $(XFAIL_TESTS) " in \ |
883 | - *$$ws$$tst$$ws*) \ |
884 | + *[\ \ ]$$tst[\ \ ]*) \ |
885 | xfail=`expr $$xfail + 1`; \ |
886 | echo "XFAIL: $$tst"; \ |
887 | ;; \ |
888 | @@ -222,23 +224,36 @@ |
889 | echo "SKIP: $$tst"; \ |
890 | fi; \ |
891 | done; \ |
892 | + if test "$$all" -eq 1; then \ |
893 | + tests="test"; \ |
894 | + All=""; \ |
895 | + else \ |
896 | + tests="tests"; \ |
897 | + All="All "; \ |
898 | + fi; \ |
899 | if test "$$failed" -eq 0; then \ |
900 | if test "$$xfail" -eq 0; then \ |
901 | - banner="All $$all tests passed"; \ |
902 | + banner="$$All$$all $$tests passed"; \ |
903 | else \ |
904 | - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ |
905 | + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ |
906 | + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ |
907 | fi; \ |
908 | else \ |
909 | if test "$$xpass" -eq 0; then \ |
910 | - banner="$$failed of $$all tests failed"; \ |
911 | + banner="$$failed of $$all $$tests failed"; \ |
912 | else \ |
913 | - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ |
914 | + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ |
915 | + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ |
916 | fi; \ |
917 | fi; \ |
918 | dashes="$$banner"; \ |
919 | skipped=""; \ |
920 | if test "$$skip" -ne 0; then \ |
921 | - skipped="($$skip tests were not run)"; \ |
922 | + if test "$$skip" -eq 1; then \ |
923 | + skipped="($$skip test was not run)"; \ |
924 | + else \ |
925 | + skipped="($$skip tests were not run)"; \ |
926 | + fi; \ |
927 | test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ |
928 | dashes="$$skipped"; \ |
929 | fi; \ |
930 | |
931 | === modified file 'test/ant-1.sh' |
932 | --- test/ant-1.sh 2007-01-15 13:04:23 +0000 |
933 | +++ test/ant-1.sh 2009-08-18 14:56:29 +0000 |
934 | @@ -15,6 +15,7 @@ |
935 | |
936 | DEB_CLASSPATH := /tmp/nothing.jar:\$(DEB_CLASSPATH) |
937 | JAVA_HOME_DIRS = /var/tmp/ /usr/lib/kaffe/ |
938 | +JAVACMD += -Dfoo=bar |
939 | EOF |
940 | chmod +x $WORKDIR/debian/rules |
941 | |
942 | |
943 | === added file 'test/autotools-lzma.sh' |
944 | --- test/autotools-lzma.sh 1970-01-01 00:00:00 +0000 |
945 | +++ test/autotools-lzma.sh 2009-07-14 20:31:47 +0000 |
946 | @@ -0,0 +1,52 @@ |
947 | +#!/bin/bash |
948 | +# -*- mode: sh; coding: utf-8 -*- |
949 | +# Copyright © 2003 Jeff Bailey <jbailey@debian.org> |
950 | +# |
951 | +# This program is free software; you can redistribute it and/or |
952 | +# modify it under the terms of the GNU General Public License as |
953 | +# published by the Free Software Foundation; either version 2, or (at |
954 | +# your option) any later version. |
955 | +# |
956 | +# This program is distributed in the hope that it will be useful, but |
957 | +# WITHOUT ANY WARRANTY; without even the implied warranty of |
958 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
959 | +# General Public License for more details. |
960 | +# |
961 | +# You should have received a copy of the GNU General Public License |
962 | +# along with this program; if not, write to the Free Software |
963 | +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
964 | +# 02111-1307 USA. |
965 | + |
966 | +# Test a tarball autotools setup with lzma |
967 | + |
968 | +# Bring in the testsuite functions |
969 | +. testsuite_functions |
970 | + |
971 | +# Check any command line options |
972 | +options $@ |
973 | + |
974 | +# Setup the work environment |
975 | +setup_workdir |
976 | + |
977 | +# Create the debian/rules file |
978 | +cat <<EOF >$WORKDIR/debian/rules |
979 | +#!/usr/bin/make -f |
980 | +DEB_TAR_SRCDIR=autotools-test-0.1 |
981 | +include debian/testsuite.mk |
982 | +include \$(_cdbs_package_root_dir)/1/rules/debhelper.mk.in |
983 | +include \$(_cdbs_package_root_dir)/1/class/autotools.mk.in |
984 | +include \$(_cdbs_package_root_dir)/1/rules/tarball.mk.in |
985 | +EOF |
986 | +chmod +x $WORKDIR/debian/rules |
987 | + |
988 | +# Make sure tarball is in place for this test. |
989 | +test_tarballs |
990 | +gzip -d -c tarballs/autotools-test-0.1.tar.gz | lzma - > $WORKDIR/autotools-test-0.1.tar.lzma |
991 | + |
992 | +# Build the Package (This would've been hard to guess, right?) |
993 | +build_package |
994 | +# Clean up |
995 | +clean_workdir |
996 | +# If we made it this far, then we passed! |
997 | +return_pass |
998 | + |
999 | |
1000 | === modified file 'test/autotools/configure' |
1001 | --- test/autotools/configure 2004-04-27 16:12:15 +0000 |
1002 | +++ test/autotools/configure 2009-08-18 14:56:29 +0000 |
1003 | @@ -1,83 +1,415 @@ |
1004 | #! /bin/sh |
1005 | # Guess values for system-dependent variables and create Makefiles. |
1006 | -# Generated by GNU Autoconf 2.57 for autotools-test 0.1. |
1007 | +# Generated by GNU Autoconf 2.64 for autotools-test 0.1. |
1008 | # |
1009 | # Report bugs to <jbailey@nisa.net>. |
1010 | # |
1011 | -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1012 | -# Free Software Foundation, Inc. |
1013 | +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1014 | +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
1015 | +# Foundation, Inc. |
1016 | +# |
1017 | # This configure script is free software; the Free Software Foundation |
1018 | # gives unlimited permission to copy, distribute and modify it. |
1019 | -## --------------------- ## |
1020 | -## M4sh Initialization. ## |
1021 | -## --------------------- ## |
1022 | +## -------------------- ## |
1023 | +## M4sh Initialization. ## |
1024 | +## -------------------- ## |
1025 | |
1026 | -# Be Bourne compatible |
1027 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
1028 | +# Be more Bourne compatible |
1029 | +DUALCASE=1; export DUALCASE # for MKS sh |
1030 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
1031 | emulate sh |
1032 | NULLCMD=: |
1033 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
1034 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1035 | # is contrary to our usage. Disable this feature. |
1036 | alias -g '${1+"$@"}'='"$@"' |
1037 | -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
1038 | - set -o posix |
1039 | -fi |
1040 | - |
1041 | -# Support unset when possible. |
1042 | -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
1043 | - as_unset=unset |
1044 | -else |
1045 | - as_unset=false |
1046 | -fi |
1047 | - |
1048 | - |
1049 | -# Work around bugs in pre-3.0 UWIN ksh. |
1050 | -$as_unset ENV MAIL MAILPATH |
1051 | + setopt NO_GLOB_SUBST |
1052 | +else |
1053 | + case `(set -o) 2>/dev/null` in #( |
1054 | + *posix*) : |
1055 | + set -o posix ;; #( |
1056 | + *) : |
1057 | + ;; |
1058 | +esac |
1059 | +fi |
1060 | + |
1061 | + |
1062 | +as_nl=' |
1063 | +' |
1064 | +export as_nl |
1065 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. |
1066 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
1067 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
1068 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
1069 | +# Prefer a ksh shell builtin over an external printf program on Solaris, |
1070 | +# but without wasting forks for bash or zsh. |
1071 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ |
1072 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
1073 | + as_echo='print -r --' |
1074 | + as_echo_n='print -rn --' |
1075 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
1076 | + as_echo='printf %s\n' |
1077 | + as_echo_n='printf %s' |
1078 | +else |
1079 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
1080 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
1081 | + as_echo_n='/usr/ucb/echo -n' |
1082 | + else |
1083 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
1084 | + as_echo_n_body='eval |
1085 | + arg=$1; |
1086 | + case $arg in #( |
1087 | + *"$as_nl"*) |
1088 | + expr "X$arg" : "X\\(.*\\)$as_nl"; |
1089 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
1090 | + esac; |
1091 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
1092 | + ' |
1093 | + export as_echo_n_body |
1094 | + as_echo_n='sh -c $as_echo_n_body as_echo' |
1095 | + fi |
1096 | + export as_echo_body |
1097 | + as_echo='sh -c $as_echo_body as_echo' |
1098 | +fi |
1099 | + |
1100 | +# The user is always right. |
1101 | +if test "${PATH_SEPARATOR+set}" != set; then |
1102 | + PATH_SEPARATOR=: |
1103 | + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
1104 | + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
1105 | + PATH_SEPARATOR=';' |
1106 | + } |
1107 | +fi |
1108 | + |
1109 | + |
1110 | +# IFS |
1111 | +# We need space, tab and new line, in precisely that order. Quoting is |
1112 | +# there to prevent editors from complaining about space-tab. |
1113 | +# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
1114 | +# splitting by setting IFS to empty value.) |
1115 | +IFS=" "" $as_nl" |
1116 | + |
1117 | +# Find who we are. Look in the path if we contain no directory separator. |
1118 | +case $0 in #(( |
1119 | + *[\\/]* ) as_myself=$0 ;; |
1120 | + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1121 | +for as_dir in $PATH |
1122 | +do |
1123 | + IFS=$as_save_IFS |
1124 | + test -z "$as_dir" && as_dir=. |
1125 | + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
1126 | + done |
1127 | +IFS=$as_save_IFS |
1128 | + |
1129 | + ;; |
1130 | +esac |
1131 | +# We did not find ourselves, most probably we were run as `sh COMMAND' |
1132 | +# in which case we are not to be found in the path. |
1133 | +if test "x$as_myself" = x; then |
1134 | + as_myself=$0 |
1135 | +fi |
1136 | +if test ! -f "$as_myself"; then |
1137 | + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1138 | + exit 1 |
1139 | +fi |
1140 | + |
1141 | +# Unset variables that we do not need and which cause bugs (e.g. in |
1142 | +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
1143 | +# suppresses any "Segmentation fault" message there. '((' could |
1144 | +# trigger a bug in pdksh 5.2.14. |
1145 | +for as_var in BASH_ENV ENV MAIL MAILPATH |
1146 | +do eval test x\${$as_var+set} = xset \ |
1147 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
1148 | +done |
1149 | PS1='$ ' |
1150 | PS2='> ' |
1151 | PS4='+ ' |
1152 | |
1153 | # NLS nuisances. |
1154 | -for as_var in \ |
1155 | - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
1156 | - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
1157 | - LC_TELEPHONE LC_TIME |
1158 | +LC_ALL=C |
1159 | +export LC_ALL |
1160 | +LANGUAGE=C |
1161 | +export LANGUAGE |
1162 | + |
1163 | +# CDPATH. |
1164 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
1165 | + |
1166 | +if test "x$CONFIG_SHELL" = x; then |
1167 | + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
1168 | + emulate sh |
1169 | + NULLCMD=: |
1170 | + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
1171 | + # is contrary to our usage. Disable this feature. |
1172 | + alias -g '\${1+\"\$@\"}'='\"\$@\"' |
1173 | + setopt NO_GLOB_SUBST |
1174 | +else |
1175 | + case \`(set -o) 2>/dev/null\` in #( |
1176 | + *posix*) : |
1177 | + set -o posix ;; #( |
1178 | + *) : |
1179 | + ;; |
1180 | +esac |
1181 | +fi |
1182 | +" |
1183 | + as_required="as_fn_return () { (exit \$1); } |
1184 | +as_fn_success () { as_fn_return 0; } |
1185 | +as_fn_failure () { as_fn_return 1; } |
1186 | +as_fn_ret_success () { return 0; } |
1187 | +as_fn_ret_failure () { return 1; } |
1188 | + |
1189 | +exitcode=0 |
1190 | +as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
1191 | +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
1192 | +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
1193 | +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
1194 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
1195 | + |
1196 | +else |
1197 | + exitcode=1; echo positional parameters were not saved. |
1198 | +fi |
1199 | +test x\$exitcode = x0 || exit 1" |
1200 | + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
1201 | + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
1202 | + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
1203 | + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
1204 | + if (eval "$as_required") 2>/dev/null; then : |
1205 | + as_have_required=yes |
1206 | +else |
1207 | + as_have_required=no |
1208 | +fi |
1209 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
1210 | + |
1211 | +else |
1212 | + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1213 | +as_found=false |
1214 | +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
1215 | do |
1216 | - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
1217 | - eval $as_var=C; export $as_var |
1218 | + IFS=$as_save_IFS |
1219 | + test -z "$as_dir" && as_dir=. |
1220 | + as_found=: |
1221 | + case $as_dir in #( |
1222 | + /*) |
1223 | + for as_base in sh bash ksh sh5; do |
1224 | + # Try only shells that exist, to save several forks. |
1225 | + as_shell=$as_dir/$as_base |
1226 | + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
1227 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
1228 | + CONFIG_SHELL=$as_shell as_have_required=yes |
1229 | + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
1230 | + break 2 |
1231 | +fi |
1232 | +fi |
1233 | + done;; |
1234 | + esac |
1235 | + as_found=false |
1236 | +done |
1237 | +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
1238 | + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
1239 | + CONFIG_SHELL=$SHELL as_have_required=yes |
1240 | +fi; } |
1241 | +IFS=$as_save_IFS |
1242 | + |
1243 | + |
1244 | + if test "x$CONFIG_SHELL" != x; then : |
1245 | + # We cannot yet assume a decent shell, so we have to provide a |
1246 | + # neutralization value for shells without unset; and this also |
1247 | + # works around shells that cannot unset nonexistent variables. |
1248 | + BASH_ENV=/dev/null |
1249 | + ENV=/dev/null |
1250 | + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
1251 | + export CONFIG_SHELL |
1252 | + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
1253 | +fi |
1254 | + |
1255 | + if test x$as_have_required = xno; then : |
1256 | + $as_echo "$0: This script requires a shell more modern than all" |
1257 | + $as_echo "$0: the shells that I found on your system." |
1258 | + if test x${ZSH_VERSION+set} = xset ; then |
1259 | + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
1260 | + $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
1261 | else |
1262 | - $as_unset $as_var |
1263 | - fi |
1264 | -done |
1265 | - |
1266 | -# Required to use basename. |
1267 | -if expr a : '\(a\)' >/dev/null 2>&1; then |
1268 | + $as_echo "$0: Please tell bug-autoconf@gnu.org and jbailey@nisa.net |
1269 | +$0: about your system, including any error possibly output |
1270 | +$0: before this message. Then install a modern shell, or |
1271 | +$0: manually run the script under such a shell if you do |
1272 | +$0: have one." |
1273 | + fi |
1274 | + exit 1 |
1275 | +fi |
1276 | +fi |
1277 | +fi |
1278 | +SHELL=${CONFIG_SHELL-/bin/sh} |
1279 | +export SHELL |
1280 | +# Unset more variables known to interfere with behavior of common tools. |
1281 | +CLICOLOR_FORCE= GREP_OPTIONS= |
1282 | +unset CLICOLOR_FORCE GREP_OPTIONS |
1283 | + |
1284 | +## --------------------- ## |
1285 | +## M4sh Shell Functions. ## |
1286 | +## --------------------- ## |
1287 | +# as_fn_unset VAR |
1288 | +# --------------- |
1289 | +# Portably unset VAR. |
1290 | +as_fn_unset () |
1291 | +{ |
1292 | + { eval $1=; unset $1;} |
1293 | +} |
1294 | +as_unset=as_fn_unset |
1295 | + |
1296 | +# as_fn_set_status STATUS |
1297 | +# ----------------------- |
1298 | +# Set $? to STATUS, without forking. |
1299 | +as_fn_set_status () |
1300 | +{ |
1301 | + return $1 |
1302 | +} # as_fn_set_status |
1303 | + |
1304 | +# as_fn_exit STATUS |
1305 | +# ----------------- |
1306 | +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
1307 | +as_fn_exit () |
1308 | +{ |
1309 | + set +e |
1310 | + as_fn_set_status $1 |
1311 | + exit $1 |
1312 | +} # as_fn_exit |
1313 | + |
1314 | +# as_fn_mkdir_p |
1315 | +# ------------- |
1316 | +# Create "$as_dir" as a directory, including parents if necessary. |
1317 | +as_fn_mkdir_p () |
1318 | +{ |
1319 | + |
1320 | + case $as_dir in #( |
1321 | + -*) as_dir=./$as_dir;; |
1322 | + esac |
1323 | + test -d "$as_dir" || eval $as_mkdir_p || { |
1324 | + as_dirs= |
1325 | + while :; do |
1326 | + case $as_dir in #( |
1327 | + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
1328 | + *) as_qdir=$as_dir;; |
1329 | + esac |
1330 | + as_dirs="'$as_qdir' $as_dirs" |
1331 | + as_dir=`$as_dirname -- "$as_dir" || |
1332 | +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1333 | + X"$as_dir" : 'X\(//\)[^/]' \| \ |
1334 | + X"$as_dir" : 'X\(//\)$' \| \ |
1335 | + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1336 | +$as_echo X"$as_dir" | |
1337 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1338 | + s//\1/ |
1339 | + q |
1340 | + } |
1341 | + /^X\(\/\/\)[^/].*/{ |
1342 | + s//\1/ |
1343 | + q |
1344 | + } |
1345 | + /^X\(\/\/\)$/{ |
1346 | + s//\1/ |
1347 | + q |
1348 | + } |
1349 | + /^X\(\/\).*/{ |
1350 | + s//\1/ |
1351 | + q |
1352 | + } |
1353 | + s/.*/./; q'` |
1354 | + test -d "$as_dir" && break |
1355 | + done |
1356 | + test -z "$as_dirs" || eval "mkdir $as_dirs" |
1357 | + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
1358 | + |
1359 | + |
1360 | +} # as_fn_mkdir_p |
1361 | +# as_fn_append VAR VALUE |
1362 | +# ---------------------- |
1363 | +# Append the text in VALUE to the end of the definition contained in VAR. Take |
1364 | +# advantage of any shell optimizations that allow amortized linear growth over |
1365 | +# repeated appends, instead of the typical quadratic growth present in naive |
1366 | +# implementations. |
1367 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
1368 | + eval 'as_fn_append () |
1369 | + { |
1370 | + eval $1+=\$2 |
1371 | + }' |
1372 | +else |
1373 | + as_fn_append () |
1374 | + { |
1375 | + eval $1=\$$1\$2 |
1376 | + } |
1377 | +fi # as_fn_append |
1378 | + |
1379 | +# as_fn_arith ARG... |
1380 | +# ------------------ |
1381 | +# Perform arithmetic evaluation on the ARGs, and store the result in the |
1382 | +# global $as_val. Take advantage of shells that can avoid forks. The arguments |
1383 | +# must be portable across $(()) and expr. |
1384 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
1385 | + eval 'as_fn_arith () |
1386 | + { |
1387 | + as_val=$(( $* )) |
1388 | + }' |
1389 | +else |
1390 | + as_fn_arith () |
1391 | + { |
1392 | + as_val=`expr "$@" || test $? -eq 1` |
1393 | + } |
1394 | +fi # as_fn_arith |
1395 | + |
1396 | + |
1397 | +# as_fn_error ERROR [LINENO LOG_FD] |
1398 | +# --------------------------------- |
1399 | +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
1400 | +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
1401 | +# script with status $?, using 1 if that was 0. |
1402 | +as_fn_error () |
1403 | +{ |
1404 | + as_status=$?; test $as_status -eq 0 && as_status=1 |
1405 | + if test "$3"; then |
1406 | + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1407 | + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
1408 | + fi |
1409 | + $as_echo "$as_me: error: $1" >&2 |
1410 | + as_fn_exit $as_status |
1411 | +} # as_fn_error |
1412 | + |
1413 | +if expr a : '\(a\)' >/dev/null 2>&1 && |
1414 | + test "X`expr 00001 : '.*\(...\)'`" = X001; then |
1415 | as_expr=expr |
1416 | else |
1417 | as_expr=false |
1418 | fi |
1419 | |
1420 | -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
1421 | +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1422 | as_basename=basename |
1423 | else |
1424 | as_basename=false |
1425 | fi |
1426 | |
1427 | +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
1428 | + as_dirname=dirname |
1429 | +else |
1430 | + as_dirname=false |
1431 | +fi |
1432 | |
1433 | -# Name of the executable. |
1434 | -as_me=`$as_basename "$0" || |
1435 | +as_me=`$as_basename -- "$0" || |
1436 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
1437 | X"$0" : 'X\(//\)$' \| \ |
1438 | - X"$0" : 'X\(/\)$' \| \ |
1439 | - . : '\(.\)' 2>/dev/null || |
1440 | -echo X/"$0" | |
1441 | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
1442 | - /^X\/\(\/\/\)$/{ s//\1/; q; } |
1443 | - /^X\/\(\/\).*/{ s//\1/; q; } |
1444 | - s/.*/./; q'` |
1445 | - |
1446 | - |
1447 | -# PATH needs CR, and LINENO needs CR and PATH. |
1448 | + X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1449 | +$as_echo X/"$0" | |
1450 | + sed '/^.*\/\([^/][^/]*\)\/*$/{ |
1451 | + s//\1/ |
1452 | + q |
1453 | + } |
1454 | + /^X\/\(\/\/\)$/{ |
1455 | + s//\1/ |
1456 | + q |
1457 | + } |
1458 | + /^X\/\(\/\).*/{ |
1459 | + s//\1/ |
1460 | + q |
1461 | + } |
1462 | + s/.*/./; q'` |
1463 | + |
1464 | # Avoid depending upon Character Ranges. |
1465 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
1466 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
1467 | @@ -85,185 +417,133 @@ |
1468 | as_cr_digits='0123456789' |
1469 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
1470 | |
1471 | -# The user is always right. |
1472 | -if test "${PATH_SEPARATOR+set}" != set; then |
1473 | - echo "#! /bin/sh" >conf$$.sh |
1474 | - echo "exit 0" >>conf$$.sh |
1475 | - chmod +x conf$$.sh |
1476 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
1477 | - PATH_SEPARATOR=';' |
1478 | - else |
1479 | - PATH_SEPARATOR=: |
1480 | - fi |
1481 | - rm -f conf$$.sh |
1482 | -fi |
1483 | - |
1484 | - |
1485 | - as_lineno_1=$LINENO |
1486 | - as_lineno_2=$LINENO |
1487 | - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
1488 | - test "x$as_lineno_1" != "x$as_lineno_2" && |
1489 | - test "x$as_lineno_3" = "x$as_lineno_2" || { |
1490 | - # Find who we are. Look in the path if we contain no path at all |
1491 | - # relative or not. |
1492 | - case $0 in |
1493 | - *[\\/]* ) as_myself=$0 ;; |
1494 | - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1495 | -for as_dir in $PATH |
1496 | -do |
1497 | - IFS=$as_save_IFS |
1498 | - test -z "$as_dir" && as_dir=. |
1499 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
1500 | -done |
1501 | - |
1502 | - ;; |
1503 | - esac |
1504 | - # We did not find ourselves, most probably we were run as `sh COMMAND' |
1505 | - # in which case we are not to be found in the path. |
1506 | - if test "x$as_myself" = x; then |
1507 | - as_myself=$0 |
1508 | - fi |
1509 | - if test ! -f "$as_myself"; then |
1510 | - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
1511 | - { (exit 1); exit 1; }; } |
1512 | - fi |
1513 | - case $CONFIG_SHELL in |
1514 | - '') |
1515 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1516 | -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
1517 | -do |
1518 | - IFS=$as_save_IFS |
1519 | - test -z "$as_dir" && as_dir=. |
1520 | - for as_base in sh bash ksh sh5; do |
1521 | - case $as_dir in |
1522 | - /*) |
1523 | - if ("$as_dir/$as_base" -c ' |
1524 | - as_lineno_1=$LINENO |
1525 | - as_lineno_2=$LINENO |
1526 | - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
1527 | - test "x$as_lineno_1" != "x$as_lineno_2" && |
1528 | - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
1529 | - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
1530 | - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
1531 | - CONFIG_SHELL=$as_dir/$as_base |
1532 | - export CONFIG_SHELL |
1533 | - exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
1534 | - fi;; |
1535 | - esac |
1536 | - done |
1537 | -done |
1538 | -;; |
1539 | - esac |
1540 | - |
1541 | - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
1542 | - # uniformly replaced by the line number. The first 'sed' inserts a |
1543 | - # line-number line before each line; the second 'sed' does the real |
1544 | - # work. The second script uses 'N' to pair each line-number line |
1545 | - # with the numbered line, and appends trailing '-' during |
1546 | - # substitution so that $LINENO is not a special case at line end. |
1547 | - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
1548 | - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
1549 | - sed '=' <$as_myself | |
1550 | + |
1551 | + as_lineno_1=$LINENO as_lineno_1a=$LINENO |
1552 | + as_lineno_2=$LINENO as_lineno_2a=$LINENO |
1553 | + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
1554 | + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
1555 | + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
1556 | + sed -n ' |
1557 | + p |
1558 | + /[$]LINENO/= |
1559 | + ' <$as_myself | |
1560 | sed ' |
1561 | + s/[$]LINENO.*/&-/ |
1562 | + t lineno |
1563 | + b |
1564 | + :lineno |
1565 | N |
1566 | - s,$,-, |
1567 | - : loop |
1568 | - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
1569 | + :loop |
1570 | + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
1571 | t loop |
1572 | - s,-$,, |
1573 | - s,^['$as_cr_digits']*\n,, |
1574 | + s/-\n.*// |
1575 | ' >$as_me.lineno && |
1576 | - chmod +x $as_me.lineno || |
1577 | - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
1578 | - { (exit 1); exit 1; }; } |
1579 | + chmod +x "$as_me.lineno" || |
1580 | + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
1581 | |
1582 | # Don't try to exec as it changes $[0], causing all sort of problems |
1583 | # (the dirname of $[0] is not the place where we might find the |
1584 | - # original and so on. Autoconf is especially sensible to this). |
1585 | - . ./$as_me.lineno |
1586 | + # original and so on. Autoconf is especially sensitive to this). |
1587 | + . "./$as_me.lineno" |
1588 | # Exit status is that of the last command. |
1589 | exit |
1590 | } |
1591 | |
1592 | - |
1593 | -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
1594 | - *c*,-n*) ECHO_N= ECHO_C=' |
1595 | -' ECHO_T=' ' ;; |
1596 | - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
1597 | - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
1598 | +ECHO_C= ECHO_N= ECHO_T= |
1599 | +case `echo -n x` in #((((( |
1600 | +-n*) |
1601 | + case `echo 'xy\c'` in |
1602 | + *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
1603 | + xy) ECHO_C='\c';; |
1604 | + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
1605 | + ECHO_T=' ';; |
1606 | + esac;; |
1607 | +*) |
1608 | + ECHO_N='-n';; |
1609 | esac |
1610 | |
1611 | -if expr a : '\(a\)' >/dev/null 2>&1; then |
1612 | - as_expr=expr |
1613 | +rm -f conf$$ conf$$.exe conf$$.file |
1614 | +if test -d conf$$.dir; then |
1615 | + rm -f conf$$.dir/conf$$.file |
1616 | else |
1617 | - as_expr=false |
1618 | + rm -f conf$$.dir |
1619 | + mkdir conf$$.dir 2>/dev/null |
1620 | fi |
1621 | - |
1622 | -rm -f conf$$ conf$$.exe conf$$.file |
1623 | -echo >conf$$.file |
1624 | -if ln -s conf$$.file conf$$ 2>/dev/null; then |
1625 | - # We could just check for DJGPP; but this test a) works b) is more generic |
1626 | - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
1627 | - if test -f conf$$.exe; then |
1628 | - # Don't use ln at all; we don't have any links |
1629 | +if (echo >conf$$.file) 2>/dev/null; then |
1630 | + if ln -s conf$$.file conf$$ 2>/dev/null; then |
1631 | + as_ln_s='ln -s' |
1632 | + # ... but there are two gotchas: |
1633 | + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
1634 | + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
1635 | + # In both cases, we have to default to `cp -p'. |
1636 | + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
1637 | + as_ln_s='cp -p' |
1638 | + elif ln conf$$.file conf$$ 2>/dev/null; then |
1639 | + as_ln_s=ln |
1640 | + else |
1641 | as_ln_s='cp -p' |
1642 | - else |
1643 | - as_ln_s='ln -s' |
1644 | fi |
1645 | -elif ln conf$$.file conf$$ 2>/dev/null; then |
1646 | - as_ln_s=ln |
1647 | else |
1648 | as_ln_s='cp -p' |
1649 | fi |
1650 | -rm -f conf$$ conf$$.exe conf$$.file |
1651 | +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
1652 | +rmdir conf$$.dir 2>/dev/null |
1653 | |
1654 | if mkdir -p . 2>/dev/null; then |
1655 | - as_mkdir_p=: |
1656 | + as_mkdir_p='mkdir -p "$as_dir"' |
1657 | else |
1658 | + test -d ./-p && rmdir ./-p |
1659 | as_mkdir_p=false |
1660 | fi |
1661 | |
1662 | -as_executable_p="test -f" |
1663 | +if test -x / >/dev/null 2>&1; then |
1664 | + as_test_x='test -x' |
1665 | +else |
1666 | + if ls -dL / >/dev/null 2>&1; then |
1667 | + as_ls_L_option=L |
1668 | + else |
1669 | + as_ls_L_option= |
1670 | + fi |
1671 | + as_test_x=' |
1672 | + eval sh -c '\'' |
1673 | + if test -d "$1"; then |
1674 | + test -d "$1/."; |
1675 | + else |
1676 | + case $1 in #( |
1677 | + -*)set "./$1";; |
1678 | + esac; |
1679 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
1680 | + ???[sx]*):;;*)false;;esac;fi |
1681 | + '\'' sh |
1682 | + ' |
1683 | +fi |
1684 | +as_executable_p=$as_test_x |
1685 | |
1686 | # Sed expression to map a string onto a valid CPP name. |
1687 | -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
1688 | +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
1689 | |
1690 | # Sed expression to map a string onto a valid variable name. |
1691 | -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
1692 | - |
1693 | - |
1694 | -# IFS |
1695 | -# We need space, tab and new line, in precisely that order. |
1696 | -as_nl=' |
1697 | -' |
1698 | -IFS=" $as_nl" |
1699 | - |
1700 | -# CDPATH. |
1701 | -$as_unset CDPATH |
1702 | - |
1703 | +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
1704 | + |
1705 | + |
1706 | +exec 7<&0 </dev/null 6>&1 |
1707 | |
1708 | # Name of the host. |
1709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
1710 | # so uname gets run too. |
1711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
1712 | |
1713 | -exec 6>&1 |
1714 | - |
1715 | # |
1716 | # Initializations. |
1717 | # |
1718 | ac_default_prefix=/usr/local |
1719 | +ac_clean_files= |
1720 | ac_config_libobj_dir=. |
1721 | +LIBOBJS= |
1722 | cross_compiling=no |
1723 | subdirs= |
1724 | MFLAGS= |
1725 | MAKEFLAGS= |
1726 | -SHELL=${CONFIG_SHELL-/bin/sh} |
1727 | - |
1728 | -# Maximum number of lines to put in a shell here document. |
1729 | -# This variable seems obsolete. It should probably be removed, and |
1730 | -# only ac_max_sed_lines should be used. |
1731 | -: ${ac_max_here_lines=38} |
1732 | |
1733 | # Identity of this package. |
1734 | PACKAGE_NAME='autotools-test' |
1735 | @@ -271,13 +551,102 @@ |
1736 | PACKAGE_VERSION='0.1' |
1737 | PACKAGE_STRING='autotools-test 0.1' |
1738 | PACKAGE_BUGREPORT='jbailey@nisa.net' |
1739 | +PACKAGE_URL='' |
1740 | |
1741 | -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBOBJS LTLIBOBJS' |
1742 | +ac_subst_vars='LTLIBOBJS |
1743 | +LIBOBJS |
1744 | +am__fastdepCC_FALSE |
1745 | +am__fastdepCC_TRUE |
1746 | +CCDEPMODE |
1747 | +AMDEPBACKSLASH |
1748 | +AMDEP_FALSE |
1749 | +AMDEP_TRUE |
1750 | +am__quote |
1751 | +am__include |
1752 | +DEPDIR |
1753 | +OBJEXT |
1754 | +EXEEXT |
1755 | +ac_ct_CC |
1756 | +CPPFLAGS |
1757 | +LDFLAGS |
1758 | +CFLAGS |
1759 | +CC |
1760 | +am__leading_dot |
1761 | +SET_MAKE |
1762 | +AWK |
1763 | +INSTALL_STRIP_PROGRAM |
1764 | +STRIP |
1765 | +install_sh |
1766 | +AMTAR |
1767 | +MAKEINFO |
1768 | +AUTOHEADER |
1769 | +AUTOMAKE |
1770 | +AUTOCONF |
1771 | +ACLOCAL |
1772 | +VERSION |
1773 | +PACKAGE |
1774 | +CYGPATH_W |
1775 | +INSTALL_DATA |
1776 | +INSTALL_SCRIPT |
1777 | +INSTALL_PROGRAM |
1778 | +target_alias |
1779 | +host_alias |
1780 | +build_alias |
1781 | +LIBS |
1782 | +ECHO_T |
1783 | +ECHO_N |
1784 | +ECHO_C |
1785 | +DEFS |
1786 | +mandir |
1787 | +localedir |
1788 | +libdir |
1789 | +psdir |
1790 | +pdfdir |
1791 | +dvidir |
1792 | +htmldir |
1793 | +infodir |
1794 | +docdir |
1795 | +oldincludedir |
1796 | +includedir |
1797 | +localstatedir |
1798 | +sharedstatedir |
1799 | +sysconfdir |
1800 | +datadir |
1801 | +datarootdir |
1802 | +libexecdir |
1803 | +sbindir |
1804 | +bindir |
1805 | +program_transform_name |
1806 | +prefix |
1807 | +exec_prefix |
1808 | +PACKAGE_URL |
1809 | +PACKAGE_BUGREPORT |
1810 | +PACKAGE_STRING |
1811 | +PACKAGE_VERSION |
1812 | +PACKAGE_TARNAME |
1813 | +PACKAGE_NAME |
1814 | +PATH_SEPARATOR |
1815 | +SHELL' |
1816 | ac_subst_files='' |
1817 | +ac_user_opts=' |
1818 | +enable_option_checking |
1819 | +enable_dependency_tracking |
1820 | +' |
1821 | + ac_precious_vars='build_alias |
1822 | +host_alias |
1823 | +target_alias |
1824 | +CC |
1825 | +CFLAGS |
1826 | +LDFLAGS |
1827 | +LIBS |
1828 | +CPPFLAGS' |
1829 | + |
1830 | |
1831 | # Initialize some variables set by options. |
1832 | ac_init_help= |
1833 | ac_init_version=false |
1834 | +ac_unrecognized_opts= |
1835 | +ac_unrecognized_sep= |
1836 | # The variables have the same names as the options, with |
1837 | # dashes changed to underlines. |
1838 | cache_file=/dev/null |
1839 | @@ -300,34 +669,48 @@ |
1840 | # and all the variables that are supposed to be based on exec_prefix |
1841 | # by default will actually change. |
1842 | # Use braces instead of parens because sh, perl, etc. also accept them. |
1843 | +# (The list follows the same order as the GNU Coding Standards.) |
1844 | bindir='${exec_prefix}/bin' |
1845 | sbindir='${exec_prefix}/sbin' |
1846 | libexecdir='${exec_prefix}/libexec' |
1847 | -datadir='${prefix}/share' |
1848 | +datarootdir='${prefix}/share' |
1849 | +datadir='${datarootdir}' |
1850 | sysconfdir='${prefix}/etc' |
1851 | sharedstatedir='${prefix}/com' |
1852 | localstatedir='${prefix}/var' |
1853 | -libdir='${exec_prefix}/lib' |
1854 | includedir='${prefix}/include' |
1855 | oldincludedir='/usr/include' |
1856 | -infodir='${prefix}/info' |
1857 | -mandir='${prefix}/man' |
1858 | +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1859 | +infodir='${datarootdir}/info' |
1860 | +htmldir='${docdir}' |
1861 | +dvidir='${docdir}' |
1862 | +pdfdir='${docdir}' |
1863 | +psdir='${docdir}' |
1864 | +libdir='${exec_prefix}/lib' |
1865 | +localedir='${datarootdir}/locale' |
1866 | +mandir='${datarootdir}/man' |
1867 | |
1868 | ac_prev= |
1869 | +ac_dashdash= |
1870 | for ac_option |
1871 | do |
1872 | # If the previous option needs an argument, assign it. |
1873 | if test -n "$ac_prev"; then |
1874 | - eval "$ac_prev=\$ac_option" |
1875 | + eval $ac_prev=\$ac_option |
1876 | ac_prev= |
1877 | continue |
1878 | fi |
1879 | |
1880 | - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
1881 | + case $ac_option in |
1882 | + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1883 | + *) ac_optarg=yes ;; |
1884 | + esac |
1885 | |
1886 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1887 | |
1888 | - case $ac_option in |
1889 | + case $ac_dashdash$ac_option in |
1890 | + --) |
1891 | + ac_dashdash=yes ;; |
1892 | |
1893 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1894 | ac_prev=bindir ;; |
1895 | @@ -349,33 +732,59 @@ |
1896 | --config-cache | -C) |
1897 | cache_file=config.cache ;; |
1898 | |
1899 | - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
1900 | + -datadir | --datadir | --datadi | --datad) |
1901 | ac_prev=datadir ;; |
1902 | - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
1903 | - | --da=*) |
1904 | + -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1905 | datadir=$ac_optarg ;; |
1906 | |
1907 | + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1908 | + | --dataroo | --dataro | --datar) |
1909 | + ac_prev=datarootdir ;; |
1910 | + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1911 | + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1912 | + datarootdir=$ac_optarg ;; |
1913 | + |
1914 | -disable-* | --disable-*) |
1915 | - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1916 | + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1917 | # Reject names that are not valid shell variable names. |
1918 | - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1919 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1920 | - { (exit 1); exit 1; }; } |
1921 | - ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
1922 | - eval "enable_$ac_feature=no" ;; |
1923 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1924 | + as_fn_error "invalid feature name: $ac_useropt" |
1925 | + ac_useropt_orig=$ac_useropt |
1926 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1927 | + case $ac_user_opts in |
1928 | + *" |
1929 | +"enable_$ac_useropt" |
1930 | +"*) ;; |
1931 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
1932 | + ac_unrecognized_sep=', ';; |
1933 | + esac |
1934 | + eval enable_$ac_useropt=no ;; |
1935 | + |
1936 | + -docdir | --docdir | --docdi | --doc | --do) |
1937 | + ac_prev=docdir ;; |
1938 | + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1939 | + docdir=$ac_optarg ;; |
1940 | + |
1941 | + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1942 | + ac_prev=dvidir ;; |
1943 | + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1944 | + dvidir=$ac_optarg ;; |
1945 | |
1946 | -enable-* | --enable-*) |
1947 | - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1948 | + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1949 | # Reject names that are not valid shell variable names. |
1950 | - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1951 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1952 | - { (exit 1); exit 1; }; } |
1953 | - ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
1954 | - case $ac_option in |
1955 | - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
1956 | - *) ac_optarg=yes ;; |
1957 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1958 | + as_fn_error "invalid feature name: $ac_useropt" |
1959 | + ac_useropt_orig=$ac_useropt |
1960 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1961 | + case $ac_user_opts in |
1962 | + *" |
1963 | +"enable_$ac_useropt" |
1964 | +"*) ;; |
1965 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
1966 | + ac_unrecognized_sep=', ';; |
1967 | esac |
1968 | - eval "enable_$ac_feature='$ac_optarg'" ;; |
1969 | + eval enable_$ac_useropt=\$ac_optarg ;; |
1970 | |
1971 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1972 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1973 | @@ -402,6 +811,12 @@ |
1974 | -host=* | --host=* | --hos=* | --ho=*) |
1975 | host_alias=$ac_optarg ;; |
1976 | |
1977 | + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1978 | + ac_prev=htmldir ;; |
1979 | + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1980 | + | --ht=*) |
1981 | + htmldir=$ac_optarg ;; |
1982 | + |
1983 | -includedir | --includedir | --includedi | --included | --include \ |
1984 | | --includ | --inclu | --incl | --inc) |
1985 | ac_prev=includedir ;; |
1986 | @@ -426,13 +841,16 @@ |
1987 | | --libexe=* | --libex=* | --libe=*) |
1988 | libexecdir=$ac_optarg ;; |
1989 | |
1990 | + -localedir | --localedir | --localedi | --localed | --locale) |
1991 | + ac_prev=localedir ;; |
1992 | + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1993 | + localedir=$ac_optarg ;; |
1994 | + |
1995 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
1996 | - | --localstate | --localstat | --localsta | --localst \ |
1997 | - | --locals | --local | --loca | --loc | --lo) |
1998 | + | --localstate | --localstat | --localsta | --localst | --locals) |
1999 | ac_prev=localstatedir ;; |
2000 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
2001 | - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
2002 | - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
2003 | + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2004 | localstatedir=$ac_optarg ;; |
2005 | |
2006 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
2007 | @@ -497,6 +915,16 @@ |
2008 | | --progr-tra=* | --program-tr=* | --program-t=*) |
2009 | program_transform_name=$ac_optarg ;; |
2010 | |
2011 | + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
2012 | + ac_prev=pdfdir ;; |
2013 | + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
2014 | + pdfdir=$ac_optarg ;; |
2015 | + |
2016 | + -psdir | --psdir | --psdi | --psd | --ps) |
2017 | + ac_prev=psdir ;; |
2018 | + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
2019 | + psdir=$ac_optarg ;; |
2020 | + |
2021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2022 | | -silent | --silent | --silen | --sile | --sil) |
2023 | silent=yes ;; |
2024 | @@ -547,26 +975,36 @@ |
2025 | ac_init_version=: ;; |
2026 | |
2027 | -with-* | --with-*) |
2028 | - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2029 | + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2030 | # Reject names that are not valid shell variable names. |
2031 | - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
2032 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 |
2033 | - { (exit 1); exit 1; }; } |
2034 | - ac_package=`echo $ac_package| sed 's/-/_/g'` |
2035 | - case $ac_option in |
2036 | - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
2037 | - *) ac_optarg=yes ;; |
2038 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
2039 | + as_fn_error "invalid package name: $ac_useropt" |
2040 | + ac_useropt_orig=$ac_useropt |
2041 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
2042 | + case $ac_user_opts in |
2043 | + *" |
2044 | +"with_$ac_useropt" |
2045 | +"*) ;; |
2046 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
2047 | + ac_unrecognized_sep=', ';; |
2048 | esac |
2049 | - eval "with_$ac_package='$ac_optarg'" ;; |
2050 | + eval with_$ac_useropt=\$ac_optarg ;; |
2051 | |
2052 | -without-* | --without-*) |
2053 | - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2054 | + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2055 | # Reject names that are not valid shell variable names. |
2056 | - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
2057 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 |
2058 | - { (exit 1); exit 1; }; } |
2059 | - ac_package=`echo $ac_package | sed 's/-/_/g'` |
2060 | - eval "with_$ac_package=no" ;; |
2061 | + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
2062 | + as_fn_error "invalid package name: $ac_useropt" |
2063 | + ac_useropt_orig=$ac_useropt |
2064 | + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
2065 | + case $ac_user_opts in |
2066 | + *" |
2067 | +"with_$ac_useropt" |
2068 | +"*) ;; |
2069 | + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
2070 | + ac_unrecognized_sep=', ';; |
2071 | + esac |
2072 | + eval with_$ac_useropt=no ;; |
2073 | |
2074 | --x) |
2075 | # Obsolete; use --with-x. |
2076 | @@ -586,26 +1024,25 @@ |
2077 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
2078 | x_libraries=$ac_optarg ;; |
2079 | |
2080 | - -*) { echo "$as_me: error: unrecognized option: $ac_option |
2081 | -Try \`$0 --help' for more information." >&2 |
2082 | - { (exit 1); exit 1; }; } |
2083 | + -*) as_fn_error "unrecognized option: \`$ac_option' |
2084 | +Try \`$0 --help' for more information." |
2085 | ;; |
2086 | |
2087 | *=*) |
2088 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
2089 | # Reject names that are not valid shell variable names. |
2090 | - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
2091 | - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
2092 | - { (exit 1); exit 1; }; } |
2093 | - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
2094 | - eval "$ac_envvar='$ac_optarg'" |
2095 | + case $ac_envvar in #( |
2096 | + '' | [0-9]* | *[!_$as_cr_alnum]* ) |
2097 | + as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
2098 | + esac |
2099 | + eval $ac_envvar=\$ac_optarg |
2100 | export $ac_envvar ;; |
2101 | |
2102 | *) |
2103 | # FIXME: should be removed in autoconf 3.0. |
2104 | - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2105 | + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2106 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
2107 | - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2108 | + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
2109 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
2110 | ;; |
2111 | |
2112 | @@ -614,31 +1051,36 @@ |
2113 | |
2114 | if test -n "$ac_prev"; then |
2115 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
2116 | - { echo "$as_me: error: missing argument to $ac_option" >&2 |
2117 | - { (exit 1); exit 1; }; } |
2118 | -fi |
2119 | - |
2120 | -# Be sure to have absolute paths. |
2121 | -for ac_var in exec_prefix prefix |
2122 | -do |
2123 | - eval ac_val=$`echo $ac_var` |
2124 | - case $ac_val in |
2125 | - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
2126 | - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
2127 | - { (exit 1); exit 1; }; };; |
2128 | - esac |
2129 | -done |
2130 | - |
2131 | -# Be sure to have absolute paths. |
2132 | -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
2133 | - localstatedir libdir includedir oldincludedir infodir mandir |
2134 | -do |
2135 | - eval ac_val=$`echo $ac_var` |
2136 | - case $ac_val in |
2137 | - [\\/$]* | ?:[\\/]* ) ;; |
2138 | - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
2139 | - { (exit 1); exit 1; }; };; |
2140 | - esac |
2141 | + as_fn_error "missing argument to $ac_option" |
2142 | +fi |
2143 | + |
2144 | +if test -n "$ac_unrecognized_opts"; then |
2145 | + case $enable_option_checking in |
2146 | + no) ;; |
2147 | + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
2148 | + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
2149 | + esac |
2150 | +fi |
2151 | + |
2152 | +# Check all directory arguments for consistency. |
2153 | +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
2154 | + datadir sysconfdir sharedstatedir localstatedir includedir \ |
2155 | + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
2156 | + libdir localedir mandir |
2157 | +do |
2158 | + eval ac_val=\$$ac_var |
2159 | + # Remove trailing slashes. |
2160 | + case $ac_val in |
2161 | + */ ) |
2162 | + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
2163 | + eval $ac_var=\$ac_val;; |
2164 | + esac |
2165 | + # Be sure to have absolute directory names. |
2166 | + case $ac_val in |
2167 | + [\\/$]* | ?:[\\/]* ) continue;; |
2168 | + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
2169 | + esac |
2170 | + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
2171 | done |
2172 | |
2173 | # There might be people who depend on the old broken behavior: `$host' |
2174 | @@ -652,7 +1094,7 @@ |
2175 | if test "x$host_alias" != x; then |
2176 | if test "x$build_alias" = x; then |
2177 | cross_compiling=maybe |
2178 | - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2179 | + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
2180 | If a cross compiler is detected then cross compile mode will be used." >&2 |
2181 | elif test "x$build_alias" != "x$host_alias"; then |
2182 | cross_compiling=yes |
2183 | @@ -665,70 +1107,72 @@ |
2184 | test "$silent" = yes && exec 6>/dev/null |
2185 | |
2186 | |
2187 | +ac_pwd=`pwd` && test -n "$ac_pwd" && |
2188 | +ac_ls_di=`ls -di .` && |
2189 | +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
2190 | + as_fn_error "working directory cannot be determined" |
2191 | +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
2192 | + as_fn_error "pwd does not report name of working directory" |
2193 | + |
2194 | + |
2195 | # Find the source files, if location was not specified. |
2196 | if test -z "$srcdir"; then |
2197 | ac_srcdir_defaulted=yes |
2198 | - # Try the directory containing this script, then its parent. |
2199 | - ac_confdir=`(dirname "$0") 2>/dev/null || |
2200 | -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
2201 | - X"$0" : 'X\(//\)[^/]' \| \ |
2202 | - X"$0" : 'X\(//\)$' \| \ |
2203 | - X"$0" : 'X\(/\)' \| \ |
2204 | - . : '\(.\)' 2>/dev/null || |
2205 | -echo X"$0" | |
2206 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
2207 | - /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
2208 | - /^X\(\/\/\)$/{ s//\1/; q; } |
2209 | - /^X\(\/\).*/{ s//\1/; q; } |
2210 | - s/.*/./; q'` |
2211 | + # Try the directory containing this script, then the parent directory. |
2212 | + ac_confdir=`$as_dirname -- "$as_myself" || |
2213 | +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
2214 | + X"$as_myself" : 'X\(//\)[^/]' \| \ |
2215 | + X"$as_myself" : 'X\(//\)$' \| \ |
2216 | + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
2217 | +$as_echo X"$as_myself" | |
2218 | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
2219 | + s//\1/ |
2220 | + q |
2221 | + } |
2222 | + /^X\(\/\/\)[^/].*/{ |
2223 | + s//\1/ |
2224 | + q |
2225 | + } |
2226 | + /^X\(\/\/\)$/{ |
2227 | + s//\1/ |
2228 | + q |
2229 | + } |
2230 | + /^X\(\/\).*/{ |
2231 | + s//\1/ |
2232 | + q |
2233 | + } |
2234 | + s/.*/./; q'` |
2235 | srcdir=$ac_confdir |
2236 | - if test ! -r $srcdir/$ac_unique_file; then |
2237 | + if test ! -r "$srcdir/$ac_unique_file"; then |
2238 | srcdir=.. |
2239 | fi |
2240 | else |
2241 | ac_srcdir_defaulted=no |
2242 | fi |
2243 | -if test ! -r $srcdir/$ac_unique_file; then |
2244 | - if test "$ac_srcdir_defaulted" = yes; then |
2245 | - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
2246 | - { (exit 1); exit 1; }; } |
2247 | - else |
2248 | - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
2249 | - { (exit 1); exit 1; }; } |
2250 | - fi |
2251 | -fi |
2252 | -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
2253 | - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
2254 | - { (exit 1); exit 1; }; } |
2255 | -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
2256 | -ac_env_build_alias_set=${build_alias+set} |
2257 | -ac_env_build_alias_value=$build_alias |
2258 | -ac_cv_env_build_alias_set=${build_alias+set} |
2259 | -ac_cv_env_build_alias_value=$build_alias |
2260 | -ac_env_host_alias_set=${host_alias+set} |
2261 | -ac_env_host_alias_value=$host_alias |
2262 | -ac_cv_env_host_alias_set=${host_alias+set} |
2263 | -ac_cv_env_host_alias_value=$host_alias |
2264 | -ac_env_target_alias_set=${target_alias+set} |
2265 | -ac_env_target_alias_value=$target_alias |
2266 | -ac_cv_env_target_alias_set=${target_alias+set} |
2267 | -ac_cv_env_target_alias_value=$target_alias |
2268 | -ac_env_CC_set=${CC+set} |
2269 | -ac_env_CC_value=$CC |
2270 | -ac_cv_env_CC_set=${CC+set} |
2271 | -ac_cv_env_CC_value=$CC |
2272 | -ac_env_CFLAGS_set=${CFLAGS+set} |
2273 | -ac_env_CFLAGS_value=$CFLAGS |
2274 | -ac_cv_env_CFLAGS_set=${CFLAGS+set} |
2275 | -ac_cv_env_CFLAGS_value=$CFLAGS |
2276 | -ac_env_LDFLAGS_set=${LDFLAGS+set} |
2277 | -ac_env_LDFLAGS_value=$LDFLAGS |
2278 | -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
2279 | -ac_cv_env_LDFLAGS_value=$LDFLAGS |
2280 | -ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
2281 | -ac_env_CPPFLAGS_value=$CPPFLAGS |
2282 | -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
2283 | -ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
2284 | +if test ! -r "$srcdir/$ac_unique_file"; then |
2285 | + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
2286 | + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
2287 | +fi |
2288 | +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
2289 | +ac_abs_confdir=`( |
2290 | + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
2291 | + pwd)` |
2292 | +# When building in place, set srcdir=. |
2293 | +if test "$ac_abs_confdir" = "$ac_pwd"; then |
2294 | + srcdir=. |
2295 | +fi |
2296 | +# Remove unnecessary trailing slashes from srcdir. |
2297 | +# Double slashes in file names in object file debugging info |
2298 | +# mess up M-x gdb in Emacs. |
2299 | +case $srcdir in |
2300 | +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
2301 | +esac |
2302 | +for ac_var in $ac_precious_vars; do |
2303 | + eval ac_env_${ac_var}_set=\${${ac_var}+set} |
2304 | + eval ac_env_${ac_var}_value=\$${ac_var} |
2305 | + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
2306 | + eval ac_cv_env_${ac_var}_value=\$${ac_var} |
2307 | +done |
2308 | |
2309 | # |
2310 | # Report the --help message. |
2311 | @@ -757,9 +1201,6 @@ |
2312 | -n, --no-create do not create output files |
2313 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
2314 | |
2315 | -_ACEOF |
2316 | - |
2317 | - cat <<_ACEOF |
2318 | Installation directories: |
2319 | --prefix=PREFIX install architecture-independent files in PREFIX |
2320 | [$ac_default_prefix] |
2321 | @@ -774,18 +1215,25 @@ |
2322 | For better control, use the options below. |
2323 | |
2324 | Fine tuning of the installation directories: |
2325 | - --bindir=DIR user executables [EPREFIX/bin] |
2326 | - --sbindir=DIR system admin executables [EPREFIX/sbin] |
2327 | - --libexecdir=DIR program executables [EPREFIX/libexec] |
2328 | - --datadir=DIR read-only architecture-independent data [PREFIX/share] |
2329 | - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
2330 | - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
2331 | - --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
2332 | - --libdir=DIR object code libraries [EPREFIX/lib] |
2333 | - --includedir=DIR C header files [PREFIX/include] |
2334 | - --oldincludedir=DIR C header files for non-gcc [/usr/include] |
2335 | - --infodir=DIR info documentation [PREFIX/info] |
2336 | - --mandir=DIR man documentation [PREFIX/man] |
2337 | + --bindir=DIR user executables [EPREFIX/bin] |
2338 | + --sbindir=DIR system admin executables [EPREFIX/sbin] |
2339 | + --libexecdir=DIR program executables [EPREFIX/libexec] |
2340 | + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
2341 | + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
2342 | + --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
2343 | + --libdir=DIR object code libraries [EPREFIX/lib] |
2344 | + --includedir=DIR C header files [PREFIX/include] |
2345 | + --oldincludedir=DIR C header files for non-gcc [/usr/include] |
2346 | + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
2347 | + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
2348 | + --infodir=DIR info documentation [DATAROOTDIR/info] |
2349 | + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
2350 | + --mandir=DIR man documentation [DATAROOTDIR/man] |
2351 | + --docdir=DIR documentation root [DATAROOTDIR/doc/autotools-test] |
2352 | + --htmldir=DIR html documentation [DOCDIR] |
2353 | + --dvidir=DIR dvi documentation [DOCDIR] |
2354 | + --pdfdir=DIR pdf documentation [DOCDIR] |
2355 | + --psdir=DIR ps documentation [DOCDIR] |
2356 | _ACEOF |
2357 | |
2358 | cat <<\_ACEOF |
2359 | @@ -804,6 +1252,7 @@ |
2360 | cat <<\_ACEOF |
2361 | |
2362 | Optional Features: |
2363 | + --disable-option-checking ignore unrecognized --enable/--with options |
2364 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
2365 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
2366 | --disable-dependency-tracking Speeds up one-time builds |
2367 | @@ -814,96 +1263,138 @@ |
2368 | CFLAGS C compiler flags |
2369 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
2370 | nonstandard directory <lib dir> |
2371 | - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
2372 | - headers in a nonstandard directory <include dir> |
2373 | + LIBS libraries to pass to the linker, e.g. -l<library> |
2374 | + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
2375 | + you have headers in a nonstandard directory <include dir> |
2376 | |
2377 | Use these variables to override the choices made by `configure' or to help |
2378 | it to find libraries and programs with nonstandard names/locations. |
2379 | |
2380 | Report bugs to <jbailey@nisa.net>. |
2381 | _ACEOF |
2382 | +ac_status=$? |
2383 | fi |
2384 | |
2385 | if test "$ac_init_help" = "recursive"; then |
2386 | # If there are subdirs, report their specific --help. |
2387 | - ac_popdir=`pwd` |
2388 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
2389 | - test -d $ac_dir || continue |
2390 | + test -d "$ac_dir" || |
2391 | + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
2392 | + continue |
2393 | ac_builddir=. |
2394 | |
2395 | -if test "$ac_dir" != .; then |
2396 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
2397 | - # A "../" for each directory in $ac_dir_suffix. |
2398 | - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
2399 | -else |
2400 | - ac_dir_suffix= ac_top_builddir= |
2401 | -fi |
2402 | +case "$ac_dir" in |
2403 | +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
2404 | +*) |
2405 | + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
2406 | + # A ".." for each directory in $ac_dir_suffix. |
2407 | + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
2408 | + case $ac_top_builddir_sub in |
2409 | + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
2410 | + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
2411 | + esac ;; |
2412 | +esac |
2413 | +ac_abs_top_builddir=$ac_pwd |
2414 | +ac_abs_builddir=$ac_pwd$ac_dir_suffix |
2415 | +# for backward compatibility: |
2416 | +ac_top_builddir=$ac_top_build_prefix |
2417 | |
2418 | case $srcdir in |
2419 | - .) # No --srcdir option. We are building in place. |
2420 | + .) # We are building in place. |
2421 | ac_srcdir=. |
2422 | - if test -z "$ac_top_builddir"; then |
2423 | - ac_top_srcdir=. |
2424 | - else |
2425 | - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
2426 | - fi ;; |
2427 | - [\\/]* | ?:[\\/]* ) # Absolute path. |
2428 | + ac_top_srcdir=$ac_top_builddir_sub |
2429 | + ac_abs_top_srcdir=$ac_pwd ;; |
2430 | + [\\/]* | ?:[\\/]* ) # Absolute name. |
2431 | ac_srcdir=$srcdir$ac_dir_suffix; |
2432 | - ac_top_srcdir=$srcdir ;; |
2433 | - *) # Relative path. |
2434 | - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
2435 | - ac_top_srcdir=$ac_top_builddir$srcdir ;; |
2436 | + ac_top_srcdir=$srcdir |
2437 | + ac_abs_top_srcdir=$srcdir ;; |
2438 | + *) # Relative name. |
2439 | + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
2440 | + ac_top_srcdir=$ac_top_build_prefix$srcdir |
2441 | + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
2442 | esac |
2443 | -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
2444 | -# absolute. |
2445 | -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
2446 | -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
2447 | -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
2448 | -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
2449 | +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2450 | |
2451 | - cd $ac_dir |
2452 | - # Check for guested configure; otherwise get Cygnus style configure. |
2453 | - if test -f $ac_srcdir/configure.gnu; then |
2454 | - echo |
2455 | - $SHELL $ac_srcdir/configure.gnu --help=recursive |
2456 | - elif test -f $ac_srcdir/configure; then |
2457 | - echo |
2458 | - $SHELL $ac_srcdir/configure --help=recursive |
2459 | - elif test -f $ac_srcdir/configure.ac || |
2460 | - test -f $ac_srcdir/configure.in; then |
2461 | - echo |
2462 | - $ac_configure --help |
2463 | + cd "$ac_dir" || { ac_status=$?; continue; } |
2464 | + # Check for guested configure. |
2465 | + if test -f "$ac_srcdir/configure.gnu"; then |
2466 | + echo && |
2467 | + $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
2468 | + elif test -f "$ac_srcdir/configure"; then |
2469 | + echo && |
2470 | + $SHELL "$ac_srcdir/configure" --help=recursive |
2471 | else |
2472 | - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2473 | - fi |
2474 | - cd $ac_popdir |
2475 | + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2476 | + fi || ac_status=$? |
2477 | + cd "$ac_pwd" || { ac_status=$?; break; } |
2478 | done |
2479 | fi |
2480 | |
2481 | -test -n "$ac_init_help" && exit 0 |
2482 | +test -n "$ac_init_help" && exit $ac_status |
2483 | if $ac_init_version; then |
2484 | cat <<\_ACEOF |
2485 | autotools-test configure 0.1 |
2486 | -generated by GNU Autoconf 2.57 |
2487 | +generated by GNU Autoconf 2.64 |
2488 | |
2489 | -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
2490 | -Free Software Foundation, Inc. |
2491 | +Copyright (C) 2009 Free Software Foundation, Inc. |
2492 | This configure script is free software; the Free Software Foundation |
2493 | gives unlimited permission to copy, distribute and modify it. |
2494 | _ACEOF |
2495 | - exit 0 |
2496 | -fi |
2497 | -exec 5>config.log |
2498 | -cat >&5 <<_ACEOF |
2499 | + exit |
2500 | +fi |
2501 | + |
2502 | +## ------------------------ ## |
2503 | +## Autoconf initialization. ## |
2504 | +## ------------------------ ## |
2505 | + |
2506 | +# ac_fn_c_try_compile LINENO |
2507 | +# -------------------------- |
2508 | +# Try to compile conftest.$ac_ext, and return whether this succeeded. |
2509 | +ac_fn_c_try_compile () |
2510 | +{ |
2511 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2512 | + rm -f conftest.$ac_objext |
2513 | + if { { ac_try="$ac_compile" |
2514 | +case "(($ac_try" in |
2515 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2516 | + *) ac_try_echo=$ac_try;; |
2517 | +esac |
2518 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2519 | +$as_echo "$ac_try_echo"; } >&5 |
2520 | + (eval "$ac_compile") 2>conftest.err |
2521 | + ac_status=$? |
2522 | + if test -s conftest.err; then |
2523 | + grep -v '^ *+' conftest.err >conftest.er1 |
2524 | + cat conftest.er1 >&5 |
2525 | + mv -f conftest.er1 conftest.err |
2526 | + fi |
2527 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2528 | + test $ac_status = 0; } && { |
2529 | + test -z "$ac_c_werror_flag" || |
2530 | + test ! -s conftest.err |
2531 | + } && test -s conftest.$ac_objext; then : |
2532 | + ac_retval=0 |
2533 | +else |
2534 | + $as_echo "$as_me: failed program was:" >&5 |
2535 | +sed 's/^/| /' conftest.$ac_ext >&5 |
2536 | + |
2537 | + ac_retval=1 |
2538 | +fi |
2539 | + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
2540 | + return $ac_retval |
2541 | + |
2542 | +} # ac_fn_c_try_compile |
2543 | +cat >config.log <<_ACEOF |
2544 | This file contains any messages produced by compilers while |
2545 | running configure, to aid debugging if configure makes a mistake. |
2546 | |
2547 | It was created by autotools-test $as_me 0.1, which was |
2548 | -generated by GNU Autoconf 2.57. Invocation command line was |
2549 | +generated by GNU Autoconf 2.64. Invocation command line was |
2550 | |
2551 | $ $0 $@ |
2552 | |
2553 | _ACEOF |
2554 | +exec 5>>config.log |
2555 | { |
2556 | cat <<_ASUNAME |
2557 | ## --------- ## |
2558 | @@ -922,7 +1413,7 @@ |
2559 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2560 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2561 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2562 | -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
2563 | +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2564 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2565 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2566 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2567 | @@ -934,8 +1425,9 @@ |
2568 | do |
2569 | IFS=$as_save_IFS |
2570 | test -z "$as_dir" && as_dir=. |
2571 | - echo "PATH: $as_dir" |
2572 | -done |
2573 | + $as_echo "PATH: $as_dir" |
2574 | + done |
2575 | +IFS=$as_save_IFS |
2576 | |
2577 | } >&5 |
2578 | |
2579 | @@ -957,7 +1449,6 @@ |
2580 | ac_configure_args= |
2581 | ac_configure_args0= |
2582 | ac_configure_args1= |
2583 | -ac_sep= |
2584 | ac_must_keep_next=false |
2585 | for ac_pass in 1 2 |
2586 | do |
2587 | @@ -968,43 +1459,41 @@ |
2588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2589 | | -silent | --silent | --silen | --sile | --sil) |
2590 | continue ;; |
2591 | - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
2592 | - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2593 | + *\'*) |
2594 | + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2595 | esac |
2596 | case $ac_pass in |
2597 | - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
2598 | + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2599 | 2) |
2600 | - ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
2601 | + as_fn_append ac_configure_args1 " '$ac_arg'" |
2602 | if test $ac_must_keep_next = true; then |
2603 | - ac_must_keep_next=false # Got value, back to normal. |
2604 | + ac_must_keep_next=false # Got value, back to normal. |
2605 | else |
2606 | - case $ac_arg in |
2607 | - *=* | --config-cache | -C | -disable-* | --disable-* \ |
2608 | - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2609 | - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2610 | - | -with-* | --with-* | -without-* | --without-* | --x) |
2611 | - case "$ac_configure_args0 " in |
2612 | - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2613 | - esac |
2614 | - ;; |
2615 | - -* ) ac_must_keep_next=true ;; |
2616 | - esac |
2617 | + case $ac_arg in |
2618 | + *=* | --config-cache | -C | -disable-* | --disable-* \ |
2619 | + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2620 | + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2621 | + | -with-* | --with-* | -without-* | --without-* | --x) |
2622 | + case "$ac_configure_args0 " in |
2623 | + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2624 | + esac |
2625 | + ;; |
2626 | + -* ) ac_must_keep_next=true ;; |
2627 | + esac |
2628 | fi |
2629 | - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
2630 | - # Get rid of the leading space. |
2631 | - ac_sep=" " |
2632 | + as_fn_append ac_configure_args " '$ac_arg'" |
2633 | ;; |
2634 | esac |
2635 | done |
2636 | done |
2637 | -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
2638 | -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
2639 | +{ ac_configure_args0=; unset ac_configure_args0;} |
2640 | +{ ac_configure_args1=; unset ac_configure_args1;} |
2641 | |
2642 | # When interrupted or exit'd, cleanup temporary files, and complete |
2643 | # config.log. We remove comments because anyway the quotes in there |
2644 | # would cause problems or look ugly. |
2645 | -# WARNING: Be sure not to use single quotes in there, as some shells, |
2646 | -# such as our DU 5.0 friend, will then `close' the trap. |
2647 | +# WARNING: Use '\'' to represent an apostrophe within the trap. |
2648 | +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2649 | trap 'exit_status=$? |
2650 | # Save into config.log some information that might help in debugging. |
2651 | { |
2652 | @@ -1017,20 +1506,35 @@ |
2653 | _ASBOX |
2654 | echo |
2655 | # The following way of writing the cache mishandles newlines in values, |
2656 | -{ |
2657 | +( |
2658 | + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2659 | + eval ac_val=\$$ac_var |
2660 | + case $ac_val in #( |
2661 | + *${as_nl}*) |
2662 | + case $ac_var in #( |
2663 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2664 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2665 | + esac |
2666 | + case $ac_var in #( |
2667 | + _ | IFS | as_nl) ;; #( |
2668 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2669 | + *) { eval $ac_var=; unset $ac_var;} ;; |
2670 | + esac ;; |
2671 | + esac |
2672 | + done |
2673 | (set) 2>&1 | |
2674 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
2675 | - *ac_space=\ *) |
2676 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2677 | + *${as_nl}ac_space=\ *) |
2678 | sed -n \ |
2679 | - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
2680 | - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
2681 | - ;; |
2682 | + "s/'\''/'\''\\\\'\'''\''/g; |
2683 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2684 | + ;; #( |
2685 | *) |
2686 | - sed -n \ |
2687 | - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
2688 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2689 | ;; |
2690 | - esac; |
2691 | -} |
2692 | + esac | |
2693 | + sort |
2694 | +) |
2695 | echo |
2696 | |
2697 | cat <<\_ASBOX |
2698 | @@ -1041,22 +1545,28 @@ |
2699 | echo |
2700 | for ac_var in $ac_subst_vars |
2701 | do |
2702 | - eval ac_val=$`echo $ac_var` |
2703 | - echo "$ac_var='"'"'$ac_val'"'"'" |
2704 | + eval ac_val=\$$ac_var |
2705 | + case $ac_val in |
2706 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2707 | + esac |
2708 | + $as_echo "$ac_var='\''$ac_val'\''" |
2709 | done | sort |
2710 | echo |
2711 | |
2712 | if test -n "$ac_subst_files"; then |
2713 | cat <<\_ASBOX |
2714 | -## ------------- ## |
2715 | -## Output files. ## |
2716 | -## ------------- ## |
2717 | +## ------------------- ## |
2718 | +## File substitutions. ## |
2719 | +## ------------------- ## |
2720 | _ASBOX |
2721 | echo |
2722 | for ac_var in $ac_subst_files |
2723 | do |
2724 | - eval ac_val=$`echo $ac_var` |
2725 | - echo "$ac_var='"'"'$ac_val'"'"'" |
2726 | + eval ac_val=\$$ac_var |
2727 | + case $ac_val in |
2728 | + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2729 | + esac |
2730 | + $as_echo "$ac_var='\''$ac_val'\''" |
2731 | done | sort |
2732 | echo |
2733 | fi |
2734 | @@ -1068,26 +1578,26 @@ |
2735 | ## ----------- ## |
2736 | _ASBOX |
2737 | echo |
2738 | - sed "/^$/d" confdefs.h | sort |
2739 | + cat confdefs.h |
2740 | echo |
2741 | fi |
2742 | test "$ac_signal" != 0 && |
2743 | - echo "$as_me: caught signal $ac_signal" |
2744 | - echo "$as_me: exit $exit_status" |
2745 | + $as_echo "$as_me: caught signal $ac_signal" |
2746 | + $as_echo "$as_me: exit $exit_status" |
2747 | } >&5 |
2748 | - rm -f core core.* *.core && |
2749 | - rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
2750 | + rm -f core *.core core.conftest.* && |
2751 | + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2752 | exit $exit_status |
2753 | - ' 0 |
2754 | +' 0 |
2755 | for ac_signal in 1 2 13 15; do |
2756 | - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
2757 | + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2758 | done |
2759 | ac_signal=0 |
2760 | |
2761 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2762 | -rm -rf conftest* confdefs.h |
2763 | -# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
2764 | -echo >confdefs.h |
2765 | +rm -f -r conftest* confdefs.h |
2766 | + |
2767 | +$as_echo "/* confdefs.h */" > confdefs.h |
2768 | |
2769 | # Predefined preprocessor variables. |
2770 | |
2771 | @@ -1095,40 +1605,46 @@ |
2772 | #define PACKAGE_NAME "$PACKAGE_NAME" |
2773 | _ACEOF |
2774 | |
2775 | - |
2776 | cat >>confdefs.h <<_ACEOF |
2777 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2778 | _ACEOF |
2779 | |
2780 | - |
2781 | cat >>confdefs.h <<_ACEOF |
2782 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
2783 | _ACEOF |
2784 | |
2785 | - |
2786 | cat >>confdefs.h <<_ACEOF |
2787 | #define PACKAGE_STRING "$PACKAGE_STRING" |
2788 | _ACEOF |
2789 | |
2790 | - |
2791 | cat >>confdefs.h <<_ACEOF |
2792 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2793 | _ACEOF |
2794 | |
2795 | +cat >>confdefs.h <<_ACEOF |
2796 | +#define PACKAGE_URL "$PACKAGE_URL" |
2797 | +_ACEOF |
2798 | + |
2799 | |
2800 | # Let the site file select an alternate cache file if it wants to. |
2801 | -# Prefer explicitly selected file to automatically selected ones. |
2802 | -if test -z "$CONFIG_SITE"; then |
2803 | - if test "x$prefix" != xNONE; then |
2804 | - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
2805 | - else |
2806 | - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
2807 | - fi |
2808 | +# Prefer an explicitly selected file to automatically selected ones. |
2809 | +ac_site_file1=NONE |
2810 | +ac_site_file2=NONE |
2811 | +if test -n "$CONFIG_SITE"; then |
2812 | + ac_site_file1=$CONFIG_SITE |
2813 | +elif test "x$prefix" != xNONE; then |
2814 | + ac_site_file1=$prefix/share/config.site |
2815 | + ac_site_file2=$prefix/etc/config.site |
2816 | +else |
2817 | + ac_site_file1=$ac_default_prefix/share/config.site |
2818 | + ac_site_file2=$ac_default_prefix/etc/config.site |
2819 | fi |
2820 | -for ac_site_file in $CONFIG_SITE; do |
2821 | +for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2822 | +do |
2823 | + test "x$ac_site_file" = xNONE && continue |
2824 | if test -r "$ac_site_file"; then |
2825 | - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
2826 | -echo "$as_me: loading site script $ac_site_file" >&6;} |
2827 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2828 | +$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2829 | sed 's/^/| /' "$ac_site_file" >&5 |
2830 | . "$ac_site_file" |
2831 | fi |
2832 | @@ -1138,69 +1654,79 @@ |
2833 | # Some versions of bash will fail to source /dev/null (special |
2834 | # files actually), so we avoid doing that. |
2835 | if test -f "$cache_file"; then |
2836 | - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2837 | -echo "$as_me: loading cache $cache_file" >&6;} |
2838 | + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2839 | +$as_echo "$as_me: loading cache $cache_file" >&6;} |
2840 | case $cache_file in |
2841 | - [\\/]* | ?:[\\/]* ) . $cache_file;; |
2842 | - *) . ./$cache_file;; |
2843 | + [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2844 | + *) . "./$cache_file";; |
2845 | esac |
2846 | fi |
2847 | else |
2848 | - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2849 | -echo "$as_me: creating cache $cache_file" >&6;} |
2850 | + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2851 | +$as_echo "$as_me: creating cache $cache_file" >&6;} |
2852 | >$cache_file |
2853 | fi |
2854 | |
2855 | # Check that the precious variables saved in the cache have kept the same |
2856 | # value. |
2857 | ac_cache_corrupted=false |
2858 | -for ac_var in `(set) 2>&1 | |
2859 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
2860 | +for ac_var in $ac_precious_vars; do |
2861 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2862 | eval ac_new_set=\$ac_env_${ac_var}_set |
2863 | - eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
2864 | - eval ac_new_val="\$ac_env_${ac_var}_value" |
2865 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2866 | + eval ac_new_val=\$ac_env_${ac_var}_value |
2867 | case $ac_old_set,$ac_new_set in |
2868 | set,) |
2869 | - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2870 | -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2871 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2872 | +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2873 | ac_cache_corrupted=: ;; |
2874 | ,set) |
2875 | - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2876 | -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2877 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2878 | +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2879 | ac_cache_corrupted=: ;; |
2880 | ,);; |
2881 | *) |
2882 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2883 | - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
2884 | -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2885 | - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
2886 | -echo "$as_me: former value: $ac_old_val" >&2;} |
2887 | - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
2888 | -echo "$as_me: current value: $ac_new_val" >&2;} |
2889 | - ac_cache_corrupted=: |
2890 | + # differences in whitespace do not lead to failure. |
2891 | + ac_old_val_w=`echo x $ac_old_val` |
2892 | + ac_new_val_w=`echo x $ac_new_val` |
2893 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2894 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2895 | +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2896 | + ac_cache_corrupted=: |
2897 | + else |
2898 | + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2899 | +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2900 | + eval $ac_var=\$ac_old_val |
2901 | + fi |
2902 | + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2903 | +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2904 | + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2905 | +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2906 | fi;; |
2907 | esac |
2908 | # Pass precious variables to config.status. |
2909 | if test "$ac_new_set" = set; then |
2910 | case $ac_new_val in |
2911 | - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
2912 | - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2913 | + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2914 | *) ac_arg=$ac_var=$ac_new_val ;; |
2915 | esac |
2916 | case " $ac_configure_args " in |
2917 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2918 | - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
2919 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2920 | esac |
2921 | fi |
2922 | done |
2923 | if $ac_cache_corrupted; then |
2924 | - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
2925 | -echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2926 | - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
2927 | -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
2928 | - { (exit 1); exit 1; }; } |
2929 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2930 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2931 | + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2932 | +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2933 | + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2934 | fi |
2935 | +## -------------------- ## |
2936 | +## Main body of script. ## |
2937 | +## -------------------- ## |
2938 | |
2939 | ac_ext=c |
2940 | ac_cpp='$CPP $CPPFLAGS' |
2941 | @@ -1210,56 +1736,29 @@ |
2942 | |
2943 | |
2944 | |
2945 | - |
2946 | - |
2947 | - |
2948 | - |
2949 | - |
2950 | - |
2951 | - |
2952 | - |
2953 | - |
2954 | - |
2955 | - |
2956 | - |
2957 | - |
2958 | - |
2959 | - |
2960 | - |
2961 | - |
2962 | - |
2963 | - |
2964 | - |
2965 | - |
2966 | - |
2967 | - |
2968 | - |
2969 | - |
2970 | am__api_version="1.7" |
2971 | ac_aux_dir= |
2972 | -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
2973 | - if test -f $ac_dir/install-sh; then |
2974 | - ac_aux_dir=$ac_dir |
2975 | - ac_install_sh="$ac_aux_dir/install-sh -c" |
2976 | - break |
2977 | - elif test -f $ac_dir/install.sh; then |
2978 | - ac_aux_dir=$ac_dir |
2979 | - ac_install_sh="$ac_aux_dir/install.sh -c" |
2980 | - break |
2981 | - elif test -f $ac_dir/shtool; then |
2982 | - ac_aux_dir=$ac_dir |
2983 | - ac_install_sh="$ac_aux_dir/shtool install -c" |
2984 | - break |
2985 | - fi |
2986 | +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2987 | + for ac_t in install-sh install.sh shtool; do |
2988 | + if test -f "$ac_dir/$ac_t"; then |
2989 | + ac_aux_dir=$ac_dir |
2990 | + ac_install_sh="$ac_aux_dir/$ac_t -c" |
2991 | + break 2 |
2992 | + fi |
2993 | + done |
2994 | done |
2995 | if test -z "$ac_aux_dir"; then |
2996 | - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
2997 | -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
2998 | - { (exit 1); exit 1; }; } |
2999 | + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
3000 | fi |
3001 | -ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
3002 | -ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
3003 | -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
3004 | + |
3005 | +# These three variables are undocumented and unsupported, |
3006 | +# and are intended to be withdrawn in a future Autoconf release. |
3007 | +# They can cause serious problems if a builder's source tree is in a directory |
3008 | +# whose full name contains unusual characters. |
3009 | +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
3010 | +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
3011 | +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
3012 | + |
3013 | |
3014 | # Find a good install program. We prefer a C program (faster), |
3015 | # so one script is as good as another. But avoid the broken or |
3016 | @@ -1272,22 +1771,25 @@ |
3017 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3018 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3019 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3020 | +# OS/2's system install, which has a completely different semantic |
3021 | # ./install, which can be erroneously created by make from ./install.sh. |
3022 | -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3023 | -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3024 | +# Reject install programs that cannot install multiple files. |
3025 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3026 | +$as_echo_n "checking for a BSD-compatible install... " >&6; } |
3027 | if test -z "$INSTALL"; then |
3028 | -if test "${ac_cv_path_install+set}" = set; then |
3029 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3030 | +if test "${ac_cv_path_install+set}" = set; then : |
3031 | + $as_echo_n "(cached) " >&6 |
3032 | else |
3033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3034 | for as_dir in $PATH |
3035 | do |
3036 | IFS=$as_save_IFS |
3037 | test -z "$as_dir" && as_dir=. |
3038 | - # Account for people who put trailing slashes in PATH elements. |
3039 | -case $as_dir/ in |
3040 | - ./ | .// | /cC/* | \ |
3041 | + # Account for people who put trailing slashes in PATH elements. |
3042 | +case $as_dir/ in #(( |
3043 | + ./ | .// | /[cC]/* | \ |
3044 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3045 | + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
3046 | /usr/ucb/* ) ;; |
3047 | *) |
3048 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3049 | @@ -1295,40 +1797,53 @@ |
3050 | # by default. |
3051 | for ac_prog in ginstall scoinst install; do |
3052 | for ac_exec_ext in '' $ac_executable_extensions; do |
3053 | - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3054 | - if test $ac_prog = install && |
3055 | - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3056 | - # AIX install. It has an incompatible calling convention. |
3057 | - : |
3058 | - elif test $ac_prog = install && |
3059 | - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3060 | - # program-specific install script used by HP pwplus--don't use. |
3061 | - : |
3062 | - else |
3063 | - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3064 | - break 3 |
3065 | - fi |
3066 | - fi |
3067 | + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3068 | + if test $ac_prog = install && |
3069 | + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3070 | + # AIX install. It has an incompatible calling convention. |
3071 | + : |
3072 | + elif test $ac_prog = install && |
3073 | + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3074 | + # program-specific install script used by HP pwplus--don't use. |
3075 | + : |
3076 | + else |
3077 | + rm -rf conftest.one conftest.two conftest.dir |
3078 | + echo one > conftest.one |
3079 | + echo two > conftest.two |
3080 | + mkdir conftest.dir |
3081 | + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
3082 | + test -s conftest.one && test -s conftest.two && |
3083 | + test -s conftest.dir/conftest.one && |
3084 | + test -s conftest.dir/conftest.two |
3085 | + then |
3086 | + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3087 | + break 3 |
3088 | + fi |
3089 | + fi |
3090 | + fi |
3091 | done |
3092 | done |
3093 | ;; |
3094 | esac |
3095 | -done |
3096 | - |
3097 | + |
3098 | + done |
3099 | +IFS=$as_save_IFS |
3100 | + |
3101 | +rm -rf conftest.one conftest.two conftest.dir |
3102 | |
3103 | fi |
3104 | if test "${ac_cv_path_install+set}" = set; then |
3105 | INSTALL=$ac_cv_path_install |
3106 | else |
3107 | - # As a last resort, use the slow shell script. We don't cache a |
3108 | - # path for INSTALL within a source directory, because that will |
3109 | + # As a last resort, use the slow shell script. Don't cache a |
3110 | + # value for INSTALL within a source directory, because that will |
3111 | # break other packages using the cache if that directory is |
3112 | - # removed, or if the path is relative. |
3113 | + # removed, or if the value is a relative name. |
3114 | INSTALL=$ac_install_sh |
3115 | fi |
3116 | fi |
3117 | -echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3118 | -echo "${ECHO_T}$INSTALL" >&6 |
3119 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3120 | +$as_echo "$INSTALL" >&6; } |
3121 | |
3122 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3123 | # It thinks the first close brace ends the variable substitution. |
3124 | @@ -1338,8 +1853,8 @@ |
3125 | |
3126 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3127 | |
3128 | -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
3129 | -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
3130 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3131 | +$as_echo_n "checking whether build environment is sane... " >&6; } |
3132 | # Just in case |
3133 | sleep 1 |
3134 | echo timestamp > conftest.file |
3135 | @@ -1362,11 +1877,8 @@ |
3136 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
3137 | # broken ls alias from the environment. This has actually |
3138 | # happened. Such a system could not be considered "sane". |
3139 | - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
3140 | -alias in your environment" >&5 |
3141 | -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
3142 | -alias in your environment" >&2;} |
3143 | - { (exit 1); exit 1; }; } |
3144 | + as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3145 | +alias in your environment" "$LINENO" 5 |
3146 | fi |
3147 | |
3148 | test "$2" = conftest.file |
3149 | @@ -1375,26 +1887,20 @@ |
3150 | # Ok. |
3151 | : |
3152 | else |
3153 | - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
3154 | -Check your system clock" >&5 |
3155 | -echo "$as_me: error: newly created file is older than distributed files! |
3156 | -Check your system clock" >&2;} |
3157 | - { (exit 1); exit 1; }; } |
3158 | + as_fn_error "newly created file is older than distributed files! |
3159 | +Check your system clock" "$LINENO" 5 |
3160 | fi |
3161 | -echo "$as_me:$LINENO: result: yes" >&5 |
3162 | -echo "${ECHO_T}yes" >&6 |
3163 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3164 | +$as_echo "yes" >&6; } |
3165 | test "$program_prefix" != NONE && |
3166 | - program_transform_name="s,^,$program_prefix,;$program_transform_name" |
3167 | + program_transform_name="s&^&$program_prefix&;$program_transform_name" |
3168 | # Use a double $ so make ignores it. |
3169 | test "$program_suffix" != NONE && |
3170 | - program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
3171 | -# Double any \ or $. echo might interpret backslashes. |
3172 | + program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3173 | +# Double any \ or $. |
3174 | # By default was `s,x,x', remove it if useless. |
3175 | -cat <<\_ACEOF >conftest.sed |
3176 | -s/[\\$]/&&/g;s/;s,x,x,$// |
3177 | -_ACEOF |
3178 | -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
3179 | -rm conftest.sed |
3180 | +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3181 | +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
3182 | |
3183 | |
3184 | # expand $ac_aux_dir to an absolute path |
3185 | @@ -1406,18 +1912,18 @@ |
3186 | am_missing_run="$MISSING --run " |
3187 | else |
3188 | am_missing_run= |
3189 | - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
3190 | -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
3191 | + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3192 | +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
3193 | fi |
3194 | |
3195 | for ac_prog in gawk mawk nawk awk |
3196 | do |
3197 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3198 | set dummy $ac_prog; ac_word=$2 |
3199 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3200 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3201 | -if test "${ac_cv_prog_AWK+set}" = set; then |
3202 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3203 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3204 | +$as_echo_n "checking for $ac_word... " >&6; } |
3205 | +if test "${ac_cv_prog_AWK+set}" = set; then : |
3206 | + $as_echo_n "(cached) " >&6 |
3207 | else |
3208 | if test -n "$AWK"; then |
3209 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
3210 | @@ -1427,55 +1933,59 @@ |
3211 | do |
3212 | IFS=$as_save_IFS |
3213 | test -z "$as_dir" && as_dir=. |
3214 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3215 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3216 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3217 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3218 | ac_cv_prog_AWK="$ac_prog" |
3219 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3220 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3221 | break 2 |
3222 | fi |
3223 | done |
3224 | -done |
3225 | + done |
3226 | +IFS=$as_save_IFS |
3227 | |
3228 | fi |
3229 | fi |
3230 | AWK=$ac_cv_prog_AWK |
3231 | if test -n "$AWK"; then |
3232 | - echo "$as_me:$LINENO: result: $AWK" >&5 |
3233 | -echo "${ECHO_T}$AWK" >&6 |
3234 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3235 | +$as_echo "$AWK" >&6; } |
3236 | else |
3237 | - echo "$as_me:$LINENO: result: no" >&5 |
3238 | -echo "${ECHO_T}no" >&6 |
3239 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3240 | +$as_echo "no" >&6; } |
3241 | fi |
3242 | |
3243 | + |
3244 | test -n "$AWK" && break |
3245 | done |
3246 | |
3247 | -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3248 | -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
3249 | -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
3250 | -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
3251 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3252 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3253 | +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3254 | +set x ${MAKE-make} |
3255 | +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3256 | +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
3257 | + $as_echo_n "(cached) " >&6 |
3258 | else |
3259 | cat >conftest.make <<\_ACEOF |
3260 | +SHELL = /bin/sh |
3261 | all: |
3262 | - @echo 'ac_maketemp="$(MAKE)"' |
3263 | + @echo '@@@%%%=$(MAKE)=@@@%%%' |
3264 | _ACEOF |
3265 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3266 | -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
3267 | -if test -n "$ac_maketemp"; then |
3268 | - eval ac_cv_prog_make_${ac_make}_set=yes |
3269 | -else |
3270 | - eval ac_cv_prog_make_${ac_make}_set=no |
3271 | -fi |
3272 | +case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3273 | + *@@@%%%=?*=@@@%%%*) |
3274 | + eval ac_cv_prog_make_${ac_make}_set=yes;; |
3275 | + *) |
3276 | + eval ac_cv_prog_make_${ac_make}_set=no;; |
3277 | +esac |
3278 | rm -f conftest.make |
3279 | fi |
3280 | -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3281 | - echo "$as_me:$LINENO: result: yes" >&5 |
3282 | -echo "${ECHO_T}yes" >&6 |
3283 | +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3284 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3285 | +$as_echo "yes" >&6; } |
3286 | SET_MAKE= |
3287 | else |
3288 | - echo "$as_me:$LINENO: result: no" >&5 |
3289 | -echo "${ECHO_T}no" >&6 |
3290 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3291 | +$as_echo "no" >&6; } |
3292 | SET_MAKE="MAKE=${MAKE-make}" |
3293 | fi |
3294 | |
3295 | @@ -1491,9 +2001,7 @@ |
3296 | # test to see if srcdir already configured |
3297 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
3298 | test -f $srcdir/config.status; then |
3299 | - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
3300 | -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
3301 | - { (exit 1); exit 1; }; } |
3302 | + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
3303 | fi |
3304 | |
3305 | # test whether we have cygpath |
3306 | @@ -1549,10 +2057,10 @@ |
3307 | if test -n "$ac_tool_prefix"; then |
3308 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
3309 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
3310 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3311 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3312 | -if test "${ac_cv_prog_STRIP+set}" = set; then |
3313 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3314 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3315 | +$as_echo_n "checking for $ac_word... " >&6; } |
3316 | +if test "${ac_cv_prog_STRIP+set}" = set; then : |
3317 | + $as_echo_n "(cached) " >&6 |
3318 | else |
3319 | if test -n "$STRIP"; then |
3320 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
3321 | @@ -1562,35 +2070,37 @@ |
3322 | do |
3323 | IFS=$as_save_IFS |
3324 | test -z "$as_dir" && as_dir=. |
3325 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3326 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3327 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3328 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3329 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3330 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3331 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3332 | break 2 |
3333 | fi |
3334 | done |
3335 | -done |
3336 | + done |
3337 | +IFS=$as_save_IFS |
3338 | |
3339 | fi |
3340 | fi |
3341 | STRIP=$ac_cv_prog_STRIP |
3342 | if test -n "$STRIP"; then |
3343 | - echo "$as_me:$LINENO: result: $STRIP" >&5 |
3344 | -echo "${ECHO_T}$STRIP" >&6 |
3345 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
3346 | +$as_echo "$STRIP" >&6; } |
3347 | else |
3348 | - echo "$as_me:$LINENO: result: no" >&5 |
3349 | -echo "${ECHO_T}no" >&6 |
3350 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3351 | +$as_echo "no" >&6; } |
3352 | fi |
3353 | + |
3354 | |
3355 | fi |
3356 | if test -z "$ac_cv_prog_STRIP"; then |
3357 | ac_ct_STRIP=$STRIP |
3358 | # Extract the first word of "strip", so it can be a program name with args. |
3359 | set dummy strip; ac_word=$2 |
3360 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3361 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3362 | -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
3363 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3364 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3365 | +$as_echo_n "checking for $ac_word... " >&6; } |
3366 | +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
3367 | + $as_echo_n "(cached) " >&6 |
3368 | else |
3369 | if test -n "$ac_ct_STRIP"; then |
3370 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
3371 | @@ -1600,28 +2110,38 @@ |
3372 | do |
3373 | IFS=$as_save_IFS |
3374 | test -z "$as_dir" && as_dir=. |
3375 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3376 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3377 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3378 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3379 | ac_cv_prog_ac_ct_STRIP="strip" |
3380 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3381 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3382 | break 2 |
3383 | fi |
3384 | done |
3385 | -done |
3386 | + done |
3387 | +IFS=$as_save_IFS |
3388 | |
3389 | - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
3390 | fi |
3391 | fi |
3392 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3393 | if test -n "$ac_ct_STRIP"; then |
3394 | - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
3395 | -echo "${ECHO_T}$ac_ct_STRIP" >&6 |
3396 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
3397 | +$as_echo "$ac_ct_STRIP" >&6; } |
3398 | else |
3399 | - echo "$as_me:$LINENO: result: no" >&5 |
3400 | -echo "${ECHO_T}no" >&6 |
3401 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3402 | +$as_echo "no" >&6; } |
3403 | fi |
3404 | |
3405 | - STRIP=$ac_ct_STRIP |
3406 | + if test "x$ac_ct_STRIP" = x; then |
3407 | + STRIP=":" |
3408 | + else |
3409 | + case $cross_compiling:$ac_tool_warned in |
3410 | +yes:) |
3411 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3412 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3413 | +ac_tool_warned=yes ;; |
3414 | +esac |
3415 | + STRIP=$ac_ct_STRIP |
3416 | + fi |
3417 | else |
3418 | STRIP="$ac_cv_prog_STRIP" |
3419 | fi |
3420 | @@ -1643,10 +2163,10 @@ |
3421 | if test -n "$ac_tool_prefix"; then |
3422 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3423 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3424 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3425 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3426 | -if test "${ac_cv_prog_CC+set}" = set; then |
3427 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3428 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3429 | +$as_echo_n "checking for $ac_word... " >&6; } |
3430 | +if test "${ac_cv_prog_CC+set}" = set; then : |
3431 | + $as_echo_n "(cached) " >&6 |
3432 | else |
3433 | if test -n "$CC"; then |
3434 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3435 | @@ -1656,35 +2176,37 @@ |
3436 | do |
3437 | IFS=$as_save_IFS |
3438 | test -z "$as_dir" && as_dir=. |
3439 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3440 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3441 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3442 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3443 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3444 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3445 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3446 | break 2 |
3447 | fi |
3448 | done |
3449 | -done |
3450 | + done |
3451 | +IFS=$as_save_IFS |
3452 | |
3453 | fi |
3454 | fi |
3455 | CC=$ac_cv_prog_CC |
3456 | if test -n "$CC"; then |
3457 | - echo "$as_me:$LINENO: result: $CC" >&5 |
3458 | -echo "${ECHO_T}$CC" >&6 |
3459 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3460 | +$as_echo "$CC" >&6; } |
3461 | else |
3462 | - echo "$as_me:$LINENO: result: no" >&5 |
3463 | -echo "${ECHO_T}no" >&6 |
3464 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3465 | +$as_echo "no" >&6; } |
3466 | fi |
3467 | + |
3468 | |
3469 | fi |
3470 | if test -z "$ac_cv_prog_CC"; then |
3471 | ac_ct_CC=$CC |
3472 | # Extract the first word of "gcc", so it can be a program name with args. |
3473 | set dummy gcc; ac_word=$2 |
3474 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3475 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3476 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3477 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3478 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3479 | +$as_echo_n "checking for $ac_word... " >&6; } |
3480 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3481 | + $as_echo_n "(cached) " >&6 |
3482 | else |
3483 | if test -n "$ac_ct_CC"; then |
3484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3485 | @@ -1694,39 +2216,50 @@ |
3486 | do |
3487 | IFS=$as_save_IFS |
3488 | test -z "$as_dir" && as_dir=. |
3489 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3490 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3491 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3492 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3493 | ac_cv_prog_ac_ct_CC="gcc" |
3494 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3495 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3496 | break 2 |
3497 | fi |
3498 | done |
3499 | -done |
3500 | + done |
3501 | +IFS=$as_save_IFS |
3502 | |
3503 | fi |
3504 | fi |
3505 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3506 | if test -n "$ac_ct_CC"; then |
3507 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3508 | -echo "${ECHO_T}$ac_ct_CC" >&6 |
3509 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3510 | +$as_echo "$ac_ct_CC" >&6; } |
3511 | else |
3512 | - echo "$as_me:$LINENO: result: no" >&5 |
3513 | -echo "${ECHO_T}no" >&6 |
3514 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3515 | +$as_echo "no" >&6; } |
3516 | fi |
3517 | |
3518 | - CC=$ac_ct_CC |
3519 | + if test "x$ac_ct_CC" = x; then |
3520 | + CC="" |
3521 | + else |
3522 | + case $cross_compiling:$ac_tool_warned in |
3523 | +yes:) |
3524 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3525 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3526 | +ac_tool_warned=yes ;; |
3527 | +esac |
3528 | + CC=$ac_ct_CC |
3529 | + fi |
3530 | else |
3531 | CC="$ac_cv_prog_CC" |
3532 | fi |
3533 | |
3534 | if test -z "$CC"; then |
3535 | - if test -n "$ac_tool_prefix"; then |
3536 | - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3537 | + if test -n "$ac_tool_prefix"; then |
3538 | + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3539 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3540 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3541 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3542 | -if test "${ac_cv_prog_CC+set}" = set; then |
3543 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3544 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3545 | +$as_echo_n "checking for $ac_word... " >&6; } |
3546 | +if test "${ac_cv_prog_CC+set}" = set; then : |
3547 | + $as_echo_n "(cached) " >&6 |
3548 | else |
3549 | if test -n "$CC"; then |
3550 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3551 | @@ -1736,77 +2269,37 @@ |
3552 | do |
3553 | IFS=$as_save_IFS |
3554 | test -z "$as_dir" && as_dir=. |
3555 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3556 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3557 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3558 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3559 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3560 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3561 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3562 | break 2 |
3563 | fi |
3564 | done |
3565 | -done |
3566 | + done |
3567 | +IFS=$as_save_IFS |
3568 | |
3569 | fi |
3570 | fi |
3571 | CC=$ac_cv_prog_CC |
3572 | if test -n "$CC"; then |
3573 | - echo "$as_me:$LINENO: result: $CC" >&5 |
3574 | -echo "${ECHO_T}$CC" >&6 |
3575 | -else |
3576 | - echo "$as_me:$LINENO: result: no" >&5 |
3577 | -echo "${ECHO_T}no" >&6 |
3578 | -fi |
3579 | - |
3580 | -fi |
3581 | -if test -z "$ac_cv_prog_CC"; then |
3582 | - ac_ct_CC=$CC |
3583 | - # Extract the first word of "cc", so it can be a program name with args. |
3584 | -set dummy cc; ac_word=$2 |
3585 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3586 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3587 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3588 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3589 | -else |
3590 | - if test -n "$ac_ct_CC"; then |
3591 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3592 | -else |
3593 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3594 | -for as_dir in $PATH |
3595 | -do |
3596 | - IFS=$as_save_IFS |
3597 | - test -z "$as_dir" && as_dir=. |
3598 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3599 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3600 | - ac_cv_prog_ac_ct_CC="cc" |
3601 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3602 | - break 2 |
3603 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3604 | +$as_echo "$CC" >&6; } |
3605 | +else |
3606 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3607 | +$as_echo "no" >&6; } |
3608 | +fi |
3609 | + |
3610 | + |
3611 | fi |
3612 | -done |
3613 | -done |
3614 | - |
3615 | -fi |
3616 | -fi |
3617 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3618 | -if test -n "$ac_ct_CC"; then |
3619 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3620 | -echo "${ECHO_T}$ac_ct_CC" >&6 |
3621 | -else |
3622 | - echo "$as_me:$LINENO: result: no" >&5 |
3623 | -echo "${ECHO_T}no" >&6 |
3624 | -fi |
3625 | - |
3626 | - CC=$ac_ct_CC |
3627 | -else |
3628 | - CC="$ac_cv_prog_CC" |
3629 | -fi |
3630 | - |
3631 | fi |
3632 | if test -z "$CC"; then |
3633 | # Extract the first word of "cc", so it can be a program name with args. |
3634 | set dummy cc; ac_word=$2 |
3635 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3636 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3637 | -if test "${ac_cv_prog_CC+set}" = set; then |
3638 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3639 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3640 | +$as_echo_n "checking for $ac_word... " >&6; } |
3641 | +if test "${ac_cv_prog_CC+set}" = set; then : |
3642 | + $as_echo_n "(cached) " >&6 |
3643 | else |
3644 | if test -n "$CC"; then |
3645 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3646 | @@ -1817,18 +2310,19 @@ |
3647 | do |
3648 | IFS=$as_save_IFS |
3649 | test -z "$as_dir" && as_dir=. |
3650 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3651 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3652 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3653 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3654 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3655 | ac_prog_rejected=yes |
3656 | continue |
3657 | fi |
3658 | ac_cv_prog_CC="cc" |
3659 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3660 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3661 | break 2 |
3662 | fi |
3663 | done |
3664 | -done |
3665 | + done |
3666 | +IFS=$as_save_IFS |
3667 | |
3668 | if test $ac_prog_rejected = yes; then |
3669 | # We found a bogon in the path, so make sure we never use it. |
3670 | @@ -1846,24 +2340,25 @@ |
3671 | fi |
3672 | CC=$ac_cv_prog_CC |
3673 | if test -n "$CC"; then |
3674 | - echo "$as_me:$LINENO: result: $CC" >&5 |
3675 | -echo "${ECHO_T}$CC" >&6 |
3676 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3677 | +$as_echo "$CC" >&6; } |
3678 | else |
3679 | - echo "$as_me:$LINENO: result: no" >&5 |
3680 | -echo "${ECHO_T}no" >&6 |
3681 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3682 | +$as_echo "no" >&6; } |
3683 | fi |
3684 | + |
3685 | |
3686 | fi |
3687 | if test -z "$CC"; then |
3688 | if test -n "$ac_tool_prefix"; then |
3689 | - for ac_prog in cl |
3690 | + for ac_prog in cl.exe |
3691 | do |
3692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3694 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3695 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3696 | -if test "${ac_cv_prog_CC+set}" = set; then |
3697 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3698 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3699 | +$as_echo_n "checking for $ac_word... " >&6; } |
3700 | +if test "${ac_cv_prog_CC+set}" = set; then : |
3701 | + $as_echo_n "(cached) " >&6 |
3702 | else |
3703 | if test -n "$CC"; then |
3704 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3705 | @@ -1873,39 +2368,41 @@ |
3706 | do |
3707 | IFS=$as_save_IFS |
3708 | test -z "$as_dir" && as_dir=. |
3709 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3710 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3711 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3712 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3713 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3714 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3715 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3716 | break 2 |
3717 | fi |
3718 | done |
3719 | -done |
3720 | + done |
3721 | +IFS=$as_save_IFS |
3722 | |
3723 | fi |
3724 | fi |
3725 | CC=$ac_cv_prog_CC |
3726 | if test -n "$CC"; then |
3727 | - echo "$as_me:$LINENO: result: $CC" >&5 |
3728 | -echo "${ECHO_T}$CC" >&6 |
3729 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3730 | +$as_echo "$CC" >&6; } |
3731 | else |
3732 | - echo "$as_me:$LINENO: result: no" >&5 |
3733 | -echo "${ECHO_T}no" >&6 |
3734 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3735 | +$as_echo "no" >&6; } |
3736 | fi |
3737 | |
3738 | + |
3739 | test -n "$CC" && break |
3740 | done |
3741 | fi |
3742 | if test -z "$CC"; then |
3743 | ac_ct_CC=$CC |
3744 | - for ac_prog in cl |
3745 | + for ac_prog in cl.exe |
3746 | do |
3747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3748 | set dummy $ac_prog; ac_word=$2 |
3749 | -echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3750 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3751 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3752 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
3753 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3754 | +$as_echo_n "checking for $ac_word... " >&6; } |
3755 | +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3756 | + $as_echo_n "(cached) " >&6 |
3757 | else |
3758 | if test -n "$ac_ct_CC"; then |
3759 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3760 | @@ -1915,184 +2412,227 @@ |
3761 | do |
3762 | IFS=$as_save_IFS |
3763 | test -z "$as_dir" && as_dir=. |
3764 | - for ac_exec_ext in '' $ac_executable_extensions; do |
3765 | - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3766 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3767 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3768 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3769 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3770 | + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3771 | break 2 |
3772 | fi |
3773 | done |
3774 | -done |
3775 | + done |
3776 | +IFS=$as_save_IFS |
3777 | |
3778 | fi |
3779 | fi |
3780 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3781 | if test -n "$ac_ct_CC"; then |
3782 | - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3783 | -echo "${ECHO_T}$ac_ct_CC" >&6 |
3784 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3785 | +$as_echo "$ac_ct_CC" >&6; } |
3786 | else |
3787 | - echo "$as_me:$LINENO: result: no" >&5 |
3788 | -echo "${ECHO_T}no" >&6 |
3789 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3790 | +$as_echo "no" >&6; } |
3791 | fi |
3792 | |
3793 | + |
3794 | test -n "$ac_ct_CC" && break |
3795 | done |
3796 | |
3797 | - CC=$ac_ct_CC |
3798 | -fi |
3799 | - |
3800 | -fi |
3801 | - |
3802 | - |
3803 | -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3804 | -See \`config.log' for more details." >&5 |
3805 | -echo "$as_me: error: no acceptable C compiler found in \$PATH |
3806 | -See \`config.log' for more details." >&2;} |
3807 | - { (exit 1); exit 1; }; } |
3808 | + if test "x$ac_ct_CC" = x; then |
3809 | + CC="" |
3810 | + else |
3811 | + case $cross_compiling:$ac_tool_warned in |
3812 | +yes:) |
3813 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3814 | +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3815 | +ac_tool_warned=yes ;; |
3816 | +esac |
3817 | + CC=$ac_ct_CC |
3818 | + fi |
3819 | +fi |
3820 | + |
3821 | +fi |
3822 | + |
3823 | + |
3824 | +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3825 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3826 | +as_fn_error "no acceptable C compiler found in \$PATH |
3827 | +See \`config.log' for more details." "$LINENO" 5; } |
3828 | |
3829 | # Provide some information about the compiler. |
3830 | -echo "$as_me:$LINENO:" \ |
3831 | - "checking for C compiler version" >&5 |
3832 | -ac_compiler=`set X $ac_compile; echo $2` |
3833 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3834 | - (eval $ac_compiler --version </dev/null >&5) 2>&5 |
3835 | - ac_status=$? |
3836 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3837 | - (exit $ac_status); } |
3838 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
3839 | - (eval $ac_compiler -v </dev/null >&5) 2>&5 |
3840 | - ac_status=$? |
3841 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3842 | - (exit $ac_status); } |
3843 | -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
3844 | - (eval $ac_compiler -V </dev/null >&5) 2>&5 |
3845 | - ac_status=$? |
3846 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3847 | - (exit $ac_status); } |
3848 | +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3849 | +set X $ac_compile |
3850 | +ac_compiler=$2 |
3851 | +for ac_option in --version -v -V -qversion; do |
3852 | + { { ac_try="$ac_compiler $ac_option >&5" |
3853 | +case "(($ac_try" in |
3854 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3855 | + *) ac_try_echo=$ac_try;; |
3856 | +esac |
3857 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3858 | +$as_echo "$ac_try_echo"; } >&5 |
3859 | + (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3860 | + ac_status=$? |
3861 | + if test -s conftest.err; then |
3862 | + sed '10a\ |
3863 | +... rest of stderr output deleted ... |
3864 | + 10q' conftest.err >conftest.er1 |
3865 | + cat conftest.er1 >&5 |
3866 | + rm -f conftest.er1 conftest.err |
3867 | + fi |
3868 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3869 | + test $ac_status = 0; } |
3870 | +done |
3871 | |
3872 | -cat >conftest.$ac_ext <<_ACEOF |
3873 | -#line $LINENO "configure" |
3874 | -/* confdefs.h. */ |
3875 | -_ACEOF |
3876 | -cat confdefs.h >>conftest.$ac_ext |
3877 | -cat >>conftest.$ac_ext <<_ACEOF |
3878 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3879 | /* end confdefs.h. */ |
3880 | - |
3881 | +#include <stdio.h> |
3882 | int |
3883 | main () |
3884 | { |
3885 | +FILE *f = fopen ("conftest.out", "w"); |
3886 | + return ferror (f) || fclose (f) != 0; |
3887 | |
3888 | ; |
3889 | return 0; |
3890 | } |
3891 | _ACEOF |
3892 | ac_clean_files_save=$ac_clean_files |
3893 | -ac_clean_files="$ac_clean_files a.out a.exe b.out" |
3894 | +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
3895 | # Try to create an executable without -o first, disregard a.out. |
3896 | # It will help us diagnose broken compilers, and finding out an intuition |
3897 | # of exeext. |
3898 | -echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
3899 | -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
3900 | -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3901 | -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
3902 | - (eval $ac_link_default) 2>&5 |
3903 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3904 | +$as_echo_n "checking for C compiler default output file name... " >&6; } |
3905 | +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3906 | + |
3907 | +# The possible output files: |
3908 | +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3909 | + |
3910 | +ac_rmfiles= |
3911 | +for ac_file in $ac_files |
3912 | +do |
3913 | + case $ac_file in |
3914 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3915 | + * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3916 | + esac |
3917 | +done |
3918 | +rm -f $ac_rmfiles |
3919 | + |
3920 | +if { { ac_try="$ac_link_default" |
3921 | +case "(($ac_try" in |
3922 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3923 | + *) ac_try_echo=$ac_try;; |
3924 | +esac |
3925 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3926 | +$as_echo "$ac_try_echo"; } >&5 |
3927 | + (eval "$ac_link_default") 2>&5 |
3928 | ac_status=$? |
3929 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3930 | - (exit $ac_status); }; then |
3931 | - # Find the output, starting from the most likely. This scheme is |
3932 | -# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
3933 | -# resort. |
3934 | - |
3935 | -# Be careful to initialize this variable, since it used to be cached. |
3936 | -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
3937 | -ac_cv_exeext= |
3938 | -# b.out is created by i960 compilers. |
3939 | -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
3940 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3941 | + test $ac_status = 0; }; then : |
3942 | + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3943 | +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3944 | +# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3945 | +# so that the user can short-circuit this test for compilers unknown to |
3946 | +# Autoconf. |
3947 | +for ac_file in $ac_files '' |
3948 | do |
3949 | test -f "$ac_file" || continue |
3950 | case $ac_file in |
3951 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
3952 | - ;; |
3953 | - conftest.$ac_ext ) |
3954 | - # This is the source file. |
3955 | - ;; |
3956 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3957 | + ;; |
3958 | [ab].out ) |
3959 | - # We found the default executable, but exeext='' is most |
3960 | - # certainly right. |
3961 | - break;; |
3962 | + # We found the default executable, but exeext='' is most |
3963 | + # certainly right. |
3964 | + break;; |
3965 | *.* ) |
3966 | - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3967 | - # FIXME: I believe we export ac_cv_exeext for Libtool, |
3968 | - # but it would be cool to find out if it's true. Does anybody |
3969 | - # maintain Libtool? --akim. |
3970 | - export ac_cv_exeext |
3971 | - break;; |
3972 | + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3973 | + then :; else |
3974 | + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3975 | + fi |
3976 | + # We set ac_cv_exeext here because the later test for it is not |
3977 | + # safe: cross compilers may not add the suffix if given an `-o' |
3978 | + # argument, so we may need to know it at that point already. |
3979 | + # Even if this section looks crufty: it has the advantage of |
3980 | + # actually working. |
3981 | + break;; |
3982 | * ) |
3983 | - break;; |
3984 | + break;; |
3985 | esac |
3986 | done |
3987 | +test "$ac_cv_exeext" = no && ac_cv_exeext= |
3988 | + |
3989 | else |
3990 | - echo "$as_me: failed program was:" >&5 |
3991 | + ac_file='' |
3992 | +fi |
3993 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3994 | +$as_echo "$ac_file" >&6; } |
3995 | +if test -z "$ac_file"; then : |
3996 | + $as_echo "$as_me: failed program was:" >&5 |
3997 | sed 's/^/| /' conftest.$ac_ext >&5 |
3998 | |
3999 | -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
4000 | -See \`config.log' for more details." >&5 |
4001 | -echo "$as_me: error: C compiler cannot create executables |
4002 | -See \`config.log' for more details." >&2;} |
4003 | - { (exit 77); exit 77; }; } |
4004 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4005 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4006 | +{ as_fn_set_status 77 |
4007 | +as_fn_error "C compiler cannot create executables |
4008 | +See \`config.log' for more details." "$LINENO" 5; }; } |
4009 | fi |
4010 | - |
4011 | ac_exeext=$ac_cv_exeext |
4012 | -echo "$as_me:$LINENO: result: $ac_file" >&5 |
4013 | -echo "${ECHO_T}$ac_file" >&6 |
4014 | |
4015 | -# Check the compiler produces executables we can run. If not, either |
4016 | +# Check that the compiler produces executables we can run. If not, either |
4017 | # the compiler is broken, or we cross compile. |
4018 | -echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
4019 | -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
4020 | -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
4021 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4022 | +$as_echo_n "checking whether the C compiler works... " >&6; } |
4023 | # If not cross compiling, check that we can run a simple program. |
4024 | if test "$cross_compiling" != yes; then |
4025 | if { ac_try='./$ac_file' |
4026 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4027 | - (eval $ac_try) 2>&5 |
4028 | + { { case "(($ac_try" in |
4029 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4030 | + *) ac_try_echo=$ac_try;; |
4031 | +esac |
4032 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4033 | +$as_echo "$ac_try_echo"; } >&5 |
4034 | + (eval "$ac_try") 2>&5 |
4035 | ac_status=$? |
4036 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4037 | - (exit $ac_status); }; }; then |
4038 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4039 | + test $ac_status = 0; }; }; then |
4040 | cross_compiling=no |
4041 | else |
4042 | if test "$cross_compiling" = maybe; then |
4043 | cross_compiling=yes |
4044 | else |
4045 | - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
4046 | -If you meant to cross compile, use \`--host'. |
4047 | -See \`config.log' for more details." >&5 |
4048 | -echo "$as_me: error: cannot run C compiled programs. |
4049 | -If you meant to cross compile, use \`--host'. |
4050 | -See \`config.log' for more details." >&2;} |
4051 | - { (exit 1); exit 1; }; } |
4052 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4053 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4054 | +as_fn_error "cannot run C compiled programs. |
4055 | +If you meant to cross compile, use \`--host'. |
4056 | +See \`config.log' for more details." "$LINENO" 5; } |
4057 | fi |
4058 | fi |
4059 | fi |
4060 | -echo "$as_me:$LINENO: result: yes" >&5 |
4061 | -echo "${ECHO_T}yes" >&6 |
4062 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4063 | +$as_echo "yes" >&6; } |
4064 | |
4065 | -rm -f a.out a.exe conftest$ac_cv_exeext b.out |
4066 | +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
4067 | ac_clean_files=$ac_clean_files_save |
4068 | -# Check the compiler produces executables we can run. If not, either |
4069 | +# Check that the compiler produces executables we can run. If not, either |
4070 | # the compiler is broken, or we cross compile. |
4071 | -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
4072 | -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
4073 | -echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
4074 | -echo "${ECHO_T}$cross_compiling" >&6 |
4075 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4076 | +$as_echo_n "checking whether we are cross compiling... " >&6; } |
4077 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4078 | +$as_echo "$cross_compiling" >&6; } |
4079 | |
4080 | -echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
4081 | -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
4082 | -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4083 | - (eval $ac_link) 2>&5 |
4084 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4085 | +$as_echo_n "checking for suffix of executables... " >&6; } |
4086 | +if { { ac_try="$ac_link" |
4087 | +case "(($ac_try" in |
4088 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4089 | + *) ac_try_echo=$ac_try;; |
4090 | +esac |
4091 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4092 | +$as_echo "$ac_try_echo"; } >&5 |
4093 | + (eval "$ac_link") 2>&5 |
4094 | ac_status=$? |
4095 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4096 | - (exit $ac_status); }; then |
4097 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4098 | + test $ac_status = 0; }; then : |
4099 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4100 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
4101 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
4102 | @@ -2100,39 +2640,31 @@ |
4103 | for ac_file in conftest.exe conftest conftest.*; do |
4104 | test -f "$ac_file" || continue |
4105 | case $ac_file in |
4106 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
4107 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
4108 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4109 | - export ac_cv_exeext |
4110 | - break;; |
4111 | + break;; |
4112 | * ) break;; |
4113 | esac |
4114 | done |
4115 | else |
4116 | - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
4117 | -See \`config.log' for more details." >&5 |
4118 | -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
4119 | -See \`config.log' for more details." >&2;} |
4120 | - { (exit 1); exit 1; }; } |
4121 | + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4122 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4123 | +as_fn_error "cannot compute suffix of executables: cannot compile and link |
4124 | +See \`config.log' for more details." "$LINENO" 5; } |
4125 | fi |
4126 | - |
4127 | rm -f conftest$ac_cv_exeext |
4128 | -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
4129 | -echo "${ECHO_T}$ac_cv_exeext" >&6 |
4130 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4131 | +$as_echo "$ac_cv_exeext" >&6; } |
4132 | |
4133 | rm -f conftest.$ac_ext |
4134 | EXEEXT=$ac_cv_exeext |
4135 | ac_exeext=$EXEEXT |
4136 | -echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
4137 | -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
4138 | -if test "${ac_cv_objext+set}" = set; then |
4139 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
4140 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4141 | +$as_echo_n "checking for suffix of object files... " >&6; } |
4142 | +if test "${ac_cv_objext+set}" = set; then : |
4143 | + $as_echo_n "(cached) " >&6 |
4144 | else |
4145 | - cat >conftest.$ac_ext <<_ACEOF |
4146 | -#line $LINENO "configure" |
4147 | -/* confdefs.h. */ |
4148 | -_ACEOF |
4149 | -cat confdefs.h >>conftest.$ac_ext |
4150 | -cat >>conftest.$ac_ext <<_ACEOF |
4151 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4152 | /* end confdefs.h. */ |
4153 | |
4154 | int |
4155 | @@ -2144,46 +2676,46 @@ |
4156 | } |
4157 | _ACEOF |
4158 | rm -f conftest.o conftest.obj |
4159 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4160 | - (eval $ac_compile) 2>&5 |
4161 | +if { { ac_try="$ac_compile" |
4162 | +case "(($ac_try" in |
4163 | + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4164 | + *) ac_try_echo=$ac_try;; |
4165 | +esac |
4166 | +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4167 | +$as_echo "$ac_try_echo"; } >&5 |
4168 | + (eval "$ac_compile") 2>&5 |
4169 | ac_status=$? |
4170 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4171 | - (exit $ac_status); }; then |
4172 | - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
4173 | + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4174 | + test $ac_status = 0; }; then : |
4175 | + for ac_file in conftest.o conftest.obj conftest.*; do |
4176 | + test -f "$ac_file" || continue; |
4177 | case $ac_file in |
4178 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
4179 | + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
4180 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4181 | break;; |
4182 | esac |
4183 | done |
4184 | else |
4185 | - echo "$as_me: failed program was:" >&5 |
4186 | + $as_echo "$as_me: failed program was:" >&5 |
4187 | sed 's/^/| /' conftest.$ac_ext >&5 |
4188 | |
4189 | -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
4190 | -See \`config.log' for more details." >&5 |
4191 | -echo "$as_me: error: cannot compute suffix of object files: cannot compile |
4192 | -See \`config.log' for more details." >&2;} |
4193 | - { (exit 1); exit 1; }; } |
4194 | +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4195 | +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4196 | +as_fn_error "cannot compute suffix of object files: cannot compile |
4197 | +See \`config.log' for more details." "$LINENO" 5; } |
4198 | fi |
4199 | - |
4200 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4201 | fi |
4202 | -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
4203 | -echo "${ECHO_T}$ac_cv_objext" >&6 |
4204 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4205 | +$as_echo "$ac_cv_objext" >&6; } |
4206 | OBJEXT=$ac_cv_objext |
4207 | ac_objext=$OBJEXT |
4208 | -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4209 | -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
4210 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4211 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
4212 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4213 | +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4214 | +if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
4215 | + $as_echo_n "(cached) " >&6 |
4216 | else |
4217 | - cat >conftest.$ac_ext <<_ACEOF |
4218 | -#line $LINENO "configure" |
4219 | -/* confdefs.h. */ |
4220 | -_ACEOF |
4221 | -cat confdefs.h >>conftest.$ac_ext |
4222 | -cat >>conftest.$ac_ext <<_ACEOF |
4223 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4224 | /* end confdefs.h. */ |
4225 | |
4226 | int |
4227 | @@ -2197,79 +2729,87 @@ |
4228 | return 0; |
4229 | } |
4230 | _ACEOF |
4231 | -rm -f conftest.$ac_objext |
4232 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4233 | - (eval $ac_compile) 2>&5 |
4234 | - ac_status=$? |
4235 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4236 | - (exit $ac_status); } && |
4237 | - { ac_try='test -s conftest.$ac_objext' |
4238 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4239 | - (eval $ac_try) 2>&5 |
4240 | - ac_status=$? |
4241 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4242 | - (exit $ac_status); }; }; then |
4243 | +if ac_fn_c_try_compile "$LINENO"; then : |
4244 | ac_compiler_gnu=yes |
4245 | else |
4246 | - echo "$as_me: failed program was:" >&5 |
4247 | -sed 's/^/| /' conftest.$ac_ext >&5 |
4248 | - |
4249 | -ac_compiler_gnu=no |
4250 | + ac_compiler_gnu=no |
4251 | fi |
4252 | -rm -f conftest.$ac_objext conftest.$ac_ext |
4253 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4254 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4255 | |
4256 | fi |
4257 | -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4258 | -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
4259 | -GCC=`test $ac_compiler_gnu = yes && echo yes` |
4260 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4261 | +$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4262 | +if test $ac_compiler_gnu = yes; then |
4263 | + GCC=yes |
4264 | +else |
4265 | + GCC= |
4266 | +fi |
4267 | ac_test_CFLAGS=${CFLAGS+set} |
4268 | ac_save_CFLAGS=$CFLAGS |
4269 | -CFLAGS="-g" |
4270 | -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4271 | -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
4272 | -if test "${ac_cv_prog_cc_g+set}" = set; then |
4273 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
4274 | -else |
4275 | - cat >conftest.$ac_ext <<_ACEOF |
4276 | -#line $LINENO "configure" |
4277 | -/* confdefs.h. */ |
4278 | -_ACEOF |
4279 | -cat confdefs.h >>conftest.$ac_ext |
4280 | -cat >>conftest.$ac_ext <<_ACEOF |
4281 | -/* end confdefs.h. */ |
4282 | - |
4283 | -int |
4284 | -main () |
4285 | -{ |
4286 | - |
4287 | - ; |
4288 | - return 0; |
4289 | -} |
4290 | -_ACEOF |
4291 | -rm -f conftest.$ac_objext |
4292 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4293 | - (eval $ac_compile) 2>&5 |
4294 | - ac_status=$? |
4295 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4296 | - (exit $ac_status); } && |
4297 | - { ac_try='test -s conftest.$ac_objext' |
4298 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4299 | - (eval $ac_try) 2>&5 |
4300 | - ac_status=$? |
4301 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4302 | - (exit $ac_status); }; }; then |
4303 | - ac_cv_prog_cc_g=yes |
4304 | -else |
4305 | - echo "$as_me: failed program was:" >&5 |
4306 | -sed 's/^/| /' conftest.$ac_ext >&5 |
4307 | - |
4308 | -ac_cv_prog_cc_g=no |
4309 | -fi |
4310 | -rm -f conftest.$ac_objext conftest.$ac_ext |
4311 | -fi |
4312 | -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4313 | -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
4314 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4315 | +$as_echo_n "checking whether $CC accepts -g... " >&6; } |
4316 | +if test "${ac_cv_prog_cc_g+set}" = set; then : |
4317 | + $as_echo_n "(cached) " >&6 |
4318 | +else |
4319 | + ac_save_c_werror_flag=$ac_c_werror_flag |
4320 | + ac_c_werror_flag=yes |
4321 | + ac_cv_prog_cc_g=no |
4322 | + CFLAGS="-g" |
4323 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4324 | +/* end confdefs.h. */ |
4325 | + |
4326 | +int |
4327 | +main () |
4328 | +{ |
4329 | + |
4330 | + ; |
4331 | + return 0; |
4332 | +} |
4333 | +_ACEOF |
4334 | +if ac_fn_c_try_compile "$LINENO"; then : |
4335 | + ac_cv_prog_cc_g=yes |
4336 | +else |
4337 | + CFLAGS="" |
4338 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4339 | +/* end confdefs.h. */ |
4340 | + |
4341 | +int |
4342 | +main () |
4343 | +{ |
4344 | + |
4345 | + ; |
4346 | + return 0; |
4347 | +} |
4348 | +_ACEOF |
4349 | +if ac_fn_c_try_compile "$LINENO"; then : |
4350 | + |
4351 | +else |
4352 | + ac_c_werror_flag=$ac_save_c_werror_flag |
4353 | + CFLAGS="-g" |
4354 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4355 | +/* end confdefs.h. */ |
4356 | + |
4357 | +int |
4358 | +main () |
4359 | +{ |
4360 | + |
4361 | + ; |
4362 | + return 0; |
4363 | +} |
4364 | +_ACEOF |
4365 | +if ac_fn_c_try_compile "$LINENO"; then : |
4366 | + ac_cv_prog_cc_g=yes |
4367 | +fi |
4368 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4369 | +fi |
4370 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4371 | +fi |
4372 | +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4373 | + ac_c_werror_flag=$ac_save_c_werror_flag |
4374 | +fi |
4375 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4376 | +$as_echo "$ac_cv_prog_cc_g" >&6; } |
4377 | if test "$ac_test_CFLAGS" = set; then |
4378 | CFLAGS=$ac_save_CFLAGS |
4379 | elif test $ac_cv_prog_cc_g = yes; then |
4380 | @@ -2285,19 +2825,14 @@ |
4381 | CFLAGS= |
4382 | fi |
4383 | fi |
4384 | -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4385 | -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
4386 | -if test "${ac_cv_prog_cc_stdc+set}" = set; then |
4387 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
4388 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4389 | +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4390 | +if test "${ac_cv_prog_cc_c89+set}" = set; then : |
4391 | + $as_echo_n "(cached) " >&6 |
4392 | else |
4393 | - ac_cv_prog_cc_stdc=no |
4394 | + ac_cv_prog_cc_c89=no |
4395 | ac_save_CC=$CC |
4396 | -cat >conftest.$ac_ext <<_ACEOF |
4397 | -#line $LINENO "configure" |
4398 | -/* confdefs.h. */ |
4399 | -_ACEOF |
4400 | -cat confdefs.h >>conftest.$ac_ext |
4401 | -cat >>conftest.$ac_ext <<_ACEOF |
4402 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4403 | /* end confdefs.h. */ |
4404 | #include <stdarg.h> |
4405 | #include <stdio.h> |
4406 | @@ -2321,6 +2856,21 @@ |
4407 | va_end (v); |
4408 | return s; |
4409 | } |
4410 | + |
4411 | +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4412 | + function prototypes and stuff, but not '\xHH' hex character constants. |
4413 | + These don't provoke an error unfortunately, instead are silently treated |
4414 | + as 'x'. The following induces an error, until -std is added to get |
4415 | + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4416 | + array size at least. It's necessary to write '\x00'==0 to get something |
4417 | + that's true only with -std. */ |
4418 | +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4419 | + |
4420 | +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4421 | + inside strings and character constants. */ |
4422 | +#define FOO(x) 'x' |
4423 | +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4424 | + |
4425 | int test (int i, double x); |
4426 | struct s1 {int (*f) (int a);}; |
4427 | struct s2 {int (*f) (double a);}; |
4428 | @@ -2335,168 +2885,37 @@ |
4429 | return 0; |
4430 | } |
4431 | _ACEOF |
4432 | -# Don't try gcc -ansi; that turns off useful extensions and |
4433 | -# breaks some systems' header files. |
4434 | -# AIX -qlanglvl=ansi |
4435 | -# Ultrix and OSF/1 -std1 |
4436 | -# HP-UX 10.20 and later -Ae |
4437 | -# HP-UX older versions -Aa -D_HPUX_SOURCE |
4438 | -# SVR4 -Xc -D__EXTENSIONS__ |
4439 | -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4440 | +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4441 | + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4442 | do |
4443 | CC="$ac_save_CC $ac_arg" |
4444 | - rm -f conftest.$ac_objext |
4445 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4446 | - (eval $ac_compile) 2>&5 |
4447 | - ac_status=$? |
4448 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4449 | - (exit $ac_status); } && |
4450 | - { ac_try='test -s conftest.$ac_objext' |
4451 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4452 | - (eval $ac_try) 2>&5 |
4453 | - ac_status=$? |
4454 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4455 | - (exit $ac_status); }; }; then |
4456 | - ac_cv_prog_cc_stdc=$ac_arg |
4457 | -break |
4458 | -else |
4459 | - echo "$as_me: failed program was:" >&5 |
4460 | -sed 's/^/| /' conftest.$ac_ext >&5 |
4461 | - |
4462 | + if ac_fn_c_try_compile "$LINENO"; then : |
4463 | + ac_cv_prog_cc_c89=$ac_arg |
4464 | fi |
4465 | -rm -f conftest.$ac_objext |
4466 | +rm -f core conftest.err conftest.$ac_objext |
4467 | + test "x$ac_cv_prog_cc_c89" != "xno" && break |
4468 | done |
4469 | -rm -f conftest.$ac_ext conftest.$ac_objext |
4470 | +rm -f conftest.$ac_ext |
4471 | CC=$ac_save_CC |
4472 | |
4473 | fi |
4474 | - |
4475 | -case "x$ac_cv_prog_cc_stdc" in |
4476 | - x|xno) |
4477 | - echo "$as_me:$LINENO: result: none needed" >&5 |
4478 | -echo "${ECHO_T}none needed" >&6 ;; |
4479 | +# AC_CACHE_VAL |
4480 | +case "x$ac_cv_prog_cc_c89" in |
4481 | + x) |
4482 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4483 | +$as_echo "none needed" >&6; } ;; |
4484 | + xno) |
4485 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4486 | +$as_echo "unsupported" >&6; } ;; |
4487 | *) |
4488 | - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
4489 | -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
4490 | - CC="$CC $ac_cv_prog_cc_stdc" ;; |
4491 | + CC="$CC $ac_cv_prog_cc_c89" |
4492 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4493 | +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4494 | esac |
4495 | - |
4496 | -# Some people use a C++ compiler to compile C. Since we use `exit', |
4497 | -# in C++ we need to declare it. In case someone uses the same compiler |
4498 | -# for both compiling C and C++ we need to have the C++ compiler decide |
4499 | -# the declaration of exit, since it's the most demanding environment. |
4500 | -cat >conftest.$ac_ext <<_ACEOF |
4501 | -#ifndef __cplusplus |
4502 | - choke me |
4503 | -#endif |
4504 | -_ACEOF |
4505 | -rm -f conftest.$ac_objext |
4506 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4507 | - (eval $ac_compile) 2>&5 |
4508 | - ac_status=$? |
4509 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4510 | - (exit $ac_status); } && |
4511 | - { ac_try='test -s conftest.$ac_objext' |
4512 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4513 | - (eval $ac_try) 2>&5 |
4514 | - ac_status=$? |
4515 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4516 | - (exit $ac_status); }; }; then |
4517 | - for ac_declaration in \ |
4518 | - ''\ |
4519 | - 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
4520 | - 'extern "C" void std::exit (int); using std::exit;' \ |
4521 | - 'extern "C" void exit (int) throw ();' \ |
4522 | - 'extern "C" void exit (int);' \ |
4523 | - 'void exit (int);' \ |
4524 | - '#include <stdlib.h>' |
4525 | -do |
4526 | - cat >conftest.$ac_ext <<_ACEOF |
4527 | -#line $LINENO "configure" |
4528 | -/* confdefs.h. */ |
4529 | -_ACEOF |
4530 | -cat confdefs.h >>conftest.$ac_ext |
4531 | -cat >>conftest.$ac_ext <<_ACEOF |
4532 | -/* end confdefs.h. */ |
4533 | -#include <stdlib.h> |
4534 | -$ac_declaration |
4535 | -int |
4536 | -main () |
4537 | -{ |
4538 | -exit (42); |
4539 | - ; |
4540 | - return 0; |
4541 | -} |
4542 | -_ACEOF |
4543 | -rm -f conftest.$ac_objext |
4544 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4545 | - (eval $ac_compile) 2>&5 |
4546 | - ac_status=$? |
4547 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4548 | - (exit $ac_status); } && |
4549 | - { ac_try='test -s conftest.$ac_objext' |
4550 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4551 | - (eval $ac_try) 2>&5 |
4552 | - ac_status=$? |
4553 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4554 | - (exit $ac_status); }; }; then |
4555 | - : |
4556 | -else |
4557 | - echo "$as_me: failed program was:" >&5 |
4558 | -sed 's/^/| /' conftest.$ac_ext >&5 |
4559 | - |
4560 | -continue |
4561 | -fi |
4562 | -rm -f conftest.$ac_objext conftest.$ac_ext |
4563 | - cat >conftest.$ac_ext <<_ACEOF |
4564 | -#line $LINENO "configure" |
4565 | -/* confdefs.h. */ |
4566 | -_ACEOF |
4567 | -cat confdefs.h >>conftest.$ac_ext |
4568 | -cat >>conftest.$ac_ext <<_ACEOF |
4569 | -/* end confdefs.h. */ |
4570 | -$ac_declaration |
4571 | -int |
4572 | -main () |
4573 | -{ |
4574 | -exit (42); |
4575 | - ; |
4576 | - return 0; |
4577 | -} |
4578 | -_ACEOF |
4579 | -rm -f conftest.$ac_objext |
4580 | -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4581 | - (eval $ac_compile) 2>&5 |
4582 | - ac_status=$? |
4583 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4584 | - (exit $ac_status); } && |
4585 | - { ac_try='test -s conftest.$ac_objext' |
4586 | - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4587 | - (eval $ac_try) 2>&5 |
4588 | - ac_status=$? |
4589 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4590 | - (exit $ac_status); }; }; then |
4591 | - break |
4592 | -else |
4593 | - echo "$as_me: failed program was:" >&5 |
4594 | -sed 's/^/| /' conftest.$ac_ext >&5 |
4595 | - |
4596 | -fi |
4597 | -rm -f conftest.$ac_objext conftest.$ac_ext |
4598 | -done |
4599 | -rm -f conftest* |
4600 | -if test -n "$ac_declaration"; then |
4601 | - echo '#ifdef __cplusplus' >>confdefs.h |
4602 | - echo $ac_declaration >>confdefs.h |
4603 | - echo '#endif' >>confdefs.h |
4604 | -fi |
4605 | - |
4606 | -else |
4607 | - echo "$as_me: failed program was:" >&5 |
4608 | -sed 's/^/| /' conftest.$ac_ext >&5 |
4609 | - |
4610 | -fi |
4611 | -rm -f conftest.$ac_objext conftest.$ac_ext |
4612 | +if test "x$ac_cv_prog_cc_c89" != xno; then : |
4613 | + |
4614 | +fi |
4615 | + |
4616 | ac_ext=c |
4617 | ac_cpp='$CPP $CPPFLAGS' |
4618 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4619 | @@ -2504,7 +2923,7 @@ |
4620 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4621 | DEPDIR="${am__leading_dot}deps" |
4622 | |
4623 | - ac_config_commands="$ac_config_commands depfiles" |
4624 | +ac_config_commands="$ac_config_commands depfiles" |
4625 | |
4626 | |
4627 | am_make=${MAKE-make} |
4628 | @@ -2514,8 +2933,8 @@ |
4629 | .PHONY: am__doit |
4630 | END |
4631 | # If we don't find an include directive, just comment out the code. |
4632 | -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
4633 | -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
4634 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4635 | +$as_echo_n "checking for style of include used by $am_make... " >&6; } |
4636 | am__include="#" |
4637 | am__quote= |
4638 | _am_result=none |
4639 | @@ -2542,15 +2961,15 @@ |
4640 | fi |
4641 | |
4642 | |
4643 | -echo "$as_me:$LINENO: result: $_am_result" >&5 |
4644 | -echo "${ECHO_T}$_am_result" >&6 |
4645 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4646 | +$as_echo "$_am_result" >&6; } |
4647 | rm -f confinc confmf |
4648 | |
4649 | -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
4650 | -if test "${enable_dependency_tracking+set}" = set; then |
4651 | - enableval="$enable_dependency_tracking" |
4652 | +# Check whether --enable-dependency-tracking was given. |
4653 | +if test "${enable_dependency_tracking+set}" = set; then : |
4654 | + enableval=$enable_dependency_tracking; |
4655 | +fi |
4656 | |
4657 | -fi; |
4658 | if test "x$enable_dependency_tracking" != xno; then |
4659 | am_depcomp="$ac_aux_dir/depcomp" |
4660 | AMDEPBACKSLASH='\' |
4661 | @@ -2570,10 +2989,10 @@ |
4662 | |
4663 | depcc="$CC" am_compiler_list= |
4664 | |
4665 | -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4666 | -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
4667 | -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
4668 | - echo $ECHO_N "(cached) $ECHO_C" >&6 |
4669 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4670 | +$as_echo_n "checking dependency style of $depcc... " >&6; } |
4671 | +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
4672 | + $as_echo_n "(cached) " >&6 |
4673 | else |
4674 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4675 | # We make a subdir and do the tests there. Otherwise we can end up |
4676 | @@ -2638,8 +3057,8 @@ |
4677 | fi |
4678 | |
4679 | fi |
4680 | -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4681 | -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
4682 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4683 | +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
4684 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4685 | |
4686 | |
4687 | @@ -2656,7 +3075,7 @@ |
4688 | |
4689 | |
4690 | |
4691 | - ac_config_files="$ac_config_files Makefile" |
4692 | +ac_config_files="$ac_config_files Makefile" |
4693 | |
4694 | cat >confcache <<\_ACEOF |
4695 | # This file is a shell script that caches the results of configure |
4696 | @@ -2676,39 +3095,59 @@ |
4697 | |
4698 | # The following way of writing the cache mishandles newlines in values, |
4699 | # but we know of no workaround that is simple, portable, and efficient. |
4700 | -# So, don't put newlines in cache variables' values. |
4701 | +# So, we kill variables containing newlines. |
4702 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4703 | # and sets the high bit in the cache file unless we assign to the vars. |
4704 | -{ |
4705 | +( |
4706 | + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
4707 | + eval ac_val=\$$ac_var |
4708 | + case $ac_val in #( |
4709 | + *${as_nl}*) |
4710 | + case $ac_var in #( |
4711 | + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
4712 | +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
4713 | + esac |
4714 | + case $ac_var in #( |
4715 | + _ | IFS | as_nl) ;; #( |
4716 | + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
4717 | + *) { eval $ac_var=; unset $ac_var;} ;; |
4718 | + esac ;; |
4719 | + esac |
4720 | + done |
4721 | + |
4722 | (set) 2>&1 | |
4723 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in |
4724 | - *ac_space=\ *) |
4725 | - # `set' does not quote correctly, so add quotes (double-quote |
4726 | - # substitution turns \\\\ into \\, and sed turns \\ into \). |
4727 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4728 | + *${as_nl}ac_space=\ *) |
4729 | + # `set' does not quote correctly, so add quotes: double-quote |
4730 | + # substitution turns \\\\ into \\, and sed turns \\ into \. |
4731 | sed -n \ |
4732 | - "s/'/'\\\\''/g; |
4733 | - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4734 | - ;; |
4735 | + "s/'/'\\\\''/g; |
4736 | + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4737 | + ;; #( |
4738 | *) |
4739 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
4740 | - sed -n \ |
4741 | - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
4742 | + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4743 | ;; |
4744 | - esac; |
4745 | -} | |
4746 | + esac | |
4747 | + sort |
4748 | +) | |
4749 | sed ' |
4750 | + /^ac_cv_env_/b end |
4751 | t clear |
4752 | - : clear |
4753 | + :clear |
4754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4755 | t end |
4756 | - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4757 | - : end' >>confcache |
4758 | -if diff $cache_file confcache >/dev/null 2>&1; then :; else |
4759 | - if test -w $cache_file; then |
4760 | - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4761 | + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4762 | + :end' >>confcache |
4763 | +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
4764 | + if test -w "$cache_file"; then |
4765 | + test "x$cache_file" != "x/dev/null" && |
4766 | + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4767 | +$as_echo "$as_me: updating cache $cache_file" >&6;} |
4768 | cat confcache >$cache_file |
4769 | else |
4770 | - echo "not updating unwritable cache $cache_file" |
4771 | + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4772 | +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
4773 | fi |
4774 | fi |
4775 | rm -f confcache |
4776 | @@ -2717,63 +3156,54 @@ |
4777 | # Let make expand exec_prefix. |
4778 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
4779 | |
4780 | -# VPATH may cause trouble with some makes, so we remove $(srcdir), |
4781 | -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
4782 | -# trailing colons and then remove the whole line if VPATH becomes empty |
4783 | -# (actually we leave an empty line to preserve line numbers). |
4784 | -if test "x$srcdir" = x.; then |
4785 | - ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
4786 | -s/:*\$(srcdir):*/:/; |
4787 | -s/:*\${srcdir}:*/:/; |
4788 | -s/:*@srcdir@:*/:/; |
4789 | -s/^\([^=]*=[ ]*\):*/\1/; |
4790 | -s/:*$//; |
4791 | -s/^[^=]*=[ ]*$//; |
4792 | -}' |
4793 | -fi |
4794 | - |
4795 | # Transform confdefs.h into DEFS. |
4796 | # Protect against shell expansion while executing Makefile rules. |
4797 | # Protect against Makefile macro expansion. |
4798 | # |
4799 | # If the first sed substitution is executed (which looks for macros that |
4800 | -# take arguments), then we branch to the quote section. Otherwise, |
4801 | +# take arguments), then branch to the quote section. Otherwise, |
4802 | # look for a macro that doesn't take arguments. |
4803 | -cat >confdef2opt.sed <<\_ACEOF |
4804 | +ac_script=' |
4805 | +:mline |
4806 | +/\\$/{ |
4807 | + N |
4808 | + s,\\\n,, |
4809 | + b mline |
4810 | +} |
4811 | t clear |
4812 | -: clear |
4813 | -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
4814 | -t quote |
4815 | -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
4816 | -t quote |
4817 | -d |
4818 | -: quote |
4819 | -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
4820 | -s,\[,\\&,g |
4821 | -s,\],\\&,g |
4822 | -s,\$,$$,g |
4823 | -p |
4824 | -_ACEOF |
4825 | -# We use echo to avoid assuming a particular line-breaking character. |
4826 | -# The extra dot is to prevent the shell from consuming trailing |
4827 | -# line-breaks from the sub-command output. A line-break within |
4828 | -# single-quotes doesn't work because, if this script is created in a |
4829 | -# platform that uses two characters for line-breaks (e.g., DOS), tr |
4830 | -# would break. |
4831 | -ac_LF_and_DOT=`echo; echo .` |
4832 | -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
4833 | -rm -f confdef2opt.sed |
4834 | +:clear |
4835 | +s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
4836 | +t quote |
4837 | +s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
4838 | +t quote |
4839 | +b any |
4840 | +:quote |
4841 | +s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
4842 | +s/\[/\\&/g |
4843 | +s/\]/\\&/g |
4844 | +s/\$/$$/g |
4845 | +H |
4846 | +:any |
4847 | +${ |
4848 | + g |
4849 | + s/^\n// |
4850 | + s/\n/ /g |
4851 | + p |
4852 | +} |
4853 | +' |
4854 | +DEFS=`sed -n "$ac_script" confdefs.h` |
4855 | |
4856 | |
4857 | ac_libobjs= |
4858 | ac_ltlibobjs= |
4859 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4860 | # 1. Remove the extension, and $U if already installed. |
4861 | - ac_i=`echo "$ac_i" | |
4862 | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
4863 | - # 2. Add them. |
4864 | - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
4865 | - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
4866 | + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4867 | + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
4868 | + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
4869 | + # will be set to the directory where LIBOBJS objects are built. |
4870 | + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
4871 | + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
4872 | done |
4873 | LIBOBJS=$ac_libobjs |
4874 | |
4875 | @@ -2781,26 +3211,22 @@ |
4876 | |
4877 | |
4878 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
4879 | - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
4880 | -Usually this means the macro was only invoked conditionally." >&5 |
4881 | -echo "$as_me: error: conditional \"AMDEP\" was never defined. |
4882 | -Usually this means the macro was only invoked conditionally." >&2;} |
4883 | - { (exit 1); exit 1; }; } |
4884 | + as_fn_error "conditional \"AMDEP\" was never defined. |
4885 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4886 | fi |
4887 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
4888 | - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
4889 | -Usually this means the macro was only invoked conditionally." >&5 |
4890 | -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
4891 | -Usually this means the macro was only invoked conditionally." >&2;} |
4892 | - { (exit 1); exit 1; }; } |
4893 | + as_fn_error "conditional \"am__fastdepCC\" was never defined. |
4894 | +Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4895 | fi |
4896 | |
4897 | : ${CONFIG_STATUS=./config.status} |
4898 | +ac_write_fail=0 |
4899 | ac_clean_files_save=$ac_clean_files |
4900 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
4901 | -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
4902 | -echo "$as_me: creating $CONFIG_STATUS" >&6;} |
4903 | -cat >$CONFIG_STATUS <<_ACEOF |
4904 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4905 | +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
4906 | +as_write_fail=0 |
4907 | +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
4908 | #! $SHELL |
4909 | # Generated by $as_me. |
4910 | # Run this file to recreate the current configuration. |
4911 | @@ -2810,80 +3236,252 @@ |
4912 | debug=false |
4913 | ac_cs_recheck=false |
4914 | ac_cs_silent=false |
4915 | + |
4916 | SHELL=\${CONFIG_SHELL-$SHELL} |
4917 | -_ACEOF |
4918 | - |
4919 | -cat >>$CONFIG_STATUS <<\_ACEOF |
4920 | -## --------------------- ## |
4921 | -## M4sh Initialization. ## |
4922 | -## --------------------- ## |
4923 | - |
4924 | -# Be Bourne compatible |
4925 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
4926 | +export SHELL |
4927 | +_ASEOF |
4928 | +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
4929 | +## -------------------- ## |
4930 | +## M4sh Initialization. ## |
4931 | +## -------------------- ## |
4932 | + |
4933 | +# Be more Bourne compatible |
4934 | +DUALCASE=1; export DUALCASE # for MKS sh |
4935 | +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
4936 | emulate sh |
4937 | NULLCMD=: |
4938 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
4939 | + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4940 | # is contrary to our usage. Disable this feature. |
4941 | alias -g '${1+"$@"}'='"$@"' |
4942 | -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
4943 | - set -o posix |
4944 | -fi |
4945 | - |
4946 | -# Support unset when possible. |
4947 | -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
4948 | - as_unset=unset |
4949 | -else |
4950 | - as_unset=false |
4951 | -fi |
4952 | - |
4953 | - |
4954 | -# Work around bugs in pre-3.0 UWIN ksh. |
4955 | -$as_unset ENV MAIL MAILPATH |
4956 | + setopt NO_GLOB_SUBST |
4957 | +else |
4958 | + case `(set -o) 2>/dev/null` in #( |
4959 | + *posix*) : |
4960 | + set -o posix ;; #( |
4961 | + *) : |
4962 | + ;; |
4963 | +esac |
4964 | +fi |
4965 | + |
4966 | + |
4967 | +as_nl=' |
4968 | +' |
4969 | +export as_nl |
4970 | +# Printing a long string crashes Solaris 7 /usr/bin/printf. |
4971 | +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4972 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
4973 | +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
4974 | +# Prefer a ksh shell builtin over an external printf program on Solaris, |
4975 | +# but without wasting forks for bash or zsh. |
4976 | +if test -z "$BASH_VERSION$ZSH_VERSION" \ |
4977 | + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
4978 | + as_echo='print -r --' |
4979 | + as_echo_n='print -rn --' |
4980 | +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
4981 | + as_echo='printf %s\n' |
4982 | + as_echo_n='printf %s' |
4983 | +else |
4984 | + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
4985 | + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
4986 | + as_echo_n='/usr/ucb/echo -n' |
4987 | + else |
4988 | + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
4989 | + as_echo_n_body='eval |
4990 | + arg=$1; |
4991 | + case $arg in #( |
4992 | + *"$as_nl"*) |
4993 | + expr "X$arg" : "X\\(.*\\)$as_nl"; |
4994 | + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
4995 | + esac; |
4996 | + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
4997 | + ' |
4998 | + export as_echo_n_body |
4999 | + as_echo_n='sh -c $as_echo_n_body as_echo' |
5000 | + fi |
The diff has been truncated for viewing.
Merge from Debian. Needed for a few Haskell packages that rely on the behaviour introduced in 0.4.59.