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