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