Merge lp:~crtmike/gtkhotkey/gtkhotkey into lp:gtkhotkey/0.2
- gtkhotkey
- Merge into gtkhotkey-0.2
Proposed by
Mike Manilone
Status: | Needs review |
---|---|
Proposed branch: | lp:~crtmike/gtkhotkey/gtkhotkey |
Merge into: | lp:gtkhotkey/0.2 |
Diff against target: |
80504 lines (+80248/-25) 23 files modified
Makefile.in (+968/-0) aclocal.m4 (+10624/-0) autom4te.cache/output.0 (+17090/-0) autom4te.cache/output.1 (+17086/-0) autom4te.cache/requests (+321/-0) autom4te.cache/traces.0 (+3227/-0) autom4te.cache/traces.1 (+985/-0) config.h.in (+83/-0) configure (+17086/-0) configure.ac (+3/-3) doc/Makefile.in (+676/-0) doc/reference/Makefile.in (+753/-0) gtkhotkey-1.0.pc.in (+1/-1) ltmain.sh (+9706/-0) mkinstalldirs (+162/-0) po/Makefile.in.in (+11/-6) src/Makefile.in (+794/-0) src/gtk-hotkey-error.h (+1/-1) src/x11/eggaccelerators.c (+9/-9) src/x11/eggaccelerators.h (+1/-2) src/x11/tomboykeybinder.c (+2/-2) src/x11/tomboykeybinder.h (+1/-1) test/Makefile.in (+658/-0) |
To merge this branch: | bzr merge lp:~crtmike/gtkhotkey/gtkhotkey |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen | Pending | ||
Review via email: mp+123212@code.launchpad.net |
Commit message
Description of the change
A Working GTK+3 port.
To post a comment you must log in.
Unmerged revisions
- 55. By Mike Manilone
-
0.2.1 -> 0.2.10, GTK+ 3 ported
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified symlink 'INSTALL' |
2 | === target changed '/usr/share/automake-1.10/INSTALL' => u'/usr/local/share/automake-1.12/INSTALL' |
3 | === added file 'Makefile.in' |
4 | --- Makefile.in 1970-01-01 00:00:00 +0000 |
5 | +++ Makefile.in 2012-09-07 05:45:23 +0000 |
6 | @@ -0,0 +1,968 @@ |
7 | +# Makefile.in generated by automake 1.12.3 from Makefile.am. |
8 | +# @configure_input@ |
9 | + |
10 | +# Copyright (C) 1994-2012 Free Software Foundation, Inc. |
11 | + |
12 | +# This Makefile.in is free software; the Free Software Foundation |
13 | +# gives unlimited permission to copy and/or distribute it, |
14 | +# with or without modifications, as long as this notice is preserved. |
15 | + |
16 | +# This program is distributed in the hope that it will be useful, |
17 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
18 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
19 | +# PARTICULAR PURPOSE. |
20 | + |
21 | +@SET_MAKE@ |
22 | + |
23 | +# GLIB - Library of useful C routines |
24 | +# |
25 | +# This file is copied almost verbatim from the GLib-2.0 distribution |
26 | +# |
27 | + |
28 | +VPATH = @srcdir@ |
29 | +am__make_dryrun = \ |
30 | + { \ |
31 | + am__dry=no; \ |
32 | + case $$MAKEFLAGS in \ |
33 | + *\\[\ \ ]*) \ |
34 | + echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ |
35 | + | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ |
36 | + *) \ |
37 | + for am__flg in $$MAKEFLAGS; do \ |
38 | + case $$am__flg in \ |
39 | + *=*|--*) ;; \ |
40 | + *n*) am__dry=yes; break;; \ |
41 | + esac; \ |
42 | + done;; \ |
43 | + esac; \ |
44 | + test $$am__dry = yes; \ |
45 | + } |
46 | +pkgdatadir = $(datadir)/@PACKAGE@ |
47 | +pkgincludedir = $(includedir)/@PACKAGE@ |
48 | +pkglibdir = $(libdir)/@PACKAGE@ |
49 | +pkglibexecdir = $(libexecdir)/@PACKAGE@ |
50 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
51 | +install_sh_DATA = $(install_sh) -c -m 644 |
52 | +install_sh_PROGRAM = $(install_sh) -c |
53 | +install_sh_SCRIPT = $(install_sh) -c |
54 | +INSTALL_HEADER = $(INSTALL_DATA) |
55 | +transform = $(program_transform_name) |
56 | +NORMAL_INSTALL = : |
57 | +PRE_INSTALL = : |
58 | +POST_INSTALL = : |
59 | +NORMAL_UNINSTALL = : |
60 | +PRE_UNINSTALL = : |
61 | +POST_UNINSTALL = : |
62 | +build_triplet = @build@ |
63 | +host_triplet = @host@ |
64 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
65 | + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
66 | + $(srcdir)/gtkhotkey-1.0.pc.in $(top_srcdir)/Makefile.decl \ |
67 | + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ |
68 | + config.guess config.sub depcomp install-sh ltmain.sh missing \ |
69 | + mkinstalldirs |
70 | +subdir = . |
71 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
72 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
73 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
74 | + $(ACLOCAL_M4) |
75 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
76 | + configure.lineno config.status.lineno |
77 | +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
78 | +CONFIG_HEADER = config.h |
79 | +CONFIG_CLEAN_FILES = gtkhotkey-1.0.pc |
80 | +CONFIG_CLEAN_VPATH_FILES = |
81 | +SOURCES = |
82 | +DIST_SOURCES = |
83 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
84 | + html-recursive info-recursive install-data-recursive \ |
85 | + install-dvi-recursive install-exec-recursive \ |
86 | + install-html-recursive install-info-recursive \ |
87 | + install-pdf-recursive install-ps-recursive install-recursive \ |
88 | + installcheck-recursive installdirs-recursive pdf-recursive \ |
89 | + ps-recursive uninstall-recursive |
90 | +am__can_run_installinfo = \ |
91 | + case $$AM_UPDATE_INFO_DIR in \ |
92 | + n|no|NO) false;; \ |
93 | + *) (install-info --version) >/dev/null 2>&1;; \ |
94 | + esac |
95 | +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
96 | +am__vpath_adj = case $$p in \ |
97 | + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ |
98 | + *) f=$$p;; \ |
99 | + esac; |
100 | +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; |
101 | +am__install_max = 40 |
102 | +am__nobase_strip_setup = \ |
103 | + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` |
104 | +am__nobase_strip = \ |
105 | + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" |
106 | +am__nobase_list = $(am__nobase_strip_setup); \ |
107 | + for p in $$list; do echo "$$p $$p"; done | \ |
108 | + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ |
109 | + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ |
110 | + if (++n[$$2] == $(am__install_max)) \ |
111 | + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ |
112 | + END { for (dir in files) print dir, files[dir] }' |
113 | +am__base_list = \ |
114 | + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ |
115 | + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' |
116 | +am__uninstall_files_from_dir = { \ |
117 | + test -z "$$files" \ |
118 | + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ |
119 | + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ |
120 | + $(am__cd) "$$dir" && rm -f $$files; }; \ |
121 | + } |
122 | +am__installdirs = "$(DESTDIR)$(gtkhotkeydocdir)" \ |
123 | + "$(DESTDIR)$(pkgconfigdir)" |
124 | +DATA = $(gtkhotkeydoc_DATA) $(pkgconfig_DATA) |
125 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
126 | + distclean-recursive maintainer-clean-recursive |
127 | +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ |
128 | + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ |
129 | + cscope distdir dist dist-all distcheck |
130 | +ETAGS = etags |
131 | +CTAGS = ctags |
132 | +CSCOPE = cscope |
133 | +DIST_SUBDIRS = $(SUBDIRS) |
134 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
135 | +distdir = $(PACKAGE)-$(VERSION) |
136 | +top_distdir = $(distdir) |
137 | +am__remove_distdir = \ |
138 | + if test -d "$(distdir)"; then \ |
139 | + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ |
140 | + && rm -rf "$(distdir)" \ |
141 | + || { sleep 5 && rm -rf "$(distdir)"; }; \ |
142 | + else :; fi |
143 | +am__post_remove_distdir = $(am__remove_distdir) |
144 | +am__relativize = \ |
145 | + dir0=`pwd`; \ |
146 | + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
147 | + sed_rest='s,^[^/]*/*,,'; \ |
148 | + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ |
149 | + sed_butlast='s,/*[^/]*$$,,'; \ |
150 | + while test -n "$$dir1"; do \ |
151 | + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ |
152 | + if test "$$first" != "."; then \ |
153 | + if test "$$first" = ".."; then \ |
154 | + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ |
155 | + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ |
156 | + else \ |
157 | + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ |
158 | + if test "$$first2" = "$$first"; then \ |
159 | + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ |
160 | + else \ |
161 | + dir2="../$$dir2"; \ |
162 | + fi; \ |
163 | + dir0="$$dir0"/"$$first"; \ |
164 | + fi; \ |
165 | + fi; \ |
166 | + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ |
167 | + done; \ |
168 | + reldir="$$dir2" |
169 | +DIST_ARCHIVES = $(distdir).tar.gz |
170 | +GZIP_ENV = --best |
171 | +DIST_TARGETS = dist-gzip |
172 | +distuninstallcheck_listfiles = find . -type f -print |
173 | +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
174 | + | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
175 | +distcleancheck_listfiles = find . -type f -print |
176 | +ACLOCAL = @ACLOCAL@ |
177 | +ALL_LINGUAS = @ALL_LINGUAS@ |
178 | +AMTAR = @AMTAR@ |
179 | +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ |
180 | +AR = @AR@ |
181 | +AUTOCONF = @AUTOCONF@ |
182 | +AUTOHEADER = @AUTOHEADER@ |
183 | +AUTOMAKE = @AUTOMAKE@ |
184 | +AWK = @AWK@ |
185 | +CATALOGS = @CATALOGS@ |
186 | +CATOBJEXT = @CATOBJEXT@ |
187 | +CC = @CC@ |
188 | +CCDEPMODE = @CCDEPMODE@ |
189 | +CFLAGS = @CFLAGS@ |
190 | +CPP = @CPP@ |
191 | +CPPFLAGS = @CPPFLAGS@ |
192 | +CYGPATH_W = @CYGPATH_W@ |
193 | +DATADIRNAME = @DATADIRNAME@ |
194 | +DEFS = @DEFS@ |
195 | +DEPDIR = @DEPDIR@ |
196 | +DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc |
197 | +DLLTOOL = @DLLTOOL@ |
198 | +DSYMUTIL = @DSYMUTIL@ |
199 | +DUMPBIN = @DUMPBIN@ |
200 | +ECHO_C = @ECHO_C@ |
201 | +ECHO_N = @ECHO_N@ |
202 | +ECHO_T = @ECHO_T@ |
203 | +EGREP = @EGREP@ |
204 | +EXEEXT = @EXEEXT@ |
205 | +FGREP = @FGREP@ |
206 | +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
207 | +GMOFILES = @GMOFILES@ |
208 | +GMSGFMT = @GMSGFMT@ |
209 | +GREP = @GREP@ |
210 | +GTKDOC_CHECK = @GTKDOC_CHECK@ |
211 | +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ |
212 | +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ |
213 | +GTKDOC_MKPDF = @GTKDOC_MKPDF@ |
214 | +GTKDOC_REBASE = @GTKDOC_REBASE@ |
215 | +GTK_HOTKEY_AGE = @GTK_HOTKEY_AGE@ |
216 | +GTK_HOTKEY_CFLAGS = @GTK_HOTKEY_CFLAGS@ |
217 | +GTK_HOTKEY_CURRENT = @GTK_HOTKEY_CURRENT@ |
218 | +GTK_HOTKEY_LIBS = @GTK_HOTKEY_LIBS@ |
219 | +GTK_HOTKEY_REVISION = @GTK_HOTKEY_REVISION@ |
220 | +HTML_DIR = @HTML_DIR@ |
221 | +INSTALL = @INSTALL@ |
222 | +INSTALL_DATA = @INSTALL_DATA@ |
223 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
224 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
225 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
226 | +INSTOBJEXT = @INSTOBJEXT@ |
227 | +INTLLIBS = @INTLLIBS@ |
228 | +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ |
229 | +INTLTOOL_MERGE = @INTLTOOL_MERGE@ |
230 | +INTLTOOL_PERL = @INTLTOOL_PERL@ |
231 | +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ |
232 | +INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ |
233 | +INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ |
234 | +INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ |
235 | +INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ |
236 | +LD = @LD@ |
237 | +LDFLAGS = @LDFLAGS@ |
238 | +LIBOBJS = @LIBOBJS@ |
239 | +LIBS = @LIBS@ |
240 | +LIBTOOL = @LIBTOOL@ |
241 | +LIPO = @LIPO@ |
242 | +LN_S = @LN_S@ |
243 | +LTLIBOBJS = @LTLIBOBJS@ |
244 | +MAINT = @MAINT@ |
245 | +MAKEINFO = @MAKEINFO@ |
246 | +MANIFEST_TOOL = @MANIFEST_TOOL@ |
247 | +MKDIR_P = @MKDIR_P@ |
248 | +MKINSTALLDIRS = @MKINSTALLDIRS@ |
249 | +MSGFMT = @MSGFMT@ |
250 | +MSGFMT_OPTS = @MSGFMT_OPTS@ |
251 | +MSGMERGE = @MSGMERGE@ |
252 | +NM = @NM@ |
253 | +NMEDIT = @NMEDIT@ |
254 | +OBJDUMP = @OBJDUMP@ |
255 | +OBJEXT = @OBJEXT@ |
256 | +OTOOL = @OTOOL@ |
257 | +OTOOL64 = @OTOOL64@ |
258 | +PACKAGE = @PACKAGE@ |
259 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
260 | +PACKAGE_NAME = @PACKAGE_NAME@ |
261 | +PACKAGE_STRING = @PACKAGE_STRING@ |
262 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
263 | +PACKAGE_URL = @PACKAGE_URL@ |
264 | +PACKAGE_VERSION = @PACKAGE_VERSION@ |
265 | +PATH_SEPARATOR = @PATH_SEPARATOR@ |
266 | +PKG_CONFIG = @PKG_CONFIG@ |
267 | +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ |
268 | +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ |
269 | +POFILES = @POFILES@ |
270 | +POSUB = @POSUB@ |
271 | +PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
272 | +PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ |
273 | +RANLIB = @RANLIB@ |
274 | +SED = @SED@ |
275 | +SET_MAKE = @SET_MAKE@ |
276 | +SHELL = @SHELL@ |
277 | +STRIP = @STRIP@ |
278 | +USE_NLS = @USE_NLS@ |
279 | +VERSION = @VERSION@ |
280 | +XGETTEXT = @XGETTEXT@ |
281 | +abs_builddir = @abs_builddir@ |
282 | +abs_srcdir = @abs_srcdir@ |
283 | +abs_top_builddir = @abs_top_builddir@ |
284 | +abs_top_srcdir = @abs_top_srcdir@ |
285 | +ac_ct_AR = @ac_ct_AR@ |
286 | +ac_ct_CC = @ac_ct_CC@ |
287 | +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
288 | +am__include = @am__include@ |
289 | +am__leading_dot = @am__leading_dot@ |
290 | +am__quote = @am__quote@ |
291 | +am__tar = @am__tar@ |
292 | +am__untar = @am__untar@ |
293 | +bindir = @bindir@ |
294 | +build = @build@ |
295 | +build_alias = @build_alias@ |
296 | +build_cpu = @build_cpu@ |
297 | +build_os = @build_os@ |
298 | +build_vendor = @build_vendor@ |
299 | +builddir = @builddir@ |
300 | +datadir = @datadir@ |
301 | +datarootdir = @datarootdir@ |
302 | +docdir = @docdir@ |
303 | +dvidir = @dvidir@ |
304 | +exec_prefix = @exec_prefix@ |
305 | +host = @host@ |
306 | +host_alias = @host_alias@ |
307 | +host_cpu = @host_cpu@ |
308 | +host_os = @host_os@ |
309 | +host_vendor = @host_vendor@ |
310 | +htmldir = @htmldir@ |
311 | +includedir = @includedir@ |
312 | +infodir = @infodir@ |
313 | +install_sh = @install_sh@ |
314 | +intltool__v_merge_options_ = @intltool__v_merge_options_@ |
315 | +intltool__v_merge_options_0 = @intltool__v_merge_options_0@ |
316 | +libdir = @libdir@ |
317 | +libexecdir = @libexecdir@ |
318 | +localedir = @localedir@ |
319 | +localstatedir = @localstatedir@ |
320 | +mandir = @mandir@ |
321 | +mkdir_p = @mkdir_p@ |
322 | +oldincludedir = @oldincludedir@ |
323 | +pdfdir = @pdfdir@ |
324 | +prefix = @prefix@ |
325 | +program_transform_name = @program_transform_name@ |
326 | +psdir = @psdir@ |
327 | +sbindir = @sbindir@ |
328 | +sharedstatedir = @sharedstatedir@ |
329 | +srcdir = @srcdir@ |
330 | +sysconfdir = @sysconfdir@ |
331 | +target_alias = @target_alias@ |
332 | +top_build_prefix = @top_build_prefix@ |
333 | +top_builddir = @top_builddir@ |
334 | +top_srcdir = @top_srcdir@ |
335 | +NULL = |
336 | +GTESTER = gtester # for non-GLIB packages |
337 | +GTESTER_REPORT = $(top_builddir)/test/gtk_hotkey_report |
338 | + |
339 | +# initialize variables for unconditional += appending |
340 | +EXTRA_DIST = $(gtkhotkeydoc_DATA) intltool-extract.in \ |
341 | + intltool-merge.in intltool-update.in gtkhotkey-1.0.pc.in \ |
342 | + $(NULL) |
343 | +TEST_PROGS = |
344 | + |
345 | +# gtest definitions |
346 | +SUBDIRS = src po test doc |
347 | +pkgconfigdir = $(libdir)/pkgconfig |
348 | +pkgconfig_DATA = gtkhotkey-1.0.pc |
349 | +gtkhotkeydocdir = ${prefix}/doc/gtkhotkey |
350 | +gtkhotkeydoc_DATA = \ |
351 | + README \ |
352 | + COPYING \ |
353 | + AUTHORS \ |
354 | + INSTALL \ |
355 | + doc/gpl-3.0.txt \ |
356 | + NEWS |
357 | + |
358 | +DISTCLEANFILES = \ |
359 | + intltool-extract \ |
360 | + intltool-merge \ |
361 | + intltool-update \ |
362 | + $(NULL) |
363 | + |
364 | +all: config.h |
365 | + $(MAKE) $(AM_MAKEFLAGS) all-recursive |
366 | + |
367 | +.SUFFIXES: |
368 | +am--refresh: Makefile |
369 | + @: |
370 | +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.decl $(am__configure_deps) |
371 | + @for dep in $?; do \ |
372 | + case '$(am__configure_deps)' in \ |
373 | + *$$dep*) \ |
374 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ |
375 | + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ |
376 | + && exit 0; \ |
377 | + exit 1;; \ |
378 | + esac; \ |
379 | + done; \ |
380 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ |
381 | + $(am__cd) $(top_srcdir) && \ |
382 | + $(AUTOMAKE) --gnu Makefile |
383 | +.PRECIOUS: Makefile |
384 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
385 | + @case '$?' in \ |
386 | + *config.status*) \ |
387 | + echo ' $(SHELL) ./config.status'; \ |
388 | + $(SHELL) ./config.status;; \ |
389 | + *) \ |
390 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ |
391 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ |
392 | + esac; |
393 | +$(top_srcdir)/Makefile.decl: |
394 | + |
395 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
396 | + $(SHELL) ./config.status --recheck |
397 | + |
398 | +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
399 | + $(am__cd) $(srcdir) && $(AUTOCONF) |
400 | +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) |
401 | + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
402 | +$(am__aclocal_m4_deps): |
403 | + |
404 | +config.h: stamp-h1 |
405 | + @if test ! -f $@; then rm -f stamp-h1; else :; fi |
406 | + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi |
407 | + |
408 | +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
409 | + @rm -f stamp-h1 |
410 | + cd $(top_builddir) && $(SHELL) ./config.status config.h |
411 | +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) |
412 | + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) |
413 | + rm -f stamp-h1 |
414 | + touch $@ |
415 | + |
416 | +distclean-hdr: |
417 | + -rm -f config.h stamp-h1 |
418 | +gtkhotkey-1.0.pc: $(top_builddir)/config.status $(srcdir)/gtkhotkey-1.0.pc.in |
419 | + cd $(top_builddir) && $(SHELL) ./config.status $@ |
420 | + |
421 | +mostlyclean-libtool: |
422 | + -rm -f *.lo |
423 | + |
424 | +clean-libtool: |
425 | + -rm -rf .libs _libs |
426 | + |
427 | +distclean-libtool: |
428 | + -rm -f libtool config.lt |
429 | +install-gtkhotkeydocDATA: $(gtkhotkeydoc_DATA) |
430 | + @$(NORMAL_INSTALL) |
431 | + @list='$(gtkhotkeydoc_DATA)'; test -n "$(gtkhotkeydocdir)" || list=; \ |
432 | + if test -n "$$list"; then \ |
433 | + echo " $(MKDIR_P) '$(DESTDIR)$(gtkhotkeydocdir)'"; \ |
434 | + $(MKDIR_P) "$(DESTDIR)$(gtkhotkeydocdir)" || exit 1; \ |
435 | + fi; \ |
436 | + for p in $$list; do \ |
437 | + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
438 | + echo "$$d$$p"; \ |
439 | + done | $(am__base_list) | \ |
440 | + while read files; do \ |
441 | + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gtkhotkeydocdir)'"; \ |
442 | + $(INSTALL_DATA) $$files "$(DESTDIR)$(gtkhotkeydocdir)" || exit $$?; \ |
443 | + done |
444 | + |
445 | +uninstall-gtkhotkeydocDATA: |
446 | + @$(NORMAL_UNINSTALL) |
447 | + @list='$(gtkhotkeydoc_DATA)'; test -n "$(gtkhotkeydocdir)" || list=; \ |
448 | + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
449 | + dir='$(DESTDIR)$(gtkhotkeydocdir)'; $(am__uninstall_files_from_dir) |
450 | +install-pkgconfigDATA: $(pkgconfig_DATA) |
451 | + @$(NORMAL_INSTALL) |
452 | + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ |
453 | + if test -n "$$list"; then \ |
454 | + echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ |
455 | + $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ |
456 | + fi; \ |
457 | + for p in $$list; do \ |
458 | + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
459 | + echo "$$d$$p"; \ |
460 | + done | $(am__base_list) | \ |
461 | + while read files; do \ |
462 | + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ |
463 | + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ |
464 | + done |
465 | + |
466 | +uninstall-pkgconfigDATA: |
467 | + @$(NORMAL_UNINSTALL) |
468 | + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ |
469 | + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
470 | + dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) |
471 | + |
472 | +# This directory's subdirectories are mostly independent; you can cd |
473 | +# into them and run 'make' without going through this Makefile. |
474 | +# To change the values of 'make' variables: instead of editing Makefiles, |
475 | +# (1) if the variable is set in 'config.status', edit 'config.status' |
476 | +# (which will cause the Makefiles to be regenerated when you run 'make'); |
477 | +# (2) otherwise, pass the desired values on the 'make' command line. |
478 | +$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): |
479 | + @fail= failcom='exit 1'; \ |
480 | + for f in x $$MAKEFLAGS; do \ |
481 | + case $$f in \ |
482 | + *=* | --[!k]*);; \ |
483 | + *k*) failcom='fail=yes';; \ |
484 | + esac; \ |
485 | + done; \ |
486 | + dot_seen=no; \ |
487 | + target=`echo $@ | sed s/-recursive//`; \ |
488 | + case "$@" in \ |
489 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
490 | + *) list='$(SUBDIRS)' ;; \ |
491 | + esac; \ |
492 | + for subdir in $$list; do \ |
493 | + echo "Making $$target in $$subdir"; \ |
494 | + if test "$$subdir" = "."; then \ |
495 | + dot_seen=yes; \ |
496 | + local_target="$$target-am"; \ |
497 | + else \ |
498 | + local_target="$$target"; \ |
499 | + fi; \ |
500 | + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
501 | + || eval $$failcom; \ |
502 | + done; \ |
503 | + if test "$$dot_seen" = "no"; then \ |
504 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
505 | + fi; test -z "$$fail" |
506 | +tags-recursive: |
507 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
508 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
509 | + done |
510 | +ctags-recursive: |
511 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
512 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ |
513 | + done |
514 | +cscopelist-recursive: |
515 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
516 | + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ |
517 | + done |
518 | + |
519 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
520 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
521 | + unique=`for i in $$list; do \ |
522 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
523 | + done | \ |
524 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
525 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
526 | + mkid -fID $$unique |
527 | +tags: TAGS |
528 | + |
529 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
530 | + $(TAGS_FILES) $(LISP) |
531 | + set x; \ |
532 | + here=`pwd`; \ |
533 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
534 | + include_option=--etags-include; \ |
535 | + empty_fix=.; \ |
536 | + else \ |
537 | + include_option=--include; \ |
538 | + empty_fix=; \ |
539 | + fi; \ |
540 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
541 | + if test "$$subdir" = .; then :; else \ |
542 | + test ! -f $$subdir/TAGS || \ |
543 | + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
544 | + fi; \ |
545 | + done; \ |
546 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
547 | + unique=`for i in $$list; do \ |
548 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
549 | + done | \ |
550 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
551 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
552 | + shift; \ |
553 | + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
554 | + test -n "$$unique" || unique=$$empty_fix; \ |
555 | + if test $$# -gt 0; then \ |
556 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
557 | + "$$@" $$unique; \ |
558 | + else \ |
559 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
560 | + $$unique; \ |
561 | + fi; \ |
562 | + fi |
563 | +ctags: CTAGS |
564 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
565 | + $(TAGS_FILES) $(LISP) |
566 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
567 | + unique=`for i in $$list; do \ |
568 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
569 | + done | \ |
570 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
571 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
572 | + test -z "$(CTAGS_ARGS)$$unique" \ |
573 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
574 | + $$unique |
575 | + |
576 | +GTAGS: |
577 | + here=`$(am__cd) $(top_builddir) && pwd` \ |
578 | + && $(am__cd) $(top_srcdir) \ |
579 | + && gtags -i $(GTAGS_ARGS) "$$here" |
580 | + |
581 | +cscope: cscope.files |
582 | + test ! -s cscope.files \ |
583 | + || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) |
584 | + |
585 | +clean-cscope: |
586 | + -rm -f cscope.files |
587 | + |
588 | +cscope.files: clean-cscope cscopelist-recursive cscopelist |
589 | + |
590 | +cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) |
591 | + list='$(SOURCES) $(HEADERS) $(LISP)'; \ |
592 | + case "$(srcdir)" in \ |
593 | + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ |
594 | + *) sdir=$(subdir)/$(srcdir) ;; \ |
595 | + esac; \ |
596 | + for i in $$list; do \ |
597 | + if test -f "$$i"; then \ |
598 | + echo "$(subdir)/$$i"; \ |
599 | + else \ |
600 | + echo "$$sdir/$$i"; \ |
601 | + fi; \ |
602 | + done >> $(top_builddir)/cscope.files |
603 | + |
604 | +distclean-tags: |
605 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
606 | + -rm -f cscope.out cscope.in.out cscope.po.out cscope.files |
607 | + |
608 | +distdir: $(DISTFILES) |
609 | + $(am__remove_distdir) |
610 | + test -d "$(distdir)" || mkdir "$(distdir)" |
611 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
612 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
613 | + list='$(DISTFILES)'; \ |
614 | + dist_files=`for file in $$list; do echo $$file; done | \ |
615 | + sed -e "s|^$$srcdirstrip/||;t" \ |
616 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
617 | + case $$dist_files in \ |
618 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ |
619 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ |
620 | + sort -u` ;; \ |
621 | + esac; \ |
622 | + for file in $$dist_files; do \ |
623 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
624 | + if test -d $$d/$$file; then \ |
625 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ |
626 | + if test -d "$(distdir)/$$file"; then \ |
627 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
628 | + fi; \ |
629 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
630 | + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ |
631 | + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ |
632 | + fi; \ |
633 | + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ |
634 | + else \ |
635 | + test -f "$(distdir)/$$file" \ |
636 | + || cp -p $$d/$$file "$(distdir)/$$file" \ |
637 | + || exit 1; \ |
638 | + fi; \ |
639 | + done |
640 | + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
641 | + if test "$$subdir" = .; then :; else \ |
642 | + $(am__make_dryrun) \ |
643 | + || test -d "$(distdir)/$$subdir" \ |
644 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ |
645 | + || exit 1; \ |
646 | + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ |
647 | + $(am__relativize); \ |
648 | + new_distdir=$$reldir; \ |
649 | + dir1=$$subdir; dir2="$(top_distdir)"; \ |
650 | + $(am__relativize); \ |
651 | + new_top_distdir=$$reldir; \ |
652 | + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ |
653 | + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ |
654 | + ($(am__cd) $$subdir && \ |
655 | + $(MAKE) $(AM_MAKEFLAGS) \ |
656 | + top_distdir="$$new_top_distdir" \ |
657 | + distdir="$$new_distdir" \ |
658 | + am__remove_distdir=: \ |
659 | + am__skip_length_check=: \ |
660 | + am__skip_mode_fix=: \ |
661 | + distdir) \ |
662 | + || exit 1; \ |
663 | + fi; \ |
664 | + done |
665 | + -test -n "$(am__skip_mode_fix)" \ |
666 | + || find "$(distdir)" -type d ! -perm -755 \ |
667 | + -exec chmod u+rwx,go+rx {} \; -o \ |
668 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
669 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
670 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
671 | + || chmod -R a+r "$(distdir)" |
672 | +dist-gzip: distdir |
673 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
674 | + $(am__post_remove_distdir) |
675 | + |
676 | +dist-bzip2: distdir |
677 | + tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
678 | + $(am__post_remove_distdir) |
679 | + |
680 | +dist-lzip: distdir |
681 | + tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
682 | + $(am__post_remove_distdir) |
683 | + |
684 | +dist-xz: distdir |
685 | + tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
686 | + $(am__post_remove_distdir) |
687 | + |
688 | +dist-tarZ: distdir |
689 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
690 | + $(am__post_remove_distdir) |
691 | + |
692 | +dist-shar: distdir |
693 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
694 | + $(am__post_remove_distdir) |
695 | + |
696 | +dist-zip: distdir |
697 | + -rm -f $(distdir).zip |
698 | + zip -rq $(distdir).zip $(distdir) |
699 | + $(am__post_remove_distdir) |
700 | + |
701 | +dist dist-all: |
702 | + $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' |
703 | + $(am__post_remove_distdir) |
704 | + |
705 | +# This target untars the dist file and tries a VPATH configuration. Then |
706 | +# it guarantees that the distribution is self-contained by making another |
707 | +# tarfile. |
708 | +distcheck: dist |
709 | + case '$(DIST_ARCHIVES)' in \ |
710 | + *.tar.gz*) \ |
711 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
712 | + *.tar.bz2*) \ |
713 | + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
714 | + *.tar.lz*) \ |
715 | + lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ |
716 | + *.tar.xz*) \ |
717 | + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
718 | + *.tar.Z*) \ |
719 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
720 | + *.shar.gz*) \ |
721 | + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ |
722 | + *.zip*) \ |
723 | + unzip $(distdir).zip ;;\ |
724 | + esac |
725 | + chmod -R a-w $(distdir) |
726 | + chmod u+w $(distdir) |
727 | + mkdir $(distdir)/_build $(distdir)/_inst |
728 | + chmod a-w $(distdir) |
729 | + test -d $(distdir)/_build || exit 0; \ |
730 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
731 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
732 | + && am__cwd=`pwd` \ |
733 | + && $(am__cd) $(distdir)/_build \ |
734 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
735 | + $(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
736 | + $(DISTCHECK_CONFIGURE_FLAGS) \ |
737 | + && $(MAKE) $(AM_MAKEFLAGS) \ |
738 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
739 | + && $(MAKE) $(AM_MAKEFLAGS) check \ |
740 | + && $(MAKE) $(AM_MAKEFLAGS) install \ |
741 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
742 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
743 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ |
744 | + distuninstallcheck \ |
745 | + && chmod -R a-w "$$dc_install_base" \ |
746 | + && ({ \ |
747 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ |
748 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ |
749 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ |
750 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ |
751 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ |
752 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ |
753 | + && rm -rf "$$dc_destdir" \ |
754 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ |
755 | + && rm -rf $(DIST_ARCHIVES) \ |
756 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
757 | + && cd "$$am__cwd" \ |
758 | + || exit 1 |
759 | + $(am__post_remove_distdir) |
760 | + @(echo "$(distdir) archives ready for distribution: "; \ |
761 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
762 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
763 | +distuninstallcheck: |
764 | + @test -n '$(distuninstallcheck_dir)' || { \ |
765 | + echo 'ERROR: trying to run $@ with an empty' \ |
766 | + '$$(distuninstallcheck_dir)' >&2; \ |
767 | + exit 1; \ |
768 | + }; \ |
769 | + $(am__cd) '$(distuninstallcheck_dir)' || { \ |
770 | + echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ |
771 | + exit 1; \ |
772 | + }; \ |
773 | + test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ |
774 | + || { echo "ERROR: files left after uninstall:" ; \ |
775 | + if test -n "$(DESTDIR)"; then \ |
776 | + echo " (check DESTDIR support)"; \ |
777 | + fi ; \ |
778 | + $(distuninstallcheck_listfiles) ; \ |
779 | + exit 1; } >&2 |
780 | +distcleancheck: distclean |
781 | + @if test '$(srcdir)' = . ; then \ |
782 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ |
783 | + exit 1 ; \ |
784 | + fi |
785 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ |
786 | + || { echo "ERROR: files left in build directory after distclean:" ; \ |
787 | + $(distcleancheck_listfiles) ; \ |
788 | + exit 1; } >&2 |
789 | +check-am: all-am |
790 | + $(MAKE) $(AM_MAKEFLAGS) check-local |
791 | +check: check-recursive |
792 | +all-am: Makefile $(DATA) config.h |
793 | +installdirs: installdirs-recursive |
794 | +installdirs-am: |
795 | + for dir in "$(DESTDIR)$(gtkhotkeydocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \ |
796 | + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ |
797 | + done |
798 | +install: install-recursive |
799 | +install-exec: install-exec-recursive |
800 | +install-data: install-data-recursive |
801 | +uninstall: uninstall-recursive |
802 | + |
803 | +install-am: all-am |
804 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
805 | + |
806 | +installcheck: installcheck-recursive |
807 | +install-strip: |
808 | + if test -z '$(STRIP)'; then \ |
809 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
810 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
811 | + install; \ |
812 | + else \ |
813 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
814 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
815 | + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ |
816 | + fi |
817 | +mostlyclean-generic: |
818 | + |
819 | +clean-generic: |
820 | + |
821 | +distclean-generic: |
822 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
823 | + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) |
824 | + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) |
825 | + |
826 | +maintainer-clean-generic: |
827 | + @echo "This command is intended for maintainers to use" |
828 | + @echo "it deletes files that may require special tools to rebuild." |
829 | +clean: clean-recursive |
830 | + |
831 | +clean-am: clean-generic clean-libtool mostlyclean-am |
832 | + |
833 | +distclean: distclean-recursive |
834 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
835 | + -rm -f Makefile |
836 | +distclean-am: clean-am distclean-generic distclean-hdr \ |
837 | + distclean-libtool distclean-tags |
838 | + |
839 | +dvi: dvi-recursive |
840 | + |
841 | +dvi-am: |
842 | + |
843 | +html: html-recursive |
844 | + |
845 | +html-am: |
846 | + |
847 | +info: info-recursive |
848 | + |
849 | +info-am: |
850 | + |
851 | +install-data-am: install-gtkhotkeydocDATA install-pkgconfigDATA |
852 | + |
853 | +install-dvi: install-dvi-recursive |
854 | + |
855 | +install-dvi-am: |
856 | + |
857 | +install-exec-am: |
858 | + |
859 | +install-html: install-html-recursive |
860 | + |
861 | +install-html-am: |
862 | + |
863 | +install-info: install-info-recursive |
864 | + |
865 | +install-info-am: |
866 | + |
867 | +install-man: |
868 | + |
869 | +install-pdf: install-pdf-recursive |
870 | + |
871 | +install-pdf-am: |
872 | + |
873 | +install-ps: install-ps-recursive |
874 | + |
875 | +install-ps-am: |
876 | + |
877 | +installcheck-am: |
878 | + |
879 | +maintainer-clean: maintainer-clean-recursive |
880 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
881 | + -rm -rf $(top_srcdir)/autom4te.cache |
882 | + -rm -f Makefile |
883 | +maintainer-clean-am: distclean-am maintainer-clean-generic |
884 | + |
885 | +mostlyclean: mostlyclean-recursive |
886 | + |
887 | +mostlyclean-am: mostlyclean-generic mostlyclean-libtool |
888 | + |
889 | +pdf: pdf-recursive |
890 | + |
891 | +pdf-am: |
892 | + |
893 | +ps: ps-recursive |
894 | + |
895 | +ps-am: |
896 | + |
897 | +uninstall-am: uninstall-gtkhotkeydocDATA uninstall-pkgconfigDATA |
898 | + |
899 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check-am \ |
900 | + cscopelist-recursive ctags-recursive install-am install-strip \ |
901 | + tags-recursive |
902 | + |
903 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
904 | + all all-am am--refresh check check-am check-local clean \ |
905 | + clean-cscope clean-generic clean-libtool cscope cscopelist \ |
906 | + cscopelist-recursive ctags ctags-recursive dist dist-all \ |
907 | + dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz \ |
908 | + dist-zip distcheck distclean distclean-generic distclean-hdr \ |
909 | + distclean-libtool distclean-tags distcleancheck distdir \ |
910 | + distuninstallcheck dvi dvi-am html html-am info info-am \ |
911 | + install install-am install-data install-data-am install-dvi \ |
912 | + install-dvi-am install-exec install-exec-am \ |
913 | + install-gtkhotkeydocDATA install-html install-html-am \ |
914 | + install-info install-info-am install-man install-pdf \ |
915 | + install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ |
916 | + install-strip installcheck installcheck-am installdirs \ |
917 | + installdirs-am maintainer-clean maintainer-clean-generic \ |
918 | + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ |
919 | + ps ps-am tags tags-recursive uninstall uninstall-am \ |
920 | + uninstall-gtkhotkeydocDATA uninstall-pkgconfigDATA |
921 | + |
922 | + |
923 | +### testing rules |
924 | + |
925 | +# test: run all tests in cwd and subdirs |
926 | +test: ${TEST_PROGS} |
927 | + @test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS} |
928 | + @ for subdir in $(SUBDIRS) ; do \ |
929 | + test "$$subdir" = "." -o "$$subdir" = "po" || \ |
930 | + ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ |
931 | + done |
932 | +# test-report: run tests in subdirs and generate report |
933 | +# perf-report: run tests in subdirs with -m perf and generate report |
934 | +# full-report: like test-report: with -m perf and -m slow |
935 | +test-report perf-report full-report: ${TEST_PROGS} |
936 | + @test -z "${TEST_PROGS}" || { \ |
937 | + case $@ in \ |
938 | + test-report) test_options="-k";; \ |
939 | + perf-report) test_options="-k -m=perf";; \ |
940 | + full-report) test_options="-k -m=perf -m=slow";; \ |
941 | + esac ; \ |
942 | + if test -z "$$GTESTER_LOGDIR" ; then \ |
943 | + ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \ |
944 | + elif test -n "${TEST_PROGS}" ; then \ |
945 | + ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \ |
946 | + fi ; \ |
947 | + } |
948 | + @ ignore_logdir=true ; \ |
949 | + if test -z "$$GTESTER_LOGDIR" ; then \ |
950 | + GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \ |
951 | + ignore_logdir=false ; \ |
952 | + fi ; \ |
953 | + for subdir in $(SUBDIRS) ; do \ |
954 | + test "$$subdir" = "." -o "$$subdir" = "po" || \ |
955 | + ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ |
956 | + done ; \ |
957 | + $$ignore_logdir || { \ |
958 | + echo '<?xml version="1.0"?>' > $@.xml ; \ |
959 | + echo '<report-collection>' >> $@.xml ; \ |
960 | + for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \ |
961 | + sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \ |
962 | + done ; \ |
963 | + echo >> $@.xml ; \ |
964 | + echo '</report-collection>' >> $@.xml ; \ |
965 | + rm -rf "$$GTESTER_LOGDIR"/ ; \ |
966 | + ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \ |
967 | + } |
968 | +.PHONY: test test-report perf-report full-report |
969 | +# run make test as part of make check |
970 | +check-local: test |
971 | + |
972 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. |
973 | +# Otherwise a system limit (for SysV at least) may be exceeded. |
974 | +.NOEXPORT: |
975 | |
976 | === added file 'aclocal.m4' |
977 | --- aclocal.m4 1970-01-01 00:00:00 +0000 |
978 | +++ aclocal.m4 2012-09-07 05:45:23 +0000 |
979 | @@ -0,0 +1,10624 @@ |
980 | +# generated automatically by aclocal 1.12.3 -*- Autoconf -*- |
981 | + |
982 | +# Copyright (C) 1996-2012 Free Software Foundation, Inc. |
983 | + |
984 | +# This file is free software; the Free Software Foundation |
985 | +# gives unlimited permission to copy and/or distribute it, |
986 | +# with or without modifications, as long as this notice is preserved. |
987 | + |
988 | +# This program is distributed in the hope that it will be useful, |
989 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
990 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
991 | +# PARTICULAR PURPOSE. |
992 | + |
993 | +m4_ifndef([AC_AUTOCONF_VERSION], |
994 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
995 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
996 | +[m4_warning([this file was generated for autoconf 2.69. |
997 | +You have another version of autoconf. It may work, but is not guaranteed to. |
998 | +If you have problems, you may need to regenerate the build system entirely. |
999 | +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
1000 | + |
1001 | +# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
1002 | +# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
1003 | +# |
1004 | +# This file is free software, distributed under the terms of the GNU |
1005 | +# General Public License. As a special exception to the GNU General |
1006 | +# Public License, this file may be distributed as part of a program |
1007 | +# that contains a configuration script generated by Autoconf, under |
1008 | +# the same distribution terms as the rest of that program. |
1009 | +# |
1010 | +# This file can be copied and used freely without restrictions. It can |
1011 | +# be used in projects which are not available under the GNU Public License |
1012 | +# but which still want to provide support for the GNU gettext functionality. |
1013 | +# |
1014 | +# Macro to add for using GNU gettext. |
1015 | +# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
1016 | +# |
1017 | +# Modified to never use included libintl. |
1018 | +# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
1019 | +# |
1020 | +# Major rework to remove unused code |
1021 | +# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
1022 | +# |
1023 | +# Added better handling of ALL_LINGUAS from GNU gettext version |
1024 | +# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
1025 | +# |
1026 | +# Modified to require ngettext |
1027 | +# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
1028 | +# |
1029 | +# We need this here as well, since someone might use autoconf-2.5x |
1030 | +# to configure GLib then an older version to configure a package |
1031 | +# using AM_GLIB_GNU_GETTEXT |
1032 | +AC_PREREQ(2.53) |
1033 | + |
1034 | +dnl |
1035 | +dnl We go to great lengths to make sure that aclocal won't |
1036 | +dnl try to pull in the installed version of these macros |
1037 | +dnl when running aclocal in the glib directory. |
1038 | +dnl |
1039 | +m4_copy([AC_DEFUN],[glib_DEFUN]) |
1040 | +m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
1041 | +dnl |
1042 | +dnl At the end, if we're not within glib, we'll define the public |
1043 | +dnl definitions in terms of our private definitions. |
1044 | +dnl |
1045 | + |
1046 | +# GLIB_LC_MESSAGES |
1047 | +#-------------------- |
1048 | +glib_DEFUN([GLIB_LC_MESSAGES], |
1049 | + [AC_CHECK_HEADERS([locale.h]) |
1050 | + if test $ac_cv_header_locale_h = yes; then |
1051 | + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
1052 | + [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
1053 | + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
1054 | + if test $am_cv_val_LC_MESSAGES = yes; then |
1055 | + AC_DEFINE(HAVE_LC_MESSAGES, 1, |
1056 | + [Define if your <locale.h> file defines LC_MESSAGES.]) |
1057 | + fi |
1058 | + fi]) |
1059 | + |
1060 | +# GLIB_PATH_PROG_WITH_TEST |
1061 | +#---------------------------- |
1062 | +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
1063 | +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
1064 | +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
1065 | +[# Extract the first word of "$2", so it can be a program name with args. |
1066 | +set dummy $2; ac_word=[$]2 |
1067 | +AC_MSG_CHECKING([for $ac_word]) |
1068 | +AC_CACHE_VAL(ac_cv_path_$1, |
1069 | +[case "[$]$1" in |
1070 | + /*) |
1071 | + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
1072 | + ;; |
1073 | + *) |
1074 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1075 | + for ac_dir in ifelse([$5], , $PATH, [$5]); do |
1076 | + test -z "$ac_dir" && ac_dir=. |
1077 | + if test -f $ac_dir/$ac_word; then |
1078 | + if [$3]; then |
1079 | + ac_cv_path_$1="$ac_dir/$ac_word" |
1080 | + break |
1081 | + fi |
1082 | + fi |
1083 | + done |
1084 | + IFS="$ac_save_ifs" |
1085 | +dnl If no 4th arg is given, leave the cache variable unset, |
1086 | +dnl so AC_PATH_PROGS will keep looking. |
1087 | +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
1088 | +])dnl |
1089 | + ;; |
1090 | +esac])dnl |
1091 | +$1="$ac_cv_path_$1" |
1092 | +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
1093 | + AC_MSG_RESULT([$]$1) |
1094 | +else |
1095 | + AC_MSG_RESULT(no) |
1096 | +fi |
1097 | +AC_SUBST($1)dnl |
1098 | +]) |
1099 | + |
1100 | +# GLIB_WITH_NLS |
1101 | +#----------------- |
1102 | +glib_DEFUN([GLIB_WITH_NLS], |
1103 | + dnl NLS is obligatory |
1104 | + [USE_NLS=yes |
1105 | + AC_SUBST(USE_NLS) |
1106 | + |
1107 | + gt_cv_have_gettext=no |
1108 | + |
1109 | + CATOBJEXT=NONE |
1110 | + XGETTEXT=: |
1111 | + INTLLIBS= |
1112 | + |
1113 | + AC_CHECK_HEADER(libintl.h, |
1114 | + [gt_cv_func_dgettext_libintl="no" |
1115 | + libintl_extra_libs="" |
1116 | + |
1117 | + # |
1118 | + # First check in libc |
1119 | + # |
1120 | + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, |
1121 | + [AC_TRY_LINK([ |
1122 | +#include <libintl.h> |
1123 | +], |
1124 | + [return !ngettext ("","", 1)], |
1125 | + gt_cv_func_ngettext_libc=yes, |
1126 | + gt_cv_func_ngettext_libc=no) |
1127 | + ]) |
1128 | + |
1129 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1130 | + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
1131 | + [AC_TRY_LINK([ |
1132 | +#include <libintl.h> |
1133 | +], |
1134 | + [return !dgettext ("","")], |
1135 | + gt_cv_func_dgettext_libc=yes, |
1136 | + gt_cv_func_dgettext_libc=no) |
1137 | + ]) |
1138 | + fi |
1139 | + |
1140 | + if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1141 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1142 | + fi |
1143 | + |
1144 | + # |
1145 | + # If we don't have everything we want, check in libintl |
1146 | + # |
1147 | + if test "$gt_cv_func_dgettext_libc" != "yes" \ |
1148 | + || test "$gt_cv_func_ngettext_libc" != "yes" \ |
1149 | + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
1150 | + |
1151 | + AC_CHECK_LIB(intl, bindtextdomain, |
1152 | + [AC_CHECK_LIB(intl, ngettext, |
1153 | + [AC_CHECK_LIB(intl, dgettext, |
1154 | + gt_cv_func_dgettext_libintl=yes)])]) |
1155 | + |
1156 | + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
1157 | + AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
1158 | + AC_MSG_RESULT([]) |
1159 | + AC_CHECK_LIB(intl, ngettext, |
1160 | + [AC_CHECK_LIB(intl, dcgettext, |
1161 | + [gt_cv_func_dgettext_libintl=yes |
1162 | + libintl_extra_libs=-liconv], |
1163 | + :,-liconv)], |
1164 | + :,-liconv) |
1165 | + fi |
1166 | + |
1167 | + # |
1168 | + # If we found libintl, then check in it for bind_textdomain_codeset(); |
1169 | + # we'll prefer libc if neither have bind_textdomain_codeset(), |
1170 | + # and both have dgettext and ngettext |
1171 | + # |
1172 | + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
1173 | + glib_save_LIBS="$LIBS" |
1174 | + LIBS="$LIBS -lintl $libintl_extra_libs" |
1175 | + unset ac_cv_func_bind_textdomain_codeset |
1176 | + AC_CHECK_FUNCS(bind_textdomain_codeset) |
1177 | + LIBS="$glib_save_LIBS" |
1178 | + |
1179 | + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
1180 | + gt_cv_func_dgettext_libc=no |
1181 | + else |
1182 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1183 | + && test "$gt_cv_func_ngettext_libc" = "yes"; then |
1184 | + gt_cv_func_dgettext_libintl=no |
1185 | + fi |
1186 | + fi |
1187 | + fi |
1188 | + fi |
1189 | + |
1190 | + if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1191 | + || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1192 | + gt_cv_have_gettext=yes |
1193 | + fi |
1194 | + |
1195 | + if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1196 | + INTLLIBS="-lintl $libintl_extra_libs" |
1197 | + fi |
1198 | + |
1199 | + if test "$gt_cv_have_gettext" = "yes"; then |
1200 | + AC_DEFINE(HAVE_GETTEXT,1, |
1201 | + [Define if the GNU gettext() function is already present or preinstalled.]) |
1202 | + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
1203 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
1204 | + if test "$MSGFMT" != "no"; then |
1205 | + glib_save_LIBS="$LIBS" |
1206 | + LIBS="$LIBS $INTLLIBS" |
1207 | + AC_CHECK_FUNCS(dcgettext) |
1208 | + MSGFMT_OPTS= |
1209 | + AC_MSG_CHECKING([if msgfmt accepts -c]) |
1210 | + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ |
1211 | +msgid "" |
1212 | +msgstr "" |
1213 | +"Content-Type: text/plain; charset=UTF-8\n" |
1214 | +"Project-Id-Version: test 1.0\n" |
1215 | +"PO-Revision-Date: 2007-02-15 12:01+0100\n" |
1216 | +"Last-Translator: test <foo@bar.xx>\n" |
1217 | +"Language-Team: C <LL@li.org>\n" |
1218 | +"MIME-Version: 1.0\n" |
1219 | +"Content-Transfer-Encoding: 8bit\n" |
1220 | +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) |
1221 | + AC_SUBST(MSGFMT_OPTS) |
1222 | + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1223 | + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
1224 | + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
1225 | + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
1226 | + return _nl_msg_cat_cntr], |
1227 | + [CATOBJEXT=.gmo |
1228 | + DATADIRNAME=share], |
1229 | + [case $host in |
1230 | + *-*-solaris*) |
1231 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
1232 | + dnl GNU format message catalog is always supported, |
1233 | + dnl since both are added to the libc all together. |
1234 | + dnl Hence, we'd like to go with DATADIRNAME=share and |
1235 | + dnl and CATOBJEXT=.gmo in this case. |
1236 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
1237 | + [CATOBJEXT=.gmo |
1238 | + DATADIRNAME=share], |
1239 | + [CATOBJEXT=.mo |
1240 | + DATADIRNAME=lib]) |
1241 | + ;; |
1242 | + *-*-openbsd*) |
1243 | + CATOBJEXT=.mo |
1244 | + DATADIRNAME=share |
1245 | + ;; |
1246 | + *) |
1247 | + CATOBJEXT=.mo |
1248 | + DATADIRNAME=lib |
1249 | + ;; |
1250 | + esac]) |
1251 | + LIBS="$glib_save_LIBS" |
1252 | + INSTOBJEXT=.mo |
1253 | + else |
1254 | + gt_cv_have_gettext=no |
1255 | + fi |
1256 | + fi |
1257 | + ]) |
1258 | + |
1259 | + if test "$gt_cv_have_gettext" = "yes" ; then |
1260 | + AC_DEFINE(ENABLE_NLS, 1, |
1261 | + [always defined to indicate that i18n is enabled]) |
1262 | + fi |
1263 | + |
1264 | + dnl Test whether we really found GNU xgettext. |
1265 | + if test "$XGETTEXT" != ":"; then |
1266 | + dnl If it is not GNU xgettext we define it as : so that the |
1267 | + dnl Makefiles still can work. |
1268 | + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
1269 | + : ; |
1270 | + else |
1271 | + AC_MSG_RESULT( |
1272 | + [found xgettext program is not GNU xgettext; ignore it]) |
1273 | + XGETTEXT=":" |
1274 | + fi |
1275 | + fi |
1276 | + |
1277 | + # We need to process the po/ directory. |
1278 | + POSUB=po |
1279 | + |
1280 | + AC_OUTPUT_COMMANDS( |
1281 | + [case "$CONFIG_FILES" in *po/Makefile.in*) |
1282 | + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
1283 | + esac]) |
1284 | + |
1285 | + dnl These rules are solely for the distribution goal. While doing this |
1286 | + dnl we only have to keep exactly one list of the available catalogs |
1287 | + dnl in configure.ac. |
1288 | + for lang in $ALL_LINGUAS; do |
1289 | + GMOFILES="$GMOFILES $lang.gmo" |
1290 | + POFILES="$POFILES $lang.po" |
1291 | + done |
1292 | + |
1293 | + dnl Make all variables we use known to autoconf. |
1294 | + AC_SUBST(CATALOGS) |
1295 | + AC_SUBST(CATOBJEXT) |
1296 | + AC_SUBST(DATADIRNAME) |
1297 | + AC_SUBST(GMOFILES) |
1298 | + AC_SUBST(INSTOBJEXT) |
1299 | + AC_SUBST(INTLLIBS) |
1300 | + AC_SUBST(PO_IN_DATADIR_TRUE) |
1301 | + AC_SUBST(PO_IN_DATADIR_FALSE) |
1302 | + AC_SUBST(POFILES) |
1303 | + AC_SUBST(POSUB) |
1304 | + ]) |
1305 | + |
1306 | +# AM_GLIB_GNU_GETTEXT |
1307 | +# ------------------- |
1308 | +# Do checks necessary for use of gettext. If a suitable implementation |
1309 | +# of gettext is found in either in libintl or in the C library, |
1310 | +# it will set INTLLIBS to the libraries needed for use of gettext |
1311 | +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
1312 | +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
1313 | +# on various variables needed by the Makefile.in.in installed by |
1314 | +# glib-gettextize. |
1315 | +dnl |
1316 | +glib_DEFUN([GLIB_GNU_GETTEXT], |
1317 | + [AC_REQUIRE([AC_PROG_CC])dnl |
1318 | + AC_REQUIRE([AC_HEADER_STDC])dnl |
1319 | + |
1320 | + GLIB_LC_MESSAGES |
1321 | + GLIB_WITH_NLS |
1322 | + |
1323 | + if test "$gt_cv_have_gettext" = "yes"; then |
1324 | + if test "x$ALL_LINGUAS" = "x"; then |
1325 | + LINGUAS= |
1326 | + else |
1327 | + AC_MSG_CHECKING(for catalogs to be installed) |
1328 | + NEW_LINGUAS= |
1329 | + for presentlang in $ALL_LINGUAS; do |
1330 | + useit=no |
1331 | + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
1332 | + desiredlanguages="$LINGUAS" |
1333 | + else |
1334 | + desiredlanguages="$ALL_LINGUAS" |
1335 | + fi |
1336 | + for desiredlang in $desiredlanguages; do |
1337 | + # Use the presentlang catalog if desiredlang is |
1338 | + # a. equal to presentlang, or |
1339 | + # b. a variant of presentlang (because in this case, |
1340 | + # presentlang can be used as a fallback for messages |
1341 | + # which are not translated in the desiredlang catalog). |
1342 | + case "$desiredlang" in |
1343 | + "$presentlang"*) useit=yes;; |
1344 | + esac |
1345 | + done |
1346 | + if test $useit = yes; then |
1347 | + NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
1348 | + fi |
1349 | + done |
1350 | + LINGUAS=$NEW_LINGUAS |
1351 | + AC_MSG_RESULT($LINGUAS) |
1352 | + fi |
1353 | + |
1354 | + dnl Construct list of names of catalog files to be constructed. |
1355 | + if test -n "$LINGUAS"; then |
1356 | + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
1357 | + fi |
1358 | + fi |
1359 | + |
1360 | + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
1361 | + dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
1362 | + dnl Try to locate is. |
1363 | + MKINSTALLDIRS= |
1364 | + if test -n "$ac_aux_dir"; then |
1365 | + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
1366 | + fi |
1367 | + if test -z "$MKINSTALLDIRS"; then |
1368 | + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
1369 | + fi |
1370 | + AC_SUBST(MKINSTALLDIRS) |
1371 | + |
1372 | + dnl Generate list of files to be processed by xgettext which will |
1373 | + dnl be included in po/Makefile. |
1374 | + test -d po || mkdir po |
1375 | + if test "x$srcdir" != "x."; then |
1376 | + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
1377 | + posrcprefix="$srcdir/" |
1378 | + else |
1379 | + posrcprefix="../$srcdir/" |
1380 | + fi |
1381 | + else |
1382 | + posrcprefix="../" |
1383 | + fi |
1384 | + rm -f po/POTFILES |
1385 | + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
1386 | + < $srcdir/po/POTFILES.in > po/POTFILES |
1387 | + ]) |
1388 | + |
1389 | +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
1390 | +# ------------------------------- |
1391 | +# Define VARIABLE to the location where catalog files will |
1392 | +# be installed by po/Makefile. |
1393 | +glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
1394 | +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
1395 | +glib_save_prefix="$prefix" |
1396 | +glib_save_exec_prefix="$exec_prefix" |
1397 | +glib_save_datarootdir="$datarootdir" |
1398 | +test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1399 | +test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
1400 | +datarootdir=`eval echo "${datarootdir}"` |
1401 | +if test "x$CATOBJEXT" = "x.mo" ; then |
1402 | + localedir=`eval echo "${libdir}/locale"` |
1403 | +else |
1404 | + localedir=`eval echo "${datadir}/locale"` |
1405 | +fi |
1406 | +prefix="$glib_save_prefix" |
1407 | +exec_prefix="$glib_save_exec_prefix" |
1408 | +datarootdir="$glib_save_datarootdir" |
1409 | +AC_DEFINE_UNQUOTED($1, "$localedir", |
1410 | + [Define the location where the catalogs will be installed]) |
1411 | +]) |
1412 | + |
1413 | +dnl |
1414 | +dnl Now the definitions that aclocal will find |
1415 | +dnl |
1416 | +ifdef(glib_configure_ac,[],[ |
1417 | +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
1418 | +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
1419 | +])dnl |
1420 | + |
1421 | +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) |
1422 | +# |
1423 | +# Create a temporary file with TEST-FILE as its contents and pass the |
1424 | +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with |
1425 | +# 0 and perform ACTION-IF-FAIL for any other exit status. |
1426 | +AC_DEFUN([GLIB_RUN_PROG], |
1427 | +[cat >conftest.foo <<_ACEOF |
1428 | +$2 |
1429 | +_ACEOF |
1430 | +if AC_RUN_LOG([$1 conftest.foo]); then |
1431 | + m4_ifval([$3], [$3], [:]) |
1432 | +m4_ifvaln([$4], [else $4])dnl |
1433 | +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD |
1434 | +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD |
1435 | +fi]) |
1436 | + |
1437 | + |
1438 | +dnl -*- mode: autoconf -*- |
1439 | + |
1440 | +# serial 1 |
1441 | + |
1442 | +dnl Usage: |
1443 | +dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) |
1444 | +AC_DEFUN([GTK_DOC_CHECK], |
1445 | +[ |
1446 | + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
1447 | + AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first |
1448 | + AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first |
1449 | + |
1450 | + dnl check for tools we added during development |
1451 | + AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) |
1452 | + AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) |
1453 | + AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) |
1454 | + |
1455 | + dnl for overriding the documentation installation directory |
1456 | + AC_ARG_WITH([html-dir], |
1457 | + AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, |
1458 | + [with_html_dir='${datadir}/gtk-doc/html']) |
1459 | + HTML_DIR="$with_html_dir" |
1460 | + AC_SUBST([HTML_DIR]) |
1461 | + |
1462 | + dnl enable/disable documentation building |
1463 | + AC_ARG_ENABLE([gtk-doc], |
1464 | + AS_HELP_STRING([--enable-gtk-doc], |
1465 | + [use gtk-doc to build documentation [[default=no]]]),, |
1466 | + [enable_gtk_doc=no]) |
1467 | + |
1468 | + if test x$enable_gtk_doc = xyes; then |
1469 | + ifelse([$1],[], |
1470 | + [PKG_CHECK_EXISTS([gtk-doc],, |
1471 | + AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], |
1472 | + [PKG_CHECK_EXISTS([gtk-doc >= $1],, |
1473 | + AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) |
1474 | + dnl don't check for glib if we build glib |
1475 | + if test "x$PACKAGE_NAME" != "xglib"; then |
1476 | + dnl don't fail if someone does not have glib |
1477 | + PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,) |
1478 | + fi |
1479 | + fi |
1480 | + |
1481 | + AC_MSG_CHECKING([whether to build gtk-doc documentation]) |
1482 | + AC_MSG_RESULT($enable_gtk_doc) |
1483 | + |
1484 | + dnl enable/disable output formats |
1485 | + AC_ARG_ENABLE([gtk-doc-html], |
1486 | + AS_HELP_STRING([--enable-gtk-doc-html], |
1487 | + [build documentation in html format [[default=yes]]]),, |
1488 | + [enable_gtk_doc_html=yes]) |
1489 | + AC_ARG_ENABLE([gtk-doc-pdf], |
1490 | + AS_HELP_STRING([--enable-gtk-doc-pdf], |
1491 | + [build documentation in pdf format [[default=no]]]),, |
1492 | + [enable_gtk_doc_pdf=no]) |
1493 | + |
1494 | + if test -z "$GTKDOC_MKPDF"; then |
1495 | + enable_gtk_doc_pdf=no |
1496 | + fi |
1497 | + |
1498 | + |
1499 | + AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) |
1500 | + AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) |
1501 | + AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) |
1502 | + AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) |
1503 | + AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) |
1504 | +]) |
1505 | + |
1506 | + |
1507 | +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) |
1508 | +# serial 42 IT_PROG_INTLTOOL |
1509 | +AC_DEFUN([IT_PROG_INTLTOOL], [ |
1510 | +AC_PREREQ([2.50])dnl |
1511 | +AC_REQUIRE([AM_NLS])dnl |
1512 | + |
1513 | +case "$am__api_version" in |
1514 | + 1.[01234]) |
1515 | + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) |
1516 | + ;; |
1517 | + *) |
1518 | + ;; |
1519 | +esac |
1520 | + |
1521 | +INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1522 | +INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` |
1523 | +INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
1524 | +if test -n "$1"; then |
1525 | + AC_MSG_CHECKING([for intltool >= $1]) |
1526 | + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) |
1527 | + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
1528 | + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) |
1529 | +fi |
1530 | + |
1531 | +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) |
1532 | +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) |
1533 | +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) |
1534 | +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
1535 | + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) |
1536 | +fi |
1537 | + |
1538 | +if test -z "$AM_DEFAULT_VERBOSITY"; then |
1539 | + AM_DEFAULT_VERBOSITY=1 |
1540 | +fi |
1541 | +AC_SUBST([AM_DEFAULT_VERBOSITY]) |
1542 | + |
1543 | +INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' |
1544 | +INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' |
1545 | +INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' |
1546 | +AC_SUBST(INTLTOOL_V_MERGE) |
1547 | +AC_SUBST(INTLTOOL__v_MERGE_) |
1548 | +AC_SUBST(INTLTOOL__v_MERGE_0) |
1549 | + |
1550 | +INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' |
1551 | +intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' |
1552 | +intltool__v_merge_options_0='-q' |
1553 | +AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) |
1554 | +AC_SUBST(intltool__v_merge_options_) |
1555 | +AC_SUBST(intltool__v_merge_options_0) |
1556 | + |
1557 | + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1558 | +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1559 | + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1560 | + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1561 | + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' |
1562 | + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1563 | + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1564 | + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1565 | +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1566 | + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1567 | + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1568 | +if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then |
1569 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' |
1570 | +else |
1571 | + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' |
1572 | +fi |
1573 | + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1574 | + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1575 | + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1576 | + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1577 | + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1578 | + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1579 | + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
1580 | + |
1581 | +_IT_SUBST(INTLTOOL_DESKTOP_RULE) |
1582 | +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) |
1583 | +_IT_SUBST(INTLTOOL_KEYS_RULE) |
1584 | +_IT_SUBST(INTLTOOL_PROP_RULE) |
1585 | +_IT_SUBST(INTLTOOL_OAF_RULE) |
1586 | +_IT_SUBST(INTLTOOL_PONG_RULE) |
1587 | +_IT_SUBST(INTLTOOL_SERVER_RULE) |
1588 | +_IT_SUBST(INTLTOOL_SHEET_RULE) |
1589 | +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) |
1590 | +_IT_SUBST(INTLTOOL_UI_RULE) |
1591 | +_IT_SUBST(INTLTOOL_XAM_RULE) |
1592 | +_IT_SUBST(INTLTOOL_KBD_RULE) |
1593 | +_IT_SUBST(INTLTOOL_XML_RULE) |
1594 | +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) |
1595 | +_IT_SUBST(INTLTOOL_CAVES_RULE) |
1596 | +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) |
1597 | +_IT_SUBST(INTLTOOL_THEME_RULE) |
1598 | +_IT_SUBST(INTLTOOL_SERVICE_RULE) |
1599 | +_IT_SUBST(INTLTOOL_POLICY_RULE) |
1600 | + |
1601 | +# Check the gettext tools to make sure they are GNU |
1602 | +AC_PATH_PROG(XGETTEXT, xgettext) |
1603 | +AC_PATH_PROG(MSGMERGE, msgmerge) |
1604 | +AC_PATH_PROG(MSGFMT, msgfmt) |
1605 | +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1606 | +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
1607 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
1608 | +fi |
1609 | +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
1610 | +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
1611 | +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
1612 | +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
1613 | + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
1614 | +fi |
1615 | + |
1616 | +AC_PATH_PROG(INTLTOOL_PERL, perl) |
1617 | +if test -z "$INTLTOOL_PERL"; then |
1618 | + AC_MSG_ERROR([perl not found]) |
1619 | +fi |
1620 | +AC_MSG_CHECKING([for perl >= 5.8.1]) |
1621 | +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
1622 | +if test $? -ne 0; then |
1623 | + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
1624 | +else |
1625 | + IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` |
1626 | + AC_MSG_RESULT([$IT_PERL_VERSION]) |
1627 | +fi |
1628 | +if test "x$2" != "xno-xml"; then |
1629 | + AC_MSG_CHECKING([for XML::Parser]) |
1630 | + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
1631 | + AC_MSG_RESULT([ok]) |
1632 | + else |
1633 | + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
1634 | + fi |
1635 | +fi |
1636 | + |
1637 | +# Substitute ALL_LINGUAS so we can use it in po/Makefile |
1638 | +AC_SUBST(ALL_LINGUAS) |
1639 | + |
1640 | +# Set DATADIRNAME correctly if it is not set yet |
1641 | +# (copied from glib-gettext.m4) |
1642 | +if test -z "$DATADIRNAME"; then |
1643 | + AC_LINK_IFELSE( |
1644 | + [AC_LANG_PROGRAM([[]], |
1645 | + [[extern int _nl_msg_cat_cntr; |
1646 | + return _nl_msg_cat_cntr]])], |
1647 | + [DATADIRNAME=share], |
1648 | + [case $host in |
1649 | + *-*-solaris*) |
1650 | + dnl On Solaris, if bind_textdomain_codeset is in libc, |
1651 | + dnl GNU format message catalog is always supported, |
1652 | + dnl since both are added to the libc all together. |
1653 | + dnl Hence, we'd like to go with DATADIRNAME=share |
1654 | + dnl in this case. |
1655 | + AC_CHECK_FUNC(bind_textdomain_codeset, |
1656 | + [DATADIRNAME=share], [DATADIRNAME=lib]) |
1657 | + ;; |
1658 | + *) |
1659 | + [DATADIRNAME=lib] |
1660 | + ;; |
1661 | + esac]) |
1662 | +fi |
1663 | +AC_SUBST(DATADIRNAME) |
1664 | + |
1665 | +IT_PO_SUBDIR([po]) |
1666 | + |
1667 | +]) |
1668 | + |
1669 | + |
1670 | +# IT_PO_SUBDIR(DIRNAME) |
1671 | +# --------------------- |
1672 | +# All po subdirs have to be declared with this macro; the subdir "po" is |
1673 | +# declared by IT_PROG_INTLTOOL. |
1674 | +# |
1675 | +AC_DEFUN([IT_PO_SUBDIR], |
1676 | +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
1677 | +dnl |
1678 | +dnl The following CONFIG_COMMANDS should be executed at the very end |
1679 | +dnl of config.status. |
1680 | +AC_CONFIG_COMMANDS_PRE([ |
1681 | + AC_CONFIG_COMMANDS([$1/stamp-it], [ |
1682 | + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then |
1683 | + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) |
1684 | + fi |
1685 | + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" |
1686 | + >"$1/stamp-it.tmp" |
1687 | + [sed '/^#/d |
1688 | + s/^[[].*] *// |
1689 | + /^[ ]*$/d |
1690 | + '"s|^| $ac_top_srcdir/|" \ |
1691 | + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" |
1692 | + ] |
1693 | + [sed '/^POTFILES =/,/[^\\]$/ { |
1694 | + /^POTFILES =/!d |
1695 | + r $1/POTFILES |
1696 | + } |
1697 | + ' "$1/Makefile.in" >"$1/Makefile"] |
1698 | + rm -f "$1/Makefile.tmp" |
1699 | + mv "$1/stamp-it.tmp" "$1/stamp-it" |
1700 | + ]) |
1701 | +])dnl |
1702 | +]) |
1703 | + |
1704 | +# _IT_SUBST(VARIABLE) |
1705 | +# ------------------- |
1706 | +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
1707 | +# |
1708 | +AC_DEFUN([_IT_SUBST], |
1709 | +[ |
1710 | +AC_SUBST([$1]) |
1711 | +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
1712 | +] |
1713 | +) |
1714 | + |
1715 | +# deprecated macros |
1716 | +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) |
1717 | +# A hint is needed for aclocal from Automake <= 1.9.4: |
1718 | +# AC_DEFUN([AC_PROG_INTLTOOL], ...) |
1719 | + |
1720 | + |
1721 | +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1722 | +# |
1723 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
1724 | +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
1725 | +# Foundation, Inc. |
1726 | +# Written by Gordon Matzigkeit, 1996 |
1727 | +# |
1728 | +# This file is free software; the Free Software Foundation gives |
1729 | +# unlimited permission to copy and/or distribute it, with or without |
1730 | +# modifications, as long as this notice is preserved. |
1731 | + |
1732 | +m4_define([_LT_COPYING], [dnl |
1733 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
1734 | +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
1735 | +# Foundation, Inc. |
1736 | +# Written by Gordon Matzigkeit, 1996 |
1737 | +# |
1738 | +# This file is part of GNU Libtool. |
1739 | +# |
1740 | +# GNU Libtool is free software; you can redistribute it and/or |
1741 | +# modify it under the terms of the GNU General Public License as |
1742 | +# published by the Free Software Foundation; either version 2 of |
1743 | +# the License, or (at your option) any later version. |
1744 | +# |
1745 | +# As a special exception to the GNU General Public License, |
1746 | +# if you distribute this file as part of a program or library that |
1747 | +# is built using GNU Libtool, you may include this file under the |
1748 | +# same distribution terms that you use for the rest of that program. |
1749 | +# |
1750 | +# GNU Libtool is distributed in the hope that it will be useful, |
1751 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1752 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1753 | +# GNU General Public License for more details. |
1754 | +# |
1755 | +# You should have received a copy of the GNU General Public License |
1756 | +# along with GNU Libtool; see the file COPYING. If not, a copy |
1757 | +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
1758 | +# obtained by writing to the Free Software Foundation, Inc., |
1759 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
1760 | +]) |
1761 | + |
1762 | +# serial 57 LT_INIT |
1763 | + |
1764 | + |
1765 | +# LT_PREREQ(VERSION) |
1766 | +# ------------------ |
1767 | +# Complain and exit if this libtool version is less that VERSION. |
1768 | +m4_defun([LT_PREREQ], |
1769 | +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
1770 | + [m4_default([$3], |
1771 | + [m4_fatal([Libtool version $1 or higher is required], |
1772 | + 63)])], |
1773 | + [$2])]) |
1774 | + |
1775 | + |
1776 | +# _LT_CHECK_BUILDDIR |
1777 | +# ------------------ |
1778 | +# Complain if the absolute build directory name contains unusual characters |
1779 | +m4_defun([_LT_CHECK_BUILDDIR], |
1780 | +[case `pwd` in |
1781 | + *\ * | *\ *) |
1782 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
1783 | +esac |
1784 | +]) |
1785 | + |
1786 | + |
1787 | +# LT_INIT([OPTIONS]) |
1788 | +# ------------------ |
1789 | +AC_DEFUN([LT_INIT], |
1790 | +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
1791 | +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
1792 | +AC_BEFORE([$0], [LT_LANG])dnl |
1793 | +AC_BEFORE([$0], [LT_OUTPUT])dnl |
1794 | +AC_BEFORE([$0], [LTDL_INIT])dnl |
1795 | +m4_require([_LT_CHECK_BUILDDIR])dnl |
1796 | + |
1797 | +dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
1798 | +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
1799 | +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
1800 | +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
1801 | +dnl unless we require an AC_DEFUNed macro: |
1802 | +AC_REQUIRE([LTOPTIONS_VERSION])dnl |
1803 | +AC_REQUIRE([LTSUGAR_VERSION])dnl |
1804 | +AC_REQUIRE([LTVERSION_VERSION])dnl |
1805 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
1806 | +m4_require([_LT_PROG_LTMAIN])dnl |
1807 | + |
1808 | +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) |
1809 | + |
1810 | +dnl Parse OPTIONS |
1811 | +_LT_SET_OPTIONS([$0], [$1]) |
1812 | + |
1813 | +# This can be used to rebuild libtool when needed |
1814 | +LIBTOOL_DEPS="$ltmain" |
1815 | + |
1816 | +# Always use our own libtool. |
1817 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
1818 | +AC_SUBST(LIBTOOL)dnl |
1819 | + |
1820 | +_LT_SETUP |
1821 | + |
1822 | +# Only expand once: |
1823 | +m4_define([LT_INIT]) |
1824 | +])# LT_INIT |
1825 | + |
1826 | +# Old names: |
1827 | +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
1828 | +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
1829 | +dnl aclocal-1.4 backwards compatibility: |
1830 | +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
1831 | +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
1832 | + |
1833 | + |
1834 | +# _LT_CC_BASENAME(CC) |
1835 | +# ------------------- |
1836 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
1837 | +m4_defun([_LT_CC_BASENAME], |
1838 | +[for cc_temp in $1""; do |
1839 | + case $cc_temp in |
1840 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
1841 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
1842 | + \-*) ;; |
1843 | + *) break;; |
1844 | + esac |
1845 | +done |
1846 | +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1847 | +]) |
1848 | + |
1849 | + |
1850 | +# _LT_FILEUTILS_DEFAULTS |
1851 | +# ---------------------- |
1852 | +# It is okay to use these file commands and assume they have been set |
1853 | +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
1854 | +m4_defun([_LT_FILEUTILS_DEFAULTS], |
1855 | +[: ${CP="cp -f"} |
1856 | +: ${MV="mv -f"} |
1857 | +: ${RM="rm -f"} |
1858 | +])# _LT_FILEUTILS_DEFAULTS |
1859 | + |
1860 | + |
1861 | +# _LT_SETUP |
1862 | +# --------- |
1863 | +m4_defun([_LT_SETUP], |
1864 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1865 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1866 | +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
1867 | +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
1868 | + |
1869 | +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl |
1870 | +dnl |
1871 | +_LT_DECL([], [host_alias], [0], [The host system])dnl |
1872 | +_LT_DECL([], [host], [0])dnl |
1873 | +_LT_DECL([], [host_os], [0])dnl |
1874 | +dnl |
1875 | +_LT_DECL([], [build_alias], [0], [The build system])dnl |
1876 | +_LT_DECL([], [build], [0])dnl |
1877 | +_LT_DECL([], [build_os], [0])dnl |
1878 | +dnl |
1879 | +AC_REQUIRE([AC_PROG_CC])dnl |
1880 | +AC_REQUIRE([LT_PATH_LD])dnl |
1881 | +AC_REQUIRE([LT_PATH_NM])dnl |
1882 | +dnl |
1883 | +AC_REQUIRE([AC_PROG_LN_S])dnl |
1884 | +test -z "$LN_S" && LN_S="ln -s" |
1885 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
1886 | +dnl |
1887 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
1888 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
1889 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
1890 | +dnl |
1891 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1892 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
1893 | +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
1894 | +m4_require([_LT_CMD_RELOAD])dnl |
1895 | +m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
1896 | +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
1897 | +m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
1898 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
1899 | +m4_require([_LT_WITH_SYSROOT])dnl |
1900 | + |
1901 | +_LT_CONFIG_LIBTOOL_INIT([ |
1902 | +# See if we are running on zsh, and set the options which allow our |
1903 | +# commands through without removal of \ escapes INIT. |
1904 | +if test -n "\${ZSH_VERSION+set}" ; then |
1905 | + setopt NO_GLOB_SUBST |
1906 | +fi |
1907 | +]) |
1908 | +if test -n "${ZSH_VERSION+set}" ; then |
1909 | + setopt NO_GLOB_SUBST |
1910 | +fi |
1911 | + |
1912 | +_LT_CHECK_OBJDIR |
1913 | + |
1914 | +m4_require([_LT_TAG_COMPILER])dnl |
1915 | + |
1916 | +case $host_os in |
1917 | +aix3*) |
1918 | + # AIX sometimes has problems with the GCC collect2 program. For some |
1919 | + # reason, if we set the COLLECT_NAMES environment variable, the problems |
1920 | + # vanish in a puff of smoke. |
1921 | + if test "X${COLLECT_NAMES+set}" != Xset; then |
1922 | + COLLECT_NAMES= |
1923 | + export COLLECT_NAMES |
1924 | + fi |
1925 | + ;; |
1926 | +esac |
1927 | + |
1928 | +# Global variables: |
1929 | +ofile=libtool |
1930 | +can_build_shared=yes |
1931 | + |
1932 | +# All known linkers require a `.a' archive for static linking (except MSVC, |
1933 | +# which needs '.lib'). |
1934 | +libext=a |
1935 | + |
1936 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
1937 | + |
1938 | +old_CC="$CC" |
1939 | +old_CFLAGS="$CFLAGS" |
1940 | + |
1941 | +# Set sane defaults for various variables |
1942 | +test -z "$CC" && CC=cc |
1943 | +test -z "$LTCC" && LTCC=$CC |
1944 | +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
1945 | +test -z "$LD" && LD=ld |
1946 | +test -z "$ac_objext" && ac_objext=o |
1947 | + |
1948 | +_LT_CC_BASENAME([$compiler]) |
1949 | + |
1950 | +# Only perform the check for file, if the check method requires it |
1951 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
1952 | +case $deplibs_check_method in |
1953 | +file_magic*) |
1954 | + if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
1955 | + _LT_PATH_MAGIC |
1956 | + fi |
1957 | + ;; |
1958 | +esac |
1959 | + |
1960 | +# Use C for the default configuration in the libtool script |
1961 | +LT_SUPPORTED_TAG([CC]) |
1962 | +_LT_LANG_C_CONFIG |
1963 | +_LT_LANG_DEFAULT_CONFIG |
1964 | +_LT_CONFIG_COMMANDS |
1965 | +])# _LT_SETUP |
1966 | + |
1967 | + |
1968 | +# _LT_PREPARE_SED_QUOTE_VARS |
1969 | +# -------------------------- |
1970 | +# Define a few sed substitution that help us do robust quoting. |
1971 | +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], |
1972 | +[# Backslashify metacharacters that are still active within |
1973 | +# double-quoted strings. |
1974 | +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
1975 | + |
1976 | +# Same as above, but do not quote variable references. |
1977 | +double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
1978 | + |
1979 | +# Sed substitution to delay expansion of an escaped shell variable in a |
1980 | +# double_quote_subst'ed string. |
1981 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
1982 | + |
1983 | +# Sed substitution to delay expansion of an escaped single quote. |
1984 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
1985 | + |
1986 | +# Sed substitution to avoid accidental globbing in evaled expressions |
1987 | +no_glob_subst='s/\*/\\\*/g' |
1988 | +]) |
1989 | + |
1990 | +# _LT_PROG_LTMAIN |
1991 | +# --------------- |
1992 | +# Note that this code is called both from `configure', and `config.status' |
1993 | +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
1994 | +# `config.status' has no value for ac_aux_dir unless we are using Automake, |
1995 | +# so we pass a copy along to make sure it has a sensible value anyway. |
1996 | +m4_defun([_LT_PROG_LTMAIN], |
1997 | +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
1998 | +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
1999 | +ltmain="$ac_aux_dir/ltmain.sh" |
2000 | +])# _LT_PROG_LTMAIN |
2001 | + |
2002 | + |
2003 | + |
2004 | +# So that we can recreate a full libtool script including additional |
2005 | +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
2006 | +# in macros and then make a single call at the end using the `libtool' |
2007 | +# label. |
2008 | + |
2009 | + |
2010 | +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
2011 | +# ---------------------------------------- |
2012 | +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
2013 | +m4_define([_LT_CONFIG_LIBTOOL_INIT], |
2014 | +[m4_ifval([$1], |
2015 | + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
2016 | + [$1 |
2017 | +])])]) |
2018 | + |
2019 | +# Initialize. |
2020 | +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
2021 | + |
2022 | + |
2023 | +# _LT_CONFIG_LIBTOOL([COMMANDS]) |
2024 | +# ------------------------------ |
2025 | +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
2026 | +m4_define([_LT_CONFIG_LIBTOOL], |
2027 | +[m4_ifval([$1], |
2028 | + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
2029 | + [$1 |
2030 | +])])]) |
2031 | + |
2032 | +# Initialize. |
2033 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
2034 | + |
2035 | + |
2036 | +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
2037 | +# ----------------------------------------------------- |
2038 | +m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
2039 | +[_LT_CONFIG_LIBTOOL([$1]) |
2040 | +_LT_CONFIG_LIBTOOL_INIT([$2]) |
2041 | +]) |
2042 | + |
2043 | + |
2044 | +# _LT_FORMAT_COMMENT([COMMENT]) |
2045 | +# ----------------------------- |
2046 | +# Add leading comment marks to the start of each line, and a trailing |
2047 | +# full-stop to the whole comment if one is not present already. |
2048 | +m4_define([_LT_FORMAT_COMMENT], |
2049 | +[m4_ifval([$1], [ |
2050 | +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
2051 | + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
2052 | +)]) |
2053 | + |
2054 | + |
2055 | + |
2056 | + |
2057 | + |
2058 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
2059 | +# ------------------------------------------------------------------- |
2060 | +# CONFIGNAME is the name given to the value in the libtool script. |
2061 | +# VARNAME is the (base) name used in the configure script. |
2062 | +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
2063 | +# VARNAME. Any other value will be used directly. |
2064 | +m4_define([_LT_DECL], |
2065 | +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
2066 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
2067 | + [m4_ifval([$1], [$1], [$2])]) |
2068 | + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
2069 | + m4_ifval([$4], |
2070 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
2071 | + lt_dict_add_subkey([lt_decl_dict], [$2], |
2072 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) |
2073 | +]) |
2074 | + |
2075 | + |
2076 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
2077 | +# -------------------------------------------------------- |
2078 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
2079 | + |
2080 | + |
2081 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
2082 | +# ------------------------------------------------ |
2083 | +m4_define([lt_decl_tag_varnames], |
2084 | +[_lt_decl_filter([tagged?], [yes], $@)]) |
2085 | + |
2086 | + |
2087 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
2088 | +# --------------------------------------------------------- |
2089 | +m4_define([_lt_decl_filter], |
2090 | +[m4_case([$#], |
2091 | + [0], [m4_fatal([$0: too few arguments: $#])], |
2092 | + [1], [m4_fatal([$0: too few arguments: $#: $1])], |
2093 | + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
2094 | + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
2095 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
2096 | +]) |
2097 | + |
2098 | + |
2099 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
2100 | +# -------------------------------------------------- |
2101 | +m4_define([lt_decl_quote_varnames], |
2102 | +[_lt_decl_filter([value], [1], $@)]) |
2103 | + |
2104 | + |
2105 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
2106 | +# --------------------------------------------------- |
2107 | +m4_define([lt_decl_dquote_varnames], |
2108 | +[_lt_decl_filter([value], [2], $@)]) |
2109 | + |
2110 | + |
2111 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
2112 | +# --------------------------------------------------- |
2113 | +m4_define([lt_decl_varnames_tagged], |
2114 | +[m4_assert([$# <= 2])dnl |
2115 | +_$0(m4_quote(m4_default([$1], [[, ]])), |
2116 | + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), |
2117 | + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) |
2118 | +m4_define([_lt_decl_varnames_tagged], |
2119 | +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
2120 | + |
2121 | + |
2122 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
2123 | +# ------------------------------------------------ |
2124 | +m4_define([lt_decl_all_varnames], |
2125 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
2126 | + m4_if([$2], [], |
2127 | + m4_quote(lt_decl_varnames), |
2128 | + m4_quote(m4_shift($@))))[]dnl |
2129 | +]) |
2130 | +m4_define([_lt_decl_all_varnames], |
2131 | +[lt_join($@, lt_decl_varnames_tagged([$1], |
2132 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
2133 | +]) |
2134 | + |
2135 | + |
2136 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
2137 | +# ------------------------------------ |
2138 | +# Quote a variable value, and forward it to `config.status' so that its |
2139 | +# declaration there will have the same value as in `configure'. VARNAME |
2140 | +# must have a single quote delimited value for this to work. |
2141 | +m4_define([_LT_CONFIG_STATUS_DECLARE], |
2142 | +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) |
2143 | + |
2144 | + |
2145 | +# _LT_CONFIG_STATUS_DECLARATIONS |
2146 | +# ------------------------------ |
2147 | +# We delimit libtool config variables with single quotes, so when |
2148 | +# we write them to config.status, we have to be sure to quote all |
2149 | +# embedded single quotes properly. In configure, this macro expands |
2150 | +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
2151 | +# |
2152 | +# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' |
2153 | +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
2154 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
2155 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
2156 | + |
2157 | + |
2158 | +# _LT_LIBTOOL_TAGS |
2159 | +# ---------------- |
2160 | +# Output comment and list of tags supported by the script |
2161 | +m4_defun([_LT_LIBTOOL_TAGS], |
2162 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
2163 | +available_tags="_LT_TAGS"dnl |
2164 | +]) |
2165 | + |
2166 | + |
2167 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
2168 | +# ----------------------------------- |
2169 | +# Extract the dictionary values for VARNAME (optionally with TAG) and |
2170 | +# expand to a commented shell variable setting: |
2171 | +# |
2172 | +# # Some comment about what VAR is for. |
2173 | +# visible_name=$lt_internal_name |
2174 | +m4_define([_LT_LIBTOOL_DECLARE], |
2175 | +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
2176 | + [description])))[]dnl |
2177 | +m4_pushdef([_libtool_name], |
2178 | + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
2179 | +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
2180 | + [0], [_libtool_name=[$]$1], |
2181 | + [1], [_libtool_name=$lt_[]$1], |
2182 | + [2], [_libtool_name=$lt_[]$1], |
2183 | + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
2184 | +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
2185 | +]) |
2186 | + |
2187 | + |
2188 | +# _LT_LIBTOOL_CONFIG_VARS |
2189 | +# ----------------------- |
2190 | +# Produce commented declarations of non-tagged libtool config variables |
2191 | +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
2192 | +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
2193 | +# section) are produced by _LT_LIBTOOL_TAG_VARS. |
2194 | +m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
2195 | +[m4_foreach([_lt_var], |
2196 | + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
2197 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
2198 | + |
2199 | + |
2200 | +# _LT_LIBTOOL_TAG_VARS(TAG) |
2201 | +# ------------------------- |
2202 | +m4_define([_LT_LIBTOOL_TAG_VARS], |
2203 | +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
2204 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
2205 | + |
2206 | + |
2207 | +# _LT_TAGVAR(VARNAME, [TAGNAME]) |
2208 | +# ------------------------------ |
2209 | +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
2210 | + |
2211 | + |
2212 | +# _LT_CONFIG_COMMANDS |
2213 | +# ------------------- |
2214 | +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
2215 | +# variables for single and double quote escaping we saved from calls |
2216 | +# to _LT_DECL, we can put quote escaped variables declarations |
2217 | +# into `config.status', and then the shell code to quote escape them in |
2218 | +# for loops in `config.status'. Finally, any additional code accumulated |
2219 | +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
2220 | +m4_defun([_LT_CONFIG_COMMANDS], |
2221 | +[AC_PROVIDE_IFELSE([LT_OUTPUT], |
2222 | + dnl If the libtool generation code has been placed in $CONFIG_LT, |
2223 | + dnl instead of duplicating it all over again into config.status, |
2224 | + dnl then we will have config.status run $CONFIG_LT later, so it |
2225 | + dnl needs to know what name is stored there: |
2226 | + [AC_CONFIG_COMMANDS([libtool], |
2227 | + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
2228 | + dnl If the libtool generation code is destined for config.status, |
2229 | + dnl expand the accumulated commands and init code now: |
2230 | + [AC_CONFIG_COMMANDS([libtool], |
2231 | + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
2232 | +])#_LT_CONFIG_COMMANDS |
2233 | + |
2234 | + |
2235 | +# Initialize. |
2236 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
2237 | +[ |
2238 | + |
2239 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
2240 | +# if CDPATH is set. |
2241 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
2242 | + |
2243 | +sed_quote_subst='$sed_quote_subst' |
2244 | +double_quote_subst='$double_quote_subst' |
2245 | +delay_variable_subst='$delay_variable_subst' |
2246 | +_LT_CONFIG_STATUS_DECLARATIONS |
2247 | +LTCC='$LTCC' |
2248 | +LTCFLAGS='$LTCFLAGS' |
2249 | +compiler='$compiler_DEFAULT' |
2250 | + |
2251 | +# A function that is used when there is no print builtin or printf. |
2252 | +func_fallback_echo () |
2253 | +{ |
2254 | + eval 'cat <<_LTECHO_EOF |
2255 | +\$[]1 |
2256 | +_LTECHO_EOF' |
2257 | +} |
2258 | + |
2259 | +# Quote evaled strings. |
2260 | +for var in lt_decl_all_varnames([[ \ |
2261 | +]], lt_decl_quote_varnames); do |
2262 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
2263 | + *[[\\\\\\\`\\"\\\$]]*) |
2264 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
2265 | + ;; |
2266 | + *) |
2267 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
2268 | + ;; |
2269 | + esac |
2270 | +done |
2271 | + |
2272 | +# Double-quote double-evaled strings. |
2273 | +for var in lt_decl_all_varnames([[ \ |
2274 | +]], lt_decl_dquote_varnames); do |
2275 | + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
2276 | + *[[\\\\\\\`\\"\\\$]]*) |
2277 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
2278 | + ;; |
2279 | + *) |
2280 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
2281 | + ;; |
2282 | + esac |
2283 | +done |
2284 | + |
2285 | +_LT_OUTPUT_LIBTOOL_INIT |
2286 | +]) |
2287 | + |
2288 | +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) |
2289 | +# ------------------------------------ |
2290 | +# Generate a child script FILE with all initialization necessary to |
2291 | +# reuse the environment learned by the parent script, and make the |
2292 | +# file executable. If COMMENT is supplied, it is inserted after the |
2293 | +# `#!' sequence but before initialization text begins. After this |
2294 | +# macro, additional text can be appended to FILE to form the body of |
2295 | +# the child script. The macro ends with non-zero status if the |
2296 | +# file could not be fully written (such as if the disk is full). |
2297 | +m4_ifdef([AS_INIT_GENERATED], |
2298 | +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], |
2299 | +[m4_defun([_LT_GENERATED_FILE_INIT], |
2300 | +[m4_require([AS_PREPARE])]dnl |
2301 | +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl |
2302 | +[lt_write_fail=0 |
2303 | +cat >$1 <<_ASEOF || lt_write_fail=1 |
2304 | +#! $SHELL |
2305 | +# Generated by $as_me. |
2306 | +$2 |
2307 | +SHELL=\${CONFIG_SHELL-$SHELL} |
2308 | +export SHELL |
2309 | +_ASEOF |
2310 | +cat >>$1 <<\_ASEOF || lt_write_fail=1 |
2311 | +AS_SHELL_SANITIZE |
2312 | +_AS_PREPARE |
2313 | +exec AS_MESSAGE_FD>&1 |
2314 | +_ASEOF |
2315 | +test $lt_write_fail = 0 && chmod +x $1[]dnl |
2316 | +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT |
2317 | + |
2318 | +# LT_OUTPUT |
2319 | +# --------- |
2320 | +# This macro allows early generation of the libtool script (before |
2321 | +# AC_OUTPUT is called), incase it is used in configure for compilation |
2322 | +# tests. |
2323 | +AC_DEFUN([LT_OUTPUT], |
2324 | +[: ${CONFIG_LT=./config.lt} |
2325 | +AC_MSG_NOTICE([creating $CONFIG_LT]) |
2326 | +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], |
2327 | +[# Run this file to recreate a libtool stub with the current configuration.]) |
2328 | + |
2329 | +cat >>"$CONFIG_LT" <<\_LTEOF |
2330 | +lt_cl_silent=false |
2331 | +exec AS_MESSAGE_LOG_FD>>config.log |
2332 | +{ |
2333 | + echo |
2334 | + AS_BOX([Running $as_me.]) |
2335 | +} >&AS_MESSAGE_LOG_FD |
2336 | + |
2337 | +lt_cl_help="\ |
2338 | +\`$as_me' creates a local libtool stub from the current configuration, |
2339 | +for use in further configure time tests before the real libtool is |
2340 | +generated. |
2341 | + |
2342 | +Usage: $[0] [[OPTIONS]] |
2343 | + |
2344 | + -h, --help print this help, then exit |
2345 | + -V, --version print version number, then exit |
2346 | + -q, --quiet do not print progress messages |
2347 | + -d, --debug don't remove temporary files |
2348 | + |
2349 | +Report bugs to <bug-libtool@gnu.org>." |
2350 | + |
2351 | +lt_cl_version="\ |
2352 | +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
2353 | +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
2354 | +configured by $[0], generated by m4_PACKAGE_STRING. |
2355 | + |
2356 | +Copyright (C) 2011 Free Software Foundation, Inc. |
2357 | +This config.lt script is free software; the Free Software Foundation |
2358 | +gives unlimited permision to copy, distribute and modify it." |
2359 | + |
2360 | +while test $[#] != 0 |
2361 | +do |
2362 | + case $[1] in |
2363 | + --version | --v* | -V ) |
2364 | + echo "$lt_cl_version"; exit 0 ;; |
2365 | + --help | --h* | -h ) |
2366 | + echo "$lt_cl_help"; exit 0 ;; |
2367 | + --debug | --d* | -d ) |
2368 | + debug=: ;; |
2369 | + --quiet | --q* | --silent | --s* | -q ) |
2370 | + lt_cl_silent=: ;; |
2371 | + |
2372 | + -*) AC_MSG_ERROR([unrecognized option: $[1] |
2373 | +Try \`$[0] --help' for more information.]) ;; |
2374 | + |
2375 | + *) AC_MSG_ERROR([unrecognized argument: $[1] |
2376 | +Try \`$[0] --help' for more information.]) ;; |
2377 | + esac |
2378 | + shift |
2379 | +done |
2380 | + |
2381 | +if $lt_cl_silent; then |
2382 | + exec AS_MESSAGE_FD>/dev/null |
2383 | +fi |
2384 | +_LTEOF |
2385 | + |
2386 | +cat >>"$CONFIG_LT" <<_LTEOF |
2387 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
2388 | +_LTEOF |
2389 | + |
2390 | +cat >>"$CONFIG_LT" <<\_LTEOF |
2391 | +AC_MSG_NOTICE([creating $ofile]) |
2392 | +_LT_OUTPUT_LIBTOOL_COMMANDS |
2393 | +AS_EXIT(0) |
2394 | +_LTEOF |
2395 | +chmod +x "$CONFIG_LT" |
2396 | + |
2397 | +# configure is writing to config.log, but config.lt does its own redirection, |
2398 | +# appending to config.log, which fails on DOS, as config.log is still kept |
2399 | +# open by configure. Here we exec the FD to /dev/null, effectively closing |
2400 | +# config.log, so it can be properly (re)opened and appended to by config.lt. |
2401 | +lt_cl_success=: |
2402 | +test "$silent" = yes && |
2403 | + lt_config_lt_args="$lt_config_lt_args --quiet" |
2404 | +exec AS_MESSAGE_LOG_FD>/dev/null |
2405 | +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
2406 | +exec AS_MESSAGE_LOG_FD>>config.log |
2407 | +$lt_cl_success || AS_EXIT(1) |
2408 | +])# LT_OUTPUT |
2409 | + |
2410 | + |
2411 | +# _LT_CONFIG(TAG) |
2412 | +# --------------- |
2413 | +# If TAG is the built-in tag, create an initial libtool script with a |
2414 | +# default configuration from the untagged config vars. Otherwise add code |
2415 | +# to config.status for appending the configuration named by TAG from the |
2416 | +# matching tagged config vars. |
2417 | +m4_defun([_LT_CONFIG], |
2418 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2419 | +_LT_CONFIG_SAVE_COMMANDS([ |
2420 | + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
2421 | + m4_if(_LT_TAG, [C], [ |
2422 | + # See if we are running on zsh, and set the options which allow our |
2423 | + # commands through without removal of \ escapes. |
2424 | + if test -n "${ZSH_VERSION+set}" ; then |
2425 | + setopt NO_GLOB_SUBST |
2426 | + fi |
2427 | + |
2428 | + cfgfile="${ofile}T" |
2429 | + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
2430 | + $RM "$cfgfile" |
2431 | + |
2432 | + cat <<_LT_EOF >> "$cfgfile" |
2433 | +#! $SHELL |
2434 | + |
2435 | +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
2436 | +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
2437 | +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2438 | +# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
2439 | +# |
2440 | +_LT_COPYING |
2441 | +_LT_LIBTOOL_TAGS |
2442 | + |
2443 | +# ### BEGIN LIBTOOL CONFIG |
2444 | +_LT_LIBTOOL_CONFIG_VARS |
2445 | +_LT_LIBTOOL_TAG_VARS |
2446 | +# ### END LIBTOOL CONFIG |
2447 | + |
2448 | +_LT_EOF |
2449 | + |
2450 | + case $host_os in |
2451 | + aix3*) |
2452 | + cat <<\_LT_EOF >> "$cfgfile" |
2453 | +# AIX sometimes has problems with the GCC collect2 program. For some |
2454 | +# reason, if we set the COLLECT_NAMES environment variable, the problems |
2455 | +# vanish in a puff of smoke. |
2456 | +if test "X${COLLECT_NAMES+set}" != Xset; then |
2457 | + COLLECT_NAMES= |
2458 | + export COLLECT_NAMES |
2459 | +fi |
2460 | +_LT_EOF |
2461 | + ;; |
2462 | + esac |
2463 | + |
2464 | + _LT_PROG_LTMAIN |
2465 | + |
2466 | + # We use sed instead of cat because bash on DJGPP gets confused if |
2467 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in |
2468 | + # text mode, it properly converts lines to CR/LF. This bash problem |
2469 | + # is reportedly fixed, but why not run on old versions too? |
2470 | + sed '$q' "$ltmain" >> "$cfgfile" \ |
2471 | + || (rm -f "$cfgfile"; exit 1) |
2472 | + |
2473 | + _LT_PROG_REPLACE_SHELLFNS |
2474 | + |
2475 | + mv -f "$cfgfile" "$ofile" || |
2476 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
2477 | + chmod +x "$ofile" |
2478 | +], |
2479 | +[cat <<_LT_EOF >> "$ofile" |
2480 | + |
2481 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
2482 | +dnl in a comment (ie after a #). |
2483 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 |
2484 | +_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
2485 | +# ### END LIBTOOL TAG CONFIG: $1 |
2486 | +_LT_EOF |
2487 | +])dnl /m4_if |
2488 | +], |
2489 | +[m4_if([$1], [], [ |
2490 | + PACKAGE='$PACKAGE' |
2491 | + VERSION='$VERSION' |
2492 | + TIMESTAMP='$TIMESTAMP' |
2493 | + RM='$RM' |
2494 | + ofile='$ofile'], []) |
2495 | +])dnl /_LT_CONFIG_SAVE_COMMANDS |
2496 | +])# _LT_CONFIG |
2497 | + |
2498 | + |
2499 | +# LT_SUPPORTED_TAG(TAG) |
2500 | +# --------------------- |
2501 | +# Trace this macro to discover what tags are supported by the libtool |
2502 | +# --tag option, using: |
2503 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
2504 | +AC_DEFUN([LT_SUPPORTED_TAG], []) |
2505 | + |
2506 | + |
2507 | +# C support is built-in for now |
2508 | +m4_define([_LT_LANG_C_enabled], []) |
2509 | +m4_define([_LT_TAGS], []) |
2510 | + |
2511 | + |
2512 | +# LT_LANG(LANG) |
2513 | +# ------------- |
2514 | +# Enable libtool support for the given language if not already enabled. |
2515 | +AC_DEFUN([LT_LANG], |
2516 | +[AC_BEFORE([$0], [LT_OUTPUT])dnl |
2517 | +m4_case([$1], |
2518 | + [C], [_LT_LANG(C)], |
2519 | + [C++], [_LT_LANG(CXX)], |
2520 | + [Go], [_LT_LANG(GO)], |
2521 | + [Java], [_LT_LANG(GCJ)], |
2522 | + [Fortran 77], [_LT_LANG(F77)], |
2523 | + [Fortran], [_LT_LANG(FC)], |
2524 | + [Windows Resource], [_LT_LANG(RC)], |
2525 | + [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
2526 | + [_LT_LANG($1)], |
2527 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl |
2528 | +])# LT_LANG |
2529 | + |
2530 | + |
2531 | +# _LT_LANG(LANGNAME) |
2532 | +# ------------------ |
2533 | +m4_defun([_LT_LANG], |
2534 | +[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
2535 | + [LT_SUPPORTED_TAG([$1])dnl |
2536 | + m4_append([_LT_TAGS], [$1 ])dnl |
2537 | + m4_define([_LT_LANG_]$1[_enabled], [])dnl |
2538 | + _LT_LANG_$1_CONFIG($1)])dnl |
2539 | +])# _LT_LANG |
2540 | + |
2541 | + |
2542 | +m4_ifndef([AC_PROG_GO], [ |
2543 | +# NOTE: This macro has been submitted for inclusion into # |
2544 | +# GNU Autoconf as AC_PROG_GO. When it is available in # |
2545 | +# a released version of Autoconf we should remove this # |
2546 | +# macro and use it instead. # |
2547 | +m4_defun([AC_PROG_GO], |
2548 | +[AC_LANG_PUSH(Go)dnl |
2549 | +AC_ARG_VAR([GOC], [Go compiler command])dnl |
2550 | +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
2551 | +_AC_ARG_VAR_LDFLAGS()dnl |
2552 | +AC_CHECK_TOOL(GOC, gccgo) |
2553 | +if test -z "$GOC"; then |
2554 | + if test -n "$ac_tool_prefix"; then |
2555 | + AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
2556 | + fi |
2557 | +fi |
2558 | +if test -z "$GOC"; then |
2559 | + AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
2560 | +fi |
2561 | +])#m4_defun |
2562 | +])#m4_ifndef |
2563 | + |
2564 | + |
2565 | +# _LT_LANG_DEFAULT_CONFIG |
2566 | +# ----------------------- |
2567 | +m4_defun([_LT_LANG_DEFAULT_CONFIG], |
2568 | +[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
2569 | + [LT_LANG(CXX)], |
2570 | + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
2571 | + |
2572 | +AC_PROVIDE_IFELSE([AC_PROG_F77], |
2573 | + [LT_LANG(F77)], |
2574 | + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
2575 | + |
2576 | +AC_PROVIDE_IFELSE([AC_PROG_FC], |
2577 | + [LT_LANG(FC)], |
2578 | + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
2579 | + |
2580 | +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
2581 | +dnl pulling things in needlessly. |
2582 | +AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
2583 | + [LT_LANG(GCJ)], |
2584 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
2585 | + [LT_LANG(GCJ)], |
2586 | + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
2587 | + [LT_LANG(GCJ)], |
2588 | + [m4_ifdef([AC_PROG_GCJ], |
2589 | + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
2590 | + m4_ifdef([A][M_PROG_GCJ], |
2591 | + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
2592 | + m4_ifdef([LT_PROG_GCJ], |
2593 | + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
2594 | + |
2595 | +AC_PROVIDE_IFELSE([AC_PROG_GO], |
2596 | + [LT_LANG(GO)], |
2597 | + [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
2598 | + |
2599 | +AC_PROVIDE_IFELSE([LT_PROG_RC], |
2600 | + [LT_LANG(RC)], |
2601 | + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
2602 | +])# _LT_LANG_DEFAULT_CONFIG |
2603 | + |
2604 | +# Obsolete macros: |
2605 | +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
2606 | +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
2607 | +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
2608 | +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
2609 | +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) |
2610 | +dnl aclocal-1.4 backwards compatibility: |
2611 | +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
2612 | +dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
2613 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
2614 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
2615 | +dnl AC_DEFUN([AC_LIBTOOL_RC], []) |
2616 | + |
2617 | + |
2618 | +# _LT_TAG_COMPILER |
2619 | +# ---------------- |
2620 | +m4_defun([_LT_TAG_COMPILER], |
2621 | +[AC_REQUIRE([AC_PROG_CC])dnl |
2622 | + |
2623 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
2624 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
2625 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
2626 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
2627 | + |
2628 | +# If no C compiler was specified, use CC. |
2629 | +LTCC=${LTCC-"$CC"} |
2630 | + |
2631 | +# If no C compiler flags were specified, use CFLAGS. |
2632 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
2633 | + |
2634 | +# Allow CC to be a program name with arguments. |
2635 | +compiler=$CC |
2636 | +])# _LT_TAG_COMPILER |
2637 | + |
2638 | + |
2639 | +# _LT_COMPILER_BOILERPLATE |
2640 | +# ------------------------ |
2641 | +# Check for compiler boilerplate output or warnings with |
2642 | +# the simple compiler test code. |
2643 | +m4_defun([_LT_COMPILER_BOILERPLATE], |
2644 | +[m4_require([_LT_DECL_SED])dnl |
2645 | +ac_outfile=conftest.$ac_objext |
2646 | +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
2647 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
2648 | +_lt_compiler_boilerplate=`cat conftest.err` |
2649 | +$RM conftest* |
2650 | +])# _LT_COMPILER_BOILERPLATE |
2651 | + |
2652 | + |
2653 | +# _LT_LINKER_BOILERPLATE |
2654 | +# ---------------------- |
2655 | +# Check for linker boilerplate output or warnings with |
2656 | +# the simple link test code. |
2657 | +m4_defun([_LT_LINKER_BOILERPLATE], |
2658 | +[m4_require([_LT_DECL_SED])dnl |
2659 | +ac_outfile=conftest.$ac_objext |
2660 | +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
2661 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
2662 | +_lt_linker_boilerplate=`cat conftest.err` |
2663 | +$RM -r conftest* |
2664 | +])# _LT_LINKER_BOILERPLATE |
2665 | + |
2666 | +# _LT_REQUIRED_DARWIN_CHECKS |
2667 | +# ------------------------- |
2668 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
2669 | + case $host_os in |
2670 | + rhapsody* | darwin*) |
2671 | + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
2672 | + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
2673 | + AC_CHECK_TOOL([LIPO], [lipo], [:]) |
2674 | + AC_CHECK_TOOL([OTOOL], [otool], [:]) |
2675 | + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
2676 | + _LT_DECL([], [DSYMUTIL], [1], |
2677 | + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
2678 | + _LT_DECL([], [NMEDIT], [1], |
2679 | + [Tool to change global to local symbols on Mac OS X]) |
2680 | + _LT_DECL([], [LIPO], [1], |
2681 | + [Tool to manipulate fat objects and archives on Mac OS X]) |
2682 | + _LT_DECL([], [OTOOL], [1], |
2683 | + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
2684 | + _LT_DECL([], [OTOOL64], [1], |
2685 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
2686 | + |
2687 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
2688 | + [lt_cv_apple_cc_single_mod=no |
2689 | + if test -z "${LT_MULTI_MODULE}"; then |
2690 | + # By default we will add the -single_module flag. You can override |
2691 | + # by either setting the environment variable LT_MULTI_MODULE |
2692 | + # non-empty at configure time, or by adding -multi_module to the |
2693 | + # link flags. |
2694 | + rm -rf libconftest.dylib* |
2695 | + echo "int foo(void){return 1;}" > conftest.c |
2696 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
2697 | +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
2698 | + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
2699 | + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
2700 | + _lt_result=$? |
2701 | + # If there is a non-empty error log, and "single_module" |
2702 | + # appears in it, assume the flag caused a linker warning |
2703 | + if test -s conftest.err && $GREP single_module conftest.err; then |
2704 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
2705 | + # Otherwise, if the output was created with a 0 exit code from |
2706 | + # the compiler, it worked. |
2707 | + elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
2708 | + lt_cv_apple_cc_single_mod=yes |
2709 | + else |
2710 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
2711 | + fi |
2712 | + rm -rf libconftest.dylib* |
2713 | + rm -f conftest.* |
2714 | + fi]) |
2715 | + |
2716 | + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
2717 | + [lt_cv_ld_exported_symbols_list], |
2718 | + [lt_cv_ld_exported_symbols_list=no |
2719 | + save_LDFLAGS=$LDFLAGS |
2720 | + echo "_main" > conftest.sym |
2721 | + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
2722 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
2723 | + [lt_cv_ld_exported_symbols_list=yes], |
2724 | + [lt_cv_ld_exported_symbols_list=no]) |
2725 | + LDFLAGS="$save_LDFLAGS" |
2726 | + ]) |
2727 | + |
2728 | + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
2729 | + [lt_cv_ld_force_load=no |
2730 | + cat > conftest.c << _LT_EOF |
2731 | +int forced_loaded() { return 2;} |
2732 | +_LT_EOF |
2733 | + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD |
2734 | + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD |
2735 | + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD |
2736 | + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD |
2737 | + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD |
2738 | + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD |
2739 | + cat > conftest.c << _LT_EOF |
2740 | +int main() { return 0;} |
2741 | +_LT_EOF |
2742 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
2743 | + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
2744 | + _lt_result=$? |
2745 | + if test -s conftest.err && $GREP force_load conftest.err; then |
2746 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
2747 | + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
2748 | + lt_cv_ld_force_load=yes |
2749 | + else |
2750 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
2751 | + fi |
2752 | + rm -f conftest.err libconftest.a conftest conftest.c |
2753 | + rm -rf conftest.dSYM |
2754 | + ]) |
2755 | + case $host_os in |
2756 | + rhapsody* | darwin1.[[012]]) |
2757 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
2758 | + darwin1.*) |
2759 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
2760 | + darwin*) # darwin 5.x on |
2761 | + # if running on 10.5 or later, the deployment target defaults |
2762 | + # to the OS version, if on x86, and 10.4, the deployment |
2763 | + # target defaults to 10.4. Don't you love it? |
2764 | + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
2765 | + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
2766 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
2767 | + 10.[[012]]*) |
2768 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
2769 | + 10.*) |
2770 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
2771 | + esac |
2772 | + ;; |
2773 | + esac |
2774 | + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
2775 | + _lt_dar_single_mod='$single_module' |
2776 | + fi |
2777 | + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
2778 | + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
2779 | + else |
2780 | + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
2781 | + fi |
2782 | + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
2783 | + _lt_dsymutil='~$DSYMUTIL $lib || :' |
2784 | + else |
2785 | + _lt_dsymutil= |
2786 | + fi |
2787 | + ;; |
2788 | + esac |
2789 | +]) |
2790 | + |
2791 | + |
2792 | +# _LT_DARWIN_LINKER_FEATURES([TAG]) |
2793 | +# --------------------------------- |
2794 | +# Checks for linker and compiler features on darwin |
2795 | +m4_defun([_LT_DARWIN_LINKER_FEATURES], |
2796 | +[ |
2797 | + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
2798 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
2799 | + _LT_TAGVAR(hardcode_direct, $1)=no |
2800 | + _LT_TAGVAR(hardcode_automatic, $1)=yes |
2801 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
2802 | + if test "$lt_cv_ld_force_load" = "yes"; then |
2803 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
2804 | + m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
2805 | + [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
2806 | + else |
2807 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
2808 | + fi |
2809 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
2810 | + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
2811 | + case $cc_basename in |
2812 | + ifort*) _lt_dar_can_shared=yes ;; |
2813 | + *) _lt_dar_can_shared=$GCC ;; |
2814 | + esac |
2815 | + if test "$_lt_dar_can_shared" = "yes"; then |
2816 | + output_verbose_link_cmd=func_echo_all |
2817 | + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
2818 | + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
2819 | + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
2820 | + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
2821 | + m4_if([$1], [CXX], |
2822 | +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
2823 | + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
2824 | + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
2825 | + fi |
2826 | +],[]) |
2827 | + else |
2828 | + _LT_TAGVAR(ld_shlibs, $1)=no |
2829 | + fi |
2830 | +]) |
2831 | + |
2832 | +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
2833 | +# ---------------------------------- |
2834 | +# Links a minimal program and checks the executable |
2835 | +# for the system default hardcoded library path. In most cases, |
2836 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
2837 | +# the location of the communication and MPI libs are included too. |
2838 | +# If we don't find anything, use the default library path according |
2839 | +# to the aix ld manual. |
2840 | +# Store the results from the different compilers for each TAGNAME. |
2841 | +# Allow to override them for all tags through lt_cv_aix_libpath. |
2842 | +m4_defun([_LT_SYS_MODULE_PATH_AIX], |
2843 | +[m4_require([_LT_DECL_SED])dnl |
2844 | +if test "${lt_cv_aix_libpath+set}" = set; then |
2845 | + aix_libpath=$lt_cv_aix_libpath |
2846 | +else |
2847 | + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
2848 | + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
2849 | + lt_aix_libpath_sed='[ |
2850 | + /Import File Strings/,/^$/ { |
2851 | + /^0/ { |
2852 | + s/^0 *\([^ ]*\) *$/\1/ |
2853 | + p |
2854 | + } |
2855 | + }]' |
2856 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
2857 | + # Check for a 64-bit object if we didn't find anything. |
2858 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
2859 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
2860 | + fi],[]) |
2861 | + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
2862 | + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
2863 | + fi |
2864 | + ]) |
2865 | + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
2866 | +fi |
2867 | +])# _LT_SYS_MODULE_PATH_AIX |
2868 | + |
2869 | + |
2870 | +# _LT_SHELL_INIT(ARG) |
2871 | +# ------------------- |
2872 | +m4_define([_LT_SHELL_INIT], |
2873 | +[m4_divert_text([M4SH-INIT], [$1 |
2874 | +])])# _LT_SHELL_INIT |
2875 | + |
2876 | + |
2877 | + |
2878 | +# _LT_PROG_ECHO_BACKSLASH |
2879 | +# ----------------------- |
2880 | +# Find how we can fake an echo command that does not interpret backslash. |
2881 | +# In particular, with Autoconf 2.60 or later we add some code to the start |
2882 | +# of the generated configure script which will find a shell with a builtin |
2883 | +# printf (which we can use as an echo command). |
2884 | +m4_defun([_LT_PROG_ECHO_BACKSLASH], |
2885 | +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
2886 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
2887 | +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
2888 | + |
2889 | +AC_MSG_CHECKING([how to print strings]) |
2890 | +# Test print first, because it will be a builtin if present. |
2891 | +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
2892 | + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
2893 | + ECHO='print -r --' |
2894 | +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
2895 | + ECHO='printf %s\n' |
2896 | +else |
2897 | + # Use this function as a fallback that always works. |
2898 | + func_fallback_echo () |
2899 | + { |
2900 | + eval 'cat <<_LTECHO_EOF |
2901 | +$[]1 |
2902 | +_LTECHO_EOF' |
2903 | + } |
2904 | + ECHO='func_fallback_echo' |
2905 | +fi |
2906 | + |
2907 | +# func_echo_all arg... |
2908 | +# Invoke $ECHO with all args, space-separated. |
2909 | +func_echo_all () |
2910 | +{ |
2911 | + $ECHO "$*" |
2912 | +} |
2913 | + |
2914 | +case "$ECHO" in |
2915 | + printf*) AC_MSG_RESULT([printf]) ;; |
2916 | + print*) AC_MSG_RESULT([print -r]) ;; |
2917 | + *) AC_MSG_RESULT([cat]) ;; |
2918 | +esac |
2919 | + |
2920 | +m4_ifdef([_AS_DETECT_SUGGESTED], |
2921 | +[_AS_DETECT_SUGGESTED([ |
2922 | + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( |
2923 | + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
2924 | + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
2925 | + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
2926 | + PATH=/empty FPATH=/empty; export PATH FPATH |
2927 | + test "X`printf %s $ECHO`" = "X$ECHO" \ |
2928 | + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) |
2929 | + |
2930 | +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
2931 | +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
2932 | +])# _LT_PROG_ECHO_BACKSLASH |
2933 | + |
2934 | + |
2935 | +# _LT_WITH_SYSROOT |
2936 | +# ---------------- |
2937 | +AC_DEFUN([_LT_WITH_SYSROOT], |
2938 | +[AC_MSG_CHECKING([for sysroot]) |
2939 | +AC_ARG_WITH([sysroot], |
2940 | +[ --with-sysroot[=DIR] Search for dependent libraries within DIR |
2941 | + (or the compiler's sysroot if not specified).], |
2942 | +[], [with_sysroot=no]) |
2943 | + |
2944 | +dnl lt_sysroot will always be passed unquoted. We quote it here |
2945 | +dnl in case the user passed a directory name. |
2946 | +lt_sysroot= |
2947 | +case ${with_sysroot} in #( |
2948 | + yes) |
2949 | + if test "$GCC" = yes; then |
2950 | + lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
2951 | + fi |
2952 | + ;; #( |
2953 | + /*) |
2954 | + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
2955 | + ;; #( |
2956 | + no|'') |
2957 | + ;; #( |
2958 | + *) |
2959 | + AC_MSG_RESULT([${with_sysroot}]) |
2960 | + AC_MSG_ERROR([The sysroot must be an absolute path.]) |
2961 | + ;; |
2962 | +esac |
2963 | + |
2964 | + AC_MSG_RESULT([${lt_sysroot:-no}]) |
2965 | +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
2966 | +[dependent libraries, and in which our libraries should be installed.])]) |
2967 | + |
2968 | +# _LT_ENABLE_LOCK |
2969 | +# --------------- |
2970 | +m4_defun([_LT_ENABLE_LOCK], |
2971 | +[AC_ARG_ENABLE([libtool-lock], |
2972 | + [AS_HELP_STRING([--disable-libtool-lock], |
2973 | + [avoid locking (might break parallel builds)])]) |
2974 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
2975 | + |
2976 | +# Some flags need to be propagated to the compiler or linker for good |
2977 | +# libtool support. |
2978 | +case $host in |
2979 | +ia64-*-hpux*) |
2980 | + # Find out which ABI we are using. |
2981 | + echo 'int i;' > conftest.$ac_ext |
2982 | + if AC_TRY_EVAL(ac_compile); then |
2983 | + case `/usr/bin/file conftest.$ac_objext` in |
2984 | + *ELF-32*) |
2985 | + HPUX_IA64_MODE="32" |
2986 | + ;; |
2987 | + *ELF-64*) |
2988 | + HPUX_IA64_MODE="64" |
2989 | + ;; |
2990 | + esac |
2991 | + fi |
2992 | + rm -rf conftest* |
2993 | + ;; |
2994 | +*-*-irix6*) |
2995 | + # Find out which ABI we are using. |
2996 | + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext |
2997 | + if AC_TRY_EVAL(ac_compile); then |
2998 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
2999 | + case `/usr/bin/file conftest.$ac_objext` in |
3000 | + *32-bit*) |
3001 | + LD="${LD-ld} -melf32bsmip" |
3002 | + ;; |
3003 | + *N32*) |
3004 | + LD="${LD-ld} -melf32bmipn32" |
3005 | + ;; |
3006 | + *64-bit*) |
3007 | + LD="${LD-ld} -melf64bmip" |
3008 | + ;; |
3009 | + esac |
3010 | + else |
3011 | + case `/usr/bin/file conftest.$ac_objext` in |
3012 | + *32-bit*) |
3013 | + LD="${LD-ld} -32" |
3014 | + ;; |
3015 | + *N32*) |
3016 | + LD="${LD-ld} -n32" |
3017 | + ;; |
3018 | + *64-bit*) |
3019 | + LD="${LD-ld} -64" |
3020 | + ;; |
3021 | + esac |
3022 | + fi |
3023 | + fi |
3024 | + rm -rf conftest* |
3025 | + ;; |
3026 | + |
3027 | +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
3028 | +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
3029 | + # Find out which ABI we are using. |
3030 | + echo 'int i;' > conftest.$ac_ext |
3031 | + if AC_TRY_EVAL(ac_compile); then |
3032 | + case `/usr/bin/file conftest.o` in |
3033 | + *32-bit*) |
3034 | + case $host in |
3035 | + x86_64-*kfreebsd*-gnu) |
3036 | + LD="${LD-ld} -m elf_i386_fbsd" |
3037 | + ;; |
3038 | + x86_64-*linux*) |
3039 | + LD="${LD-ld} -m elf_i386" |
3040 | + ;; |
3041 | + ppc64-*linux*|powerpc64-*linux*) |
3042 | + LD="${LD-ld} -m elf32ppclinux" |
3043 | + ;; |
3044 | + s390x-*linux*) |
3045 | + LD="${LD-ld} -m elf_s390" |
3046 | + ;; |
3047 | + sparc64-*linux*) |
3048 | + LD="${LD-ld} -m elf32_sparc" |
3049 | + ;; |
3050 | + esac |
3051 | + ;; |
3052 | + *64-bit*) |
3053 | + case $host in |
3054 | + x86_64-*kfreebsd*-gnu) |
3055 | + LD="${LD-ld} -m elf_x86_64_fbsd" |
3056 | + ;; |
3057 | + x86_64-*linux*) |
3058 | + LD="${LD-ld} -m elf_x86_64" |
3059 | + ;; |
3060 | + ppc*-*linux*|powerpc*-*linux*) |
3061 | + LD="${LD-ld} -m elf64ppc" |
3062 | + ;; |
3063 | + s390*-*linux*|s390*-*tpf*) |
3064 | + LD="${LD-ld} -m elf64_s390" |
3065 | + ;; |
3066 | + sparc*-*linux*) |
3067 | + LD="${LD-ld} -m elf64_sparc" |
3068 | + ;; |
3069 | + esac |
3070 | + ;; |
3071 | + esac |
3072 | + fi |
3073 | + rm -rf conftest* |
3074 | + ;; |
3075 | + |
3076 | +*-*-sco3.2v5*) |
3077 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
3078 | + SAVE_CFLAGS="$CFLAGS" |
3079 | + CFLAGS="$CFLAGS -belf" |
3080 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
3081 | + [AC_LANG_PUSH(C) |
3082 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
3083 | + AC_LANG_POP]) |
3084 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3085 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3086 | + CFLAGS="$SAVE_CFLAGS" |
3087 | + fi |
3088 | + ;; |
3089 | +*-*solaris*) |
3090 | + # Find out which ABI we are using. |
3091 | + echo 'int i;' > conftest.$ac_ext |
3092 | + if AC_TRY_EVAL(ac_compile); then |
3093 | + case `/usr/bin/file conftest.o` in |
3094 | + *64-bit*) |
3095 | + case $lt_cv_prog_gnu_ld in |
3096 | + yes*) |
3097 | + case $host in |
3098 | + i?86-*-solaris*) |
3099 | + LD="${LD-ld} -m elf_x86_64" |
3100 | + ;; |
3101 | + sparc*-*-solaris*) |
3102 | + LD="${LD-ld} -m elf64_sparc" |
3103 | + ;; |
3104 | + esac |
3105 | + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
3106 | + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
3107 | + LD="${LD-ld}_sol2" |
3108 | + fi |
3109 | + ;; |
3110 | + *) |
3111 | + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
3112 | + LD="${LD-ld} -64" |
3113 | + fi |
3114 | + ;; |
3115 | + esac |
3116 | + ;; |
3117 | + esac |
3118 | + fi |
3119 | + rm -rf conftest* |
3120 | + ;; |
3121 | +esac |
3122 | + |
3123 | +need_locks="$enable_libtool_lock" |
3124 | +])# _LT_ENABLE_LOCK |
3125 | + |
3126 | + |
3127 | +# _LT_PROG_AR |
3128 | +# ----------- |
3129 | +m4_defun([_LT_PROG_AR], |
3130 | +[AC_CHECK_TOOLS(AR, [ar], false) |
3131 | +: ${AR=ar} |
3132 | +: ${AR_FLAGS=cru} |
3133 | +_LT_DECL([], [AR], [1], [The archiver]) |
3134 | +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
3135 | + |
3136 | +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
3137 | + [lt_cv_ar_at_file=no |
3138 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
3139 | + [echo conftest.$ac_objext > conftest.lst |
3140 | + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
3141 | + AC_TRY_EVAL([lt_ar_try]) |
3142 | + if test "$ac_status" -eq 0; then |
3143 | + # Ensure the archiver fails upon bogus file names. |
3144 | + rm -f conftest.$ac_objext libconftest.a |
3145 | + AC_TRY_EVAL([lt_ar_try]) |
3146 | + if test "$ac_status" -ne 0; then |
3147 | + lt_cv_ar_at_file=@ |
3148 | + fi |
3149 | + fi |
3150 | + rm -f conftest.* libconftest.a |
3151 | + ]) |
3152 | + ]) |
3153 | + |
3154 | +if test "x$lt_cv_ar_at_file" = xno; then |
3155 | + archiver_list_spec= |
3156 | +else |
3157 | + archiver_list_spec=$lt_cv_ar_at_file |
3158 | +fi |
3159 | +_LT_DECL([], [archiver_list_spec], [1], |
3160 | + [How to feed a file listing to the archiver]) |
3161 | +])# _LT_PROG_AR |
3162 | + |
3163 | + |
3164 | +# _LT_CMD_OLD_ARCHIVE |
3165 | +# ------------------- |
3166 | +m4_defun([_LT_CMD_OLD_ARCHIVE], |
3167 | +[_LT_PROG_AR |
3168 | + |
3169 | +AC_CHECK_TOOL(STRIP, strip, :) |
3170 | +test -z "$STRIP" && STRIP=: |
3171 | +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
3172 | + |
3173 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
3174 | +test -z "$RANLIB" && RANLIB=: |
3175 | +_LT_DECL([], [RANLIB], [1], |
3176 | + [Commands used to install an old-style archive]) |
3177 | + |
3178 | +# Determine commands to create old-style static archives. |
3179 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
3180 | +old_postinstall_cmds='chmod 644 $oldlib' |
3181 | +old_postuninstall_cmds= |
3182 | + |
3183 | +if test -n "$RANLIB"; then |
3184 | + case $host_os in |
3185 | + openbsd*) |
3186 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
3187 | + ;; |
3188 | + *) |
3189 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
3190 | + ;; |
3191 | + esac |
3192 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
3193 | +fi |
3194 | + |
3195 | +case $host_os in |
3196 | + darwin*) |
3197 | + lock_old_archive_extraction=yes ;; |
3198 | + *) |
3199 | + lock_old_archive_extraction=no ;; |
3200 | +esac |
3201 | +_LT_DECL([], [old_postinstall_cmds], [2]) |
3202 | +_LT_DECL([], [old_postuninstall_cmds], [2]) |
3203 | +_LT_TAGDECL([], [old_archive_cmds], [2], |
3204 | + [Commands used to build an old-style archive]) |
3205 | +_LT_DECL([], [lock_old_archive_extraction], [0], |
3206 | + [Whether to use a lock for old archive extraction]) |
3207 | +])# _LT_CMD_OLD_ARCHIVE |
3208 | + |
3209 | + |
3210 | +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
3211 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
3212 | +# ---------------------------------------------------------------- |
3213 | +# Check whether the given compiler option works |
3214 | +AC_DEFUN([_LT_COMPILER_OPTION], |
3215 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3216 | +m4_require([_LT_DECL_SED])dnl |
3217 | +AC_CACHE_CHECK([$1], [$2], |
3218 | + [$2=no |
3219 | + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
3220 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
3221 | + lt_compiler_flag="$3" |
3222 | + # Insert the option either (1) after the last *FLAGS variable, or |
3223 | + # (2) before a word containing "conftest.", or (3) at the end. |
3224 | + # Note that $ac_compile itself does not contain backslashes and begins |
3225 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
3226 | + # The option is referenced via a variable to avoid confusing sed. |
3227 | + lt_compile=`echo "$ac_compile" | $SED \ |
3228 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
3229 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
3230 | + -e 's:$: $lt_compiler_flag:'` |
3231 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
3232 | + (eval "$lt_compile" 2>conftest.err) |
3233 | + ac_status=$? |
3234 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
3235 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
3236 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
3237 | + # The compiler can only warn and ignore the option if not recognized |
3238 | + # So say no if there are warnings other than the usual output. |
3239 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
3240 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
3241 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
3242 | + $2=yes |
3243 | + fi |
3244 | + fi |
3245 | + $RM conftest* |
3246 | +]) |
3247 | + |
3248 | +if test x"[$]$2" = xyes; then |
3249 | + m4_if([$5], , :, [$5]) |
3250 | +else |
3251 | + m4_if([$6], , :, [$6]) |
3252 | +fi |
3253 | +])# _LT_COMPILER_OPTION |
3254 | + |
3255 | +# Old name: |
3256 | +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
3257 | +dnl aclocal-1.4 backwards compatibility: |
3258 | +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
3259 | + |
3260 | + |
3261 | +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
3262 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
3263 | +# ---------------------------------------------------- |
3264 | +# Check whether the given linker option works |
3265 | +AC_DEFUN([_LT_LINKER_OPTION], |
3266 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3267 | +m4_require([_LT_DECL_SED])dnl |
3268 | +AC_CACHE_CHECK([$1], [$2], |
3269 | + [$2=no |
3270 | + save_LDFLAGS="$LDFLAGS" |
3271 | + LDFLAGS="$LDFLAGS $3" |
3272 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
3273 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
3274 | + # The linker can only warn and ignore the option if not recognized |
3275 | + # So say no if there are warnings |
3276 | + if test -s conftest.err; then |
3277 | + # Append any errors to the config.log. |
3278 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
3279 | + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
3280 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
3281 | + if diff conftest.exp conftest.er2 >/dev/null; then |
3282 | + $2=yes |
3283 | + fi |
3284 | + else |
3285 | + $2=yes |
3286 | + fi |
3287 | + fi |
3288 | + $RM -r conftest* |
3289 | + LDFLAGS="$save_LDFLAGS" |
3290 | +]) |
3291 | + |
3292 | +if test x"[$]$2" = xyes; then |
3293 | + m4_if([$4], , :, [$4]) |
3294 | +else |
3295 | + m4_if([$5], , :, [$5]) |
3296 | +fi |
3297 | +])# _LT_LINKER_OPTION |
3298 | + |
3299 | +# Old name: |
3300 | +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
3301 | +dnl aclocal-1.4 backwards compatibility: |
3302 | +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
3303 | + |
3304 | + |
3305 | +# LT_CMD_MAX_LEN |
3306 | +#--------------- |
3307 | +AC_DEFUN([LT_CMD_MAX_LEN], |
3308 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3309 | +# find the maximum length of command line arguments |
3310 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
3311 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
3312 | + i=0 |
3313 | + teststring="ABCD" |
3314 | + |
3315 | + case $build_os in |
3316 | + msdosdjgpp*) |
3317 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
3318 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
3319 | + # during glob expansion). Even if it were fixed, the result of this |
3320 | + # check would be larger than it should be. |
3321 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
3322 | + ;; |
3323 | + |
3324 | + gnu*) |
3325 | + # Under GNU Hurd, this test is not required because there is |
3326 | + # no limit to the length of command line arguments. |
3327 | + # Libtool will interpret -1 as no limit whatsoever |
3328 | + lt_cv_sys_max_cmd_len=-1; |
3329 | + ;; |
3330 | + |
3331 | + cygwin* | mingw* | cegcc*) |
3332 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
3333 | + # about 5 minutes as the teststring grows exponentially. |
3334 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
3335 | + # you end up with a "frozen" computer, even though with patience |
3336 | + # the test eventually succeeds (with a max line length of 256k). |
3337 | + # Instead, let's just punt: use the minimum linelength reported by |
3338 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
3339 | + lt_cv_sys_max_cmd_len=8192; |
3340 | + ;; |
3341 | + |
3342 | + mint*) |
3343 | + # On MiNT this can take a long time and run out of memory. |
3344 | + lt_cv_sys_max_cmd_len=8192; |
3345 | + ;; |
3346 | + |
3347 | + amigaos*) |
3348 | + # On AmigaOS with pdksh, this test takes hours, literally. |
3349 | + # So we just punt and use a minimum line length of 8192. |
3350 | + lt_cv_sys_max_cmd_len=8192; |
3351 | + ;; |
3352 | + |
3353 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
3354 | + # This has been around since 386BSD, at least. Likely further. |
3355 | + if test -x /sbin/sysctl; then |
3356 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
3357 | + elif test -x /usr/sbin/sysctl; then |
3358 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
3359 | + else |
3360 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
3361 | + fi |
3362 | + # And add a safety zone |
3363 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3364 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3365 | + ;; |
3366 | + |
3367 | + interix*) |
3368 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
3369 | + lt_cv_sys_max_cmd_len=196608 |
3370 | + ;; |
3371 | + |
3372 | + os2*) |
3373 | + # The test takes a long time on OS/2. |
3374 | + lt_cv_sys_max_cmd_len=8192 |
3375 | + ;; |
3376 | + |
3377 | + osf*) |
3378 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
3379 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
3380 | + # nice to cause kernel panics so lets avoid the loop below. |
3381 | + # First set a reasonable default. |
3382 | + lt_cv_sys_max_cmd_len=16384 |
3383 | + # |
3384 | + if test -x /sbin/sysconfig; then |
3385 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
3386 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
3387 | + esac |
3388 | + fi |
3389 | + ;; |
3390 | + sco3.2v5*) |
3391 | + lt_cv_sys_max_cmd_len=102400 |
3392 | + ;; |
3393 | + sysv5* | sco5v6* | sysv4.2uw2*) |
3394 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
3395 | + if test -n "$kargmax"; then |
3396 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
3397 | + else |
3398 | + lt_cv_sys_max_cmd_len=32768 |
3399 | + fi |
3400 | + ;; |
3401 | + *) |
3402 | + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
3403 | + if test -n "$lt_cv_sys_max_cmd_len"; then |
3404 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3405 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3406 | + else |
3407 | + # Make teststring a little bigger before we do anything with it. |
3408 | + # a 1K string should be a reasonable start. |
3409 | + for i in 1 2 3 4 5 6 7 8 ; do |
3410 | + teststring=$teststring$teststring |
3411 | + done |
3412 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
3413 | + # If test is not a shell built-in, we'll probably end up computing a |
3414 | + # maximum length that is only half of the actual maximum length, but |
3415 | + # we can't tell. |
3416 | + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
3417 | + = "X$teststring$teststring"; } >/dev/null 2>&1 && |
3418 | + test $i != 17 # 1/2 MB should be enough |
3419 | + do |
3420 | + i=`expr $i + 1` |
3421 | + teststring=$teststring$teststring |
3422 | + done |
3423 | + # Only check the string length outside the loop. |
3424 | + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
3425 | + teststring= |
3426 | + # Add a significant safety factor because C++ compilers can tack on |
3427 | + # massive amounts of additional arguments before passing them to the |
3428 | + # linker. It appears as though 1/2 is a usable value. |
3429 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
3430 | + fi |
3431 | + ;; |
3432 | + esac |
3433 | +]) |
3434 | +if test -n $lt_cv_sys_max_cmd_len ; then |
3435 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
3436 | +else |
3437 | + AC_MSG_RESULT(none) |
3438 | +fi |
3439 | +max_cmd_len=$lt_cv_sys_max_cmd_len |
3440 | +_LT_DECL([], [max_cmd_len], [0], |
3441 | + [What is the maximum length of a command?]) |
3442 | +])# LT_CMD_MAX_LEN |
3443 | + |
3444 | +# Old name: |
3445 | +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
3446 | +dnl aclocal-1.4 backwards compatibility: |
3447 | +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
3448 | + |
3449 | + |
3450 | +# _LT_HEADER_DLFCN |
3451 | +# ---------------- |
3452 | +m4_defun([_LT_HEADER_DLFCN], |
3453 | +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
3454 | +])# _LT_HEADER_DLFCN |
3455 | + |
3456 | + |
3457 | +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
3458 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
3459 | +# ---------------------------------------------------------------- |
3460 | +m4_defun([_LT_TRY_DLOPEN_SELF], |
3461 | +[m4_require([_LT_HEADER_DLFCN])dnl |
3462 | +if test "$cross_compiling" = yes; then : |
3463 | + [$4] |
3464 | +else |
3465 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
3466 | + lt_status=$lt_dlunknown |
3467 | + cat > conftest.$ac_ext <<_LT_EOF |
3468 | +[#line $LINENO "configure" |
3469 | +#include "confdefs.h" |
3470 | + |
3471 | +#if HAVE_DLFCN_H |
3472 | +#include <dlfcn.h> |
3473 | +#endif |
3474 | + |
3475 | +#include <stdio.h> |
3476 | + |
3477 | +#ifdef RTLD_GLOBAL |
3478 | +# define LT_DLGLOBAL RTLD_GLOBAL |
3479 | +#else |
3480 | +# ifdef DL_GLOBAL |
3481 | +# define LT_DLGLOBAL DL_GLOBAL |
3482 | +# else |
3483 | +# define LT_DLGLOBAL 0 |
3484 | +# endif |
3485 | +#endif |
3486 | + |
3487 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
3488 | + find out it does not work in some platform. */ |
3489 | +#ifndef LT_DLLAZY_OR_NOW |
3490 | +# ifdef RTLD_LAZY |
3491 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
3492 | +# else |
3493 | +# ifdef DL_LAZY |
3494 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
3495 | +# else |
3496 | +# ifdef RTLD_NOW |
3497 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
3498 | +# else |
3499 | +# ifdef DL_NOW |
3500 | +# define LT_DLLAZY_OR_NOW DL_NOW |
3501 | +# else |
3502 | +# define LT_DLLAZY_OR_NOW 0 |
3503 | +# endif |
3504 | +# endif |
3505 | +# endif |
3506 | +# endif |
3507 | +#endif |
3508 | + |
3509 | +/* When -fvisbility=hidden is used, assume the code has been annotated |
3510 | + correspondingly for the symbols needed. */ |
3511 | +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
3512 | +int fnord () __attribute__((visibility("default"))); |
3513 | +#endif |
3514 | + |
3515 | +int fnord () { return 42; } |
3516 | +int main () |
3517 | +{ |
3518 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
3519 | + int status = $lt_dlunknown; |
3520 | + |
3521 | + if (self) |
3522 | + { |
3523 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
3524 | + else |
3525 | + { |
3526 | + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
3527 | + else puts (dlerror ()); |
3528 | + } |
3529 | + /* dlclose (self); */ |
3530 | + } |
3531 | + else |
3532 | + puts (dlerror ()); |
3533 | + |
3534 | + return status; |
3535 | +}] |
3536 | +_LT_EOF |
3537 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
3538 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
3539 | + lt_status=$? |
3540 | + case x$lt_status in |
3541 | + x$lt_dlno_uscore) $1 ;; |
3542 | + x$lt_dlneed_uscore) $2 ;; |
3543 | + x$lt_dlunknown|x*) $3 ;; |
3544 | + esac |
3545 | + else : |
3546 | + # compilation failed |
3547 | + $3 |
3548 | + fi |
3549 | +fi |
3550 | +rm -fr conftest* |
3551 | +])# _LT_TRY_DLOPEN_SELF |
3552 | + |
3553 | + |
3554 | +# LT_SYS_DLOPEN_SELF |
3555 | +# ------------------ |
3556 | +AC_DEFUN([LT_SYS_DLOPEN_SELF], |
3557 | +[m4_require([_LT_HEADER_DLFCN])dnl |
3558 | +if test "x$enable_dlopen" != xyes; then |
3559 | + enable_dlopen=unknown |
3560 | + enable_dlopen_self=unknown |
3561 | + enable_dlopen_self_static=unknown |
3562 | +else |
3563 | + lt_cv_dlopen=no |
3564 | + lt_cv_dlopen_libs= |
3565 | + |
3566 | + case $host_os in |
3567 | + beos*) |
3568 | + lt_cv_dlopen="load_add_on" |
3569 | + lt_cv_dlopen_libs= |
3570 | + lt_cv_dlopen_self=yes |
3571 | + ;; |
3572 | + |
3573 | + mingw* | pw32* | cegcc*) |
3574 | + lt_cv_dlopen="LoadLibrary" |
3575 | + lt_cv_dlopen_libs= |
3576 | + ;; |
3577 | + |
3578 | + cygwin*) |
3579 | + lt_cv_dlopen="dlopen" |
3580 | + lt_cv_dlopen_libs= |
3581 | + ;; |
3582 | + |
3583 | + darwin*) |
3584 | + # if libdl is installed we need to link against it |
3585 | + AC_CHECK_LIB([dl], [dlopen], |
3586 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
3587 | + lt_cv_dlopen="dyld" |
3588 | + lt_cv_dlopen_libs= |
3589 | + lt_cv_dlopen_self=yes |
3590 | + ]) |
3591 | + ;; |
3592 | + |
3593 | + *) |
3594 | + AC_CHECK_FUNC([shl_load], |
3595 | + [lt_cv_dlopen="shl_load"], |
3596 | + [AC_CHECK_LIB([dld], [shl_load], |
3597 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
3598 | + [AC_CHECK_FUNC([dlopen], |
3599 | + [lt_cv_dlopen="dlopen"], |
3600 | + [AC_CHECK_LIB([dl], [dlopen], |
3601 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
3602 | + [AC_CHECK_LIB([svld], [dlopen], |
3603 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
3604 | + [AC_CHECK_LIB([dld], [dld_link], |
3605 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
3606 | + ]) |
3607 | + ]) |
3608 | + ]) |
3609 | + ]) |
3610 | + ]) |
3611 | + ;; |
3612 | + esac |
3613 | + |
3614 | + if test "x$lt_cv_dlopen" != xno; then |
3615 | + enable_dlopen=yes |
3616 | + else |
3617 | + enable_dlopen=no |
3618 | + fi |
3619 | + |
3620 | + case $lt_cv_dlopen in |
3621 | + dlopen) |
3622 | + save_CPPFLAGS="$CPPFLAGS" |
3623 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
3624 | + |
3625 | + save_LDFLAGS="$LDFLAGS" |
3626 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
3627 | + |
3628 | + save_LIBS="$LIBS" |
3629 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
3630 | + |
3631 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
3632 | + lt_cv_dlopen_self, [dnl |
3633 | + _LT_TRY_DLOPEN_SELF( |
3634 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
3635 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
3636 | + ]) |
3637 | + |
3638 | + if test "x$lt_cv_dlopen_self" = xyes; then |
3639 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
3640 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
3641 | + lt_cv_dlopen_self_static, [dnl |
3642 | + _LT_TRY_DLOPEN_SELF( |
3643 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
3644 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
3645 | + ]) |
3646 | + fi |
3647 | + |
3648 | + CPPFLAGS="$save_CPPFLAGS" |
3649 | + LDFLAGS="$save_LDFLAGS" |
3650 | + LIBS="$save_LIBS" |
3651 | + ;; |
3652 | + esac |
3653 | + |
3654 | + case $lt_cv_dlopen_self in |
3655 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
3656 | + *) enable_dlopen_self=unknown ;; |
3657 | + esac |
3658 | + |
3659 | + case $lt_cv_dlopen_self_static in |
3660 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
3661 | + *) enable_dlopen_self_static=unknown ;; |
3662 | + esac |
3663 | +fi |
3664 | +_LT_DECL([dlopen_support], [enable_dlopen], [0], |
3665 | + [Whether dlopen is supported]) |
3666 | +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
3667 | + [Whether dlopen of programs is supported]) |
3668 | +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
3669 | + [Whether dlopen of statically linked programs is supported]) |
3670 | +])# LT_SYS_DLOPEN_SELF |
3671 | + |
3672 | +# Old name: |
3673 | +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
3674 | +dnl aclocal-1.4 backwards compatibility: |
3675 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
3676 | + |
3677 | + |
3678 | +# _LT_COMPILER_C_O([TAGNAME]) |
3679 | +# --------------------------- |
3680 | +# Check to see if options -c and -o are simultaneously supported by compiler. |
3681 | +# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
3682 | +m4_defun([_LT_COMPILER_C_O], |
3683 | +[m4_require([_LT_DECL_SED])dnl |
3684 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3685 | +m4_require([_LT_TAG_COMPILER])dnl |
3686 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
3687 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
3688 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
3689 | + $RM -r conftest 2>/dev/null |
3690 | + mkdir conftest |
3691 | + cd conftest |
3692 | + mkdir out |
3693 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
3694 | + |
3695 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
3696 | + # Insert the option either (1) after the last *FLAGS variable, or |
3697 | + # (2) before a word containing "conftest.", or (3) at the end. |
3698 | + # Note that $ac_compile itself does not contain backslashes and begins |
3699 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
3700 | + lt_compile=`echo "$ac_compile" | $SED \ |
3701 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
3702 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
3703 | + -e 's:$: $lt_compiler_flag:'` |
3704 | + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
3705 | + (eval "$lt_compile" 2>out/conftest.err) |
3706 | + ac_status=$? |
3707 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
3708 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
3709 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
3710 | + then |
3711 | + # The compiler can only warn and ignore the option if not recognized |
3712 | + # So say no if there are warnings |
3713 | + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
3714 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
3715 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
3716 | + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
3717 | + fi |
3718 | + fi |
3719 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
3720 | + $RM conftest* |
3721 | + # SGI C++ compiler will create directory out/ii_files/ for |
3722 | + # template instantiation |
3723 | + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
3724 | + $RM out/* && rmdir out |
3725 | + cd .. |
3726 | + $RM -r conftest |
3727 | + $RM conftest* |
3728 | +]) |
3729 | +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
3730 | + [Does compiler simultaneously support -c and -o options?]) |
3731 | +])# _LT_COMPILER_C_O |
3732 | + |
3733 | + |
3734 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
3735 | +# ---------------------------------- |
3736 | +# Check to see if we can do hard links to lock some files if needed |
3737 | +m4_defun([_LT_COMPILER_FILE_LOCKS], |
3738 | +[m4_require([_LT_ENABLE_LOCK])dnl |
3739 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3740 | +_LT_COMPILER_C_O([$1]) |
3741 | + |
3742 | +hard_links="nottested" |
3743 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
3744 | + # do not overwrite the value of need_locks provided by the user |
3745 | + AC_MSG_CHECKING([if we can lock with hard links]) |
3746 | + hard_links=yes |
3747 | + $RM conftest* |
3748 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
3749 | + touch conftest.a |
3750 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
3751 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
3752 | + AC_MSG_RESULT([$hard_links]) |
3753 | + if test "$hard_links" = no; then |
3754 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
3755 | + need_locks=warn |
3756 | + fi |
3757 | +else |
3758 | + need_locks=no |
3759 | +fi |
3760 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
3761 | +])# _LT_COMPILER_FILE_LOCKS |
3762 | + |
3763 | + |
3764 | +# _LT_CHECK_OBJDIR |
3765 | +# ---------------- |
3766 | +m4_defun([_LT_CHECK_OBJDIR], |
3767 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
3768 | +[rm -f .libs 2>/dev/null |
3769 | +mkdir .libs 2>/dev/null |
3770 | +if test -d .libs; then |
3771 | + lt_cv_objdir=.libs |
3772 | +else |
3773 | + # MS-DOS does not allow filenames that begin with a dot. |
3774 | + lt_cv_objdir=_libs |
3775 | +fi |
3776 | +rmdir .libs 2>/dev/null]) |
3777 | +objdir=$lt_cv_objdir |
3778 | +_LT_DECL([], [objdir], [0], |
3779 | + [The name of the directory that contains temporary libtool files])dnl |
3780 | +m4_pattern_allow([LT_OBJDIR])dnl |
3781 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
3782 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
3783 | +])# _LT_CHECK_OBJDIR |
3784 | + |
3785 | + |
3786 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
3787 | +# -------------------------------------- |
3788 | +# Check hardcoding attributes. |
3789 | +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
3790 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
3791 | +_LT_TAGVAR(hardcode_action, $1)= |
3792 | +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
3793 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || |
3794 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
3795 | + |
3796 | + # We can hardcode non-existent directories. |
3797 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
3798 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
3799 | + # have to relink, otherwise we might link with an installed library |
3800 | + # when we should be linking with a yet-to-be-installed one |
3801 | + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
3802 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
3803 | + # Linking always hardcodes the temporary library directory. |
3804 | + _LT_TAGVAR(hardcode_action, $1)=relink |
3805 | + else |
3806 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
3807 | + _LT_TAGVAR(hardcode_action, $1)=immediate |
3808 | + fi |
3809 | +else |
3810 | + # We cannot hardcode anything, or else we can only hardcode existing |
3811 | + # directories. |
3812 | + _LT_TAGVAR(hardcode_action, $1)=unsupported |
3813 | +fi |
3814 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
3815 | + |
3816 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
3817 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
3818 | + # Fast installation is not supported |
3819 | + enable_fast_install=no |
3820 | +elif test "$shlibpath_overrides_runpath" = yes || |
3821 | + test "$enable_shared" = no; then |
3822 | + # Fast installation is not necessary |
3823 | + enable_fast_install=needless |
3824 | +fi |
3825 | +_LT_TAGDECL([], [hardcode_action], [0], |
3826 | + [How to hardcode a shared library path into an executable]) |
3827 | +])# _LT_LINKER_HARDCODE_LIBPATH |
3828 | + |
3829 | + |
3830 | +# _LT_CMD_STRIPLIB |
3831 | +# ---------------- |
3832 | +m4_defun([_LT_CMD_STRIPLIB], |
3833 | +[m4_require([_LT_DECL_EGREP]) |
3834 | +striplib= |
3835 | +old_striplib= |
3836 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
3837 | +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
3838 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
3839 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
3840 | + AC_MSG_RESULT([yes]) |
3841 | +else |
3842 | +# FIXME - insert some real tests, host_os isn't really good enough |
3843 | + case $host_os in |
3844 | + darwin*) |
3845 | + if test -n "$STRIP" ; then |
3846 | + striplib="$STRIP -x" |
3847 | + old_striplib="$STRIP -S" |
3848 | + AC_MSG_RESULT([yes]) |
3849 | + else |
3850 | + AC_MSG_RESULT([no]) |
3851 | + fi |
3852 | + ;; |
3853 | + *) |
3854 | + AC_MSG_RESULT([no]) |
3855 | + ;; |
3856 | + esac |
3857 | +fi |
3858 | +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
3859 | +_LT_DECL([], [striplib], [1]) |
3860 | +])# _LT_CMD_STRIPLIB |
3861 | + |
3862 | + |
3863 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) |
3864 | +# ----------------------------- |
3865 | +# PORTME Fill in your ld.so characteristics |
3866 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], |
3867 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3868 | +m4_require([_LT_DECL_EGREP])dnl |
3869 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3870 | +m4_require([_LT_DECL_OBJDUMP])dnl |
3871 | +m4_require([_LT_DECL_SED])dnl |
3872 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
3873 | +AC_MSG_CHECKING([dynamic linker characteristics]) |
3874 | +m4_if([$1], |
3875 | + [], [ |
3876 | +if test "$GCC" = yes; then |
3877 | + case $host_os in |
3878 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
3879 | + *) lt_awk_arg="/^libraries:/" ;; |
3880 | + esac |
3881 | + case $host_os in |
3882 | + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; |
3883 | + *) lt_sed_strip_eq="s,=/,/,g" ;; |
3884 | + esac |
3885 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
3886 | + case $lt_search_path_spec in |
3887 | + *\;*) |
3888 | + # if the path contains ";" then we assume it to be the separator |
3889 | + # otherwise default to the standard path separator (i.e. ":") - it is |
3890 | + # assumed that no part of a normal pathname contains ";" but that should |
3891 | + # okay in the real world where ";" in dirpaths is itself problematic. |
3892 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
3893 | + ;; |
3894 | + *) |
3895 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
3896 | + ;; |
3897 | + esac |
3898 | + # Ok, now we have the path, separated by spaces, we can step through it |
3899 | + # and add multilib dir if necessary. |
3900 | + lt_tmp_lt_search_path_spec= |
3901 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
3902 | + for lt_sys_path in $lt_search_path_spec; do |
3903 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
3904 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
3905 | + else |
3906 | + test -d "$lt_sys_path" && \ |
3907 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
3908 | + fi |
3909 | + done |
3910 | + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
3911 | +BEGIN {RS=" "; FS="/|\n";} { |
3912 | + lt_foo=""; |
3913 | + lt_count=0; |
3914 | + for (lt_i = NF; lt_i > 0; lt_i--) { |
3915 | + if ($lt_i != "" && $lt_i != ".") { |
3916 | + if ($lt_i == "..") { |
3917 | + lt_count++; |
3918 | + } else { |
3919 | + if (lt_count == 0) { |
3920 | + lt_foo="/" $lt_i lt_foo; |
3921 | + } else { |
3922 | + lt_count--; |
3923 | + } |
3924 | + } |
3925 | + } |
3926 | + } |
3927 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
3928 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
3929 | +}'` |
3930 | + # AWK program above erroneously prepends '/' to C:/dos/paths |
3931 | + # for these hosts. |
3932 | + case $host_os in |
3933 | + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
3934 | + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; |
3935 | + esac |
3936 | + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
3937 | +else |
3938 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
3939 | +fi]) |
3940 | +library_names_spec= |
3941 | +libname_spec='lib$name' |
3942 | +soname_spec= |
3943 | +shrext_cmds=".so" |
3944 | +postinstall_cmds= |
3945 | +postuninstall_cmds= |
3946 | +finish_cmds= |
3947 | +finish_eval= |
3948 | +shlibpath_var= |
3949 | +shlibpath_overrides_runpath=unknown |
3950 | +version_type=none |
3951 | +dynamic_linker="$host_os ld.so" |
3952 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
3953 | +need_lib_prefix=unknown |
3954 | +hardcode_into_libs=no |
3955 | + |
3956 | +# when you set need_version to no, make sure it does not cause -set_version |
3957 | +# flags to be left without arguments |
3958 | +need_version=unknown |
3959 | + |
3960 | +case $host_os in |
3961 | +aix3*) |
3962 | + version_type=linux # correct to gnu/linux during the next big refactor |
3963 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
3964 | + shlibpath_var=LIBPATH |
3965 | + |
3966 | + # AIX 3 has no versioning support, so we append a major version to the name. |
3967 | + soname_spec='${libname}${release}${shared_ext}$major' |
3968 | + ;; |
3969 | + |
3970 | +aix[[4-9]]*) |
3971 | + version_type=linux # correct to gnu/linux during the next big refactor |
3972 | + need_lib_prefix=no |
3973 | + need_version=no |
3974 | + hardcode_into_libs=yes |
3975 | + if test "$host_cpu" = ia64; then |
3976 | + # AIX 5 supports IA64 |
3977 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
3978 | + shlibpath_var=LD_LIBRARY_PATH |
3979 | + else |
3980 | + # With GCC up to 2.95.x, collect2 would create an import file |
3981 | + # for dependence libraries. The import file would start with |
3982 | + # the line `#! .'. This would cause the generated library to |
3983 | + # depend on `.', always an invalid library. This was fixed in |
3984 | + # development snapshots of GCC prior to 3.0. |
3985 | + case $host_os in |
3986 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
3987 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
3988 | + echo ' yes ' |
3989 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
3990 | + : |
3991 | + else |
3992 | + can_build_shared=no |
3993 | + fi |
3994 | + ;; |
3995 | + esac |
3996 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
3997 | + # soname into executable. Probably we can add versioning support to |
3998 | + # collect2, so additional links can be useful in future. |
3999 | + if test "$aix_use_runtimelinking" = yes; then |
4000 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
4001 | + # instead of lib<name>.a to let people know that these are not |
4002 | + # typical AIX shared libraries. |
4003 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4004 | + else |
4005 | + # We preserve .a as extension for shared libraries through AIX4.2 |
4006 | + # and later when we are not doing run time linking. |
4007 | + library_names_spec='${libname}${release}.a $libname.a' |
4008 | + soname_spec='${libname}${release}${shared_ext}$major' |
4009 | + fi |
4010 | + shlibpath_var=LIBPATH |
4011 | + fi |
4012 | + ;; |
4013 | + |
4014 | +amigaos*) |
4015 | + case $host_cpu in |
4016 | + powerpc) |
4017 | + # Since July 2007 AmigaOS4 officially supports .so libraries. |
4018 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
4019 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4020 | + ;; |
4021 | + m68k) |
4022 | + library_names_spec='$libname.ixlibrary $libname.a' |
4023 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
4024 | + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
4025 | + ;; |
4026 | + esac |
4027 | + ;; |
4028 | + |
4029 | +beos*) |
4030 | + library_names_spec='${libname}${shared_ext}' |
4031 | + dynamic_linker="$host_os ld.so" |
4032 | + shlibpath_var=LIBRARY_PATH |
4033 | + ;; |
4034 | + |
4035 | +bsdi[[45]]*) |
4036 | + version_type=linux # correct to gnu/linux during the next big refactor |
4037 | + need_version=no |
4038 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4039 | + soname_spec='${libname}${release}${shared_ext}$major' |
4040 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
4041 | + shlibpath_var=LD_LIBRARY_PATH |
4042 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
4043 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
4044 | + # the default ld.so.conf also contains /usr/contrib/lib and |
4045 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
4046 | + # libtool to hard-code these into programs |
4047 | + ;; |
4048 | + |
4049 | +cygwin* | mingw* | pw32* | cegcc*) |
4050 | + version_type=windows |
4051 | + shrext_cmds=".dll" |
4052 | + need_version=no |
4053 | + need_lib_prefix=no |
4054 | + |
4055 | + case $GCC,$cc_basename in |
4056 | + yes,*) |
4057 | + # gcc |
4058 | + library_names_spec='$libname.dll.a' |
4059 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
4060 | + postinstall_cmds='base_file=`basename \${file}`~ |
4061 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
4062 | + dldir=$destdir/`dirname \$dlpath`~ |
4063 | + test -d \$dldir || mkdir -p \$dldir~ |
4064 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
4065 | + chmod a+x \$dldir/$dlname~ |
4066 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
4067 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
4068 | + fi' |
4069 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
4070 | + dlpath=$dir/\$dldll~ |
4071 | + $RM \$dlpath' |
4072 | + shlibpath_overrides_runpath=yes |
4073 | + |
4074 | + case $host_os in |
4075 | + cygwin*) |
4076 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
4077 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4078 | +m4_if([$1], [],[ |
4079 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) |
4080 | + ;; |
4081 | + mingw* | cegcc*) |
4082 | + # MinGW DLLs use traditional 'lib' prefix |
4083 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4084 | + ;; |
4085 | + pw32*) |
4086 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
4087 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4088 | + ;; |
4089 | + esac |
4090 | + dynamic_linker='Win32 ld.exe' |
4091 | + ;; |
4092 | + |
4093 | + *,cl*) |
4094 | + # Native MSVC |
4095 | + libname_spec='$name' |
4096 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
4097 | + library_names_spec='${libname}.dll.lib' |
4098 | + |
4099 | + case $build_os in |
4100 | + mingw*) |
4101 | + sys_lib_search_path_spec= |
4102 | + lt_save_ifs=$IFS |
4103 | + IFS=';' |
4104 | + for lt_path in $LIB |
4105 | + do |
4106 | + IFS=$lt_save_ifs |
4107 | + # Let DOS variable expansion print the short 8.3 style file name. |
4108 | + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
4109 | + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
4110 | + done |
4111 | + IFS=$lt_save_ifs |
4112 | + # Convert to MSYS style. |
4113 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
4114 | + ;; |
4115 | + cygwin*) |
4116 | + # Convert to unix form, then to dos form, then back to unix form |
4117 | + # but this time dos style (no spaces!) so that the unix form looks |
4118 | + # like /cygdrive/c/PROGRA~1:/cygdr... |
4119 | + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
4120 | + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
4121 | + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
4122 | + ;; |
4123 | + *) |
4124 | + sys_lib_search_path_spec="$LIB" |
4125 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
4126 | + # It is most probably a Windows format PATH. |
4127 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
4128 | + else |
4129 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
4130 | + fi |
4131 | + # FIXME: find the short name or the path components, as spaces are |
4132 | + # common. (e.g. "Program Files" -> "PROGRA~1") |
4133 | + ;; |
4134 | + esac |
4135 | + |
4136 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
4137 | + postinstall_cmds='base_file=`basename \${file}`~ |
4138 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
4139 | + dldir=$destdir/`dirname \$dlpath`~ |
4140 | + test -d \$dldir || mkdir -p \$dldir~ |
4141 | + $install_prog $dir/$dlname \$dldir/$dlname' |
4142 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
4143 | + dlpath=$dir/\$dldll~ |
4144 | + $RM \$dlpath' |
4145 | + shlibpath_overrides_runpath=yes |
4146 | + dynamic_linker='Win32 link.exe' |
4147 | + ;; |
4148 | + |
4149 | + *) |
4150 | + # Assume MSVC wrapper |
4151 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
4152 | + dynamic_linker='Win32 ld.exe' |
4153 | + ;; |
4154 | + esac |
4155 | + # FIXME: first we should search . and the directory the executable is in |
4156 | + shlibpath_var=PATH |
4157 | + ;; |
4158 | + |
4159 | +darwin* | rhapsody*) |
4160 | + dynamic_linker="$host_os dyld" |
4161 | + version_type=darwin |
4162 | + need_lib_prefix=no |
4163 | + need_version=no |
4164 | + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
4165 | + soname_spec='${libname}${release}${major}$shared_ext' |
4166 | + shlibpath_overrides_runpath=yes |
4167 | + shlibpath_var=DYLD_LIBRARY_PATH |
4168 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
4169 | +m4_if([$1], [],[ |
4170 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
4171 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
4172 | + ;; |
4173 | + |
4174 | +dgux*) |
4175 | + version_type=linux # correct to gnu/linux during the next big refactor |
4176 | + need_lib_prefix=no |
4177 | + need_version=no |
4178 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
4179 | + soname_spec='${libname}${release}${shared_ext}$major' |
4180 | + shlibpath_var=LD_LIBRARY_PATH |
4181 | + ;; |
4182 | + |
4183 | +freebsd* | dragonfly*) |
4184 | + # DragonFly does not have aout. When/if they implement a new |
4185 | + # versioning mechanism, adjust this. |
4186 | + if test -x /usr/bin/objformat; then |
4187 | + objformat=`/usr/bin/objformat` |
4188 | + else |
4189 | + case $host_os in |
4190 | + freebsd[[23]].*) objformat=aout ;; |
4191 | + *) objformat=elf ;; |
4192 | + esac |
4193 | + fi |
4194 | + version_type=freebsd-$objformat |
4195 | + case $version_type in |
4196 | + freebsd-elf*) |
4197 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4198 | + need_version=no |
4199 | + need_lib_prefix=no |
4200 | + ;; |
4201 | + freebsd-*) |
4202 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
4203 | + need_version=yes |
4204 | + ;; |
4205 | + esac |
4206 | + shlibpath_var=LD_LIBRARY_PATH |
4207 | + case $host_os in |
4208 | + freebsd2.*) |
4209 | + shlibpath_overrides_runpath=yes |
4210 | + ;; |
4211 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
4212 | + shlibpath_overrides_runpath=yes |
4213 | + hardcode_into_libs=yes |
4214 | + ;; |
4215 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
4216 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
4217 | + shlibpath_overrides_runpath=no |
4218 | + hardcode_into_libs=yes |
4219 | + ;; |
4220 | + *) # from 4.6 on, and DragonFly |
4221 | + shlibpath_overrides_runpath=yes |
4222 | + hardcode_into_libs=yes |
4223 | + ;; |
4224 | + esac |
4225 | + ;; |
4226 | + |
4227 | +gnu*) |
4228 | + version_type=linux # correct to gnu/linux during the next big refactor |
4229 | + need_lib_prefix=no |
4230 | + need_version=no |
4231 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
4232 | + soname_spec='${libname}${release}${shared_ext}$major' |
4233 | + shlibpath_var=LD_LIBRARY_PATH |
4234 | + shlibpath_overrides_runpath=no |
4235 | + hardcode_into_libs=yes |
4236 | + ;; |
4237 | + |
4238 | +haiku*) |
4239 | + version_type=linux # correct to gnu/linux during the next big refactor |
4240 | + need_lib_prefix=no |
4241 | + need_version=no |
4242 | + dynamic_linker="$host_os runtime_loader" |
4243 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
4244 | + soname_spec='${libname}${release}${shared_ext}$major' |
4245 | + shlibpath_var=LIBRARY_PATH |
4246 | + shlibpath_overrides_runpath=yes |
4247 | + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
4248 | + hardcode_into_libs=yes |
4249 | + ;; |
4250 | + |
4251 | +hpux9* | hpux10* | hpux11*) |
4252 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
4253 | + # link against other versions. |
4254 | + version_type=sunos |
4255 | + need_lib_prefix=no |
4256 | + need_version=no |
4257 | + case $host_cpu in |
4258 | + ia64*) |
4259 | + shrext_cmds='.so' |
4260 | + hardcode_into_libs=yes |
4261 | + dynamic_linker="$host_os dld.so" |
4262 | + shlibpath_var=LD_LIBRARY_PATH |
4263 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
4264 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4265 | + soname_spec='${libname}${release}${shared_ext}$major' |
4266 | + if test "X$HPUX_IA64_MODE" = X32; then |
4267 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
4268 | + else |
4269 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
4270 | + fi |
4271 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
4272 | + ;; |
4273 | + hppa*64*) |
4274 | + shrext_cmds='.sl' |
4275 | + hardcode_into_libs=yes |
4276 | + dynamic_linker="$host_os dld.sl" |
4277 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
4278 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
4279 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4280 | + soname_spec='${libname}${release}${shared_ext}$major' |
4281 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
4282 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
4283 | + ;; |
4284 | + *) |
4285 | + shrext_cmds='.sl' |
4286 | + dynamic_linker="$host_os dld.sl" |
4287 | + shlibpath_var=SHLIB_PATH |
4288 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
4289 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4290 | + soname_spec='${libname}${release}${shared_ext}$major' |
4291 | + ;; |
4292 | + esac |
4293 | + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
4294 | + postinstall_cmds='chmod 555 $lib' |
4295 | + # or fails outright, so override atomically: |
4296 | + install_override_mode=555 |
4297 | + ;; |
4298 | + |
4299 | +interix[[3-9]]*) |
4300 | + version_type=linux # correct to gnu/linux during the next big refactor |
4301 | + need_lib_prefix=no |
4302 | + need_version=no |
4303 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4304 | + soname_spec='${libname}${release}${shared_ext}$major' |
4305 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
4306 | + shlibpath_var=LD_LIBRARY_PATH |
4307 | + shlibpath_overrides_runpath=no |
4308 | + hardcode_into_libs=yes |
4309 | + ;; |
4310 | + |
4311 | +irix5* | irix6* | nonstopux*) |
4312 | + case $host_os in |
4313 | + nonstopux*) version_type=nonstopux ;; |
4314 | + *) |
4315 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
4316 | + version_type=linux # correct to gnu/linux during the next big refactor |
4317 | + else |
4318 | + version_type=irix |
4319 | + fi ;; |
4320 | + esac |
4321 | + need_lib_prefix=no |
4322 | + need_version=no |
4323 | + soname_spec='${libname}${release}${shared_ext}$major' |
4324 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
4325 | + case $host_os in |
4326 | + irix5* | nonstopux*) |
4327 | + libsuff= shlibsuff= |
4328 | + ;; |
4329 | + *) |
4330 | + case $LD in # libtool.m4 will add one of these switches to LD |
4331 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
4332 | + libsuff= shlibsuff= libmagic=32-bit;; |
4333 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
4334 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
4335 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
4336 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
4337 | + *) libsuff= shlibsuff= libmagic=never-match;; |
4338 | + esac |
4339 | + ;; |
4340 | + esac |
4341 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
4342 | + shlibpath_overrides_runpath=no |
4343 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
4344 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
4345 | + hardcode_into_libs=yes |
4346 | + ;; |
4347 | + |
4348 | +# No shared lib support for Linux oldld, aout, or coff. |
4349 | +linux*oldld* | linux*aout* | linux*coff*) |
4350 | + dynamic_linker=no |
4351 | + ;; |
4352 | + |
4353 | +# This must be glibc/ELF. |
4354 | +linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4355 | + version_type=linux # correct to gnu/linux during the next big refactor |
4356 | + need_lib_prefix=no |
4357 | + need_version=no |
4358 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4359 | + soname_spec='${libname}${release}${shared_ext}$major' |
4360 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
4361 | + shlibpath_var=LD_LIBRARY_PATH |
4362 | + shlibpath_overrides_runpath=no |
4363 | + |
4364 | + # Some binutils ld are patched to set DT_RUNPATH |
4365 | + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], |
4366 | + [lt_cv_shlibpath_overrides_runpath=no |
4367 | + save_LDFLAGS=$LDFLAGS |
4368 | + save_libdir=$libdir |
4369 | + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
4370 | + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
4371 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
4372 | + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
4373 | + [lt_cv_shlibpath_overrides_runpath=yes])]) |
4374 | + LDFLAGS=$save_LDFLAGS |
4375 | + libdir=$save_libdir |
4376 | + ]) |
4377 | + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
4378 | + |
4379 | + # This implies no fast_install, which is unacceptable. |
4380 | + # Some rework will be needed to allow for fast_install |
4381 | + # before this can be enabled. |
4382 | + hardcode_into_libs=yes |
4383 | + |
4384 | + # Append ld.so.conf contents to the search path |
4385 | + if test -f /etc/ld.so.conf; then |
4386 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
4387 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
4388 | + fi |
4389 | + |
4390 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
4391 | + # powerpc, because MkLinux only supported shared libraries with the |
4392 | + # GNU dynamic linker. Since this was broken with cross compilers, |
4393 | + # most powerpc-linux boxes support dynamic linking these days and |
4394 | + # people can always --disable-shared, the test was removed, and we |
4395 | + # assume the GNU/Linux dynamic linker is in use. |
4396 | + dynamic_linker='GNU/Linux ld.so' |
4397 | + ;; |
4398 | + |
4399 | +netbsd*) |
4400 | + version_type=sunos |
4401 | + need_lib_prefix=no |
4402 | + need_version=no |
4403 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4404 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4405 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
4406 | + dynamic_linker='NetBSD (a.out) ld.so' |
4407 | + else |
4408 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
4409 | + soname_spec='${libname}${release}${shared_ext}$major' |
4410 | + dynamic_linker='NetBSD ld.elf_so' |
4411 | + fi |
4412 | + shlibpath_var=LD_LIBRARY_PATH |
4413 | + shlibpath_overrides_runpath=yes |
4414 | + hardcode_into_libs=yes |
4415 | + ;; |
4416 | + |
4417 | +newsos6) |
4418 | + version_type=linux # correct to gnu/linux during the next big refactor |
4419 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4420 | + shlibpath_var=LD_LIBRARY_PATH |
4421 | + shlibpath_overrides_runpath=yes |
4422 | + ;; |
4423 | + |
4424 | +*nto* | *qnx*) |
4425 | + version_type=qnx |
4426 | + need_lib_prefix=no |
4427 | + need_version=no |
4428 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4429 | + soname_spec='${libname}${release}${shared_ext}$major' |
4430 | + shlibpath_var=LD_LIBRARY_PATH |
4431 | + shlibpath_overrides_runpath=no |
4432 | + hardcode_into_libs=yes |
4433 | + dynamic_linker='ldqnx.so' |
4434 | + ;; |
4435 | + |
4436 | +openbsd*) |
4437 | + version_type=sunos |
4438 | + sys_lib_dlsearch_path_spec="/usr/lib" |
4439 | + need_lib_prefix=no |
4440 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
4441 | + case $host_os in |
4442 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
4443 | + *) need_version=no ;; |
4444 | + esac |
4445 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4446 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
4447 | + shlibpath_var=LD_LIBRARY_PATH |
4448 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4449 | + case $host_os in |
4450 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
4451 | + shlibpath_overrides_runpath=no |
4452 | + ;; |
4453 | + *) |
4454 | + shlibpath_overrides_runpath=yes |
4455 | + ;; |
4456 | + esac |
4457 | + else |
4458 | + shlibpath_overrides_runpath=yes |
4459 | + fi |
4460 | + ;; |
4461 | + |
4462 | +os2*) |
4463 | + libname_spec='$name' |
4464 | + shrext_cmds=".dll" |
4465 | + need_lib_prefix=no |
4466 | + library_names_spec='$libname${shared_ext} $libname.a' |
4467 | + dynamic_linker='OS/2 ld.exe' |
4468 | + shlibpath_var=LIBPATH |
4469 | + ;; |
4470 | + |
4471 | +osf3* | osf4* | osf5*) |
4472 | + version_type=osf |
4473 | + need_lib_prefix=no |
4474 | + need_version=no |
4475 | + soname_spec='${libname}${release}${shared_ext}$major' |
4476 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4477 | + shlibpath_var=LD_LIBRARY_PATH |
4478 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
4479 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
4480 | + ;; |
4481 | + |
4482 | +rdos*) |
4483 | + dynamic_linker=no |
4484 | + ;; |
4485 | + |
4486 | +solaris*) |
4487 | + version_type=linux # correct to gnu/linux during the next big refactor |
4488 | + need_lib_prefix=no |
4489 | + need_version=no |
4490 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4491 | + soname_spec='${libname}${release}${shared_ext}$major' |
4492 | + shlibpath_var=LD_LIBRARY_PATH |
4493 | + shlibpath_overrides_runpath=yes |
4494 | + hardcode_into_libs=yes |
4495 | + # ldd complains unless libraries are executable |
4496 | + postinstall_cmds='chmod +x $lib' |
4497 | + ;; |
4498 | + |
4499 | +sunos4*) |
4500 | + version_type=sunos |
4501 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
4502 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
4503 | + shlibpath_var=LD_LIBRARY_PATH |
4504 | + shlibpath_overrides_runpath=yes |
4505 | + if test "$with_gnu_ld" = yes; then |
4506 | + need_lib_prefix=no |
4507 | + fi |
4508 | + need_version=yes |
4509 | + ;; |
4510 | + |
4511 | +sysv4 | sysv4.3*) |
4512 | + version_type=linux # correct to gnu/linux during the next big refactor |
4513 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4514 | + soname_spec='${libname}${release}${shared_ext}$major' |
4515 | + shlibpath_var=LD_LIBRARY_PATH |
4516 | + case $host_vendor in |
4517 | + sni) |
4518 | + shlibpath_overrides_runpath=no |
4519 | + need_lib_prefix=no |
4520 | + runpath_var=LD_RUN_PATH |
4521 | + ;; |
4522 | + siemens) |
4523 | + need_lib_prefix=no |
4524 | + ;; |
4525 | + motorola) |
4526 | + need_lib_prefix=no |
4527 | + need_version=no |
4528 | + shlibpath_overrides_runpath=no |
4529 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
4530 | + ;; |
4531 | + esac |
4532 | + ;; |
4533 | + |
4534 | +sysv4*MP*) |
4535 | + if test -d /usr/nec ;then |
4536 | + version_type=linux # correct to gnu/linux during the next big refactor |
4537 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
4538 | + soname_spec='$libname${shared_ext}.$major' |
4539 | + shlibpath_var=LD_LIBRARY_PATH |
4540 | + fi |
4541 | + ;; |
4542 | + |
4543 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4544 | + version_type=freebsd-elf |
4545 | + need_lib_prefix=no |
4546 | + need_version=no |
4547 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4548 | + soname_spec='${libname}${release}${shared_ext}$major' |
4549 | + shlibpath_var=LD_LIBRARY_PATH |
4550 | + shlibpath_overrides_runpath=yes |
4551 | + hardcode_into_libs=yes |
4552 | + if test "$with_gnu_ld" = yes; then |
4553 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
4554 | + else |
4555 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
4556 | + case $host_os in |
4557 | + sco3.2v5*) |
4558 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
4559 | + ;; |
4560 | + esac |
4561 | + fi |
4562 | + sys_lib_dlsearch_path_spec='/usr/lib' |
4563 | + ;; |
4564 | + |
4565 | +tpf*) |
4566 | + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
4567 | + version_type=linux # correct to gnu/linux during the next big refactor |
4568 | + need_lib_prefix=no |
4569 | + need_version=no |
4570 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4571 | + shlibpath_var=LD_LIBRARY_PATH |
4572 | + shlibpath_overrides_runpath=no |
4573 | + hardcode_into_libs=yes |
4574 | + ;; |
4575 | + |
4576 | +uts4*) |
4577 | + version_type=linux # correct to gnu/linux during the next big refactor |
4578 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4579 | + soname_spec='${libname}${release}${shared_ext}$major' |
4580 | + shlibpath_var=LD_LIBRARY_PATH |
4581 | + ;; |
4582 | + |
4583 | +*) |
4584 | + dynamic_linker=no |
4585 | + ;; |
4586 | +esac |
4587 | +AC_MSG_RESULT([$dynamic_linker]) |
4588 | +test "$dynamic_linker" = no && can_build_shared=no |
4589 | + |
4590 | +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
4591 | +if test "$GCC" = yes; then |
4592 | + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
4593 | +fi |
4594 | + |
4595 | +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
4596 | + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
4597 | +fi |
4598 | +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
4599 | + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
4600 | +fi |
4601 | + |
4602 | +_LT_DECL([], [variables_saved_for_relink], [1], |
4603 | + [Variables whose values should be saved in libtool wrapper scripts and |
4604 | + restored at link time]) |
4605 | +_LT_DECL([], [need_lib_prefix], [0], |
4606 | + [Do we need the "lib" prefix for modules?]) |
4607 | +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
4608 | +_LT_DECL([], [version_type], [0], [Library versioning type]) |
4609 | +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
4610 | +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
4611 | +_LT_DECL([], [shlibpath_overrides_runpath], [0], |
4612 | + [Is shlibpath searched before the hard-coded library search path?]) |
4613 | +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
4614 | +_LT_DECL([], [library_names_spec], [1], |
4615 | + [[List of archive names. First name is the real one, the rest are links. |
4616 | + The last name is the one that the linker finds with -lNAME]]) |
4617 | +_LT_DECL([], [soname_spec], [1], |
4618 | + [[The coded name of the library, if different from the real name]]) |
4619 | +_LT_DECL([], [install_override_mode], [1], |
4620 | + [Permission mode override for installation of shared libraries]) |
4621 | +_LT_DECL([], [postinstall_cmds], [2], |
4622 | + [Command to use after installation of a shared archive]) |
4623 | +_LT_DECL([], [postuninstall_cmds], [2], |
4624 | + [Command to use after uninstallation of a shared archive]) |
4625 | +_LT_DECL([], [finish_cmds], [2], |
4626 | + [Commands used to finish a libtool library installation in a directory]) |
4627 | +_LT_DECL([], [finish_eval], [1], |
4628 | + [[As "finish_cmds", except a single script fragment to be evaled but |
4629 | + not shown]]) |
4630 | +_LT_DECL([], [hardcode_into_libs], [0], |
4631 | + [Whether we should hardcode library paths into libraries]) |
4632 | +_LT_DECL([], [sys_lib_search_path_spec], [2], |
4633 | + [Compile-time system search path for libraries]) |
4634 | +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
4635 | + [Run-time system search path for libraries]) |
4636 | +])# _LT_SYS_DYNAMIC_LINKER |
4637 | + |
4638 | + |
4639 | +# _LT_PATH_TOOL_PREFIX(TOOL) |
4640 | +# -------------------------- |
4641 | +# find a file program which can recognize shared library |
4642 | +AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
4643 | +[m4_require([_LT_DECL_EGREP])dnl |
4644 | +AC_MSG_CHECKING([for $1]) |
4645 | +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
4646 | +[case $MAGIC_CMD in |
4647 | +[[\\/*] | ?:[\\/]*]) |
4648 | + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
4649 | + ;; |
4650 | +*) |
4651 | + lt_save_MAGIC_CMD="$MAGIC_CMD" |
4652 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4653 | +dnl $ac_dummy forces splitting on constant user-supplied paths. |
4654 | +dnl POSIX.2 word splitting is done only on the output of word expansions, |
4655 | +dnl not every word. This closes a longstanding sh security hole. |
4656 | + ac_dummy="m4_if([$2], , $PATH, [$2])" |
4657 | + for ac_dir in $ac_dummy; do |
4658 | + IFS="$lt_save_ifs" |
4659 | + test -z "$ac_dir" && ac_dir=. |
4660 | + if test -f $ac_dir/$1; then |
4661 | + lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
4662 | + if test -n "$file_magic_test_file"; then |
4663 | + case $deplibs_check_method in |
4664 | + "file_magic "*) |
4665 | + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
4666 | + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4667 | + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4668 | + $EGREP "$file_magic_regex" > /dev/null; then |
4669 | + : |
4670 | + else |
4671 | + cat <<_LT_EOF 1>&2 |
4672 | + |
4673 | +*** Warning: the command libtool uses to detect shared libraries, |
4674 | +*** $file_magic_cmd, produces output that libtool cannot recognize. |
4675 | +*** The result is that libtool may fail to recognize shared libraries |
4676 | +*** as such. This will affect the creation of libtool libraries that |
4677 | +*** depend on shared libraries, but programs linked with such libtool |
4678 | +*** libraries will work regardless of this problem. Nevertheless, you |
4679 | +*** may want to report the problem to your system manager and/or to |
4680 | +*** bug-libtool@gnu.org |
4681 | + |
4682 | +_LT_EOF |
4683 | + fi ;; |
4684 | + esac |
4685 | + fi |
4686 | + break |
4687 | + fi |
4688 | + done |
4689 | + IFS="$lt_save_ifs" |
4690 | + MAGIC_CMD="$lt_save_MAGIC_CMD" |
4691 | + ;; |
4692 | +esac]) |
4693 | +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4694 | +if test -n "$MAGIC_CMD"; then |
4695 | + AC_MSG_RESULT($MAGIC_CMD) |
4696 | +else |
4697 | + AC_MSG_RESULT(no) |
4698 | +fi |
4699 | +_LT_DECL([], [MAGIC_CMD], [0], |
4700 | + [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
4701 | +])# _LT_PATH_TOOL_PREFIX |
4702 | + |
4703 | +# Old name: |
4704 | +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
4705 | +dnl aclocal-1.4 backwards compatibility: |
4706 | +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
4707 | + |
4708 | + |
4709 | +# _LT_PATH_MAGIC |
4710 | +# -------------- |
4711 | +# find a file program which can recognize a shared library |
4712 | +m4_defun([_LT_PATH_MAGIC], |
4713 | +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
4714 | +if test -z "$lt_cv_path_MAGIC_CMD"; then |
4715 | + if test -n "$ac_tool_prefix"; then |
4716 | + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
4717 | + else |
4718 | + MAGIC_CMD=: |
4719 | + fi |
4720 | +fi |
4721 | +])# _LT_PATH_MAGIC |
4722 | + |
4723 | + |
4724 | +# LT_PATH_LD |
4725 | +# ---------- |
4726 | +# find the pathname to the GNU or non-GNU linker |
4727 | +AC_DEFUN([LT_PATH_LD], |
4728 | +[AC_REQUIRE([AC_PROG_CC])dnl |
4729 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4730 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
4731 | +m4_require([_LT_DECL_SED])dnl |
4732 | +m4_require([_LT_DECL_EGREP])dnl |
4733 | +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl |
4734 | + |
4735 | +AC_ARG_WITH([gnu-ld], |
4736 | + [AS_HELP_STRING([--with-gnu-ld], |
4737 | + [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
4738 | + [test "$withval" = no || with_gnu_ld=yes], |
4739 | + [with_gnu_ld=no])dnl |
4740 | + |
4741 | +ac_prog=ld |
4742 | +if test "$GCC" = yes; then |
4743 | + # Check if gcc -print-prog-name=ld gives a path. |
4744 | + AC_MSG_CHECKING([for ld used by $CC]) |
4745 | + case $host in |
4746 | + *-*-mingw*) |
4747 | + # gcc leaves a trailing carriage return which upsets mingw |
4748 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4749 | + *) |
4750 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4751 | + esac |
4752 | + case $ac_prog in |
4753 | + # Accept absolute paths. |
4754 | + [[\\/]]* | ?:[[\\/]]*) |
4755 | + re_direlt='/[[^/]][[^/]]*/\.\./' |
4756 | + # Canonicalize the pathname of ld |
4757 | + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4758 | + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4759 | + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4760 | + done |
4761 | + test -z "$LD" && LD="$ac_prog" |
4762 | + ;; |
4763 | + "") |
4764 | + # If it fails, then pretend we aren't using GCC. |
4765 | + ac_prog=ld |
4766 | + ;; |
4767 | + *) |
4768 | + # If it is relative, then search for the first ld in PATH. |
4769 | + with_gnu_ld=unknown |
4770 | + ;; |
4771 | + esac |
4772 | +elif test "$with_gnu_ld" = yes; then |
4773 | + AC_MSG_CHECKING([for GNU ld]) |
4774 | +else |
4775 | + AC_MSG_CHECKING([for non-GNU ld]) |
4776 | +fi |
4777 | +AC_CACHE_VAL(lt_cv_path_LD, |
4778 | +[if test -z "$LD"; then |
4779 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4780 | + for ac_dir in $PATH; do |
4781 | + IFS="$lt_save_ifs" |
4782 | + test -z "$ac_dir" && ac_dir=. |
4783 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4784 | + lt_cv_path_LD="$ac_dir/$ac_prog" |
4785 | + # Check to see if the program is GNU ld. I'd rather use --version, |
4786 | + # but apparently some variants of GNU ld only accept -v. |
4787 | + # Break only if it was the GNU/non-GNU ld that we prefer. |
4788 | + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4789 | + *GNU* | *'with BFD'*) |
4790 | + test "$with_gnu_ld" != no && break |
4791 | + ;; |
4792 | + *) |
4793 | + test "$with_gnu_ld" != yes && break |
4794 | + ;; |
4795 | + esac |
4796 | + fi |
4797 | + done |
4798 | + IFS="$lt_save_ifs" |
4799 | +else |
4800 | + lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4801 | +fi]) |
4802 | +LD="$lt_cv_path_LD" |
4803 | +if test -n "$LD"; then |
4804 | + AC_MSG_RESULT($LD) |
4805 | +else |
4806 | + AC_MSG_RESULT(no) |
4807 | +fi |
4808 | +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
4809 | +_LT_PATH_LD_GNU |
4810 | +AC_SUBST([LD]) |
4811 | + |
4812 | +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
4813 | +])# LT_PATH_LD |
4814 | + |
4815 | +# Old names: |
4816 | +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
4817 | +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
4818 | +dnl aclocal-1.4 backwards compatibility: |
4819 | +dnl AC_DEFUN([AM_PROG_LD], []) |
4820 | +dnl AC_DEFUN([AC_PROG_LD], []) |
4821 | + |
4822 | + |
4823 | +# _LT_PATH_LD_GNU |
4824 | +#- -------------- |
4825 | +m4_defun([_LT_PATH_LD_GNU], |
4826 | +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
4827 | +[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4828 | +case `$LD -v 2>&1 </dev/null` in |
4829 | +*GNU* | *'with BFD'*) |
4830 | + lt_cv_prog_gnu_ld=yes |
4831 | + ;; |
4832 | +*) |
4833 | + lt_cv_prog_gnu_ld=no |
4834 | + ;; |
4835 | +esac]) |
4836 | +with_gnu_ld=$lt_cv_prog_gnu_ld |
4837 | +])# _LT_PATH_LD_GNU |
4838 | + |
4839 | + |
4840 | +# _LT_CMD_RELOAD |
4841 | +# -------------- |
4842 | +# find reload flag for linker |
4843 | +# -- PORTME Some linkers may need a different reload flag. |
4844 | +m4_defun([_LT_CMD_RELOAD], |
4845 | +[AC_CACHE_CHECK([for $LD option to reload object files], |
4846 | + lt_cv_ld_reload_flag, |
4847 | + [lt_cv_ld_reload_flag='-r']) |
4848 | +reload_flag=$lt_cv_ld_reload_flag |
4849 | +case $reload_flag in |
4850 | +"" | " "*) ;; |
4851 | +*) reload_flag=" $reload_flag" ;; |
4852 | +esac |
4853 | +reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4854 | +case $host_os in |
4855 | + cygwin* | mingw* | pw32* | cegcc*) |
4856 | + if test "$GCC" != yes; then |
4857 | + reload_cmds=false |
4858 | + fi |
4859 | + ;; |
4860 | + darwin*) |
4861 | + if test "$GCC" = yes; then |
4862 | + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4863 | + else |
4864 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4865 | + fi |
4866 | + ;; |
4867 | +esac |
4868 | +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
4869 | +_LT_TAGDECL([], [reload_cmds], [2])dnl |
4870 | +])# _LT_CMD_RELOAD |
4871 | + |
4872 | + |
4873 | +# _LT_CHECK_MAGIC_METHOD |
4874 | +# ---------------------- |
4875 | +# how to check for library dependencies |
4876 | +# -- PORTME fill in with the dynamic library characteristics |
4877 | +m4_defun([_LT_CHECK_MAGIC_METHOD], |
4878 | +[m4_require([_LT_DECL_EGREP]) |
4879 | +m4_require([_LT_DECL_OBJDUMP]) |
4880 | +AC_CACHE_CHECK([how to recognize dependent libraries], |
4881 | +lt_cv_deplibs_check_method, |
4882 | +[lt_cv_file_magic_cmd='$MAGIC_CMD' |
4883 | +lt_cv_file_magic_test_file= |
4884 | +lt_cv_deplibs_check_method='unknown' |
4885 | +# Need to set the preceding variable on all platforms that support |
4886 | +# interlibrary dependencies. |
4887 | +# 'none' -- dependencies not supported. |
4888 | +# `unknown' -- same as none, but documents that we really don't know. |
4889 | +# 'pass_all' -- all dependencies passed with no checks. |
4890 | +# 'test_compile' -- check by making test program. |
4891 | +# 'file_magic [[regex]]' -- check by looking for files in library path |
4892 | +# which responds to the $file_magic_cmd with a given extended regex. |
4893 | +# If you have `file' or equivalent on your system and you're not sure |
4894 | +# whether `pass_all' will *always* work, you probably want this one. |
4895 | + |
4896 | +case $host_os in |
4897 | +aix[[4-9]]*) |
4898 | + lt_cv_deplibs_check_method=pass_all |
4899 | + ;; |
4900 | + |
4901 | +beos*) |
4902 | + lt_cv_deplibs_check_method=pass_all |
4903 | + ;; |
4904 | + |
4905 | +bsdi[[45]]*) |
4906 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
4907 | + lt_cv_file_magic_cmd='/usr/bin/file -L' |
4908 | + lt_cv_file_magic_test_file=/shlib/libc.so |
4909 | + ;; |
4910 | + |
4911 | +cygwin*) |
4912 | + # func_win32_libid is a shell function defined in ltmain.sh |
4913 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4914 | + lt_cv_file_magic_cmd='func_win32_libid' |
4915 | + ;; |
4916 | + |
4917 | +mingw* | pw32*) |
4918 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
4919 | + # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4920 | + # unless we find 'file', for example because we are cross-compiling. |
4921 | + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
4922 | + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
4923 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4924 | + lt_cv_file_magic_cmd='func_win32_libid' |
4925 | + else |
4926 | + # Keep this pattern in sync with the one in func_win32_libid. |
4927 | + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
4928 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
4929 | + fi |
4930 | + ;; |
4931 | + |
4932 | +cegcc*) |
4933 | + # use the weaker test based on 'objdump'. See mingw*. |
4934 | + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
4935 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
4936 | + ;; |
4937 | + |
4938 | +darwin* | rhapsody*) |
4939 | + lt_cv_deplibs_check_method=pass_all |
4940 | + ;; |
4941 | + |
4942 | +freebsd* | dragonfly*) |
4943 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4944 | + case $host_cpu in |
4945 | + i*86 ) |
4946 | + # Not sure whether the presence of OpenBSD here was a mistake. |
4947 | + # Let's accept both of them until this is cleared up. |
4948 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
4949 | + lt_cv_file_magic_cmd=/usr/bin/file |
4950 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4951 | + ;; |
4952 | + esac |
4953 | + else |
4954 | + lt_cv_deplibs_check_method=pass_all |
4955 | + fi |
4956 | + ;; |
4957 | + |
4958 | +gnu*) |
4959 | + lt_cv_deplibs_check_method=pass_all |
4960 | + ;; |
4961 | + |
4962 | +haiku*) |
4963 | + lt_cv_deplibs_check_method=pass_all |
4964 | + ;; |
4965 | + |
4966 | +hpux10.20* | hpux11*) |
4967 | + lt_cv_file_magic_cmd=/usr/bin/file |
4968 | + case $host_cpu in |
4969 | + ia64*) |
4970 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
4971 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4972 | + ;; |
4973 | + hppa*64*) |
4974 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] |
4975 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4976 | + ;; |
4977 | + *) |
4978 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' |
4979 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4980 | + ;; |
4981 | + esac |
4982 | + ;; |
4983 | + |
4984 | +interix[[3-9]]*) |
4985 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4986 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
4987 | + ;; |
4988 | + |
4989 | +irix5* | irix6* | nonstopux*) |
4990 | + case $LD in |
4991 | + *-32|*"-32 ") libmagic=32-bit;; |
4992 | + *-n32|*"-n32 ") libmagic=N32;; |
4993 | + *-64|*"-64 ") libmagic=64-bit;; |
4994 | + *) libmagic=never-match;; |
4995 | + esac |
4996 | + lt_cv_deplibs_check_method=pass_all |
4997 | + ;; |
4998 | + |
4999 | +# This must be glibc/ELF. |
5000 | +linux* | k*bsd*-gnu | kopensolaris*-gnu) |
The diff has been truncated for viewing.