Merge lp:~noskcaj/ubuntu/trusty/cogl/1.16.2 into lp:ubuntu/trusty/cogl
- Trusty (14.04)
- 1.16.2
- Merge into trusty
Proposed by
Jackson Doak
Status: | Work in progress |
---|---|
Proposed branch: | lp:~noskcaj/ubuntu/trusty/cogl/1.16.2 |
Merge into: | lp:ubuntu/trusty/cogl |
Diff against target: |
57345 lines (+2595/-45495) 246 files modified
.pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c (+0/-653) .pc/99-ppc64el-support.patch/build/autotools/libtool.m4 (+0/-7982) .pc/99-ppc64el-support.patch/configure (+0/-31882) .pc/applied-patches (+0/-2) Makefile.in (+7/-13) NEWS (+27/-0) aclocal.m4 (+39/-103) build/Makefile.in (+1/-1) build/autotools/Makefile.am.release (+1/-1) build/autotools/gtk-doc.m4 (+1/-5) build/autotools/libtool.m4 (+10/-6) build/config.guess (+64/-87) build/config.sub (+17/-15) build/win32/Makefile.in (+1/-1) build/win32/vs10/Makefile.in (+1/-1) build/win32/vs10/test-conformance-cogl.vcxproj (+2/-0) build/win32/vs10/test-conformance-cogl.vcxproj.filters (+2/-0) build/win32/vs9/Makefile.in (+1/-1) build/win32/vs9/test-conformance-cogl.vcproj (+2/-0) cogl-gles2/Makefile.in (+3/-3) cogl-gst/Makefile.in (+3/-3) cogl-gst/cogl-gst-video-sink.c (+53/-8) cogl-pango/Makefile.in (+3/-3) cogl-pango/cogl-pango.rc (+4/-4) cogl-path/Makefile.in (+3/-3) cogl/Makefile.in (+3/-3) cogl/cogl-attribute-buffer.c (+0/-1) cogl/cogl-attribute.c (+1/-0) cogl/cogl-clip-stack.c (+1/-1) cogl/cogl-display-private.h (+0/-3) cogl/cogl-framebuffer-private.h (+3/-0) cogl/cogl-framebuffer.c (+10/-1) cogl/cogl-pipeline.c (+31/-18) cogl/cogl-texture-2d.c (+2/-3) cogl/cogl-util.h (+2/-20) cogl/cogl.rc (+4/-4) cogl/cogl.symbols (+1/-0) cogl/winsys/cogl-winsys-egl-feature-functions.h (+1/-1) cogl/winsys/cogl-winsys-egl-private.h (+22/-1) cogl/winsys/cogl-winsys-egl.c (+1/-1) cogl/winsys/cogl-winsys-glx.c (+16/-12) cogl/winsys/cogl-winsys-wgl.c (+0/-2) config.h.in (+3/-0) config.h.win32 (+2/-2) configure (+182/-195) configure.ac (+4/-4) debian/changelog (+7/-0) debian/patches/0001-Fix-build-on-big-endian.patch (+0/-29) debian/patches/99-ppc64el-support.patch (+0/-55) debian/patches/series (+0/-2) deps/Makefile.in (+1/-1) deps/glib/Makefile.in (+3/-3) deps/gmodule/Makefile.in (+3/-3) doc/Makefile.in (+1/-1) doc/reference/Makefile.in (+1/-1) doc/reference/cogl-2.0-experimental/Makefile.in (+38/-51) doc/reference/cogl-2.0-experimental/cogl-2.0-experimental-docs.xml (+1/-1) doc/reference/cogl-2.0-experimental/html/ch01.html (+3/-3) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-2D-textures.html (+10/-10) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-3-Component-Vectors.html (+8/-112) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-3D-textures.html (+6/-6) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Bitmap.html (+12/-12) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglAttributeBuffer---Buffers-of-vertex-attributes.html (+9/-9) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglBuffer---The-Buffer-Interface.html (+8/-8) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglDisplay---Setup-a-display-pipeline.html (+7/-7) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglFramebuffer---The-Framebuffer-Interface.html (+66/-140) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglIndexBuffer---Buffers-of-vertex-indices.html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglOnscreen---The-Onscreen-Framebuffer-Interface.html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglOnscreenTemplate---Describe-a-template-for-onscreen-framebuffers.html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-CoglRenderer---Connect-to-a-backend-renderer.html (+11/-11) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Color-Type.html (+8/-8) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Common-Types.html (+3/-3) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Depth-State.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Eulers-(Rotations).html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Exception-handling.html (+30/-140) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-GLES-2.0-context.html (+14/-14) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-GPU-synchronisation-fences.html (+3/-3) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-GType-Integration-API.html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-High-Level-Meta-Textures.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Indices.html (+13/-53) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Low-level-primitive-textures.html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Main-loop-integration.html (+17/-17) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Matrices.html (+67/-253) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Matrix-Stacks.html (+17/-17) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Offscreen-Framebuffers.html (+5/-5) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Path-Primitives.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Pipeline.html (+34/-172) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Primitives.html (+86/-374) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Quaternions-(Rotations).html (+9/-115) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Rectangle-textures-(non-normalized-coordinates).html (+7/-7) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Rectangles.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-SDL-Integration.html (+56/-134) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Shader-snippets.html (+10/-10) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Sliced-Textures.html (+13/-13) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Sub-Textures.html (+4/-4) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-The-Object-Interface.html (+22/-58) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-The-Texture-Interface.html (+16/-88) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-The-Top-Level-Context.html (+20/-20) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Versioning-utility-macros.html (+25/-211) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-Vertex-Attributes.html (+12/-86) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental-X11-Texture-From-Pixmap.html (+8/-32) doc/reference/cogl-2.0-experimental/html/cogl-2.0-experimental.devhelp2 (+0/-4) doc/reference/cogl-2.0-experimental/html/cogl-Blend-Strings.html (+3/-3) doc/reference/cogl-2.0-experimental/html/cogl-buffer-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-buffer-layout-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-context-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-framebuffer-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-general-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-integration.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-meta-textures.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-pipeline-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-primitive-apis.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-primitive-textures.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-textures.html (+2/-2) doc/reference/cogl-2.0-experimental/html/cogl-utilities.html (+2/-2) doc/reference/cogl-2.0-experimental/html/coglglossary.html (+18/-18) doc/reference/cogl-2.0-experimental/html/index.html (+3/-3) doc/reference/cogl-2.0-experimental/html/index.sgml (+6/-10) doc/reference/cogl-2.0-experimental/html/ix01.html (+8/-8) doc/reference/cogl-2.0-experimental/html/ix02.html (+3/-3) doc/reference/cogl-2.0-experimental/html/ix03.html (+3/-3) doc/reference/cogl-2.0-experimental/html/ix04.html (+4/-4) doc/reference/cogl-2.0-experimental/html/ix05.html (+3/-3) doc/reference/cogl-2.0-experimental/html/ix06.html (+3/-3) doc/reference/cogl-2.0-experimental/html/license.html (+2/-2) doc/reference/cogl-gst/Makefile.in (+39/-52) doc/reference/cogl-gst/cogl-gst-docs.xml (+1/-1) doc/reference/cogl-gst/html/CoglGstVideoSink.html (+39/-39) doc/reference/cogl-gst/html/ch01.html (+3/-3) doc/reference/cogl-gst/html/cogl-gst-general-apis.html (+2/-2) doc/reference/cogl-gst/html/coglglossary.html (+6/-8) doc/reference/cogl-gst/html/index.html (+4/-4) doc/reference/cogl-gst/html/index.sgml (+2/-2) doc/reference/cogl-gst/html/ix01.html (+3/-3) doc/reference/cogl-gst/html/license.html (+2/-2) doc/reference/cogl/Makefile.in (+39/-52) doc/reference/cogl/cogl-docs.xml (+1/-1) doc/reference/cogl/html/ch01.html (+3/-3) doc/reference/cogl/html/ch02.html (+3/-3) doc/reference/cogl/html/ch03.html (+3/-3) doc/reference/cogl/html/cogl-3D-textures.html (+23/-23) doc/reference/cogl/html/cogl-Bitmaps.html (+16/-16) doc/reference/cogl/html/cogl-Blend-Strings.html (+3/-3) doc/reference/cogl/html/cogl-Buffers.html (+34/-34) doc/reference/cogl/html/cogl-Clipping-(Deprecated).html (+4/-4) doc/reference/cogl/html/cogl-Clipping.html (+5/-5) doc/reference/cogl/html/cogl-Color-Type.html (+10/-10) doc/reference/cogl/html/cogl-Fixed-Point-API.html (+4/-38) doc/reference/cogl/html/cogl-GType-Integration-API.html (+4/-4) doc/reference/cogl/html/cogl-General-API-(Deprecated).html (+20/-56) doc/reference/cogl/html/cogl-General-API.html (+109/-389) doc/reference/cogl/html/cogl-Materials-(Deprecated).html (+4/-4) doc/reference/cogl/html/cogl-Materials.html (+105/-281) doc/reference/cogl/html/cogl-Matrices.html (+69/-219) doc/reference/cogl/html/cogl-Offscreen-Buffers-(Deprecated).html (+4/-4) doc/reference/cogl/html/cogl-Offscreen-Buffers.html (+80/-118) doc/reference/cogl/html/cogl-Path-Primitives.html (+2/-2) doc/reference/cogl/html/cogl-Primitives.html (+6/-6) doc/reference/cogl/html/cogl-Quaternions-(Rotations).html (+11/-117) doc/reference/cogl/html/cogl-Shaders-and-Programmable-Pipeline-(Deprecated).html (+14/-14) doc/reference/cogl/html/cogl-Shaders-and-Programmable-Pipeline.html (+33/-33) doc/reference/cogl/html/cogl-Textures-(Deprecated).html (+4/-4) doc/reference/cogl/html/cogl-Textures.html (+74/-74) doc/reference/cogl/html/cogl-Vectors.html (+12/-116) doc/reference/cogl/html/cogl-Vertex-Buffers-(Deprecated).html (+2/-2) doc/reference/cogl/html/cogl-Vertex-Buffers.html (+26/-26) doc/reference/cogl/html/coglglossary.html (+13/-13) doc/reference/cogl/html/index.html (+4/-4) doc/reference/cogl/html/index.sgml (+4/-4) doc/reference/cogl/html/ix01.html (+75/-75) doc/reference/cogl/html/ix02.html (+3/-3) doc/reference/cogl/html/ix03.html (+3/-3) doc/reference/cogl/html/ix04.html (+3/-3) doc/reference/cogl/html/ix05.html (+3/-3) doc/reference/cogl/html/ix06.html (+3/-3) doc/reference/cogl/html/ix07.html (+3/-3) doc/reference/cogl/html/ix08.html (+3/-3) doc/reference/cogl/html/license.html (+2/-2) examples/Makefile.in (+3/-3) gtk-doc.make (+25/-45) po/an.po (+1/-1) po/ar.po (+1/-1) po/as.po (+1/-1) po/ast.po (+1/-1) po/be.po (+1/-1) po/bg.po (+1/-1) po/ca.po (+1/-1) po/ca@valencia.po (+1/-1) po/cogl.pot (+2/-2) po/cs.po (+1/-1) po/da.po (+1/-1) po/de.po (+1/-1) po/el.po (+1/-1) po/en_CA.po (+1/-1) po/en_GB.po (+1/-1) po/eo.po (+1/-1) po/es.po (+1/-1) po/eu.po (+1/-1) po/fa.po (+1/-1) po/fr.po (+1/-1) po/gl.po (+1/-1) po/he.po (+1/-1) po/hi.po (+1/-1) po/hu.po (+1/-1) po/id.po (+1/-1) po/it.po (+1/-1) po/ja.po (+1/-1) po/km.po (+1/-1) po/kn.po (+1/-1) po/ko.po (+1/-1) po/lt.po (+1/-1) po/lv.po (+1/-1) po/ml.po (+1/-1) po/nb.po (+1/-1) po/nl.po (+1/-1) po/or.po (+1/-1) po/pa.po (+1/-1) po/pl.po (+1/-1) po/pt.po (+1/-1) po/pt_BR.po (+1/-1) po/ru.po (+1/-1) po/sk.po (+1/-1) po/sl.po (+1/-1) po/sr.po (+1/-1) po/sr@latin.po (+1/-1) po/sv.po (+1/-1) po/ta.po (+1/-1) po/te.po (+1/-1) po/th.po (+1/-1) po/tr.po (+1/-1) po/ug.po (+1/-1) po/uk.po (+1/-1) po/vi.po (+1/-1) po/zh_CN.po (+1/-1) po/zh_HK.po (+1/-1) po/zh_TW.po (+1/-1) test-fixtures/Makefile.in (+3/-3) tests/Makefile.in (+1/-1) tests/conform/Makefile.am (+4/-1) tests/conform/Makefile.in (+44/-8) tests/conform/test-conform-main.c (+2/-0) tests/conform/test-path-clip.c (+68/-0) tests/conform/test-pipeline-shader-state.c (+94/-0) tests/data/Makefile.in (+1/-1) tests/micro-perf/Makefile.in (+3/-3) tests/unit/Makefile.in (+3/-3) |
To merge this branch: | bzr merge lp:~noskcaj/ubuntu/trusty/cogl/1.16.2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt (community) | Needs Fixing | ||
Review via email: mp+204787@code.launchpad.net |
Commit message
Description of the change
New upstream release
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote : | # |
Setting to WIP. Please set back to "Needs review" once this is fixed, so that it re-appears in the sponsoring queue. Thanks!
Unmerged revisions
- 26. By Jackson Doak
-
* New upstream release.
* Drop patches
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed directory '.pc/0001-Fix-build-on-big-endian.patch' | |||
2 | === removed directory '.pc/0001-Fix-build-on-big-endian.patch/cogl' | |||
3 | === removed file '.pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c' | |||
4 | --- .pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c 2013-10-14 21:37:33 +0000 | |||
5 | +++ .pc/0001-Fix-build-on-big-endian.patch/cogl/cogl-texture-2d.c 1970-01-01 00:00:00 +0000 | |||
6 | @@ -1,653 +0,0 @@ | |||
7 | 1 | /* | ||
8 | 2 | * Cogl | ||
9 | 3 | * | ||
10 | 4 | * An object oriented GL/GLES Abstraction/Utility Layer | ||
11 | 5 | * | ||
12 | 6 | * Copyright (C) 2009 Intel Corporation. | ||
13 | 7 | * | ||
14 | 8 | * This library is free software; you can redistribute it and/or | ||
15 | 9 | * modify it under the terms of the GNU Lesser General Public | ||
16 | 10 | * License as published by the Free Software Foundation; either | ||
17 | 11 | * version 2 of the License, or (at your option) any later version. | ||
18 | 12 | * | ||
19 | 13 | * This library is distributed in the hope that it will be useful, | ||
20 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
21 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
22 | 16 | * Lesser General Public License for more details. | ||
23 | 17 | * | ||
24 | 18 | * You should have received a copy of the GNU Lesser General Public | ||
25 | 19 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
26 | 20 | * | ||
27 | 21 | * | ||
28 | 22 | * | ||
29 | 23 | * Authors: | ||
30 | 24 | * Neil Roberts <neil@linux.intel.com> | ||
31 | 25 | */ | ||
32 | 26 | |||
33 | 27 | #ifdef HAVE_CONFIG_H | ||
34 | 28 | #include "config.h" | ||
35 | 29 | #endif | ||
36 | 30 | |||
37 | 31 | #include "cogl-private.h" | ||
38 | 32 | #include "cogl-util.h" | ||
39 | 33 | #include "cogl-texture-private.h" | ||
40 | 34 | #include "cogl-texture-2d-private.h" | ||
41 | 35 | #include "cogl-texture-2d-gl-private.h" | ||
42 | 36 | #include "cogl-texture-driver.h" | ||
43 | 37 | #include "cogl-context-private.h" | ||
44 | 38 | #include "cogl-object-private.h" | ||
45 | 39 | #include "cogl-journal-private.h" | ||
46 | 40 | #include "cogl-pipeline-opengl-private.h" | ||
47 | 41 | #include "cogl-framebuffer-private.h" | ||
48 | 42 | #include "cogl-error-private.h" | ||
49 | 43 | #ifdef COGL_HAS_EGL_SUPPORT | ||
50 | 44 | #include "cogl-winsys-egl-private.h" | ||
51 | 45 | #endif | ||
52 | 46 | |||
53 | 47 | #include <string.h> | ||
54 | 48 | #include <math.h> | ||
55 | 49 | |||
56 | 50 | #ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT | ||
57 | 51 | #include "cogl-wayland-server.h" | ||
58 | 52 | #endif | ||
59 | 53 | |||
60 | 54 | static void _cogl_texture_2d_free (CoglTexture2D *tex_2d); | ||
61 | 55 | |||
62 | 56 | COGL_TEXTURE_DEFINE (Texture2D, texture_2d); | ||
63 | 57 | |||
64 | 58 | static const CoglTextureVtable cogl_texture_2d_vtable; | ||
65 | 59 | |||
66 | 60 | typedef struct _CoglTexture2DManualRepeatData | ||
67 | 61 | { | ||
68 | 62 | CoglTexture2D *tex_2d; | ||
69 | 63 | CoglMetaTextureCallback callback; | ||
70 | 64 | void *user_data; | ||
71 | 65 | } CoglTexture2DManualRepeatData; | ||
72 | 66 | |||
73 | 67 | static void | ||
74 | 68 | _cogl_texture_2d_free (CoglTexture2D *tex_2d) | ||
75 | 69 | { | ||
76 | 70 | CoglContext *ctx = COGL_TEXTURE (tex_2d)->context; | ||
77 | 71 | |||
78 | 72 | ctx->driver_vtable->texture_2d_free (tex_2d); | ||
79 | 73 | |||
80 | 74 | /* Chain up */ | ||
81 | 75 | _cogl_texture_free (COGL_TEXTURE (tex_2d)); | ||
82 | 76 | } | ||
83 | 77 | |||
84 | 78 | static CoglBool | ||
85 | 79 | _cogl_texture_2d_can_create (CoglContext *ctx, | ||
86 | 80 | unsigned int width, | ||
87 | 81 | unsigned int height, | ||
88 | 82 | CoglPixelFormat internal_format) | ||
89 | 83 | { | ||
90 | 84 | /* If NPOT textures aren't supported then the size must be a power | ||
91 | 85 | of two */ | ||
92 | 86 | if (!cogl_has_feature (ctx, COGL_FEATURE_ID_TEXTURE_NPOT_BASIC) && | ||
93 | 87 | (!_cogl_util_is_pot (width) || | ||
94 | 88 | !_cogl_util_is_pot (height))) | ||
95 | 89 | return FALSE; | ||
96 | 90 | |||
97 | 91 | return ctx->driver_vtable->texture_2d_can_create (ctx, | ||
98 | 92 | width, | ||
99 | 93 | height, | ||
100 | 94 | internal_format); | ||
101 | 95 | } | ||
102 | 96 | |||
103 | 97 | void | ||
104 | 98 | _cogl_texture_2d_set_auto_mipmap (CoglTexture *tex, | ||
105 | 99 | CoglBool value) | ||
106 | 100 | { | ||
107 | 101 | CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex); | ||
108 | 102 | |||
109 | 103 | tex_2d->auto_mipmap = value; | ||
110 | 104 | } | ||
111 | 105 | |||
112 | 106 | CoglTexture2D * | ||
113 | 107 | _cogl_texture_2d_create_base (CoglContext *ctx, | ||
114 | 108 | int width, | ||
115 | 109 | int height, | ||
116 | 110 | CoglPixelFormat internal_format) | ||
117 | 111 | { | ||
118 | 112 | CoglTexture2D *tex_2d = g_new (CoglTexture2D, 1); | ||
119 | 113 | CoglTexture *tex = COGL_TEXTURE (tex_2d); | ||
120 | 114 | |||
121 | 115 | _cogl_texture_init (tex, ctx, width, height, &cogl_texture_2d_vtable); | ||
122 | 116 | |||
123 | 117 | tex_2d->mipmaps_dirty = TRUE; | ||
124 | 118 | tex_2d->auto_mipmap = TRUE; | ||
125 | 119 | |||
126 | 120 | tex_2d->is_foreign = FALSE; | ||
127 | 121 | |||
128 | 122 | tex_2d->internal_format = internal_format; | ||
129 | 123 | |||
130 | 124 | ctx->driver_vtable->texture_2d_init (tex_2d); | ||
131 | 125 | |||
132 | 126 | return _cogl_texture_2d_object_new (tex_2d); | ||
133 | 127 | } | ||
134 | 128 | |||
135 | 129 | CoglTexture2D * | ||
136 | 130 | cogl_texture_2d_new_with_size (CoglContext *ctx, | ||
137 | 131 | int width, | ||
138 | 132 | int height, | ||
139 | 133 | CoglPixelFormat internal_format) | ||
140 | 134 | { | ||
141 | 135 | /* Since no data, we need some internal format */ | ||
142 | 136 | if (internal_format == COGL_PIXEL_FORMAT_ANY) | ||
143 | 137 | internal_format = COGL_PIXEL_FORMAT_RGBA_8888_PRE; | ||
144 | 138 | |||
145 | 139 | return _cogl_texture_2d_create_base (ctx, | ||
146 | 140 | width, height, | ||
147 | 141 | internal_format); | ||
148 | 142 | } | ||
149 | 143 | |||
150 | 144 | static CoglBool | ||
151 | 145 | _cogl_texture_2d_allocate (CoglTexture *tex, | ||
152 | 146 | CoglError **error) | ||
153 | 147 | { | ||
154 | 148 | CoglContext *ctx = tex->context; | ||
155 | 149 | return ctx->driver_vtable->texture_2d_allocate (tex, error); | ||
156 | 150 | } | ||
157 | 151 | |||
158 | 152 | CoglTexture2D * | ||
159 | 153 | _cogl_texture_2d_new_from_bitmap (CoglBitmap *bmp, | ||
160 | 154 | CoglPixelFormat internal_format, | ||
161 | 155 | CoglBool can_convert_in_place, | ||
162 | 156 | CoglError **error) | ||
163 | 157 | { | ||
164 | 158 | CoglContext *ctx; | ||
165 | 159 | |||
166 | 160 | _COGL_RETURN_VAL_IF_FAIL (bmp != NULL, NULL); | ||
167 | 161 | |||
168 | 162 | ctx = _cogl_bitmap_get_context (bmp); | ||
169 | 163 | |||
170 | 164 | internal_format = | ||
171 | 165 | _cogl_texture_determine_internal_format (cogl_bitmap_get_format (bmp), | ||
172 | 166 | internal_format); | ||
173 | 167 | |||
174 | 168 | if (!_cogl_texture_2d_can_create (ctx, | ||
175 | 169 | cogl_bitmap_get_width (bmp), | ||
176 | 170 | cogl_bitmap_get_height (bmp), | ||
177 | 171 | internal_format)) | ||
178 | 172 | { | ||
179 | 173 | _cogl_set_error (error, COGL_TEXTURE_ERROR, | ||
180 | 174 | COGL_TEXTURE_ERROR_SIZE, | ||
181 | 175 | "Failed to create texture 2d due to size/format" | ||
182 | 176 | " constraints"); | ||
183 | 177 | return NULL; | ||
184 | 178 | } | ||
185 | 179 | |||
186 | 180 | return ctx->driver_vtable->texture_2d_new_from_bitmap (bmp, | ||
187 | 181 | internal_format, | ||
188 | 182 | can_convert_in_place, | ||
189 | 183 | error); | ||
190 | 184 | } | ||
191 | 185 | |||
192 | 186 | CoglTexture2D * | ||
193 | 187 | cogl_texture_2d_new_from_bitmap (CoglBitmap *bmp, | ||
194 | 188 | CoglPixelFormat internal_format, | ||
195 | 189 | CoglError **error) | ||
196 | 190 | { | ||
197 | 191 | return _cogl_texture_2d_new_from_bitmap (bmp, internal_format, FALSE, error); | ||
198 | 192 | } | ||
199 | 193 | |||
200 | 194 | CoglTexture2D * | ||
201 | 195 | cogl_texture_2d_new_from_file (CoglContext *ctx, | ||
202 | 196 | const char *filename, | ||
203 | 197 | CoglPixelFormat internal_format, | ||
204 | 198 | CoglError **error) | ||
205 | 199 | { | ||
206 | 200 | CoglBitmap *bmp; | ||
207 | 201 | CoglTexture2D *tex_2d = NULL; | ||
208 | 202 | |||
209 | 203 | _COGL_RETURN_VAL_IF_FAIL (error == NULL || *error == NULL, NULL); | ||
210 | 204 | |||
211 | 205 | bmp = _cogl_bitmap_from_file (ctx, filename, error); | ||
212 | 206 | if (bmp == NULL) | ||
213 | 207 | return NULL; | ||
214 | 208 | |||
215 | 209 | tex_2d = _cogl_texture_2d_new_from_bitmap (bmp, | ||
216 | 210 | internal_format, | ||
217 | 211 | TRUE, /* can convert in-place */ | ||
218 | 212 | error); | ||
219 | 213 | |||
220 | 214 | cogl_object_unref (bmp); | ||
221 | 215 | |||
222 | 216 | return tex_2d; | ||
223 | 217 | } | ||
224 | 218 | |||
225 | 219 | CoglTexture2D * | ||
226 | 220 | cogl_texture_2d_new_from_data (CoglContext *ctx, | ||
227 | 221 | int width, | ||
228 | 222 | int height, | ||
229 | 223 | CoglPixelFormat format, | ||
230 | 224 | CoglPixelFormat internal_format, | ||
231 | 225 | int rowstride, | ||
232 | 226 | const uint8_t *data, | ||
233 | 227 | CoglError **error) | ||
234 | 228 | { | ||
235 | 229 | CoglBitmap *bmp; | ||
236 | 230 | CoglTexture2D *tex_2d; | ||
237 | 231 | |||
238 | 232 | _COGL_RETURN_VAL_IF_FAIL (format != COGL_PIXEL_FORMAT_ANY, NULL); | ||
239 | 233 | _COGL_RETURN_VAL_IF_FAIL (data != NULL, NULL); | ||
240 | 234 | |||
241 | 235 | /* Rowstride from width if not given */ | ||
242 | 236 | if (rowstride == 0) | ||
243 | 237 | rowstride = width * _cogl_pixel_format_get_bytes_per_pixel (format); | ||
244 | 238 | |||
245 | 239 | /* Wrap the data into a bitmap */ | ||
246 | 240 | bmp = cogl_bitmap_new_for_data (ctx, | ||
247 | 241 | width, height, | ||
248 | 242 | format, | ||
249 | 243 | rowstride, | ||
250 | 244 | (uint8_t *) data); | ||
251 | 245 | |||
252 | 246 | tex_2d = cogl_texture_2d_new_from_bitmap (bmp, | ||
253 | 247 | internal_format, | ||
254 | 248 | error); | ||
255 | 249 | |||
256 | 250 | cogl_object_unref (bmp); | ||
257 | 251 | |||
258 | 252 | return tex_2d; | ||
259 | 253 | } | ||
260 | 254 | |||
261 | 255 | #if defined (COGL_HAS_EGL_SUPPORT) && defined (EGL_KHR_image_base) | ||
262 | 256 | /* NB: The reason we require the width, height and format to be passed | ||
263 | 257 | * even though they may seem redundant is because GLES 1/2 don't | ||
264 | 258 | * provide a way to query these properties. */ | ||
265 | 259 | CoglTexture2D * | ||
266 | 260 | _cogl_egl_texture_2d_new_from_image (CoglContext *ctx, | ||
267 | 261 | int width, | ||
268 | 262 | int height, | ||
269 | 263 | CoglPixelFormat format, | ||
270 | 264 | EGLImageKHR image, | ||
271 | 265 | CoglError **error) | ||
272 | 266 | { | ||
273 | 267 | _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->constraints & | ||
274 | 268 | COGL_RENDERER_CONSTRAINT_USES_EGL, | ||
275 | 269 | NULL); | ||
276 | 270 | |||
277 | 271 | _COGL_RETURN_VAL_IF_FAIL (ctx->private_feature_flags & | ||
278 | 272 | COGL_PRIVATE_FEATURE_TEXTURE_2D_FROM_EGL_IMAGE, | ||
279 | 273 | NULL); | ||
280 | 274 | |||
281 | 275 | if (ctx->driver_vtable->egl_texture_2d_new_from_image) | ||
282 | 276 | return ctx->driver_vtable->egl_texture_2d_new_from_image (ctx, | ||
283 | 277 | width, | ||
284 | 278 | height, | ||
285 | 279 | format, | ||
286 | 280 | image, | ||
287 | 281 | error); | ||
288 | 282 | else | ||
289 | 283 | { | ||
290 | 284 | _cogl_set_error (error, | ||
291 | 285 | COGL_SYSTEM_ERROR, | ||
292 | 286 | COGL_SYSTEM_ERROR_UNSUPPORTED, | ||
293 | 287 | "Creating 2D textures from EGL images is not " | ||
294 | 288 | "supported by the current driver"); | ||
295 | 289 | return NULL; | ||
296 | 290 | } | ||
297 | 291 | } | ||
298 | 292 | #endif /* defined (COGL_HAS_EGL_SUPPORT) && defined (EGL_KHR_image_base) */ | ||
299 | 293 | |||
300 | 294 | #ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT | ||
301 | 295 | CoglTexture2D * | ||
302 | 296 | cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx, | ||
303 | 297 | struct wl_resource *buffer_resource, | ||
304 | 298 | CoglError **error) | ||
305 | 299 | { | ||
306 | 300 | struct wl_shm_buffer *shm_buffer; | ||
307 | 301 | |||
308 | 302 | shm_buffer = wl_shm_buffer_get (buffer_resource); | ||
309 | 303 | |||
310 | 304 | if (shm_buffer) | ||
311 | 305 | { | ||
312 | 306 | int stride = wl_shm_buffer_get_stride (shm_buffer); | ||
313 | 307 | CoglPixelFormat format; | ||
314 | 308 | CoglPixelFormat internal_format = COGL_PIXEL_FORMAT_ANY; | ||
315 | 309 | int width = wl_shm_buffer_get_width (shm_buffer); | ||
316 | 310 | int height = wl_shm_buffer_get_height (shm_buffer); | ||
317 | 311 | |||
318 | 312 | switch (wl_shm_buffer_get_format (shm_buffer)) | ||
319 | 313 | { | ||
320 | 314 | #if G_BYTE_ORDER == G_BIG_ENDIAN | ||
321 | 315 | case WL_SHM_FORMAT_ARGB8888: | ||
322 | 316 | format = COGL_PIXEL_FORMAT_ARGB_8888_PRE; | ||
323 | 317 | break; | ||
324 | 318 | case WL_SHM_FORMAT_XRGB32: | ||
325 | 319 | format = COGL_PIXEL_FORMAT_ARGB_8888; | ||
326 | 320 | internal_format = COGL_PIXEL_FORMAT_RGB_888; | ||
327 | 321 | break; | ||
328 | 322 | #elif G_BYTE_ORDER == G_LITTLE_ENDIAN | ||
329 | 323 | case WL_SHM_FORMAT_ARGB8888: | ||
330 | 324 | format = COGL_PIXEL_FORMAT_BGRA_8888_PRE; | ||
331 | 325 | break; | ||
332 | 326 | case WL_SHM_FORMAT_XRGB8888: | ||
333 | 327 | format = COGL_PIXEL_FORMAT_BGRA_8888; | ||
334 | 328 | internal_format = COGL_PIXEL_FORMAT_BGR_888; | ||
335 | 329 | break; | ||
336 | 330 | #endif | ||
337 | 331 | default: | ||
338 | 332 | g_warn_if_reached (); | ||
339 | 333 | format = COGL_PIXEL_FORMAT_ARGB_8888; | ||
340 | 334 | } | ||
341 | 335 | |||
342 | 336 | return cogl_texture_2d_new_from_data (ctx, | ||
343 | 337 | width, height, | ||
344 | 338 | format, | ||
345 | 339 | internal_format, | ||
346 | 340 | stride, | ||
347 | 341 | wl_shm_buffer_get_data (shm_buffer), | ||
348 | 342 | error); | ||
349 | 343 | } | ||
350 | 344 | else | ||
351 | 345 | { | ||
352 | 346 | struct wl_buffer *buffer = (struct wl_buffer *) buffer_resource; | ||
353 | 347 | int format, width, height; | ||
354 | 348 | |||
355 | 349 | if (_cogl_egl_query_wayland_buffer (ctx, | ||
356 | 350 | buffer, | ||
357 | 351 | EGL_TEXTURE_FORMAT, | ||
358 | 352 | &format) && | ||
359 | 353 | _cogl_egl_query_wayland_buffer (ctx, | ||
360 | 354 | buffer, | ||
361 | 355 | EGL_WIDTH, | ||
362 | 356 | &width) && | ||
363 | 357 | _cogl_egl_query_wayland_buffer (ctx, | ||
364 | 358 | buffer, | ||
365 | 359 | EGL_HEIGHT, | ||
366 | 360 | &height)) | ||
367 | 361 | { | ||
368 | 362 | EGLImageKHR image; | ||
369 | 363 | CoglTexture2D *tex = NULL; | ||
370 | 364 | CoglPixelFormat internal_format; | ||
371 | 365 | |||
372 | 366 | _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->constraints & | ||
373 | 367 | COGL_RENDERER_CONSTRAINT_USES_EGL, | ||
374 | 368 | NULL); | ||
375 | 369 | |||
376 | 370 | switch (format) | ||
377 | 371 | { | ||
378 | 372 | case EGL_TEXTURE_RGB: | ||
379 | 373 | internal_format = COGL_PIXEL_FORMAT_RGB_888; | ||
380 | 374 | break; | ||
381 | 375 | case EGL_TEXTURE_RGBA: | ||
382 | 376 | internal_format = COGL_PIXEL_FORMAT_RGBA_8888_PRE; | ||
383 | 377 | break; | ||
384 | 378 | default: | ||
385 | 379 | _cogl_set_error (error, | ||
386 | 380 | COGL_SYSTEM_ERROR, | ||
387 | 381 | COGL_SYSTEM_ERROR_UNSUPPORTED, | ||
388 | 382 | "Can't create texture from unknown " | ||
389 | 383 | "wayland buffer format %d\n", format); | ||
390 | 384 | return NULL; | ||
391 | 385 | } | ||
392 | 386 | |||
393 | 387 | image = _cogl_egl_create_image (ctx, | ||
394 | 388 | EGL_WAYLAND_BUFFER_WL, | ||
395 | 389 | buffer, | ||
396 | 390 | NULL); | ||
397 | 391 | tex = _cogl_egl_texture_2d_new_from_image (ctx, | ||
398 | 392 | width, height, | ||
399 | 393 | internal_format, | ||
400 | 394 | image, | ||
401 | 395 | error); | ||
402 | 396 | _cogl_egl_destroy_image (ctx, image); | ||
403 | 397 | return tex; | ||
404 | 398 | } | ||
405 | 399 | } | ||
406 | 400 | |||
407 | 401 | _cogl_set_error (error, | ||
408 | 402 | COGL_SYSTEM_ERROR, | ||
409 | 403 | COGL_SYSTEM_ERROR_UNSUPPORTED, | ||
410 | 404 | "Can't create texture from unknown " | ||
411 | 405 | "wayland buffer type\n"); | ||
412 | 406 | return NULL; | ||
413 | 407 | } | ||
414 | 408 | #endif /* COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT */ | ||
415 | 409 | |||
416 | 410 | void | ||
417 | 411 | _cogl_texture_2d_externally_modified (CoglTexture *texture) | ||
418 | 412 | { | ||
419 | 413 | if (!cogl_is_texture_2d (texture)) | ||
420 | 414 | return; | ||
421 | 415 | |||
422 | 416 | COGL_TEXTURE_2D (texture)->mipmaps_dirty = TRUE; | ||
423 | 417 | } | ||
424 | 418 | |||
425 | 419 | void | ||
426 | 420 | _cogl_texture_2d_copy_from_framebuffer (CoglTexture2D *tex_2d, | ||
427 | 421 | int src_x, | ||
428 | 422 | int src_y, | ||
429 | 423 | int width, | ||
430 | 424 | int height, | ||
431 | 425 | CoglFramebuffer *src_fb, | ||
432 | 426 | int dst_x, | ||
433 | 427 | int dst_y, | ||
434 | 428 | int level) | ||
435 | 429 | { | ||
436 | 430 | CoglTexture *tex = COGL_TEXTURE (tex_2d); | ||
437 | 431 | CoglContext *ctx = tex->context; | ||
438 | 432 | |||
439 | 433 | /* Assert that the storage for this texture has been allocated */ | ||
440 | 434 | cogl_texture_allocate (tex, NULL); /* (abort on error) */ | ||
441 | 435 | |||
442 | 436 | ctx->driver_vtable->texture_2d_copy_from_framebuffer (tex_2d, | ||
443 | 437 | src_x, | ||
444 | 438 | src_y, | ||
445 | 439 | width, | ||
446 | 440 | height, | ||
447 | 441 | src_fb, | ||
448 | 442 | dst_x, | ||
449 | 443 | dst_y, | ||
450 | 444 | level); | ||
451 | 445 | |||
452 | 446 | tex_2d->mipmaps_dirty = TRUE; | ||
453 | 447 | } | ||
454 | 448 | |||
455 | 449 | static int | ||
456 | 450 | _cogl_texture_2d_get_max_waste (CoglTexture *tex) | ||
457 | 451 | { | ||
458 | 452 | return -1; | ||
459 | 453 | } | ||
460 | 454 | |||
461 | 455 | static CoglBool | ||
462 | 456 | _cogl_texture_2d_is_sliced (CoglTexture *tex) | ||
463 | 457 | { | ||
464 | 458 | return FALSE; | ||
465 | 459 | } | ||
466 | 460 | |||
467 | 461 | static CoglBool | ||
468 | 462 | _cogl_texture_2d_can_hardware_repeat (CoglTexture *tex) | ||
469 | 463 | { | ||
470 | 464 | CoglContext *ctx = tex->context; | ||
471 | 465 | |||
472 | 466 | if (cogl_has_feature (ctx, COGL_FEATURE_ID_TEXTURE_NPOT_REPEAT) || | ||
473 | 467 | (_cogl_util_is_pot (tex->width) && | ||
474 | 468 | _cogl_util_is_pot (tex->height))) | ||
475 | 469 | return TRUE; | ||
476 | 470 | else | ||
477 | 471 | return FALSE; | ||
478 | 472 | } | ||
479 | 473 | |||
480 | 474 | static void | ||
481 | 475 | _cogl_texture_2d_transform_coords_to_gl (CoglTexture *tex, | ||
482 | 476 | float *s, | ||
483 | 477 | float *t) | ||
484 | 478 | { | ||
485 | 479 | /* The texture coordinates map directly so we don't need to do | ||
486 | 480 | anything */ | ||
487 | 481 | } | ||
488 | 482 | |||
489 | 483 | static CoglTransformResult | ||
490 | 484 | _cogl_texture_2d_transform_quad_coords_to_gl (CoglTexture *tex, | ||
491 | 485 | float *coords) | ||
492 | 486 | { | ||
493 | 487 | /* The texture coordinates map directly so we don't need to do | ||
494 | 488 | anything other than check for repeats */ | ||
495 | 489 | |||
496 | 490 | int i; | ||
497 | 491 | |||
498 | 492 | for (i = 0; i < 4; i++) | ||
499 | 493 | if (coords[i] < 0.0f || coords[i] > 1.0f) | ||
500 | 494 | { | ||
501 | 495 | /* Repeat is needed */ | ||
502 | 496 | return (_cogl_texture_2d_can_hardware_repeat (tex) ? | ||
503 | 497 | COGL_TRANSFORM_HARDWARE_REPEAT : | ||
504 | 498 | COGL_TRANSFORM_SOFTWARE_REPEAT); | ||
505 | 499 | } | ||
506 | 500 | |||
507 | 501 | /* No repeat is needed */ | ||
508 | 502 | return COGL_TRANSFORM_NO_REPEAT; | ||
509 | 503 | } | ||
510 | 504 | |||
511 | 505 | static CoglBool | ||
512 | 506 | _cogl_texture_2d_get_gl_texture (CoglTexture *tex, | ||
513 | 507 | GLuint *out_gl_handle, | ||
514 | 508 | GLenum *out_gl_target) | ||
515 | 509 | { | ||
516 | 510 | CoglContext *ctx = tex->context; | ||
517 | 511 | CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex); | ||
518 | 512 | |||
519 | 513 | if (ctx->driver_vtable->texture_2d_get_gl_handle) | ||
520 | 514 | { | ||
521 | 515 | GLuint handle; | ||
522 | 516 | |||
523 | 517 | if (out_gl_target) | ||
524 | 518 | *out_gl_target = GL_TEXTURE_2D; | ||
525 | 519 | |||
526 | 520 | handle = ctx->driver_vtable->texture_2d_get_gl_handle (tex_2d); | ||
527 | 521 | |||
528 | 522 | if (out_gl_handle) | ||
529 | 523 | *out_gl_handle = handle; | ||
530 | 524 | |||
531 | 525 | return handle ? TRUE : FALSE; | ||
532 | 526 | } | ||
533 | 527 | else | ||
534 | 528 | return FALSE; | ||
535 | 529 | } | ||
536 | 530 | |||
537 | 531 | static void | ||
538 | 532 | _cogl_texture_2d_pre_paint (CoglTexture *tex, CoglTexturePrePaintFlags flags) | ||
539 | 533 | { | ||
540 | 534 | CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex); | ||
541 | 535 | |||
542 | 536 | /* Only update if the mipmaps are dirty */ | ||
543 | 537 | if ((flags & COGL_TEXTURE_NEEDS_MIPMAP) && | ||
544 | 538 | tex_2d->auto_mipmap && tex_2d->mipmaps_dirty) | ||
545 | 539 | { | ||
546 | 540 | CoglContext *ctx = tex->context; | ||
547 | 541 | |||
548 | 542 | ctx->driver_vtable->texture_2d_generate_mipmap (tex_2d); | ||
549 | 543 | |||
550 | 544 | tex_2d->mipmaps_dirty = FALSE; | ||
551 | 545 | } | ||
552 | 546 | } | ||
553 | 547 | |||
554 | 548 | static void | ||
555 | 549 | _cogl_texture_2d_ensure_non_quad_rendering (CoglTexture *tex) | ||
556 | 550 | { | ||
557 | 551 | /* Nothing needs to be done */ | ||
558 | 552 | } | ||
559 | 553 | |||
560 | 554 | static CoglBool | ||
561 | 555 | _cogl_texture_2d_set_region (CoglTexture *tex, | ||
562 | 556 | int src_x, | ||
563 | 557 | int src_y, | ||
564 | 558 | int dst_x, | ||
565 | 559 | int dst_y, | ||
566 | 560 | int width, | ||
567 | 561 | int height, | ||
568 | 562 | int level, | ||
569 | 563 | CoglBitmap *bmp, | ||
570 | 564 | CoglError **error) | ||
571 | 565 | { | ||
572 | 566 | CoglContext *ctx = tex->context; | ||
573 | 567 | CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex); | ||
574 | 568 | |||
575 | 569 | if (!ctx->driver_vtable->texture_2d_copy_from_bitmap (tex_2d, | ||
576 | 570 | src_x, | ||
577 | 571 | src_y, | ||
578 | 572 | width, | ||
579 | 573 | height, | ||
580 | 574 | bmp, | ||
581 | 575 | dst_x, | ||
582 | 576 | dst_y, | ||
583 | 577 | level, | ||
584 | 578 | error)) | ||
585 | 579 | { | ||
586 | 580 | return FALSE; | ||
587 | 581 | } | ||
588 | 582 | |||
589 | 583 | tex_2d->mipmaps_dirty = TRUE; | ||
590 | 584 | |||
591 | 585 | return TRUE; | ||
592 | 586 | } | ||
593 | 587 | |||
594 | 588 | static CoglBool | ||
595 | 589 | _cogl_texture_2d_get_data (CoglTexture *tex, | ||
596 | 590 | CoglPixelFormat format, | ||
597 | 591 | int rowstride, | ||
598 | 592 | uint8_t *data) | ||
599 | 593 | { | ||
600 | 594 | CoglContext *ctx = tex->context; | ||
601 | 595 | |||
602 | 596 | if (ctx->driver_vtable->texture_2d_get_data) | ||
603 | 597 | { | ||
604 | 598 | CoglTexture2D *tex_2d = COGL_TEXTURE_2D (tex); | ||
605 | 599 | ctx->driver_vtable->texture_2d_get_data (tex_2d, format, rowstride, data); | ||
606 | 600 | return TRUE; | ||
607 | 601 | } | ||
608 | 602 | else | ||
609 | 603 | return FALSE; | ||
610 | 604 | } | ||
611 | 605 | |||
612 | 606 | static CoglPixelFormat | ||
613 | 607 | _cogl_texture_2d_get_format (CoglTexture *tex) | ||
614 | 608 | { | ||
615 | 609 | return COGL_TEXTURE_2D (tex)->internal_format; | ||
616 | 610 | } | ||
617 | 611 | |||
618 | 612 | static GLenum | ||
619 | 613 | _cogl_texture_2d_get_gl_format (CoglTexture *tex) | ||
620 | 614 | { | ||
621 | 615 | return COGL_TEXTURE_2D (tex)->gl_internal_format; | ||
622 | 616 | } | ||
623 | 617 | |||
624 | 618 | static CoglBool | ||
625 | 619 | _cogl_texture_2d_is_foreign (CoglTexture *tex) | ||
626 | 620 | { | ||
627 | 621 | return COGL_TEXTURE_2D (tex)->is_foreign; | ||
628 | 622 | } | ||
629 | 623 | |||
630 | 624 | static CoglTextureType | ||
631 | 625 | _cogl_texture_2d_get_type (CoglTexture *tex) | ||
632 | 626 | { | ||
633 | 627 | return COGL_TEXTURE_TYPE_2D; | ||
634 | 628 | } | ||
635 | 629 | |||
636 | 630 | static const CoglTextureVtable | ||
637 | 631 | cogl_texture_2d_vtable = | ||
638 | 632 | { | ||
639 | 633 | TRUE, /* primitive */ | ||
640 | 634 | _cogl_texture_2d_allocate, | ||
641 | 635 | _cogl_texture_2d_set_region, | ||
642 | 636 | _cogl_texture_2d_get_data, | ||
643 | 637 | NULL, /* foreach_sub_texture_in_region */ | ||
644 | 638 | _cogl_texture_2d_get_max_waste, | ||
645 | 639 | _cogl_texture_2d_is_sliced, | ||
646 | 640 | _cogl_texture_2d_can_hardware_repeat, | ||
647 | 641 | _cogl_texture_2d_transform_coords_to_gl, | ||
648 | 642 | _cogl_texture_2d_transform_quad_coords_to_gl, | ||
649 | 643 | _cogl_texture_2d_get_gl_texture, | ||
650 | 644 | _cogl_texture_2d_gl_flush_legacy_texobj_filters, | ||
651 | 645 | _cogl_texture_2d_pre_paint, | ||
652 | 646 | _cogl_texture_2d_ensure_non_quad_rendering, | ||
653 | 647 | _cogl_texture_2d_gl_flush_legacy_texobj_wrap_modes, | ||
654 | 648 | _cogl_texture_2d_get_format, | ||
655 | 649 | _cogl_texture_2d_get_gl_format, | ||
656 | 650 | _cogl_texture_2d_get_type, | ||
657 | 651 | _cogl_texture_2d_is_foreign, | ||
658 | 652 | _cogl_texture_2d_set_auto_mipmap | ||
659 | 653 | }; | ||
660 | 654 | 0 | ||
661 | === removed directory '.pc/99-ppc64el-support.patch' | |||
662 | === removed directory '.pc/99-ppc64el-support.patch/build' | |||
663 | === removed directory '.pc/99-ppc64el-support.patch/build/autotools' | |||
664 | === removed file '.pc/99-ppc64el-support.patch/build/autotools/libtool.m4' | |||
665 | --- .pc/99-ppc64el-support.patch/build/autotools/libtool.m4 2014-01-02 19:37:38 +0000 | |||
666 | +++ .pc/99-ppc64el-support.patch/build/autotools/libtool.m4 1970-01-01 00:00:00 +0000 | |||
667 | @@ -1,7982 +0,0 @@ | |||
668 | 1 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
669 | 2 | # | ||
670 | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
671 | 4 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | ||
672 | 5 | # Foundation, Inc. | ||
673 | 6 | # Written by Gordon Matzigkeit, 1996 | ||
674 | 7 | # | ||
675 | 8 | # This file is free software; the Free Software Foundation gives | ||
676 | 9 | # unlimited permission to copy and/or distribute it, with or without | ||
677 | 10 | # modifications, as long as this notice is preserved. | ||
678 | 11 | |||
679 | 12 | m4_define([_LT_COPYING], [dnl | ||
680 | 13 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
681 | 14 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | ||
682 | 15 | # Foundation, Inc. | ||
683 | 16 | # Written by Gordon Matzigkeit, 1996 | ||
684 | 17 | # | ||
685 | 18 | # This file is part of GNU Libtool. | ||
686 | 19 | # | ||
687 | 20 | # GNU Libtool is free software; you can redistribute it and/or | ||
688 | 21 | # modify it under the terms of the GNU General Public License as | ||
689 | 22 | # published by the Free Software Foundation; either version 2 of | ||
690 | 23 | # the License, or (at your option) any later version. | ||
691 | 24 | # | ||
692 | 25 | # As a special exception to the GNU General Public License, | ||
693 | 26 | # if you distribute this file as part of a program or library that | ||
694 | 27 | # is built using GNU Libtool, you may include this file under the | ||
695 | 28 | # same distribution terms that you use for the rest of that program. | ||
696 | 29 | # | ||
697 | 30 | # GNU Libtool is distributed in the hope that it will be useful, | ||
698 | 31 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
699 | 32 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
700 | 33 | # GNU General Public License for more details. | ||
701 | 34 | # | ||
702 | 35 | # You should have received a copy of the GNU General Public License | ||
703 | 36 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
704 | 37 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
705 | 38 | # obtained by writing to the Free Software Foundation, Inc., | ||
706 | 39 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
707 | 40 | ]) | ||
708 | 41 | |||
709 | 42 | # serial 57 LT_INIT | ||
710 | 43 | |||
711 | 44 | |||
712 | 45 | # LT_PREREQ(VERSION) | ||
713 | 46 | # ------------------ | ||
714 | 47 | # Complain and exit if this libtool version is less that VERSION. | ||
715 | 48 | m4_defun([LT_PREREQ], | ||
716 | 49 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | ||
717 | 50 | [m4_default([$3], | ||
718 | 51 | [m4_fatal([Libtool version $1 or higher is required], | ||
719 | 52 | 63)])], | ||
720 | 53 | [$2])]) | ||
721 | 54 | |||
722 | 55 | |||
723 | 56 | # _LT_CHECK_BUILDDIR | ||
724 | 57 | # ------------------ | ||
725 | 58 | # Complain if the absolute build directory name contains unusual characters | ||
726 | 59 | m4_defun([_LT_CHECK_BUILDDIR], | ||
727 | 60 | [case `pwd` in | ||
728 | 61 | *\ * | *\ *) | ||
729 | 62 | AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | ||
730 | 63 | esac | ||
731 | 64 | ]) | ||
732 | 65 | |||
733 | 66 | |||
734 | 67 | # LT_INIT([OPTIONS]) | ||
735 | 68 | # ------------------ | ||
736 | 69 | AC_DEFUN([LT_INIT], | ||
737 | 70 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | ||
738 | 71 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | ||
739 | 72 | AC_BEFORE([$0], [LT_LANG])dnl | ||
740 | 73 | AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
741 | 74 | AC_BEFORE([$0], [LTDL_INIT])dnl | ||
742 | 75 | m4_require([_LT_CHECK_BUILDDIR])dnl | ||
743 | 76 | |||
744 | 77 | dnl Autoconf doesn't catch unexpanded LT_ macros by default: | ||
745 | 78 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | ||
746 | 79 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | ||
747 | 80 | dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | ||
748 | 81 | dnl unless we require an AC_DEFUNed macro: | ||
749 | 82 | AC_REQUIRE([LTOPTIONS_VERSION])dnl | ||
750 | 83 | AC_REQUIRE([LTSUGAR_VERSION])dnl | ||
751 | 84 | AC_REQUIRE([LTVERSION_VERSION])dnl | ||
752 | 85 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | ||
753 | 86 | m4_require([_LT_PROG_LTMAIN])dnl | ||
754 | 87 | |||
755 | 88 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | ||
756 | 89 | |||
757 | 90 | dnl Parse OPTIONS | ||
758 | 91 | _LT_SET_OPTIONS([$0], [$1]) | ||
759 | 92 | |||
760 | 93 | # This can be used to rebuild libtool when needed | ||
761 | 94 | LIBTOOL_DEPS="$ltmain" | ||
762 | 95 | |||
763 | 96 | # Always use our own libtool. | ||
764 | 97 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
765 | 98 | AC_SUBST(LIBTOOL)dnl | ||
766 | 99 | |||
767 | 100 | _LT_SETUP | ||
768 | 101 | |||
769 | 102 | # Only expand once: | ||
770 | 103 | m4_define([LT_INIT]) | ||
771 | 104 | ])# LT_INIT | ||
772 | 105 | |||
773 | 106 | # Old names: | ||
774 | 107 | AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | ||
775 | 108 | AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | ||
776 | 109 | dnl aclocal-1.4 backwards compatibility: | ||
777 | 110 | dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | ||
778 | 111 | dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | ||
779 | 112 | |||
780 | 113 | |||
781 | 114 | # _LT_CC_BASENAME(CC) | ||
782 | 115 | # ------------------- | ||
783 | 116 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
784 | 117 | m4_defun([_LT_CC_BASENAME], | ||
785 | 118 | [for cc_temp in $1""; do | ||
786 | 119 | case $cc_temp in | ||
787 | 120 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
788 | 121 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
789 | 122 | \-*) ;; | ||
790 | 123 | *) break;; | ||
791 | 124 | esac | ||
792 | 125 | done | ||
793 | 126 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
794 | 127 | ]) | ||
795 | 128 | |||
796 | 129 | |||
797 | 130 | # _LT_FILEUTILS_DEFAULTS | ||
798 | 131 | # ---------------------- | ||
799 | 132 | # It is okay to use these file commands and assume they have been set | ||
800 | 133 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | ||
801 | 134 | m4_defun([_LT_FILEUTILS_DEFAULTS], | ||
802 | 135 | [: ${CP="cp -f"} | ||
803 | 136 | : ${MV="mv -f"} | ||
804 | 137 | : ${RM="rm -f"} | ||
805 | 138 | ])# _LT_FILEUTILS_DEFAULTS | ||
806 | 139 | |||
807 | 140 | |||
808 | 141 | # _LT_SETUP | ||
809 | 142 | # --------- | ||
810 | 143 | m4_defun([_LT_SETUP], | ||
811 | 144 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
812 | 145 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
813 | 146 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | ||
814 | 147 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | ||
815 | 148 | |||
816 | 149 | _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl | ||
817 | 150 | dnl | ||
818 | 151 | _LT_DECL([], [host_alias], [0], [The host system])dnl | ||
819 | 152 | _LT_DECL([], [host], [0])dnl | ||
820 | 153 | _LT_DECL([], [host_os], [0])dnl | ||
821 | 154 | dnl | ||
822 | 155 | _LT_DECL([], [build_alias], [0], [The build system])dnl | ||
823 | 156 | _LT_DECL([], [build], [0])dnl | ||
824 | 157 | _LT_DECL([], [build_os], [0])dnl | ||
825 | 158 | dnl | ||
826 | 159 | AC_REQUIRE([AC_PROG_CC])dnl | ||
827 | 160 | AC_REQUIRE([LT_PATH_LD])dnl | ||
828 | 161 | AC_REQUIRE([LT_PATH_NM])dnl | ||
829 | 162 | dnl | ||
830 | 163 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
831 | 164 | test -z "$LN_S" && LN_S="ln -s" | ||
832 | 165 | _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | ||
833 | 166 | dnl | ||
834 | 167 | AC_REQUIRE([LT_CMD_MAX_LEN])dnl | ||
835 | 168 | _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | ||
836 | 169 | _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | ||
837 | 170 | dnl | ||
838 | 171 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
839 | 172 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
840 | 173 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | ||
841 | 174 | m4_require([_LT_CMD_RELOAD])dnl | ||
842 | 175 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | ||
843 | 176 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | ||
844 | 177 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | ||
845 | 178 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
846 | 179 | m4_require([_LT_WITH_SYSROOT])dnl | ||
847 | 180 | |||
848 | 181 | _LT_CONFIG_LIBTOOL_INIT([ | ||
849 | 182 | # See if we are running on zsh, and set the options which allow our | ||
850 | 183 | # commands through without removal of \ escapes INIT. | ||
851 | 184 | if test -n "\${ZSH_VERSION+set}" ; then | ||
852 | 185 | setopt NO_GLOB_SUBST | ||
853 | 186 | fi | ||
854 | 187 | ]) | ||
855 | 188 | if test -n "${ZSH_VERSION+set}" ; then | ||
856 | 189 | setopt NO_GLOB_SUBST | ||
857 | 190 | fi | ||
858 | 191 | |||
859 | 192 | _LT_CHECK_OBJDIR | ||
860 | 193 | |||
861 | 194 | m4_require([_LT_TAG_COMPILER])dnl | ||
862 | 195 | |||
863 | 196 | case $host_os in | ||
864 | 197 | aix3*) | ||
865 | 198 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
866 | 199 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
867 | 200 | # vanish in a puff of smoke. | ||
868 | 201 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
869 | 202 | COLLECT_NAMES= | ||
870 | 203 | export COLLECT_NAMES | ||
871 | 204 | fi | ||
872 | 205 | ;; | ||
873 | 206 | esac | ||
874 | 207 | |||
875 | 208 | # Global variables: | ||
876 | 209 | ofile=libtool | ||
877 | 210 | can_build_shared=yes | ||
878 | 211 | |||
879 | 212 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
880 | 213 | # which needs '.lib'). | ||
881 | 214 | libext=a | ||
882 | 215 | |||
883 | 216 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
884 | 217 | |||
885 | 218 | old_CC="$CC" | ||
886 | 219 | old_CFLAGS="$CFLAGS" | ||
887 | 220 | |||
888 | 221 | # Set sane defaults for various variables | ||
889 | 222 | test -z "$CC" && CC=cc | ||
890 | 223 | test -z "$LTCC" && LTCC=$CC | ||
891 | 224 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
892 | 225 | test -z "$LD" && LD=ld | ||
893 | 226 | test -z "$ac_objext" && ac_objext=o | ||
894 | 227 | |||
895 | 228 | _LT_CC_BASENAME([$compiler]) | ||
896 | 229 | |||
897 | 230 | # Only perform the check for file, if the check method requires it | ||
898 | 231 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
899 | 232 | case $deplibs_check_method in | ||
900 | 233 | file_magic*) | ||
901 | 234 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
902 | 235 | _LT_PATH_MAGIC | ||
903 | 236 | fi | ||
904 | 237 | ;; | ||
905 | 238 | esac | ||
906 | 239 | |||
907 | 240 | # Use C for the default configuration in the libtool script | ||
908 | 241 | LT_SUPPORTED_TAG([CC]) | ||
909 | 242 | _LT_LANG_C_CONFIG | ||
910 | 243 | _LT_LANG_DEFAULT_CONFIG | ||
911 | 244 | _LT_CONFIG_COMMANDS | ||
912 | 245 | ])# _LT_SETUP | ||
913 | 246 | |||
914 | 247 | |||
915 | 248 | # _LT_PREPARE_SED_QUOTE_VARS | ||
916 | 249 | # -------------------------- | ||
917 | 250 | # Define a few sed substitution that help us do robust quoting. | ||
918 | 251 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | ||
919 | 252 | [# Backslashify metacharacters that are still active within | ||
920 | 253 | # double-quoted strings. | ||
921 | 254 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
922 | 255 | |||
923 | 256 | # Same as above, but do not quote variable references. | ||
924 | 257 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
925 | 258 | |||
926 | 259 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
927 | 260 | # double_quote_subst'ed string. | ||
928 | 261 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
929 | 262 | |||
930 | 263 | # Sed substitution to delay expansion of an escaped single quote. | ||
931 | 264 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
932 | 265 | |||
933 | 266 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
934 | 267 | no_glob_subst='s/\*/\\\*/g' | ||
935 | 268 | ]) | ||
936 | 269 | |||
937 | 270 | # _LT_PROG_LTMAIN | ||
938 | 271 | # --------------- | ||
939 | 272 | # Note that this code is called both from `configure', and `config.status' | ||
940 | 273 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | ||
941 | 274 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | ||
942 | 275 | # so we pass a copy along to make sure it has a sensible value anyway. | ||
943 | 276 | m4_defun([_LT_PROG_LTMAIN], | ||
944 | 277 | [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | ||
945 | 278 | _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | ||
946 | 279 | ltmain="$ac_aux_dir/ltmain.sh" | ||
947 | 280 | ])# _LT_PROG_LTMAIN | ||
948 | 281 | |||
949 | 282 | |||
950 | 283 | ## ------------------------------------- ## | ||
951 | 284 | ## Accumulate code for creating libtool. ## | ||
952 | 285 | ## ------------------------------------- ## | ||
953 | 286 | |||
954 | 287 | # So that we can recreate a full libtool script including additional | ||
955 | 288 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | ||
956 | 289 | # in macros and then make a single call at the end using the `libtool' | ||
957 | 290 | # label. | ||
958 | 291 | |||
959 | 292 | |||
960 | 293 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | ||
961 | 294 | # ---------------------------------------- | ||
962 | 295 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | ||
963 | 296 | m4_define([_LT_CONFIG_LIBTOOL_INIT], | ||
964 | 297 | [m4_ifval([$1], | ||
965 | 298 | [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | ||
966 | 299 | [$1 | ||
967 | 300 | ])])]) | ||
968 | 301 | |||
969 | 302 | # Initialize. | ||
970 | 303 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | ||
971 | 304 | |||
972 | 305 | |||
973 | 306 | # _LT_CONFIG_LIBTOOL([COMMANDS]) | ||
974 | 307 | # ------------------------------ | ||
975 | 308 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | ||
976 | 309 | m4_define([_LT_CONFIG_LIBTOOL], | ||
977 | 310 | [m4_ifval([$1], | ||
978 | 311 | [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | ||
979 | 312 | [$1 | ||
980 | 313 | ])])]) | ||
981 | 314 | |||
982 | 315 | # Initialize. | ||
983 | 316 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | ||
984 | 317 | |||
985 | 318 | |||
986 | 319 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | ||
987 | 320 | # ----------------------------------------------------- | ||
988 | 321 | m4_defun([_LT_CONFIG_SAVE_COMMANDS], | ||
989 | 322 | [_LT_CONFIG_LIBTOOL([$1]) | ||
990 | 323 | _LT_CONFIG_LIBTOOL_INIT([$2]) | ||
991 | 324 | ]) | ||
992 | 325 | |||
993 | 326 | |||
994 | 327 | # _LT_FORMAT_COMMENT([COMMENT]) | ||
995 | 328 | # ----------------------------- | ||
996 | 329 | # Add leading comment marks to the start of each line, and a trailing | ||
997 | 330 | # full-stop to the whole comment if one is not present already. | ||
998 | 331 | m4_define([_LT_FORMAT_COMMENT], | ||
999 | 332 | [m4_ifval([$1], [ | ||
1000 | 333 | m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | ||
1001 | 334 | [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | ||
1002 | 335 | )]) | ||
1003 | 336 | |||
1004 | 337 | |||
1005 | 338 | |||
1006 | 339 | ## ------------------------ ## | ||
1007 | 340 | ## FIXME: Eliminate VARNAME ## | ||
1008 | 341 | ## ------------------------ ## | ||
1009 | 342 | |||
1010 | 343 | |||
1011 | 344 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | ||
1012 | 345 | # ------------------------------------------------------------------- | ||
1013 | 346 | # CONFIGNAME is the name given to the value in the libtool script. | ||
1014 | 347 | # VARNAME is the (base) name used in the configure script. | ||
1015 | 348 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | ||
1016 | 349 | # VARNAME. Any other value will be used directly. | ||
1017 | 350 | m4_define([_LT_DECL], | ||
1018 | 351 | [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | ||
1019 | 352 | [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | ||
1020 | 353 | [m4_ifval([$1], [$1], [$2])]) | ||
1021 | 354 | lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | ||
1022 | 355 | m4_ifval([$4], | ||
1023 | 356 | [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | ||
1024 | 357 | lt_dict_add_subkey([lt_decl_dict], [$2], | ||
1025 | 358 | [tagged?], [m4_ifval([$5], [yes], [no])])]) | ||
1026 | 359 | ]) | ||
1027 | 360 | |||
1028 | 361 | |||
1029 | 362 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | ||
1030 | 363 | # -------------------------------------------------------- | ||
1031 | 364 | m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | ||
1032 | 365 | |||
1033 | 366 | |||
1034 | 367 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | ||
1035 | 368 | # ------------------------------------------------ | ||
1036 | 369 | m4_define([lt_decl_tag_varnames], | ||
1037 | 370 | [_lt_decl_filter([tagged?], [yes], $@)]) | ||
1038 | 371 | |||
1039 | 372 | |||
1040 | 373 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | ||
1041 | 374 | # --------------------------------------------------------- | ||
1042 | 375 | m4_define([_lt_decl_filter], | ||
1043 | 376 | [m4_case([$#], | ||
1044 | 377 | [0], [m4_fatal([$0: too few arguments: $#])], | ||
1045 | 378 | [1], [m4_fatal([$0: too few arguments: $#: $1])], | ||
1046 | 379 | [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | ||
1047 | 380 | [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | ||
1048 | 381 | [lt_dict_filter([lt_decl_dict], $@)])[]dnl | ||
1049 | 382 | ]) | ||
1050 | 383 | |||
1051 | 384 | |||
1052 | 385 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | ||
1053 | 386 | # -------------------------------------------------- | ||
1054 | 387 | m4_define([lt_decl_quote_varnames], | ||
1055 | 388 | [_lt_decl_filter([value], [1], $@)]) | ||
1056 | 389 | |||
1057 | 390 | |||
1058 | 391 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | ||
1059 | 392 | # --------------------------------------------------- | ||
1060 | 393 | m4_define([lt_decl_dquote_varnames], | ||
1061 | 394 | [_lt_decl_filter([value], [2], $@)]) | ||
1062 | 395 | |||
1063 | 396 | |||
1064 | 397 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | ||
1065 | 398 | # --------------------------------------------------- | ||
1066 | 399 | m4_define([lt_decl_varnames_tagged], | ||
1067 | 400 | [m4_assert([$# <= 2])dnl | ||
1068 | 401 | _$0(m4_quote(m4_default([$1], [[, ]])), | ||
1069 | 402 | m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | ||
1070 | 403 | m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | ||
1071 | 404 | m4_define([_lt_decl_varnames_tagged], | ||
1072 | 405 | [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | ||
1073 | 406 | |||
1074 | 407 | |||
1075 | 408 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | ||
1076 | 409 | # ------------------------------------------------ | ||
1077 | 410 | m4_define([lt_decl_all_varnames], | ||
1078 | 411 | [_$0(m4_quote(m4_default([$1], [[, ]])), | ||
1079 | 412 | m4_if([$2], [], | ||
1080 | 413 | m4_quote(lt_decl_varnames), | ||
1081 | 414 | m4_quote(m4_shift($@))))[]dnl | ||
1082 | 415 | ]) | ||
1083 | 416 | m4_define([_lt_decl_all_varnames], | ||
1084 | 417 | [lt_join($@, lt_decl_varnames_tagged([$1], | ||
1085 | 418 | lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | ||
1086 | 419 | ]) | ||
1087 | 420 | |||
1088 | 421 | |||
1089 | 422 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | ||
1090 | 423 | # ------------------------------------ | ||
1091 | 424 | # Quote a variable value, and forward it to `config.status' so that its | ||
1092 | 425 | # declaration there will have the same value as in `configure'. VARNAME | ||
1093 | 426 | # must have a single quote delimited value for this to work. | ||
1094 | 427 | m4_define([_LT_CONFIG_STATUS_DECLARE], | ||
1095 | 428 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | ||
1096 | 429 | |||
1097 | 430 | |||
1098 | 431 | # _LT_CONFIG_STATUS_DECLARATIONS | ||
1099 | 432 | # ------------------------------ | ||
1100 | 433 | # We delimit libtool config variables with single quotes, so when | ||
1101 | 434 | # we write them to config.status, we have to be sure to quote all | ||
1102 | 435 | # embedded single quotes properly. In configure, this macro expands | ||
1103 | 436 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | ||
1104 | 437 | # | ||
1105 | 438 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | ||
1106 | 439 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | ||
1107 | 440 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | ||
1108 | 441 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | ||
1109 | 442 | |||
1110 | 443 | |||
1111 | 444 | # _LT_LIBTOOL_TAGS | ||
1112 | 445 | # ---------------- | ||
1113 | 446 | # Output comment and list of tags supported by the script | ||
1114 | 447 | m4_defun([_LT_LIBTOOL_TAGS], | ||
1115 | 448 | [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | ||
1116 | 449 | available_tags="_LT_TAGS"dnl | ||
1117 | 450 | ]) | ||
1118 | 451 | |||
1119 | 452 | |||
1120 | 453 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | ||
1121 | 454 | # ----------------------------------- | ||
1122 | 455 | # Extract the dictionary values for VARNAME (optionally with TAG) and | ||
1123 | 456 | # expand to a commented shell variable setting: | ||
1124 | 457 | # | ||
1125 | 458 | # # Some comment about what VAR is for. | ||
1126 | 459 | # visible_name=$lt_internal_name | ||
1127 | 460 | m4_define([_LT_LIBTOOL_DECLARE], | ||
1128 | 461 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | ||
1129 | 462 | [description])))[]dnl | ||
1130 | 463 | m4_pushdef([_libtool_name], | ||
1131 | 464 | m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | ||
1132 | 465 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | ||
1133 | 466 | [0], [_libtool_name=[$]$1], | ||
1134 | 467 | [1], [_libtool_name=$lt_[]$1], | ||
1135 | 468 | [2], [_libtool_name=$lt_[]$1], | ||
1136 | 469 | [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | ||
1137 | 470 | m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | ||
1138 | 471 | ]) | ||
1139 | 472 | |||
1140 | 473 | |||
1141 | 474 | # _LT_LIBTOOL_CONFIG_VARS | ||
1142 | 475 | # ----------------------- | ||
1143 | 476 | # Produce commented declarations of non-tagged libtool config variables | ||
1144 | 477 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | ||
1145 | 478 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | ||
1146 | 479 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | ||
1147 | 480 | m4_defun([_LT_LIBTOOL_CONFIG_VARS], | ||
1148 | 481 | [m4_foreach([_lt_var], | ||
1149 | 482 | m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | ||
1150 | 483 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | ||
1151 | 484 | |||
1152 | 485 | |||
1153 | 486 | # _LT_LIBTOOL_TAG_VARS(TAG) | ||
1154 | 487 | # ------------------------- | ||
1155 | 488 | m4_define([_LT_LIBTOOL_TAG_VARS], | ||
1156 | 489 | [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | ||
1157 | 490 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | ||
1158 | 491 | |||
1159 | 492 | |||
1160 | 493 | # _LT_TAGVAR(VARNAME, [TAGNAME]) | ||
1161 | 494 | # ------------------------------ | ||
1162 | 495 | m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | ||
1163 | 496 | |||
1164 | 497 | |||
1165 | 498 | # _LT_CONFIG_COMMANDS | ||
1166 | 499 | # ------------------- | ||
1167 | 500 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | ||
1168 | 501 | # variables for single and double quote escaping we saved from calls | ||
1169 | 502 | # to _LT_DECL, we can put quote escaped variables declarations | ||
1170 | 503 | # into `config.status', and then the shell code to quote escape them in | ||
1171 | 504 | # for loops in `config.status'. Finally, any additional code accumulated | ||
1172 | 505 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | ||
1173 | 506 | m4_defun([_LT_CONFIG_COMMANDS], | ||
1174 | 507 | [AC_PROVIDE_IFELSE([LT_OUTPUT], | ||
1175 | 508 | dnl If the libtool generation code has been placed in $CONFIG_LT, | ||
1176 | 509 | dnl instead of duplicating it all over again into config.status, | ||
1177 | 510 | dnl then we will have config.status run $CONFIG_LT later, so it | ||
1178 | 511 | dnl needs to know what name is stored there: | ||
1179 | 512 | [AC_CONFIG_COMMANDS([libtool], | ||
1180 | 513 | [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | ||
1181 | 514 | dnl If the libtool generation code is destined for config.status, | ||
1182 | 515 | dnl expand the accumulated commands and init code now: | ||
1183 | 516 | [AC_CONFIG_COMMANDS([libtool], | ||
1184 | 517 | [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | ||
1185 | 518 | ])#_LT_CONFIG_COMMANDS | ||
1186 | 519 | |||
1187 | 520 | |||
1188 | 521 | # Initialize. | ||
1189 | 522 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | ||
1190 | 523 | [ | ||
1191 | 524 | |||
1192 | 525 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
1193 | 526 | # if CDPATH is set. | ||
1194 | 527 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
1195 | 528 | |||
1196 | 529 | sed_quote_subst='$sed_quote_subst' | ||
1197 | 530 | double_quote_subst='$double_quote_subst' | ||
1198 | 531 | delay_variable_subst='$delay_variable_subst' | ||
1199 | 532 | _LT_CONFIG_STATUS_DECLARATIONS | ||
1200 | 533 | LTCC='$LTCC' | ||
1201 | 534 | LTCFLAGS='$LTCFLAGS' | ||
1202 | 535 | compiler='$compiler_DEFAULT' | ||
1203 | 536 | |||
1204 | 537 | # A function that is used when there is no print builtin or printf. | ||
1205 | 538 | func_fallback_echo () | ||
1206 | 539 | { | ||
1207 | 540 | eval 'cat <<_LTECHO_EOF | ||
1208 | 541 | \$[]1 | ||
1209 | 542 | _LTECHO_EOF' | ||
1210 | 543 | } | ||
1211 | 544 | |||
1212 | 545 | # Quote evaled strings. | ||
1213 | 546 | for var in lt_decl_all_varnames([[ \ | ||
1214 | 547 | ]], lt_decl_quote_varnames); do | ||
1215 | 548 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
1216 | 549 | *[[\\\\\\\`\\"\\\$]]*) | ||
1217 | 550 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
1218 | 551 | ;; | ||
1219 | 552 | *) | ||
1220 | 553 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
1221 | 554 | ;; | ||
1222 | 555 | esac | ||
1223 | 556 | done | ||
1224 | 557 | |||
1225 | 558 | # Double-quote double-evaled strings. | ||
1226 | 559 | for var in lt_decl_all_varnames([[ \ | ||
1227 | 560 | ]], lt_decl_dquote_varnames); do | ||
1228 | 561 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
1229 | 562 | *[[\\\\\\\`\\"\\\$]]*) | ||
1230 | 563 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
1231 | 564 | ;; | ||
1232 | 565 | *) | ||
1233 | 566 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
1234 | 567 | ;; | ||
1235 | 568 | esac | ||
1236 | 569 | done | ||
1237 | 570 | |||
1238 | 571 | _LT_OUTPUT_LIBTOOL_INIT | ||
1239 | 572 | ]) | ||
1240 | 573 | |||
1241 | 574 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | ||
1242 | 575 | # ------------------------------------ | ||
1243 | 576 | # Generate a child script FILE with all initialization necessary to | ||
1244 | 577 | # reuse the environment learned by the parent script, and make the | ||
1245 | 578 | # file executable. If COMMENT is supplied, it is inserted after the | ||
1246 | 579 | # `#!' sequence but before initialization text begins. After this | ||
1247 | 580 | # macro, additional text can be appended to FILE to form the body of | ||
1248 | 581 | # the child script. The macro ends with non-zero status if the | ||
1249 | 582 | # file could not be fully written (such as if the disk is full). | ||
1250 | 583 | m4_ifdef([AS_INIT_GENERATED], | ||
1251 | 584 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | ||
1252 | 585 | [m4_defun([_LT_GENERATED_FILE_INIT], | ||
1253 | 586 | [m4_require([AS_PREPARE])]dnl | ||
1254 | 587 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | ||
1255 | 588 | [lt_write_fail=0 | ||
1256 | 589 | cat >$1 <<_ASEOF || lt_write_fail=1 | ||
1257 | 590 | #! $SHELL | ||
1258 | 591 | # Generated by $as_me. | ||
1259 | 592 | $2 | ||
1260 | 593 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
1261 | 594 | export SHELL | ||
1262 | 595 | _ASEOF | ||
1263 | 596 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | ||
1264 | 597 | AS_SHELL_SANITIZE | ||
1265 | 598 | _AS_PREPARE | ||
1266 | 599 | exec AS_MESSAGE_FD>&1 | ||
1267 | 600 | _ASEOF | ||
1268 | 601 | test $lt_write_fail = 0 && chmod +x $1[]dnl | ||
1269 | 602 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | ||
1270 | 603 | |||
1271 | 604 | # LT_OUTPUT | ||
1272 | 605 | # --------- | ||
1273 | 606 | # This macro allows early generation of the libtool script (before | ||
1274 | 607 | # AC_OUTPUT is called), incase it is used in configure for compilation | ||
1275 | 608 | # tests. | ||
1276 | 609 | AC_DEFUN([LT_OUTPUT], | ||
1277 | 610 | [: ${CONFIG_LT=./config.lt} | ||
1278 | 611 | AC_MSG_NOTICE([creating $CONFIG_LT]) | ||
1279 | 612 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | ||
1280 | 613 | [# Run this file to recreate a libtool stub with the current configuration.]) | ||
1281 | 614 | |||
1282 | 615 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1283 | 616 | lt_cl_silent=false | ||
1284 | 617 | exec AS_MESSAGE_LOG_FD>>config.log | ||
1285 | 618 | { | ||
1286 | 619 | echo | ||
1287 | 620 | AS_BOX([Running $as_me.]) | ||
1288 | 621 | } >&AS_MESSAGE_LOG_FD | ||
1289 | 622 | |||
1290 | 623 | lt_cl_help="\ | ||
1291 | 624 | \`$as_me' creates a local libtool stub from the current configuration, | ||
1292 | 625 | for use in further configure time tests before the real libtool is | ||
1293 | 626 | generated. | ||
1294 | 627 | |||
1295 | 628 | Usage: $[0] [[OPTIONS]] | ||
1296 | 629 | |||
1297 | 630 | -h, --help print this help, then exit | ||
1298 | 631 | -V, --version print version number, then exit | ||
1299 | 632 | -q, --quiet do not print progress messages | ||
1300 | 633 | -d, --debug don't remove temporary files | ||
1301 | 634 | |||
1302 | 635 | Report bugs to <bug-libtool@gnu.org>." | ||
1303 | 636 | |||
1304 | 637 | lt_cl_version="\ | ||
1305 | 638 | m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | ||
1306 | 639 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | ||
1307 | 640 | configured by $[0], generated by m4_PACKAGE_STRING. | ||
1308 | 641 | |||
1309 | 642 | Copyright (C) 2011 Free Software Foundation, Inc. | ||
1310 | 643 | This config.lt script is free software; the Free Software Foundation | ||
1311 | 644 | gives unlimited permision to copy, distribute and modify it." | ||
1312 | 645 | |||
1313 | 646 | while test $[#] != 0 | ||
1314 | 647 | do | ||
1315 | 648 | case $[1] in | ||
1316 | 649 | --version | --v* | -V ) | ||
1317 | 650 | echo "$lt_cl_version"; exit 0 ;; | ||
1318 | 651 | --help | --h* | -h ) | ||
1319 | 652 | echo "$lt_cl_help"; exit 0 ;; | ||
1320 | 653 | --debug | --d* | -d ) | ||
1321 | 654 | debug=: ;; | ||
1322 | 655 | --quiet | --q* | --silent | --s* | -q ) | ||
1323 | 656 | lt_cl_silent=: ;; | ||
1324 | 657 | |||
1325 | 658 | -*) AC_MSG_ERROR([unrecognized option: $[1] | ||
1326 | 659 | Try \`$[0] --help' for more information.]) ;; | ||
1327 | 660 | |||
1328 | 661 | *) AC_MSG_ERROR([unrecognized argument: $[1] | ||
1329 | 662 | Try \`$[0] --help' for more information.]) ;; | ||
1330 | 663 | esac | ||
1331 | 664 | shift | ||
1332 | 665 | done | ||
1333 | 666 | |||
1334 | 667 | if $lt_cl_silent; then | ||
1335 | 668 | exec AS_MESSAGE_FD>/dev/null | ||
1336 | 669 | fi | ||
1337 | 670 | _LTEOF | ||
1338 | 671 | |||
1339 | 672 | cat >>"$CONFIG_LT" <<_LTEOF | ||
1340 | 673 | _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | ||
1341 | 674 | _LTEOF | ||
1342 | 675 | |||
1343 | 676 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1344 | 677 | AC_MSG_NOTICE([creating $ofile]) | ||
1345 | 678 | _LT_OUTPUT_LIBTOOL_COMMANDS | ||
1346 | 679 | AS_EXIT(0) | ||
1347 | 680 | _LTEOF | ||
1348 | 681 | chmod +x "$CONFIG_LT" | ||
1349 | 682 | |||
1350 | 683 | # configure is writing to config.log, but config.lt does its own redirection, | ||
1351 | 684 | # appending to config.log, which fails on DOS, as config.log is still kept | ||
1352 | 685 | # open by configure. Here we exec the FD to /dev/null, effectively closing | ||
1353 | 686 | # config.log, so it can be properly (re)opened and appended to by config.lt. | ||
1354 | 687 | lt_cl_success=: | ||
1355 | 688 | test "$silent" = yes && | ||
1356 | 689 | lt_config_lt_args="$lt_config_lt_args --quiet" | ||
1357 | 690 | exec AS_MESSAGE_LOG_FD>/dev/null | ||
1358 | 691 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | ||
1359 | 692 | exec AS_MESSAGE_LOG_FD>>config.log | ||
1360 | 693 | $lt_cl_success || AS_EXIT(1) | ||
1361 | 694 | ])# LT_OUTPUT | ||
1362 | 695 | |||
1363 | 696 | |||
1364 | 697 | # _LT_CONFIG(TAG) | ||
1365 | 698 | # --------------- | ||
1366 | 699 | # If TAG is the built-in tag, create an initial libtool script with a | ||
1367 | 700 | # default configuration from the untagged config vars. Otherwise add code | ||
1368 | 701 | # to config.status for appending the configuration named by TAG from the | ||
1369 | 702 | # matching tagged config vars. | ||
1370 | 703 | m4_defun([_LT_CONFIG], | ||
1371 | 704 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1372 | 705 | _LT_CONFIG_SAVE_COMMANDS([ | ||
1373 | 706 | m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | ||
1374 | 707 | m4_if(_LT_TAG, [C], [ | ||
1375 | 708 | # See if we are running on zsh, and set the options which allow our | ||
1376 | 709 | # commands through without removal of \ escapes. | ||
1377 | 710 | if test -n "${ZSH_VERSION+set}" ; then | ||
1378 | 711 | setopt NO_GLOB_SUBST | ||
1379 | 712 | fi | ||
1380 | 713 | |||
1381 | 714 | cfgfile="${ofile}T" | ||
1382 | 715 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
1383 | 716 | $RM "$cfgfile" | ||
1384 | 717 | |||
1385 | 718 | cat <<_LT_EOF >> "$cfgfile" | ||
1386 | 719 | #! $SHELL | ||
1387 | 720 | |||
1388 | 721 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
1389 | 722 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
1390 | 723 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
1391 | 724 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
1392 | 725 | # | ||
1393 | 726 | _LT_COPYING | ||
1394 | 727 | _LT_LIBTOOL_TAGS | ||
1395 | 728 | |||
1396 | 729 | # ### BEGIN LIBTOOL CONFIG | ||
1397 | 730 | _LT_LIBTOOL_CONFIG_VARS | ||
1398 | 731 | _LT_LIBTOOL_TAG_VARS | ||
1399 | 732 | # ### END LIBTOOL CONFIG | ||
1400 | 733 | |||
1401 | 734 | _LT_EOF | ||
1402 | 735 | |||
1403 | 736 | case $host_os in | ||
1404 | 737 | aix3*) | ||
1405 | 738 | cat <<\_LT_EOF >> "$cfgfile" | ||
1406 | 739 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
1407 | 740 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
1408 | 741 | # vanish in a puff of smoke. | ||
1409 | 742 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
1410 | 743 | COLLECT_NAMES= | ||
1411 | 744 | export COLLECT_NAMES | ||
1412 | 745 | fi | ||
1413 | 746 | _LT_EOF | ||
1414 | 747 | ;; | ||
1415 | 748 | esac | ||
1416 | 749 | |||
1417 | 750 | _LT_PROG_LTMAIN | ||
1418 | 751 | |||
1419 | 752 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
1420 | 753 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
1421 | 754 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
1422 | 755 | # is reportedly fixed, but why not run on old versions too? | ||
1423 | 756 | sed '$q' "$ltmain" >> "$cfgfile" \ | ||
1424 | 757 | || (rm -f "$cfgfile"; exit 1) | ||
1425 | 758 | |||
1426 | 759 | _LT_PROG_REPLACE_SHELLFNS | ||
1427 | 760 | |||
1428 | 761 | mv -f "$cfgfile" "$ofile" || | ||
1429 | 762 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
1430 | 763 | chmod +x "$ofile" | ||
1431 | 764 | ], | ||
1432 | 765 | [cat <<_LT_EOF >> "$ofile" | ||
1433 | 766 | |||
1434 | 767 | dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | ||
1435 | 768 | dnl in a comment (ie after a #). | ||
1436 | 769 | # ### BEGIN LIBTOOL TAG CONFIG: $1 | ||
1437 | 770 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) | ||
1438 | 771 | # ### END LIBTOOL TAG CONFIG: $1 | ||
1439 | 772 | _LT_EOF | ||
1440 | 773 | ])dnl /m4_if | ||
1441 | 774 | ], | ||
1442 | 775 | [m4_if([$1], [], [ | ||
1443 | 776 | PACKAGE='$PACKAGE' | ||
1444 | 777 | VERSION='$VERSION' | ||
1445 | 778 | TIMESTAMP='$TIMESTAMP' | ||
1446 | 779 | RM='$RM' | ||
1447 | 780 | ofile='$ofile'], []) | ||
1448 | 781 | ])dnl /_LT_CONFIG_SAVE_COMMANDS | ||
1449 | 782 | ])# _LT_CONFIG | ||
1450 | 783 | |||
1451 | 784 | |||
1452 | 785 | # LT_SUPPORTED_TAG(TAG) | ||
1453 | 786 | # --------------------- | ||
1454 | 787 | # Trace this macro to discover what tags are supported by the libtool | ||
1455 | 788 | # --tag option, using: | ||
1456 | 789 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | ||
1457 | 790 | AC_DEFUN([LT_SUPPORTED_TAG], []) | ||
1458 | 791 | |||
1459 | 792 | |||
1460 | 793 | # C support is built-in for now | ||
1461 | 794 | m4_define([_LT_LANG_C_enabled], []) | ||
1462 | 795 | m4_define([_LT_TAGS], []) | ||
1463 | 796 | |||
1464 | 797 | |||
1465 | 798 | # LT_LANG(LANG) | ||
1466 | 799 | # ------------- | ||
1467 | 800 | # Enable libtool support for the given language if not already enabled. | ||
1468 | 801 | AC_DEFUN([LT_LANG], | ||
1469 | 802 | [AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
1470 | 803 | m4_case([$1], | ||
1471 | 804 | [C], [_LT_LANG(C)], | ||
1472 | 805 | [C++], [_LT_LANG(CXX)], | ||
1473 | 806 | [Go], [_LT_LANG(GO)], | ||
1474 | 807 | [Java], [_LT_LANG(GCJ)], | ||
1475 | 808 | [Fortran 77], [_LT_LANG(F77)], | ||
1476 | 809 | [Fortran], [_LT_LANG(FC)], | ||
1477 | 810 | [Windows Resource], [_LT_LANG(RC)], | ||
1478 | 811 | [m4_ifdef([_LT_LANG_]$1[_CONFIG], | ||
1479 | 812 | [_LT_LANG($1)], | ||
1480 | 813 | [m4_fatal([$0: unsupported language: "$1"])])])dnl | ||
1481 | 814 | ])# LT_LANG | ||
1482 | 815 | |||
1483 | 816 | |||
1484 | 817 | # _LT_LANG(LANGNAME) | ||
1485 | 818 | # ------------------ | ||
1486 | 819 | m4_defun([_LT_LANG], | ||
1487 | 820 | [m4_ifdef([_LT_LANG_]$1[_enabled], [], | ||
1488 | 821 | [LT_SUPPORTED_TAG([$1])dnl | ||
1489 | 822 | m4_append([_LT_TAGS], [$1 ])dnl | ||
1490 | 823 | m4_define([_LT_LANG_]$1[_enabled], [])dnl | ||
1491 | 824 | _LT_LANG_$1_CONFIG($1)])dnl | ||
1492 | 825 | ])# _LT_LANG | ||
1493 | 826 | |||
1494 | 827 | |||
1495 | 828 | m4_ifndef([AC_PROG_GO], [ | ||
1496 | 829 | ############################################################ | ||
1497 | 830 | # NOTE: This macro has been submitted for inclusion into # | ||
1498 | 831 | # GNU Autoconf as AC_PROG_GO. When it is available in # | ||
1499 | 832 | # a released version of Autoconf we should remove this # | ||
1500 | 833 | # macro and use it instead. # | ||
1501 | 834 | ############################################################ | ||
1502 | 835 | m4_defun([AC_PROG_GO], | ||
1503 | 836 | [AC_LANG_PUSH(Go)dnl | ||
1504 | 837 | AC_ARG_VAR([GOC], [Go compiler command])dnl | ||
1505 | 838 | AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl | ||
1506 | 839 | _AC_ARG_VAR_LDFLAGS()dnl | ||
1507 | 840 | AC_CHECK_TOOL(GOC, gccgo) | ||
1508 | 841 | if test -z "$GOC"; then | ||
1509 | 842 | if test -n "$ac_tool_prefix"; then | ||
1510 | 843 | AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) | ||
1511 | 844 | fi | ||
1512 | 845 | fi | ||
1513 | 846 | if test -z "$GOC"; then | ||
1514 | 847 | AC_CHECK_PROG(GOC, gccgo, gccgo, false) | ||
1515 | 848 | fi | ||
1516 | 849 | ])#m4_defun | ||
1517 | 850 | ])#m4_ifndef | ||
1518 | 851 | |||
1519 | 852 | |||
1520 | 853 | # _LT_LANG_DEFAULT_CONFIG | ||
1521 | 854 | # ----------------------- | ||
1522 | 855 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | ||
1523 | 856 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
1524 | 857 | [LT_LANG(CXX)], | ||
1525 | 858 | [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | ||
1526 | 859 | |||
1527 | 860 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
1528 | 861 | [LT_LANG(F77)], | ||
1529 | 862 | [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | ||
1530 | 863 | |||
1531 | 864 | AC_PROVIDE_IFELSE([AC_PROG_FC], | ||
1532 | 865 | [LT_LANG(FC)], | ||
1533 | 866 | [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | ||
1534 | 867 | |||
1535 | 868 | dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | ||
1536 | 869 | dnl pulling things in needlessly. | ||
1537 | 870 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
1538 | 871 | [LT_LANG(GCJ)], | ||
1539 | 872 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
1540 | 873 | [LT_LANG(GCJ)], | ||
1541 | 874 | [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | ||
1542 | 875 | [LT_LANG(GCJ)], | ||
1543 | 876 | [m4_ifdef([AC_PROG_GCJ], | ||
1544 | 877 | [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | ||
1545 | 878 | m4_ifdef([A][M_PROG_GCJ], | ||
1546 | 879 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | ||
1547 | 880 | m4_ifdef([LT_PROG_GCJ], | ||
1548 | 881 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | ||
1549 | 882 | |||
1550 | 883 | AC_PROVIDE_IFELSE([AC_PROG_GO], | ||
1551 | 884 | [LT_LANG(GO)], | ||
1552 | 885 | [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) | ||
1553 | 886 | |||
1554 | 887 | AC_PROVIDE_IFELSE([LT_PROG_RC], | ||
1555 | 888 | [LT_LANG(RC)], | ||
1556 | 889 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | ||
1557 | 890 | ])# _LT_LANG_DEFAULT_CONFIG | ||
1558 | 891 | |||
1559 | 892 | # Obsolete macros: | ||
1560 | 893 | AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | ||
1561 | 894 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | ||
1562 | 895 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | ||
1563 | 896 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | ||
1564 | 897 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | ||
1565 | 898 | dnl aclocal-1.4 backwards compatibility: | ||
1566 | 899 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | ||
1567 | 900 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | ||
1568 | 901 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | ||
1569 | 902 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | ||
1570 | 903 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | ||
1571 | 904 | |||
1572 | 905 | |||
1573 | 906 | # _LT_TAG_COMPILER | ||
1574 | 907 | # ---------------- | ||
1575 | 908 | m4_defun([_LT_TAG_COMPILER], | ||
1576 | 909 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1577 | 910 | |||
1578 | 911 | _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | ||
1579 | 912 | _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | ||
1580 | 913 | _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | ||
1581 | 914 | _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | ||
1582 | 915 | |||
1583 | 916 | # If no C compiler was specified, use CC. | ||
1584 | 917 | LTCC=${LTCC-"$CC"} | ||
1585 | 918 | |||
1586 | 919 | # If no C compiler flags were specified, use CFLAGS. | ||
1587 | 920 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1588 | 921 | |||
1589 | 922 | # Allow CC to be a program name with arguments. | ||
1590 | 923 | compiler=$CC | ||
1591 | 924 | ])# _LT_TAG_COMPILER | ||
1592 | 925 | |||
1593 | 926 | |||
1594 | 927 | # _LT_COMPILER_BOILERPLATE | ||
1595 | 928 | # ------------------------ | ||
1596 | 929 | # Check for compiler boilerplate output or warnings with | ||
1597 | 930 | # the simple compiler test code. | ||
1598 | 931 | m4_defun([_LT_COMPILER_BOILERPLATE], | ||
1599 | 932 | [m4_require([_LT_DECL_SED])dnl | ||
1600 | 933 | ac_outfile=conftest.$ac_objext | ||
1601 | 934 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
1602 | 935 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1603 | 936 | _lt_compiler_boilerplate=`cat conftest.err` | ||
1604 | 937 | $RM conftest* | ||
1605 | 938 | ])# _LT_COMPILER_BOILERPLATE | ||
1606 | 939 | |||
1607 | 940 | |||
1608 | 941 | # _LT_LINKER_BOILERPLATE | ||
1609 | 942 | # ---------------------- | ||
1610 | 943 | # Check for linker boilerplate output or warnings with | ||
1611 | 944 | # the simple link test code. | ||
1612 | 945 | m4_defun([_LT_LINKER_BOILERPLATE], | ||
1613 | 946 | [m4_require([_LT_DECL_SED])dnl | ||
1614 | 947 | ac_outfile=conftest.$ac_objext | ||
1615 | 948 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
1616 | 949 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1617 | 950 | _lt_linker_boilerplate=`cat conftest.err` | ||
1618 | 951 | $RM -r conftest* | ||
1619 | 952 | ])# _LT_LINKER_BOILERPLATE | ||
1620 | 953 | |||
1621 | 954 | # _LT_REQUIRED_DARWIN_CHECKS | ||
1622 | 955 | # ------------------------- | ||
1623 | 956 | m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | ||
1624 | 957 | case $host_os in | ||
1625 | 958 | rhapsody* | darwin*) | ||
1626 | 959 | AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | ||
1627 | 960 | AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | ||
1628 | 961 | AC_CHECK_TOOL([LIPO], [lipo], [:]) | ||
1629 | 962 | AC_CHECK_TOOL([OTOOL], [otool], [:]) | ||
1630 | 963 | AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | ||
1631 | 964 | _LT_DECL([], [DSYMUTIL], [1], | ||
1632 | 965 | [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | ||
1633 | 966 | _LT_DECL([], [NMEDIT], [1], | ||
1634 | 967 | [Tool to change global to local symbols on Mac OS X]) | ||
1635 | 968 | _LT_DECL([], [LIPO], [1], | ||
1636 | 969 | [Tool to manipulate fat objects and archives on Mac OS X]) | ||
1637 | 970 | _LT_DECL([], [OTOOL], [1], | ||
1638 | 971 | [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | ||
1639 | 972 | _LT_DECL([], [OTOOL64], [1], | ||
1640 | 973 | [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | ||
1641 | 974 | |||
1642 | 975 | AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | ||
1643 | 976 | [lt_cv_apple_cc_single_mod=no | ||
1644 | 977 | if test -z "${LT_MULTI_MODULE}"; then | ||
1645 | 978 | # By default we will add the -single_module flag. You can override | ||
1646 | 979 | # by either setting the environment variable LT_MULTI_MODULE | ||
1647 | 980 | # non-empty at configure time, or by adding -multi_module to the | ||
1648 | 981 | # link flags. | ||
1649 | 982 | rm -rf libconftest.dylib* | ||
1650 | 983 | echo "int foo(void){return 1;}" > conftest.c | ||
1651 | 984 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
1652 | 985 | -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | ||
1653 | 986 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
1654 | 987 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
1655 | 988 | _lt_result=$? | ||
1656 | 989 | # If there is a non-empty error log, and "single_module" | ||
1657 | 990 | # appears in it, assume the flag caused a linker warning | ||
1658 | 991 | if test -s conftest.err && $GREP single_module conftest.err; then | ||
1659 | 992 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1660 | 993 | # Otherwise, if the output was created with a 0 exit code from | ||
1661 | 994 | # the compiler, it worked. | ||
1662 | 995 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | ||
1663 | 996 | lt_cv_apple_cc_single_mod=yes | ||
1664 | 997 | else | ||
1665 | 998 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1666 | 999 | fi | ||
1667 | 1000 | rm -rf libconftest.dylib* | ||
1668 | 1001 | rm -f conftest.* | ||
1669 | 1002 | fi]) | ||
1670 | 1003 | |||
1671 | 1004 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | ||
1672 | 1005 | [lt_cv_ld_exported_symbols_list], | ||
1673 | 1006 | [lt_cv_ld_exported_symbols_list=no | ||
1674 | 1007 | save_LDFLAGS=$LDFLAGS | ||
1675 | 1008 | echo "_main" > conftest.sym | ||
1676 | 1009 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
1677 | 1010 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | ||
1678 | 1011 | [lt_cv_ld_exported_symbols_list=yes], | ||
1679 | 1012 | [lt_cv_ld_exported_symbols_list=no]) | ||
1680 | 1013 | LDFLAGS="$save_LDFLAGS" | ||
1681 | 1014 | ]) | ||
1682 | 1015 | |||
1683 | 1016 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | ||
1684 | 1017 | [lt_cv_ld_force_load=no | ||
1685 | 1018 | cat > conftest.c << _LT_EOF | ||
1686 | 1019 | int forced_loaded() { return 2;} | ||
1687 | 1020 | _LT_EOF | ||
1688 | 1021 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | ||
1689 | 1022 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | ||
1690 | 1023 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | ||
1691 | 1024 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | ||
1692 | 1025 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1693 | 1026 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | ||
1694 | 1027 | cat > conftest.c << _LT_EOF | ||
1695 | 1028 | int main() { return 0;} | ||
1696 | 1029 | _LT_EOF | ||
1697 | 1030 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1698 | 1031 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
1699 | 1032 | _lt_result=$? | ||
1700 | 1033 | if test -s conftest.err && $GREP force_load conftest.err; then | ||
1701 | 1034 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1702 | 1035 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | ||
1703 | 1036 | lt_cv_ld_force_load=yes | ||
1704 | 1037 | else | ||
1705 | 1038 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1706 | 1039 | fi | ||
1707 | 1040 | rm -f conftest.err libconftest.a conftest conftest.c | ||
1708 | 1041 | rm -rf conftest.dSYM | ||
1709 | 1042 | ]) | ||
1710 | 1043 | case $host_os in | ||
1711 | 1044 | rhapsody* | darwin1.[[012]]) | ||
1712 | 1045 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
1713 | 1046 | darwin1.*) | ||
1714 | 1047 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
1715 | 1048 | darwin*) # darwin 5.x on | ||
1716 | 1049 | # if running on 10.5 or later, the deployment target defaults | ||
1717 | 1050 | # to the OS version, if on x86, and 10.4, the deployment | ||
1718 | 1051 | # target defaults to 10.4. Don't you love it? | ||
1719 | 1052 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
1720 | 1053 | 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | ||
1721 | 1054 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
1722 | 1055 | 10.[[012]]*) | ||
1723 | 1056 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
1724 | 1057 | 10.*) | ||
1725 | 1058 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
1726 | 1059 | esac | ||
1727 | 1060 | ;; | ||
1728 | 1061 | esac | ||
1729 | 1062 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
1730 | 1063 | _lt_dar_single_mod='$single_module' | ||
1731 | 1064 | fi | ||
1732 | 1065 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
1733 | 1066 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
1734 | 1067 | else | ||
1735 | 1068 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
1736 | 1069 | fi | ||
1737 | 1070 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
1738 | 1071 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
1739 | 1072 | else | ||
1740 | 1073 | _lt_dsymutil= | ||
1741 | 1074 | fi | ||
1742 | 1075 | ;; | ||
1743 | 1076 | esac | ||
1744 | 1077 | ]) | ||
1745 | 1078 | |||
1746 | 1079 | |||
1747 | 1080 | # _LT_DARWIN_LINKER_FEATURES([TAG]) | ||
1748 | 1081 | # --------------------------------- | ||
1749 | 1082 | # Checks for linker and compiler features on darwin | ||
1750 | 1083 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
1751 | 1084 | [ | ||
1752 | 1085 | m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | ||
1753 | 1086 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
1754 | 1087 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
1755 | 1088 | _LT_TAGVAR(hardcode_automatic, $1)=yes | ||
1756 | 1089 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
1757 | 1090 | if test "$lt_cv_ld_force_load" = "yes"; then | ||
1758 | 1091 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | ||
1759 | 1092 | m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], | ||
1760 | 1093 | [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) | ||
1761 | 1094 | else | ||
1762 | 1095 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | ||
1763 | 1096 | fi | ||
1764 | 1097 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
1765 | 1098 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | ||
1766 | 1099 | case $cc_basename in | ||
1767 | 1100 | ifort*) _lt_dar_can_shared=yes ;; | ||
1768 | 1101 | *) _lt_dar_can_shared=$GCC ;; | ||
1769 | 1102 | esac | ||
1770 | 1103 | if test "$_lt_dar_can_shared" = "yes"; then | ||
1771 | 1104 | output_verbose_link_cmd=func_echo_all | ||
1772 | 1105 | _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}" | ||
1773 | 1106 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
1774 | 1107 | _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}" | ||
1775 | 1108 | _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}" | ||
1776 | 1109 | m4_if([$1], [CXX], | ||
1777 | 1110 | [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
1778 | 1111 | _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}" | ||
1779 | 1112 | _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}" | ||
1780 | 1113 | fi | ||
1781 | 1114 | ],[]) | ||
1782 | 1115 | else | ||
1783 | 1116 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
1784 | 1117 | fi | ||
1785 | 1118 | ]) | ||
1786 | 1119 | |||
1787 | 1120 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | ||
1788 | 1121 | # ---------------------------------- | ||
1789 | 1122 | # Links a minimal program and checks the executable | ||
1790 | 1123 | # for the system default hardcoded library path. In most cases, | ||
1791 | 1124 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
1792 | 1125 | # the location of the communication and MPI libs are included too. | ||
1793 | 1126 | # If we don't find anything, use the default library path according | ||
1794 | 1127 | # to the aix ld manual. | ||
1795 | 1128 | # Store the results from the different compilers for each TAGNAME. | ||
1796 | 1129 | # Allow to override them for all tags through lt_cv_aix_libpath. | ||
1797 | 1130 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | ||
1798 | 1131 | [m4_require([_LT_DECL_SED])dnl | ||
1799 | 1132 | if test "${lt_cv_aix_libpath+set}" = set; then | ||
1800 | 1133 | aix_libpath=$lt_cv_aix_libpath | ||
1801 | 1134 | else | ||
1802 | 1135 | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | ||
1803 | 1136 | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | ||
1804 | 1137 | lt_aix_libpath_sed='[ | ||
1805 | 1138 | /Import File Strings/,/^$/ { | ||
1806 | 1139 | /^0/ { | ||
1807 | 1140 | s/^0 *\([^ ]*\) *$/\1/ | ||
1808 | 1141 | p | ||
1809 | 1142 | } | ||
1810 | 1143 | }]' | ||
1811 | 1144 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1812 | 1145 | # Check for a 64-bit object if we didn't find anything. | ||
1813 | 1146 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
1814 | 1147 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1815 | 1148 | fi],[]) | ||
1816 | 1149 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
1817 | 1150 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | ||
1818 | 1151 | fi | ||
1819 | 1152 | ]) | ||
1820 | 1153 | aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | ||
1821 | 1154 | fi | ||
1822 | 1155 | ])# _LT_SYS_MODULE_PATH_AIX | ||
1823 | 1156 | |||
1824 | 1157 | |||
1825 | 1158 | # _LT_SHELL_INIT(ARG) | ||
1826 | 1159 | # ------------------- | ||
1827 | 1160 | m4_define([_LT_SHELL_INIT], | ||
1828 | 1161 | [m4_divert_text([M4SH-INIT], [$1 | ||
1829 | 1162 | ])])# _LT_SHELL_INIT | ||
1830 | 1163 | |||
1831 | 1164 | |||
1832 | 1165 | |||
1833 | 1166 | # _LT_PROG_ECHO_BACKSLASH | ||
1834 | 1167 | # ----------------------- | ||
1835 | 1168 | # Find how we can fake an echo command that does not interpret backslash. | ||
1836 | 1169 | # In particular, with Autoconf 2.60 or later we add some code to the start | ||
1837 | 1170 | # of the generated configure script which will find a shell with a builtin | ||
1838 | 1171 | # printf (which we can use as an echo command). | ||
1839 | 1172 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | ||
1840 | 1173 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
1841 | 1174 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1842 | 1175 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1843 | 1176 | |||
1844 | 1177 | AC_MSG_CHECKING([how to print strings]) | ||
1845 | 1178 | # Test print first, because it will be a builtin if present. | ||
1846 | 1179 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
1847 | 1180 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1848 | 1181 | ECHO='print -r --' | ||
1849 | 1182 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1850 | 1183 | ECHO='printf %s\n' | ||
1851 | 1184 | else | ||
1852 | 1185 | # Use this function as a fallback that always works. | ||
1853 | 1186 | func_fallback_echo () | ||
1854 | 1187 | { | ||
1855 | 1188 | eval 'cat <<_LTECHO_EOF | ||
1856 | 1189 | $[]1 | ||
1857 | 1190 | _LTECHO_EOF' | ||
1858 | 1191 | } | ||
1859 | 1192 | ECHO='func_fallback_echo' | ||
1860 | 1193 | fi | ||
1861 | 1194 | |||
1862 | 1195 | # func_echo_all arg... | ||
1863 | 1196 | # Invoke $ECHO with all args, space-separated. | ||
1864 | 1197 | func_echo_all () | ||
1865 | 1198 | { | ||
1866 | 1199 | $ECHO "$*" | ||
1867 | 1200 | } | ||
1868 | 1201 | |||
1869 | 1202 | case "$ECHO" in | ||
1870 | 1203 | printf*) AC_MSG_RESULT([printf]) ;; | ||
1871 | 1204 | print*) AC_MSG_RESULT([print -r]) ;; | ||
1872 | 1205 | *) AC_MSG_RESULT([cat]) ;; | ||
1873 | 1206 | esac | ||
1874 | 1207 | |||
1875 | 1208 | m4_ifdef([_AS_DETECT_SUGGESTED], | ||
1876 | 1209 | [_AS_DETECT_SUGGESTED([ | ||
1877 | 1210 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | ||
1878 | 1211 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
1879 | 1212 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1880 | 1213 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1881 | 1214 | PATH=/empty FPATH=/empty; export PATH FPATH | ||
1882 | 1215 | test "X`printf %s $ECHO`" = "X$ECHO" \ | ||
1883 | 1216 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | ||
1884 | 1217 | |||
1885 | 1218 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | ||
1886 | 1219 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | ||
1887 | 1220 | ])# _LT_PROG_ECHO_BACKSLASH | ||
1888 | 1221 | |||
1889 | 1222 | |||
1890 | 1223 | # _LT_WITH_SYSROOT | ||
1891 | 1224 | # ---------------- | ||
1892 | 1225 | AC_DEFUN([_LT_WITH_SYSROOT], | ||
1893 | 1226 | [AC_MSG_CHECKING([for sysroot]) | ||
1894 | 1227 | AC_ARG_WITH([sysroot], | ||
1895 | 1228 | [ --with-sysroot[=DIR] Search for dependent libraries within DIR | ||
1896 | 1229 | (or the compiler's sysroot if not specified).], | ||
1897 | 1230 | [], [with_sysroot=no]) | ||
1898 | 1231 | |||
1899 | 1232 | dnl lt_sysroot will always be passed unquoted. We quote it here | ||
1900 | 1233 | dnl in case the user passed a directory name. | ||
1901 | 1234 | lt_sysroot= | ||
1902 | 1235 | case ${with_sysroot} in #( | ||
1903 | 1236 | yes) | ||
1904 | 1237 | if test "$GCC" = yes; then | ||
1905 | 1238 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
1906 | 1239 | fi | ||
1907 | 1240 | ;; #( | ||
1908 | 1241 | /*) | ||
1909 | 1242 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | ||
1910 | 1243 | ;; #( | ||
1911 | 1244 | no|'') | ||
1912 | 1245 | ;; #( | ||
1913 | 1246 | *) | ||
1914 | 1247 | AC_MSG_RESULT([${with_sysroot}]) | ||
1915 | 1248 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | ||
1916 | 1249 | ;; | ||
1917 | 1250 | esac | ||
1918 | 1251 | |||
1919 | 1252 | AC_MSG_RESULT([${lt_sysroot:-no}]) | ||
1920 | 1253 | _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | ||
1921 | 1254 | [dependent libraries, and in which our libraries should be installed.])]) | ||
1922 | 1255 | |||
1923 | 1256 | # _LT_ENABLE_LOCK | ||
1924 | 1257 | # --------------- | ||
1925 | 1258 | m4_defun([_LT_ENABLE_LOCK], | ||
1926 | 1259 | [AC_ARG_ENABLE([libtool-lock], | ||
1927 | 1260 | [AS_HELP_STRING([--disable-libtool-lock], | ||
1928 | 1261 | [avoid locking (might break parallel builds)])]) | ||
1929 | 1262 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1930 | 1263 | |||
1931 | 1264 | # Some flags need to be propagated to the compiler or linker for good | ||
1932 | 1265 | # libtool support. | ||
1933 | 1266 | case $host in | ||
1934 | 1267 | ia64-*-hpux*) | ||
1935 | 1268 | # Find out which ABI we are using. | ||
1936 | 1269 | echo 'int i;' > conftest.$ac_ext | ||
1937 | 1270 | if AC_TRY_EVAL(ac_compile); then | ||
1938 | 1271 | case `/usr/bin/file conftest.$ac_objext` in | ||
1939 | 1272 | *ELF-32*) | ||
1940 | 1273 | HPUX_IA64_MODE="32" | ||
1941 | 1274 | ;; | ||
1942 | 1275 | *ELF-64*) | ||
1943 | 1276 | HPUX_IA64_MODE="64" | ||
1944 | 1277 | ;; | ||
1945 | 1278 | esac | ||
1946 | 1279 | fi | ||
1947 | 1280 | rm -rf conftest* | ||
1948 | 1281 | ;; | ||
1949 | 1282 | *-*-irix6*) | ||
1950 | 1283 | # Find out which ABI we are using. | ||
1951 | 1284 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | ||
1952 | 1285 | if AC_TRY_EVAL(ac_compile); then | ||
1953 | 1286 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1954 | 1287 | case `/usr/bin/file conftest.$ac_objext` in | ||
1955 | 1288 | *32-bit*) | ||
1956 | 1289 | LD="${LD-ld} -melf32bsmip" | ||
1957 | 1290 | ;; | ||
1958 | 1291 | *N32*) | ||
1959 | 1292 | LD="${LD-ld} -melf32bmipn32" | ||
1960 | 1293 | ;; | ||
1961 | 1294 | *64-bit*) | ||
1962 | 1295 | LD="${LD-ld} -melf64bmip" | ||
1963 | 1296 | ;; | ||
1964 | 1297 | esac | ||
1965 | 1298 | else | ||
1966 | 1299 | case `/usr/bin/file conftest.$ac_objext` in | ||
1967 | 1300 | *32-bit*) | ||
1968 | 1301 | LD="${LD-ld} -32" | ||
1969 | 1302 | ;; | ||
1970 | 1303 | *N32*) | ||
1971 | 1304 | LD="${LD-ld} -n32" | ||
1972 | 1305 | ;; | ||
1973 | 1306 | *64-bit*) | ||
1974 | 1307 | LD="${LD-ld} -64" | ||
1975 | 1308 | ;; | ||
1976 | 1309 | esac | ||
1977 | 1310 | fi | ||
1978 | 1311 | fi | ||
1979 | 1312 | rm -rf conftest* | ||
1980 | 1313 | ;; | ||
1981 | 1314 | |||
1982 | 1315 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
1983 | 1316 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
1984 | 1317 | # Find out which ABI we are using. | ||
1985 | 1318 | echo 'int i;' > conftest.$ac_ext | ||
1986 | 1319 | if AC_TRY_EVAL(ac_compile); then | ||
1987 | 1320 | case `/usr/bin/file conftest.o` in | ||
1988 | 1321 | *32-bit*) | ||
1989 | 1322 | case $host in | ||
1990 | 1323 | x86_64-*kfreebsd*-gnu) | ||
1991 | 1324 | LD="${LD-ld} -m elf_i386_fbsd" | ||
1992 | 1325 | ;; | ||
1993 | 1326 | x86_64-*linux*) | ||
1994 | 1327 | LD="${LD-ld} -m elf_i386" | ||
1995 | 1328 | ;; | ||
1996 | 1329 | ppc64-*linux*|powerpc64-*linux*) | ||
1997 | 1330 | LD="${LD-ld} -m elf32ppclinux" | ||
1998 | 1331 | ;; | ||
1999 | 1332 | s390x-*linux*) | ||
2000 | 1333 | LD="${LD-ld} -m elf_s390" | ||
2001 | 1334 | ;; | ||
2002 | 1335 | sparc64-*linux*) | ||
2003 | 1336 | LD="${LD-ld} -m elf32_sparc" | ||
2004 | 1337 | ;; | ||
2005 | 1338 | esac | ||
2006 | 1339 | ;; | ||
2007 | 1340 | *64-bit*) | ||
2008 | 1341 | case $host in | ||
2009 | 1342 | x86_64-*kfreebsd*-gnu) | ||
2010 | 1343 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
2011 | 1344 | ;; | ||
2012 | 1345 | x86_64-*linux*) | ||
2013 | 1346 | LD="${LD-ld} -m elf_x86_64" | ||
2014 | 1347 | ;; | ||
2015 | 1348 | ppc*-*linux*|powerpc*-*linux*) | ||
2016 | 1349 | LD="${LD-ld} -m elf64ppc" | ||
2017 | 1350 | ;; | ||
2018 | 1351 | s390*-*linux*|s390*-*tpf*) | ||
2019 | 1352 | LD="${LD-ld} -m elf64_s390" | ||
2020 | 1353 | ;; | ||
2021 | 1354 | sparc*-*linux*) | ||
2022 | 1355 | LD="${LD-ld} -m elf64_sparc" | ||
2023 | 1356 | ;; | ||
2024 | 1357 | esac | ||
2025 | 1358 | ;; | ||
2026 | 1359 | esac | ||
2027 | 1360 | fi | ||
2028 | 1361 | rm -rf conftest* | ||
2029 | 1362 | ;; | ||
2030 | 1363 | |||
2031 | 1364 | *-*-sco3.2v5*) | ||
2032 | 1365 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
2033 | 1366 | SAVE_CFLAGS="$CFLAGS" | ||
2034 | 1367 | CFLAGS="$CFLAGS -belf" | ||
2035 | 1368 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
2036 | 1369 | [AC_LANG_PUSH(C) | ||
2037 | 1370 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
2038 | 1371 | AC_LANG_POP]) | ||
2039 | 1372 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
2040 | 1373 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
2041 | 1374 | CFLAGS="$SAVE_CFLAGS" | ||
2042 | 1375 | fi | ||
2043 | 1376 | ;; | ||
2044 | 1377 | *-*solaris*) | ||
2045 | 1378 | # Find out which ABI we are using. | ||
2046 | 1379 | echo 'int i;' > conftest.$ac_ext | ||
2047 | 1380 | if AC_TRY_EVAL(ac_compile); then | ||
2048 | 1381 | case `/usr/bin/file conftest.o` in | ||
2049 | 1382 | *64-bit*) | ||
2050 | 1383 | case $lt_cv_prog_gnu_ld in | ||
2051 | 1384 | yes*) | ||
2052 | 1385 | case $host in | ||
2053 | 1386 | i?86-*-solaris*) | ||
2054 | 1387 | LD="${LD-ld} -m elf_x86_64" | ||
2055 | 1388 | ;; | ||
2056 | 1389 | sparc*-*-solaris*) | ||
2057 | 1390 | LD="${LD-ld} -m elf64_sparc" | ||
2058 | 1391 | ;; | ||
2059 | 1392 | esac | ||
2060 | 1393 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | ||
2061 | 1394 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | ||
2062 | 1395 | LD="${LD-ld}_sol2" | ||
2063 | 1396 | fi | ||
2064 | 1397 | ;; | ||
2065 | 1398 | *) | ||
2066 | 1399 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
2067 | 1400 | LD="${LD-ld} -64" | ||
2068 | 1401 | fi | ||
2069 | 1402 | ;; | ||
2070 | 1403 | esac | ||
2071 | 1404 | ;; | ||
2072 | 1405 | esac | ||
2073 | 1406 | fi | ||
2074 | 1407 | rm -rf conftest* | ||
2075 | 1408 | ;; | ||
2076 | 1409 | esac | ||
2077 | 1410 | |||
2078 | 1411 | need_locks="$enable_libtool_lock" | ||
2079 | 1412 | ])# _LT_ENABLE_LOCK | ||
2080 | 1413 | |||
2081 | 1414 | |||
2082 | 1415 | # _LT_PROG_AR | ||
2083 | 1416 | # ----------- | ||
2084 | 1417 | m4_defun([_LT_PROG_AR], | ||
2085 | 1418 | [AC_CHECK_TOOLS(AR, [ar], false) | ||
2086 | 1419 | : ${AR=ar} | ||
2087 | 1420 | : ${AR_FLAGS=cru} | ||
2088 | 1421 | _LT_DECL([], [AR], [1], [The archiver]) | ||
2089 | 1422 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | ||
2090 | 1423 | |||
2091 | 1424 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | ||
2092 | 1425 | [lt_cv_ar_at_file=no | ||
2093 | 1426 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | ||
2094 | 1427 | [echo conftest.$ac_objext > conftest.lst | ||
2095 | 1428 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | ||
2096 | 1429 | AC_TRY_EVAL([lt_ar_try]) | ||
2097 | 1430 | if test "$ac_status" -eq 0; then | ||
2098 | 1431 | # Ensure the archiver fails upon bogus file names. | ||
2099 | 1432 | rm -f conftest.$ac_objext libconftest.a | ||
2100 | 1433 | AC_TRY_EVAL([lt_ar_try]) | ||
2101 | 1434 | if test "$ac_status" -ne 0; then | ||
2102 | 1435 | lt_cv_ar_at_file=@ | ||
2103 | 1436 | fi | ||
2104 | 1437 | fi | ||
2105 | 1438 | rm -f conftest.* libconftest.a | ||
2106 | 1439 | ]) | ||
2107 | 1440 | ]) | ||
2108 | 1441 | |||
2109 | 1442 | if test "x$lt_cv_ar_at_file" = xno; then | ||
2110 | 1443 | archiver_list_spec= | ||
2111 | 1444 | else | ||
2112 | 1445 | archiver_list_spec=$lt_cv_ar_at_file | ||
2113 | 1446 | fi | ||
2114 | 1447 | _LT_DECL([], [archiver_list_spec], [1], | ||
2115 | 1448 | [How to feed a file listing to the archiver]) | ||
2116 | 1449 | ])# _LT_PROG_AR | ||
2117 | 1450 | |||
2118 | 1451 | |||
2119 | 1452 | # _LT_CMD_OLD_ARCHIVE | ||
2120 | 1453 | # ------------------- | ||
2121 | 1454 | m4_defun([_LT_CMD_OLD_ARCHIVE], | ||
2122 | 1455 | [_LT_PROG_AR | ||
2123 | 1456 | |||
2124 | 1457 | AC_CHECK_TOOL(STRIP, strip, :) | ||
2125 | 1458 | test -z "$STRIP" && STRIP=: | ||
2126 | 1459 | _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | ||
2127 | 1460 | |||
2128 | 1461 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
2129 | 1462 | test -z "$RANLIB" && RANLIB=: | ||
2130 | 1463 | _LT_DECL([], [RANLIB], [1], | ||
2131 | 1464 | [Commands used to install an old-style archive]) | ||
2132 | 1465 | |||
2133 | 1466 | # Determine commands to create old-style static archives. | ||
2134 | 1467 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
2135 | 1468 | old_postinstall_cmds='chmod 644 $oldlib' | ||
2136 | 1469 | old_postuninstall_cmds= | ||
2137 | 1470 | |||
2138 | 1471 | if test -n "$RANLIB"; then | ||
2139 | 1472 | case $host_os in | ||
2140 | 1473 | openbsd*) | ||
2141 | 1474 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | ||
2142 | 1475 | ;; | ||
2143 | 1476 | *) | ||
2144 | 1477 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | ||
2145 | 1478 | ;; | ||
2146 | 1479 | esac | ||
2147 | 1480 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | ||
2148 | 1481 | fi | ||
2149 | 1482 | |||
2150 | 1483 | case $host_os in | ||
2151 | 1484 | darwin*) | ||
2152 | 1485 | lock_old_archive_extraction=yes ;; | ||
2153 | 1486 | *) | ||
2154 | 1487 | lock_old_archive_extraction=no ;; | ||
2155 | 1488 | esac | ||
2156 | 1489 | _LT_DECL([], [old_postinstall_cmds], [2]) | ||
2157 | 1490 | _LT_DECL([], [old_postuninstall_cmds], [2]) | ||
2158 | 1491 | _LT_TAGDECL([], [old_archive_cmds], [2], | ||
2159 | 1492 | [Commands used to build an old-style archive]) | ||
2160 | 1493 | _LT_DECL([], [lock_old_archive_extraction], [0], | ||
2161 | 1494 | [Whether to use a lock for old archive extraction]) | ||
2162 | 1495 | ])# _LT_CMD_OLD_ARCHIVE | ||
2163 | 1496 | |||
2164 | 1497 | |||
2165 | 1498 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
2166 | 1499 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
2167 | 1500 | # ---------------------------------------------------------------- | ||
2168 | 1501 | # Check whether the given compiler option works | ||
2169 | 1502 | AC_DEFUN([_LT_COMPILER_OPTION], | ||
2170 | 1503 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2171 | 1504 | m4_require([_LT_DECL_SED])dnl | ||
2172 | 1505 | AC_CACHE_CHECK([$1], [$2], | ||
2173 | 1506 | [$2=no | ||
2174 | 1507 | m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
2175 | 1508 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2176 | 1509 | lt_compiler_flag="$3" | ||
2177 | 1510 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2178 | 1511 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2179 | 1512 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2180 | 1513 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2181 | 1514 | # The option is referenced via a variable to avoid confusing sed. | ||
2182 | 1515 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2183 | 1516 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2184 | 1517 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2185 | 1518 | -e 's:$: $lt_compiler_flag:'` | ||
2186 | 1519 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2187 | 1520 | (eval "$lt_compile" 2>conftest.err) | ||
2188 | 1521 | ac_status=$? | ||
2189 | 1522 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
2190 | 1523 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2191 | 1524 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
2192 | 1525 | # The compiler can only warn and ignore the option if not recognized | ||
2193 | 1526 | # So say no if there are warnings other than the usual output. | ||
2194 | 1527 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
2195 | 1528 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
2196 | 1529 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
2197 | 1530 | $2=yes | ||
2198 | 1531 | fi | ||
2199 | 1532 | fi | ||
2200 | 1533 | $RM conftest* | ||
2201 | 1534 | ]) | ||
2202 | 1535 | |||
2203 | 1536 | if test x"[$]$2" = xyes; then | ||
2204 | 1537 | m4_if([$5], , :, [$5]) | ||
2205 | 1538 | else | ||
2206 | 1539 | m4_if([$6], , :, [$6]) | ||
2207 | 1540 | fi | ||
2208 | 1541 | ])# _LT_COMPILER_OPTION | ||
2209 | 1542 | |||
2210 | 1543 | # Old name: | ||
2211 | 1544 | AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | ||
2212 | 1545 | dnl aclocal-1.4 backwards compatibility: | ||
2213 | 1546 | dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | ||
2214 | 1547 | |||
2215 | 1548 | |||
2216 | 1549 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
2217 | 1550 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
2218 | 1551 | # ---------------------------------------------------- | ||
2219 | 1552 | # Check whether the given linker option works | ||
2220 | 1553 | AC_DEFUN([_LT_LINKER_OPTION], | ||
2221 | 1554 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2222 | 1555 | m4_require([_LT_DECL_SED])dnl | ||
2223 | 1556 | AC_CACHE_CHECK([$1], [$2], | ||
2224 | 1557 | [$2=no | ||
2225 | 1558 | save_LDFLAGS="$LDFLAGS" | ||
2226 | 1559 | LDFLAGS="$LDFLAGS $3" | ||
2227 | 1560 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
2228 | 1561 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
2229 | 1562 | # The linker can only warn and ignore the option if not recognized | ||
2230 | 1563 | # So say no if there are warnings | ||
2231 | 1564 | if test -s conftest.err; then | ||
2232 | 1565 | # Append any errors to the config.log. | ||
2233 | 1566 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
2234 | 1567 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
2235 | 1568 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
2236 | 1569 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
2237 | 1570 | $2=yes | ||
2238 | 1571 | fi | ||
2239 | 1572 | else | ||
2240 | 1573 | $2=yes | ||
2241 | 1574 | fi | ||
2242 | 1575 | fi | ||
2243 | 1576 | $RM -r conftest* | ||
2244 | 1577 | LDFLAGS="$save_LDFLAGS" | ||
2245 | 1578 | ]) | ||
2246 | 1579 | |||
2247 | 1580 | if test x"[$]$2" = xyes; then | ||
2248 | 1581 | m4_if([$4], , :, [$4]) | ||
2249 | 1582 | else | ||
2250 | 1583 | m4_if([$5], , :, [$5]) | ||
2251 | 1584 | fi | ||
2252 | 1585 | ])# _LT_LINKER_OPTION | ||
2253 | 1586 | |||
2254 | 1587 | # Old name: | ||
2255 | 1588 | AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | ||
2256 | 1589 | dnl aclocal-1.4 backwards compatibility: | ||
2257 | 1590 | dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | ||
2258 | 1591 | |||
2259 | 1592 | |||
2260 | 1593 | # LT_CMD_MAX_LEN | ||
2261 | 1594 | #--------------- | ||
2262 | 1595 | AC_DEFUN([LT_CMD_MAX_LEN], | ||
2263 | 1596 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2264 | 1597 | # find the maximum length of command line arguments | ||
2265 | 1598 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
2266 | 1599 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
2267 | 1600 | i=0 | ||
2268 | 1601 | teststring="ABCD" | ||
2269 | 1602 | |||
2270 | 1603 | case $build_os in | ||
2271 | 1604 | msdosdjgpp*) | ||
2272 | 1605 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
2273 | 1606 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
2274 | 1607 | # during glob expansion). Even if it were fixed, the result of this | ||
2275 | 1608 | # check would be larger than it should be. | ||
2276 | 1609 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
2277 | 1610 | ;; | ||
2278 | 1611 | |||
2279 | 1612 | gnu*) | ||
2280 | 1613 | # Under GNU Hurd, this test is not required because there is | ||
2281 | 1614 | # no limit to the length of command line arguments. | ||
2282 | 1615 | # Libtool will interpret -1 as no limit whatsoever | ||
2283 | 1616 | lt_cv_sys_max_cmd_len=-1; | ||
2284 | 1617 | ;; | ||
2285 | 1618 | |||
2286 | 1619 | cygwin* | mingw* | cegcc*) | ||
2287 | 1620 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
2288 | 1621 | # about 5 minutes as the teststring grows exponentially. | ||
2289 | 1622 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
2290 | 1623 | # you end up with a "frozen" computer, even though with patience | ||
2291 | 1624 | # the test eventually succeeds (with a max line length of 256k). | ||
2292 | 1625 | # Instead, let's just punt: use the minimum linelength reported by | ||
2293 | 1626 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
2294 | 1627 | lt_cv_sys_max_cmd_len=8192; | ||
2295 | 1628 | ;; | ||
2296 | 1629 | |||
2297 | 1630 | mint*) | ||
2298 | 1631 | # On MiNT this can take a long time and run out of memory. | ||
2299 | 1632 | lt_cv_sys_max_cmd_len=8192; | ||
2300 | 1633 | ;; | ||
2301 | 1634 | |||
2302 | 1635 | amigaos*) | ||
2303 | 1636 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
2304 | 1637 | # So we just punt and use a minimum line length of 8192. | ||
2305 | 1638 | lt_cv_sys_max_cmd_len=8192; | ||
2306 | 1639 | ;; | ||
2307 | 1640 | |||
2308 | 1641 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
2309 | 1642 | # This has been around since 386BSD, at least. Likely further. | ||
2310 | 1643 | if test -x /sbin/sysctl; then | ||
2311 | 1644 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
2312 | 1645 | elif test -x /usr/sbin/sysctl; then | ||
2313 | 1646 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
2314 | 1647 | else | ||
2315 | 1648 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
2316 | 1649 | fi | ||
2317 | 1650 | # And add a safety zone | ||
2318 | 1651 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
2319 | 1652 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
2320 | 1653 | ;; | ||
2321 | 1654 | |||
2322 | 1655 | interix*) | ||
2323 | 1656 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
2324 | 1657 | lt_cv_sys_max_cmd_len=196608 | ||
2325 | 1658 | ;; | ||
2326 | 1659 | |||
2327 | 1660 | os2*) | ||
2328 | 1661 | # The test takes a long time on OS/2. | ||
2329 | 1662 | lt_cv_sys_max_cmd_len=8192 | ||
2330 | 1663 | ;; | ||
2331 | 1664 | |||
2332 | 1665 | osf*) | ||
2333 | 1666 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
2334 | 1667 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
2335 | 1668 | # nice to cause kernel panics so lets avoid the loop below. | ||
2336 | 1669 | # First set a reasonable default. | ||
2337 | 1670 | lt_cv_sys_max_cmd_len=16384 | ||
2338 | 1671 | # | ||
2339 | 1672 | if test -x /sbin/sysconfig; then | ||
2340 | 1673 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
2341 | 1674 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
2342 | 1675 | esac | ||
2343 | 1676 | fi | ||
2344 | 1677 | ;; | ||
2345 | 1678 | sco3.2v5*) | ||
2346 | 1679 | lt_cv_sys_max_cmd_len=102400 | ||
2347 | 1680 | ;; | ||
2348 | 1681 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
2349 | 1682 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
2350 | 1683 | if test -n "$kargmax"; then | ||
2351 | 1684 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
2352 | 1685 | else | ||
2353 | 1686 | lt_cv_sys_max_cmd_len=32768 | ||
2354 | 1687 | fi | ||
2355 | 1688 | ;; | ||
2356 | 1689 | *) | ||
2357 | 1690 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
2358 | 1691 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
2359 | 1692 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
2360 | 1693 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
2361 | 1694 | else | ||
2362 | 1695 | # Make teststring a little bigger before we do anything with it. | ||
2363 | 1696 | # a 1K string should be a reasonable start. | ||
2364 | 1697 | for i in 1 2 3 4 5 6 7 8 ; do | ||
2365 | 1698 | teststring=$teststring$teststring | ||
2366 | 1699 | done | ||
2367 | 1700 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
2368 | 1701 | # If test is not a shell built-in, we'll probably end up computing a | ||
2369 | 1702 | # maximum length that is only half of the actual maximum length, but | ||
2370 | 1703 | # we can't tell. | ||
2371 | 1704 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | ||
2372 | 1705 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
2373 | 1706 | test $i != 17 # 1/2 MB should be enough | ||
2374 | 1707 | do | ||
2375 | 1708 | i=`expr $i + 1` | ||
2376 | 1709 | teststring=$teststring$teststring | ||
2377 | 1710 | done | ||
2378 | 1711 | # Only check the string length outside the loop. | ||
2379 | 1712 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
2380 | 1713 | teststring= | ||
2381 | 1714 | # Add a significant safety factor because C++ compilers can tack on | ||
2382 | 1715 | # massive amounts of additional arguments before passing them to the | ||
2383 | 1716 | # linker. It appears as though 1/2 is a usable value. | ||
2384 | 1717 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
2385 | 1718 | fi | ||
2386 | 1719 | ;; | ||
2387 | 1720 | esac | ||
2388 | 1721 | ]) | ||
2389 | 1722 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
2390 | 1723 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
2391 | 1724 | else | ||
2392 | 1725 | AC_MSG_RESULT(none) | ||
2393 | 1726 | fi | ||
2394 | 1727 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
2395 | 1728 | _LT_DECL([], [max_cmd_len], [0], | ||
2396 | 1729 | [What is the maximum length of a command?]) | ||
2397 | 1730 | ])# LT_CMD_MAX_LEN | ||
2398 | 1731 | |||
2399 | 1732 | # Old name: | ||
2400 | 1733 | AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | ||
2401 | 1734 | dnl aclocal-1.4 backwards compatibility: | ||
2402 | 1735 | dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | ||
2403 | 1736 | |||
2404 | 1737 | |||
2405 | 1738 | # _LT_HEADER_DLFCN | ||
2406 | 1739 | # ---------------- | ||
2407 | 1740 | m4_defun([_LT_HEADER_DLFCN], | ||
2408 | 1741 | [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | ||
2409 | 1742 | ])# _LT_HEADER_DLFCN | ||
2410 | 1743 | |||
2411 | 1744 | |||
2412 | 1745 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
2413 | 1746 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
2414 | 1747 | # ---------------------------------------------------------------- | ||
2415 | 1748 | m4_defun([_LT_TRY_DLOPEN_SELF], | ||
2416 | 1749 | [m4_require([_LT_HEADER_DLFCN])dnl | ||
2417 | 1750 | if test "$cross_compiling" = yes; then : | ||
2418 | 1751 | [$4] | ||
2419 | 1752 | else | ||
2420 | 1753 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
2421 | 1754 | lt_status=$lt_dlunknown | ||
2422 | 1755 | cat > conftest.$ac_ext <<_LT_EOF | ||
2423 | 1756 | [#line $LINENO "configure" | ||
2424 | 1757 | #include "confdefs.h" | ||
2425 | 1758 | |||
2426 | 1759 | #if HAVE_DLFCN_H | ||
2427 | 1760 | #include <dlfcn.h> | ||
2428 | 1761 | #endif | ||
2429 | 1762 | |||
2430 | 1763 | #include <stdio.h> | ||
2431 | 1764 | |||
2432 | 1765 | #ifdef RTLD_GLOBAL | ||
2433 | 1766 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
2434 | 1767 | #else | ||
2435 | 1768 | # ifdef DL_GLOBAL | ||
2436 | 1769 | # define LT_DLGLOBAL DL_GLOBAL | ||
2437 | 1770 | # else | ||
2438 | 1771 | # define LT_DLGLOBAL 0 | ||
2439 | 1772 | # endif | ||
2440 | 1773 | #endif | ||
2441 | 1774 | |||
2442 | 1775 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
2443 | 1776 | find out it does not work in some platform. */ | ||
2444 | 1777 | #ifndef LT_DLLAZY_OR_NOW | ||
2445 | 1778 | # ifdef RTLD_LAZY | ||
2446 | 1779 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
2447 | 1780 | # else | ||
2448 | 1781 | # ifdef DL_LAZY | ||
2449 | 1782 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
2450 | 1783 | # else | ||
2451 | 1784 | # ifdef RTLD_NOW | ||
2452 | 1785 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
2453 | 1786 | # else | ||
2454 | 1787 | # ifdef DL_NOW | ||
2455 | 1788 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
2456 | 1789 | # else | ||
2457 | 1790 | # define LT_DLLAZY_OR_NOW 0 | ||
2458 | 1791 | # endif | ||
2459 | 1792 | # endif | ||
2460 | 1793 | # endif | ||
2461 | 1794 | # endif | ||
2462 | 1795 | #endif | ||
2463 | 1796 | |||
2464 | 1797 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
2465 | 1798 | correspondingly for the symbols needed. */ | ||
2466 | 1799 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
2467 | 1800 | int fnord () __attribute__((visibility("default"))); | ||
2468 | 1801 | #endif | ||
2469 | 1802 | |||
2470 | 1803 | int fnord () { return 42; } | ||
2471 | 1804 | int main () | ||
2472 | 1805 | { | ||
2473 | 1806 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
2474 | 1807 | int status = $lt_dlunknown; | ||
2475 | 1808 | |||
2476 | 1809 | if (self) | ||
2477 | 1810 | { | ||
2478 | 1811 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
2479 | 1812 | else | ||
2480 | 1813 | { | ||
2481 | 1814 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
2482 | 1815 | else puts (dlerror ()); | ||
2483 | 1816 | } | ||
2484 | 1817 | /* dlclose (self); */ | ||
2485 | 1818 | } | ||
2486 | 1819 | else | ||
2487 | 1820 | puts (dlerror ()); | ||
2488 | 1821 | |||
2489 | 1822 | return status; | ||
2490 | 1823 | }] | ||
2491 | 1824 | _LT_EOF | ||
2492 | 1825 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
2493 | 1826 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
2494 | 1827 | lt_status=$? | ||
2495 | 1828 | case x$lt_status in | ||
2496 | 1829 | x$lt_dlno_uscore) $1 ;; | ||
2497 | 1830 | x$lt_dlneed_uscore) $2 ;; | ||
2498 | 1831 | x$lt_dlunknown|x*) $3 ;; | ||
2499 | 1832 | esac | ||
2500 | 1833 | else : | ||
2501 | 1834 | # compilation failed | ||
2502 | 1835 | $3 | ||
2503 | 1836 | fi | ||
2504 | 1837 | fi | ||
2505 | 1838 | rm -fr conftest* | ||
2506 | 1839 | ])# _LT_TRY_DLOPEN_SELF | ||
2507 | 1840 | |||
2508 | 1841 | |||
2509 | 1842 | # LT_SYS_DLOPEN_SELF | ||
2510 | 1843 | # ------------------ | ||
2511 | 1844 | AC_DEFUN([LT_SYS_DLOPEN_SELF], | ||
2512 | 1845 | [m4_require([_LT_HEADER_DLFCN])dnl | ||
2513 | 1846 | if test "x$enable_dlopen" != xyes; then | ||
2514 | 1847 | enable_dlopen=unknown | ||
2515 | 1848 | enable_dlopen_self=unknown | ||
2516 | 1849 | enable_dlopen_self_static=unknown | ||
2517 | 1850 | else | ||
2518 | 1851 | lt_cv_dlopen=no | ||
2519 | 1852 | lt_cv_dlopen_libs= | ||
2520 | 1853 | |||
2521 | 1854 | case $host_os in | ||
2522 | 1855 | beos*) | ||
2523 | 1856 | lt_cv_dlopen="load_add_on" | ||
2524 | 1857 | lt_cv_dlopen_libs= | ||
2525 | 1858 | lt_cv_dlopen_self=yes | ||
2526 | 1859 | ;; | ||
2527 | 1860 | |||
2528 | 1861 | mingw* | pw32* | cegcc*) | ||
2529 | 1862 | lt_cv_dlopen="LoadLibrary" | ||
2530 | 1863 | lt_cv_dlopen_libs= | ||
2531 | 1864 | ;; | ||
2532 | 1865 | |||
2533 | 1866 | cygwin*) | ||
2534 | 1867 | lt_cv_dlopen="dlopen" | ||
2535 | 1868 | lt_cv_dlopen_libs= | ||
2536 | 1869 | ;; | ||
2537 | 1870 | |||
2538 | 1871 | darwin*) | ||
2539 | 1872 | # if libdl is installed we need to link against it | ||
2540 | 1873 | AC_CHECK_LIB([dl], [dlopen], | ||
2541 | 1874 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
2542 | 1875 | lt_cv_dlopen="dyld" | ||
2543 | 1876 | lt_cv_dlopen_libs= | ||
2544 | 1877 | lt_cv_dlopen_self=yes | ||
2545 | 1878 | ]) | ||
2546 | 1879 | ;; | ||
2547 | 1880 | |||
2548 | 1881 | *) | ||
2549 | 1882 | AC_CHECK_FUNC([shl_load], | ||
2550 | 1883 | [lt_cv_dlopen="shl_load"], | ||
2551 | 1884 | [AC_CHECK_LIB([dld], [shl_load], | ||
2552 | 1885 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | ||
2553 | 1886 | [AC_CHECK_FUNC([dlopen], | ||
2554 | 1887 | [lt_cv_dlopen="dlopen"], | ||
2555 | 1888 | [AC_CHECK_LIB([dl], [dlopen], | ||
2556 | 1889 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
2557 | 1890 | [AC_CHECK_LIB([svld], [dlopen], | ||
2558 | 1891 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
2559 | 1892 | [AC_CHECK_LIB([dld], [dld_link], | ||
2560 | 1893 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | ||
2561 | 1894 | ]) | ||
2562 | 1895 | ]) | ||
2563 | 1896 | ]) | ||
2564 | 1897 | ]) | ||
2565 | 1898 | ]) | ||
2566 | 1899 | ;; | ||
2567 | 1900 | esac | ||
2568 | 1901 | |||
2569 | 1902 | if test "x$lt_cv_dlopen" != xno; then | ||
2570 | 1903 | enable_dlopen=yes | ||
2571 | 1904 | else | ||
2572 | 1905 | enable_dlopen=no | ||
2573 | 1906 | fi | ||
2574 | 1907 | |||
2575 | 1908 | case $lt_cv_dlopen in | ||
2576 | 1909 | dlopen) | ||
2577 | 1910 | save_CPPFLAGS="$CPPFLAGS" | ||
2578 | 1911 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
2579 | 1912 | |||
2580 | 1913 | save_LDFLAGS="$LDFLAGS" | ||
2581 | 1914 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
2582 | 1915 | |||
2583 | 1916 | save_LIBS="$LIBS" | ||
2584 | 1917 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
2585 | 1918 | |||
2586 | 1919 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
2587 | 1920 | lt_cv_dlopen_self, [dnl | ||
2588 | 1921 | _LT_TRY_DLOPEN_SELF( | ||
2589 | 1922 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
2590 | 1923 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
2591 | 1924 | ]) | ||
2592 | 1925 | |||
2593 | 1926 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
2594 | 1927 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
2595 | 1928 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
2596 | 1929 | lt_cv_dlopen_self_static, [dnl | ||
2597 | 1930 | _LT_TRY_DLOPEN_SELF( | ||
2598 | 1931 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
2599 | 1932 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
2600 | 1933 | ]) | ||
2601 | 1934 | fi | ||
2602 | 1935 | |||
2603 | 1936 | CPPFLAGS="$save_CPPFLAGS" | ||
2604 | 1937 | LDFLAGS="$save_LDFLAGS" | ||
2605 | 1938 | LIBS="$save_LIBS" | ||
2606 | 1939 | ;; | ||
2607 | 1940 | esac | ||
2608 | 1941 | |||
2609 | 1942 | case $lt_cv_dlopen_self in | ||
2610 | 1943 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
2611 | 1944 | *) enable_dlopen_self=unknown ;; | ||
2612 | 1945 | esac | ||
2613 | 1946 | |||
2614 | 1947 | case $lt_cv_dlopen_self_static in | ||
2615 | 1948 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
2616 | 1949 | *) enable_dlopen_self_static=unknown ;; | ||
2617 | 1950 | esac | ||
2618 | 1951 | fi | ||
2619 | 1952 | _LT_DECL([dlopen_support], [enable_dlopen], [0], | ||
2620 | 1953 | [Whether dlopen is supported]) | ||
2621 | 1954 | _LT_DECL([dlopen_self], [enable_dlopen_self], [0], | ||
2622 | 1955 | [Whether dlopen of programs is supported]) | ||
2623 | 1956 | _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], | ||
2624 | 1957 | [Whether dlopen of statically linked programs is supported]) | ||
2625 | 1958 | ])# LT_SYS_DLOPEN_SELF | ||
2626 | 1959 | |||
2627 | 1960 | # Old name: | ||
2628 | 1961 | AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | ||
2629 | 1962 | dnl aclocal-1.4 backwards compatibility: | ||
2630 | 1963 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | ||
2631 | 1964 | |||
2632 | 1965 | |||
2633 | 1966 | # _LT_COMPILER_C_O([TAGNAME]) | ||
2634 | 1967 | # --------------------------- | ||
2635 | 1968 | # Check to see if options -c and -o are simultaneously supported by compiler. | ||
2636 | 1969 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | ||
2637 | 1970 | m4_defun([_LT_COMPILER_C_O], | ||
2638 | 1971 | [m4_require([_LT_DECL_SED])dnl | ||
2639 | 1972 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2640 | 1973 | m4_require([_LT_TAG_COMPILER])dnl | ||
2641 | 1974 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
2642 | 1975 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
2643 | 1976 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
2644 | 1977 | $RM -r conftest 2>/dev/null | ||
2645 | 1978 | mkdir conftest | ||
2646 | 1979 | cd conftest | ||
2647 | 1980 | mkdir out | ||
2648 | 1981 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2649 | 1982 | |||
2650 | 1983 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
2651 | 1984 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2652 | 1985 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2653 | 1986 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2654 | 1987 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2655 | 1988 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2656 | 1989 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2657 | 1990 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2658 | 1991 | -e 's:$: $lt_compiler_flag:'` | ||
2659 | 1992 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2660 | 1993 | (eval "$lt_compile" 2>out/conftest.err) | ||
2661 | 1994 | ac_status=$? | ||
2662 | 1995 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
2663 | 1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2664 | 1997 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
2665 | 1998 | then | ||
2666 | 1999 | # The compiler can only warn and ignore the option if not recognized | ||
2667 | 2000 | # So say no if there are warnings | ||
2668 | 2001 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
2669 | 2002 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
2670 | 2003 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
2671 | 2004 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
2672 | 2005 | fi | ||
2673 | 2006 | fi | ||
2674 | 2007 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
2675 | 2008 | $RM conftest* | ||
2676 | 2009 | # SGI C++ compiler will create directory out/ii_files/ for | ||
2677 | 2010 | # template instantiation | ||
2678 | 2011 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
2679 | 2012 | $RM out/* && rmdir out | ||
2680 | 2013 | cd .. | ||
2681 | 2014 | $RM -r conftest | ||
2682 | 2015 | $RM conftest* | ||
2683 | 2016 | ]) | ||
2684 | 2017 | _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | ||
2685 | 2018 | [Does compiler simultaneously support -c and -o options?]) | ||
2686 | 2019 | ])# _LT_COMPILER_C_O | ||
2687 | 2020 | |||
2688 | 2021 | |||
2689 | 2022 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | ||
2690 | 2023 | # ---------------------------------- | ||
2691 | 2024 | # Check to see if we can do hard links to lock some files if needed | ||
2692 | 2025 | m4_defun([_LT_COMPILER_FILE_LOCKS], | ||
2693 | 2026 | [m4_require([_LT_ENABLE_LOCK])dnl | ||
2694 | 2027 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2695 | 2028 | _LT_COMPILER_C_O([$1]) | ||
2696 | 2029 | |||
2697 | 2030 | hard_links="nottested" | ||
2698 | 2031 | if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
2699 | 2032 | # do not overwrite the value of need_locks provided by the user | ||
2700 | 2033 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
2701 | 2034 | hard_links=yes | ||
2702 | 2035 | $RM conftest* | ||
2703 | 2036 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2704 | 2037 | touch conftest.a | ||
2705 | 2038 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
2706 | 2039 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2707 | 2040 | AC_MSG_RESULT([$hard_links]) | ||
2708 | 2041 | if test "$hard_links" = no; then | ||
2709 | 2042 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
2710 | 2043 | need_locks=warn | ||
2711 | 2044 | fi | ||
2712 | 2045 | else | ||
2713 | 2046 | need_locks=no | ||
2714 | 2047 | fi | ||
2715 | 2048 | _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | ||
2716 | 2049 | ])# _LT_COMPILER_FILE_LOCKS | ||
2717 | 2050 | |||
2718 | 2051 | |||
2719 | 2052 | # _LT_CHECK_OBJDIR | ||
2720 | 2053 | # ---------------- | ||
2721 | 2054 | m4_defun([_LT_CHECK_OBJDIR], | ||
2722 | 2055 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
2723 | 2056 | [rm -f .libs 2>/dev/null | ||
2724 | 2057 | mkdir .libs 2>/dev/null | ||
2725 | 2058 | if test -d .libs; then | ||
2726 | 2059 | lt_cv_objdir=.libs | ||
2727 | 2060 | else | ||
2728 | 2061 | # MS-DOS does not allow filenames that begin with a dot. | ||
2729 | 2062 | lt_cv_objdir=_libs | ||
2730 | 2063 | fi | ||
2731 | 2064 | rmdir .libs 2>/dev/null]) | ||
2732 | 2065 | objdir=$lt_cv_objdir | ||
2733 | 2066 | _LT_DECL([], [objdir], [0], | ||
2734 | 2067 | [The name of the directory that contains temporary libtool files])dnl | ||
2735 | 2068 | m4_pattern_allow([LT_OBJDIR])dnl | ||
2736 | 2069 | AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | ||
2737 | 2070 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) | ||
2738 | 2071 | ])# _LT_CHECK_OBJDIR | ||
2739 | 2072 | |||
2740 | 2073 | |||
2741 | 2074 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | ||
2742 | 2075 | # -------------------------------------- | ||
2743 | 2076 | # Check hardcoding attributes. | ||
2744 | 2077 | m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | ||
2745 | 2078 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
2746 | 2079 | _LT_TAGVAR(hardcode_action, $1)= | ||
2747 | 2080 | if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | ||
2748 | 2081 | test -n "$_LT_TAGVAR(runpath_var, $1)" || | ||
2749 | 2082 | test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
2750 | 2083 | |||
2751 | 2084 | # We can hardcode non-existent directories. | ||
2752 | 2085 | if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | ||
2753 | 2086 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
2754 | 2087 | # have to relink, otherwise we might link with an installed library | ||
2755 | 2088 | # when we should be linking with a yet-to-be-installed one | ||
2756 | 2089 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
2757 | 2090 | test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
2758 | 2091 | # Linking always hardcodes the temporary library directory. | ||
2759 | 2092 | _LT_TAGVAR(hardcode_action, $1)=relink | ||
2760 | 2093 | else | ||
2761 | 2094 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
2762 | 2095 | _LT_TAGVAR(hardcode_action, $1)=immediate | ||
2763 | 2096 | fi | ||
2764 | 2097 | else | ||
2765 | 2098 | # We cannot hardcode anything, or else we can only hardcode existing | ||
2766 | 2099 | # directories. | ||
2767 | 2100 | _LT_TAGVAR(hardcode_action, $1)=unsupported | ||
2768 | 2101 | fi | ||
2769 | 2102 | AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | ||
2770 | 2103 | |||
2771 | 2104 | if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | ||
2772 | 2105 | test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | ||
2773 | 2106 | # Fast installation is not supported | ||
2774 | 2107 | enable_fast_install=no | ||
2775 | 2108 | elif test "$shlibpath_overrides_runpath" = yes || | ||
2776 | 2109 | test "$enable_shared" = no; then | ||
2777 | 2110 | # Fast installation is not necessary | ||
2778 | 2111 | enable_fast_install=needless | ||
2779 | 2112 | fi | ||
2780 | 2113 | _LT_TAGDECL([], [hardcode_action], [0], | ||
2781 | 2114 | [How to hardcode a shared library path into an executable]) | ||
2782 | 2115 | ])# _LT_LINKER_HARDCODE_LIBPATH | ||
2783 | 2116 | |||
2784 | 2117 | |||
2785 | 2118 | # _LT_CMD_STRIPLIB | ||
2786 | 2119 | # ---------------- | ||
2787 | 2120 | m4_defun([_LT_CMD_STRIPLIB], | ||
2788 | 2121 | [m4_require([_LT_DECL_EGREP]) | ||
2789 | 2122 | striplib= | ||
2790 | 2123 | old_striplib= | ||
2791 | 2124 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
2792 | 2125 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
2793 | 2126 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
2794 | 2127 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
2795 | 2128 | AC_MSG_RESULT([yes]) | ||
2796 | 2129 | else | ||
2797 | 2130 | # FIXME - insert some real tests, host_os isn't really good enough | ||
2798 | 2131 | case $host_os in | ||
2799 | 2132 | darwin*) | ||
2800 | 2133 | if test -n "$STRIP" ; then | ||
2801 | 2134 | striplib="$STRIP -x" | ||
2802 | 2135 | old_striplib="$STRIP -S" | ||
2803 | 2136 | AC_MSG_RESULT([yes]) | ||
2804 | 2137 | else | ||
2805 | 2138 | AC_MSG_RESULT([no]) | ||
2806 | 2139 | fi | ||
2807 | 2140 | ;; | ||
2808 | 2141 | *) | ||
2809 | 2142 | AC_MSG_RESULT([no]) | ||
2810 | 2143 | ;; | ||
2811 | 2144 | esac | ||
2812 | 2145 | fi | ||
2813 | 2146 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | ||
2814 | 2147 | _LT_DECL([], [striplib], [1]) | ||
2815 | 2148 | ])# _LT_CMD_STRIPLIB | ||
2816 | 2149 | |||
2817 | 2150 | |||
2818 | 2151 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | ||
2819 | 2152 | # ----------------------------- | ||
2820 | 2153 | # PORTME Fill in your ld.so characteristics | ||
2821 | 2154 | m4_defun([_LT_SYS_DYNAMIC_LINKER], | ||
2822 | 2155 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2823 | 2156 | m4_require([_LT_DECL_EGREP])dnl | ||
2824 | 2157 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2825 | 2158 | m4_require([_LT_DECL_OBJDUMP])dnl | ||
2826 | 2159 | m4_require([_LT_DECL_SED])dnl | ||
2827 | 2160 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
2828 | 2161 | AC_MSG_CHECKING([dynamic linker characteristics]) | ||
2829 | 2162 | m4_if([$1], | ||
2830 | 2163 | [], [ | ||
2831 | 2164 | if test "$GCC" = yes; then | ||
2832 | 2165 | case $host_os in | ||
2833 | 2166 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
2834 | 2167 | *) lt_awk_arg="/^libraries:/" ;; | ||
2835 | 2168 | esac | ||
2836 | 2169 | case $host_os in | ||
2837 | 2170 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | ||
2838 | 2171 | *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
2839 | 2172 | esac | ||
2840 | 2173 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
2841 | 2174 | case $lt_search_path_spec in | ||
2842 | 2175 | *\;*) | ||
2843 | 2176 | # if the path contains ";" then we assume it to be the separator | ||
2844 | 2177 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
2845 | 2178 | # assumed that no part of a normal pathname contains ";" but that should | ||
2846 | 2179 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
2847 | 2180 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
2848 | 2181 | ;; | ||
2849 | 2182 | *) | ||
2850 | 2183 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
2851 | 2184 | ;; | ||
2852 | 2185 | esac | ||
2853 | 2186 | # Ok, now we have the path, separated by spaces, we can step through it | ||
2854 | 2187 | # and add multilib dir if necessary. | ||
2855 | 2188 | lt_tmp_lt_search_path_spec= | ||
2856 | 2189 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
2857 | 2190 | for lt_sys_path in $lt_search_path_spec; do | ||
2858 | 2191 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
2859 | 2192 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
2860 | 2193 | else | ||
2861 | 2194 | test -d "$lt_sys_path" && \ | ||
2862 | 2195 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
2863 | 2196 | fi | ||
2864 | 2197 | done | ||
2865 | 2198 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
2866 | 2199 | BEGIN {RS=" "; FS="/|\n";} { | ||
2867 | 2200 | lt_foo=""; | ||
2868 | 2201 | lt_count=0; | ||
2869 | 2202 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
2870 | 2203 | if ($lt_i != "" && $lt_i != ".") { | ||
2871 | 2204 | if ($lt_i == "..") { | ||
2872 | 2205 | lt_count++; | ||
2873 | 2206 | } else { | ||
2874 | 2207 | if (lt_count == 0) { | ||
2875 | 2208 | lt_foo="/" $lt_i lt_foo; | ||
2876 | 2209 | } else { | ||
2877 | 2210 | lt_count--; | ||
2878 | 2211 | } | ||
2879 | 2212 | } | ||
2880 | 2213 | } | ||
2881 | 2214 | } | ||
2882 | 2215 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | ||
2883 | 2216 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | ||
2884 | 2217 | }'` | ||
2885 | 2218 | # AWK program above erroneously prepends '/' to C:/dos/paths | ||
2886 | 2219 | # for these hosts. | ||
2887 | 2220 | case $host_os in | ||
2888 | 2221 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
2889 | 2222 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | ||
2890 | 2223 | esac | ||
2891 | 2224 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
2892 | 2225 | else | ||
2893 | 2226 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
2894 | 2227 | fi]) | ||
2895 | 2228 | library_names_spec= | ||
2896 | 2229 | libname_spec='lib$name' | ||
2897 | 2230 | soname_spec= | ||
2898 | 2231 | shrext_cmds=".so" | ||
2899 | 2232 | postinstall_cmds= | ||
2900 | 2233 | postuninstall_cmds= | ||
2901 | 2234 | finish_cmds= | ||
2902 | 2235 | finish_eval= | ||
2903 | 2236 | shlibpath_var= | ||
2904 | 2237 | shlibpath_overrides_runpath=unknown | ||
2905 | 2238 | version_type=none | ||
2906 | 2239 | dynamic_linker="$host_os ld.so" | ||
2907 | 2240 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
2908 | 2241 | need_lib_prefix=unknown | ||
2909 | 2242 | hardcode_into_libs=no | ||
2910 | 2243 | |||
2911 | 2244 | # when you set need_version to no, make sure it does not cause -set_version | ||
2912 | 2245 | # flags to be left without arguments | ||
2913 | 2246 | need_version=unknown | ||
2914 | 2247 | |||
2915 | 2248 | case $host_os in | ||
2916 | 2249 | aix3*) | ||
2917 | 2250 | version_type=linux # correct to gnu/linux during the next big refactor | ||
2918 | 2251 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
2919 | 2252 | shlibpath_var=LIBPATH | ||
2920 | 2253 | |||
2921 | 2254 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
2922 | 2255 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2923 | 2256 | ;; | ||
2924 | 2257 | |||
2925 | 2258 | aix[[4-9]]*) | ||
2926 | 2259 | version_type=linux # correct to gnu/linux during the next big refactor | ||
2927 | 2260 | need_lib_prefix=no | ||
2928 | 2261 | need_version=no | ||
2929 | 2262 | hardcode_into_libs=yes | ||
2930 | 2263 | if test "$host_cpu" = ia64; then | ||
2931 | 2264 | # AIX 5 supports IA64 | ||
2932 | 2265 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
2933 | 2266 | shlibpath_var=LD_LIBRARY_PATH | ||
2934 | 2267 | else | ||
2935 | 2268 | # With GCC up to 2.95.x, collect2 would create an import file | ||
2936 | 2269 | # for dependence libraries. The import file would start with | ||
2937 | 2270 | # the line `#! .'. This would cause the generated library to | ||
2938 | 2271 | # depend on `.', always an invalid library. This was fixed in | ||
2939 | 2272 | # development snapshots of GCC prior to 3.0. | ||
2940 | 2273 | case $host_os in | ||
2941 | 2274 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2942 | 2275 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2943 | 2276 | echo ' yes ' | ||
2944 | 2277 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
2945 | 2278 | : | ||
2946 | 2279 | else | ||
2947 | 2280 | can_build_shared=no | ||
2948 | 2281 | fi | ||
2949 | 2282 | ;; | ||
2950 | 2283 | esac | ||
2951 | 2284 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
2952 | 2285 | # soname into executable. Probably we can add versioning support to | ||
2953 | 2286 | # collect2, so additional links can be useful in future. | ||
2954 | 2287 | if test "$aix_use_runtimelinking" = yes; then | ||
2955 | 2288 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
2956 | 2289 | # instead of lib<name>.a to let people know that these are not | ||
2957 | 2290 | # typical AIX shared libraries. | ||
2958 | 2291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2959 | 2292 | else | ||
2960 | 2293 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
2961 | 2294 | # and later when we are not doing run time linking. | ||
2962 | 2295 | library_names_spec='${libname}${release}.a $libname.a' | ||
2963 | 2296 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2964 | 2297 | fi | ||
2965 | 2298 | shlibpath_var=LIBPATH | ||
2966 | 2299 | fi | ||
2967 | 2300 | ;; | ||
2968 | 2301 | |||
2969 | 2302 | amigaos*) | ||
2970 | 2303 | case $host_cpu in | ||
2971 | 2304 | powerpc) | ||
2972 | 2305 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
2973 | 2306 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
2974 | 2307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2975 | 2308 | ;; | ||
2976 | 2309 | m68k) | ||
2977 | 2310 | library_names_spec='$libname.ixlibrary $libname.a' | ||
2978 | 2311 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
2979 | 2312 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
2980 | 2313 | ;; | ||
2981 | 2314 | esac | ||
2982 | 2315 | ;; | ||
2983 | 2316 | |||
2984 | 2317 | beos*) | ||
2985 | 2318 | library_names_spec='${libname}${shared_ext}' | ||
2986 | 2319 | dynamic_linker="$host_os ld.so" | ||
2987 | 2320 | shlibpath_var=LIBRARY_PATH | ||
2988 | 2321 | ;; | ||
2989 | 2322 | |||
2990 | 2323 | bsdi[[45]]*) | ||
2991 | 2324 | version_type=linux # correct to gnu/linux during the next big refactor | ||
2992 | 2325 | need_version=no | ||
2993 | 2326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2994 | 2327 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2995 | 2328 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
2996 | 2329 | shlibpath_var=LD_LIBRARY_PATH | ||
2997 | 2330 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2998 | 2331 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2999 | 2332 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
3000 | 2333 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
3001 | 2334 | # libtool to hard-code these into programs | ||
3002 | 2335 | ;; | ||
3003 | 2336 | |||
3004 | 2337 | cygwin* | mingw* | pw32* | cegcc*) | ||
3005 | 2338 | version_type=windows | ||
3006 | 2339 | shrext_cmds=".dll" | ||
3007 | 2340 | need_version=no | ||
3008 | 2341 | need_lib_prefix=no | ||
3009 | 2342 | |||
3010 | 2343 | case $GCC,$cc_basename in | ||
3011 | 2344 | yes,*) | ||
3012 | 2345 | # gcc | ||
3013 | 2346 | library_names_spec='$libname.dll.a' | ||
3014 | 2347 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
3015 | 2348 | postinstall_cmds='base_file=`basename \${file}`~ | ||
3016 | 2349 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
3017 | 2350 | dldir=$destdir/`dirname \$dlpath`~ | ||
3018 | 2351 | test -d \$dldir || mkdir -p \$dldir~ | ||
3019 | 2352 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
3020 | 2353 | chmod a+x \$dldir/$dlname~ | ||
3021 | 2354 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
3022 | 2355 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
3023 | 2356 | fi' | ||
3024 | 2357 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
3025 | 2358 | dlpath=$dir/\$dldll~ | ||
3026 | 2359 | $RM \$dlpath' | ||
3027 | 2360 | shlibpath_overrides_runpath=yes | ||
3028 | 2361 | |||
3029 | 2362 | case $host_os in | ||
3030 | 2363 | cygwin*) | ||
3031 | 2364 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
3032 | 2365 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3033 | 2366 | m4_if([$1], [],[ | ||
3034 | 2367 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | ||
3035 | 2368 | ;; | ||
3036 | 2369 | mingw* | cegcc*) | ||
3037 | 2370 | # MinGW DLLs use traditional 'lib' prefix | ||
3038 | 2371 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3039 | 2372 | ;; | ||
3040 | 2373 | pw32*) | ||
3041 | 2374 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
3042 | 2375 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3043 | 2376 | ;; | ||
3044 | 2377 | esac | ||
3045 | 2378 | dynamic_linker='Win32 ld.exe' | ||
3046 | 2379 | ;; | ||
3047 | 2380 | |||
3048 | 2381 | *,cl*) | ||
3049 | 2382 | # Native MSVC | ||
3050 | 2383 | libname_spec='$name' | ||
3051 | 2384 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
3052 | 2385 | library_names_spec='${libname}.dll.lib' | ||
3053 | 2386 | |||
3054 | 2387 | case $build_os in | ||
3055 | 2388 | mingw*) | ||
3056 | 2389 | sys_lib_search_path_spec= | ||
3057 | 2390 | lt_save_ifs=$IFS | ||
3058 | 2391 | IFS=';' | ||
3059 | 2392 | for lt_path in $LIB | ||
3060 | 2393 | do | ||
3061 | 2394 | IFS=$lt_save_ifs | ||
3062 | 2395 | # Let DOS variable expansion print the short 8.3 style file name. | ||
3063 | 2396 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
3064 | 2397 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
3065 | 2398 | done | ||
3066 | 2399 | IFS=$lt_save_ifs | ||
3067 | 2400 | # Convert to MSYS style. | ||
3068 | 2401 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | ||
3069 | 2402 | ;; | ||
3070 | 2403 | cygwin*) | ||
3071 | 2404 | # Convert to unix form, then to dos form, then back to unix form | ||
3072 | 2405 | # but this time dos style (no spaces!) so that the unix form looks | ||
3073 | 2406 | # like /cygdrive/c/PROGRA~1:/cygdr... | ||
3074 | 2407 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
3075 | 2408 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
3076 | 2409 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
3077 | 2410 | ;; | ||
3078 | 2411 | *) | ||
3079 | 2412 | sys_lib_search_path_spec="$LIB" | ||
3080 | 2413 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
3081 | 2414 | # It is most probably a Windows format PATH. | ||
3082 | 2415 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
3083 | 2416 | else | ||
3084 | 2417 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
3085 | 2418 | fi | ||
3086 | 2419 | # FIXME: find the short name or the path components, as spaces are | ||
3087 | 2420 | # common. (e.g. "Program Files" -> "PROGRA~1") | ||
3088 | 2421 | ;; | ||
3089 | 2422 | esac | ||
3090 | 2423 | |||
3091 | 2424 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
3092 | 2425 | postinstall_cmds='base_file=`basename \${file}`~ | ||
3093 | 2426 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
3094 | 2427 | dldir=$destdir/`dirname \$dlpath`~ | ||
3095 | 2428 | test -d \$dldir || mkdir -p \$dldir~ | ||
3096 | 2429 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
3097 | 2430 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
3098 | 2431 | dlpath=$dir/\$dldll~ | ||
3099 | 2432 | $RM \$dlpath' | ||
3100 | 2433 | shlibpath_overrides_runpath=yes | ||
3101 | 2434 | dynamic_linker='Win32 link.exe' | ||
3102 | 2435 | ;; | ||
3103 | 2436 | |||
3104 | 2437 | *) | ||
3105 | 2438 | # Assume MSVC wrapper | ||
3106 | 2439 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
3107 | 2440 | dynamic_linker='Win32 ld.exe' | ||
3108 | 2441 | ;; | ||
3109 | 2442 | esac | ||
3110 | 2443 | # FIXME: first we should search . and the directory the executable is in | ||
3111 | 2444 | shlibpath_var=PATH | ||
3112 | 2445 | ;; | ||
3113 | 2446 | |||
3114 | 2447 | darwin* | rhapsody*) | ||
3115 | 2448 | dynamic_linker="$host_os dyld" | ||
3116 | 2449 | version_type=darwin | ||
3117 | 2450 | need_lib_prefix=no | ||
3118 | 2451 | need_version=no | ||
3119 | 2452 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
3120 | 2453 | soname_spec='${libname}${release}${major}$shared_ext' | ||
3121 | 2454 | shlibpath_overrides_runpath=yes | ||
3122 | 2455 | shlibpath_var=DYLD_LIBRARY_PATH | ||
3123 | 2456 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
3124 | 2457 | m4_if([$1], [],[ | ||
3125 | 2458 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | ||
3126 | 2459 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
3127 | 2460 | ;; | ||
3128 | 2461 | |||
3129 | 2462 | dgux*) | ||
3130 | 2463 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3131 | 2464 | need_lib_prefix=no | ||
3132 | 2465 | need_version=no | ||
3133 | 2466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
3134 | 2467 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3135 | 2468 | shlibpath_var=LD_LIBRARY_PATH | ||
3136 | 2469 | ;; | ||
3137 | 2470 | |||
3138 | 2471 | freebsd* | dragonfly*) | ||
3139 | 2472 | # DragonFly does not have aout. When/if they implement a new | ||
3140 | 2473 | # versioning mechanism, adjust this. | ||
3141 | 2474 | if test -x /usr/bin/objformat; then | ||
3142 | 2475 | objformat=`/usr/bin/objformat` | ||
3143 | 2476 | else | ||
3144 | 2477 | case $host_os in | ||
3145 | 2478 | freebsd[[23]].*) objformat=aout ;; | ||
3146 | 2479 | *) objformat=elf ;; | ||
3147 | 2480 | esac | ||
3148 | 2481 | fi | ||
3149 | 2482 | version_type=freebsd-$objformat | ||
3150 | 2483 | case $version_type in | ||
3151 | 2484 | freebsd-elf*) | ||
3152 | 2485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3153 | 2486 | need_version=no | ||
3154 | 2487 | need_lib_prefix=no | ||
3155 | 2488 | ;; | ||
3156 | 2489 | freebsd-*) | ||
3157 | 2490 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
3158 | 2491 | need_version=yes | ||
3159 | 2492 | ;; | ||
3160 | 2493 | esac | ||
3161 | 2494 | shlibpath_var=LD_LIBRARY_PATH | ||
3162 | 2495 | case $host_os in | ||
3163 | 2496 | freebsd2.*) | ||
3164 | 2497 | shlibpath_overrides_runpath=yes | ||
3165 | 2498 | ;; | ||
3166 | 2499 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
3167 | 2500 | shlibpath_overrides_runpath=yes | ||
3168 | 2501 | hardcode_into_libs=yes | ||
3169 | 2502 | ;; | ||
3170 | 2503 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
3171 | 2504 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
3172 | 2505 | shlibpath_overrides_runpath=no | ||
3173 | 2506 | hardcode_into_libs=yes | ||
3174 | 2507 | ;; | ||
3175 | 2508 | *) # from 4.6 on, and DragonFly | ||
3176 | 2509 | shlibpath_overrides_runpath=yes | ||
3177 | 2510 | hardcode_into_libs=yes | ||
3178 | 2511 | ;; | ||
3179 | 2512 | esac | ||
3180 | 2513 | ;; | ||
3181 | 2514 | |||
3182 | 2515 | gnu*) | ||
3183 | 2516 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3184 | 2517 | need_lib_prefix=no | ||
3185 | 2518 | need_version=no | ||
3186 | 2519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
3187 | 2520 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3188 | 2521 | shlibpath_var=LD_LIBRARY_PATH | ||
3189 | 2522 | shlibpath_overrides_runpath=no | ||
3190 | 2523 | hardcode_into_libs=yes | ||
3191 | 2524 | ;; | ||
3192 | 2525 | |||
3193 | 2526 | haiku*) | ||
3194 | 2527 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3195 | 2528 | need_lib_prefix=no | ||
3196 | 2529 | need_version=no | ||
3197 | 2530 | dynamic_linker="$host_os runtime_loader" | ||
3198 | 2531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
3199 | 2532 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3200 | 2533 | shlibpath_var=LIBRARY_PATH | ||
3201 | 2534 | shlibpath_overrides_runpath=yes | ||
3202 | 2535 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
3203 | 2536 | hardcode_into_libs=yes | ||
3204 | 2537 | ;; | ||
3205 | 2538 | |||
3206 | 2539 | hpux9* | hpux10* | hpux11*) | ||
3207 | 2540 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
3208 | 2541 | # link against other versions. | ||
3209 | 2542 | version_type=sunos | ||
3210 | 2543 | need_lib_prefix=no | ||
3211 | 2544 | need_version=no | ||
3212 | 2545 | case $host_cpu in | ||
3213 | 2546 | ia64*) | ||
3214 | 2547 | shrext_cmds='.so' | ||
3215 | 2548 | hardcode_into_libs=yes | ||
3216 | 2549 | dynamic_linker="$host_os dld.so" | ||
3217 | 2550 | shlibpath_var=LD_LIBRARY_PATH | ||
3218 | 2551 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
3219 | 2552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3220 | 2553 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3221 | 2554 | if test "X$HPUX_IA64_MODE" = X32; then | ||
3222 | 2555 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
3223 | 2556 | else | ||
3224 | 2557 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
3225 | 2558 | fi | ||
3226 | 2559 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
3227 | 2560 | ;; | ||
3228 | 2561 | hppa*64*) | ||
3229 | 2562 | shrext_cmds='.sl' | ||
3230 | 2563 | hardcode_into_libs=yes | ||
3231 | 2564 | dynamic_linker="$host_os dld.sl" | ||
3232 | 2565 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
3233 | 2566 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
3234 | 2567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3235 | 2568 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3236 | 2569 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
3237 | 2570 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
3238 | 2571 | ;; | ||
3239 | 2572 | *) | ||
3240 | 2573 | shrext_cmds='.sl' | ||
3241 | 2574 | dynamic_linker="$host_os dld.sl" | ||
3242 | 2575 | shlibpath_var=SHLIB_PATH | ||
3243 | 2576 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
3244 | 2577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3245 | 2578 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3246 | 2579 | ;; | ||
3247 | 2580 | esac | ||
3248 | 2581 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
3249 | 2582 | postinstall_cmds='chmod 555 $lib' | ||
3250 | 2583 | # or fails outright, so override atomically: | ||
3251 | 2584 | install_override_mode=555 | ||
3252 | 2585 | ;; | ||
3253 | 2586 | |||
3254 | 2587 | interix[[3-9]]*) | ||
3255 | 2588 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3256 | 2589 | need_lib_prefix=no | ||
3257 | 2590 | need_version=no | ||
3258 | 2591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3259 | 2592 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3260 | 2593 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
3261 | 2594 | shlibpath_var=LD_LIBRARY_PATH | ||
3262 | 2595 | shlibpath_overrides_runpath=no | ||
3263 | 2596 | hardcode_into_libs=yes | ||
3264 | 2597 | ;; | ||
3265 | 2598 | |||
3266 | 2599 | irix5* | irix6* | nonstopux*) | ||
3267 | 2600 | case $host_os in | ||
3268 | 2601 | nonstopux*) version_type=nonstopux ;; | ||
3269 | 2602 | *) | ||
3270 | 2603 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
3271 | 2604 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3272 | 2605 | else | ||
3273 | 2606 | version_type=irix | ||
3274 | 2607 | fi ;; | ||
3275 | 2608 | esac | ||
3276 | 2609 | need_lib_prefix=no | ||
3277 | 2610 | need_version=no | ||
3278 | 2611 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3279 | 2612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3280 | 2613 | case $host_os in | ||
3281 | 2614 | irix5* | nonstopux*) | ||
3282 | 2615 | libsuff= shlibsuff= | ||
3283 | 2616 | ;; | ||
3284 | 2617 | *) | ||
3285 | 2618 | case $LD in # libtool.m4 will add one of these switches to LD | ||
3286 | 2619 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
3287 | 2620 | libsuff= shlibsuff= libmagic=32-bit;; | ||
3288 | 2621 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
3289 | 2622 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
3290 | 2623 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
3291 | 2624 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
3292 | 2625 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
3293 | 2626 | esac | ||
3294 | 2627 | ;; | ||
3295 | 2628 | esac | ||
3296 | 2629 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
3297 | 2630 | shlibpath_overrides_runpath=no | ||
3298 | 2631 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
3299 | 2632 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
3300 | 2633 | hardcode_into_libs=yes | ||
3301 | 2634 | ;; | ||
3302 | 2635 | |||
3303 | 2636 | # No shared lib support for Linux oldld, aout, or coff. | ||
3304 | 2637 | linux*oldld* | linux*aout* | linux*coff*) | ||
3305 | 2638 | dynamic_linker=no | ||
3306 | 2639 | ;; | ||
3307 | 2640 | |||
3308 | 2641 | # This must be glibc/ELF. | ||
3309 | 2642 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
3310 | 2643 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3311 | 2644 | need_lib_prefix=no | ||
3312 | 2645 | need_version=no | ||
3313 | 2646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3314 | 2647 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3315 | 2648 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
3316 | 2649 | shlibpath_var=LD_LIBRARY_PATH | ||
3317 | 2650 | shlibpath_overrides_runpath=no | ||
3318 | 2651 | |||
3319 | 2652 | # Some binutils ld are patched to set DT_RUNPATH | ||
3320 | 2653 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | ||
3321 | 2654 | [lt_cv_shlibpath_overrides_runpath=no | ||
3322 | 2655 | save_LDFLAGS=$LDFLAGS | ||
3323 | 2656 | save_libdir=$libdir | ||
3324 | 2657 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | ||
3325 | 2658 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | ||
3326 | 2659 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | ||
3327 | 2660 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | ||
3328 | 2661 | [lt_cv_shlibpath_overrides_runpath=yes])]) | ||
3329 | 2662 | LDFLAGS=$save_LDFLAGS | ||
3330 | 2663 | libdir=$save_libdir | ||
3331 | 2664 | ]) | ||
3332 | 2665 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | ||
3333 | 2666 | |||
3334 | 2667 | # This implies no fast_install, which is unacceptable. | ||
3335 | 2668 | # Some rework will be needed to allow for fast_install | ||
3336 | 2669 | # before this can be enabled. | ||
3337 | 2670 | hardcode_into_libs=yes | ||
3338 | 2671 | |||
3339 | 2672 | # Append ld.so.conf contents to the search path | ||
3340 | 2673 | if test -f /etc/ld.so.conf; then | ||
3341 | 2674 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | ||
3342 | 2675 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
3343 | 2676 | fi | ||
3344 | 2677 | |||
3345 | 2678 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
3346 | 2679 | # powerpc, because MkLinux only supported shared libraries with the | ||
3347 | 2680 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
3348 | 2681 | # most powerpc-linux boxes support dynamic linking these days and | ||
3349 | 2682 | # people can always --disable-shared, the test was removed, and we | ||
3350 | 2683 | # assume the GNU/Linux dynamic linker is in use. | ||
3351 | 2684 | dynamic_linker='GNU/Linux ld.so' | ||
3352 | 2685 | ;; | ||
3353 | 2686 | |||
3354 | 2687 | netbsd*) | ||
3355 | 2688 | version_type=sunos | ||
3356 | 2689 | need_lib_prefix=no | ||
3357 | 2690 | need_version=no | ||
3358 | 2691 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
3359 | 2692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3360 | 2693 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3361 | 2694 | dynamic_linker='NetBSD (a.out) ld.so' | ||
3362 | 2695 | else | ||
3363 | 2696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3364 | 2697 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3365 | 2698 | dynamic_linker='NetBSD ld.elf_so' | ||
3366 | 2699 | fi | ||
3367 | 2700 | shlibpath_var=LD_LIBRARY_PATH | ||
3368 | 2701 | shlibpath_overrides_runpath=yes | ||
3369 | 2702 | hardcode_into_libs=yes | ||
3370 | 2703 | ;; | ||
3371 | 2704 | |||
3372 | 2705 | newsos6) | ||
3373 | 2706 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3374 | 2707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3375 | 2708 | shlibpath_var=LD_LIBRARY_PATH | ||
3376 | 2709 | shlibpath_overrides_runpath=yes | ||
3377 | 2710 | ;; | ||
3378 | 2711 | |||
3379 | 2712 | *nto* | *qnx*) | ||
3380 | 2713 | version_type=qnx | ||
3381 | 2714 | need_lib_prefix=no | ||
3382 | 2715 | need_version=no | ||
3383 | 2716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3384 | 2717 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3385 | 2718 | shlibpath_var=LD_LIBRARY_PATH | ||
3386 | 2719 | shlibpath_overrides_runpath=no | ||
3387 | 2720 | hardcode_into_libs=yes | ||
3388 | 2721 | dynamic_linker='ldqnx.so' | ||
3389 | 2722 | ;; | ||
3390 | 2723 | |||
3391 | 2724 | openbsd*) | ||
3392 | 2725 | version_type=sunos | ||
3393 | 2726 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
3394 | 2727 | need_lib_prefix=no | ||
3395 | 2728 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
3396 | 2729 | case $host_os in | ||
3397 | 2730 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
3398 | 2731 | *) need_version=no ;; | ||
3399 | 2732 | esac | ||
3400 | 2733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3401 | 2734 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3402 | 2735 | shlibpath_var=LD_LIBRARY_PATH | ||
3403 | 2736 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3404 | 2737 | case $host_os in | ||
3405 | 2738 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
3406 | 2739 | shlibpath_overrides_runpath=no | ||
3407 | 2740 | ;; | ||
3408 | 2741 | *) | ||
3409 | 2742 | shlibpath_overrides_runpath=yes | ||
3410 | 2743 | ;; | ||
3411 | 2744 | esac | ||
3412 | 2745 | else | ||
3413 | 2746 | shlibpath_overrides_runpath=yes | ||
3414 | 2747 | fi | ||
3415 | 2748 | ;; | ||
3416 | 2749 | |||
3417 | 2750 | os2*) | ||
3418 | 2751 | libname_spec='$name' | ||
3419 | 2752 | shrext_cmds=".dll" | ||
3420 | 2753 | need_lib_prefix=no | ||
3421 | 2754 | library_names_spec='$libname${shared_ext} $libname.a' | ||
3422 | 2755 | dynamic_linker='OS/2 ld.exe' | ||
3423 | 2756 | shlibpath_var=LIBPATH | ||
3424 | 2757 | ;; | ||
3425 | 2758 | |||
3426 | 2759 | osf3* | osf4* | osf5*) | ||
3427 | 2760 | version_type=osf | ||
3428 | 2761 | need_lib_prefix=no | ||
3429 | 2762 | need_version=no | ||
3430 | 2763 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3431 | 2764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3432 | 2765 | shlibpath_var=LD_LIBRARY_PATH | ||
3433 | 2766 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
3434 | 2767 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
3435 | 2768 | ;; | ||
3436 | 2769 | |||
3437 | 2770 | rdos*) | ||
3438 | 2771 | dynamic_linker=no | ||
3439 | 2772 | ;; | ||
3440 | 2773 | |||
3441 | 2774 | solaris*) | ||
3442 | 2775 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3443 | 2776 | need_lib_prefix=no | ||
3444 | 2777 | need_version=no | ||
3445 | 2778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3446 | 2779 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3447 | 2780 | shlibpath_var=LD_LIBRARY_PATH | ||
3448 | 2781 | shlibpath_overrides_runpath=yes | ||
3449 | 2782 | hardcode_into_libs=yes | ||
3450 | 2783 | # ldd complains unless libraries are executable | ||
3451 | 2784 | postinstall_cmds='chmod +x $lib' | ||
3452 | 2785 | ;; | ||
3453 | 2786 | |||
3454 | 2787 | sunos4*) | ||
3455 | 2788 | version_type=sunos | ||
3456 | 2789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3457 | 2790 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
3458 | 2791 | shlibpath_var=LD_LIBRARY_PATH | ||
3459 | 2792 | shlibpath_overrides_runpath=yes | ||
3460 | 2793 | if test "$with_gnu_ld" = yes; then | ||
3461 | 2794 | need_lib_prefix=no | ||
3462 | 2795 | fi | ||
3463 | 2796 | need_version=yes | ||
3464 | 2797 | ;; | ||
3465 | 2798 | |||
3466 | 2799 | sysv4 | sysv4.3*) | ||
3467 | 2800 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3468 | 2801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3469 | 2802 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3470 | 2803 | shlibpath_var=LD_LIBRARY_PATH | ||
3471 | 2804 | case $host_vendor in | ||
3472 | 2805 | sni) | ||
3473 | 2806 | shlibpath_overrides_runpath=no | ||
3474 | 2807 | need_lib_prefix=no | ||
3475 | 2808 | runpath_var=LD_RUN_PATH | ||
3476 | 2809 | ;; | ||
3477 | 2810 | siemens) | ||
3478 | 2811 | need_lib_prefix=no | ||
3479 | 2812 | ;; | ||
3480 | 2813 | motorola) | ||
3481 | 2814 | need_lib_prefix=no | ||
3482 | 2815 | need_version=no | ||
3483 | 2816 | shlibpath_overrides_runpath=no | ||
3484 | 2817 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
3485 | 2818 | ;; | ||
3486 | 2819 | esac | ||
3487 | 2820 | ;; | ||
3488 | 2821 | |||
3489 | 2822 | sysv4*MP*) | ||
3490 | 2823 | if test -d /usr/nec ;then | ||
3491 | 2824 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3492 | 2825 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
3493 | 2826 | soname_spec='$libname${shared_ext}.$major' | ||
3494 | 2827 | shlibpath_var=LD_LIBRARY_PATH | ||
3495 | 2828 | fi | ||
3496 | 2829 | ;; | ||
3497 | 2830 | |||
3498 | 2831 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3499 | 2832 | version_type=freebsd-elf | ||
3500 | 2833 | need_lib_prefix=no | ||
3501 | 2834 | need_version=no | ||
3502 | 2835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3503 | 2836 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3504 | 2837 | shlibpath_var=LD_LIBRARY_PATH | ||
3505 | 2838 | shlibpath_overrides_runpath=yes | ||
3506 | 2839 | hardcode_into_libs=yes | ||
3507 | 2840 | if test "$with_gnu_ld" = yes; then | ||
3508 | 2841 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
3509 | 2842 | else | ||
3510 | 2843 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
3511 | 2844 | case $host_os in | ||
3512 | 2845 | sco3.2v5*) | ||
3513 | 2846 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
3514 | 2847 | ;; | ||
3515 | 2848 | esac | ||
3516 | 2849 | fi | ||
3517 | 2850 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
3518 | 2851 | ;; | ||
3519 | 2852 | |||
3520 | 2853 | tpf*) | ||
3521 | 2854 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
3522 | 2855 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3523 | 2856 | need_lib_prefix=no | ||
3524 | 2857 | need_version=no | ||
3525 | 2858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3526 | 2859 | shlibpath_var=LD_LIBRARY_PATH | ||
3527 | 2860 | shlibpath_overrides_runpath=no | ||
3528 | 2861 | hardcode_into_libs=yes | ||
3529 | 2862 | ;; | ||
3530 | 2863 | |||
3531 | 2864 | uts4*) | ||
3532 | 2865 | version_type=linux # correct to gnu/linux during the next big refactor | ||
3533 | 2866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3534 | 2867 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3535 | 2868 | shlibpath_var=LD_LIBRARY_PATH | ||
3536 | 2869 | ;; | ||
3537 | 2870 | |||
3538 | 2871 | *) | ||
3539 | 2872 | dynamic_linker=no | ||
3540 | 2873 | ;; | ||
3541 | 2874 | esac | ||
3542 | 2875 | AC_MSG_RESULT([$dynamic_linker]) | ||
3543 | 2876 | test "$dynamic_linker" = no && can_build_shared=no | ||
3544 | 2877 | |||
3545 | 2878 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
3546 | 2879 | if test "$GCC" = yes; then | ||
3547 | 2880 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
3548 | 2881 | fi | ||
3549 | 2882 | |||
3550 | 2883 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
3551 | 2884 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
3552 | 2885 | fi | ||
3553 | 2886 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
3554 | 2887 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
3555 | 2888 | fi | ||
3556 | 2889 | |||
3557 | 2890 | _LT_DECL([], [variables_saved_for_relink], [1], | ||
3558 | 2891 | [Variables whose values should be saved in libtool wrapper scripts and | ||
3559 | 2892 | restored at link time]) | ||
3560 | 2893 | _LT_DECL([], [need_lib_prefix], [0], | ||
3561 | 2894 | [Do we need the "lib" prefix for modules?]) | ||
3562 | 2895 | _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | ||
3563 | 2896 | _LT_DECL([], [version_type], [0], [Library versioning type]) | ||
3564 | 2897 | _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | ||
3565 | 2898 | _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | ||
3566 | 2899 | _LT_DECL([], [shlibpath_overrides_runpath], [0], | ||
3567 | 2900 | [Is shlibpath searched before the hard-coded library search path?]) | ||
3568 | 2901 | _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | ||
3569 | 2902 | _LT_DECL([], [library_names_spec], [1], | ||
3570 | 2903 | [[List of archive names. First name is the real one, the rest are links. | ||
3571 | 2904 | The last name is the one that the linker finds with -lNAME]]) | ||
3572 | 2905 | _LT_DECL([], [soname_spec], [1], | ||
3573 | 2906 | [[The coded name of the library, if different from the real name]]) | ||
3574 | 2907 | _LT_DECL([], [install_override_mode], [1], | ||
3575 | 2908 | [Permission mode override for installation of shared libraries]) | ||
3576 | 2909 | _LT_DECL([], [postinstall_cmds], [2], | ||
3577 | 2910 | [Command to use after installation of a shared archive]) | ||
3578 | 2911 | _LT_DECL([], [postuninstall_cmds], [2], | ||
3579 | 2912 | [Command to use after uninstallation of a shared archive]) | ||
3580 | 2913 | _LT_DECL([], [finish_cmds], [2], | ||
3581 | 2914 | [Commands used to finish a libtool library installation in a directory]) | ||
3582 | 2915 | _LT_DECL([], [finish_eval], [1], | ||
3583 | 2916 | [[As "finish_cmds", except a single script fragment to be evaled but | ||
3584 | 2917 | not shown]]) | ||
3585 | 2918 | _LT_DECL([], [hardcode_into_libs], [0], | ||
3586 | 2919 | [Whether we should hardcode library paths into libraries]) | ||
3587 | 2920 | _LT_DECL([], [sys_lib_search_path_spec], [2], | ||
3588 | 2921 | [Compile-time system search path for libraries]) | ||
3589 | 2922 | _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], | ||
3590 | 2923 | [Run-time system search path for libraries]) | ||
3591 | 2924 | ])# _LT_SYS_DYNAMIC_LINKER | ||
3592 | 2925 | |||
3593 | 2926 | |||
3594 | 2927 | # _LT_PATH_TOOL_PREFIX(TOOL) | ||
3595 | 2928 | # -------------------------- | ||
3596 | 2929 | # find a file program which can recognize shared library | ||
3597 | 2930 | AC_DEFUN([_LT_PATH_TOOL_PREFIX], | ||
3598 | 2931 | [m4_require([_LT_DECL_EGREP])dnl | ||
3599 | 2932 | AC_MSG_CHECKING([for $1]) | ||
3600 | 2933 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
3601 | 2934 | [case $MAGIC_CMD in | ||
3602 | 2935 | [[\\/*] | ?:[\\/]*]) | ||
3603 | 2936 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
3604 | 2937 | ;; | ||
3605 | 2938 | *) | ||
3606 | 2939 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
3607 | 2940 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3608 | 2941 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
3609 | 2942 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
3610 | 2943 | dnl not every word. This closes a longstanding sh security hole. | ||
3611 | 2944 | ac_dummy="m4_if([$2], , $PATH, [$2])" | ||
3612 | 2945 | for ac_dir in $ac_dummy; do | ||
3613 | 2946 | IFS="$lt_save_ifs" | ||
3614 | 2947 | test -z "$ac_dir" && ac_dir=. | ||
3615 | 2948 | if test -f $ac_dir/$1; then | ||
3616 | 2949 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
3617 | 2950 | if test -n "$file_magic_test_file"; then | ||
3618 | 2951 | case $deplibs_check_method in | ||
3619 | 2952 | "file_magic "*) | ||
Can you please re-do that as merge against Debian? http:// packages. qa.debian. org/c/cogl/ news/20140211T1 83843Z. html
Also, this drops debian/ patches/ 99-ppc64el- support. patch, which previously had:
- ppc64-* linux*| powerpc64- *linux* )
+ powerpc64le-*)
+ LD="${LD-ld} -m elf32lppclinux"
+ ;;
+ powerpc64-*)
+ LD="${LD-ld} -m elf32ppclinux"
but this isn't in upstream's libtool.m4. That also changes some ppc stuff, but not for "powerpc64le-*".