Merge lp:~noskcaj/ubuntu/vivid/librsvg/2.40.7 into lp:ubuntu/vivid/librsvg
- Vivid (15.04)
- 2.40.7
- Merge into vivid
Proposed by
Jackson Doak
Status: | Needs review |
---|---|
Proposed branch: | lp:~noskcaj/ubuntu/vivid/librsvg/2.40.7 |
Merge into: | lp:ubuntu/vivid/librsvg |
Diff against target: |
11375 lines (+3949/-4433) 69 files modified
.pc/20_rsvg_compat.patch/rsvg-convert.c (+23/-5) ChangeLog (+265/-0) Makefile.in (+7/-15) NEWS (+7/-0) README (+1/-3) aclocal.m4 (+38/-116) config.guess (+247/-99) config.h.in (+4/-1) config.sub (+16/-26) configure (+173/-357) configure.ac (+294/-0) configure.in (+0/-319) debian/changelog (+6/-0) debian/control (+2/-1) debian/control.in (+2/-1) debian/patches/20_rsvg_compat.patch (+11/-9) doc/Makefile.in (+16/-32) doc/html/RsvgHandle.html (+972/-1287) doc/html/annotation-glossary.html (+25/-25) doc/html/api-index-2-14.html (+34/-31) doc/html/api-index-2-22.html (+22/-19) doc/html/api-index-2-32.html (+26/-23) doc/html/api-index-2-36.html (+20/-15) doc/html/api-index-2-4.html (+15/-12) doc/html/api-index-2-8.html (+28/-23) doc/html/api-index-2-9.html (+23/-18) doc/html/api-index-deprecated.html (+69/-64) doc/html/api-index-full.html (+213/-208) doc/html/index.html (+4/-4) doc/html/index.sgml (+26/-29) doc/html/licence.html (+9/-9) doc/html/object-tree.html (+15/-15) doc/html/rsvg-Using-RSVG-with-GIO.html (+258/-315) doc/html/rsvg-Using-RSVG-with-GdkPixbuf.html (+270/-367) doc/html/rsvg-Using-RSVG-with-cairo.html (+76/-101) doc/html/rsvg-Version-check-and-feature-tests.html (+37/-77) doc/html/rsvg.devhelp2 (+59/-55) doc/html/rsvg.html (+9/-9) doc/html/style.css (+107/-317) doc/version.xml (+1/-1) gdk-pixbuf-loader/Makefile.in (+4/-5) gdk-pixbuf-loader/io-svg.c (+6/-8) gtk-doc.make (+11/-24) librsvg-features.h (+2/-2) librsvg.doap (+10/-11) m4/gtk-doc.m4 (+15/-32) m4/libtool.m4 (+4/-14) missing (+2/-2) rsvg-base-file-util.c (+4/-4) rsvg-base.c (+12/-12) rsvg-convert.c (+23/-5) rsvg-css.c (+1/-1) rsvg-defs.c (+2/-2) rsvg-file-util.c (+3/-3) rsvg-filter.c (+59/-73) rsvg-image.c (+3/-3) rsvg-io.c (+12/-12) rsvg-io.h (+6/-6) rsvg-marker.c (+3/-3) rsvg-marker.h (+2/-2) rsvg-paint-server.c (+297/-159) rsvg-path.c (+1/-1) rsvg-private.h (+5/-5) rsvg-shapes.c (+13/-1) rsvg-styles.c (+3/-4) test-driver (+4/-16) tests/Makefile.in (+4/-5) tests/pdiff/Makefile.in (+4/-5) tools/Makefile.in (+4/-5) |
To merge this branch: | bzr merge lp:~noskcaj/ubuntu/vivid/librsvg/2.40.7 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Needs Fixing | ||
Review via email: mp+249879@code.launchpad.net |
Commit message
Description of the change
New upstream bugfix release
To post a comment you must log in.
Unmerged revisions
- 39. By Jackson Doak
-
New upstream release.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.pc/20_rsvg_compat.patch/rsvg-convert.c' | |||
2 | --- .pc/20_rsvg_compat.patch/rsvg-convert.c 2014-12-10 10:09:37 +0000 | |||
3 | +++ .pc/20_rsvg_compat.patch/rsvg-convert.c 2015-02-16 19:51:53 +0000 | |||
4 | @@ -36,10 +36,16 @@ | |||
5 | 36 | #include <locale.h> | 36 | #include <locale.h> |
6 | 37 | #include <glib/gi18n.h> | 37 | #include <glib/gi18n.h> |
7 | 38 | #include <gio/gio.h> | 38 | #include <gio/gio.h> |
9 | 39 | #ifdef _WIN32 | 39 | |
10 | 40 | #ifdef G_OS_UNIX | ||
11 | 41 | #include <gio/gunixinputstream.h> | ||
12 | 42 | #endif | ||
13 | 43 | |||
14 | 44 | #ifdef G_OS_WIN32 | ||
15 | 45 | #define WIN32_LEAN_AND_MEAN | ||
16 | 46 | #include <windows.h> | ||
17 | 47 | |||
18 | 40 | #include <gio/gwin32inputstream.h> | 48 | #include <gio/gwin32inputstream.h> |
19 | 41 | #else | ||
20 | 42 | #include <gio/gunixinputstream.h> | ||
21 | 43 | #endif | 49 | #endif |
22 | 44 | 50 | ||
23 | 45 | #include "rsvg-css.h" | 51 | #include "rsvg-css.h" |
24 | @@ -113,13 +119,17 @@ | |||
25 | 113 | int i; | 119 | int i; |
26 | 114 | char **args = NULL; | 120 | char **args = NULL; |
27 | 115 | gint n_args = 0; | 121 | gint n_args = 0; |
29 | 116 | RsvgHandle *rsvg; | 122 | RsvgHandle *rsvg = NULL; |
30 | 117 | cairo_surface_t *surface = NULL; | 123 | cairo_surface_t *surface = NULL; |
31 | 118 | cairo_t *cr = NULL; | 124 | cairo_t *cr = NULL; |
32 | 119 | RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE; | 125 | RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE; |
33 | 120 | RsvgDimensionData dimensions; | 126 | RsvgDimensionData dimensions; |
34 | 121 | FILE *output_file = stdout; | 127 | FILE *output_file = stdout; |
35 | 122 | 128 | ||
36 | 129 | #ifdef G_OS_WIN32 | ||
37 | 130 | HANDLE handle; | ||
38 | 131 | #endif | ||
39 | 132 | |||
40 | 123 | GOptionEntry options_table[] = { | 133 | GOptionEntry options_table[] = { |
41 | 124 | {"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x, | 134 | {"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x, |
42 | 125 | N_("pixels per inch [optional; defaults to 90dpi]"), N_("<float>")}, | 135 | N_("pixels per inch [optional; defaults to 90dpi]"), N_("<float>")}, |
43 | @@ -218,7 +228,15 @@ | |||
44 | 218 | if (using_stdin) { | 228 | if (using_stdin) { |
45 | 219 | file = NULL; | 229 | file = NULL; |
46 | 220 | #ifdef _WIN32 | 230 | #ifdef _WIN32 |
48 | 221 | stream = g_win32_input_stream_new (STDIN_FILENO, FALSE); | 231 | handle = GetStdHandle (STD_INPUT_HANDLE); |
49 | 232 | |||
50 | 233 | if (handle == INVALID_HANDLE_VALUE) { | ||
51 | 234 | gchar *emsg = g_win32_error_message (GetLastError()); | ||
52 | 235 | g_printerr ( _("Unable to acquire HANDLE for STDIN: %s\n"), emsg); | ||
53 | 236 | g_free (emsg); | ||
54 | 237 | exit (1); | ||
55 | 238 | } | ||
56 | 239 | stream = g_win32_input_stream_new (handle, FALSE); | ||
57 | 222 | #else | 240 | #else |
58 | 223 | stream = g_unix_input_stream_new (STDIN_FILENO, FALSE); | 241 | stream = g_unix_input_stream_new (STDIN_FILENO, FALSE); |
59 | 224 | #endif | 242 | #endif |
60 | 225 | 243 | ||
61 | === modified file 'ChangeLog' | |||
62 | --- ChangeLog 2014-12-10 10:09:37 +0000 | |||
63 | +++ ChangeLog 2015-02-16 19:51:53 +0000 | |||
64 | @@ -1,3 +1,268 @@ | |||
65 | 1 | commit aadbf6968df5fa93e182b7e7c93dc5cc076d44ce | ||
66 | 2 | Author: Federico Mena Quintero <federico@gnome.org> | ||
67 | 3 | Date: Fri Feb 13 14:49:11 2015 -0600 | ||
68 | 4 | |||
69 | 5 | Update NEWS | ||
70 | 6 | |||
71 | 7 | NEWS | 5 +++-- | ||
72 | 8 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
73 | 9 | |||
74 | 10 | commit 00e75a916e5cfce7bb98d87d98688d86289f8142 | ||
75 | 11 | Author: Federico Mena Quintero <federico@gnome.org> | ||
76 | 12 | Date: Fri Feb 13 14:47:35 2015 -0600 | ||
77 | 13 | |||
78 | 14 | Quick update of the README, at least to make it not so outdated | ||
79 | 15 | |||
80 | 16 | README | 4 +--- | ||
81 | 17 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
82 | 18 | |||
83 | 19 | commit 80f6366f8033a33b88640faea50976644aad2c66 | ||
84 | 20 | Author: Federico Mena Quintero <federico@gnome.org> | ||
85 | 21 | Date: Thu Feb 12 14:18:06 2015 -0600 | ||
86 | 22 | |||
87 | 23 | Internally use 'char *' for string data | ||
88 | 24 | |||
89 | 25 | There was a mixture of guint8*, guchar*, gchar*, etc. Use char* because that's | ||
90 | 26 | about as sane as we can get, and only cast where we can't change the public API | ||
91 | 27 | or where we must interface with other libraries. *Cough* xmlChar *cough*. | ||
92 | 28 | |||
93 | 29 | This removes a metric assload of compiler warnings, and I'm fine with that. | ||
94 | 30 | |||
95 | 31 | gdk-pixbuf-loader/io-svg.c | 6 +++--- | ||
96 | 32 | rsvg-base-file-util.c | 8 ++++---- | ||
97 | 33 | rsvg-base.c | 16 ++++++++-------- | ||
98 | 34 | rsvg-css.c | 2 +- | ||
99 | 35 | rsvg-defs.c | 4 ++-- | ||
100 | 36 | rsvg-file-util.c | 6 +++--- | ||
101 | 37 | rsvg-image.c | 6 +++--- | ||
102 | 38 | rsvg-io.c | 24 ++++++++++++------------ | ||
103 | 39 | rsvg-io.h | 12 ++++++------ | ||
104 | 40 | rsvg-private.h | 10 +++++----- | ||
105 | 41 | rsvg-styles.c | 7 +++---- | ||
106 | 42 | 11 files changed, 50 insertions(+), 51 deletions(-) | ||
107 | 43 | |||
108 | 44 | commit 24ca2ec60645365bacbefacff98a5f24f98b1d03 | ||
109 | 45 | Author: Federico Mena Quintero <federico@gnome.org> | ||
110 | 46 | Date: Thu Feb 12 11:29:12 2015 -0600 | ||
111 | 47 | |||
112 | 48 | configure.in -> configure.ac | ||
113 | 49 | |||
114 | 50 | autogen.sh | 2 +- | ||
115 | 51 | configure.ac | 294 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
116 | 52 | configure.in | 294 ----------------------------------------------------------- | ||
117 | 53 | 3 files changed, 295 insertions(+), 295 deletions(-) | ||
118 | 54 | |||
119 | 55 | commit 0de909abb6312902f738183cda571b08337f118c | ||
120 | 56 | Author: Federico Mena Quintero <federico@gnome.org> | ||
121 | 57 | Date: Thu Feb 12 11:26:54 2015 -0600 | ||
122 | 58 | |||
123 | 59 | Remove extra compiler warnings from configure.in | ||
124 | 60 | |||
125 | 61 | Whoever builds the module should be in control. Developers can very well | ||
126 | 62 | have a build-paranoically script or something. | ||
127 | 63 | |||
128 | 64 | configure.in | 25 ------------------------- | ||
129 | 65 | 1 file changed, 25 deletions(-) | ||
130 | 66 | |||
131 | 67 | commit 7f7a186a791718b94dc35a5c5559dd2d43049d12 | ||
132 | 68 | Author: Federico Mena Quintero <federico@gnome.org> | ||
133 | 69 | Date: Thu Feb 12 10:50:35 2015 -0600 | ||
134 | 70 | |||
135 | 71 | Fix parentheses | ||
136 | 72 | |||
137 | 73 | rsvg-path.c | 2 +- | ||
138 | 74 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
139 | 75 | |||
140 | 76 | commit bc189a77050e4029e1fe9be3a7d7400bc0640c21 | ||
141 | 77 | Author: Federico Mena Quintero <federico@gnome.org> | ||
142 | 78 | Date: Thu Feb 12 10:49:01 2015 -0600 | ||
143 | 79 | |||
144 | 80 | Fix shadowed variables | ||
145 | 81 | |||
146 | 82 | rsvg-filter.c | 2 +- | ||
147 | 83 | rsvg-marker.c | 6 +++--- | ||
148 | 84 | rsvg-marker.h | 4 ++-- | ||
149 | 85 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
150 | 86 | |||
151 | 87 | commit 5d8e48bf386e4bc8ffefb9262c7ae37b3ee27d9f | ||
152 | 88 | Author: Federico Mena Quintero <federico@gnome.org> | ||
153 | 89 | Date: Thu Feb 12 10:48:38 2015 -0600 | ||
154 | 90 | |||
155 | 91 | Fix variable name which shadows a type name | ||
156 | 92 | |||
157 | 93 | rsvg-base.c | 8 ++++---- | ||
158 | 94 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
159 | 95 | |||
160 | 96 | commit cfa5cf4ac4a04977bb3fae08ad4e2d189f6498db | ||
161 | 97 | Author: Federico Mena Quintero <federico@gnome.org> | ||
162 | 98 | Date: Thu Feb 12 10:48:21 2015 -0600 | ||
163 | 99 | |||
164 | 100 | Fix possibly-uninitialized variable | ||
165 | 101 | |||
166 | 102 | rsvg-convert.c | 2 +- | ||
167 | 103 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
168 | 104 | |||
169 | 105 | commit 2c2db8dbe4b8f7f59654d2990f781af3d363b0ba | ||
170 | 106 | Author: Federico Mena Quintero <federico@gnome.org> | ||
171 | 107 | Date: Thu Feb 12 10:48:05 2015 -0600 | ||
172 | 108 | |||
173 | 109 | Fix const warnings in the pixbuf loader | ||
174 | 110 | |||
175 | 111 | gdk-pixbuf-loader/io-svg.c | 8 +++----- | ||
176 | 112 | 1 file changed, 3 insertions(+), 5 deletions(-) | ||
177 | 113 | |||
178 | 114 | commit 400336480ed5abbe398d2fa646872a668205a5fd | ||
179 | 115 | Author: Federico Mena Quintero <federico@gnome.org> | ||
180 | 116 | Date: Wed Feb 11 15:06:56 2015 -0600 | ||
181 | 117 | |||
182 | 118 | bgo#744270 - Fix uninitialized value in rsvg_filter_primitive_displacement_map_render() | ||
183 | 119 | |||
184 | 120 | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=744270 | ||
185 | 121 | |||
186 | 122 | Signed-off-by: Federico Mena Quintero <federico@gnome.org> | ||
187 | 123 | |||
188 | 124 | rsvg-filter.c | 2 +- | ||
189 | 125 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
190 | 126 | |||
191 | 127 | commit 2737efd03e814588c3b058633227985c441ccdf4 | ||
192 | 128 | Author: Federico Mena Quintero <federico@gnome.org> | ||
193 | 129 | Date: Wed Feb 11 14:16:01 2015 -0600 | ||
194 | 130 | |||
195 | 131 | Update NEWS and librsvg.doap; add MAINTAINERS | ||
196 | 132 | |||
197 | 133 | MAINTAINERS | 3 +++ | ||
198 | 134 | NEWS | 4 +++- | ||
199 | 135 | librsvg.doap | 21 ++++++++++----------- | ||
200 | 136 | 3 files changed, 16 insertions(+), 12 deletions(-) | ||
201 | 137 | |||
202 | 138 | commit 0035e95118a60c0cd3949c2300472d805e16a022 | ||
203 | 139 | Author: Federico Mena Quintero <federico@gnome.org> | ||
204 | 140 | Date: Wed Feb 11 10:48:52 2015 -0600 | ||
205 | 141 | |||
206 | 142 | bgo#744299 - Ensure the type of pattern fallbacks | ||
207 | 143 | |||
208 | 144 | Atte Kettunen's fuzz testing yielded an SVG with a pattern paint server that | ||
209 | 145 | had an xlink:href to a *rect*, not to another patern. Since we were not checking | ||
210 | 146 | type type of resolved nodes when applying pattern fallbacks, we were using a | ||
211 | 147 | structure of the wrong type. | ||
212 | 148 | |||
213 | 149 | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=744299 | ||
214 | 150 | |||
215 | 151 | Signed-off-by: Federico Mena Quintero <federico@gnome.org> | ||
216 | 152 | |||
217 | 153 | rsvg-paint-server.c | 29 +++++++++++++++++++++++------ | ||
218 | 154 | 1 file changed, 23 insertions(+), 6 deletions(-) | ||
219 | 155 | |||
220 | 156 | commit 53c50caecc970aef91cf8e3f1fde919f848d6f0c | ||
221 | 157 | Author: Federico Mena Quintero <federico@gnome.org> | ||
222 | 158 | Date: Fri Feb 6 16:33:25 2015 -0600 | ||
223 | 159 | |||
224 | 160 | Avoid overflow in gint multiplication | ||
225 | 161 | |||
226 | 162 | In the convolution matrix filter code, we read the orderx and ordery for the convolution | ||
227 | 163 | matrix. However, multiplying them as gints may overflow. | ||
228 | 164 | |||
229 | 165 | Found by fuzz testing when orderx = ordery = 65536 | ||
230 | 166 | |||
231 | 167 | Fuzz testing kindly provided by Atte Kettunen <attekett@gmail.com> | ||
232 | 168 | From librsvg-fuzz case rsvgconvert-060-3ef-705-f72.svg | ||
233 | 169 | |||
234 | 170 | Signed-off-by: Federico Mena Quintero <federico@gnome.org> | ||
235 | 171 | |||
236 | 172 | rsvg-filter.c | 7 +++---- | ||
237 | 173 | 1 file changed, 3 insertions(+), 4 deletions(-) | ||
238 | 174 | |||
239 | 175 | commit 8c71bac8940831aa1dd24e6f8a27149cd97ca1e9 | ||
240 | 176 | Author: Federico Mena Quintero <federico@gnome.org> | ||
241 | 177 | Date: Fri Feb 6 12:48:24 2015 -0600 | ||
242 | 178 | |||
243 | 179 | Update NEWS | ||
244 | 180 | |||
245 | 181 | NEWS | 4 ++++ | ||
246 | 182 | 1 file changed, 4 insertions(+) | ||
247 | 183 | |||
248 | 184 | commit 8ee18b22ece0f869cb4e2e021c01138cbb8a0226 | ||
249 | 185 | Author: Federico Mena Quintero <federico@gnome.org> | ||
250 | 186 | Date: Fri Feb 6 11:51:01 2015 -0600 | ||
251 | 187 | |||
252 | 188 | bgo#738169 - Avoid cycles while resolving paint server fallbacks | ||
253 | 189 | |||
254 | 190 | If a chain of paint servers, defined through the xlink:href attribute, has a cycle, | ||
255 | 191 | then we would loop infinitely while resolving the base paint server. We now | ||
256 | 192 | use a tortoise-and-hare to detect cycles and stop appropriately. | ||
257 | 193 | |||
258 | 194 | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=738169 | ||
259 | 195 | |||
260 | 196 | Signed-off-by: Federico Mena Quintero <federico@gnome.org> | ||
261 | 197 | |||
262 | 198 | rsvg-paint-server.c | 421 +++++++++++++++++++++++++++++++++------------------- | ||
263 | 199 | 1 file changed, 271 insertions(+), 150 deletions(-) | ||
264 | 200 | |||
265 | 201 | commit 40af93e6eb1c94b90c3b9a0b87e0840e126bb8df | ||
266 | 202 | Author: Federico Mena Quintero <federico@gnome.org> | ||
267 | 203 | Date: Thu Feb 5 18:08:25 2015 -0600 | ||
268 | 204 | |||
269 | 205 | bgo#738050 - Handle the case where a list of coordinate pairs has an odd number of elements | ||
270 | 206 | |||
271 | 207 | Lists of points come in coordinate pairs, but we didn't have any checking for that. | ||
272 | 208 | It was possible to try to fetch the 'last' coordinate in a list, i.e. the y coordinate | ||
273 | 209 | of an x,y pair, that was in fact missing, leading to an out-of-bounds array read. | ||
274 | 210 | |||
275 | 211 | In that case, we now reuse the last-known y coordinate. | ||
276 | 212 | |||
277 | 213 | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=738050 | ||
278 | 214 | |||
279 | 215 | Signed-off-by: Federico Mena Quintero <federico@gnome.org> | ||
280 | 216 | |||
281 | 217 | rsvg-shapes.c | 14 +++++++++++++- | ||
282 | 218 | 1 file changed, 13 insertions(+), 1 deletion(-) | ||
283 | 219 | |||
284 | 220 | commit 7803753d130da94db40c10cc75e98b9864dad620 | ||
285 | 221 | Author: Federico Mena Quintero <federico@gnome.org> | ||
286 | 222 | Date: Thu Feb 5 14:27:10 2015 -0600 | ||
287 | 223 | |||
288 | 224 | bgo#703102 - Clip coordinates for rsvg_alpha_blt() in a more civilized fashion | ||
289 | 225 | |||
290 | 226 | The source offsets were not being validated correctly, so we could easily do a read or write | ||
291 | 227 | outside the bounds of the image surface. We now use a generic function to clip rectangles | ||
292 | 228 | instead of doing it by hand. | ||
293 | 229 | |||
294 | 230 | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703102 | ||
295 | 231 | |||
296 | 232 | Signed-off-by: Federico Mena Quintero <federico@gnome.org> | ||
297 | 233 | |||
298 | 234 | rsvg-filter.c | 115 ++++++++++++++++++++++++++-------------------------------- | ||
299 | 235 | 1 file changed, 51 insertions(+), 64 deletions(-) | ||
300 | 236 | |||
301 | 237 | commit 452ef81f5201808357db50169ed4f8c18b50b12e | ||
302 | 238 | Author: Chun-wei Fan <fanchunwei@src.gnome.org> | ||
303 | 239 | Date: Fri Dec 19 18:43:15 2014 +0800 | ||
304 | 240 | |||
305 | 241 | Really Fix Build of rsvg-convert on Windows | ||
306 | 242 | |||
307 | 243 | Commit 1811f20 attempted to fix the build of rsvg-convert on Windows, but | ||
308 | 244 | unfortunately there were some issues about it, as | ||
309 | 245 | g_win32_input_stream_new() took a Windows HANDLE (i.e. a void*/gpointer), | ||
310 | 246 | not a numeric constant like STDIN_FILENO, as its first argument. | ||
311 | 247 | |||
312 | 248 | Acquire the HANDLE for stdin on Windows first, and pass it into | ||
313 | 249 | g_win32_input_stream_new(). Also use G_OS_WIN32 to check we are building | ||
314 | 250 | for Windows, as we do elsewhere for GLib-using items. | ||
315 | 251 | |||
316 | 252 | https://bugzilla.gnome.org/show_bug.cgi?id=734977 | ||
317 | 253 | |||
318 | 254 | rsvg-convert.c | 26 ++++++++++++++++++++++---- | ||
319 | 255 | 1 file changed, 22 insertions(+), 4 deletions(-) | ||
320 | 256 | |||
321 | 257 | commit 7bb5d1b8ebc57f81a5883247a5acd7f49ba48d09 | ||
322 | 258 | Author: Richard Hughes <richard@hughsie.com> | ||
323 | 259 | Date: Wed Dec 3 10:27:51 2014 +0000 | ||
324 | 260 | |||
325 | 261 | Post release version bump | ||
326 | 262 | |||
327 | 263 | configure.in | 2 +- | ||
328 | 264 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
329 | 265 | |||
330 | 1 | commit d2e159735c98be03cf20a346405fe8a5e2eeeff9 | 266 | commit d2e159735c98be03cf20a346405fe8a5e2eeeff9 |
331 | 2 | Author: Richard Hughes <richard@hughsie.com> | 267 | Author: Richard Hughes <richard@hughsie.com> |
332 | 3 | Date: Wed Dec 3 10:23:51 2014 +0000 | 268 | Date: Wed Dec 3 10:23:51 2014 +0000 |
333 | 4 | 269 | ||
334 | === modified file 'Makefile.in' | |||
335 | --- Makefile.in 2014-12-10 10:09:37 +0000 | |||
336 | +++ Makefile.in 2015-02-16 19:51:53 +0000 | |||
337 | @@ -1,4 +1,4 @@ | |||
339 | 1 | # Makefile.in generated by automake 1.14.1 from Makefile.am. | 1 | # Makefile.in generated by automake 1.13.4 from Makefile.am. |
340 | 2 | # @configure_input@ | 2 | # @configure_input@ |
341 | 3 | 3 | ||
342 | 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. |
343 | @@ -100,7 +100,7 @@ | |||
344 | 100 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | 100 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
345 | 101 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | 101 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ |
346 | 102 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \ | 102 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \ |
348 | 103 | $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in | 103 | $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac |
349 | 104 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 104 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
350 | 105 | $(ACLOCAL_M4) | 105 | $(ACLOCAL_M4) |
351 | 106 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | 106 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
352 | @@ -381,7 +381,6 @@ | |||
353 | 381 | GTK3_CFLAGS = @GTK3_CFLAGS@ | 381 | GTK3_CFLAGS = @GTK3_CFLAGS@ |
354 | 382 | GTK3_LIBS = @GTK3_LIBS@ | 382 | GTK3_LIBS = @GTK3_LIBS@ |
355 | 383 | GTKDOC_CHECK = @GTKDOC_CHECK@ | 383 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
356 | 384 | GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ | ||
357 | 385 | GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ | 384 | GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ |
358 | 386 | GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ | 385 | GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ |
359 | 387 | GTKDOC_MKPDF = @GTKDOC_MKPDF@ | 386 | GTKDOC_MKPDF = @GTKDOC_MKPDF@ |
360 | @@ -742,8 +741,8 @@ | |||
361 | 742 | $(am__aclocal_m4_deps): | 741 | $(am__aclocal_m4_deps): |
362 | 743 | 742 | ||
363 | 744 | config.h: stamp-h1 | 743 | config.h: stamp-h1 |
366 | 745 | @test -f $@ || rm -f stamp-h1 | 744 | @if test ! -f $@; then rm -f stamp-h1; else :; fi |
367 | 746 | @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 | 745 | @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi |
368 | 747 | 746 | ||
369 | 748 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | 747 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
370 | 749 | @rm -f stamp-h1 | 748 | @rm -f stamp-h1 |
371 | @@ -900,14 +899,14 @@ | |||
372 | 900 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | 899 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
373 | 901 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | 900 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
374 | 902 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | 901 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
376 | 903 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | 902 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< |
377 | 904 | 903 | ||
378 | 905 | .c.obj: | 904 | .c.obj: |
379 | 906 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | 905 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` |
380 | 907 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | 906 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
381 | 908 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | 907 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ |
382 | 909 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | 908 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
384 | 910 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | 909 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` |
385 | 911 | 910 | ||
386 | 912 | .c.lo: | 911 | .c.lo: |
387 | 913 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | 912 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
388 | @@ -1483,16 +1482,10 @@ | |||
389 | 1483 | $(am__post_remove_distdir) | 1482 | $(am__post_remove_distdir) |
390 | 1484 | 1483 | ||
391 | 1485 | dist-tarZ: distdir | 1484 | dist-tarZ: distdir |
392 | 1486 | @echo WARNING: "Support for shar distribution archives is" \ | ||
393 | 1487 | "deprecated." >&2 | ||
394 | 1488 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | ||
395 | 1489 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | 1485 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
396 | 1490 | $(am__post_remove_distdir) | 1486 | $(am__post_remove_distdir) |
397 | 1491 | 1487 | ||
398 | 1492 | dist-shar: distdir | 1488 | dist-shar: distdir |
399 | 1493 | @echo WARNING: "Support for distribution archives compressed with" \ | ||
400 | 1494 | "legacy program 'compress' is deprecated." >&2 | ||
401 | 1495 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | ||
402 | 1496 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | 1489 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
403 | 1497 | $(am__post_remove_distdir) | 1490 | $(am__post_remove_distdir) |
404 | 1498 | 1491 | ||
405 | @@ -1534,10 +1527,9 @@ | |||
406 | 1534 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | 1527 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
407 | 1535 | && am__cwd=`pwd` \ | 1528 | && am__cwd=`pwd` \ |
408 | 1536 | && $(am__cd) $(distdir)/_build \ | 1529 | && $(am__cd) $(distdir)/_build \ |
410 | 1537 | && ../configure \ | 1530 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
411 | 1538 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | 1531 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ |
412 | 1539 | $(DISTCHECK_CONFIGURE_FLAGS) \ | 1532 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
413 | 1540 | --srcdir=.. --prefix="$$dc_install_base" \ | ||
414 | 1541 | && $(MAKE) $(AM_MAKEFLAGS) \ | 1533 | && $(MAKE) $(AM_MAKEFLAGS) \ |
415 | 1542 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | 1534 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
416 | 1543 | && $(MAKE) $(AM_MAKEFLAGS) check \ | 1535 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
417 | 1544 | 1536 | ||
418 | === modified file 'NEWS' | |||
419 | --- NEWS 2014-12-10 10:09:37 +0000 | |||
420 | +++ NEWS 2015-02-16 19:51:53 +0000 | |||
421 | @@ -1,3 +1,10 @@ | |||
422 | 1 | Version 2.40.7 | ||
423 | 2 | - Bugs fixed from fuzz testing: #703102, #738050, #738169, #744270, #744299 | ||
424 | 3 | - Fixed unfiled bug from fuzz testing, where the convolution filter | ||
425 | 4 | had an integer multiplication overflow. | ||
426 | 5 | - Fix build of rsvg-convert on Windows. | ||
427 | 6 | - Fix a bunch of compiler warnings. | ||
428 | 7 | |||
429 | 1 | Version 2.40.6 | 8 | Version 2.40.6 |
430 | 2 | - MinGW build fixes | 9 | - MinGW build fixes |
431 | 3 | - Fix path data number parsing | 10 | - Fix path data number parsing |
432 | 4 | 11 | ||
433 | === modified file 'README' | |||
434 | --- README 2006-01-11 10:31:43 +0000 | |||
435 | +++ README 2015-02-16 19:51:53 +0000 | |||
436 | @@ -1,5 +1,3 @@ | |||
437 | 1 | This is librsvg - A high performance SVG rendering library associated with the Gnome Project. | 1 | This is librsvg - A high performance SVG rendering library associated with the Gnome Project. |
438 | 2 | 2 | ||
442 | 3 | If you have questions or comments about librsvg, please send email to librsvg-devel@lists.sourceforge.net. Any bugs should be reported to http://bugzilla.gnome.org/ | 3 | Please report bugs at http://bugzilla.gnome.org/enter_bug.cgi?product=librsvg |
440 | 4 | |||
441 | 5 | Also, more information on librsvg can be found at librsvg.sf.net | ||
443 | 6 | 4 | ||
444 | === modified file 'aclocal.m4' | |||
445 | --- aclocal.m4 2014-12-10 10:09:37 +0000 | |||
446 | +++ aclocal.m4 2015-02-16 19:51:53 +0000 | |||
447 | @@ -1,4 +1,4 @@ | |||
449 | 1 | # generated automatically by aclocal 1.14.1 -*- Autoconf -*- | 1 | # generated automatically by aclocal 1.13.4 -*- Autoconf -*- |
450 | 2 | 2 | ||
451 | 3 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | 3 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. |
452 | 4 | 4 | ||
453 | @@ -344,10 +344,10 @@ | |||
454 | 344 | # generated from the m4 files accompanying Automake X.Y. | 344 | # generated from the m4 files accompanying Automake X.Y. |
455 | 345 | # (This private macro should not be called outside this file.) | 345 | # (This private macro should not be called outside this file.) |
456 | 346 | AC_DEFUN([AM_AUTOMAKE_VERSION], | 346 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
458 | 347 | [am__api_version='1.14' | 347 | [am__api_version='1.13' |
459 | 348 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | 348 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
460 | 349 | dnl require some minimum version. Point them to the right macro. | 349 | dnl require some minimum version. Point them to the right macro. |
462 | 350 | m4_if([$1], [1.14.1], [], | 350 | m4_if([$1], [1.13.4], [], |
463 | 351 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | 351 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
464 | 352 | ]) | 352 | ]) |
465 | 353 | 353 | ||
466 | @@ -363,7 +363,7 @@ | |||
467 | 363 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | 363 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
468 | 364 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | 364 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
469 | 365 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 365 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
471 | 366 | [AM_AUTOMAKE_VERSION([1.14.1])dnl | 366 | [AM_AUTOMAKE_VERSION([1.13.4])dnl |
472 | 367 | m4_ifndef([AC_AUTOCONF_VERSION], | 367 | m4_ifndef([AC_AUTOCONF_VERSION], |
473 | 368 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | 368 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
474 | 369 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | 369 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
475 | @@ -730,12 +730,6 @@ | |||
476 | 730 | # This macro actually does too much. Some checks are only needed if | 730 | # This macro actually does too much. Some checks are only needed if |
477 | 731 | # your package does certain things. But this isn't really a big deal. | 731 | # your package does certain things. But this isn't really a big deal. |
478 | 732 | 732 | ||
479 | 733 | dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | ||
480 | 734 | m4_define([AC_PROG_CC], | ||
481 | 735 | m4_defn([AC_PROG_CC]) | ||
482 | 736 | [_AM_PROG_CC_C_O | ||
483 | 737 | ]) | ||
484 | 738 | |||
485 | 739 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | 733 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
486 | 740 | # AM_INIT_AUTOMAKE([OPTIONS]) | 734 | # AM_INIT_AUTOMAKE([OPTIONS]) |
487 | 741 | # ----------------------------------------------- | 735 | # ----------------------------------------------- |
488 | @@ -844,48 +838,7 @@ | |||
489 | 844 | AC_CONFIG_COMMANDS_PRE(dnl | 838 | AC_CONFIG_COMMANDS_PRE(dnl |
490 | 845 | [m4_provide_if([_AM_COMPILER_EXEEXT], | 839 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
491 | 846 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | 840 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
534 | 847 | 841 | ]) | |
493 | 848 | # POSIX will say in a future version that running "rm -f" with no argument | ||
494 | 849 | # is OK; and we want to be able to make that assumption in our Makefile | ||
495 | 850 | # recipes. So use an aggressive probe to check that the usage we want is | ||
496 | 851 | # actually supported "in the wild" to an acceptable degree. | ||
497 | 852 | # See automake bug#10828. | ||
498 | 853 | # To make any issue more visible, cause the running configure to be aborted | ||
499 | 854 | # by default if the 'rm' program in use doesn't match our expectations; the | ||
500 | 855 | # user can still override this though. | ||
501 | 856 | if rm -f && rm -fr && rm -rf; then : OK; else | ||
502 | 857 | cat >&2 <<'END' | ||
503 | 858 | Oops! | ||
504 | 859 | |||
505 | 860 | Your 'rm' program seems unable to run without file operands specified | ||
506 | 861 | on the command line, even when the '-f' option is present. This is contrary | ||
507 | 862 | to the behaviour of most rm programs out there, and not conforming with | ||
508 | 863 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | ||
509 | 864 | |||
510 | 865 | Please tell bug-automake@gnu.org about your system, including the value | ||
511 | 866 | of your $PATH and any error possibly output before this message. This | ||
512 | 867 | can help us improve future automake versions. | ||
513 | 868 | |||
514 | 869 | END | ||
515 | 870 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | ||
516 | 871 | echo 'Configuration will proceed anyway, since you have set the' >&2 | ||
517 | 872 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | ||
518 | 873 | echo >&2 | ||
519 | 874 | else | ||
520 | 875 | cat >&2 <<'END' | ||
521 | 876 | Aborting the configuration process, to ensure you take notice of the issue. | ||
522 | 877 | |||
523 | 878 | You can download and install GNU coreutils to get an 'rm' implementation | ||
524 | 879 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | ||
525 | 880 | |||
526 | 881 | If you want to complete the configuration process using your problematic | ||
527 | 882 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | ||
528 | 883 | to "yes", and re-run configure. | ||
529 | 884 | |||
530 | 885 | END | ||
531 | 886 | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | ||
532 | 887 | fi | ||
533 | 888 | fi]) | ||
535 | 889 | 842 | ||
536 | 890 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | 843 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
537 | 891 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | 844 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
538 | @@ -893,6 +846,7 @@ | |||
539 | 893 | m4_define([_AC_COMPILER_EXEEXT], | 846 | m4_define([_AC_COMPILER_EXEEXT], |
540 | 894 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | 847 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
541 | 895 | 848 | ||
542 | 849 | |||
543 | 896 | # When config.status generates a header, we must update the stamp-h file. | 850 | # When config.status generates a header, we must update the stamp-h file. |
544 | 897 | # This file resides in the same directory as the config header | 851 | # This file resides in the same directory as the config header |
545 | 898 | # that is generated. The stamp files are numbered to have different names. | 852 | # that is generated. The stamp files are numbered to have different names. |
546 | @@ -1040,6 +994,38 @@ | |||
547 | 1040 | rm -f confinc confmf | 994 | rm -f confinc confmf |
548 | 1041 | ]) | 995 | ]) |
549 | 1042 | 996 | ||
550 | 997 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||
551 | 998 | # | ||
552 | 999 | # This file is free software; the Free Software Foundation | ||
553 | 1000 | # gives unlimited permission to copy and/or distribute it, | ||
554 | 1001 | # with or without modifications, as long as this notice is preserved. | ||
555 | 1002 | |||
556 | 1003 | # AM_PROG_CC_C_O | ||
557 | 1004 | # -------------- | ||
558 | 1005 | # Like AC_PROG_CC_C_O, but changed for automake. | ||
559 | 1006 | AC_DEFUN([AM_PROG_CC_C_O], | ||
560 | 1007 | [AC_REQUIRE([AC_PROG_CC_C_O])dnl | ||
561 | 1008 | AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
562 | 1009 | AC_REQUIRE_AUX_FILE([compile])dnl | ||
563 | 1010 | # FIXME: we rely on the cache variable name because | ||
564 | 1011 | # there is no other way. | ||
565 | 1012 | set dummy $CC | ||
566 | 1013 | am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` | ||
567 | 1014 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
568 | 1015 | if test "$am_t" != yes; then | ||
569 | 1016 | # Losing compiler, so override with the script. | ||
570 | 1017 | # FIXME: It is wrong to rewrite CC. | ||
571 | 1018 | # But if we don't then we get into trouble of one sort or another. | ||
572 | 1019 | # A longer-term fix would be to have automake use am__CC in this case, | ||
573 | 1020 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
574 | 1021 | CC="$am_aux_dir/compile $CC" | ||
575 | 1022 | fi | ||
576 | 1023 | dnl Make sure AC_PROG_CC is never called again, or it will override our | ||
577 | 1024 | dnl setting of CC. | ||
578 | 1025 | m4_define([AC_PROG_CC], | ||
579 | 1026 | [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) | ||
580 | 1027 | ]) | ||
581 | 1028 | |||
582 | 1043 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | 1029 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
583 | 1044 | 1030 | ||
584 | 1045 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | 1031 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. |
585 | @@ -1110,70 +1096,6 @@ | |||
586 | 1110 | AC_DEFUN([_AM_IF_OPTION], | 1096 | AC_DEFUN([_AM_IF_OPTION], |
587 | 1111 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | 1097 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
588 | 1112 | 1098 | ||
589 | 1113 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | ||
590 | 1114 | # | ||
591 | 1115 | # This file is free software; the Free Software Foundation | ||
592 | 1116 | # gives unlimited permission to copy and/or distribute it, | ||
593 | 1117 | # with or without modifications, as long as this notice is preserved. | ||
594 | 1118 | |||
595 | 1119 | # _AM_PROG_CC_C_O | ||
596 | 1120 | # --------------- | ||
597 | 1121 | # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | ||
598 | 1122 | # to automatically call this. | ||
599 | 1123 | AC_DEFUN([_AM_PROG_CC_C_O], | ||
600 | 1124 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | ||
601 | 1125 | AC_REQUIRE_AUX_FILE([compile])dnl | ||
602 | 1126 | AC_LANG_PUSH([C])dnl | ||
603 | 1127 | AC_CACHE_CHECK( | ||
604 | 1128 | [whether $CC understands -c and -o together], | ||
605 | 1129 | [am_cv_prog_cc_c_o], | ||
606 | 1130 | [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | ||
607 | 1131 | # Make sure it works both with $CC and with simple cc. | ||
608 | 1132 | # Following AC_PROG_CC_C_O, we do the test twice because some | ||
609 | 1133 | # compilers refuse to overwrite an existing .o file with -o, | ||
610 | 1134 | # though they will create one. | ||
611 | 1135 | am_cv_prog_cc_c_o=yes | ||
612 | 1136 | for am_i in 1 2; do | ||
613 | 1137 | if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | ||
614 | 1138 | && test -f conftest2.$ac_objext; then | ||
615 | 1139 | : OK | ||
616 | 1140 | else | ||
617 | 1141 | am_cv_prog_cc_c_o=no | ||
618 | 1142 | break | ||
619 | 1143 | fi | ||
620 | 1144 | done | ||
621 | 1145 | rm -f core conftest* | ||
622 | 1146 | unset am_i]) | ||
623 | 1147 | if test "$am_cv_prog_cc_c_o" != yes; then | ||
624 | 1148 | # Losing compiler, so override with the script. | ||
625 | 1149 | # FIXME: It is wrong to rewrite CC. | ||
626 | 1150 | # But if we don't then we get into trouble of one sort or another. | ||
627 | 1151 | # A longer-term fix would be to have automake use am__CC in this case, | ||
628 | 1152 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
629 | 1153 | CC="$am_aux_dir/compile $CC" | ||
630 | 1154 | fi | ||
631 | 1155 | AC_LANG_POP([C])]) | ||
632 | 1156 | |||
633 | 1157 | # For backward compatibility. | ||
634 | 1158 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | ||
635 | 1159 | |||
636 | 1160 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | ||
637 | 1161 | # | ||
638 | 1162 | # This file is free software; the Free Software Foundation | ||
639 | 1163 | # gives unlimited permission to copy and/or distribute it, | ||
640 | 1164 | # with or without modifications, as long as this notice is preserved. | ||
641 | 1165 | |||
642 | 1166 | # AM_RUN_LOG(COMMAND) | ||
643 | 1167 | # ------------------- | ||
644 | 1168 | # Run COMMAND, save the exit status in ac_status, and log it. | ||
645 | 1169 | # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | ||
646 | 1170 | AC_DEFUN([AM_RUN_LOG], | ||
647 | 1171 | [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | ||
648 | 1172 | ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | ||
649 | 1173 | ac_status=$? | ||
650 | 1174 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
651 | 1175 | (exit $ac_status); }]) | ||
652 | 1176 | |||
653 | 1177 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | 1099 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
654 | 1178 | 1100 | ||
655 | 1179 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | 1101 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. |
656 | 1180 | 1102 | ||
657 | === modified file 'config.guess' | |||
658 | --- config.guess 2014-12-10 10:09:37 +0000 | |||
659 | +++ config.guess 2015-02-16 19:51:53 +0000 | |||
660 | @@ -1,8 +1,8 @@ | |||
661 | 1 | #! /bin/sh | 1 | #! /bin/sh |
662 | 2 | # Attempt to guess a canonical system name. | 2 | # Attempt to guess a canonical system name. |
664 | 3 | # Copyright 1992-2014 Free Software Foundation, Inc. | 3 | # Copyright 1992-2013 Free Software Foundation, Inc. |
665 | 4 | 4 | ||
667 | 5 | timestamp='2014-03-23' | 5 | timestamp='2013-06-10' |
668 | 6 | 6 | ||
669 | 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
670 | 8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by |
671 | @@ -50,7 +50,7 @@ | |||
672 | 50 | GNU config.guess ($timestamp) | 50 | GNU config.guess ($timestamp) |
673 | 51 | 51 | ||
674 | 52 | Originally written by Per Bothner. | 52 | Originally written by Per Bothner. |
676 | 53 | Copyright 1992-2014 Free Software Foundation, Inc. | 53 | Copyright 1992-2013 Free Software Foundation, Inc. |
677 | 54 | 54 | ||
678 | 55 | This is free software; see the source for copying conditions. There is NO | 55 | This is free software; see the source for copying conditions. There is NO |
679 | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 56 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
680 | @@ -149,10 +149,20 @@ | |||
681 | 149 | LIBC=gnu | 149 | LIBC=gnu |
682 | 150 | #endif | 150 | #endif |
683 | 151 | EOF | 151 | EOF |
685 | 152 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | 152 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` |
686 | 153 | ;; | 153 | ;; |
687 | 154 | esac | 154 | esac |
688 | 155 | 155 | ||
689 | 156 | case "${UNAME_MACHINE}" in | ||
690 | 157 | i?86) | ||
691 | 158 | test -z "$VENDOR" && VENDOR=pc | ||
692 | 159 | ;; | ||
693 | 160 | *) | ||
694 | 161 | test -z "$VENDOR" && VENDOR=unknown | ||
695 | 162 | ;; | ||
696 | 163 | esac | ||
697 | 164 | test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse | ||
698 | 165 | |||
699 | 156 | # Note: order is significant - the case branches are not exclusive. | 166 | # Note: order is significant - the case branches are not exclusive. |
700 | 157 | 167 | ||
701 | 158 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 168 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
702 | @@ -217,23 +227,23 @@ | |||
703 | 217 | exit ;; | 227 | exit ;; |
704 | 218 | *:Bitrig:*:*) | 228 | *:Bitrig:*:*) |
705 | 219 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | 229 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
707 | 220 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | 230 | echo ${UNAME_MACHINE_ARCH}-${VENDOR}-bitrig${UNAME_RELEASE} |
708 | 221 | exit ;; | 231 | exit ;; |
709 | 222 | *:OpenBSD:*:*) | 232 | *:OpenBSD:*:*) |
710 | 223 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | 233 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
712 | 224 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | 234 | echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE} |
713 | 225 | exit ;; | 235 | exit ;; |
714 | 226 | *:ekkoBSD:*:*) | 236 | *:ekkoBSD:*:*) |
716 | 227 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | 237 | echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE} |
717 | 228 | exit ;; | 238 | exit ;; |
718 | 229 | *:SolidBSD:*:*) | 239 | *:SolidBSD:*:*) |
720 | 230 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | 240 | echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE} |
721 | 231 | exit ;; | 241 | exit ;; |
722 | 232 | macppc:MirBSD:*:*) | 242 | macppc:MirBSD:*:*) |
724 | 233 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | 243 | echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE} |
725 | 234 | exit ;; | 244 | exit ;; |
726 | 235 | *:MirBSD:*:*) | 245 | *:MirBSD:*:*) |
728 | 236 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | 246 | echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE} |
729 | 237 | exit ;; | 247 | exit ;; |
730 | 238 | alpha:OSF1:*:*) | 248 | alpha:OSF1:*:*) |
731 | 239 | case $UNAME_RELEASE in | 249 | case $UNAME_RELEASE in |
732 | @@ -301,13 +311,13 @@ | |||
733 | 301 | echo alpha-dec-winnt3.5 | 311 | echo alpha-dec-winnt3.5 |
734 | 302 | exit ;; | 312 | exit ;; |
735 | 303 | Amiga*:UNIX_System_V:4.0:*) | 313 | Amiga*:UNIX_System_V:4.0:*) |
737 | 304 | echo m68k-unknown-sysv4 | 314 | echo m68k-${VENDOR}-sysv4 |
738 | 305 | exit ;; | 315 | exit ;; |
739 | 306 | *:[Aa]miga[Oo][Ss]:*:*) | 316 | *:[Aa]miga[Oo][Ss]:*:*) |
741 | 307 | echo ${UNAME_MACHINE}-unknown-amigaos | 317 | echo ${UNAME_MACHINE}-${VENDOR}-amigaos |
742 | 308 | exit ;; | 318 | exit ;; |
743 | 309 | *:[Mm]orph[Oo][Ss]:*:*) | 319 | *:[Mm]orph[Oo][Ss]:*:*) |
745 | 310 | echo ${UNAME_MACHINE}-unknown-morphos | 320 | echo ${UNAME_MACHINE}-${VENDOR}-morphos |
746 | 311 | exit ;; | 321 | exit ;; |
747 | 312 | *:OS/390:*:*) | 322 | *:OS/390:*:*) |
748 | 313 | echo i370-ibm-openedition | 323 | echo i370-ibm-openedition |
749 | @@ -322,7 +332,7 @@ | |||
750 | 322 | echo arm-acorn-riscix${UNAME_RELEASE} | 332 | echo arm-acorn-riscix${UNAME_RELEASE} |
751 | 323 | exit ;; | 333 | exit ;; |
752 | 324 | arm*:riscos:*:*|arm*:RISCOS:*:*) | 334 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
754 | 325 | echo arm-unknown-riscos | 335 | echo arm-${VENDOR}-riscos |
755 | 326 | exit ;; | 336 | exit ;; |
756 | 327 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | 337 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
757 | 328 | echo hppa1.1-hitachi-hiuxmpp | 338 | echo hppa1.1-hitachi-hiuxmpp |
758 | @@ -430,7 +440,7 @@ | |||
759 | 430 | echo m68k-hades-mint${UNAME_RELEASE} | 440 | echo m68k-hades-mint${UNAME_RELEASE} |
760 | 431 | exit ;; | 441 | exit ;; |
761 | 432 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | 442 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
763 | 433 | echo m68k-unknown-mint${UNAME_RELEASE} | 443 | echo m68k-${VENDOR}-mint${UNAME_RELEASE} |
764 | 434 | exit ;; | 444 | exit ;; |
765 | 435 | m68k:machten:*:*) | 445 | m68k:machten:*:*) |
766 | 436 | echo m68k-apple-machten${UNAME_RELEASE} | 446 | echo m68k-apple-machten${UNAME_RELEASE} |
767 | @@ -741,9 +751,9 @@ | |||
768 | 741 | exit ;; | 751 | exit ;; |
769 | 742 | i*86:OSF1:*:*) | 752 | i*86:OSF1:*:*) |
770 | 743 | if [ -x /usr/sbin/sysversion ] ; then | 753 | if [ -x /usr/sbin/sysversion ] ; then |
772 | 744 | echo ${UNAME_MACHINE}-unknown-osf1mk | 754 | echo ${UNAME_MACHINE}-${VENDOR}-osf1mk |
773 | 745 | else | 755 | else |
775 | 746 | echo ${UNAME_MACHINE}-unknown-osf1 | 756 | echo ${UNAME_MACHINE}-${VENDOR}-osf1 |
776 | 747 | fi | 757 | fi |
777 | 748 | exit ;; | 758 | exit ;; |
778 | 749 | parisc*:Lites*:*:*) | 759 | parisc*:Lites*:*:*) |
779 | @@ -803,18 +813,18 @@ | |||
780 | 803 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | 813 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
781 | 804 | exit ;; | 814 | exit ;; |
782 | 805 | sparc*:BSD/OS:*:*) | 815 | sparc*:BSD/OS:*:*) |
784 | 806 | echo sparc-unknown-bsdi${UNAME_RELEASE} | 816 | echo sparc-${VENDOR}-bsdi${UNAME_RELEASE} |
785 | 807 | exit ;; | 817 | exit ;; |
786 | 808 | *:BSD/OS:*:*) | 818 | *:BSD/OS:*:*) |
788 | 809 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | 819 | echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE} |
789 | 810 | exit ;; | 820 | exit ;; |
790 | 811 | *:FreeBSD:*:*) | 821 | *:FreeBSD:*:*) |
791 | 812 | UNAME_PROCESSOR=`/usr/bin/uname -p` | 822 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
792 | 813 | case ${UNAME_PROCESSOR} in | 823 | case ${UNAME_PROCESSOR} in |
793 | 814 | amd64) | 824 | amd64) |
795 | 815 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | 825 | echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
796 | 816 | *) | 826 | *) |
798 | 817 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | 827 | echo ${UNAME_PROCESSOR}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
799 | 818 | esac | 828 | esac |
800 | 819 | exit ;; | 829 | exit ;; |
801 | 820 | i*:CYGWIN*:*) | 830 | i*:CYGWIN*:*) |
802 | @@ -826,7 +836,7 @@ | |||
803 | 826 | *:MINGW*:*) | 836 | *:MINGW*:*) |
804 | 827 | echo ${UNAME_MACHINE}-pc-mingw32 | 837 | echo ${UNAME_MACHINE}-pc-mingw32 |
805 | 828 | exit ;; | 838 | exit ;; |
807 | 829 | *:MSYS*:*) | 839 | i*:MSYS*:*) |
808 | 830 | echo ${UNAME_MACHINE}-pc-msys | 840 | echo ${UNAME_MACHINE}-pc-msys |
809 | 831 | exit ;; | 841 | exit ;; |
810 | 832 | i*:windows32*:*) | 842 | i*:windows32*:*) |
811 | @@ -842,10 +852,10 @@ | |||
812 | 842 | echo i586-pc-interix${UNAME_RELEASE} | 852 | echo i586-pc-interix${UNAME_RELEASE} |
813 | 843 | exit ;; | 853 | exit ;; |
814 | 844 | authenticamd | genuineintel | EM64T) | 854 | authenticamd | genuineintel | EM64T) |
816 | 845 | echo x86_64-unknown-interix${UNAME_RELEASE} | 855 | echo x86_64-${VENDOR}-interix${UNAME_RELEASE} |
817 | 846 | exit ;; | 856 | exit ;; |
818 | 847 | IA64) | 857 | IA64) |
820 | 848 | echo ia64-unknown-interix${UNAME_RELEASE} | 858 | echo ia64-${VENDOR}-interix${UNAME_RELEASE} |
821 | 849 | exit ;; | 859 | exit ;; |
822 | 850 | esac ;; | 860 | esac ;; |
823 | 851 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | 861 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
824 | @@ -864,31 +874,31 @@ | |||
825 | 864 | echo ${UNAME_MACHINE}-pc-uwin | 874 | echo ${UNAME_MACHINE}-pc-uwin |
826 | 865 | exit ;; | 875 | exit ;; |
827 | 866 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | 876 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
829 | 867 | echo x86_64-unknown-cygwin | 877 | echo x86_64-${VENDOR}-cygwin |
830 | 868 | exit ;; | 878 | exit ;; |
831 | 869 | p*:CYGWIN*:*) | 879 | p*:CYGWIN*:*) |
833 | 870 | echo powerpcle-unknown-cygwin | 880 | echo powerpcle-${VENDOR}-cygwin |
834 | 871 | exit ;; | 881 | exit ;; |
835 | 872 | prep*:SunOS:5.*:*) | 882 | prep*:SunOS:5.*:*) |
837 | 873 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 883 | echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
838 | 874 | exit ;; | 884 | exit ;; |
839 | 875 | *:GNU:*:*) | 885 | *:GNU:*:*) |
840 | 876 | # the GNU system | 886 | # the GNU system |
842 | 877 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | 887 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
843 | 878 | exit ;; | 888 | exit ;; |
844 | 879 | *:GNU/*:*:*) | 889 | *:GNU/*:*:*) |
845 | 880 | # other systems with GNU libc and userland | 890 | # other systems with GNU libc and userland |
847 | 881 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | 891 | echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
848 | 882 | exit ;; | 892 | exit ;; |
849 | 883 | i*86:Minix:*:*) | 893 | i*86:Minix:*:*) |
850 | 884 | echo ${UNAME_MACHINE}-pc-minix | 894 | echo ${UNAME_MACHINE}-pc-minix |
851 | 885 | exit ;; | 895 | exit ;; |
852 | 886 | aarch64:Linux:*:*) | 896 | aarch64:Linux:*:*) |
854 | 887 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 897 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
855 | 888 | exit ;; | 898 | exit ;; |
856 | 889 | aarch64_be:Linux:*:*) | 899 | aarch64_be:Linux:*:*) |
857 | 890 | UNAME_MACHINE=aarch64_be | 900 | UNAME_MACHINE=aarch64_be |
859 | 891 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 901 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
860 | 892 | exit ;; | 902 | exit ;; |
861 | 893 | alpha:Linux:*:*) | 903 | alpha:Linux:*:*) |
862 | 894 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 904 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
863 | @@ -902,29 +912,29 @@ | |||
864 | 902 | esac | 912 | esac |
865 | 903 | objdump --private-headers /bin/sh | grep -q ld.so.1 | 913 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
866 | 904 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | 914 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
868 | 905 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 915 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
869 | 906 | exit ;; | 916 | exit ;; |
870 | 907 | arc:Linux:*:* | arceb:Linux:*:*) | 917 | arc:Linux:*:* | arceb:Linux:*:*) |
872 | 908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 918 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
873 | 909 | exit ;; | 919 | exit ;; |
874 | 910 | arm*:Linux:*:*) | 920 | arm*:Linux:*:*) |
875 | 911 | eval $set_cc_for_build | 921 | eval $set_cc_for_build |
876 | 912 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 922 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
877 | 913 | | grep -q __ARM_EABI__ | 923 | | grep -q __ARM_EABI__ |
878 | 914 | then | 924 | then |
880 | 915 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 925 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
881 | 916 | else | 926 | else |
882 | 917 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | 927 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
883 | 918 | | grep -q __ARM_PCS_VFP | 928 | | grep -q __ARM_PCS_VFP |
884 | 919 | then | 929 | then |
886 | 920 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | 930 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi |
887 | 921 | else | 931 | else |
889 | 922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | 932 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf |
890 | 923 | fi | 933 | fi |
891 | 924 | fi | 934 | fi |
892 | 925 | exit ;; | 935 | exit ;; |
893 | 926 | avr32*:Linux:*:*) | 936 | avr32*:Linux:*:*) |
895 | 927 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 937 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
896 | 928 | exit ;; | 938 | exit ;; |
897 | 929 | cris:Linux:*:*) | 939 | cris:Linux:*:*) |
898 | 930 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | 940 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
899 | @@ -933,22 +943,22 @@ | |||
900 | 933 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | 943 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
901 | 934 | exit ;; | 944 | exit ;; |
902 | 935 | frv:Linux:*:*) | 945 | frv:Linux:*:*) |
904 | 936 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 946 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
905 | 937 | exit ;; | 947 | exit ;; |
906 | 938 | hexagon:Linux:*:*) | 948 | hexagon:Linux:*:*) |
908 | 939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 949 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
909 | 940 | exit ;; | 950 | exit ;; |
910 | 941 | i*86:Linux:*:*) | 951 | i*86:Linux:*:*) |
911 | 942 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | 952 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
912 | 943 | exit ;; | 953 | exit ;; |
913 | 944 | ia64:Linux:*:*) | 954 | ia64:Linux:*:*) |
915 | 945 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 955 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
916 | 946 | exit ;; | 956 | exit ;; |
917 | 947 | m32r*:Linux:*:*) | 957 | m32r*:Linux:*:*) |
919 | 948 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 958 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
920 | 949 | exit ;; | 959 | exit ;; |
921 | 950 | m68*:Linux:*:*) | 960 | m68*:Linux:*:*) |
923 | 951 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 961 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
924 | 952 | exit ;; | 962 | exit ;; |
925 | 953 | mips:Linux:*:* | mips64:Linux:*:*) | 963 | mips:Linux:*:* | mips64:Linux:*:*) |
926 | 954 | eval $set_cc_for_build | 964 | eval $set_cc_for_build |
927 | @@ -967,63 +977,63 @@ | |||
928 | 967 | #endif | 977 | #endif |
929 | 968 | EOF | 978 | EOF |
930 | 969 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | 979 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
932 | 970 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | 980 | test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; } |
933 | 971 | ;; | 981 | ;; |
936 | 972 | openrisc*:Linux:*:*) | 982 | or1k:Linux:*:*) |
937 | 973 | echo or1k-unknown-linux-${LIBC} | 983 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
938 | 974 | exit ;; | 984 | exit ;; |
941 | 975 | or32:Linux:*:* | or1k*:Linux:*:*) | 985 | or32:Linux:*:*) |
942 | 976 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 986 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
943 | 977 | exit ;; | 987 | exit ;; |
944 | 978 | padre:Linux:*:*) | 988 | padre:Linux:*:*) |
946 | 979 | echo sparc-unknown-linux-${LIBC} | 989 | echo sparc-${VENDOR}-linux-${LIBC} |
947 | 980 | exit ;; | 990 | exit ;; |
948 | 981 | parisc64:Linux:*:* | hppa64:Linux:*:*) | 991 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
950 | 982 | echo hppa64-unknown-linux-${LIBC} | 992 | echo hppa64-${VENDOR}-linux-${LIBC} |
951 | 983 | exit ;; | 993 | exit ;; |
952 | 984 | parisc:Linux:*:* | hppa:Linux:*:*) | 994 | parisc:Linux:*:* | hppa:Linux:*:*) |
953 | 985 | # Look for CPU level | 995 | # Look for CPU level |
954 | 986 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 996 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
958 | 987 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | 997 | PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;; |
959 | 988 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | 998 | PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;; |
960 | 989 | *) echo hppa-unknown-linux-${LIBC} ;; | 999 | *) echo hppa-${VENDOR}-linux-${LIBC} ;; |
961 | 990 | esac | 1000 | esac |
962 | 991 | exit ;; | 1001 | exit ;; |
963 | 992 | ppc64:Linux:*:*) | 1002 | ppc64:Linux:*:*) |
965 | 993 | echo powerpc64-unknown-linux-${LIBC} | 1003 | echo powerpc64-${VENDOR}-linux-${LIBC} |
966 | 994 | exit ;; | 1004 | exit ;; |
967 | 995 | ppc:Linux:*:*) | 1005 | ppc:Linux:*:*) |
969 | 996 | echo powerpc-unknown-linux-${LIBC} | 1006 | echo powerpc-${VENDOR}-linux-${LIBC} |
970 | 997 | exit ;; | 1007 | exit ;; |
971 | 998 | ppc64le:Linux:*:*) | 1008 | ppc64le:Linux:*:*) |
973 | 999 | echo powerpc64le-unknown-linux-${LIBC} | 1009 | echo powerpc64le-${VENDOR}-linux-${LIBC} |
974 | 1000 | exit ;; | 1010 | exit ;; |
975 | 1001 | ppcle:Linux:*:*) | 1011 | ppcle:Linux:*:*) |
977 | 1002 | echo powerpcle-unknown-linux-${LIBC} | 1012 | echo powerpcle-${VENDOR}-linux-${LIBC} |
978 | 1003 | exit ;; | 1013 | exit ;; |
979 | 1004 | s390:Linux:*:* | s390x:Linux:*:*) | 1014 | s390:Linux:*:* | s390x:Linux:*:*) |
980 | 1005 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | 1015 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
981 | 1006 | exit ;; | 1016 | exit ;; |
982 | 1007 | sh64*:Linux:*:*) | 1017 | sh64*:Linux:*:*) |
984 | 1008 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 1018 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
985 | 1009 | exit ;; | 1019 | exit ;; |
986 | 1010 | sh*:Linux:*:*) | 1020 | sh*:Linux:*:*) |
988 | 1011 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 1021 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
989 | 1012 | exit ;; | 1022 | exit ;; |
990 | 1013 | sparc:Linux:*:* | sparc64:Linux:*:*) | 1023 | sparc:Linux:*:* | sparc64:Linux:*:*) |
992 | 1014 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 1024 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
993 | 1015 | exit ;; | 1025 | exit ;; |
994 | 1016 | tile*:Linux:*:*) | 1026 | tile*:Linux:*:*) |
996 | 1017 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 1027 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
997 | 1018 | exit ;; | 1028 | exit ;; |
998 | 1019 | vax:Linux:*:*) | 1029 | vax:Linux:*:*) |
999 | 1020 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | 1030 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
1000 | 1021 | exit ;; | 1031 | exit ;; |
1001 | 1022 | x86_64:Linux:*:*) | 1032 | x86_64:Linux:*:*) |
1003 | 1023 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 1033 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
1004 | 1024 | exit ;; | 1034 | exit ;; |
1005 | 1025 | xtensa*:Linux:*:*) | 1035 | xtensa*:Linux:*:*) |
1007 | 1026 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | 1036 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} |
1008 | 1027 | exit ;; | 1037 | exit ;; |
1009 | 1028 | i*86:DYNIX/ptx:4*:*) | 1038 | i*86:DYNIX/ptx:4*:*) |
1010 | 1029 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1039 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1011 | @@ -1045,16 +1055,16 @@ | |||
1012 | 1045 | echo ${UNAME_MACHINE}-pc-os2-emx | 1055 | echo ${UNAME_MACHINE}-pc-os2-emx |
1013 | 1046 | exit ;; | 1056 | exit ;; |
1014 | 1047 | i*86:XTS-300:*:STOP) | 1057 | i*86:XTS-300:*:STOP) |
1016 | 1048 | echo ${UNAME_MACHINE}-unknown-stop | 1058 | echo ${UNAME_MACHINE}-${VENDOR}-stop |
1017 | 1049 | exit ;; | 1059 | exit ;; |
1018 | 1050 | i*86:atheos:*:*) | 1060 | i*86:atheos:*:*) |
1020 | 1051 | echo ${UNAME_MACHINE}-unknown-atheos | 1061 | echo ${UNAME_MACHINE}-${VENDOR}-atheos |
1021 | 1052 | exit ;; | 1062 | exit ;; |
1022 | 1053 | i*86:syllable:*:*) | 1063 | i*86:syllable:*:*) |
1023 | 1054 | echo ${UNAME_MACHINE}-pc-syllable | 1064 | echo ${UNAME_MACHINE}-pc-syllable |
1024 | 1055 | exit ;; | 1065 | exit ;; |
1025 | 1056 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | 1066 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1027 | 1057 | echo i386-unknown-lynxos${UNAME_RELEASE} | 1067 | echo i386-${VENODR}-lynxos${UNAME_RELEASE} |
1028 | 1058 | exit ;; | 1068 | exit ;; |
1029 | 1059 | i*86:*DOS:*:*) | 1069 | i*86:*DOS:*:*) |
1030 | 1060 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | 1070 | echo ${UNAME_MACHINE}-pc-msdosdjgpp |
1031 | @@ -1074,7 +1084,7 @@ | |||
1032 | 1074 | *Pentium) UNAME_MACHINE=i586 ;; | 1084 | *Pentium) UNAME_MACHINE=i586 ;; |
1033 | 1075 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | 1085 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1034 | 1076 | esac | 1086 | esac |
1036 | 1077 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | 1087 | echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} |
1037 | 1078 | exit ;; | 1088 | exit ;; |
1038 | 1079 | i*86:*:3.2:*) | 1089 | i*86:*:3.2:*) |
1039 | 1080 | if test -f /usr/options/cb.name; then | 1090 | if test -f /usr/options/cb.name; then |
1040 | @@ -1113,7 +1123,7 @@ | |||
1041 | 1113 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | 1123 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1042 | 1114 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | 1124 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
1043 | 1115 | else # Add other i860-SVR4 vendors below as they are discovered. | 1125 | else # Add other i860-SVR4 vendors below as they are discovered. |
1045 | 1116 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | 1126 | echo i860-${VENODR}-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
1046 | 1117 | fi | 1127 | fi |
1047 | 1118 | exit ;; | 1128 | exit ;; |
1048 | 1119 | mini*:CTIX:SYS*5:*) | 1129 | mini*:CTIX:SYS*5:*) |
1049 | @@ -1150,19 +1160,19 @@ | |||
1050 | 1150 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | 1160 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1051 | 1151 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | 1161 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1052 | 1152 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | 1162 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1054 | 1153 | echo m68k-unknown-lynxos${UNAME_RELEASE} | 1163 | echo m68k-${VENDOR}-lynxos${UNAME_RELEASE} |
1055 | 1154 | exit ;; | 1164 | exit ;; |
1056 | 1155 | mc68030:UNIX_System_V:4.*:*) | 1165 | mc68030:UNIX_System_V:4.*:*) |
1057 | 1156 | echo m68k-atari-sysv4 | 1166 | echo m68k-atari-sysv4 |
1058 | 1157 | exit ;; | 1167 | exit ;; |
1059 | 1158 | TSUNAMI:LynxOS:2.*:*) | 1168 | TSUNAMI:LynxOS:2.*:*) |
1061 | 1159 | echo sparc-unknown-lynxos${UNAME_RELEASE} | 1169 | echo sparc-${VENDOR}-lynxos${UNAME_RELEASE} |
1062 | 1160 | exit ;; | 1170 | exit ;; |
1063 | 1161 | rs6000:LynxOS:2.*:*) | 1171 | rs6000:LynxOS:2.*:*) |
1065 | 1162 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | 1172 | echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE} |
1066 | 1163 | exit ;; | 1173 | exit ;; |
1067 | 1164 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | 1174 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1069 | 1165 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | 1175 | echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE} |
1070 | 1166 | exit ;; | 1176 | exit ;; |
1071 | 1167 | SM[BE]S:UNIX_SV:*:*) | 1177 | SM[BE]S:UNIX_SV:*:*) |
1072 | 1168 | echo mips-dde-sysv${UNAME_RELEASE} | 1178 | echo mips-dde-sysv${UNAME_RELEASE} |
1073 | @@ -1212,7 +1222,7 @@ | |||
1074 | 1212 | if [ -d /usr/nec ]; then | 1222 | if [ -d /usr/nec ]; then |
1075 | 1213 | echo mips-nec-sysv${UNAME_RELEASE} | 1223 | echo mips-nec-sysv${UNAME_RELEASE} |
1076 | 1214 | else | 1224 | else |
1078 | 1215 | echo mips-unknown-sysv${UNAME_RELEASE} | 1225 | echo mips-${VENDOR}-sysv${UNAME_RELEASE} |
1079 | 1216 | fi | 1226 | fi |
1080 | 1217 | exit ;; | 1227 | exit ;; |
1081 | 1218 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | 1228 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1082 | @@ -1228,7 +1238,7 @@ | |||
1083 | 1228 | echo i586-pc-haiku | 1238 | echo i586-pc-haiku |
1084 | 1229 | exit ;; | 1239 | exit ;; |
1085 | 1230 | x86_64:Haiku:*:*) | 1240 | x86_64:Haiku:*:*) |
1087 | 1231 | echo x86_64-unknown-haiku | 1241 | echo x86_64-${VENDOR}-haiku |
1088 | 1232 | exit ;; | 1242 | exit ;; |
1089 | 1233 | SX-4:SUPER-UX:*:*) | 1243 | SX-4:SUPER-UX:*:*) |
1090 | 1234 | echo sx4-nec-superux${UNAME_RELEASE} | 1244 | echo sx4-nec-superux${UNAME_RELEASE} |
1091 | @@ -1260,26 +1270,16 @@ | |||
1092 | 1260 | if test "$UNAME_PROCESSOR" = unknown ; then | 1270 | if test "$UNAME_PROCESSOR" = unknown ; then |
1093 | 1261 | UNAME_PROCESSOR=powerpc | 1271 | UNAME_PROCESSOR=powerpc |
1094 | 1262 | fi | 1272 | fi |
1106 | 1263 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | 1273 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
1107 | 1264 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | 1274 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
1108 | 1265 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | 1275 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
1109 | 1266 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1276 | grep IS_64BIT_ARCH >/dev/null |
1110 | 1267 | grep IS_64BIT_ARCH >/dev/null | 1277 | then |
1111 | 1268 | then | 1278 | case $UNAME_PROCESSOR in |
1112 | 1269 | case $UNAME_PROCESSOR in | 1279 | i386) UNAME_PROCESSOR=x86_64 ;; |
1113 | 1270 | i386) UNAME_PROCESSOR=x86_64 ;; | 1280 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1114 | 1271 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | 1281 | esac |
1104 | 1272 | esac | ||
1105 | 1273 | fi | ||
1115 | 1274 | fi | 1282 | fi |
1116 | 1275 | elif test "$UNAME_PROCESSOR" = i386 ; then | ||
1117 | 1276 | # Avoid executing cc on OS X 10.9, as it ships with a stub | ||
1118 | 1277 | # that puts up a graphical alert prompting to install | ||
1119 | 1278 | # developer tools. Any system running Mac OS X 10.7 or | ||
1120 | 1279 | # later (Darwin 11 and later) is required to have a 64-bit | ||
1121 | 1280 | # processor. This is not true of the ARM version of Darwin | ||
1122 | 1281 | # that Apple uses in portable devices. | ||
1123 | 1282 | UNAME_PROCESSOR=x86_64 | ||
1124 | 1283 | fi | 1283 | fi |
1125 | 1284 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1284 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1126 | 1285 | exit ;; | 1285 | exit ;; |
1127 | @@ -1321,13 +1321,13 @@ | |||
1128 | 1321 | else | 1321 | else |
1129 | 1322 | UNAME_MACHINE="$cputype" | 1322 | UNAME_MACHINE="$cputype" |
1130 | 1323 | fi | 1323 | fi |
1132 | 1324 | echo ${UNAME_MACHINE}-unknown-plan9 | 1324 | echo ${UNAME_MACHINE}-${VENDOR}-plan9 |
1133 | 1325 | exit ;; | 1325 | exit ;; |
1134 | 1326 | *:TOPS-10:*:*) | 1326 | *:TOPS-10:*:*) |
1136 | 1327 | echo pdp10-unknown-tops10 | 1327 | echo pdp10-${VENDOR}-tops10 |
1137 | 1328 | exit ;; | 1328 | exit ;; |
1138 | 1329 | *:TENEX:*:*) | 1329 | *:TENEX:*:*) |
1140 | 1330 | echo pdp10-unknown-tenex | 1330 | echo pdp10-${VENDOR}-tenex |
1141 | 1331 | exit ;; | 1331 | exit ;; |
1142 | 1332 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | 1332 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) |
1143 | 1333 | echo pdp10-dec-tops20 | 1333 | echo pdp10-dec-tops20 |
1144 | @@ -1336,16 +1336,16 @@ | |||
1145 | 1336 | echo pdp10-xkl-tops20 | 1336 | echo pdp10-xkl-tops20 |
1146 | 1337 | exit ;; | 1337 | exit ;; |
1147 | 1338 | *:TOPS-20:*:*) | 1338 | *:TOPS-20:*:*) |
1149 | 1339 | echo pdp10-unknown-tops20 | 1339 | echo pdp10-${VENDOR}-tops20 |
1150 | 1340 | exit ;; | 1340 | exit ;; |
1151 | 1341 | *:ITS:*:*) | 1341 | *:ITS:*:*) |
1153 | 1342 | echo pdp10-unknown-its | 1342 | echo pdp10-${VENDOR}-its |
1154 | 1343 | exit ;; | 1343 | exit ;; |
1155 | 1344 | SEI:*:*:SEIUX) | 1344 | SEI:*:*:SEIUX) |
1156 | 1345 | echo mips-sei-seiux${UNAME_RELEASE} | 1345 | echo mips-sei-seiux${UNAME_RELEASE} |
1157 | 1346 | exit ;; | 1346 | exit ;; |
1158 | 1347 | *:DragonFly:*:*) | 1347 | *:DragonFly:*:*) |
1160 | 1348 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | 1348 | echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1161 | 1349 | exit ;; | 1349 | exit ;; |
1162 | 1350 | *:*VMS:*:*) | 1350 | *:*VMS:*:*) |
1163 | 1351 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | 1351 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1164 | @@ -1367,10 +1367,158 @@ | |||
1165 | 1367 | echo ${UNAME_MACHINE}-pc-aros | 1367 | echo ${UNAME_MACHINE}-pc-aros |
1166 | 1368 | exit ;; | 1368 | exit ;; |
1167 | 1369 | x86_64:VMkernel:*:*) | 1369 | x86_64:VMkernel:*:*) |
1169 | 1370 | echo ${UNAME_MACHINE}-unknown-esx | 1370 | echo ${UNAME_MACHINE}-${VENDOR}-esx |
1170 | 1371 | exit ;; | 1371 | exit ;; |
1171 | 1372 | esac | 1372 | esac |
1172 | 1373 | 1373 | ||
1173 | 1374 | eval $set_cc_for_build | ||
1174 | 1375 | cat >$dummy.c <<EOF | ||
1175 | 1376 | #ifdef _SEQUENT_ | ||
1176 | 1377 | # include <sys/types.h> | ||
1177 | 1378 | # include <sys/utsname.h> | ||
1178 | 1379 | #endif | ||
1179 | 1380 | main () | ||
1180 | 1381 | { | ||
1181 | 1382 | #if defined (sony) | ||
1182 | 1383 | #if defined (MIPSEB) | ||
1183 | 1384 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | ||
1184 | 1385 | I don't know.... */ | ||
1185 | 1386 | printf ("mips-sony-bsd\n"); exit (0); | ||
1186 | 1387 | #else | ||
1187 | 1388 | #include <sys/param.h> | ||
1188 | 1389 | printf ("m68k-sony-newsos%s\n", | ||
1189 | 1390 | #ifdef NEWSOS4 | ||
1190 | 1391 | "4" | ||
1191 | 1392 | #else | ||
1192 | 1393 | "" | ||
1193 | 1394 | #endif | ||
1194 | 1395 | ); exit (0); | ||
1195 | 1396 | #endif | ||
1196 | 1397 | #endif | ||
1197 | 1398 | |||
1198 | 1399 | #if defined (__arm) && defined (__acorn) && defined (__unix) | ||
1199 | 1400 | printf ("arm-acorn-riscix\n"); exit (0); | ||
1200 | 1401 | #endif | ||
1201 | 1402 | |||
1202 | 1403 | #if defined (hp300) && !defined (hpux) | ||
1203 | 1404 | printf ("m68k-hp-bsd\n"); exit (0); | ||
1204 | 1405 | #endif | ||
1205 | 1406 | |||
1206 | 1407 | #if defined (NeXT) | ||
1207 | 1408 | #if !defined (__ARCHITECTURE__) | ||
1208 | 1409 | #define __ARCHITECTURE__ "m68k" | ||
1209 | 1410 | #endif | ||
1210 | 1411 | int version; | ||
1211 | 1412 | version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; | ||
1212 | 1413 | if (version < 4) | ||
1213 | 1414 | printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); | ||
1214 | 1415 | else | ||
1215 | 1416 | printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); | ||
1216 | 1417 | exit (0); | ||
1217 | 1418 | #endif | ||
1218 | 1419 | |||
1219 | 1420 | #if defined (MULTIMAX) || defined (n16) | ||
1220 | 1421 | #if defined (UMAXV) | ||
1221 | 1422 | printf ("ns32k-encore-sysv\n"); exit (0); | ||
1222 | 1423 | #else | ||
1223 | 1424 | #if defined (CMU) | ||
1224 | 1425 | printf ("ns32k-encore-mach\n"); exit (0); | ||
1225 | 1426 | #else | ||
1226 | 1427 | printf ("ns32k-encore-bsd\n"); exit (0); | ||
1227 | 1428 | #endif | ||
1228 | 1429 | #endif | ||
1229 | 1430 | #endif | ||
1230 | 1431 | |||
1231 | 1432 | #if defined (__386BSD__) | ||
1232 | 1433 | printf ("i386-pc-bsd\n"); exit (0); | ||
1233 | 1434 | #endif | ||
1234 | 1435 | |||
1235 | 1436 | #if defined (sequent) | ||
1236 | 1437 | #if defined (i386) | ||
1237 | 1438 | printf ("i386-sequent-dynix\n"); exit (0); | ||
1238 | 1439 | #endif | ||
1239 | 1440 | #if defined (ns32000) | ||
1240 | 1441 | printf ("ns32k-sequent-dynix\n"); exit (0); | ||
1241 | 1442 | #endif | ||
1242 | 1443 | #endif | ||
1243 | 1444 | |||
1244 | 1445 | #if defined (_SEQUENT_) | ||
1245 | 1446 | struct utsname un; | ||
1246 | 1447 | |||
1247 | 1448 | uname(&un); | ||
1248 | 1449 | |||
1249 | 1450 | if (strncmp(un.version, "V2", 2) == 0) { | ||
1250 | 1451 | printf ("i386-sequent-ptx2\n"); exit (0); | ||
1251 | 1452 | } | ||
1252 | 1453 | if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ | ||
1253 | 1454 | printf ("i386-sequent-ptx1\n"); exit (0); | ||
1254 | 1455 | } | ||
1255 | 1456 | printf ("i386-sequent-ptx\n"); exit (0); | ||
1256 | 1457 | |||
1257 | 1458 | #endif | ||
1258 | 1459 | |||
1259 | 1460 | #if defined (vax) | ||
1260 | 1461 | # if !defined (ultrix) | ||
1261 | 1462 | # include <sys/param.h> | ||
1262 | 1463 | # if defined (BSD) | ||
1263 | 1464 | # if BSD == 43 | ||
1264 | 1465 | printf ("vax-dec-bsd4.3\n"); exit (0); | ||
1265 | 1466 | # else | ||
1266 | 1467 | # if BSD == 199006 | ||
1267 | 1468 | printf ("vax-dec-bsd4.3reno\n"); exit (0); | ||
1268 | 1469 | # else | ||
1269 | 1470 | printf ("vax-dec-bsd\n"); exit (0); | ||
1270 | 1471 | # endif | ||
1271 | 1472 | # endif | ||
1272 | 1473 | # else | ||
1273 | 1474 | printf ("vax-dec-bsd\n"); exit (0); | ||
1274 | 1475 | # endif | ||
1275 | 1476 | # else | ||
1276 | 1477 | printf ("vax-dec-ultrix\n"); exit (0); | ||
1277 | 1478 | # endif | ||
1278 | 1479 | #endif | ||
1279 | 1480 | |||
1280 | 1481 | #if defined (alliant) && defined (i860) | ||
1281 | 1482 | printf ("i860-alliant-bsd\n"); exit (0); | ||
1282 | 1483 | #endif | ||
1283 | 1484 | |||
1284 | 1485 | exit (1); | ||
1285 | 1486 | } | ||
1286 | 1487 | EOF | ||
1287 | 1488 | |||
1288 | 1489 | $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && | ||
1289 | 1490 | { echo "$SYSTEM_NAME"; exit; } | ||
1290 | 1491 | |||
1291 | 1492 | # Apollos put the system type in the environment. | ||
1292 | 1493 | |||
1293 | 1494 | test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } | ||
1294 | 1495 | |||
1295 | 1496 | # Convex versions that predate uname can use getsysinfo(1) | ||
1296 | 1497 | |||
1297 | 1498 | if [ -x /usr/convex/getsysinfo ] | ||
1298 | 1499 | then | ||
1299 | 1500 | case `getsysinfo -f cpu_type` in | ||
1300 | 1501 | c1*) | ||
1301 | 1502 | echo c1-convex-bsd | ||
1302 | 1503 | exit ;; | ||
1303 | 1504 | c2*) | ||
1304 | 1505 | if getsysinfo -f scalar_acc | ||
1305 | 1506 | then echo c32-convex-bsd | ||
1306 | 1507 | else echo c2-convex-bsd | ||
1307 | 1508 | fi | ||
1308 | 1509 | exit ;; | ||
1309 | 1510 | c34*) | ||
1310 | 1511 | echo c34-convex-bsd | ||
1311 | 1512 | exit ;; | ||
1312 | 1513 | c38*) | ||
1313 | 1514 | echo c38-convex-bsd | ||
1314 | 1515 | exit ;; | ||
1315 | 1516 | c4*) | ||
1316 | 1517 | echo c4-convex-bsd | ||
1317 | 1518 | exit ;; | ||
1318 | 1519 | esac | ||
1319 | 1520 | fi | ||
1320 | 1521 | |||
1321 | 1374 | cat >&2 <<EOF | 1522 | cat >&2 <<EOF |
1322 | 1375 | $0: unable to guess system type | 1523 | $0: unable to guess system type |
1323 | 1376 | 1524 | ||
1324 | 1377 | 1525 | ||
1325 | === modified file 'config.h.in' | |||
1326 | --- config.h.in 2014-12-10 10:09:37 +0000 | |||
1327 | +++ config.h.in 2015-02-16 19:51:53 +0000 | |||
1328 | @@ -1,4 +1,4 @@ | |||
1330 | 1 | /* config.h.in. Generated from configure.in by autoheader. */ | 1 | /* config.h.in. Generated from configure.ac by autoheader. */ |
1331 | 2 | 2 | ||
1332 | 3 | /* Define if building universal (internal helper macro) */ | 3 | /* Define if building universal (internal helper macro) */ |
1333 | 4 | #undef AC_APPLE_UNIVERSAL_BUILD | 4 | #undef AC_APPLE_UNIVERSAL_BUILD |
1334 | @@ -46,6 +46,9 @@ | |||
1335 | 46 | */ | 46 | */ |
1336 | 47 | #undef LT_OBJDIR | 47 | #undef LT_OBJDIR |
1337 | 48 | 48 | ||
1338 | 49 | /* Define to 1 if your C compiler doesn't accept -c and -o together. */ | ||
1339 | 50 | #undef NO_MINUS_C_MINUS_O | ||
1340 | 51 | |||
1341 | 49 | /* Name of package */ | 52 | /* Name of package */ |
1342 | 50 | #undef PACKAGE | 53 | #undef PACKAGE |
1343 | 51 | 54 | ||
1344 | 52 | 55 | ||
1345 | === modified file 'config.sub' | |||
1346 | --- config.sub 2014-12-10 10:09:37 +0000 | |||
1347 | +++ config.sub 2015-02-16 19:51:53 +0000 | |||
1348 | @@ -1,8 +1,8 @@ | |||
1349 | 1 | #! /bin/sh | 1 | #! /bin/sh |
1350 | 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
1352 | 3 | # Copyright 1992-2014 Free Software Foundation, Inc. | 3 | # Copyright 1992-2013 Free Software Foundation, Inc. |
1353 | 4 | 4 | ||
1355 | 5 | timestamp='2014-07-28' | 5 | timestamp='2013-04-24' |
1356 | 6 | 6 | ||
1357 | 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
1358 | 8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by |
1359 | @@ -68,7 +68,7 @@ | |||
1360 | 68 | version="\ | 68 | version="\ |
1361 | 69 | GNU config.sub ($timestamp) | 69 | GNU config.sub ($timestamp) |
1362 | 70 | 70 | ||
1364 | 71 | Copyright 1992-2014 Free Software Foundation, Inc. | 71 | Copyright 1992-2013 Free Software Foundation, Inc. |
1365 | 72 | 72 | ||
1366 | 73 | This is free software; see the source for copying conditions. There is NO | 73 | This is free software; see the source for copying conditions. There is NO |
1367 | 74 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 74 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
1368 | @@ -257,7 +257,7 @@ | |||
1369 | 257 | | avr | avr32 \ | 257 | | avr | avr32 \ |
1370 | 258 | | be32 | be64 \ | 258 | | be32 | be64 \ |
1371 | 259 | | bfin \ | 259 | | bfin \ |
1373 | 260 | | c4x | c8051 | clipper \ | 260 | | c4x | clipper \ |
1374 | 261 | | d10v | d30v | dlx | dsp16xx \ | 261 | | d10v | d30v | dlx | dsp16xx \ |
1375 | 262 | | epiphany \ | 262 | | epiphany \ |
1376 | 263 | | fido | fr30 | frv \ | 263 | | fido | fr30 | frv \ |
1377 | @@ -265,7 +265,6 @@ | |||
1378 | 265 | | hexagon \ | 265 | | hexagon \ |
1379 | 266 | | i370 | i860 | i960 | ia64 \ | 266 | | i370 | i860 | i960 | ia64 \ |
1380 | 267 | | ip2k | iq2000 \ | 267 | | ip2k | iq2000 \ |
1381 | 268 | | k1om \ | ||
1382 | 269 | | le32 | le64 \ | 268 | | le32 | le64 \ |
1383 | 270 | | lm32 \ | 269 | | lm32 \ |
1384 | 271 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | 270 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
1385 | @@ -283,10 +282,8 @@ | |||
1386 | 283 | | mips64vr5900 | mips64vr5900el \ | 282 | | mips64vr5900 | mips64vr5900el \ |
1387 | 284 | | mipsisa32 | mipsisa32el \ | 283 | | mipsisa32 | mipsisa32el \ |
1388 | 285 | | mipsisa32r2 | mipsisa32r2el \ | 284 | | mipsisa32r2 | mipsisa32r2el \ |
1389 | 286 | | mipsisa32r6 | mipsisa32r6el \ | ||
1390 | 287 | | mipsisa64 | mipsisa64el \ | 285 | | mipsisa64 | mipsisa64el \ |
1391 | 288 | | mipsisa64r2 | mipsisa64r2el \ | 286 | | mipsisa64r2 | mipsisa64r2el \ |
1392 | 289 | | mipsisa64r6 | mipsisa64r6el \ | ||
1393 | 290 | | mipsisa64sb1 | mipsisa64sb1el \ | 287 | | mipsisa64sb1 | mipsisa64sb1el \ |
1394 | 291 | | mipsisa64sr71k | mipsisa64sr71kel \ | 288 | | mipsisa64sr71k | mipsisa64sr71kel \ |
1395 | 292 | | mipsr5900 | mipsr5900el \ | 289 | | mipsr5900 | mipsr5900el \ |
1396 | @@ -298,7 +295,8 @@ | |||
1397 | 298 | | nds32 | nds32le | nds32be \ | 295 | | nds32 | nds32le | nds32be \ |
1398 | 299 | | nios | nios2 | nios2eb | nios2el \ | 296 | | nios | nios2 | nios2eb | nios2el \ |
1399 | 300 | | ns16k | ns32k \ | 297 | | ns16k | ns32k \ |
1401 | 301 | | open8 | or1k | or1knd | or32 \ | 298 | | open8 \ |
1402 | 299 | | or1k | or32 \ | ||
1403 | 302 | | pdp10 | pdp11 | pj | pjl \ | 300 | | pdp10 | pdp11 | pj | pjl \ |
1404 | 303 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | 301 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
1405 | 304 | | pyramid \ | 302 | | pyramid \ |
1406 | @@ -326,7 +324,7 @@ | |||
1407 | 326 | c6x) | 324 | c6x) |
1408 | 327 | basic_machine=tic6x-unknown | 325 | basic_machine=tic6x-unknown |
1409 | 328 | ;; | 326 | ;; |
1411 | 329 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) | 327 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) |
1412 | 330 | basic_machine=$basic_machine-unknown | 328 | basic_machine=$basic_machine-unknown |
1413 | 331 | os=-none | 329 | os=-none |
1414 | 332 | ;; | 330 | ;; |
1415 | @@ -374,7 +372,7 @@ | |||
1416 | 374 | | be32-* | be64-* \ | 372 | | be32-* | be64-* \ |
1417 | 375 | | bfin-* | bs2000-* \ | 373 | | bfin-* | bs2000-* \ |
1418 | 376 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | 374 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
1420 | 377 | | c8051-* | clipper-* | craynv-* | cydra-* \ | 375 | | clipper-* | craynv-* | cydra-* \ |
1421 | 378 | | d10v-* | d30v-* | dlx-* \ | 376 | | d10v-* | d30v-* | dlx-* \ |
1422 | 379 | | elxsi-* \ | 377 | | elxsi-* \ |
1423 | 380 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | 378 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
1424 | @@ -383,7 +381,6 @@ | |||
1425 | 383 | | hexagon-* \ | 381 | | hexagon-* \ |
1426 | 384 | | i*86-* | i860-* | i960-* | ia64-* \ | 382 | | i*86-* | i860-* | i960-* | ia64-* \ |
1427 | 385 | | ip2k-* | iq2000-* \ | 383 | | ip2k-* | iq2000-* \ |
1428 | 386 | | k1om-* \ | ||
1429 | 387 | | le32-* | le64-* \ | 384 | | le32-* | le64-* \ |
1430 | 388 | | lm32-* \ | 385 | | lm32-* \ |
1431 | 389 | | m32c-* | m32r-* | m32rle-* \ | 386 | | m32c-* | m32r-* | m32rle-* \ |
1432 | @@ -403,10 +400,8 @@ | |||
1433 | 403 | | mips64vr5900-* | mips64vr5900el-* \ | 400 | | mips64vr5900-* | mips64vr5900el-* \ |
1434 | 404 | | mipsisa32-* | mipsisa32el-* \ | 401 | | mipsisa32-* | mipsisa32el-* \ |
1435 | 405 | | mipsisa32r2-* | mipsisa32r2el-* \ | 402 | | mipsisa32r2-* | mipsisa32r2el-* \ |
1436 | 406 | | mipsisa32r6-* | mipsisa32r6el-* \ | ||
1437 | 407 | | mipsisa64-* | mipsisa64el-* \ | 403 | | mipsisa64-* | mipsisa64el-* \ |
1438 | 408 | | mipsisa64r2-* | mipsisa64r2el-* \ | 404 | | mipsisa64r2-* | mipsisa64r2el-* \ |
1439 | 409 | | mipsisa64r6-* | mipsisa64r6el-* \ | ||
1440 | 410 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | 405 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
1441 | 411 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | 406 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
1442 | 412 | | mipsr5900-* | mipsr5900el-* \ | 407 | | mipsr5900-* | mipsr5900el-* \ |
1443 | @@ -418,7 +413,6 @@ | |||
1444 | 418 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | 413 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ |
1445 | 419 | | none-* | np1-* | ns16k-* | ns32k-* \ | 414 | | none-* | np1-* | ns16k-* | ns32k-* \ |
1446 | 420 | | open8-* \ | 415 | | open8-* \ |
1447 | 421 | | or1k*-* \ | ||
1448 | 422 | | orion-* \ | 416 | | orion-* \ |
1449 | 423 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | 417 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
1450 | 424 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | 418 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
1451 | @@ -800,7 +794,7 @@ | |||
1452 | 800 | os=-mingw64 | 794 | os=-mingw64 |
1453 | 801 | ;; | 795 | ;; |
1454 | 802 | mingw32) | 796 | mingw32) |
1456 | 803 | basic_machine=i686-pc | 797 | basic_machine=i386-pc |
1457 | 804 | os=-mingw32 | 798 | os=-mingw32 |
1458 | 805 | ;; | 799 | ;; |
1459 | 806 | mingw32ce) | 800 | mingw32ce) |
1460 | @@ -828,10 +822,6 @@ | |||
1461 | 828 | basic_machine=powerpc-unknown | 822 | basic_machine=powerpc-unknown |
1462 | 829 | os=-morphos | 823 | os=-morphos |
1463 | 830 | ;; | 824 | ;; |
1464 | 831 | moxiebox) | ||
1465 | 832 | basic_machine=moxie-unknown | ||
1466 | 833 | os=-moxiebox | ||
1467 | 834 | ;; | ||
1468 | 835 | msdos) | 825 | msdos) |
1469 | 836 | basic_machine=i386-pc | 826 | basic_machine=i386-pc |
1470 | 837 | os=-msdos | 827 | os=-msdos |
1471 | @@ -840,7 +830,7 @@ | |||
1472 | 840 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | 830 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
1473 | 841 | ;; | 831 | ;; |
1474 | 842 | msys) | 832 | msys) |
1476 | 843 | basic_machine=i686-pc | 833 | basic_machine=i386-pc |
1477 | 844 | os=-msys | 834 | os=-msys |
1478 | 845 | ;; | 835 | ;; |
1479 | 846 | mvs) | 836 | mvs) |
1480 | @@ -1016,7 +1006,7 @@ | |||
1481 | 1016 | ;; | 1006 | ;; |
1482 | 1017 | ppc64) basic_machine=powerpc64-unknown | 1007 | ppc64) basic_machine=powerpc64-unknown |
1483 | 1018 | ;; | 1008 | ;; |
1485 | 1019 | ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | 1009 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` |
1486 | 1020 | ;; | 1010 | ;; |
1487 | 1021 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | 1011 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
1488 | 1022 | basic_machine=powerpc64le-unknown | 1012 | basic_machine=powerpc64le-unknown |
1489 | @@ -1377,14 +1367,14 @@ | |||
1490 | 1377 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | 1367 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1491 | 1378 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | 1368 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ |
1492 | 1379 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | 1369 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1494 | 1380 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | 1370 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1495 | 1381 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | 1371 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1496 | 1382 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | 1372 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1497 | 1383 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | 1373 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1498 | 1384 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | 1374 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1499 | 1385 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | 1375 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1500 | 1386 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | 1376 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1502 | 1387 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) | 1377 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1503 | 1388 | # Remember, each alternative MUST END IN *, to match a version number. | 1378 | # Remember, each alternative MUST END IN *, to match a version number. |
1504 | 1389 | ;; | 1379 | ;; |
1505 | 1390 | -qnx*) | 1380 | -qnx*) |
1506 | @@ -1556,9 +1546,6 @@ | |||
1507 | 1556 | c4x-* | tic4x-*) | 1546 | c4x-* | tic4x-*) |
1508 | 1557 | os=-coff | 1547 | os=-coff |
1509 | 1558 | ;; | 1548 | ;; |
1510 | 1559 | c8051-*) | ||
1511 | 1560 | os=-elf | ||
1512 | 1561 | ;; | ||
1513 | 1562 | hexagon-*) | 1549 | hexagon-*) |
1514 | 1563 | os=-elf | 1550 | os=-elf |
1515 | 1564 | ;; | 1551 | ;; |
1516 | @@ -1602,6 +1589,9 @@ | |||
1517 | 1602 | mips*-*) | 1589 | mips*-*) |
1518 | 1603 | os=-elf | 1590 | os=-elf |
1519 | 1604 | ;; | 1591 | ;; |
1520 | 1592 | or1k-*) | ||
1521 | 1593 | os=-elf | ||
1522 | 1594 | ;; | ||
1523 | 1605 | or32-*) | 1595 | or32-*) |
1524 | 1606 | os=-coff | 1596 | os=-coff |
1525 | 1607 | ;; | 1597 | ;; |
1526 | 1608 | 1598 | ||
1527 | === modified file 'configure' | |||
1528 | --- configure 2014-12-10 10:09:37 +0000 | |||
1529 | +++ configure 2015-02-16 19:51:53 +0000 | |||
1530 | @@ -1,6 +1,6 @@ | |||
1531 | 1 | #! /bin/sh | 1 | #! /bin/sh |
1532 | 2 | # Guess values for system-dependent variables and create Makefiles. | 2 | # Guess values for system-dependent variables and create Makefiles. |
1534 | 3 | # Generated by GNU Autoconf 2.69 for RSVG 2.40.6. | 3 | # Generated by GNU Autoconf 2.69 for RSVG 2.40.7. |
1535 | 4 | # | 4 | # |
1536 | 5 | # Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg>. | 5 | # Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg>. |
1537 | 6 | # | 6 | # |
1538 | @@ -591,8 +591,8 @@ | |||
1539 | 591 | # Identity of this package. | 591 | # Identity of this package. |
1540 | 592 | PACKAGE_NAME='RSVG' | 592 | PACKAGE_NAME='RSVG' |
1541 | 593 | PACKAGE_TARNAME='librsvg' | 593 | PACKAGE_TARNAME='librsvg' |
1544 | 594 | PACKAGE_VERSION='2.40.6' | 594 | PACKAGE_VERSION='2.40.7' |
1545 | 595 | PACKAGE_STRING='RSVG 2.40.6' | 595 | PACKAGE_STRING='RSVG 2.40.7' |
1546 | 596 | PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg' | 596 | PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg' |
1547 | 597 | PACKAGE_URL='' | 597 | PACKAGE_URL='' |
1548 | 598 | 598 | ||
1549 | @@ -671,14 +671,11 @@ | |||
1550 | 671 | GTK_DOC_BUILD_HTML_TRUE | 671 | GTK_DOC_BUILD_HTML_TRUE |
1551 | 672 | ENABLE_GTK_DOC_FALSE | 672 | ENABLE_GTK_DOC_FALSE |
1552 | 673 | ENABLE_GTK_DOC_TRUE | 673 | ENABLE_GTK_DOC_TRUE |
1553 | 674 | HAVE_GTK_DOC_FALSE | ||
1554 | 675 | HAVE_GTK_DOC_TRUE | ||
1555 | 676 | GTKDOC_DEPS_LIBS | 674 | GTKDOC_DEPS_LIBS |
1556 | 677 | GTKDOC_DEPS_CFLAGS | 675 | GTKDOC_DEPS_CFLAGS |
1557 | 678 | HTML_DIR | 676 | HTML_DIR |
1558 | 679 | GTKDOC_MKPDF | 677 | GTKDOC_MKPDF |
1559 | 680 | GTKDOC_REBASE | 678 | GTKDOC_REBASE |
1560 | 681 | GTKDOC_CHECK_PATH | ||
1561 | 682 | GTKDOC_CHECK | 679 | GTKDOC_CHECK |
1562 | 683 | BSYMBOLIC_LDFLAG | 680 | BSYMBOLIC_LDFLAG |
1563 | 684 | ENABLE_PIXBUF_LOADER_FALSE | 681 | ENABLE_PIXBUF_LOADER_FALSE |
1564 | @@ -1425,7 +1422,7 @@ | |||
1565 | 1425 | # Omit some internal or obsolete options to make the list less imposing. | 1422 | # Omit some internal or obsolete options to make the list less imposing. |
1566 | 1426 | # This message is too long to be a string in the A/UX 3.1 sh. | 1423 | # This message is too long to be a string in the A/UX 3.1 sh. |
1567 | 1427 | cat <<_ACEOF | 1424 | cat <<_ACEOF |
1569 | 1428 | \`configure' configures RSVG 2.40.6 to adapt to many kinds of systems. | 1425 | \`configure' configures RSVG 2.40.7 to adapt to many kinds of systems. |
1570 | 1429 | 1426 | ||
1571 | 1430 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1427 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1572 | 1431 | 1428 | ||
1573 | @@ -1495,7 +1492,7 @@ | |||
1574 | 1495 | 1492 | ||
1575 | 1496 | if test -n "$ac_init_help"; then | 1493 | if test -n "$ac_init_help"; then |
1576 | 1497 | case $ac_init_help in | 1494 | case $ac_init_help in |
1578 | 1498 | short | recursive ) echo "Configuration of RSVG 2.40.6:";; | 1495 | short | recursive ) echo "Configuration of RSVG 2.40.7:";; |
1579 | 1499 | esac | 1496 | esac |
1580 | 1500 | cat <<\_ACEOF | 1497 | cat <<\_ACEOF |
1581 | 1501 | 1498 | ||
1582 | @@ -1645,7 +1642,7 @@ | |||
1583 | 1645 | test -n "$ac_init_help" && exit $ac_status | 1642 | test -n "$ac_init_help" && exit $ac_status |
1584 | 1646 | if $ac_init_version; then | 1643 | if $ac_init_version; then |
1585 | 1647 | cat <<\_ACEOF | 1644 | cat <<\_ACEOF |
1587 | 1648 | RSVG configure 2.40.6 | 1645 | RSVG configure 2.40.7 |
1588 | 1649 | generated by GNU Autoconf 2.69 | 1646 | generated by GNU Autoconf 2.69 |
1589 | 1650 | 1647 | ||
1590 | 1651 | Copyright (C) 2012 Free Software Foundation, Inc. | 1648 | Copyright (C) 2012 Free Software Foundation, Inc. |
1591 | @@ -2014,7 +2011,7 @@ | |||
1592 | 2014 | This file contains any messages produced by compilers while | 2011 | This file contains any messages produced by compilers while |
1593 | 2015 | running configure, to aid debugging if configure makes a mistake. | 2012 | running configure, to aid debugging if configure makes a mistake. |
1594 | 2016 | 2013 | ||
1596 | 2017 | It was created by RSVG $as_me 2.40.6, which was | 2014 | It was created by RSVG $as_me 2.40.7, which was |
1597 | 2018 | generated by GNU Autoconf 2.69. Invocation command line was | 2015 | generated by GNU Autoconf 2.69. Invocation command line was |
1598 | 2019 | 2016 | ||
1599 | 2020 | $ $0 $@ | 2017 | $ $0 $@ |
1600 | @@ -2368,7 +2365,7 @@ | |||
1601 | 2368 | 2365 | ||
1602 | 2369 | 2366 | ||
1603 | 2370 | 2367 | ||
1605 | 2371 | am__api_version='1.14' | 2368 | am__api_version='1.13' |
1606 | 2372 | 2369 | ||
1607 | 2373 | ac_aux_dir= | 2370 | ac_aux_dir= |
1608 | 2374 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 2371 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1609 | @@ -2883,7 +2880,7 @@ | |||
1610 | 2883 | 2880 | ||
1611 | 2884 | # Define the identity of the package. | 2881 | # Define the identity of the package. |
1612 | 2885 | PACKAGE='librsvg' | 2882 | PACKAGE='librsvg' |
1614 | 2886 | VERSION='2.40.6' | 2883 | VERSION='2.40.7' |
1615 | 2887 | 2884 | ||
1616 | 2888 | 2885 | ||
1617 | 2889 | cat >>confdefs.h <<_ACEOF | 2886 | cat >>confdefs.h <<_ACEOF |
1618 | @@ -2934,47 +2931,6 @@ | |||
1619 | 2934 | 2931 | ||
1620 | 2935 | 2932 | ||
1621 | 2936 | 2933 | ||
1622 | 2937 | # POSIX will say in a future version that running "rm -f" with no argument | ||
1623 | 2938 | # is OK; and we want to be able to make that assumption in our Makefile | ||
1624 | 2939 | # recipes. So use an aggressive probe to check that the usage we want is | ||
1625 | 2940 | # actually supported "in the wild" to an acceptable degree. | ||
1626 | 2941 | # See automake bug#10828. | ||
1627 | 2942 | # To make any issue more visible, cause the running configure to be aborted | ||
1628 | 2943 | # by default if the 'rm' program in use doesn't match our expectations; the | ||
1629 | 2944 | # user can still override this though. | ||
1630 | 2945 | if rm -f && rm -fr && rm -rf; then : OK; else | ||
1631 | 2946 | cat >&2 <<'END' | ||
1632 | 2947 | Oops! | ||
1633 | 2948 | |||
1634 | 2949 | Your 'rm' program seems unable to run without file operands specified | ||
1635 | 2950 | on the command line, even when the '-f' option is present. This is contrary | ||
1636 | 2951 | to the behaviour of most rm programs out there, and not conforming with | ||
1637 | 2952 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | ||
1638 | 2953 | |||
1639 | 2954 | Please tell bug-automake@gnu.org about your system, including the value | ||
1640 | 2955 | of your $PATH and any error possibly output before this message. This | ||
1641 | 2956 | can help us improve future automake versions. | ||
1642 | 2957 | |||
1643 | 2958 | END | ||
1644 | 2959 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | ||
1645 | 2960 | echo 'Configuration will proceed anyway, since you have set the' >&2 | ||
1646 | 2961 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | ||
1647 | 2962 | echo >&2 | ||
1648 | 2963 | else | ||
1649 | 2964 | cat >&2 <<'END' | ||
1650 | 2965 | Aborting the configuration process, to ensure you take notice of the issue. | ||
1651 | 2966 | |||
1652 | 2967 | You can download and install GNU coreutils to get an 'rm' implementation | ||
1653 | 2968 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | ||
1654 | 2969 | |||
1655 | 2970 | If you want to complete the configuration process using your problematic | ||
1656 | 2971 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | ||
1657 | 2972 | to "yes", and re-run configure. | ||
1658 | 2973 | |||
1659 | 2974 | END | ||
1660 | 2975 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | ||
1661 | 2976 | fi | ||
1662 | 2977 | fi | ||
1663 | 2978 | # Check whether --enable-silent-rules was given. | 2934 | # Check whether --enable-silent-rules was given. |
1664 | 2979 | if test "${enable_silent_rules+set}" = set; then : | 2935 | if test "${enable_silent_rules+set}" = set; then : |
1665 | 2980 | enableval=$enable_silent_rules; | 2936 | enableval=$enable_silent_rules; |
1666 | @@ -3062,13 +3018,13 @@ | |||
1667 | 3062 | 3018 | ||
1668 | 3063 | # =========================================================================== | 3019 | # =========================================================================== |
1669 | 3064 | 3020 | ||
1671 | 3065 | RSVG_LT_VERSION_INFO=42:6:40 | 3021 | RSVG_LT_VERSION_INFO=42:7:40 |
1672 | 3066 | 3022 | ||
1673 | 3067 | LIBRSVG_MAJOR_VERSION=2 | 3023 | LIBRSVG_MAJOR_VERSION=2 |
1674 | 3068 | 3024 | ||
1675 | 3069 | LIBRSVG_MINOR_VERSION=40 | 3025 | LIBRSVG_MINOR_VERSION=40 |
1676 | 3070 | 3026 | ||
1678 | 3071 | LIBRSVG_MICRO_VERSION=6 | 3027 | LIBRSVG_MICRO_VERSION=7 |
1679 | 3072 | 3028 | ||
1680 | 3073 | 3029 | ||
1681 | 3074 | 3030 | ||
1682 | @@ -3935,65 +3891,6 @@ | |||
1683 | 3935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1684 | 3936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1685 | 3937 | 3893 | ||
1686 | 3938 | ac_ext=c | ||
1687 | 3939 | ac_cpp='$CPP $CPPFLAGS' | ||
1688 | 3940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1689 | 3941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1690 | 3942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1691 | 3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | ||
1692 | 3944 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | ||
1693 | 3945 | if ${am_cv_prog_cc_c_o+:} false; then : | ||
1694 | 3946 | $as_echo_n "(cached) " >&6 | ||
1695 | 3947 | else | ||
1696 | 3948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1697 | 3949 | /* end confdefs.h. */ | ||
1698 | 3950 | |||
1699 | 3951 | int | ||
1700 | 3952 | main () | ||
1701 | 3953 | { | ||
1702 | 3954 | |||
1703 | 3955 | ; | ||
1704 | 3956 | return 0; | ||
1705 | 3957 | } | ||
1706 | 3958 | _ACEOF | ||
1707 | 3959 | # Make sure it works both with $CC and with simple cc. | ||
1708 | 3960 | # Following AC_PROG_CC_C_O, we do the test twice because some | ||
1709 | 3961 | # compilers refuse to overwrite an existing .o file with -o, | ||
1710 | 3962 | # though they will create one. | ||
1711 | 3963 | am_cv_prog_cc_c_o=yes | ||
1712 | 3964 | for am_i in 1 2; do | ||
1713 | 3965 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | ||
1714 | 3966 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | ||
1715 | 3967 | ac_status=$? | ||
1716 | 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1717 | 3969 | (exit $ac_status); } \ | ||
1718 | 3970 | && test -f conftest2.$ac_objext; then | ||
1719 | 3971 | : OK | ||
1720 | 3972 | else | ||
1721 | 3973 | am_cv_prog_cc_c_o=no | ||
1722 | 3974 | break | ||
1723 | 3975 | fi | ||
1724 | 3976 | done | ||
1725 | 3977 | rm -f core conftest* | ||
1726 | 3978 | unset am_i | ||
1727 | 3979 | fi | ||
1728 | 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | ||
1729 | 3981 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | ||
1730 | 3982 | if test "$am_cv_prog_cc_c_o" != yes; then | ||
1731 | 3983 | # Losing compiler, so override with the script. | ||
1732 | 3984 | # FIXME: It is wrong to rewrite CC. | ||
1733 | 3985 | # But if we don't then we get into trouble of one sort or another. | ||
1734 | 3986 | # A longer-term fix would be to have automake use am__CC in this case, | ||
1735 | 3987 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
1736 | 3988 | CC="$am_aux_dir/compile $CC" | ||
1737 | 3989 | fi | ||
1738 | 3990 | ac_ext=c | ||
1739 | 3991 | ac_cpp='$CPP $CPPFLAGS' | ||
1740 | 3992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1741 | 3993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1742 | 3994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1743 | 3995 | |||
1744 | 3996 | |||
1745 | 3997 | depcc="$CC" am_compiler_list= | 3894 | depcc="$CC" am_compiler_list= |
1746 | 3998 | 3895 | ||
1747 | 3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
1748 | @@ -4718,65 +4615,6 @@ | |||
1749 | 4718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1750 | 4719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1751 | 4720 | 4617 | ||
1752 | 4721 | ac_ext=c | ||
1753 | 4722 | ac_cpp='$CPP $CPPFLAGS' | ||
1754 | 4723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1755 | 4724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1756 | 4725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1757 | 4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | ||
1758 | 4727 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | ||
1759 | 4728 | if ${am_cv_prog_cc_c_o+:} false; then : | ||
1760 | 4729 | $as_echo_n "(cached) " >&6 | ||
1761 | 4730 | else | ||
1762 | 4731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1763 | 4732 | /* end confdefs.h. */ | ||
1764 | 4733 | |||
1765 | 4734 | int | ||
1766 | 4735 | main () | ||
1767 | 4736 | { | ||
1768 | 4737 | |||
1769 | 4738 | ; | ||
1770 | 4739 | return 0; | ||
1771 | 4740 | } | ||
1772 | 4741 | _ACEOF | ||
1773 | 4742 | # Make sure it works both with $CC and with simple cc. | ||
1774 | 4743 | # Following AC_PROG_CC_C_O, we do the test twice because some | ||
1775 | 4744 | # compilers refuse to overwrite an existing .o file with -o, | ||
1776 | 4745 | # though they will create one. | ||
1777 | 4746 | am_cv_prog_cc_c_o=yes | ||
1778 | 4747 | for am_i in 1 2; do | ||
1779 | 4748 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | ||
1780 | 4749 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | ||
1781 | 4750 | ac_status=$? | ||
1782 | 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
1783 | 4752 | (exit $ac_status); } \ | ||
1784 | 4753 | && test -f conftest2.$ac_objext; then | ||
1785 | 4754 | : OK | ||
1786 | 4755 | else | ||
1787 | 4756 | am_cv_prog_cc_c_o=no | ||
1788 | 4757 | break | ||
1789 | 4758 | fi | ||
1790 | 4759 | done | ||
1791 | 4760 | rm -f core conftest* | ||
1792 | 4761 | unset am_i | ||
1793 | 4762 | fi | ||
1794 | 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | ||
1795 | 4764 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | ||
1796 | 4765 | if test "$am_cv_prog_cc_c_o" != yes; then | ||
1797 | 4766 | # Losing compiler, so override with the script. | ||
1798 | 4767 | # FIXME: It is wrong to rewrite CC. | ||
1799 | 4768 | # But if we don't then we get into trouble of one sort or another. | ||
1800 | 4769 | # A longer-term fix would be to have automake use am__CC in this case, | ||
1801 | 4770 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
1802 | 4771 | CC="$am_aux_dir/compile $CC" | ||
1803 | 4772 | fi | ||
1804 | 4773 | ac_ext=c | ||
1805 | 4774 | ac_cpp='$CPP $CPPFLAGS' | ||
1806 | 4775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1807 | 4776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1808 | 4777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1809 | 4778 | |||
1810 | 4779 | |||
1811 | 4780 | depcc="$CC" am_compiler_list= | 4618 | depcc="$CC" am_compiler_list= |
1812 | 4781 | 4619 | ||
1813 | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 4620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
1814 | @@ -5327,6 +5165,131 @@ | |||
1815 | 5327 | 5165 | ||
1816 | 5328 | fi | 5166 | fi |
1817 | 5329 | 5167 | ||
1818 | 5168 | if test "x$CC" != xcc; then | ||
1819 | 5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | ||
1820 | 5170 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | ||
1821 | 5171 | else | ||
1822 | 5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | ||
1823 | 5173 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | ||
1824 | 5174 | fi | ||
1825 | 5175 | set dummy $CC; ac_cc=`$as_echo "$2" | | ||
1826 | 5176 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
1827 | 5177 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | ||
1828 | 5178 | $as_echo_n "(cached) " >&6 | ||
1829 | 5179 | else | ||
1830 | 5180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1831 | 5181 | /* end confdefs.h. */ | ||
1832 | 5182 | |||
1833 | 5183 | int | ||
1834 | 5184 | main () | ||
1835 | 5185 | { | ||
1836 | 5186 | |||
1837 | 5187 | ; | ||
1838 | 5188 | return 0; | ||
1839 | 5189 | } | ||
1840 | 5190 | _ACEOF | ||
1841 | 5191 | # Make sure it works both with $CC and with simple cc. | ||
1842 | 5192 | # We do the test twice because some compilers refuse to overwrite an | ||
1843 | 5193 | # existing .o file with -o, though they will create one. | ||
1844 | 5194 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
1845 | 5195 | rm -f conftest2.* | ||
1846 | 5196 | if { { case "(($ac_try" in | ||
1847 | 5197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1848 | 5198 | *) ac_try_echo=$ac_try;; | ||
1849 | 5199 | esac | ||
1850 | 5200 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1851 | 5201 | $as_echo "$ac_try_echo"; } >&5 | ||
1852 | 5202 | (eval "$ac_try") 2>&5 | ||
1853 | 5203 | ac_status=$? | ||
1854 | 5204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1855 | 5205 | test $ac_status = 0; } && | ||
1856 | 5206 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
1857 | 5207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1858 | 5208 | *) ac_try_echo=$ac_try;; | ||
1859 | 5209 | esac | ||
1860 | 5210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1861 | 5211 | $as_echo "$ac_try_echo"; } >&5 | ||
1862 | 5212 | (eval "$ac_try") 2>&5 | ||
1863 | 5213 | ac_status=$? | ||
1864 | 5214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1865 | 5215 | test $ac_status = 0; }; | ||
1866 | 5216 | then | ||
1867 | 5217 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | ||
1868 | 5218 | if test "x$CC" != xcc; then | ||
1869 | 5219 | # Test first that cc exists at all. | ||
1870 | 5220 | if { ac_try='cc -c conftest.$ac_ext >&5' | ||
1871 | 5221 | { { case "(($ac_try" in | ||
1872 | 5222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1873 | 5223 | *) ac_try_echo=$ac_try;; | ||
1874 | 5224 | esac | ||
1875 | 5225 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1876 | 5226 | $as_echo "$ac_try_echo"; } >&5 | ||
1877 | 5227 | (eval "$ac_try") 2>&5 | ||
1878 | 5228 | ac_status=$? | ||
1879 | 5229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1880 | 5230 | test $ac_status = 0; }; }; then | ||
1881 | 5231 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | ||
1882 | 5232 | rm -f conftest2.* | ||
1883 | 5233 | if { { case "(($ac_try" in | ||
1884 | 5234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1885 | 5235 | *) ac_try_echo=$ac_try;; | ||
1886 | 5236 | esac | ||
1887 | 5237 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1888 | 5238 | $as_echo "$ac_try_echo"; } >&5 | ||
1889 | 5239 | (eval "$ac_try") 2>&5 | ||
1890 | 5240 | ac_status=$? | ||
1891 | 5241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1892 | 5242 | test $ac_status = 0; } && | ||
1893 | 5243 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | ||
1894 | 5244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1895 | 5245 | *) ac_try_echo=$ac_try;; | ||
1896 | 5246 | esac | ||
1897 | 5247 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1898 | 5248 | $as_echo "$ac_try_echo"; } >&5 | ||
1899 | 5249 | (eval "$ac_try") 2>&5 | ||
1900 | 5250 | ac_status=$? | ||
1901 | 5251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1902 | 5252 | test $ac_status = 0; }; | ||
1903 | 5253 | then | ||
1904 | 5254 | # cc works too. | ||
1905 | 5255 | : | ||
1906 | 5256 | else | ||
1907 | 5257 | # cc exists but doesn't like -o. | ||
1908 | 5258 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
1909 | 5259 | fi | ||
1910 | 5260 | fi | ||
1911 | 5261 | fi | ||
1912 | 5262 | else | ||
1913 | 5263 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | ||
1914 | 5264 | fi | ||
1915 | 5265 | rm -f core conftest* | ||
1916 | 5266 | |||
1917 | 5267 | fi | ||
1918 | 5268 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | ||
1919 | 5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
1920 | 5270 | $as_echo "yes" >&6; } | ||
1921 | 5271 | else | ||
1922 | 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
1923 | 5273 | $as_echo "no" >&6; } | ||
1924 | 5274 | |||
1925 | 5275 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | ||
1926 | 5276 | |||
1927 | 5277 | fi | ||
1928 | 5278 | |||
1929 | 5279 | # FIXME: we rely on the cache variable name because | ||
1930 | 5280 | # there is no other way. | ||
1931 | 5281 | set dummy $CC | ||
1932 | 5282 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | ||
1933 | 5283 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | ||
1934 | 5284 | if test "$am_t" != yes; then | ||
1935 | 5285 | # Losing compiler, so override with the script. | ||
1936 | 5286 | # FIXME: It is wrong to rewrite CC. | ||
1937 | 5287 | # But if we don't then we get into trouble of one sort or another. | ||
1938 | 5288 | # A longer-term fix would be to have automake use am__CC in this case, | ||
1939 | 5289 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | ||
1940 | 5290 | CC="$am_aux_dir/compile $CC" | ||
1941 | 5291 | fi | ||
1942 | 5292 | |||
1943 | 5330 | 5293 | ||
1944 | 5331 | 5294 | ||
1945 | 5332 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 5295 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
1946 | @@ -7954,7 +7917,7 @@ | |||
1947 | 7954 | rm -rf conftest* | 7917 | rm -rf conftest* |
1948 | 7955 | ;; | 7918 | ;; |
1949 | 7956 | 7919 | ||
1951 | 7957 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | 7920 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
1952 | 7958 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 7921 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
1953 | 7959 | # Find out which ABI we are using. | 7922 | # Find out which ABI we are using. |
1954 | 7960 | echo 'int i;' > conftest.$ac_ext | 7923 | echo 'int i;' > conftest.$ac_ext |
1955 | @@ -7972,10 +7935,7 @@ | |||
1956 | 7972 | x86_64-*linux*) | 7935 | x86_64-*linux*) |
1957 | 7973 | LD="${LD-ld} -m elf_i386" | 7936 | LD="${LD-ld} -m elf_i386" |
1958 | 7974 | ;; | 7937 | ;; |
1963 | 7975 | powerpc64le-*linux*) | 7938 | ppc64-*linux*|powerpc64-*linux*) |
1960 | 7976 | LD="${LD-ld} -m elf32lppclinux" | ||
1961 | 7977 | ;; | ||
1962 | 7978 | powerpc64-*linux*) | ||
1964 | 7979 | LD="${LD-ld} -m elf32ppclinux" | 7939 | LD="${LD-ld} -m elf32ppclinux" |
1965 | 7980 | ;; | 7940 | ;; |
1966 | 7981 | s390x-*linux*) | 7941 | s390x-*linux*) |
1967 | @@ -7994,10 +7954,7 @@ | |||
1968 | 7994 | x86_64-*linux*) | 7954 | x86_64-*linux*) |
1969 | 7995 | LD="${LD-ld} -m elf_x86_64" | 7955 | LD="${LD-ld} -m elf_x86_64" |
1970 | 7996 | ;; | 7956 | ;; |
1975 | 7997 | powerpcle-*linux*) | 7957 | ppc*-*linux*|powerpc*-*linux*) |
1972 | 7998 | LD="${LD-ld} -m elf64lppc" | ||
1973 | 7999 | ;; | ||
1974 | 8000 | powerpc-*linux*) | ||
1976 | 8001 | LD="${LD-ld} -m elf64ppc" | 7958 | LD="${LD-ld} -m elf64ppc" |
1977 | 8002 | ;; | 7959 | ;; |
1978 | 8003 | s390*-*linux*|s390*-*tpf*) | 7960 | s390*-*linux*|s390*-*tpf*) |
1979 | @@ -12178,14 +12135,10 @@ | |||
1980 | 12178 | # before this can be enabled. | 12135 | # before this can be enabled. |
1981 | 12179 | hardcode_into_libs=yes | 12136 | hardcode_into_libs=yes |
1982 | 12180 | 12137 | ||
1983 | 12181 | # Add ABI-specific directories to the system library path. | ||
1984 | 12182 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | ||
1985 | 12183 | |||
1986 | 12184 | # Append ld.so.conf contents to the search path | 12138 | # Append ld.so.conf contents to the search path |
1987 | 12185 | if test -f /etc/ld.so.conf; then | 12139 | if test -f /etc/ld.so.conf; then |
1988 | 12186 | 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' ' '` | 12140 | 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' ' '` |
1991 | 12187 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 12141 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1990 | 12188 | |||
1992 | 12189 | fi | 12142 | fi |
1993 | 12190 | 12143 | ||
1994 | 12191 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 12144 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
1995 | @@ -14241,123 +14194,32 @@ | |||
1996 | 14241 | 14194 | ||
1997 | 14242 | 14195 | ||
1998 | 14243 | ################################################## | 14196 | ################################################## |
1999 | 14244 | # Compiler warnings | ||
2000 | 14245 | ################################################## | ||
2001 | 14246 | |||
2002 | 14247 | save_CFLAGS="$CFLAGS" | ||
2003 | 14248 | CFLAGS= | ||
2004 | 14249 | |||
2005 | 14250 | for flag in \ | ||
2006 | 14251 | -Wall -Wextra \ | ||
2007 | 14252 | -Wunused -Wreturn-type -Wswitch -Wcomment -Wtrigraphs \ | ||
2008 | 14253 | -Wchar-subscripts -Wparentheses -Winline -Wredundant-decls \ | ||
2009 | 14254 | -Wformat-nonliteral -Werror=format-security \ | ||
2010 | 14255 | -Wsign-compare -Werror=implicit-function-declaration \ | ||
2011 | 14256 | -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ | ||
2012 | 14257 | -Wnoaggregate-return -Wcast-align -Wimplicit -Wuninitialized \ | ||
2013 | 14258 | -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ | ||
2014 | 14259 | -Wpacked -Wmissing-format-attribute -Wshadow \ | ||
2015 | 14260 | -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \ | ||
2016 | 14261 | -Wdeclaration-after-statement -Wold-style-definition \ | ||
2017 | 14262 | -Wno-missing-field-initializers -Wno-unused-parameter \ | ||
2018 | 14263 | -Wunused-variable -Wunused-function \ | ||
2019 | 14264 | -Wempty-body -Wno-switch-enum \ | ||
2020 | 14265 | -fno-common; do | ||
2021 | 14266 | |||
2022 | 14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 | ||
2023 | 14268 | $as_echo_n "checking if $CC supports $flag flag... " >&6; } | ||
2024 | 14269 | if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : | ||
2025 | 14270 | $as_echo_n "(cached) " >&6 | ||
2026 | 14271 | else | ||
2027 | 14272 | |||
2028 | 14273 | if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : | ||
2029 | 14274 | $as_echo_n "(cached) " >&6 | ||
2030 | 14275 | else | ||
2031 | 14276 | ac_save_CFLAGS="$CFLAGS" | ||
2032 | 14277 | CFLAGS="$CFLAGS $flag" | ||
2033 | 14278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2034 | 14279 | /* end confdefs.h. */ | ||
2035 | 14280 | int a; | ||
2036 | 14281 | _ACEOF | ||
2037 | 14282 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2038 | 14283 | eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" | ||
2039 | 14284 | else | ||
2040 | 14285 | eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" | ||
2041 | 14286 | fi | ||
2042 | 14287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2043 | 14288 | CFLAGS="$ac_save_CFLAGS" | ||
2044 | 14289 | |||
2045 | 14290 | fi | ||
2046 | 14291 | |||
2047 | 14292 | |||
2048 | 14293 | if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : | ||
2049 | 14294 | |||
2050 | 14295 | fi | ||
2051 | 14296 | |||
2052 | 14297 | fi | ||
2053 | 14298 | eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` | ||
2054 | 14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2055 | 14300 | $as_echo "$ac_res" >&6; } | ||
2056 | 14301 | |||
2057 | 14302 | if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : | ||
2058 | 14303 | CFLAGS="$CFLAGS $flag"; DEBUG_CFLAGS="$DEBUG_CFLAGS $flag"; | ||
2059 | 14304 | fi | ||
2060 | 14305 | |||
2061 | 14306 | done | ||
2062 | 14307 | |||
2063 | 14308 | AM_CFLAGS="$AM_CFLAGS $CFLAGS" | ||
2064 | 14309 | CFLAGS="$save_CFLAGS" | ||
2065 | 14310 | |||
2066 | 14311 | ################################################## | ||
2067 | 14312 | # Checks for gtk-doc and docbook-tools | 14197 | # Checks for gtk-doc and docbook-tools |
2068 | 14313 | ################################################## | 14198 | ################################################## |
2069 | 14314 | 14199 | ||
2070 | 14315 | 14200 | ||
2071 | 14316 | 14201 | ||
2072 | 14317 | 14202 | ||
2099 | 14318 | gtk_doc_requires="gtk-doc >= 1.13" | 14203 | # Extract the first word of "gtkdoc-check", so it can be a program name with args. |
2074 | 14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 | ||
2075 | 14320 | $as_echo_n "checking for gtk-doc... " >&6; } | ||
2076 | 14321 | if test -n "$PKG_CONFIG" && \ | ||
2077 | 14322 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 | ||
2078 | 14323 | ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 | ||
2079 | 14324 | ac_status=$? | ||
2080 | 14325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2081 | 14326 | test $ac_status = 0; }; then | ||
2082 | 14327 | have_gtk_doc=yes | ||
2083 | 14328 | else | ||
2084 | 14329 | have_gtk_doc=no | ||
2085 | 14330 | fi | ||
2086 | 14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 | ||
2087 | 14332 | $as_echo "$have_gtk_doc" >&6; } | ||
2088 | 14333 | |||
2089 | 14334 | if test "$have_gtk_doc" = "no"; then | ||
2090 | 14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
2091 | 14336 | You will not be able to create source packages with 'make dist' | ||
2092 | 14337 | because $gtk_doc_requires is not found." >&5 | ||
2093 | 14338 | $as_echo "$as_me: WARNING: | ||
2094 | 14339 | You will not be able to create source packages with 'make dist' | ||
2095 | 14340 | because $gtk_doc_requires is not found." >&2;} | ||
2096 | 14341 | fi | ||
2097 | 14342 | |||
2098 | 14343 | # Extract the first word of "gtkdoc-check", so it can be a program name with args. | ||
2100 | 14344 | set dummy gtkdoc-check; ac_word=$2 | 14204 | set dummy gtkdoc-check; ac_word=$2 |
2101 | 14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2102 | 14346 | $as_echo_n "checking for $ac_word... " >&6; } | 14206 | $as_echo_n "checking for $ac_word... " >&6; } |
2104 | 14347 | if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : | 14207 | if ${ac_cv_path_GTKDOC_CHECK+:} false; then : |
2105 | 14348 | $as_echo_n "(cached) " >&6 | 14208 | $as_echo_n "(cached) " >&6 |
2106 | 14349 | else | 14209 | else |
2111 | 14350 | if test -n "$GTKDOC_CHECK"; then | 14210 | case $GTKDOC_CHECK in |
2112 | 14351 | ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. | 14211 | [\\/]* | ?:[\\/]*) |
2113 | 14352 | else | 14212 | ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. |
2114 | 14353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 14213 | ;; |
2115 | 14214 | *) | ||
2116 | 14215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2117 | 14354 | for as_dir in $PATH | 14216 | for as_dir in $PATH |
2118 | 14355 | do | 14217 | do |
2119 | 14356 | IFS=$as_save_IFS | 14218 | IFS=$as_save_IFS |
2120 | 14357 | test -z "$as_dir" && as_dir=. | 14219 | test -z "$as_dir" && as_dir=. |
2121 | 14358 | for ac_exec_ext in '' $ac_executable_extensions; do | 14220 | for ac_exec_ext in '' $ac_executable_extensions; do |
2122 | 14359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 14221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2124 | 14360 | ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" | 14222 | ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" |
2125 | 14361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 14223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2126 | 14362 | break 2 | 14224 | break 2 |
2127 | 14363 | fi | 14225 | fi |
2128 | @@ -14365,9 +14227,10 @@ | |||
2129 | 14365 | done | 14227 | done |
2130 | 14366 | IFS=$as_save_IFS | 14228 | IFS=$as_save_IFS |
2131 | 14367 | 14229 | ||
2135 | 14368 | fi | 14230 | ;; |
2136 | 14369 | fi | 14231 | esac |
2137 | 14370 | GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK | 14232 | fi |
2138 | 14233 | GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK | ||
2139 | 14371 | if test -n "$GTKDOC_CHECK"; then | 14234 | if test -n "$GTKDOC_CHECK"; then |
2140 | 14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 | 14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 |
2141 | 14373 | $as_echo "$GTKDOC_CHECK" >&6; } | 14236 | $as_echo "$GTKDOC_CHECK" >&6; } |
2142 | @@ -14377,46 +14240,6 @@ | |||
2143 | 14377 | fi | 14240 | fi |
2144 | 14378 | 14241 | ||
2145 | 14379 | 14242 | ||
2146 | 14380 | # Extract the first word of "gtkdoc-check", so it can be a program name with args. | ||
2147 | 14381 | set dummy gtkdoc-check; ac_word=$2 | ||
2148 | 14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2149 | 14383 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2150 | 14384 | if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : | ||
2151 | 14385 | $as_echo_n "(cached) " >&6 | ||
2152 | 14386 | else | ||
2153 | 14387 | case $GTKDOC_CHECK_PATH in | ||
2154 | 14388 | [\\/]* | ?:[\\/]*) | ||
2155 | 14389 | ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. | ||
2156 | 14390 | ;; | ||
2157 | 14391 | *) | ||
2158 | 14392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2159 | 14393 | for as_dir in $PATH | ||
2160 | 14394 | do | ||
2161 | 14395 | IFS=$as_save_IFS | ||
2162 | 14396 | test -z "$as_dir" && as_dir=. | ||
2163 | 14397 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2164 | 14398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2165 | 14399 | ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" | ||
2166 | 14400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2167 | 14401 | break 2 | ||
2168 | 14402 | fi | ||
2169 | 14403 | done | ||
2170 | 14404 | done | ||
2171 | 14405 | IFS=$as_save_IFS | ||
2172 | 14406 | |||
2173 | 14407 | ;; | ||
2174 | 14408 | esac | ||
2175 | 14409 | fi | ||
2176 | 14410 | GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH | ||
2177 | 14411 | if test -n "$GTKDOC_CHECK_PATH"; then | ||
2178 | 14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 | ||
2179 | 14413 | $as_echo "$GTKDOC_CHECK_PATH" >&6; } | ||
2180 | 14414 | else | ||
2181 | 14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2182 | 14416 | $as_echo "no" >&6; } | ||
2183 | 14417 | fi | ||
2184 | 14418 | |||
2185 | 14419 | |||
2186 | 14420 | for ac_prog in gtkdoc-rebase | 14243 | for ac_prog in gtkdoc-rebase |
2187 | 14421 | do | 14244 | do |
2188 | 14422 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 14245 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2189 | @@ -14523,19 +14346,18 @@ | |||
2190 | 14523 | fi | 14346 | fi |
2191 | 14524 | 14347 | ||
2192 | 14525 | 14348 | ||
2206 | 14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 | 14349 | if test x$enable_gtk_doc = xyes; then |
2207 | 14527 | $as_echo_n "checking whether to build gtk-doc documentation... " >&6; } | 14350 | if test -n "$PKG_CONFIG" && \ |
2208 | 14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 | 14351 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5 |
2209 | 14529 | $as_echo "$enable_gtk_doc" >&6; } | 14352 | ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5 |
2210 | 14530 | 14353 | ac_status=$? | |
2211 | 14531 | if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then | 14354 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2212 | 14532 | as_fn_error $? " | 14355 | test $ac_status = 0; }; then |
2213 | 14533 | You must have $gtk_doc_requires installed to build documentation for | 14356 | : |
2214 | 14534 | $PACKAGE_NAME. Please install gtk-doc or disable building the | 14357 | else |
2215 | 14535 | documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 | 14358 | as_fn_error $? "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5 |
2216 | 14536 | fi | 14359 | fi |
2217 | 14537 | 14360 | if test "x$PACKAGE_NAME" != "xglib"; then | |
2205 | 14538 | if test "x$PACKAGE_NAME" != "xglib"; then | ||
2218 | 14539 | 14361 | ||
2219 | 14540 | pkg_failed=no | 14362 | pkg_failed=no |
2220 | 14541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 | 14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 |
2221 | @@ -14607,8 +14429,14 @@ | |||
2222 | 14607 | $as_echo "yes" >&6; } | 14429 | $as_echo "yes" >&6; } |
2223 | 14608 | 14430 | ||
2224 | 14609 | fi | 14431 | fi |
2225 | 14432 | fi | ||
2226 | 14610 | fi | 14433 | fi |
2227 | 14611 | 14434 | ||
2228 | 14435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 | ||
2229 | 14436 | $as_echo_n "checking whether to build gtk-doc documentation... " >&6; } | ||
2230 | 14437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 | ||
2231 | 14438 | $as_echo "$enable_gtk_doc" >&6; } | ||
2232 | 14439 | |||
2233 | 14612 | # Check whether --enable-gtk-doc-html was given. | 14440 | # Check whether --enable-gtk-doc-html was given. |
2234 | 14613 | if test "${enable_gtk_doc_html+set}" = set; then : | 14441 | if test "${enable_gtk_doc_html+set}" = set; then : |
2235 | 14614 | enableval=$enable_gtk_doc_html; | 14442 | enableval=$enable_gtk_doc_html; |
2236 | @@ -14633,14 +14461,6 @@ | |||
2237 | 14633 | fi | 14461 | fi |
2238 | 14634 | 14462 | ||
2239 | 14635 | 14463 | ||
2240 | 14636 | if test x$have_gtk_doc = xyes; then | ||
2241 | 14637 | HAVE_GTK_DOC_TRUE= | ||
2242 | 14638 | HAVE_GTK_DOC_FALSE='#' | ||
2243 | 14639 | else | ||
2244 | 14640 | HAVE_GTK_DOC_TRUE='#' | ||
2245 | 14641 | HAVE_GTK_DOC_FALSE= | ||
2246 | 14642 | fi | ||
2247 | 14643 | |||
2248 | 14644 | if test x$enable_gtk_doc = xyes; then | 14464 | if test x$enable_gtk_doc = xyes; then |
2249 | 14645 | ENABLE_GTK_DOC_TRUE= | 14465 | ENABLE_GTK_DOC_TRUE= |
2250 | 14646 | ENABLE_GTK_DOC_FALSE='#' | 14466 | ENABLE_GTK_DOC_FALSE='#' |
2251 | @@ -15298,10 +15118,6 @@ | |||
2252 | 15298 | as_fn_error $? "conditional \"ENABLE_PIXBUF_LOADER\" was never defined. | 15118 | as_fn_error $? "conditional \"ENABLE_PIXBUF_LOADER\" was never defined. |
2253 | 15299 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 15119 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2254 | 15300 | fi | 15120 | fi |
2255 | 15301 | if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then | ||
2256 | 15302 | as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. | ||
2257 | 15303 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | ||
2258 | 15304 | fi | ||
2259 | 15305 | if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then | 15121 | if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then |
2260 | 15306 | as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. | 15122 | as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. |
2261 | 15307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 15123 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2262 | @@ -15731,7 +15547,7 @@ | |||
2263 | 15731 | # report actual input values of CONFIG_FILES etc. instead of their | 15547 | # report actual input values of CONFIG_FILES etc. instead of their |
2264 | 15732 | # values after options handling. | 15548 | # values after options handling. |
2265 | 15733 | ac_log=" | 15549 | ac_log=" |
2267 | 15734 | This file was extended by RSVG $as_me 2.40.6, which was | 15550 | This file was extended by RSVG $as_me 2.40.7, which was |
2268 | 15735 | generated by GNU Autoconf 2.69. Invocation command line was | 15551 | generated by GNU Autoconf 2.69. Invocation command line was |
2269 | 15736 | 15552 | ||
2270 | 15737 | CONFIG_FILES = $CONFIG_FILES | 15553 | CONFIG_FILES = $CONFIG_FILES |
2271 | @@ -15797,7 +15613,7 @@ | |||
2272 | 15797 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 15613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2273 | 15798 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 15614 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
2274 | 15799 | ac_cs_version="\\ | 15615 | ac_cs_version="\\ |
2276 | 15800 | RSVG config.status 2.40.6 | 15616 | RSVG config.status 2.40.7 |
2277 | 15801 | configured by $0, generated by GNU Autoconf 2.69, | 15617 | configured by $0, generated by GNU Autoconf 2.69, |
2278 | 15802 | with options \\"\$ac_cs_config\\" | 15618 | with options \\"\$ac_cs_config\\" |
2279 | 15803 | 15619 | ||
2280 | 15804 | 15620 | ||
2281 | === added file 'configure.ac' | |||
2282 | --- configure.ac 1970-01-01 00:00:00 +0000 | |||
2283 | +++ configure.ac 2015-02-16 19:51:53 +0000 | |||
2284 | @@ -0,0 +1,294 @@ | |||
2285 | 1 | m4_define([rsvg_major_version],[2]) | ||
2286 | 2 | m4_define([rsvg_minor_version],[40]) | ||
2287 | 3 | m4_define([rsvg_micro_version],[7]) | ||
2288 | 4 | m4_define([rsvg_extra_version],[]) | ||
2289 | 5 | m4_define([rsvg_version],[rsvg_major_version.rsvg_minor_version.rsvg_micro_version()rsvg_extra_version]) | ||
2290 | 6 | m4_define([rsvg_lt_version_info],m4_eval(rsvg_major_version + rsvg_minor_version):rsvg_micro_version:rsvg_minor_version) | ||
2291 | 7 | |||
2292 | 8 | AC_INIT([RSVG],[rsvg_version],[https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg],[librsvg]) | ||
2293 | 9 | |||
2294 | 10 | AC_CONFIG_HEADERS([config.h]) | ||
2295 | 11 | AC_CONFIG_SRCDIR([rsvg.h]) | ||
2296 | 12 | AC_CONFIG_MACRO_DIR([m4]) | ||
2297 | 13 | |||
2298 | 14 | AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2]) | ||
2299 | 15 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
2300 | 16 | |||
2301 | 17 | AM_MAINTAINER_MODE([enable]) | ||
2302 | 18 | |||
2303 | 19 | dnl =========================================================================== | ||
2304 | 20 | dnl API versioning | ||
2305 | 21 | dnl =========================================================================== | ||
2306 | 22 | |||
2307 | 23 | RSVG_API_VERSION=2.0 | ||
2308 | 24 | RSVG_API_MAJOR_VERSION=2 | ||
2309 | 25 | RSVG_API_MINOR_VERSION=0 | ||
2310 | 26 | |||
2311 | 27 | AC_SUBST([RSVG_API_VERSION]) | ||
2312 | 28 | AC_SUBST([RSVG_API_MAJOR_VERSION]) | ||
2313 | 29 | AC_SUBST([RSVG_API_MINOR_VERSION]) | ||
2314 | 30 | AC_SUBST([RSVG_API_VERSION_U],[AS_TR_SH([$RSVG_API_VERSION])]) | ||
2315 | 31 | |||
2316 | 32 | dnl =========================================================================== | ||
2317 | 33 | |||
2318 | 34 | GLIB_REQUIRED=2.12.0 | ||
2319 | 35 | GIO_REQUIRED=2.24.0 | ||
2320 | 36 | LIBXML_REQUIRED=2.7.0 | ||
2321 | 37 | CAIRO_REQUIRED=1.2.0 | ||
2322 | 38 | PANGOCAIRO_REQUIRED=1.32.6 | ||
2323 | 39 | GDK_PIXBUF_REQUIRED=2.20 | ||
2324 | 40 | GTK3_REQUIRED=3.2.0 | ||
2325 | 41 | CROCO_REQUIRED=0.6.1 | ||
2326 | 42 | |||
2327 | 43 | # =========================================================================== | ||
2328 | 44 | |||
2329 | 45 | AC_SUBST([RSVG_LT_VERSION_INFO],[rsvg_lt_version_info]) | ||
2330 | 46 | AC_SUBST([LIBRSVG_MAJOR_VERSION],[rsvg_major_version]) | ||
2331 | 47 | AC_SUBST([LIBRSVG_MINOR_VERSION],[rsvg_minor_version]) | ||
2332 | 48 | AC_SUBST([LIBRSVG_MICRO_VERSION],[rsvg_micro_version]) | ||
2333 | 49 | |||
2334 | 50 | dnl =========================================================================== | ||
2335 | 51 | |||
2336 | 52 | AC_PROG_LN_S | ||
2337 | 53 | AC_ISC_POSIX | ||
2338 | 54 | AC_PROG_CC | ||
2339 | 55 | AC_PROG_CPP | ||
2340 | 56 | AC_PROG_AWK | ||
2341 | 57 | AC_STDC_HEADERS | ||
2342 | 58 | AM_PROG_CC_C_O | ||
2343 | 59 | |||
2344 | 60 | AC_C_BIGENDIAN | ||
2345 | 61 | |||
2346 | 62 | PKG_PROG_PKG_CONFIG | ||
2347 | 63 | |||
2348 | 64 | LT_INIT([win32-dll]) | ||
2349 | 65 | LT_LIB_M | ||
2350 | 66 | |||
2351 | 67 | dnl =========================================================================== | ||
2352 | 68 | |||
2353 | 69 | #AC_CANONICAL_HOST | ||
2354 | 70 | |||
2355 | 71 | AC_MSG_CHECKING([for some Win32 platform]) | ||
2356 | 72 | case "$host" in | ||
2357 | 73 | *-*-mingw*|*-*-cygwin*) | ||
2358 | 74 | platform_win32=yes | ||
2359 | 75 | ;; | ||
2360 | 76 | *) | ||
2361 | 77 | platform_win32=no | ||
2362 | 78 | ;; | ||
2363 | 79 | esac | ||
2364 | 80 | AC_MSG_RESULT([$platform_win32]) | ||
2365 | 81 | AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") | ||
2366 | 82 | |||
2367 | 83 | AC_MSG_CHECKING([for native Win32]) | ||
2368 | 84 | case "$host" in | ||
2369 | 85 | *-*-mingw*) | ||
2370 | 86 | native_win32=yes | ||
2371 | 87 | ;; | ||
2372 | 88 | *) | ||
2373 | 89 | native_win32=no | ||
2374 | 90 | ;; | ||
2375 | 91 | esac | ||
2376 | 92 | AC_MSG_RESULT([$native_win32]) | ||
2377 | 93 | AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes") | ||
2378 | 94 | |||
2379 | 95 | dnl =========================================================================== | ||
2380 | 96 | |||
2381 | 97 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
2382 | 98 | AC_SUBST(GLIB_MKENUMS) | ||
2383 | 99 | |||
2384 | 100 | PKG_CHECK_MODULES(LIBRSVG, \ | ||
2385 | 101 | gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \ | ||
2386 | 102 | glib-2.0 >= $GLIB_REQUIRED \ | ||
2387 | 103 | gio-2.0 >= $GIO_REQUIRED \ | ||
2388 | 104 | libxml-2.0 >= $LIBXML_REQUIRED \ | ||
2389 | 105 | pangocairo >= $PANGOCAIRO_REQUIRED \ | ||
2390 | 106 | cairo >= $CAIRO_REQUIRED \ | ||
2391 | 107 | cairo-png >= $CAIRO_REQUIRED | ||
2392 | 108 | libcroco-0.6 >= $CROCO_REQUIRED) | ||
2393 | 109 | |||
2394 | 110 | PKG_CHECK_MODULES([GTHREAD],[gthread-2.0 >= $GLIB_REQUIRED]) | ||
2395 | 111 | |||
2396 | 112 | PKG_CHECK_MODULES([GMODULE],[gmodule-2.0]) | ||
2397 | 113 | |||
2398 | 114 | case "$host" in | ||
2399 | 115 | *-*-mingw*) | ||
2400 | 116 | PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-windows-2.0 gdk-pixbuf-2.0 cairo pangocairo]) | ||
2401 | 117 | ;; | ||
2402 | 118 | *) | ||
2403 | 119 | PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-unix-2.0 gdk-pixbuf-2.0 cairo pangocairo]) | ||
2404 | 120 | ;; | ||
2405 | 121 | esac | ||
2406 | 122 | |||
2407 | 123 | dnl =========================================================================== | ||
2408 | 124 | |||
2409 | 125 | AC_CHECK_FUNCS(strtok_r) | ||
2410 | 126 | |||
2411 | 127 | # =========================================================================== | ||
2412 | 128 | # GTK | ||
2413 | 129 | # =========================================================================== | ||
2414 | 130 | |||
2415 | 131 | PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_REQUIRED],[have_gtk_3=yes],[have_gtk_3=no]) | ||
2416 | 132 | |||
2417 | 133 | GTK3_BINARY_VERSION= | ||
2418 | 134 | |||
2419 | 135 | if test "$have_gtk_3" = "yes"; then | ||
2420 | 136 | GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`" | ||
2421 | 137 | fi | ||
2422 | 138 | |||
2423 | 139 | AC_SUBST([GTK3_BINARY_VERSION]) | ||
2424 | 140 | |||
2425 | 141 | AM_CONDITIONAL([HAVE_GTK_3],[test "$have_gtk_3" = "yes"]) | ||
2426 | 142 | |||
2427 | 143 | dnl =========================================================================== | ||
2428 | 144 | dnl GDK-Pixbuf SVG loader | ||
2429 | 145 | dnl =========================================================================== | ||
2430 | 146 | |||
2431 | 147 | AC_MSG_CHECKING([whether to build the GDK-Pixbuf SVG loader]) | ||
2432 | 148 | AC_ARG_ENABLE([pixbuf-loader], | ||
2433 | 149 | [AS_HELP_STRING([--disable-pixbuf-loader],[Disable a RSVG based GdkPixbuf loader (default=yes)])], | ||
2434 | 150 | [],[enable_pixbuf_loader=yes]) | ||
2435 | 151 | AC_MSG_RESULT([$enable_pixbuf_loader]) | ||
2436 | 152 | |||
2437 | 153 | gdk_pixbuf_moduledir= | ||
2438 | 154 | if test "$enable_pixbuf_loader" = "yes"; then | ||
2439 | 155 | PKG_CHECK_MODULES([GDK_PIXBUF],[gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED]) | ||
2440 | 156 | |||
2441 | 157 | AC_PATH_PROGS([GDK_PIXBUF_QUERYLOADERS],[gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-64 gdk-pixbuf-query-loaders-32],[none]) | ||
2442 | 158 | |||
2443 | 159 | if test "x$GDK_PIXBUF_QUERYLOADERS" = "xnone"; then | ||
2444 | 160 | AC_MSG_ERROR([gdk-pixbuf-query-loaders not found in path]) | ||
2445 | 161 | fi | ||
2446 | 162 | |||
2447 | 163 | # First try the standalone gdk-pixbuf | ||
2448 | 164 | gdk_pixbuf_binary_version="`$PKG_CONFIG --variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`" | ||
2449 | 165 | gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`" | ||
2450 | 166 | gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0` | ||
2451 | 167 | gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0` | ||
2452 | 168 | fi | ||
2453 | 169 | |||
2454 | 170 | AC_SUBST([gdk_pixbuf_binary_version]) | ||
2455 | 171 | AC_SUBST([gdk_pixbuf_binarydir]) | ||
2456 | 172 | AC_SUBST([gdk_pixbuf_moduledir]) | ||
2457 | 173 | AC_SUBST([gdk_pixbuf_cache_file]) | ||
2458 | 174 | |||
2459 | 175 | AM_CONDITIONAL([ENABLE_PIXBUF_LOADER],[test "$enable_pixbuf_loader" = "yes"]) | ||
2460 | 176 | |||
2461 | 177 | ########################################################## | ||
2462 | 178 | # Check for -Bsymbolic-functions linker flag used to avoid | ||
2463 | 179 | # intra-library PLT jumps, if available. | ||
2464 | 180 | ########################################################## | ||
2465 | 181 | |||
2466 | 182 | AC_ARG_ENABLE([Bsymbolic], | ||
2467 | 183 | [AS_HELP_STRING([--disable-Bsymbolic], | ||
2468 | 184 | [disable linking with -Bsymbolic])], | ||
2469 | 185 | [],[enable_Bsymbolic=yes]) | ||
2470 | 186 | |||
2471 | 187 | BSYMBOLIC_LDFLAG= | ||
2472 | 188 | if test "$enable_Bsymbolic" != "no"; then | ||
2473 | 189 | CC_CHECK_LDFLAGS(["-Wl,-Bsymbolic-functions"], | ||
2474 | 190 | [BSYMBOLIC_LDFLAG="-Wl,-Bsymbolic-functions"], | ||
2475 | 191 | [if test "$enable_Bsymbolic" = "auto"; then | ||
2476 | 192 | AC_MSG_WARN([-Bsymbolic not supported by ld; disabling]) | ||
2477 | 193 | enable_Bsymbolic=no | ||
2478 | 194 | else | ||
2479 | 195 | AC_MSG_ERROR([-Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable]) | ||
2480 | 196 | fi]) | ||
2481 | 197 | fi | ||
2482 | 198 | |||
2483 | 199 | AC_SUBST([BSYMBOLIC_LDFLAG]) | ||
2484 | 200 | |||
2485 | 201 | ################################################## | ||
2486 | 202 | # Checks for gtk-doc and docbook-tools | ||
2487 | 203 | ################################################## | ||
2488 | 204 | |||
2489 | 205 | GTK_DOC_CHECK([1.13],[--flavour no-tmpl]) | ||
2490 | 206 | |||
2491 | 207 | AC_SUBST([GLIB_PREFIX],[$($PKG_CONFIG --variable=prefix glib-2.0)]) | ||
2492 | 208 | AC_SUBST([GDK_PIXBUF_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)]) | ||
2493 | 209 | AC_SUBST([GTK_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)]) | ||
2494 | 210 | AC_SUBST([CAIRO_PREFIX],[$($PKG_CONFIG --variable=prefix cairo)]) | ||
2495 | 211 | |||
2496 | 212 | dnl =========================================================================== | ||
2497 | 213 | dnl Do we build the miscellaenous tools provided with librsvg ? | ||
2498 | 214 | |||
2499 | 215 | AC_ARG_ENABLE(tools, | ||
2500 | 216 | AC_HELP_STRING([--disable-tools], | ||
2501 | 217 | [do not build miscellaenous tools [default=no]]), | ||
2502 | 218 | [build_misc_tools=$enableval], | ||
2503 | 219 | [build_misc_tools=yes]) | ||
2504 | 220 | |||
2505 | 221 | AC_MSG_CHECKING(whether to build miscellaenous tools) | ||
2506 | 222 | if test "x$build_misc_tools" = "xyes" ; then | ||
2507 | 223 | AC_MSG_RESULT(yes) | ||
2508 | 224 | else | ||
2509 | 225 | AC_MSG_RESULT(no) | ||
2510 | 226 | fi | ||
2511 | 227 | AM_CONDITIONAL([BUILD_MISC_TOOLS], [test "x$build_misc_tools" = "xyes"]) | ||
2512 | 228 | |||
2513 | 229 | dnl =========================================================================== | ||
2514 | 230 | dnl Build introspectable bindings | ||
2515 | 231 | |||
2516 | 232 | # No automagic please! | ||
2517 | 233 | if test -z "$enable_introspection"; then | ||
2518 | 234 | enable_introspection=yes | ||
2519 | 235 | fi | ||
2520 | 236 | |||
2521 | 237 | GOBJECT_INTROSPECTION_CHECK([0.10.8]) | ||
2522 | 238 | |||
2523 | 239 | # Vala bindings | ||
2524 | 240 | VAPIGEN_CHECK([0.17.1.26],,,[no]) | ||
2525 | 241 | |||
2526 | 242 | dnl =========================================================================== | ||
2527 | 243 | |||
2528 | 244 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
2529 | 245 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
2530 | 246 | [AC_CHECK_HEADERS([locale.h]) | ||
2531 | 247 | if test $ac_cv_header_locale_h = yes; then | ||
2532 | 248 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
2533 | 249 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
2534 | 250 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
2535 | 251 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
2536 | 252 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
2537 | 253 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
2538 | 254 | fi | ||
2539 | 255 | fi]) | ||
2540 | 256 | |||
2541 | 257 | GLIB_LC_MESSAGES | ||
2542 | 258 | |||
2543 | 259 | dnl =========================================================================== | ||
2544 | 260 | |||
2545 | 261 | AC_SUBST([AM_CPPFLAGS]) | ||
2546 | 262 | AC_SUBST([AM_CFLAGS]) | ||
2547 | 263 | AC_SUBST([AM_LDFLAGS]) | ||
2548 | 264 | |||
2549 | 265 | AC_CONFIG_FILES([ | ||
2550 | 266 | librsvg-features.h | ||
2551 | 267 | Makefile | ||
2552 | 268 | librsvg-zip | ||
2553 | 269 | gdk-pixbuf-loader/Makefile | ||
2554 | 270 | tests/Makefile | ||
2555 | 271 | tests/pdiff/Makefile | ||
2556 | 272 | tools/Makefile | ||
2557 | 273 | doc/Makefile | ||
2558 | 274 | doc/version.xml | ||
2559 | 275 | ]) | ||
2560 | 276 | |||
2561 | 277 | AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}.pc:librsvg.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION]) | ||
2562 | 278 | AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}-uninstalled.pc:librsvg-uninstalled.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION]) | ||
2563 | 279 | |||
2564 | 280 | AC_OUTPUT | ||
2565 | 281 | |||
2566 | 282 | dnl ============================================================================================= | ||
2567 | 283 | echo " | ||
2568 | 284 | librsvg-$VERSION | ||
2569 | 285 | |||
2570 | 286 | prefix: ${prefix} | ||
2571 | 287 | compiler: ${CC} | ||
2572 | 288 | |||
2573 | 289 | Build introspectable bindings: ${found_introspection} | ||
2574 | 290 | Build Vala bindings: ${enable_vala} | ||
2575 | 291 | Build GdkPixbuf loader: ${enable_pixbuf_loader} | ||
2576 | 292 | GTK 3.0: ${have_gtk_3} | ||
2577 | 293 | Build miscellaenous tools: ${build_misc_tools} | ||
2578 | 294 | " | ||
2579 | 0 | 295 | ||
2580 | === removed file 'configure.in' | |||
2581 | --- configure.in 2014-12-10 10:09:37 +0000 | |||
2582 | +++ configure.in 1970-01-01 00:00:00 +0000 | |||
2583 | @@ -1,319 +0,0 @@ | |||
2584 | 1 | m4_define([rsvg_major_version],[2]) | ||
2585 | 2 | m4_define([rsvg_minor_version],[40]) | ||
2586 | 3 | m4_define([rsvg_micro_version],[6]) | ||
2587 | 4 | m4_define([rsvg_extra_version],[]) | ||
2588 | 5 | m4_define([rsvg_version],[rsvg_major_version.rsvg_minor_version.rsvg_micro_version()rsvg_extra_version]) | ||
2589 | 6 | m4_define([rsvg_lt_version_info],m4_eval(rsvg_major_version + rsvg_minor_version):rsvg_micro_version:rsvg_minor_version) | ||
2590 | 7 | |||
2591 | 8 | AC_INIT([RSVG],[rsvg_version],[https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg],[librsvg]) | ||
2592 | 9 | |||
2593 | 10 | AC_CONFIG_HEADERS([config.h]) | ||
2594 | 11 | AC_CONFIG_SRCDIR([rsvg.h]) | ||
2595 | 12 | AC_CONFIG_MACRO_DIR([m4]) | ||
2596 | 13 | |||
2597 | 14 | AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2]) | ||
2598 | 15 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | ||
2599 | 16 | |||
2600 | 17 | AM_MAINTAINER_MODE([enable]) | ||
2601 | 18 | |||
2602 | 19 | dnl =========================================================================== | ||
2603 | 20 | dnl API versioning | ||
2604 | 21 | dnl =========================================================================== | ||
2605 | 22 | |||
2606 | 23 | RSVG_API_VERSION=2.0 | ||
2607 | 24 | RSVG_API_MAJOR_VERSION=2 | ||
2608 | 25 | RSVG_API_MINOR_VERSION=0 | ||
2609 | 26 | |||
2610 | 27 | AC_SUBST([RSVG_API_VERSION]) | ||
2611 | 28 | AC_SUBST([RSVG_API_MAJOR_VERSION]) | ||
2612 | 29 | AC_SUBST([RSVG_API_MINOR_VERSION]) | ||
2613 | 30 | AC_SUBST([RSVG_API_VERSION_U],[AS_TR_SH([$RSVG_API_VERSION])]) | ||
2614 | 31 | |||
2615 | 32 | dnl =========================================================================== | ||
2616 | 33 | |||
2617 | 34 | GLIB_REQUIRED=2.12.0 | ||
2618 | 35 | GIO_REQUIRED=2.24.0 | ||
2619 | 36 | LIBXML_REQUIRED=2.7.0 | ||
2620 | 37 | CAIRO_REQUIRED=1.2.0 | ||
2621 | 38 | PANGOCAIRO_REQUIRED=1.32.6 | ||
2622 | 39 | GDK_PIXBUF_REQUIRED=2.20 | ||
2623 | 40 | GTK3_REQUIRED=3.2.0 | ||
2624 | 41 | CROCO_REQUIRED=0.6.1 | ||
2625 | 42 | |||
2626 | 43 | # =========================================================================== | ||
2627 | 44 | |||
2628 | 45 | AC_SUBST([RSVG_LT_VERSION_INFO],[rsvg_lt_version_info]) | ||
2629 | 46 | AC_SUBST([LIBRSVG_MAJOR_VERSION],[rsvg_major_version]) | ||
2630 | 47 | AC_SUBST([LIBRSVG_MINOR_VERSION],[rsvg_minor_version]) | ||
2631 | 48 | AC_SUBST([LIBRSVG_MICRO_VERSION],[rsvg_micro_version]) | ||
2632 | 49 | |||
2633 | 50 | dnl =========================================================================== | ||
2634 | 51 | |||
2635 | 52 | AC_PROG_LN_S | ||
2636 | 53 | AC_ISC_POSIX | ||
2637 | 54 | AC_PROG_CC | ||
2638 | 55 | AC_PROG_CPP | ||
2639 | 56 | AC_PROG_AWK | ||
2640 | 57 | AC_STDC_HEADERS | ||
2641 | 58 | AM_PROG_CC_C_O | ||
2642 | 59 | |||
2643 | 60 | AC_C_BIGENDIAN | ||
2644 | 61 | |||
2645 | 62 | PKG_PROG_PKG_CONFIG | ||
2646 | 63 | |||
2647 | 64 | LT_INIT([win32-dll]) | ||
2648 | 65 | LT_LIB_M | ||
2649 | 66 | |||
2650 | 67 | dnl =========================================================================== | ||
2651 | 68 | |||
2652 | 69 | #AC_CANONICAL_HOST | ||
2653 | 70 | |||
2654 | 71 | AC_MSG_CHECKING([for some Win32 platform]) | ||
2655 | 72 | case "$host" in | ||
2656 | 73 | *-*-mingw*|*-*-cygwin*) | ||
2657 | 74 | platform_win32=yes | ||
2658 | 75 | ;; | ||
2659 | 76 | *) | ||
2660 | 77 | platform_win32=no | ||
2661 | 78 | ;; | ||
2662 | 79 | esac | ||
2663 | 80 | AC_MSG_RESULT([$platform_win32]) | ||
2664 | 81 | AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") | ||
2665 | 82 | |||
2666 | 83 | AC_MSG_CHECKING([for native Win32]) | ||
2667 | 84 | case "$host" in | ||
2668 | 85 | *-*-mingw*) | ||
2669 | 86 | native_win32=yes | ||
2670 | 87 | ;; | ||
2671 | 88 | *) | ||
2672 | 89 | native_win32=no | ||
2673 | 90 | ;; | ||
2674 | 91 | esac | ||
2675 | 92 | AC_MSG_RESULT([$native_win32]) | ||
2676 | 93 | AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes") | ||
2677 | 94 | |||
2678 | 95 | dnl =========================================================================== | ||
2679 | 96 | |||
2680 | 97 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
2681 | 98 | AC_SUBST(GLIB_MKENUMS) | ||
2682 | 99 | |||
2683 | 100 | PKG_CHECK_MODULES(LIBRSVG, \ | ||
2684 | 101 | gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED \ | ||
2685 | 102 | glib-2.0 >= $GLIB_REQUIRED \ | ||
2686 | 103 | gio-2.0 >= $GIO_REQUIRED \ | ||
2687 | 104 | libxml-2.0 >= $LIBXML_REQUIRED \ | ||
2688 | 105 | pangocairo >= $PANGOCAIRO_REQUIRED \ | ||
2689 | 106 | cairo >= $CAIRO_REQUIRED \ | ||
2690 | 107 | cairo-png >= $CAIRO_REQUIRED | ||
2691 | 108 | libcroco-0.6 >= $CROCO_REQUIRED) | ||
2692 | 109 | |||
2693 | 110 | PKG_CHECK_MODULES([GTHREAD],[gthread-2.0 >= $GLIB_REQUIRED]) | ||
2694 | 111 | |||
2695 | 112 | PKG_CHECK_MODULES([GMODULE],[gmodule-2.0]) | ||
2696 | 113 | |||
2697 | 114 | case "$host" in | ||
2698 | 115 | *-*-mingw*) | ||
2699 | 116 | PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-windows-2.0 gdk-pixbuf-2.0 cairo pangocairo]) | ||
2700 | 117 | ;; | ||
2701 | 118 | *) | ||
2702 | 119 | PKG_CHECK_MODULES([RSVG_CONVERT],[gio-2.0 gio-unix-2.0 gdk-pixbuf-2.0 cairo pangocairo]) | ||
2703 | 120 | ;; | ||
2704 | 121 | esac | ||
2705 | 122 | |||
2706 | 123 | dnl =========================================================================== | ||
2707 | 124 | |||
2708 | 125 | AC_CHECK_FUNCS(strtok_r) | ||
2709 | 126 | |||
2710 | 127 | # =========================================================================== | ||
2711 | 128 | # GTK | ||
2712 | 129 | # =========================================================================== | ||
2713 | 130 | |||
2714 | 131 | PKG_CHECK_MODULES([GTK3],[gtk+-3.0 >= $GTK3_REQUIRED],[have_gtk_3=yes],[have_gtk_3=no]) | ||
2715 | 132 | |||
2716 | 133 | GTK3_BINARY_VERSION= | ||
2717 | 134 | |||
2718 | 135 | if test "$have_gtk_3" = "yes"; then | ||
2719 | 136 | GTK3_BINARY_VERSION="`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`" | ||
2720 | 137 | fi | ||
2721 | 138 | |||
2722 | 139 | AC_SUBST([GTK3_BINARY_VERSION]) | ||
2723 | 140 | |||
2724 | 141 | AM_CONDITIONAL([HAVE_GTK_3],[test "$have_gtk_3" = "yes"]) | ||
2725 | 142 | |||
2726 | 143 | dnl =========================================================================== | ||
2727 | 144 | dnl GDK-Pixbuf SVG loader | ||
2728 | 145 | dnl =========================================================================== | ||
2729 | 146 | |||
2730 | 147 | AC_MSG_CHECKING([whether to build the GDK-Pixbuf SVG loader]) | ||
2731 | 148 | AC_ARG_ENABLE([pixbuf-loader], | ||
2732 | 149 | [AS_HELP_STRING([--disable-pixbuf-loader],[Disable a RSVG based GdkPixbuf loader (default=yes)])], | ||
2733 | 150 | [],[enable_pixbuf_loader=yes]) | ||
2734 | 151 | AC_MSG_RESULT([$enable_pixbuf_loader]) | ||
2735 | 152 | |||
2736 | 153 | gdk_pixbuf_moduledir= | ||
2737 | 154 | if test "$enable_pixbuf_loader" = "yes"; then | ||
2738 | 155 | PKG_CHECK_MODULES([GDK_PIXBUF],[gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED]) | ||
2739 | 156 | |||
2740 | 157 | AC_PATH_PROGS([GDK_PIXBUF_QUERYLOADERS],[gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-64 gdk-pixbuf-query-loaders-32],[none]) | ||
2741 | 158 | |||
2742 | 159 | if test "x$GDK_PIXBUF_QUERYLOADERS" = "xnone"; then | ||
2743 | 160 | AC_MSG_ERROR([gdk-pixbuf-query-loaders not found in path]) | ||
2744 | 161 | fi | ||
2745 | 162 | |||
2746 | 163 | # First try the standalone gdk-pixbuf | ||
2747 | 164 | gdk_pixbuf_binary_version="`$PKG_CONFIG --variable=gdk_pixbuf_binary_version gdk-pixbuf-2.0`" | ||
2748 | 165 | gdk_pixbuf_binarydir="`$PKG_CONFIG --variable=gdk_pixbuf_binarydir gdk-pixbuf-2.0`" | ||
2749 | 166 | gdk_pixbuf_moduledir=`$PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0` | ||
2750 | 167 | gdk_pixbuf_cache_file=`$PKG_CONFIG --variable gdk_pixbuf_cache_file gdk-pixbuf-2.0` | ||
2751 | 168 | fi | ||
2752 | 169 | |||
2753 | 170 | AC_SUBST([gdk_pixbuf_binary_version]) | ||
2754 | 171 | AC_SUBST([gdk_pixbuf_binarydir]) | ||
2755 | 172 | AC_SUBST([gdk_pixbuf_moduledir]) | ||
2756 | 173 | AC_SUBST([gdk_pixbuf_cache_file]) | ||
2757 | 174 | |||
2758 | 175 | AM_CONDITIONAL([ENABLE_PIXBUF_LOADER],[test "$enable_pixbuf_loader" = "yes"]) | ||
2759 | 176 | |||
2760 | 177 | ########################################################## | ||
2761 | 178 | # Check for -Bsymbolic-functions linker flag used to avoid | ||
2762 | 179 | # intra-library PLT jumps, if available. | ||
2763 | 180 | ########################################################## | ||
2764 | 181 | |||
2765 | 182 | AC_ARG_ENABLE([Bsymbolic], | ||
2766 | 183 | [AS_HELP_STRING([--disable-Bsymbolic], | ||
2767 | 184 | [disable linking with -Bsymbolic])], | ||
2768 | 185 | [],[enable_Bsymbolic=yes]) | ||
2769 | 186 | |||
2770 | 187 | BSYMBOLIC_LDFLAG= | ||
2771 | 188 | if test "$enable_Bsymbolic" != "no"; then | ||
2772 | 189 | CC_CHECK_LDFLAGS(["-Wl,-Bsymbolic-functions"], | ||
2773 | 190 | [BSYMBOLIC_LDFLAG="-Wl,-Bsymbolic-functions"], | ||
2774 | 191 | [if test "$enable_Bsymbolic" = "auto"; then | ||
2775 | 192 | AC_MSG_WARN([-Bsymbolic not supported by ld; disabling]) | ||
2776 | 193 | enable_Bsymbolic=no | ||
2777 | 194 | else | ||
2778 | 195 | AC_MSG_ERROR([-Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable]) | ||
2779 | 196 | fi]) | ||
2780 | 197 | fi | ||
2781 | 198 | |||
2782 | 199 | AC_SUBST([BSYMBOLIC_LDFLAG]) | ||
2783 | 200 | |||
2784 | 201 | ################################################## | ||
2785 | 202 | # Compiler warnings | ||
2786 | 203 | ################################################## | ||
2787 | 204 | |||
2788 | 205 | save_CFLAGS="$CFLAGS" | ||
2789 | 206 | CFLAGS= | ||
2790 | 207 | CC_CHECK_CFLAGS_APPEND([ \ | ||
2791 | 208 | -Wall -Wextra \ | ||
2792 | 209 | -Wunused -Wreturn-type -Wswitch -Wcomment -Wtrigraphs \ | ||
2793 | 210 | -Wchar-subscripts -Wparentheses -Winline -Wredundant-decls \ | ||
2794 | 211 | -Wformat-nonliteral -Werror=format-security \ | ||
2795 | 212 | -Wsign-compare -Werror=implicit-function-declaration \ | ||
2796 | 213 | -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \ | ||
2797 | 214 | -Wnoaggregate-return -Wcast-align -Wimplicit -Wuninitialized \ | ||
2798 | 215 | -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ | ||
2799 | 216 | -Wpacked -Wmissing-format-attribute -Wshadow \ | ||
2800 | 217 | -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \ | ||
2801 | 218 | -Wdeclaration-after-statement -Wold-style-definition \ | ||
2802 | 219 | -Wno-missing-field-initializers -Wno-unused-parameter \ | ||
2803 | 220 | -Wunused-variable -Wunused-function \ | ||
2804 | 221 | -Wempty-body -Wno-switch-enum \ | ||
2805 | 222 | -fno-common]) | ||
2806 | 223 | AM_CFLAGS="$AM_CFLAGS $CFLAGS" | ||
2807 | 224 | CFLAGS="$save_CFLAGS" | ||
2808 | 225 | |||
2809 | 226 | ################################################## | ||
2810 | 227 | # Checks for gtk-doc and docbook-tools | ||
2811 | 228 | ################################################## | ||
2812 | 229 | |||
2813 | 230 | GTK_DOC_CHECK([1.13],[--flavour no-tmpl]) | ||
2814 | 231 | |||
2815 | 232 | AC_SUBST([GLIB_PREFIX],[$($PKG_CONFIG --variable=prefix glib-2.0)]) | ||
2816 | 233 | AC_SUBST([GDK_PIXBUF_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)]) | ||
2817 | 234 | AC_SUBST([GTK_PREFIX],[$($PKG_CONFIG --variable=prefix gdk-pixbuf-2.0)]) | ||
2818 | 235 | AC_SUBST([CAIRO_PREFIX],[$($PKG_CONFIG --variable=prefix cairo)]) | ||
2819 | 236 | |||
2820 | 237 | dnl =========================================================================== | ||
2821 | 238 | dnl Do we build the miscellaenous tools provided with librsvg ? | ||
2822 | 239 | |||
2823 | 240 | AC_ARG_ENABLE(tools, | ||
2824 | 241 | AC_HELP_STRING([--disable-tools], | ||
2825 | 242 | [do not build miscellaenous tools [default=no]]), | ||
2826 | 243 | [build_misc_tools=$enableval], | ||
2827 | 244 | [build_misc_tools=yes]) | ||
2828 | 245 | |||
2829 | 246 | AC_MSG_CHECKING(whether to build miscellaenous tools) | ||
2830 | 247 | if test "x$build_misc_tools" = "xyes" ; then | ||
2831 | 248 | AC_MSG_RESULT(yes) | ||
2832 | 249 | else | ||
2833 | 250 | AC_MSG_RESULT(no) | ||
2834 | 251 | fi | ||
2835 | 252 | AM_CONDITIONAL([BUILD_MISC_TOOLS], [test "x$build_misc_tools" = "xyes"]) | ||
2836 | 253 | |||
2837 | 254 | dnl =========================================================================== | ||
2838 | 255 | dnl Build introspectable bindings | ||
2839 | 256 | |||
2840 | 257 | # No automagic please! | ||
2841 | 258 | if test -z "$enable_introspection"; then | ||
2842 | 259 | enable_introspection=yes | ||
2843 | 260 | fi | ||
2844 | 261 | |||
2845 | 262 | GOBJECT_INTROSPECTION_CHECK([0.10.8]) | ||
2846 | 263 | |||
2847 | 264 | # Vala bindings | ||
2848 | 265 | VAPIGEN_CHECK([0.17.1.26],,,[no]) | ||
2849 | 266 | |||
2850 | 267 | dnl =========================================================================== | ||
2851 | 268 | |||
2852 | 269 | m4_copy([AC_DEFUN],[glib_DEFUN]) | ||
2853 | 270 | glib_DEFUN([GLIB_LC_MESSAGES], | ||
2854 | 271 | [AC_CHECK_HEADERS([locale.h]) | ||
2855 | 272 | if test $ac_cv_header_locale_h = yes; then | ||
2856 | 273 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | ||
2857 | 274 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | ||
2858 | 275 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | ||
2859 | 276 | if test $am_cv_val_LC_MESSAGES = yes; then | ||
2860 | 277 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | ||
2861 | 278 | [Define if your <locale.h> file defines LC_MESSAGES.]) | ||
2862 | 279 | fi | ||
2863 | 280 | fi]) | ||
2864 | 281 | |||
2865 | 282 | GLIB_LC_MESSAGES | ||
2866 | 283 | |||
2867 | 284 | dnl =========================================================================== | ||
2868 | 285 | |||
2869 | 286 | AC_SUBST([AM_CPPFLAGS]) | ||
2870 | 287 | AC_SUBST([AM_CFLAGS]) | ||
2871 | 288 | AC_SUBST([AM_LDFLAGS]) | ||
2872 | 289 | |||
2873 | 290 | AC_CONFIG_FILES([ | ||
2874 | 291 | librsvg-features.h | ||
2875 | 292 | Makefile | ||
2876 | 293 | librsvg-zip | ||
2877 | 294 | gdk-pixbuf-loader/Makefile | ||
2878 | 295 | tests/Makefile | ||
2879 | 296 | tests/pdiff/Makefile | ||
2880 | 297 | tools/Makefile | ||
2881 | 298 | doc/Makefile | ||
2882 | 299 | doc/version.xml | ||
2883 | 300 | ]) | ||
2884 | 301 | |||
2885 | 302 | AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}.pc:librsvg.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION]) | ||
2886 | 303 | AC_CONFIG_FILES([librsvg-${RSVG_API_VERSION}-uninstalled.pc:librsvg-uninstalled.pc.in],[],[RSVG_API_VERSION=$RSVG_API_VERSION]) | ||
2887 | 304 | |||
2888 | 305 | AC_OUTPUT | ||
2889 | 306 | |||
2890 | 307 | dnl ============================================================================================= | ||
2891 | 308 | echo " | ||
2892 | 309 | librsvg-$VERSION | ||
2893 | 310 | |||
2894 | 311 | prefix: ${prefix} | ||
2895 | 312 | compiler: ${CC} | ||
2896 | 313 | |||
2897 | 314 | Build introspectable bindings: ${found_introspection} | ||
2898 | 315 | Build Vala bindings: ${enable_vala} | ||
2899 | 316 | Build GdkPixbuf loader: ${enable_pixbuf_loader} | ||
2900 | 317 | GTK 3.0: ${have_gtk_3} | ||
2901 | 318 | Build miscellaenous tools: ${build_misc_tools} | ||
2902 | 319 | " | ||
2903 | 320 | 0 | ||
2904 | === modified file 'debian/changelog' | |||
2905 | --- debian/changelog 2014-12-10 10:09:37 +0000 | |||
2906 | +++ debian/changelog 2015-02-16 19:51:53 +0000 | |||
2907 | @@ -1,3 +1,9 @@ | |||
2908 | 1 | librsvg (2.40.7-0ubuntu1) vivid; urgency=medium | ||
2909 | 2 | |||
2910 | 3 | * New upstream release. | ||
2911 | 4 | |||
2912 | 5 | -- Jackson Doak <noskcaj@ubuntu.com> Tue, 17 Feb 2015 06:21:11 +1100 | ||
2913 | 6 | |||
2914 | 1 | librsvg (2.40.6-1) experimental; urgency=medium | 7 | librsvg (2.40.6-1) experimental; urgency=medium |
2915 | 2 | 8 | ||
2916 | 3 | * New upstream release 2.40.6. | 9 | * New upstream release 2.40.6. |
2917 | 4 | 10 | ||
2918 | === modified file 'debian/control' | |||
2919 | --- debian/control 2014-12-10 10:09:37 +0000 | |||
2920 | +++ debian/control 2015-02-16 19:51:53 +0000 | |||
2921 | @@ -5,7 +5,8 @@ | |||
2922 | 5 | Source: librsvg | 5 | Source: librsvg |
2923 | 6 | Section: libs | 6 | Section: libs |
2924 | 7 | Priority: optional | 7 | Priority: optional |
2926 | 8 | Maintainer: Josselin Mouette <joss@debian.org> | 8 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
2927 | 9 | XSBC-Original-Maintainer: Josselin Mouette <joss@debian.org> | ||
2928 | 9 | Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Iain Lane <laney@debian.org>, Michael Biebl <biebl@debian.org> | 10 | Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>, Iain Lane <laney@debian.org>, Michael Biebl <biebl@debian.org> |
2929 | 10 | Build-Depends: cdbs (>= 0.4.93), | 11 | Build-Depends: cdbs (>= 0.4.93), |
2930 | 11 | debhelper (>= 8.1.3), | 12 | debhelper (>= 8.1.3), |
2931 | 12 | 13 | ||
2932 | === modified file 'debian/control.in' | |||
2933 | --- debian/control.in 2014-10-14 16:46:07 +0000 | |||
2934 | +++ debian/control.in 2015-02-16 19:51:53 +0000 | |||
2935 | @@ -1,7 +1,8 @@ | |||
2936 | 1 | Source: librsvg | 1 | Source: librsvg |
2937 | 2 | Section: libs | 2 | Section: libs |
2938 | 3 | Priority: optional | 3 | Priority: optional |
2940 | 4 | Maintainer: Josselin Mouette <joss@debian.org> | 4 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
2941 | 5 | XSBC-Original-Maintainer: Josselin Mouette <joss@debian.org> | ||
2942 | 5 | Uploaders: @GNOME_TEAM@ | 6 | Uploaders: @GNOME_TEAM@ |
2943 | 6 | Build-Depends: cdbs (>= 0.4.93), | 7 | Build-Depends: cdbs (>= 0.4.93), |
2944 | 7 | debhelper (>= 8.1.3), | 8 | debhelper (>= 8.1.3), |
2945 | 8 | 9 | ||
2946 | === modified file 'debian/patches/20_rsvg_compat.patch' | |||
2947 | --- debian/patches/20_rsvg_compat.patch 2014-08-19 01:59:58 +0000 | |||
2948 | +++ debian/patches/20_rsvg_compat.patch 2015-02-16 19:51:53 +0000 | |||
2949 | @@ -1,17 +1,19 @@ | |||
2955 | 1 | Index: librsvg-2.40.3/rsvg-convert.c | 1 | --- |
2956 | 2 | =================================================================== | 2 | rsvg-convert.c | 27 +++++++++++++++++++++++---- |
2957 | 3 | --- librsvg-2.40.3.orig/rsvg-convert.c 2014-08-19 01:55:20.857179988 +0200 | 3 | 1 file changed, 23 insertions(+), 4 deletions(-) |
2958 | 4 | +++ librsvg-2.40.3/rsvg-convert.c 2014-08-19 01:55:20.853179920 +0200 | 4 | |
2959 | 5 | @@ -115,6 +115,8 @@ | 5 | --- a/rsvg-convert.c |
2960 | 6 | +++ b/rsvg-convert.c | ||
2961 | 7 | @@ -125,6 +125,8 @@ main (int argc, char **argv) | ||
2962 | 6 | RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE; | 8 | RsvgHandleFlags flags = RSVG_HANDLE_FLAGS_NONE; |
2963 | 7 | RsvgDimensionData dimensions; | 9 | RsvgDimensionData dimensions; |
2964 | 8 | FILE *output_file = stdout; | 10 | FILE *output_file = stdout; |
2965 | 9 | + char *basename; | 11 | + char *basename; |
2966 | 10 | + gboolean rsvg_compat = FALSE; | 12 | + gboolean rsvg_compat = FALSE; |
2967 | 11 | 13 | ||
2971 | 12 | GOptionEntry options_table[] = { | 14 | #ifdef G_OS_WIN32 |
2972 | 13 | {"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x, | 15 | HANDLE handle; |
2973 | 14 | @@ -168,6 +170,27 @@ | 16 | @@ -182,6 +184,27 @@ main (int argc, char **argv) |
2974 | 15 | return 0; | 17 | return 0; |
2975 | 16 | } | 18 | } |
2976 | 17 | 19 | ||
2977 | @@ -39,7 +41,7 @@ | |||
2978 | 39 | if (output != NULL) { | 41 | if (output != NULL) { |
2979 | 40 | output_file = fopen (output, "wb"); | 42 | output_file = fopen (output, "wb"); |
2980 | 41 | if (!output_file) { | 43 | if (!output_file) { |
2982 | 42 | @@ -179,10 +202,6 @@ | 44 | @@ -193,10 +216,6 @@ main (int argc, char **argv) |
2983 | 43 | g_free (output); | 45 | g_free (output); |
2984 | 44 | } | 46 | } |
2985 | 45 | 47 | ||
2986 | 46 | 48 | ||
2987 | === modified file 'doc/Makefile.in' | |||
2988 | --- doc/Makefile.in 2014-12-10 10:09:37 +0000 | |||
2989 | +++ doc/Makefile.in 2015-02-16 19:51:53 +0000 | |||
2990 | @@ -1,4 +1,4 @@ | |||
2992 | 1 | # Makefile.in generated by automake 1.14.1 from Makefile.am. | 1 | # Makefile.in generated by automake 1.13.4 from Makefile.am. |
2993 | 2 | # @configure_input@ | 2 | # @configure_input@ |
2994 | 3 | 3 | ||
2995 | 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. |
2996 | @@ -91,7 +91,7 @@ | |||
2997 | 91 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | 91 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
2998 | 92 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | 92 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ |
2999 | 93 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \ | 93 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/vapigen.m4 \ |
3001 | 94 | $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.in | 94 | $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac |
3002 | 95 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 95 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
3003 | 96 | $(ACLOCAL_M4) | 96 | $(ACLOCAL_M4) |
3004 | 97 | mkinstalldirs = $(install_sh) -d | 97 | mkinstalldirs = $(install_sh) -d |
3005 | @@ -165,7 +165,6 @@ | |||
3006 | 165 | GTK3_CFLAGS = @GTK3_CFLAGS@ | 165 | GTK3_CFLAGS = @GTK3_CFLAGS@ |
3007 | 166 | GTK3_LIBS = @GTK3_LIBS@ | 166 | GTK3_LIBS = @GTK3_LIBS@ |
3008 | 167 | GTKDOC_CHECK = @GTKDOC_CHECK@ | 167 | GTKDOC_CHECK = @GTKDOC_CHECK@ |
3009 | 168 | GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ | ||
3010 | 169 | GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ | 168 | GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ |
3011 | 170 | GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ | 169 | GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ |
3012 | 171 | GTKDOC_MKPDF = @GTKDOC_MKPDF@ | 170 | GTKDOC_MKPDF = @GTKDOC_MKPDF@ |
3013 | @@ -464,11 +463,11 @@ | |||
3014 | 464 | $(DOC_MODULE)-undeclared.txt \ | 463 | $(DOC_MODULE)-undeclared.txt \ |
3015 | 465 | $(DOC_MODULE)-unused.txt | 464 | $(DOC_MODULE)-unused.txt |
3016 | 466 | 465 | ||
3022 | 467 | CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test | 466 | CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) |
3023 | 468 | @GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = | 467 | @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = |
3024 | 469 | @GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp | 468 | @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp |
3025 | 470 | @GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = | 469 | @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = |
3026 | 471 | @GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp | 470 | @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp |
3027 | 472 | 471 | ||
3028 | 473 | #### setup #### | 472 | #### setup #### |
3029 | 474 | GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_$(V)) | 473 | GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_$(V)) |
3030 | @@ -584,7 +583,6 @@ | |||
3031 | 584 | dist-hook | 583 | dist-hook |
3032 | 585 | check-am: all-am | 584 | check-am: all-am |
3033 | 586 | check: check-am | 585 | check: check-am |
3034 | 587 | @ENABLE_GTK_DOC_FALSE@all-local: | ||
3035 | 588 | all-am: Makefile all-local | 586 | all-am: Makefile all-local |
3036 | 589 | installdirs: | 587 | installdirs: |
3037 | 590 | install: install-am | 588 | install: install-am |
3038 | @@ -702,15 +700,8 @@ | |||
3039 | 702 | uninstall-am uninstall-local | 700 | uninstall-am uninstall-local |
3040 | 703 | 701 | ||
3041 | 704 | 702 | ||
3051 | 705 | gtkdoc-check.test: Makefile | 703 | @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) |
3052 | 706 | $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ | 704 | @ENABLE_GTK_DOC_FALSE@all-local: |
3044 | 707 | echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \ | ||
3045 | 708 | chmod +x $@ | ||
3046 | 709 | |||
3047 | 710 | all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) | ||
3048 | 711 | .PHONY: all-gtk-doc | ||
3049 | 712 | |||
3050 | 713 | @ENABLE_GTK_DOC_TRUE@all-local: all-gtk-doc | ||
3053 | 714 | 705 | ||
3054 | 715 | docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) | 706 | docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) |
3055 | 716 | 707 | ||
3056 | @@ -721,16 +712,14 @@ | |||
3057 | 721 | files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ | 712 | files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ |
3058 | 722 | if test "x$$files" != "x" ; then \ | 713 | if test "x$$files" != "x" ; then \ |
3059 | 723 | for file in $$files ; do \ | 714 | for file in $$files ; do \ |
3060 | 724 | destdir=`dirname $(abs_builddir)/$$file`; \ | ||
3061 | 725 | test -d "$$destdir" || mkdir -p "$$destdir"; \ | ||
3062 | 726 | test -f $(abs_srcdir)/$$file && \ | 715 | test -f $(abs_srcdir)/$$file && \ |
3064 | 727 | cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ | 716 | cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ |
3065 | 728 | done; \ | 717 | done; \ |
3066 | 729 | fi; \ | 718 | fi; \ |
3067 | 730 | fi | 719 | fi |
3068 | 731 | $(AM_V_at)touch setup-build.stamp | 720 | $(AM_V_at)touch setup-build.stamp |
3069 | 732 | 721 | ||
3071 | 733 | scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB) | 722 | scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) |
3072 | 734 | $(GTK_DOC_V_SCAN)_source_dir='' ; \ | 723 | $(GTK_DOC_V_SCAN)_source_dir='' ; \ |
3073 | 735 | for i in $(DOC_SOURCE_DIR) ; do \ | 724 | for i in $(DOC_SOURCE_DIR) ; do \ |
3074 | 736 | _source_dir="$${_source_dir} --source-dir=$$i" ; \ | 725 | _source_dir="$${_source_dir} --source-dir=$$i" ; \ |
3075 | @@ -819,9 +808,6 @@ | |||
3076 | 819 | clean-local: | 808 | clean-local: |
3077 | 820 | @rm -f *~ *.bak | 809 | @rm -f *~ *.bak |
3078 | 821 | @rm -rf .libs | 810 | @rm -rf .libs |
3079 | 822 | @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \ | ||
3080 | 823 | rm -f $(DOC_MODULE).types; \ | ||
3081 | 824 | fi | ||
3082 | 825 | 811 | ||
3083 | 826 | distclean-local: | 812 | distclean-local: |
3084 | 827 | @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ | 813 | @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ |
3085 | @@ -866,14 +852,12 @@ | |||
3086 | 866 | # | 852 | # |
3087 | 867 | # Require gtk-doc when making dist | 853 | # Require gtk-doc when making dist |
3088 | 868 | # | 854 | # |
3095 | 869 | @HAVE_GTK_DOC_TRUE@dist-check-gtkdoc: docs | 855 | @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: docs |
3096 | 870 | @HAVE_GTK_DOC_FALSE@dist-check-gtkdoc: | 856 | @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc: |
3097 | 871 | @HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc is needed to run 'make dist'. ***" | 857 | @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist" |
3098 | 872 | @HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc was not found when 'configure' ran. ***" | 858 | @ENABLE_GTK_DOC_FALSE@ @false |
3093 | 873 | @HAVE_GTK_DOC_FALSE@ @echo "*** please install gtk-doc and rerun 'configure'. ***" | ||
3094 | 874 | @HAVE_GTK_DOC_FALSE@ @false | ||
3099 | 875 | 859 | ||
3101 | 876 | dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local | 860 | dist-hook: dist-check-gtkdoc dist-hook-local |
3102 | 877 | @mkdir $(distdir)/html | 861 | @mkdir $(distdir)/html |
3103 | 878 | @cp ./html/* $(distdir)/html | 862 | @cp ./html/* $(distdir)/html |
3104 | 879 | @-cp ./$(DOC_MODULE).pdf $(distdir)/ | 863 | @-cp ./$(DOC_MODULE).pdf $(distdir)/ |
3105 | 880 | 864 | ||
3106 | === modified file 'doc/html/RsvgHandle.html' | |||
3107 | --- doc/html/RsvgHandle.html 2014-12-10 10:09:37 +0000 | |||
3108 | +++ doc/html/RsvgHandle.html 2015-02-16 19:51:53 +0000 | |||
3109 | @@ -2,28 +2,34 @@ | |||
3110 | 2 | <html> | 2 | <html> |
3111 | 3 | <head> | 3 | <head> |
3112 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
3114 | 5 | <title>RSVG Libary Reference Manual: RsvgHandle</title> | 5 | <title>RsvgHandle</title> |
3115 | 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> | 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> |
3116 | 7 | <link rel="home" href="index.html" title="RSVG Libary Reference Manual"> | 7 | <link rel="home" href="index.html" title="RSVG Libary Reference Manual"> |
3117 | 8 | <link rel="up" href="rsvg.html" title="Part I. API Reference"> | 8 | <link rel="up" href="rsvg.html" title="Part I. API Reference"> |
3118 | 9 | <link rel="prev" href="rsvg.html" title="Part I. API Reference"> | 9 | <link rel="prev" href="rsvg.html" title="Part I. API Reference"> |
3119 | 10 | <link rel="next" href="rsvg-Using-RSVG-with-GIO.html" title="Using RSVG with GIO"> | 10 | <link rel="next" href="rsvg-Using-RSVG-with-GIO.html" title="Using RSVG with GIO"> |
3121 | 11 | <meta name="generator" content="GTK-Doc V1.21 (XML mode)"> | 11 | <meta name="generator" content="GTK-Doc V1.19 (XML mode)"> |
3122 | 12 | <link rel="stylesheet" href="style.css" type="text/css"> | 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
3123 | 13 | </head> | 13 | </head> |
3124 | 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> | 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
3137 | 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> | 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
3138 | 16 | <td width="100%" align="left" class="shortcuts"> | 16 | <tr valign="middle"> |
3139 | 17 | <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> | 17 | <td><a accesskey="p" href="rsvg.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
3140 | 18 | <a href="#RsvgHandle.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> | 18 | <td><a accesskey="u" href="rsvg.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
3141 | 19 | <a href="#RsvgHandle.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> | 19 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
3142 | 20 | <a href="#RsvgHandle.properties" class="shortcut">Properties</a></span> | 20 | <th width="100%" align="center">RSVG Libary Reference Manual</th> |
3143 | 21 | </td> | 21 | <td><a accesskey="n" href="rsvg-Using-RSVG-with-GIO.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
3144 | 22 | <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> | 22 | </tr> |
3145 | 23 | <td><a accesskey="u" href="rsvg.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> | 23 | <tr><td colspan="5" class="shortcuts"> |
3146 | 24 | <td><a accesskey="p" href="rsvg.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> | 24 | <a href="#RsvgHandle.synopsis" class="shortcut">Top</a> |
3147 | 25 | <td><a accesskey="n" href="rsvg-Using-RSVG-with-GIO.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> | 25 | | |
3148 | 26 | </tr></table> | 26 | <a href="#RsvgHandle.description" class="shortcut">Description</a> |
3149 | 27 | | | ||
3150 | 28 | <a href="#RsvgHandle.object-hierarchy" class="shortcut">Object Hierarchy</a> | ||
3151 | 29 | | | ||
3152 | 30 | <a href="#RsvgHandle.properties" class="shortcut">Properties</a> | ||
3153 | 31 | </td></tr> | ||
3154 | 32 | </table> | ||
3155 | 27 | <div class="refentry"> | 33 | <div class="refentry"> |
3156 | 28 | <a name="RsvgHandle"></a><div class="titlepage"></div> | 34 | <a name="RsvgHandle"></a><div class="titlepage"></div> |
3157 | 29 | <div class="refnamediv"><table width="100%"><tr> | 35 | <div class="refnamediv"><table width="100%"><tr> |
3158 | @@ -31,1183 +37,162 @@ | |||
3159 | 31 | <h2><span class="refentrytitle"><a name="RsvgHandle.top_of_page"></a>RsvgHandle</span></h2> | 37 | <h2><span class="refentrytitle"><a name="RsvgHandle.top_of_page"></a>RsvgHandle</span></h2> |
3160 | 32 | <p>RsvgHandle — Create and manipulate SVG objects</p> | 38 | <p>RsvgHandle — Create and manipulate SVG objects</p> |
3161 | 33 | </td> | 39 | </td> |
3163 | 34 | <td class="gallery_image" valign="top" align="right"></td> | 40 | <td valign="top" align="right"></td> |
3164 | 35 | </tr></table></div> | 41 | </tr></table></div> |
3165 | 42 | <div class="refsynopsisdiv"> | ||
3166 | 43 | <a name="RsvgHandle.synopsis"></a><h2>Synopsis</h2> | ||
3167 | 44 | <a name="RsvgError"></a><pre class="synopsis">enum <a class="link" href="RsvgHandle.html#RsvgError-enum" title="enum RsvgError">RsvgError</a>; | ||
3168 | 45 | #define <a class="link" href="RsvgHandle.html#RSVG-ERROR:CAPS" title="RSVG_ERROR">RSVG_ERROR</a> | ||
3169 | 46 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> <a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | ||
3170 | 47 | <a class="link" href="RsvgHandle.html#RsvgHandle-struct" title="RsvgHandle">RsvgHandle</a>; | ||
3171 | 48 | typedef <a class="link" href="RsvgHandle.html#RsvgHandlePrivate" title="RsvgHandlePrivate">RsvgHandlePrivate</a>; | ||
3172 | 49 | struct <a class="link" href="RsvgHandle.html#RsvgHandleClass" title="struct RsvgHandleClass">RsvgHandleClass</a>; | ||
3173 | 50 | struct <a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData">RsvgDimensionData</a>; | ||
3174 | 51 | struct <a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData">RsvgPositionData</a>; | ||
3175 | 52 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-cleanup" title="rsvg_cleanup ()">rsvg_cleanup</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | ||
3176 | 53 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi" title="rsvg_set_default_dpi ()">rsvg_set_default_dpi</a> (<em class="parameter"><code><span class="type">double</span> dpi</code></em>); | ||
3177 | 54 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi-x-y" title="rsvg_set_default_dpi_x_y ()">rsvg_set_default_dpi_x_y</a> (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>, | ||
3178 | 55 | <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>); | ||
3179 | 56 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi" title="rsvg_handle_set_dpi ()">rsvg_handle_set_dpi</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3180 | 57 | <em class="parameter"><code><span class="type">double</span> dpi</code></em>); | ||
3181 | 58 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi-x-y" title="rsvg_handle_set_dpi_x_y ()">rsvg_handle_set_dpi_x_y</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3182 | 59 | <em class="parameter"><code><span class="type">double</span> dpi_x</code></em>, | ||
3183 | 60 | <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>); | ||
3184 | 61 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new" title="rsvg_handle_new ()">rsvg_handle_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | ||
3185 | 62 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-with-flags" title="rsvg_handle_new_with_flags ()">rsvg_handle_new_with_flags</a> (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>); | ||
3186 | 63 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3187 | 64 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>, | ||
3188 | 65 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>, | ||
3189 | 66 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>); | ||
3190 | 67 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3191 | 68 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>); | ||
3192 | 69 | const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-base-uri" title="rsvg_handle_get_base_uri ()">rsvg_handle_get_base_uri</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>); | ||
3193 | 70 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-base-uri" title="rsvg_handle_set_base_uri ()">rsvg_handle_set_base_uri</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3194 | 71 | <em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>); | ||
3195 | 72 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()">rsvg_handle_get_dimensions</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3196 | 73 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>); | ||
3197 | 74 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions-sub" title="rsvg_handle_get_dimensions_sub ()">rsvg_handle_get_dimensions_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3198 | 75 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>, | ||
3199 | 76 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>); | ||
3200 | 77 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-get-position-sub" title="rsvg_handle_get_position_sub ()">rsvg_handle_get_position_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3201 | 78 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>, | ||
3202 | 79 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>); | ||
3203 | 80 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="RsvgHandle.html#rsvg-handle-has-sub" title="rsvg_handle_has_sub ()">rsvg_handle_has_sub</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3204 | 81 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>); | ||
3205 | 82 | const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-title" title="rsvg_handle_get_title ()">rsvg_handle_get_title</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>); | ||
3206 | 83 | const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-desc" title="rsvg_handle_get_desc ()">rsvg_handle_get_desc</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>); | ||
3207 | 84 | const <span class="returnvalue">char</span> * <a class="link" href="RsvgHandle.html#rsvg-handle-get-metadata" title="rsvg_handle_get_metadata ()">rsvg_handle_get_metadata</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>); | ||
3208 | 85 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-data" title="rsvg_handle_new_from_data ()">rsvg_handle_new_from_data</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>, | ||
3209 | 86 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>, | ||
3210 | 87 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>); | ||
3211 | 88 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()">rsvg_handle_new_from_file</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>, | ||
3212 | 89 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>); | ||
3213 | 90 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="RsvgHandle.html#rsvg-error-get-type" title="rsvg_error_get_type ()">rsvg_error_get_type</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | ||
3214 | 91 | #define <a class="link" href="RsvgHandle.html#RSVG-TYPE-ERROR:CAPS" title="RSVG_TYPE_ERROR">RSVG_TYPE_ERROR</a> | ||
3215 | 92 | |||
3216 | 93 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-init" title="rsvg_init ()">rsvg_init</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | ||
3217 | 94 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-term" title="rsvg_term ()">rsvg_term</a> (<em class="parameter"><code><span class="type">void</span></code></em>); | ||
3218 | 95 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-free" title="rsvg_handle_free ()">rsvg_handle_free</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>); | ||
3219 | 96 | <span class="returnvalue">void</span> <a class="link" href="RsvgHandle.html#rsvg-handle-set-size-callback" title="rsvg_handle_set_size_callback ()">rsvg_handle_set_size_callback</a> (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3220 | 97 | <em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>, | ||
3221 | 98 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>, | ||
3222 | 99 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>); | ||
3223 | 100 | </pre> | ||
3224 | 101 | </div> | ||
3225 | 36 | <div class="refsect1"> | 102 | <div class="refsect1"> |
3447 | 37 | <a name="RsvgHandle.functions"></a><h2>Functions</h2> | 103 | <a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2> |
3448 | 38 | <div class="informaltable"><table width="100%" border="0"> | 104 | <pre class="synopsis"> |
3449 | 39 | <colgroup> | 105 | GEnum |
3450 | 40 | <col width="150px" class="functions_return"> | 106 | +----RsvgError |
3451 | 41 | <col class="functions_name"> | 107 | </pre> |
3452 | 42 | </colgroup> | 108 | <pre class="synopsis"> |
3453 | 43 | <tbody> | 109 | <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> |
3454 | 44 | <tr> | 110 | +----RsvgHandle |
3455 | 45 | <td class="define_keyword">#define</td> | 111 | </pre> |
3235 | 46 | <td class="function_name"><a class="link" href="RsvgHandle.html#RSVG-ERROR:CAPS" title="RSVG_ERROR">RSVG_ERROR</a></td> | ||
3236 | 47 | </tr> | ||
3237 | 48 | <tr> | ||
3238 | 49 | <td class="function_type"> | ||
3239 | 50 | <a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> | ||
3240 | 51 | </td> | ||
3241 | 52 | <td class="function_name"> | ||
3242 | 53 | <a class="link" href="RsvgHandle.html#rsvg-error-quark" title="rsvg_error_quark ()">rsvg_error_quark</a> <span class="c_punctuation">()</span> | ||
3243 | 54 | </td> | ||
3244 | 55 | </tr> | ||
3245 | 56 | <tr> | ||
3246 | 57 | <td class="function_type"> | ||
3247 | 58 | <span class="returnvalue">void</span> | ||
3248 | 59 | </td> | ||
3249 | 60 | <td class="function_name"> | ||
3250 | 61 | <a class="link" href="RsvgHandle.html#rsvg-cleanup" title="rsvg_cleanup ()">rsvg_cleanup</a> <span class="c_punctuation">()</span> | ||
3251 | 62 | </td> | ||
3252 | 63 | </tr> | ||
3253 | 64 | <tr> | ||
3254 | 65 | <td class="function_type"> | ||
3255 | 66 | <span class="returnvalue">void</span> | ||
3256 | 67 | </td> | ||
3257 | 68 | <td class="function_name"> | ||
3258 | 69 | <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi" title="rsvg_set_default_dpi ()">rsvg_set_default_dpi</a> <span class="c_punctuation">()</span> | ||
3259 | 70 | </td> | ||
3260 | 71 | </tr> | ||
3261 | 72 | <tr> | ||
3262 | 73 | <td class="function_type"> | ||
3263 | 74 | <span class="returnvalue">void</span> | ||
3264 | 75 | </td> | ||
3265 | 76 | <td class="function_name"> | ||
3266 | 77 | <a class="link" href="RsvgHandle.html#rsvg-set-default-dpi-x-y" title="rsvg_set_default_dpi_x_y ()">rsvg_set_default_dpi_x_y</a> <span class="c_punctuation">()</span> | ||
3267 | 78 | </td> | ||
3268 | 79 | </tr> | ||
3269 | 80 | <tr> | ||
3270 | 81 | <td class="function_type"> | ||
3271 | 82 | <span class="returnvalue">void</span> | ||
3272 | 83 | </td> | ||
3273 | 84 | <td class="function_name"> | ||
3274 | 85 | <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi" title="rsvg_handle_set_dpi ()">rsvg_handle_set_dpi</a> <span class="c_punctuation">()</span> | ||
3275 | 86 | </td> | ||
3276 | 87 | </tr> | ||
3277 | 88 | <tr> | ||
3278 | 89 | <td class="function_type"> | ||
3279 | 90 | <span class="returnvalue">void</span> | ||
3280 | 91 | </td> | ||
3281 | 92 | <td class="function_name"> | ||
3282 | 93 | <a class="link" href="RsvgHandle.html#rsvg-handle-set-dpi-x-y" title="rsvg_handle_set_dpi_x_y ()">rsvg_handle_set_dpi_x_y</a> <span class="c_punctuation">()</span> | ||
3283 | 94 | </td> | ||
3284 | 95 | </tr> | ||
3285 | 96 | <tr> | ||
3286 | 97 | <td class="function_type"> | ||
3287 | 98 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
3288 | 99 | </td> | ||
3289 | 100 | <td class="function_name"> | ||
3290 | 101 | <a class="link" href="RsvgHandle.html#rsvg-handle-new" title="rsvg_handle_new ()">rsvg_handle_new</a> <span class="c_punctuation">()</span> | ||
3291 | 102 | </td> | ||
3292 | 103 | </tr> | ||
3293 | 104 | <tr> | ||
3294 | 105 | <td class="function_type"> | ||
3295 | 106 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
3296 | 107 | </td> | ||
3297 | 108 | <td class="function_name"> | ||
3298 | 109 | <a class="link" href="RsvgHandle.html#rsvg-handle-new-with-flags" title="rsvg_handle_new_with_flags ()">rsvg_handle_new_with_flags</a> <span class="c_punctuation">()</span> | ||
3299 | 110 | </td> | ||
3300 | 111 | </tr> | ||
3301 | 112 | <tr> | ||
3302 | 113 | <td class="function_type"> | ||
3303 | 114 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3304 | 115 | </td> | ||
3305 | 116 | <td class="function_name"> | ||
3306 | 117 | <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()">rsvg_handle_write</a> <span class="c_punctuation">()</span> | ||
3307 | 118 | </td> | ||
3308 | 119 | </tr> | ||
3309 | 120 | <tr> | ||
3310 | 121 | <td class="function_type"> | ||
3311 | 122 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3312 | 123 | </td> | ||
3313 | 124 | <td class="function_name"> | ||
3314 | 125 | <a class="link" href="RsvgHandle.html#rsvg-handle-close" title="rsvg_handle_close ()">rsvg_handle_close</a> <span class="c_punctuation">()</span> | ||
3315 | 126 | </td> | ||
3316 | 127 | </tr> | ||
3317 | 128 | <tr> | ||
3318 | 129 | <td class="function_type">const <span class="returnvalue">char</span> * | ||
3319 | 130 | </td> | ||
3320 | 131 | <td class="function_name"> | ||
3321 | 132 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-base-uri" title="rsvg_handle_get_base_uri ()">rsvg_handle_get_base_uri</a> <span class="c_punctuation">()</span> | ||
3322 | 133 | </td> | ||
3323 | 134 | </tr> | ||
3324 | 135 | <tr> | ||
3325 | 136 | <td class="function_type"> | ||
3326 | 137 | <span class="returnvalue">void</span> | ||
3327 | 138 | </td> | ||
3328 | 139 | <td class="function_name"> | ||
3329 | 140 | <a class="link" href="RsvgHandle.html#rsvg-handle-set-base-uri" title="rsvg_handle_set_base_uri ()">rsvg_handle_set_base_uri</a> <span class="c_punctuation">()</span> | ||
3330 | 141 | </td> | ||
3331 | 142 | </tr> | ||
3332 | 143 | <tr> | ||
3333 | 144 | <td class="function_type"> | ||
3334 | 145 | <span class="returnvalue">void</span> | ||
3335 | 146 | </td> | ||
3336 | 147 | <td class="function_name"> | ||
3337 | 148 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions" title="rsvg_handle_get_dimensions ()">rsvg_handle_get_dimensions</a> <span class="c_punctuation">()</span> | ||
3338 | 149 | </td> | ||
3339 | 150 | </tr> | ||
3340 | 151 | <tr> | ||
3341 | 152 | <td class="function_type"> | ||
3342 | 153 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3343 | 154 | </td> | ||
3344 | 155 | <td class="function_name"> | ||
3345 | 156 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-dimensions-sub" title="rsvg_handle_get_dimensions_sub ()">rsvg_handle_get_dimensions_sub</a> <span class="c_punctuation">()</span> | ||
3346 | 157 | </td> | ||
3347 | 158 | </tr> | ||
3348 | 159 | <tr> | ||
3349 | 160 | <td class="function_type"> | ||
3350 | 161 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3351 | 162 | </td> | ||
3352 | 163 | <td class="function_name"> | ||
3353 | 164 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-position-sub" title="rsvg_handle_get_position_sub ()">rsvg_handle_get_position_sub</a> <span class="c_punctuation">()</span> | ||
3354 | 165 | </td> | ||
3355 | 166 | </tr> | ||
3356 | 167 | <tr> | ||
3357 | 168 | <td class="function_type"> | ||
3358 | 169 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3359 | 170 | </td> | ||
3360 | 171 | <td class="function_name"> | ||
3361 | 172 | <a class="link" href="RsvgHandle.html#rsvg-handle-has-sub" title="rsvg_handle_has_sub ()">rsvg_handle_has_sub</a> <span class="c_punctuation">()</span> | ||
3362 | 173 | </td> | ||
3363 | 174 | </tr> | ||
3364 | 175 | <tr> | ||
3365 | 176 | <td class="function_type">const <span class="returnvalue">char</span> * | ||
3366 | 177 | </td> | ||
3367 | 178 | <td class="function_name"> | ||
3368 | 179 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-title" title="rsvg_handle_get_title ()">rsvg_handle_get_title</a> <span class="c_punctuation">()</span> | ||
3369 | 180 | </td> | ||
3370 | 181 | </tr> | ||
3371 | 182 | <tr> | ||
3372 | 183 | <td class="function_type">const <span class="returnvalue">char</span> * | ||
3373 | 184 | </td> | ||
3374 | 185 | <td class="function_name"> | ||
3375 | 186 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-desc" title="rsvg_handle_get_desc ()">rsvg_handle_get_desc</a> <span class="c_punctuation">()</span> | ||
3376 | 187 | </td> | ||
3377 | 188 | </tr> | ||
3378 | 189 | <tr> | ||
3379 | 190 | <td class="function_type">const <span class="returnvalue">char</span> * | ||
3380 | 191 | </td> | ||
3381 | 192 | <td class="function_name"> | ||
3382 | 193 | <a class="link" href="RsvgHandle.html#rsvg-handle-get-metadata" title="rsvg_handle_get_metadata ()">rsvg_handle_get_metadata</a> <span class="c_punctuation">()</span> | ||
3383 | 194 | </td> | ||
3384 | 195 | </tr> | ||
3385 | 196 | <tr> | ||
3386 | 197 | <td class="function_type"> | ||
3387 | 198 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
3388 | 199 | </td> | ||
3389 | 200 | <td class="function_name"> | ||
3390 | 201 | <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-data" title="rsvg_handle_new_from_data ()">rsvg_handle_new_from_data</a> <span class="c_punctuation">()</span> | ||
3391 | 202 | </td> | ||
3392 | 203 | </tr> | ||
3393 | 204 | <tr> | ||
3394 | 205 | <td class="function_type"> | ||
3395 | 206 | <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
3396 | 207 | </td> | ||
3397 | 208 | <td class="function_name"> | ||
3398 | 209 | <a class="link" href="RsvgHandle.html#rsvg-handle-new-from-file" title="rsvg_handle_new_from_file ()">rsvg_handle_new_from_file</a> <span class="c_punctuation">()</span> | ||
3399 | 210 | </td> | ||
3400 | 211 | </tr> | ||
3401 | 212 | <tr> | ||
3402 | 213 | <td class="function_type"> | ||
3403 | 214 | <a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> | ||
3404 | 215 | </td> | ||
3405 | 216 | <td class="function_name"> | ||
3406 | 217 | <a class="link" href="RsvgHandle.html#rsvg-error-get-type" title="rsvg_error_get_type ()">rsvg_error_get_type</a> <span class="c_punctuation">()</span> | ||
3407 | 218 | </td> | ||
3408 | 219 | </tr> | ||
3409 | 220 | <tr> | ||
3410 | 221 | <td class="define_keyword">#define</td> | ||
3411 | 222 | <td class="function_name"><a class="link" href="RsvgHandle.html#RSVG-TYPE-ERROR:CAPS" title="RSVG_TYPE_ERROR">RSVG_TYPE_ERROR</a></td> | ||
3412 | 223 | </tr> | ||
3413 | 224 | <tr> | ||
3414 | 225 | <td class="function_type"> | ||
3415 | 226 | <span class="returnvalue">void</span> | ||
3416 | 227 | </td> | ||
3417 | 228 | <td class="function_name"> | ||
3418 | 229 | <a class="link" href="RsvgHandle.html#rsvg-init" title="rsvg_init ()">rsvg_init</a> <span class="c_punctuation">()</span> | ||
3419 | 230 | </td> | ||
3420 | 231 | </tr> | ||
3421 | 232 | <tr> | ||
3422 | 233 | <td class="function_type"> | ||
3423 | 234 | <span class="returnvalue">void</span> | ||
3424 | 235 | </td> | ||
3425 | 236 | <td class="function_name"> | ||
3426 | 237 | <a class="link" href="RsvgHandle.html#rsvg-term" title="rsvg_term ()">rsvg_term</a> <span class="c_punctuation">()</span> | ||
3427 | 238 | </td> | ||
3428 | 239 | </tr> | ||
3429 | 240 | <tr> | ||
3430 | 241 | <td class="function_type"> | ||
3431 | 242 | <span class="returnvalue">void</span> | ||
3432 | 243 | </td> | ||
3433 | 244 | <td class="function_name"> | ||
3434 | 245 | <a class="link" href="RsvgHandle.html#rsvg-handle-free" title="rsvg_handle_free ()">rsvg_handle_free</a> <span class="c_punctuation">()</span> | ||
3435 | 246 | </td> | ||
3436 | 247 | </tr> | ||
3437 | 248 | <tr> | ||
3438 | 249 | <td class="function_type"> | ||
3439 | 250 | <span class="returnvalue">void</span> | ||
3440 | 251 | </td> | ||
3441 | 252 | <td class="function_name"> | ||
3442 | 253 | <a class="link" href="RsvgHandle.html#rsvg-handle-set-size-callback" title="rsvg_handle_set_size_callback ()">rsvg_handle_set_size_callback</a> <span class="c_punctuation">()</span> | ||
3443 | 254 | </td> | ||
3444 | 255 | </tr> | ||
3445 | 256 | </tbody> | ||
3446 | 257 | </table></div> | ||
3456 | 258 | </div> | 112 | </div> |
3457 | 259 | <div class="refsect1"> | 113 | <div class="refsect1"> |
3458 | 260 | <a name="RsvgHandle.properties"></a><h2>Properties</h2> | 114 | <a name="RsvgHandle.properties"></a><h2>Properties</h2> |
3569 | 261 | <div class="informaltable"><table border="0"> | 115 | <pre class="synopsis"> |
3570 | 262 | <colgroup> | 116 | "<a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title='The "base-uri" property'>base-uri</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct |
3571 | 263 | <col width="150px" class="properties_type"> | 117 | "<a class="link" href="RsvgHandle.html#RsvgHandle--desc" title='The "desc" property'>desc</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read |
3572 | 264 | <col width="300px" class="properties_name"> | 118 | "<a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title='The "dpi-x" property'>dpi-x</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct |
3573 | 265 | <col width="200px" class="properties_flags"> | 119 | "<a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title='The "dpi-y" property'>dpi-y</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write / Construct |
3574 | 266 | </colgroup> | 120 | "<a class="link" href="RsvgHandle.html#RsvgHandle--em" title='The "em" property'>em</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read |
3575 | 267 | <tbody> | 121 | "<a class="link" href="RsvgHandle.html#RsvgHandle--ex" title='The "ex" property'>ex</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read |
3576 | 268 | <tr> | 122 | "<a class="link" href="RsvgHandle.html#RsvgHandle--flags" title='The "flags" property'>flags</a>" <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> : Read / Write / Construct Only |
3577 | 269 | <td class="property_type"> | 123 | "<a class="link" href="RsvgHandle.html#RsvgHandle--height" title='The "height" property'>height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read |
3578 | 270 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> | 124 | "<a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title='The "metadata" property'>metadata</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read |
3579 | 271 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--base-uri" title="The “base-uri” property">base-uri</a></td> | 125 | "<a class="link" href="RsvgHandle.html#RsvgHandle--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read |
3580 | 272 | <td class="property_flags">Read / Write / Construct</td> | 126 | "<a class="link" href="RsvgHandle.html#RsvgHandle--width" title='The "width" property'>width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read |
3471 | 273 | </tr> | ||
3472 | 274 | <tr> | ||
3473 | 275 | <td class="property_type"> | ||
3474 | 276 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> | ||
3475 | 277 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--desc" title="The “desc” property">desc</a></td> | ||
3476 | 278 | <td class="property_flags">Read</td> | ||
3477 | 279 | </tr> | ||
3478 | 280 | <tr> | ||
3479 | 281 | <td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td> | ||
3480 | 282 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-x" title="The “dpi-x” property">dpi-x</a></td> | ||
3481 | 283 | <td class="property_flags">Read / Write / Construct</td> | ||
3482 | 284 | </tr> | ||
3483 | 285 | <tr> | ||
3484 | 286 | <td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td> | ||
3485 | 287 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--dpi-y" title="The “dpi-y” property">dpi-y</a></td> | ||
3486 | 288 | <td class="property_flags">Read / Write / Construct</td> | ||
3487 | 289 | </tr> | ||
3488 | 290 | <tr> | ||
3489 | 291 | <td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td> | ||
3490 | 292 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--em" title="The “em” property">em</a></td> | ||
3491 | 293 | <td class="property_flags">Read</td> | ||
3492 | 294 | </tr> | ||
3493 | 295 | <tr> | ||
3494 | 296 | <td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a></td> | ||
3495 | 297 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--ex" title="The “ex” property">ex</a></td> | ||
3496 | 298 | <td class="property_flags">Read</td> | ||
3497 | 299 | </tr> | ||
3498 | 300 | <tr> | ||
3499 | 301 | <td class="property_type"><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a></td> | ||
3500 | 302 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--flags" title="The “flags” property">flags</a></td> | ||
3501 | 303 | <td class="property_flags">Read / Write / Construct Only</td> | ||
3502 | 304 | </tr> | ||
3503 | 305 | <tr> | ||
3504 | 306 | <td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td> | ||
3505 | 307 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--height" title="The “height” property">height</a></td> | ||
3506 | 308 | <td class="property_flags">Read</td> | ||
3507 | 309 | </tr> | ||
3508 | 310 | <tr> | ||
3509 | 311 | <td class="property_type"> | ||
3510 | 312 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> | ||
3511 | 313 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--metadata" title="The “metadata” property">metadata</a></td> | ||
3512 | 314 | <td class="property_flags">Read</td> | ||
3513 | 315 | </tr> | ||
3514 | 316 | <tr> | ||
3515 | 317 | <td class="property_type"> | ||
3516 | 318 | <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> | ||
3517 | 319 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--title" title="The “title” property">title</a></td> | ||
3518 | 320 | <td class="property_flags">Read</td> | ||
3519 | 321 | </tr> | ||
3520 | 322 | <tr> | ||
3521 | 323 | <td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td> | ||
3522 | 324 | <td class="property_name"><a class="link" href="RsvgHandle.html#RsvgHandle--width" title="The “width” property">width</a></td> | ||
3523 | 325 | <td class="property_flags">Read</td> | ||
3524 | 326 | </tr> | ||
3525 | 327 | </tbody> | ||
3526 | 328 | </table></div> | ||
3527 | 329 | </div> | ||
3528 | 330 | <div class="refsect1"> | ||
3529 | 331 | <a name="RsvgHandle.other"></a><h2>Types and Values</h2> | ||
3530 | 332 | <div class="informaltable"><table width="100%" border="0"> | ||
3531 | 333 | <colgroup> | ||
3532 | 334 | <col width="150px" class="name"> | ||
3533 | 335 | <col class="description"> | ||
3534 | 336 | </colgroup> | ||
3535 | 337 | <tbody> | ||
3536 | 338 | <tr> | ||
3537 | 339 | <td class="datatype_keyword">enum</td> | ||
3538 | 340 | <td class="function_name"><a class="link" href="RsvgHandle.html#RsvgError" title="enum RsvgError">RsvgError</a></td> | ||
3539 | 341 | </tr> | ||
3540 | 342 | <tr> | ||
3541 | 343 | <td class="datatype_keyword">struct</td> | ||
3542 | 344 | <td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandle-struct" title="struct RsvgHandle">RsvgHandle</a></td> | ||
3543 | 345 | </tr> | ||
3544 | 346 | <tr> | ||
3545 | 347 | <td class="typedef_keyword">typedef</td> | ||
3546 | 348 | <td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandlePrivate" title="RsvgHandlePrivate">RsvgHandlePrivate</a></td> | ||
3547 | 349 | </tr> | ||
3548 | 350 | <tr> | ||
3549 | 351 | <td class="datatype_keyword">struct</td> | ||
3550 | 352 | <td class="function_name"><a class="link" href="RsvgHandle.html#RsvgHandleClass" title="struct RsvgHandleClass">RsvgHandleClass</a></td> | ||
3551 | 353 | </tr> | ||
3552 | 354 | <tr> | ||
3553 | 355 | <td class="datatype_keyword">struct</td> | ||
3554 | 356 | <td class="function_name"><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData">RsvgDimensionData</a></td> | ||
3555 | 357 | </tr> | ||
3556 | 358 | <tr> | ||
3557 | 359 | <td class="datatype_keyword">struct</td> | ||
3558 | 360 | <td class="function_name"><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData">RsvgPositionData</a></td> | ||
3559 | 361 | </tr> | ||
3560 | 362 | </tbody> | ||
3561 | 363 | </table></div> | ||
3562 | 364 | </div> | ||
3563 | 365 | <div class="refsect1"> | ||
3564 | 366 | <a name="RsvgHandle.object-hierarchy"></a><h2>Object Hierarchy</h2> | ||
3565 | 367 | <pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-Enumeration-and-Flag-Types.html">GEnum</a> | ||
3566 | 368 | <span class="lineart">╰──</span> RsvgError | ||
3567 | 369 | <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a> | ||
3568 | 370 | <span class="lineart">╰──</span> RsvgHandle | ||
3581 | 371 | </pre> | 127 | </pre> |
3582 | 372 | </div> | 128 | </div> |
3583 | 373 | <div class="refsect1"> | 129 | <div class="refsect1"> |
3584 | 374 | <a name="RsvgHandle.description"></a><h2>Description</h2> | 130 | <a name="RsvgHandle.description"></a><h2>Description</h2> |
3586 | 375 | <p>librsvg is a component used within software applications to enable | 131 | <p> |
3587 | 132 | librsvg is a component used within software applications to enable | ||
3588 | 376 | support for SVG-format scalable graphics. In contrast to raster | 133 | support for SVG-format scalable graphics. In contrast to raster |
3589 | 377 | formats, scalable vector graphics provide users and artists a way | 134 | formats, scalable vector graphics provide users and artists a way |
3590 | 378 | to create, view, and provide imagery that is not limited to the | 135 | to create, view, and provide imagery that is not limited to the |
3594 | 379 | pixel or dot density that an output device is capable of.</p> | 136 | pixel or dot density that an output device is capable of. |
3595 | 380 | <p>Many software developers use the librsvg library to render | 137 | </p> |
3596 | 381 | SVG graphics. It is lightweight and portable.</p> | 138 | <p> |
3597 | 139 | Many software developers use the librsvg library to render | ||
3598 | 140 | SVG graphics. It is lightweight and portable. | ||
3599 | 141 | </p> | ||
3600 | 382 | </div> | 142 | </div> |
3601 | 383 | <div class="refsect1"> | 143 | <div class="refsect1"> |
3603 | 384 | <a name="RsvgHandle.functions_details"></a><h2>Functions</h2> | 144 | <a name="RsvgHandle.details"></a><h2>Details</h2> |
3604 | 145 | <div class="refsect2"> | ||
3605 | 146 | <a name="RsvgError-enum"></a><h3>enum RsvgError</h3> | ||
3606 | 147 | <pre class="programlisting">typedef enum { | ||
3607 | 148 | RSVG_ERROR_FAILED | ||
3608 | 149 | } RsvgError; | ||
3609 | 150 | </pre> | ||
3610 | 151 | <p> | ||
3611 | 152 | An enumeration representing possible errors | ||
3612 | 153 | </p> | ||
3613 | 154 | <div class="variablelist"><table border="0" class="variablelist"> | ||
3614 | 155 | <colgroup> | ||
3615 | 156 | <col align="left" valign="top"> | ||
3616 | 157 | <col> | ||
3617 | 158 | </colgroup> | ||
3618 | 159 | <tbody><tr> | ||
3619 | 160 | <td><p><a name="RSVG-ERROR-FAILED:CAPS"></a><span class="term"><code class="literal">RSVG_ERROR_FAILED</code></span></p></td> | ||
3620 | 161 | <td>the request failed | ||
3621 | 162 | </td> | ||
3622 | 163 | </tr></tbody> | ||
3623 | 164 | </table></div> | ||
3624 | 165 | </div> | ||
3625 | 166 | <hr> | ||
3626 | 385 | <div class="refsect2"> | 167 | <div class="refsect2"> |
3627 | 386 | <a name="RSVG-ERROR:CAPS"></a><h3>RSVG_ERROR</h3> | 168 | <a name="RSVG-ERROR:CAPS"></a><h3>RSVG_ERROR</h3> |
3628 | 387 | <pre class="programlisting">#define RSVG_ERROR</pre> | 169 | <pre class="programlisting">#define RSVG_ERROR</pre> |
3629 | 388 | </div> | 170 | </div> |
3630 | 389 | <hr> | 171 | <hr> |
3631 | 390 | <div class="refsect2"> | 172 | <div class="refsect2"> |
4452 | 391 | <a name="rsvg-error-quark"></a><h3>rsvg_error_quark ()</h3> | 173 | <a name="rsvg-error-quark"></a><h3>rsvg_error_quark ()</h3> |
4453 | 392 | <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> | 174 | <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="returnvalue">GQuark</span></a> rsvg_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
4454 | 393 | rsvg_error_quark (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | 175 | <p> |
4455 | 394 | <p>The error domain for RSVG</p> | 176 | The error domain for RSVG |
4456 | 395 | <div class="refsect3"> | 177 | </p> |
4457 | 396 | <a name="id-1.2.3.8.3.5"></a><h4>Returns</h4> | 178 | <div class="variablelist"><table border="0" class="variablelist"> |
4458 | 397 | <p> The error domain</p> | 179 | <colgroup> |
4459 | 398 | <p></p> | 180 | <col align="left" valign="top"> |
4460 | 399 | </div> | 181 | <col> |
4461 | 400 | </div> | 182 | </colgroup> |
4462 | 401 | <hr> | 183 | <tbody><tr> |
4463 | 402 | <div class="refsect2"> | 184 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
4464 | 403 | <a name="rsvg-cleanup"></a><h3>rsvg_cleanup ()</h3> | 185 | <td>The error domain</td> |
4465 | 404 | <pre class="programlisting"><span class="returnvalue">void</span> | 186 | </tr></tbody> |
4466 | 405 | rsvg_cleanup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | 187 | </table></div> |
4467 | 406 | <p>This function should not be called from normal programs. | 188 | </div> |
4468 | 407 | See <code class="function">xmlCleanupParser()</code> for more information.</p> | 189 | <hr> |
4469 | 408 | <p class="since">Since 2.36</p> | 190 | <div class="refsect2"> |
4470 | 409 | </div> | 191 | <a name="RsvgHandle-struct"></a><h3>RsvgHandle</h3> |
4471 | 410 | <hr> | 192 | <pre class="programlisting">typedef struct _RsvgHandle RsvgHandle;</pre> |
4472 | 411 | <div class="refsect2"> | 193 | <p> |
4473 | 412 | <a name="rsvg-set-default-dpi"></a><h3>rsvg_set_default_dpi ()</h3> | 194 | The <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> is an object representing the parsed form of a SVG |
4474 | 413 | <pre class="programlisting"><span class="returnvalue">void</span> | 195 | </p> |
3655 | 414 | rsvg_set_default_dpi (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre> | ||
3656 | 415 | <p>Sets the DPI for the all future outgoing pixbufs. Common values are | ||
3657 | 416 | 75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> | ||
3658 | 417 | will | ||
3659 | 418 | reset the DPI to whatever the default value happens to be.</p> | ||
3660 | 419 | <div class="refsect3"> | ||
3661 | 420 | <a name="id-1.2.3.8.5.5"></a><h4>Parameters</h4> | ||
3662 | 421 | <div class="informaltable"><table width="100%" border="0"> | ||
3663 | 422 | <colgroup> | ||
3664 | 423 | <col width="150px" class="parameters_name"> | ||
3665 | 424 | <col class="parameters_description"> | ||
3666 | 425 | <col width="200px" class="parameters_annotations"> | ||
3667 | 426 | </colgroup> | ||
3668 | 427 | <tbody><tr> | ||
3669 | 428 | <td class="parameter_name"><p>dpi</p></td> | ||
3670 | 429 | <td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td> | ||
3671 | 430 | <td class="parameter_annotations"> </td> | ||
3672 | 431 | </tr></tbody> | ||
3673 | 432 | </table></div> | ||
3674 | 433 | </div> | ||
3675 | 434 | <p class="since">Since 2.8</p> | ||
3676 | 435 | </div> | ||
3677 | 436 | <hr> | ||
3678 | 437 | <div class="refsect2"> | ||
3679 | 438 | <a name="rsvg-set-default-dpi-x-y"></a><h3>rsvg_set_default_dpi_x_y ()</h3> | ||
3680 | 439 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
3681 | 440 | rsvg_set_default_dpi_x_y (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>, | ||
3682 | 441 | <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre> | ||
3683 | 442 | <p>Sets the DPI for the all future outgoing pixbufs. Common values are | ||
3684 | 443 | 75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> | ||
3685 | 444 | will | ||
3686 | 445 | reset the DPI to whatever the default value happens to be.</p> | ||
3687 | 446 | <div class="refsect3"> | ||
3688 | 447 | <a name="id-1.2.3.8.6.5"></a><h4>Parameters</h4> | ||
3689 | 448 | <div class="informaltable"><table width="100%" border="0"> | ||
3690 | 449 | <colgroup> | ||
3691 | 450 | <col width="150px" class="parameters_name"> | ||
3692 | 451 | <col class="parameters_description"> | ||
3693 | 452 | <col width="200px" class="parameters_annotations"> | ||
3694 | 453 | </colgroup> | ||
3695 | 454 | <tbody> | ||
3696 | 455 | <tr> | ||
3697 | 456 | <td class="parameter_name"><p>dpi_x</p></td> | ||
3698 | 457 | <td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td> | ||
3699 | 458 | <td class="parameter_annotations"> </td> | ||
3700 | 459 | </tr> | ||
3701 | 460 | <tr> | ||
3702 | 461 | <td class="parameter_name"><p>dpi_y</p></td> | ||
3703 | 462 | <td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td> | ||
3704 | 463 | <td class="parameter_annotations"> </td> | ||
3705 | 464 | </tr> | ||
3706 | 465 | </tbody> | ||
3707 | 466 | </table></div> | ||
3708 | 467 | </div> | ||
3709 | 468 | <p class="since">Since 2.8</p> | ||
3710 | 469 | </div> | ||
3711 | 470 | <hr> | ||
3712 | 471 | <div class="refsect2"> | ||
3713 | 472 | <a name="rsvg-handle-set-dpi"></a><h3>rsvg_handle_set_dpi ()</h3> | ||
3714 | 473 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
3715 | 474 | rsvg_handle_set_dpi (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3716 | 475 | <em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre> | ||
3717 | 476 | <p>Sets the DPI for the outgoing pixbuf. Common values are | ||
3718 | 477 | 75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> | ||
3719 | 478 | will | ||
3720 | 479 | reset the DPI to whatever the default value happens to be.</p> | ||
3721 | 480 | <div class="refsect3"> | ||
3722 | 481 | <a name="id-1.2.3.8.7.5"></a><h4>Parameters</h4> | ||
3723 | 482 | <div class="informaltable"><table width="100%" border="0"> | ||
3724 | 483 | <colgroup> | ||
3725 | 484 | <col width="150px" class="parameters_name"> | ||
3726 | 485 | <col class="parameters_description"> | ||
3727 | 486 | <col width="200px" class="parameters_annotations"> | ||
3728 | 487 | </colgroup> | ||
3729 | 488 | <tbody> | ||
3730 | 489 | <tr> | ||
3731 | 490 | <td class="parameter_name"><p>handle</p></td> | ||
3732 | 491 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
3733 | 492 | <td class="parameter_annotations"> </td> | ||
3734 | 493 | </tr> | ||
3735 | 494 | <tr> | ||
3736 | 495 | <td class="parameter_name"><p>dpi</p></td> | ||
3737 | 496 | <td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td> | ||
3738 | 497 | <td class="parameter_annotations"> </td> | ||
3739 | 498 | </tr> | ||
3740 | 499 | </tbody> | ||
3741 | 500 | </table></div> | ||
3742 | 501 | </div> | ||
3743 | 502 | <p class="since">Since 2.8</p> | ||
3744 | 503 | </div> | ||
3745 | 504 | <hr> | ||
3746 | 505 | <div class="refsect2"> | ||
3747 | 506 | <a name="rsvg-handle-set-dpi-x-y"></a><h3>rsvg_handle_set_dpi_x_y ()</h3> | ||
3748 | 507 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
3749 | 508 | rsvg_handle_set_dpi_x_y (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3750 | 509 | <em class="parameter"><code><span class="type">double</span> dpi_x</code></em>, | ||
3751 | 510 | <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre> | ||
3752 | 511 | <p>Sets the DPI for the outgoing pixbuf. Common values are | ||
3753 | 512 | 75, 90, and 300 DPI. Passing a number <= 0 to <span class="type">dpi_x</span> or <em class="parameter"><code>dpi_y</code></em> | ||
3754 | 513 | will | ||
3755 | 514 | reset the DPI to whatever the default value happens to be.</p> | ||
3756 | 515 | <div class="refsect3"> | ||
3757 | 516 | <a name="id-1.2.3.8.8.5"></a><h4>Parameters</h4> | ||
3758 | 517 | <div class="informaltable"><table width="100%" border="0"> | ||
3759 | 518 | <colgroup> | ||
3760 | 519 | <col width="150px" class="parameters_name"> | ||
3761 | 520 | <col class="parameters_description"> | ||
3762 | 521 | <col width="200px" class="parameters_annotations"> | ||
3763 | 522 | </colgroup> | ||
3764 | 523 | <tbody> | ||
3765 | 524 | <tr> | ||
3766 | 525 | <td class="parameter_name"><p>handle</p></td> | ||
3767 | 526 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
3768 | 527 | <td class="parameter_annotations"> </td> | ||
3769 | 528 | </tr> | ||
3770 | 529 | <tr> | ||
3771 | 530 | <td class="parameter_name"><p>dpi_x</p></td> | ||
3772 | 531 | <td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td> | ||
3773 | 532 | <td class="parameter_annotations"> </td> | ||
3774 | 533 | </tr> | ||
3775 | 534 | <tr> | ||
3776 | 535 | <td class="parameter_name"><p>dpi_y</p></td> | ||
3777 | 536 | <td class="parameter_description"><p>Dots Per Inch (aka Pixels Per Inch)</p></td> | ||
3778 | 537 | <td class="parameter_annotations"> </td> | ||
3779 | 538 | </tr> | ||
3780 | 539 | </tbody> | ||
3781 | 540 | </table></div> | ||
3782 | 541 | </div> | ||
3783 | 542 | <p class="since">Since 2.8</p> | ||
3784 | 543 | </div> | ||
3785 | 544 | <hr> | ||
3786 | 545 | <div class="refsect2"> | ||
3787 | 546 | <a name="rsvg-handle-new"></a><h3>rsvg_handle_new ()</h3> | ||
3788 | 547 | <pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
3789 | 548 | rsvg_handle_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | ||
3790 | 549 | <p>Returns a new rsvg handle. Must be freed with <em class="parameter"><code>g_object_unref</code></em> | ||
3791 | 550 | . This | ||
3792 | 551 | handle can be used for dynamically loading an image. You need to feed it | ||
3793 | 552 | data using <em class="parameter"><code>rsvg_handle_write</code></em> | ||
3794 | 553 | , then call <em class="parameter"><code>rsvg_handle_close</code></em> | ||
3795 | 554 | when done. | ||
3796 | 555 | Afterwords, you can render it using Cairo or get a GdkPixbuf from it. When | ||
3797 | 556 | finished, free with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. No more than one image can be loaded | ||
3798 | 557 | with one handle.</p> | ||
3799 | 558 | <div class="refsect3"> | ||
3800 | 559 | <a name="id-1.2.3.8.9.5"></a><h4>Returns</h4> | ||
3801 | 560 | <p> A new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p> | ||
3802 | 561 | <p></p> | ||
3803 | 562 | </div> | ||
3804 | 563 | </div> | ||
3805 | 564 | <hr> | ||
3806 | 565 | <div class="refsect2"> | ||
3807 | 566 | <a name="rsvg-handle-new-with-flags"></a><h3>rsvg_handle_new_with_flags ()</h3> | ||
3808 | 567 | <pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
3809 | 568 | rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);</pre> | ||
3810 | 569 | <p>Creates a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> with flags <em class="parameter"><code>flags</code></em> | ||
3811 | 570 | .</p> | ||
3812 | 571 | <div class="refsect3"> | ||
3813 | 572 | <a name="id-1.2.3.8.10.5"></a><h4>Parameters</h4> | ||
3814 | 573 | <div class="informaltable"><table width="100%" border="0"> | ||
3815 | 574 | <colgroup> | ||
3816 | 575 | <col width="150px" class="parameters_name"> | ||
3817 | 576 | <col class="parameters_description"> | ||
3818 | 577 | <col width="200px" class="parameters_annotations"> | ||
3819 | 578 | </colgroup> | ||
3820 | 579 | <tbody><tr> | ||
3821 | 580 | <td class="parameter_name"><p>flags</p></td> | ||
3822 | 581 | <td class="parameter_description"><p>flags from <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags" title="enum RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a></p></td> | ||
3823 | 582 | <td class="parameter_annotations"> </td> | ||
3824 | 583 | </tr></tbody> | ||
3825 | 584 | </table></div> | ||
3826 | 585 | </div> | ||
3827 | 586 | <div class="refsect3"> | ||
3828 | 587 | <a name="id-1.2.3.8.10.6"></a><h4>Returns</h4> | ||
3829 | 588 | <p> a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>. </p> | ||
3830 | 589 | <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> | ||
3831 | 590 | </div> | ||
3832 | 591 | <p class="since">Since 2.36</p> | ||
3833 | 592 | </div> | ||
3834 | 593 | <hr> | ||
3835 | 594 | <div class="refsect2"> | ||
3836 | 595 | <a name="rsvg-handle-write"></a><h3>rsvg_handle_write ()</h3> | ||
3837 | 596 | <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3838 | 597 | rsvg_handle_write (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3839 | 598 | <em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>, | ||
3840 | 599 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>, | ||
3841 | 600 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> | ||
3842 | 601 | <p>Loads the next <em class="parameter"><code>count</code></em> | ||
3843 | 602 | bytes of the image. This will return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data | ||
3844 | 603 | was loaded successful, and <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case, | ||
3845 | 604 | the loader will be closed, and will not accept further writes. If <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is | ||
3846 | 605 | returned, <em class="parameter"><code>error</code></em> | ||
3847 | 606 | will be set to an error from the <a class="link" href="RsvgHandle.html#RsvgError" title="enum RsvgError"><span class="type">RsvgError</span></a> domain. Errors | ||
3848 | 607 | from <a href="https://developer.gnome.org/gio/unstable/gio-GIOError.html#GIOErrorEnum"><span class="type">GIOErrorEnum</span></a> are also possible.</p> | ||
3849 | 608 | <div class="refsect3"> | ||
3850 | 609 | <a name="id-1.2.3.8.11.5"></a><h4>Parameters</h4> | ||
3851 | 610 | <div class="informaltable"><table width="100%" border="0"> | ||
3852 | 611 | <colgroup> | ||
3853 | 612 | <col width="150px" class="parameters_name"> | ||
3854 | 613 | <col class="parameters_description"> | ||
3855 | 614 | <col width="200px" class="parameters_annotations"> | ||
3856 | 615 | </colgroup> | ||
3857 | 616 | <tbody> | ||
3858 | 617 | <tr> | ||
3859 | 618 | <td class="parameter_name"><p>handle</p></td> | ||
3860 | 619 | <td class="parameter_description"><p>an <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
3861 | 620 | <td class="parameter_annotations"> </td> | ||
3862 | 621 | </tr> | ||
3863 | 622 | <tr> | ||
3864 | 623 | <td class="parameter_name"><p>buf</p></td> | ||
3865 | 624 | <td class="parameter_description"><p> pointer to svg data. </p></td> | ||
3866 | 625 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=count][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td> | ||
3867 | 626 | </tr> | ||
3868 | 627 | <tr> | ||
3869 | 628 | <td class="parameter_name"><p>count</p></td> | ||
3870 | 629 | <td class="parameter_description"><p>length of the <em class="parameter"><code>buf</code></em> | ||
3871 | 630 | buffer in bytes</p></td> | ||
3872 | 631 | <td class="parameter_annotations"> </td> | ||
3873 | 632 | </tr> | ||
3874 | 633 | <tr> | ||
3875 | 634 | <td class="parameter_name"><p>error</p></td> | ||
3876 | 635 | <td class="parameter_description"><p> a location to store a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> | ||
3877 | 636 | <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> | ||
3878 | 637 | </tr> | ||
3879 | 638 | </tbody> | ||
3880 | 639 | </table></div> | ||
3881 | 640 | </div> | ||
3882 | 641 | <div class="refsect3"> | ||
3883 | 642 | <a name="id-1.2.3.8.11.6"></a><h4>Returns</h4> | ||
3884 | 643 | <p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p> | ||
3885 | 644 | <p></p> | ||
3886 | 645 | </div> | ||
3887 | 646 | </div> | ||
3888 | 647 | <hr> | ||
3889 | 648 | <div class="refsect2"> | ||
3890 | 649 | <a name="rsvg-handle-close"></a><h3>rsvg_handle_close ()</h3> | ||
3891 | 650 | <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
3892 | 651 | rsvg_handle_close (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3893 | 652 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> | ||
3894 | 653 | <p>Closes <em class="parameter"><code>handle</code></em> | ||
3895 | 654 | , to indicate that loading the image is complete. This will | ||
3896 | 655 | return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the loader closed successfully. Note that <em class="parameter"><code>handle</code></em> | ||
3897 | 656 | isn't | ||
3898 | 657 | freed until <em class="parameter"><code>g_object_unref</code></em> | ||
3899 | 658 | is called.</p> | ||
3900 | 659 | <div class="refsect3"> | ||
3901 | 660 | <a name="id-1.2.3.8.12.5"></a><h4>Parameters</h4> | ||
3902 | 661 | <div class="informaltable"><table width="100%" border="0"> | ||
3903 | 662 | <colgroup> | ||
3904 | 663 | <col width="150px" class="parameters_name"> | ||
3905 | 664 | <col class="parameters_description"> | ||
3906 | 665 | <col width="200px" class="parameters_annotations"> | ||
3907 | 666 | </colgroup> | ||
3908 | 667 | <tbody> | ||
3909 | 668 | <tr> | ||
3910 | 669 | <td class="parameter_name"><p>handle</p></td> | ||
3911 | 670 | <td class="parameter_description"><p>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
3912 | 671 | <td class="parameter_annotations"> </td> | ||
3913 | 672 | </tr> | ||
3914 | 673 | <tr> | ||
3915 | 674 | <td class="parameter_name"><p>error</p></td> | ||
3916 | 675 | <td class="parameter_description"><p> a location to store a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> | ||
3917 | 676 | <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> | ||
3918 | 677 | </tr> | ||
3919 | 678 | </tbody> | ||
3920 | 679 | </table></div> | ||
3921 | 680 | </div> | ||
3922 | 681 | <div class="refsect3"> | ||
3923 | 682 | <a name="id-1.2.3.8.12.6"></a><h4>Returns</h4> | ||
3924 | 683 | <p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p> | ||
3925 | 684 | <p></p> | ||
3926 | 685 | </div> | ||
3927 | 686 | </div> | ||
3928 | 687 | <hr> | ||
3929 | 688 | <div class="refsect2"> | ||
3930 | 689 | <a name="rsvg-handle-get-base-uri"></a><h3>rsvg_handle_get_base_uri ()</h3> | ||
3931 | 690 | <pre class="programlisting">const <span class="returnvalue">char</span> * | ||
3932 | 691 | rsvg_handle_get_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre> | ||
3933 | 692 | <p>Gets the base uri for this <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>.</p> | ||
3934 | 693 | <div class="refsect3"> | ||
3935 | 694 | <a name="id-1.2.3.8.13.5"></a><h4>Parameters</h4> | ||
3936 | 695 | <div class="informaltable"><table width="100%" border="0"> | ||
3937 | 696 | <colgroup> | ||
3938 | 697 | <col width="150px" class="parameters_name"> | ||
3939 | 698 | <col class="parameters_description"> | ||
3940 | 699 | <col width="200px" class="parameters_annotations"> | ||
3941 | 700 | </colgroup> | ||
3942 | 701 | <tbody><tr> | ||
3943 | 702 | <td class="parameter_name"><p>handle</p></td> | ||
3944 | 703 | <td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
3945 | 704 | <td class="parameter_annotations"> </td> | ||
3946 | 705 | </tr></tbody> | ||
3947 | 706 | </table></div> | ||
3948 | 707 | </div> | ||
3949 | 708 | <div class="refsect3"> | ||
3950 | 709 | <a name="id-1.2.3.8.13.6"></a><h4>Returns</h4> | ||
3951 | 710 | <p> the base uri, possibly null</p> | ||
3952 | 711 | <p></p> | ||
3953 | 712 | </div> | ||
3954 | 713 | <p class="since">Since 2.8</p> | ||
3955 | 714 | </div> | ||
3956 | 715 | <hr> | ||
3957 | 716 | <div class="refsect2"> | ||
3958 | 717 | <a name="rsvg-handle-set-base-uri"></a><h3>rsvg_handle_set_base_uri ()</h3> | ||
3959 | 718 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
3960 | 719 | rsvg_handle_set_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3961 | 720 | <em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);</pre> | ||
3962 | 721 | <p>Set the base URI for this SVG. This can only be called before <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()"><code class="function">rsvg_handle_write()</code></a> | ||
3963 | 722 | has been called.</p> | ||
3964 | 723 | <div class="refsect3"> | ||
3965 | 724 | <a name="id-1.2.3.8.14.5"></a><h4>Parameters</h4> | ||
3966 | 725 | <div class="informaltable"><table width="100%" border="0"> | ||
3967 | 726 | <colgroup> | ||
3968 | 727 | <col width="150px" class="parameters_name"> | ||
3969 | 728 | <col class="parameters_description"> | ||
3970 | 729 | <col width="200px" class="parameters_annotations"> | ||
3971 | 730 | </colgroup> | ||
3972 | 731 | <tbody> | ||
3973 | 732 | <tr> | ||
3974 | 733 | <td class="parameter_name"><p>handle</p></td> | ||
3975 | 734 | <td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
3976 | 735 | <td class="parameter_annotations"> </td> | ||
3977 | 736 | </tr> | ||
3978 | 737 | <tr> | ||
3979 | 738 | <td class="parameter_name"><p>base_uri</p></td> | ||
3980 | 739 | <td class="parameter_description"><p>The base uri</p></td> | ||
3981 | 740 | <td class="parameter_annotations"> </td> | ||
3982 | 741 | </tr> | ||
3983 | 742 | </tbody> | ||
3984 | 743 | </table></div> | ||
3985 | 744 | </div> | ||
3986 | 745 | <p class="since">Since 2.9</p> | ||
3987 | 746 | </div> | ||
3988 | 747 | <hr> | ||
3989 | 748 | <div class="refsect2"> | ||
3990 | 749 | <a name="rsvg-handle-get-dimensions"></a><h3>rsvg_handle_get_dimensions ()</h3> | ||
3991 | 750 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
3992 | 751 | rsvg_handle_get_dimensions (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
3993 | 752 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);</pre> | ||
3994 | 753 | <p>Get the SVG's size. Do not call from within the size_func callback, because an infinite loop will occur.</p> | ||
3995 | 754 | <div class="refsect3"> | ||
3996 | 755 | <a name="id-1.2.3.8.15.5"></a><h4>Parameters</h4> | ||
3997 | 756 | <div class="informaltable"><table width="100%" border="0"> | ||
3998 | 757 | <colgroup> | ||
3999 | 758 | <col width="150px" class="parameters_name"> | ||
4000 | 759 | <col class="parameters_description"> | ||
4001 | 760 | <col width="200px" class="parameters_annotations"> | ||
4002 | 761 | </colgroup> | ||
4003 | 762 | <tbody> | ||
4004 | 763 | <tr> | ||
4005 | 764 | <td class="parameter_name"><p>handle</p></td> | ||
4006 | 765 | <td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4007 | 766 | <td class="parameter_annotations"> </td> | ||
4008 | 767 | </tr> | ||
4009 | 768 | <tr> | ||
4010 | 769 | <td class="parameter_name"><p>dimension_data</p></td> | ||
4011 | 770 | <td class="parameter_description"><p> A place to store the SVG's size. </p></td> | ||
4012 | 771 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> | ||
4013 | 772 | </tr> | ||
4014 | 773 | </tbody> | ||
4015 | 774 | </table></div> | ||
4016 | 775 | </div> | ||
4017 | 776 | <p class="since">Since 2.14</p> | ||
4018 | 777 | </div> | ||
4019 | 778 | <hr> | ||
4020 | 779 | <div class="refsect2"> | ||
4021 | 780 | <a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub ()</h3> | ||
4022 | 781 | <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
4023 | 782 | rsvg_handle_get_dimensions_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4024 | 783 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>, | ||
4025 | 784 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre> | ||
4026 | 785 | <p>Get the size of a subelement of the SVG file. Do not call from within the size_func callback, because an infinite loop will occur.</p> | ||
4027 | 786 | <div class="refsect3"> | ||
4028 | 787 | <a name="id-1.2.3.8.16.5"></a><h4>Parameters</h4> | ||
4029 | 788 | <div class="informaltable"><table width="100%" border="0"> | ||
4030 | 789 | <colgroup> | ||
4031 | 790 | <col width="150px" class="parameters_name"> | ||
4032 | 791 | <col class="parameters_description"> | ||
4033 | 792 | <col width="200px" class="parameters_annotations"> | ||
4034 | 793 | </colgroup> | ||
4035 | 794 | <tbody> | ||
4036 | 795 | <tr> | ||
4037 | 796 | <td class="parameter_name"><p>handle</p></td> | ||
4038 | 797 | <td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4039 | 798 | <td class="parameter_annotations"> </td> | ||
4040 | 799 | </tr> | ||
4041 | 800 | <tr> | ||
4042 | 801 | <td class="parameter_name"><p>dimension_data</p></td> | ||
4043 | 802 | <td class="parameter_description"><p> A place to store the SVG's size. </p></td> | ||
4044 | 803 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> | ||
4045 | 804 | </tr> | ||
4046 | 805 | <tr> | ||
4047 | 806 | <td class="parameter_name"><p>id</p></td> | ||
4048 | 807 | <td class="parameter_description"><p> An element's id within the SVG, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to get | ||
4049 | 808 | the dimension of the whole SVG. For example, if you have a layer | ||
4050 | 809 | called "layer1" for that you want to get the dimension, pass | ||
4051 | 810 | "<span class="type">layer1</span>" as the id. </p></td> | ||
4052 | 811 | <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> | ||
4053 | 812 | </tr> | ||
4054 | 813 | </tbody> | ||
4055 | 814 | </table></div> | ||
4056 | 815 | </div> | ||
4057 | 816 | <p class="since">Since 2.22</p> | ||
4058 | 817 | </div> | ||
4059 | 818 | <hr> | ||
4060 | 819 | <div class="refsect2"> | ||
4061 | 820 | <a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub ()</h3> | ||
4062 | 821 | <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
4063 | 822 | rsvg_handle_get_position_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4064 | 823 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>, | ||
4065 | 824 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre> | ||
4066 | 825 | <p>Get the position of a subelement of the SVG file. Do not call from within | ||
4067 | 826 | the size_func callback, because an infinite loop will occur.</p> | ||
4068 | 827 | <div class="refsect3"> | ||
4069 | 828 | <a name="id-1.2.3.8.17.5"></a><h4>Parameters</h4> | ||
4070 | 829 | <div class="informaltable"><table width="100%" border="0"> | ||
4071 | 830 | <colgroup> | ||
4072 | 831 | <col width="150px" class="parameters_name"> | ||
4073 | 832 | <col class="parameters_description"> | ||
4074 | 833 | <col width="200px" class="parameters_annotations"> | ||
4075 | 834 | </colgroup> | ||
4076 | 835 | <tbody> | ||
4077 | 836 | <tr> | ||
4078 | 837 | <td class="parameter_name"><p>handle</p></td> | ||
4079 | 838 | <td class="parameter_description"><p>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4080 | 839 | <td class="parameter_annotations"> </td> | ||
4081 | 840 | </tr> | ||
4082 | 841 | <tr> | ||
4083 | 842 | <td class="parameter_name"><p>position_data</p></td> | ||
4084 | 843 | <td class="parameter_description"><p> A place to store the SVG fragment's position. </p></td> | ||
4085 | 844 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> | ||
4086 | 845 | </tr> | ||
4087 | 846 | <tr> | ||
4088 | 847 | <td class="parameter_name"><p>id</p></td> | ||
4089 | 848 | <td class="parameter_description"><p>An element's id within the SVG. | ||
4090 | 849 | For example, if you have a layer called "layer1" for that you want to get | ||
4091 | 850 | the position, pass "#<span class="type">layer1</span>" as the id.</p></td> | ||
4092 | 851 | <td class="parameter_annotations"> </td> | ||
4093 | 852 | </tr> | ||
4094 | 853 | </tbody> | ||
4095 | 854 | </table></div> | ||
4096 | 855 | </div> | ||
4097 | 856 | <p class="since">Since 2.22</p> | ||
4098 | 857 | </div> | ||
4099 | 858 | <hr> | ||
4100 | 859 | <div class="refsect2"> | ||
4101 | 860 | <a name="rsvg-handle-has-sub"></a><h3>rsvg_handle_has_sub ()</h3> | ||
4102 | 861 | <pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> | ||
4103 | 862 | rsvg_handle_has_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4104 | 863 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre> | ||
4105 | 864 | <p>Checks whether the element <em class="parameter"><code>id</code></em> | ||
4106 | 865 | exists in the SVG document.</p> | ||
4107 | 866 | <div class="refsect3"> | ||
4108 | 867 | <a name="id-1.2.3.8.18.5"></a><h4>Parameters</h4> | ||
4109 | 868 | <div class="informaltable"><table width="100%" border="0"> | ||
4110 | 869 | <colgroup> | ||
4111 | 870 | <col width="150px" class="parameters_name"> | ||
4112 | 871 | <col class="parameters_description"> | ||
4113 | 872 | <col width="200px" class="parameters_annotations"> | ||
4114 | 873 | </colgroup> | ||
4115 | 874 | <tbody> | ||
4116 | 875 | <tr> | ||
4117 | 876 | <td class="parameter_name"><p>handle</p></td> | ||
4118 | 877 | <td class="parameter_description"><p>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4119 | 878 | <td class="parameter_annotations"> </td> | ||
4120 | 879 | </tr> | ||
4121 | 880 | <tr> | ||
4122 | 881 | <td class="parameter_name"><p>id</p></td> | ||
4123 | 882 | <td class="parameter_description"><p>an element's id within the SVG</p></td> | ||
4124 | 883 | <td class="parameter_annotations"> </td> | ||
4125 | 884 | </tr> | ||
4126 | 885 | </tbody> | ||
4127 | 886 | </table></div> | ||
4128 | 887 | </div> | ||
4129 | 888 | <div class="refsect3"> | ||
4130 | 889 | <a name="id-1.2.3.8.18.6"></a><h4>Returns</h4> | ||
4131 | 890 | <p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>id</code></em> | ||
4132 | 891 | exists in the SVG document</p> | ||
4133 | 892 | <p></p> | ||
4134 | 893 | </div> | ||
4135 | 894 | <p class="since">Since 2.22</p> | ||
4136 | 895 | </div> | ||
4137 | 896 | <hr> | ||
4138 | 897 | <div class="refsect2"> | ||
4139 | 898 | <a name="rsvg-handle-get-title"></a><h3>rsvg_handle_get_title ()</h3> | ||
4140 | 899 | <pre class="programlisting">const <span class="returnvalue">char</span> * | ||
4141 | 900 | rsvg_handle_get_title (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre> | ||
4142 | 901 | <div class="warning"><p><code class="literal">rsvg_handle_get_title</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div> | ||
4143 | 902 | <p>Returns the SVG's title in UTF-8 or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy | ||
4144 | 903 | of this title if you wish to use it after <em class="parameter"><code>handle</code></em> | ||
4145 | 904 | has been freed.</p> | ||
4146 | 905 | <div class="refsect3"> | ||
4147 | 906 | <a name="id-1.2.3.8.19.7"></a><h4>Parameters</h4> | ||
4148 | 907 | <div class="informaltable"><table width="100%" border="0"> | ||
4149 | 908 | <colgroup> | ||
4150 | 909 | <col width="150px" class="parameters_name"> | ||
4151 | 910 | <col class="parameters_description"> | ||
4152 | 911 | <col width="200px" class="parameters_annotations"> | ||
4153 | 912 | </colgroup> | ||
4154 | 913 | <tbody><tr> | ||
4155 | 914 | <td class="parameter_name"><p>handle</p></td> | ||
4156 | 915 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4157 | 916 | <td class="parameter_annotations"> </td> | ||
4158 | 917 | </tr></tbody> | ||
4159 | 918 | </table></div> | ||
4160 | 919 | </div> | ||
4161 | 920 | <div class="refsect3"> | ||
4162 | 921 | <a name="id-1.2.3.8.19.8"></a><h4>Returns</h4> | ||
4163 | 922 | <p> The SVG's title. </p> | ||
4164 | 923 | <p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> | ||
4165 | 924 | </div> | ||
4166 | 925 | <p class="since">Since 2.4</p> | ||
4167 | 926 | </div> | ||
4168 | 927 | <hr> | ||
4169 | 928 | <div class="refsect2"> | ||
4170 | 929 | <a name="rsvg-handle-get-desc"></a><h3>rsvg_handle_get_desc ()</h3> | ||
4171 | 930 | <pre class="programlisting">const <span class="returnvalue">char</span> * | ||
4172 | 931 | rsvg_handle_get_desc (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre> | ||
4173 | 932 | <div class="warning"><p><code class="literal">rsvg_handle_get_desc</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div> | ||
4174 | 933 | <p>Returns the SVG's description in UTF-8 or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy | ||
4175 | 934 | of this description if you wish to use it after <em class="parameter"><code>handle</code></em> | ||
4176 | 935 | has been freed.</p> | ||
4177 | 936 | <div class="refsect3"> | ||
4178 | 937 | <a name="id-1.2.3.8.20.7"></a><h4>Parameters</h4> | ||
4179 | 938 | <div class="informaltable"><table width="100%" border="0"> | ||
4180 | 939 | <colgroup> | ||
4181 | 940 | <col width="150px" class="parameters_name"> | ||
4182 | 941 | <col class="parameters_description"> | ||
4183 | 942 | <col width="200px" class="parameters_annotations"> | ||
4184 | 943 | </colgroup> | ||
4185 | 944 | <tbody><tr> | ||
4186 | 945 | <td class="parameter_name"><p>handle</p></td> | ||
4187 | 946 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4188 | 947 | <td class="parameter_annotations"> </td> | ||
4189 | 948 | </tr></tbody> | ||
4190 | 949 | </table></div> | ||
4191 | 950 | </div> | ||
4192 | 951 | <div class="refsect3"> | ||
4193 | 952 | <a name="id-1.2.3.8.20.8"></a><h4>Returns</h4> | ||
4194 | 953 | <p> The SVG's description. </p> | ||
4195 | 954 | <p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> | ||
4196 | 955 | </div> | ||
4197 | 956 | <p class="since">Since 2.4</p> | ||
4198 | 957 | </div> | ||
4199 | 958 | <hr> | ||
4200 | 959 | <div class="refsect2"> | ||
4201 | 960 | <a name="rsvg-handle-get-metadata"></a><h3>rsvg_handle_get_metadata ()</h3> | ||
4202 | 961 | <pre class="programlisting">const <span class="returnvalue">char</span> * | ||
4203 | 962 | rsvg_handle_get_metadata (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre> | ||
4204 | 963 | <div class="warning"><p><code class="literal">rsvg_handle_get_metadata</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div> | ||
4205 | 964 | <p>Returns the SVG's metadata in UTF-8 or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. You must make a copy | ||
4206 | 965 | of this metadata if you wish to use it after <em class="parameter"><code>handle</code></em> | ||
4207 | 966 | has been freed.</p> | ||
4208 | 967 | <div class="refsect3"> | ||
4209 | 968 | <a name="id-1.2.3.8.21.7"></a><h4>Parameters</h4> | ||
4210 | 969 | <div class="informaltable"><table width="100%" border="0"> | ||
4211 | 970 | <colgroup> | ||
4212 | 971 | <col width="150px" class="parameters_name"> | ||
4213 | 972 | <col class="parameters_description"> | ||
4214 | 973 | <col width="200px" class="parameters_annotations"> | ||
4215 | 974 | </colgroup> | ||
4216 | 975 | <tbody><tr> | ||
4217 | 976 | <td class="parameter_name"><p>handle</p></td> | ||
4218 | 977 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4219 | 978 | <td class="parameter_annotations"> </td> | ||
4220 | 979 | </tr></tbody> | ||
4221 | 980 | </table></div> | ||
4222 | 981 | </div> | ||
4223 | 982 | <div class="refsect3"> | ||
4224 | 983 | <a name="id-1.2.3.8.21.8"></a><h4>Returns</h4> | ||
4225 | 984 | <p> The SVG's title. </p> | ||
4226 | 985 | <p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> | ||
4227 | 986 | </div> | ||
4228 | 987 | <p class="since">Since 2.9</p> | ||
4229 | 988 | </div> | ||
4230 | 989 | <hr> | ||
4231 | 990 | <div class="refsect2"> | ||
4232 | 991 | <a name="rsvg-handle-new-from-data"></a><h3>rsvg_handle_new_from_data ()</h3> | ||
4233 | 992 | <pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
4234 | 993 | rsvg_handle_new_from_data (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *data</code></em>, | ||
4235 | 994 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> data_len</code></em>, | ||
4236 | 995 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> | ||
4237 | 996 | <p>Loads the SVG specified by <em class="parameter"><code>data</code></em> | ||
4238 | 997 | .</p> | ||
4239 | 998 | <div class="refsect3"> | ||
4240 | 999 | <a name="id-1.2.3.8.22.5"></a><h4>Parameters</h4> | ||
4241 | 1000 | <div class="informaltable"><table width="100%" border="0"> | ||
4242 | 1001 | <colgroup> | ||
4243 | 1002 | <col width="150px" class="parameters_name"> | ||
4244 | 1003 | <col class="parameters_description"> | ||
4245 | 1004 | <col width="200px" class="parameters_annotations"> | ||
4246 | 1005 | </colgroup> | ||
4247 | 1006 | <tbody> | ||
4248 | 1007 | <tr> | ||
4249 | 1008 | <td class="parameter_name"><p>data</p></td> | ||
4250 | 1009 | <td class="parameter_description"><p> The SVG data. </p></td> | ||
4251 | 1010 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=data_len]</span></td> | ||
4252 | 1011 | </tr> | ||
4253 | 1012 | <tr> | ||
4254 | 1013 | <td class="parameter_name"><p>data_len</p></td> | ||
4255 | 1014 | <td class="parameter_description"><p>The length of <em class="parameter"><code>data</code></em> | ||
4256 | 1015 | , in bytes</p></td> | ||
4257 | 1016 | <td class="parameter_annotations"> </td> | ||
4258 | 1017 | </tr> | ||
4259 | 1018 | <tr> | ||
4260 | 1019 | <td class="parameter_name"><p>error</p></td> | ||
4261 | 1020 | <td class="parameter_description"><p>return location for errors</p></td> | ||
4262 | 1021 | <td class="parameter_annotations"> </td> | ||
4263 | 1022 | </tr> | ||
4264 | 1023 | </tbody> | ||
4265 | 1024 | </table></div> | ||
4266 | 1025 | </div> | ||
4267 | 1026 | <div class="refsect3"> | ||
4268 | 1027 | <a name="id-1.2.3.8.22.6"></a><h4>Returns</h4> | ||
4269 | 1028 | <p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p> | ||
4270 | 1029 | <p></p> | ||
4271 | 1030 | </div> | ||
4272 | 1031 | <p class="since">Since 2.14</p> | ||
4273 | 1032 | </div> | ||
4274 | 1033 | <hr> | ||
4275 | 1034 | <div class="refsect2"> | ||
4276 | 1035 | <a name="rsvg-handle-new-from-file"></a><h3>rsvg_handle_new_from_file ()</h3> | ||
4277 | 1036 | <pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * | ||
4278 | 1037 | rsvg_handle_new_from_file (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *file_name</code></em>, | ||
4279 | 1038 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> | ||
4280 | 1039 | <p>Loads the SVG specified by <em class="parameter"><code>file_name</code></em> | ||
4281 | 1040 | .</p> | ||
4282 | 1041 | <div class="refsect3"> | ||
4283 | 1042 | <a name="id-1.2.3.8.23.5"></a><h4>Parameters</h4> | ||
4284 | 1043 | <div class="informaltable"><table width="100%" border="0"> | ||
4285 | 1044 | <colgroup> | ||
4286 | 1045 | <col width="150px" class="parameters_name"> | ||
4287 | 1046 | <col class="parameters_description"> | ||
4288 | 1047 | <col width="200px" class="parameters_annotations"> | ||
4289 | 1048 | </colgroup> | ||
4290 | 1049 | <tbody> | ||
4291 | 1050 | <tr> | ||
4292 | 1051 | <td class="parameter_name"><p>file_name</p></td> | ||
4293 | 1052 | <td class="parameter_description"><p>The file name to load. If built with gnome-vfs, can be a URI.</p></td> | ||
4294 | 1053 | <td class="parameter_annotations"> </td> | ||
4295 | 1054 | </tr> | ||
4296 | 1055 | <tr> | ||
4297 | 1056 | <td class="parameter_name"><p>error</p></td> | ||
4298 | 1057 | <td class="parameter_description"><p>return location for errors</p></td> | ||
4299 | 1058 | <td class="parameter_annotations"> </td> | ||
4300 | 1059 | </tr> | ||
4301 | 1060 | </tbody> | ||
4302 | 1061 | </table></div> | ||
4303 | 1062 | </div> | ||
4304 | 1063 | <div class="refsect3"> | ||
4305 | 1064 | <a name="id-1.2.3.8.23.6"></a><h4>Returns</h4> | ||
4306 | 1065 | <p> A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurs.</p> | ||
4307 | 1066 | <p></p> | ||
4308 | 1067 | </div> | ||
4309 | 1068 | <p class="since">Since 2.14</p> | ||
4310 | 1069 | </div> | ||
4311 | 1070 | <hr> | ||
4312 | 1071 | <div class="refsect2"> | ||
4313 | 1072 | <a name="rsvg-error-get-type"></a><h3>rsvg_error_get_type ()</h3> | ||
4314 | 1073 | <pre class="programlisting"><a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> | ||
4315 | 1074 | rsvg_error_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | ||
4316 | 1075 | </div> | ||
4317 | 1076 | <hr> | ||
4318 | 1077 | <div class="refsect2"> | ||
4319 | 1078 | <a name="RSVG-TYPE-ERROR:CAPS"></a><h3>RSVG_TYPE_ERROR</h3> | ||
4320 | 1079 | <pre class="programlisting">#define RSVG_TYPE_ERROR</pre> | ||
4321 | 1080 | </div> | ||
4322 | 1081 | <hr> | ||
4323 | 1082 | <div class="refsect2"> | ||
4324 | 1083 | <a name="rsvg-init"></a><h3>rsvg_init ()</h3> | ||
4325 | 1084 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
4326 | 1085 | rsvg_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | ||
4327 | 1086 | <div class="warning"> | ||
4328 | 1087 | <p><code class="literal">rsvg_init</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p> | ||
4329 | 1088 | <p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#g-type-init"><code class="function">g_type_init()</code></a></p> | ||
4330 | 1089 | </div> | ||
4331 | 1090 | <p>Initializes librsvg</p> | ||
4332 | 1091 | <p class="since">Since 2.9</p> | ||
4333 | 1092 | </div> | ||
4334 | 1093 | <hr> | ||
4335 | 1094 | <div class="refsect2"> | ||
4336 | 1095 | <a name="rsvg-term"></a><h3>rsvg_term ()</h3> | ||
4337 | 1096 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
4338 | 1097 | rsvg_term (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | ||
4339 | 1098 | <div class="warning"><p><code class="literal">rsvg_term</code> has been deprecated since version 2.36 and should not be used in newly-written code.</p></div> | ||
4340 | 1099 | <p>This function does nothing.</p> | ||
4341 | 1100 | <p class="since">Since 2.9</p> | ||
4342 | 1101 | </div> | ||
4343 | 1102 | <hr> | ||
4344 | 1103 | <div class="refsect2"> | ||
4345 | 1104 | <a name="rsvg-handle-free"></a><h3>rsvg_handle_free ()</h3> | ||
4346 | 1105 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
4347 | 1106 | rsvg_handle_free (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre> | ||
4348 | 1107 | <div class="warning"> | ||
4349 | 1108 | <p><code class="literal">rsvg_handle_free</code> is deprecated and should not be used in newly-written code.</p> | ||
4350 | 1109 | <p>Use <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> instead.</p> | ||
4351 | 1110 | </div> | ||
4352 | 1111 | <p>Frees <em class="parameter"><code>handle</code></em> | ||
4353 | 1112 | .</p> | ||
4354 | 1113 | <div class="refsect3"> | ||
4355 | 1114 | <a name="id-1.2.3.8.28.6"></a><h4>Parameters</h4> | ||
4356 | 1115 | <div class="informaltable"><table width="100%" border="0"> | ||
4357 | 1116 | <colgroup> | ||
4358 | 1117 | <col width="150px" class="parameters_name"> | ||
4359 | 1118 | <col class="parameters_description"> | ||
4360 | 1119 | <col width="200px" class="parameters_annotations"> | ||
4361 | 1120 | </colgroup> | ||
4362 | 1121 | <tbody><tr> | ||
4363 | 1122 | <td class="parameter_name"><p>handle</p></td> | ||
4364 | 1123 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4365 | 1124 | <td class="parameter_annotations"> </td> | ||
4366 | 1125 | </tr></tbody> | ||
4367 | 1126 | </table></div> | ||
4368 | 1127 | </div> | ||
4369 | 1128 | </div> | ||
4370 | 1129 | <hr> | ||
4371 | 1130 | <div class="refsect2"> | ||
4372 | 1131 | <a name="rsvg-handle-set-size-callback"></a><h3>rsvg_handle_set_size_callback ()</h3> | ||
4373 | 1132 | <pre class="programlisting"><span class="returnvalue">void</span> | ||
4374 | 1133 | rsvg_handle_set_size_callback (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4375 | 1134 | <em class="parameter"><code><span class="type">RsvgSizeFunc</span> size_func</code></em>, | ||
4376 | 1135 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>, | ||
4377 | 1136 | <em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> user_data_destroy</code></em>);</pre> | ||
4378 | 1137 | <div class="warning"> | ||
4379 | 1138 | <p><code class="literal">rsvg_handle_set_size_callback</code> is deprecated and should not be used in newly-written code.</p> | ||
4380 | 1139 | <p>Set up a cairo matrix and use <a class="link" href="rsvg-Using-RSVG-with-cairo.html#rsvg-handle-render-cairo" title="rsvg_handle_render_cairo ()"><code class="function">rsvg_handle_render_cairo()</code></a> instead.</p> | ||
4381 | 1140 | </div> | ||
4382 | 1141 | <p>Sets the sizing function for the <em class="parameter"><code>handle</code></em> | ||
4383 | 1142 | . This function is called right | ||
4384 | 1143 | after the size of the image has been loaded. The size of the image is passed | ||
4385 | 1144 | in to the function, which may then modify these values to set the real size | ||
4386 | 1145 | of the generated pixbuf. If the image has no associated size, then the size | ||
4387 | 1146 | arguments are set to -1.</p> | ||
4388 | 1147 | <div class="refsect3"> | ||
4389 | 1148 | <a name="id-1.2.3.8.29.6"></a><h4>Parameters</h4> | ||
4390 | 1149 | <div class="informaltable"><table width="100%" border="0"> | ||
4391 | 1150 | <colgroup> | ||
4392 | 1151 | <col width="150px" class="parameters_name"> | ||
4393 | 1152 | <col class="parameters_description"> | ||
4394 | 1153 | <col width="200px" class="parameters_annotations"> | ||
4395 | 1154 | </colgroup> | ||
4396 | 1155 | <tbody> | ||
4397 | 1156 | <tr> | ||
4398 | 1157 | <td class="parameter_name"><p>handle</p></td> | ||
4399 | 1158 | <td class="parameter_description"><p>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p></td> | ||
4400 | 1159 | <td class="parameter_annotations"> </td> | ||
4401 | 1160 | </tr> | ||
4402 | 1161 | <tr> | ||
4403 | 1162 | <td class="parameter_name"><p>size_func</p></td> | ||
4404 | 1163 | <td class="parameter_description"><p> A sizing function, or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> | ||
4405 | 1164 | <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> | ||
4406 | 1165 | </tr> | ||
4407 | 1166 | <tr> | ||
4408 | 1167 | <td class="parameter_name"><p>user_data</p></td> | ||
4409 | 1168 | <td class="parameter_description"><p>User data to pass to <em class="parameter"><code>size_func</code></em> | ||
4410 | 1169 | , or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td> | ||
4411 | 1170 | <td class="parameter_annotations"> </td> | ||
4412 | 1171 | </tr> | ||
4413 | 1172 | <tr> | ||
4414 | 1173 | <td class="parameter_name"><p>user_data_destroy</p></td> | ||
4415 | 1174 | <td class="parameter_description"><p>Destroy function for <em class="parameter"><code>user_data</code></em> | ||
4416 | 1175 | , or <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td> | ||
4417 | 1176 | <td class="parameter_annotations"> </td> | ||
4418 | 1177 | </tr> | ||
4419 | 1178 | </tbody> | ||
4420 | 1179 | </table></div> | ||
4421 | 1180 | </div> | ||
4422 | 1181 | </div> | ||
4423 | 1182 | </div> | ||
4424 | 1183 | <div class="refsect1"> | ||
4425 | 1184 | <a name="RsvgHandle.other_details"></a><h2>Types and Values</h2> | ||
4426 | 1185 | <div class="refsect2"> | ||
4427 | 1186 | <a name="RsvgError"></a><h3>enum RsvgError</h3> | ||
4428 | 1187 | <p>An enumeration representing possible errors</p> | ||
4429 | 1188 | <div class="refsect3"> | ||
4430 | 1189 | <a name="id-1.2.3.9.2.4"></a><h4>Members</h4> | ||
4431 | 1190 | <div class="informaltable"><table width="100%" border="0"> | ||
4432 | 1191 | <colgroup> | ||
4433 | 1192 | <col width="300px" class="enum_members_name"> | ||
4434 | 1193 | <col class="enum_members_description"> | ||
4435 | 1194 | <col width="200px" class="enum_members_annotations"> | ||
4436 | 1195 | </colgroup> | ||
4437 | 1196 | <tbody><tr> | ||
4438 | 1197 | <td class="enum_member_name"><p><a name="RSVG-ERROR-FAILED:CAPS"></a>RSVG_ERROR_FAILED</p></td> | ||
4439 | 1198 | <td class="enum_member_description"> | ||
4440 | 1199 | <p>the request failed</p> | ||
4441 | 1200 | </td> | ||
4442 | 1201 | <td class="enum_member_annotations"> </td> | ||
4443 | 1202 | </tr></tbody> | ||
4444 | 1203 | </table></div> | ||
4445 | 1204 | </div> | ||
4446 | 1205 | </div> | ||
4447 | 1206 | <hr> | ||
4448 | 1207 | <div class="refsect2"> | ||
4449 | 1208 | <a name="RsvgHandle-struct"></a><h3>struct RsvgHandle</h3> | ||
4450 | 1209 | <pre class="programlisting">struct RsvgHandle;</pre> | ||
4451 | 1210 | <p>The <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> is an object representing the parsed form of a SVG</p> | ||
4475 | 1211 | </div> | 196 | </div> |
4476 | 1212 | <hr> | 197 | <hr> |
4477 | 1213 | <div class="refsect2"> | 198 | <div class="refsect2"> |
4478 | @@ -1220,23 +205,20 @@ | |||
4479 | 1220 | GObjectClass parent; | 205 | GObjectClass parent; |
4480 | 1221 | }; | 206 | }; |
4481 | 1222 | </pre> | 207 | </pre> |
4486 | 1223 | <p>Class structure for <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a></p> | 208 | <p> |
4487 | 1224 | <div class="refsect3"> | 209 | Class structure for <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> |
4488 | 1225 | <a name="id-1.2.3.9.5.5"></a><h4>Members</h4> | 210 | </p> |
4489 | 1226 | <div class="informaltable"><table width="100%" border="0"> | 211 | <div class="variablelist"><table border="0" class="variablelist"> |
4490 | 1227 | <colgroup> | 212 | <colgroup> |
4494 | 1228 | <col width="300px" class="struct_members_name"> | 213 | <col align="left" valign="top"> |
4495 | 1229 | <col class="struct_members_description"> | 214 | <col> |
4493 | 1230 | <col width="200px" class="struct_members_annotations"> | ||
4496 | 1231 | </colgroup> | 215 | </colgroup> |
4497 | 1232 | <tbody><tr> | 216 | <tbody><tr> |
4501 | 1233 | <td class="struct_member_name"><p><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="RsvgHandleClass.parent"></a>parent</code></em>;</p></td> | 217 | <td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="RsvgHandleClass.parent"></a>parent</code></em>;</span></p></td> |
4502 | 1234 | <td class="struct_member_description"><p>parent class</p></td> | 218 | <td>parent class</td> |
4500 | 1235 | <td class="struct_member_annotations"> </td> | ||
4503 | 1236 | </tr></tbody> | 219 | </tr></tbody> |
4504 | 1237 | </table></div> | 220 | </table></div> |
4505 | 1238 | </div> | 221 | </div> |
4506 | 1239 | </div> | ||
4507 | 1240 | <hr> | 222 | <hr> |
4508 | 1241 | <div class="refsect2"> | 223 | <div class="refsect2"> |
4509 | 1242 | <a name="RsvgDimensionData"></a><h3>struct RsvgDimensionData</h3> | 224 | <a name="RsvgDimensionData"></a><h3>struct RsvgDimensionData</h3> |
4510 | @@ -1247,39 +229,31 @@ | |||
4511 | 1247 | gdouble ex; | 229 | gdouble ex; |
4512 | 1248 | }; | 230 | }; |
4513 | 1249 | </pre> | 231 | </pre> |
4517 | 1250 | <div class="refsect3"> | 232 | <div class="variablelist"><table border="0" class="variablelist"> |
4515 | 1251 | <a name="id-1.2.3.9.6.4"></a><h4>Members</h4> | ||
4516 | 1252 | <div class="informaltable"><table width="100%" border="0"> | ||
4518 | 1253 | <colgroup> | 233 | <colgroup> |
4522 | 1254 | <col width="300px" class="struct_members_name"> | 234 | <col align="left" valign="top"> |
4523 | 1255 | <col class="struct_members_description"> | 235 | <col> |
4521 | 1256 | <col width="200px" class="struct_members_annotations"> | ||
4524 | 1257 | </colgroup> | 236 | </colgroup> |
4525 | 1258 | <tbody> | 237 | <tbody> |
4526 | 1259 | <tr> | 238 | <tr> |
4545 | 1260 | <td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.width"></a>width</code></em>;</p></td> | 239 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.width"></a>width</code></em>;</span></p></td> |
4546 | 1261 | <td class="struct_member_description"><p>SVG's width, in pixels</p></td> | 240 | <td>SVG's width, in pixels</td> |
4547 | 1262 | <td class="struct_member_annotations"> </td> | 241 | </tr> |
4548 | 1263 | </tr> | 242 | <tr> |
4549 | 1264 | <tr> | 243 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.height"></a>height</code></em>;</span></p></td> |
4550 | 1265 | <td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgDimensionData.height"></a>height</code></em>;</p></td> | 244 | <td>SVG's height, in pixels</td> |
4551 | 1266 | <td class="struct_member_description"><p>SVG's height, in pixels</p></td> | 245 | </tr> |
4552 | 1267 | <td class="struct_member_annotations"> </td> | 246 | <tr> |
4553 | 1268 | </tr> | 247 | <td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.em"></a>em</code></em>;</span></p></td> |
4554 | 1269 | <tr> | 248 | <td>em</td> |
4555 | 1270 | <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.em"></a>em</code></em>;</p></td> | 249 | </tr> |
4556 | 1271 | <td class="struct_member_description"><p>em</p></td> | 250 | <tr> |
4557 | 1272 | <td class="struct_member_annotations"> </td> | 251 | <td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.ex"></a>ex</code></em>;</span></p></td> |
4558 | 1273 | </tr> | 252 | <td>ex</td> |
4541 | 1274 | <tr> | ||
4542 | 1275 | <td class="struct_member_name"><p><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> <em class="structfield"><code><a name="RsvgDimensionData.ex"></a>ex</code></em>;</p></td> | ||
4543 | 1276 | <td class="struct_member_description"><p>ex</p></td> | ||
4544 | 1277 | <td class="struct_member_annotations"> </td> | ||
4559 | 1278 | </tr> | 253 | </tr> |
4560 | 1279 | </tbody> | 254 | </tbody> |
4561 | 1280 | </table></div> | 255 | </table></div> |
4562 | 1281 | </div> | 256 | </div> |
4563 | 1282 | </div> | ||
4564 | 1283 | <hr> | 257 | <hr> |
4565 | 1284 | <div class="refsect2"> | 258 | <div class="refsect2"> |
4566 | 1285 | <a name="RsvgPositionData"></a><h3>struct RsvgPositionData</h3> | 259 | <a name="RsvgPositionData"></a><h3>struct RsvgPositionData</h3> |
4567 | @@ -1288,126 +262,837 @@ | |||
4568 | 1288 | int y; | 262 | int y; |
4569 | 1289 | }; | 263 | }; |
4570 | 1290 | </pre> | 264 | </pre> |
4594 | 1291 | <p>Position of an SVG fragment.</p> | 265 | <p> |
4595 | 1292 | <div class="refsect3"> | 266 | Position of an SVG fragment. |
4596 | 1293 | <a name="id-1.2.3.9.7.5"></a><h4>Members</h4> | 267 | </p> |
4597 | 1294 | <div class="informaltable"><table width="100%" border="0"> | 268 | <div class="variablelist"><table border="0" class="variablelist"> |
4598 | 1295 | <colgroup> | 269 | <colgroup> |
4599 | 1296 | <col width="300px" class="struct_members_name"> | 270 | <col align="left" valign="top"> |
4600 | 1297 | <col class="struct_members_description"> | 271 | <col> |
4601 | 1298 | <col width="200px" class="struct_members_annotations"> | 272 | </colgroup> |
4602 | 1299 | </colgroup> | 273 | <tbody> |
4603 | 1300 | <tbody> | 274 | <tr> |
4604 | 1301 | <tr> | 275 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.x"></a>x</code></em>;</span></p></td> |
4605 | 1302 | <td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.x"></a>x</code></em>;</p></td> | 276 | <td>position on the x axis</td> |
4606 | 1303 | <td class="struct_member_description"><p>position on the x axis</p></td> | 277 | </tr> |
4607 | 1304 | <td class="struct_member_annotations"> </td> | 278 | <tr> |
4608 | 1305 | </tr> | 279 | <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.y"></a>y</code></em>;</span></p></td> |
4609 | 1306 | <tr> | 280 | <td>position on the y axis</td> |
4610 | 1307 | <td class="struct_member_name"><p><span class="type">int</span> <em class="structfield"><code><a name="RsvgPositionData.y"></a>y</code></em>;</p></td> | 281 | </tr> |
4611 | 1308 | <td class="struct_member_description"><p>position on the y axis</p></td> | 282 | </tbody> |
4612 | 1309 | <td class="struct_member_annotations"> </td> | 283 | </table></div> |
4613 | 1310 | </tr> | 284 | </div> |
4614 | 1311 | </tbody> | 285 | <hr> |
4615 | 1312 | </table></div> | 286 | <div class="refsect2"> |
4616 | 1313 | </div> | 287 | <a name="rsvg-cleanup"></a><h3>rsvg_cleanup ()</h3> |
4617 | 288 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_cleanup (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | ||
4618 | 289 | <p> | ||
4619 | 290 | This function should not be called from normal programs. | ||
4620 | 291 | See <code class="function">xmlCleanupParser()</code> for more information. | ||
4621 | 292 | </p> | ||
4622 | 293 | <p class="since">Since 2.36</p> | ||
4623 | 294 | </div> | ||
4624 | 295 | <hr> | ||
4625 | 296 | <div class="refsect2"> | ||
4626 | 297 | <a name="rsvg-set-default-dpi"></a><h3>rsvg_set_default_dpi ()</h3> | ||
4627 | 298 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_set_default_dpi (<em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre> | ||
4628 | 299 | <p> | ||
4629 | 300 | Sets the DPI for the all future outgoing pixbufs. Common values are | ||
4630 | 301 | 75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> will | ||
4631 | 302 | reset the DPI to whatever the default value happens to be. | ||
4632 | 303 | </p> | ||
4633 | 304 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4634 | 305 | <colgroup> | ||
4635 | 306 | <col align="left" valign="top"> | ||
4636 | 307 | <col> | ||
4637 | 308 | </colgroup> | ||
4638 | 309 | <tbody><tr> | ||
4639 | 310 | <td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td> | ||
4640 | 311 | <td>Dots Per Inch (aka Pixels Per Inch)</td> | ||
4641 | 312 | </tr></tbody> | ||
4642 | 313 | </table></div> | ||
4643 | 314 | <p class="since">Since 2.8</p> | ||
4644 | 315 | </div> | ||
4645 | 316 | <hr> | ||
4646 | 317 | <div class="refsect2"> | ||
4647 | 318 | <a name="rsvg-set-default-dpi-x-y"></a><h3>rsvg_set_default_dpi_x_y ()</h3> | ||
4648 | 319 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_set_default_dpi_x_y (<em class="parameter"><code><span class="type">double</span> dpi_x</code></em>, | ||
4649 | 320 | <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre> | ||
4650 | 321 | <p> | ||
4651 | 322 | Sets the DPI for the all future outgoing pixbufs. Common values are | ||
4652 | 323 | 75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> will | ||
4653 | 324 | reset the DPI to whatever the default value happens to be. | ||
4654 | 325 | </p> | ||
4655 | 326 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4656 | 327 | <colgroup> | ||
4657 | 328 | <col align="left" valign="top"> | ||
4658 | 329 | <col> | ||
4659 | 330 | </colgroup> | ||
4660 | 331 | <tbody> | ||
4661 | 332 | <tr> | ||
4662 | 333 | <td><p><span class="term"><em class="parameter"><code>dpi_x</code></em> :</span></p></td> | ||
4663 | 334 | <td>Dots Per Inch (aka Pixels Per Inch)</td> | ||
4664 | 335 | </tr> | ||
4665 | 336 | <tr> | ||
4666 | 337 | <td><p><span class="term"><em class="parameter"><code>dpi_y</code></em> :</span></p></td> | ||
4667 | 338 | <td>Dots Per Inch (aka Pixels Per Inch)</td> | ||
4668 | 339 | </tr> | ||
4669 | 340 | </tbody> | ||
4670 | 341 | </table></div> | ||
4671 | 342 | <p class="since">Since 2.8</p> | ||
4672 | 343 | </div> | ||
4673 | 344 | <hr> | ||
4674 | 345 | <div class="refsect2"> | ||
4675 | 346 | <a name="rsvg-handle-set-dpi"></a><h3>rsvg_handle_set_dpi ()</h3> | ||
4676 | 347 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_dpi (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4677 | 348 | <em class="parameter"><code><span class="type">double</span> dpi</code></em>);</pre> | ||
4678 | 349 | <p> | ||
4679 | 350 | Sets the DPI for the outgoing pixbuf. Common values are | ||
4680 | 351 | 75, 90, and 300 DPI. Passing a number <= 0 to <em class="parameter"><code>dpi</code></em> will | ||
4681 | 352 | reset the DPI to whatever the default value happens to be. | ||
4682 | 353 | </p> | ||
4683 | 354 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4684 | 355 | <colgroup> | ||
4685 | 356 | <col align="left" valign="top"> | ||
4686 | 357 | <col> | ||
4687 | 358 | </colgroup> | ||
4688 | 359 | <tbody> | ||
4689 | 360 | <tr> | ||
4690 | 361 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4691 | 362 | <td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4692 | 363 | </td> | ||
4693 | 364 | </tr> | ||
4694 | 365 | <tr> | ||
4695 | 366 | <td><p><span class="term"><em class="parameter"><code>dpi</code></em> :</span></p></td> | ||
4696 | 367 | <td>Dots Per Inch (aka Pixels Per Inch)</td> | ||
4697 | 368 | </tr> | ||
4698 | 369 | </tbody> | ||
4699 | 370 | </table></div> | ||
4700 | 371 | <p class="since">Since 2.8</p> | ||
4701 | 372 | </div> | ||
4702 | 373 | <hr> | ||
4703 | 374 | <div class="refsect2"> | ||
4704 | 375 | <a name="rsvg-handle-set-dpi-x-y"></a><h3>rsvg_handle_set_dpi_x_y ()</h3> | ||
4705 | 376 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_dpi_x_y (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4706 | 377 | <em class="parameter"><code><span class="type">double</span> dpi_x</code></em>, | ||
4707 | 378 | <em class="parameter"><code><span class="type">double</span> dpi_y</code></em>);</pre> | ||
4708 | 379 | <p> | ||
4709 | 380 | Sets the DPI for the outgoing pixbuf. Common values are | ||
4710 | 381 | 75, 90, and 300 DPI. Passing a number <= 0 to <span class="type">dpi_x</span> or <em class="parameter"><code>dpi_y</code></em> will | ||
4711 | 382 | reset the DPI to whatever the default value happens to be. | ||
4712 | 383 | </p> | ||
4713 | 384 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4714 | 385 | <colgroup> | ||
4715 | 386 | <col align="left" valign="top"> | ||
4716 | 387 | <col> | ||
4717 | 388 | </colgroup> | ||
4718 | 389 | <tbody> | ||
4719 | 390 | <tr> | ||
4720 | 391 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4721 | 392 | <td>An <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4722 | 393 | </td> | ||
4723 | 394 | </tr> | ||
4724 | 395 | <tr> | ||
4725 | 396 | <td><p><span class="term"><em class="parameter"><code>dpi_x</code></em> :</span></p></td> | ||
4726 | 397 | <td>Dots Per Inch (aka Pixels Per Inch)</td> | ||
4727 | 398 | </tr> | ||
4728 | 399 | <tr> | ||
4729 | 400 | <td><p><span class="term"><em class="parameter"><code>dpi_y</code></em> :</span></p></td> | ||
4730 | 401 | <td>Dots Per Inch (aka Pixels Per Inch)</td> | ||
4731 | 402 | </tr> | ||
4732 | 403 | </tbody> | ||
4733 | 404 | </table></div> | ||
4734 | 405 | <p class="since">Since 2.8</p> | ||
4735 | 406 | </div> | ||
4736 | 407 | <hr> | ||
4737 | 408 | <div class="refsect2"> | ||
4738 | 409 | <a name="rsvg-handle-new"></a><h3>rsvg_handle_new ()</h3> | ||
4739 | 410 | <pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> | ||
4740 | 411 | <p> | ||
4741 | 412 | Returns a new rsvg handle. Must be freed with <em class="parameter"><code>g_object_unref</code></em>. This | ||
4742 | 413 | handle can be used for dynamically loading an image. You need to feed it | ||
4743 | 414 | data using <em class="parameter"><code>rsvg_handle_write</code></em>, then call <em class="parameter"><code>rsvg_handle_close</code></em> when done. | ||
4744 | 415 | Afterwords, you can render it using Cairo or get a GdkPixbuf from it. When | ||
4745 | 416 | finished, free with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. No more than one image can be loaded | ||
4746 | 417 | with one handle. | ||
4747 | 418 | </p> | ||
4748 | 419 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4749 | 420 | <colgroup> | ||
4750 | 421 | <col align="left" valign="top"> | ||
4751 | 422 | <col> | ||
4752 | 423 | </colgroup> | ||
4753 | 424 | <tbody><tr> | ||
4754 | 425 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
4755 | 426 | <td>A new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4756 | 427 | </td> | ||
4757 | 428 | </tr></tbody> | ||
4758 | 429 | </table></div> | ||
4759 | 430 | </div> | ||
4760 | 431 | <hr> | ||
4761 | 432 | <div class="refsect2"> | ||
4762 | 433 | <a name="rsvg-handle-new-with-flags"></a><h3>rsvg_handle_new_with_flags ()</h3> | ||
4763 | 434 | <pre class="programlisting"><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="returnvalue">RsvgHandle</span></a> * rsvg_handle_new_with_flags (<em class="parameter"><code><a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> flags</code></em>);</pre> | ||
4764 | 435 | <p> | ||
4765 | 436 | Creates a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> with flags <em class="parameter"><code>flags</code></em>. | ||
4766 | 437 | </p> | ||
4767 | 438 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4768 | 439 | <colgroup> | ||
4769 | 440 | <col align="left" valign="top"> | ||
4770 | 441 | <col> | ||
4771 | 442 | </colgroup> | ||
4772 | 443 | <tbody> | ||
4773 | 444 | <tr> | ||
4774 | 445 | <td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td> | ||
4775 | 446 | <td>flags from <a class="link" href="rsvg-Using-RSVG-with-GIO.html#RsvgHandleFlags"><span class="type">RsvgHandleFlags</span></a> | ||
4776 | 447 | </td> | ||
4777 | 448 | </tr> | ||
4778 | 449 | <tr> | ||
4779 | 450 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
4780 | 451 | <td>a new <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span> | ||
4781 | 452 | </td> | ||
4782 | 453 | </tr> | ||
4783 | 454 | </tbody> | ||
4784 | 455 | </table></div> | ||
4785 | 456 | <p class="since">Since 2.36</p> | ||
4786 | 457 | </div> | ||
4787 | 458 | <hr> | ||
4788 | 459 | <div class="refsect2"> | ||
4789 | 460 | <a name="rsvg-handle-write"></a><h3>rsvg_handle_write ()</h3> | ||
4790 | 461 | <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_write (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4791 | 462 | <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>, | ||
4792 | 463 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>, | ||
4793 | 464 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> | ||
4794 | 465 | <p> | ||
4795 | 466 | Loads the next <em class="parameter"><code>count</code></em> bytes of the image. This will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the data | ||
4796 | 467 | was loaded successful, and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if an error occurred. In the latter case, | ||
4797 | 468 | the loader will be closed, and will not accept further writes. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is | ||
4798 | 469 | returned, <em class="parameter"><code>error</code></em> will be set to an error from the <a class="link" href="RsvgHandle.html#RsvgError"><span class="type">RsvgError</span></a> domain. Errors | ||
4799 | 470 | from <a href="http://library.gnome.org/devel/gio/unstable/gio-GIOError.html#GIOErrorEnum"><span class="type">GIOErrorEnum</span></a> are also possible. | ||
4800 | 471 | </p> | ||
4801 | 472 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4802 | 473 | <colgroup> | ||
4803 | 474 | <col align="left" valign="top"> | ||
4804 | 475 | <col> | ||
4805 | 476 | </colgroup> | ||
4806 | 477 | <tbody> | ||
4807 | 478 | <tr> | ||
4808 | 479 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4809 | 480 | <td>an <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4810 | 481 | </td> | ||
4811 | 482 | </tr> | ||
4812 | 483 | <tr> | ||
4813 | 484 | <td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td> | ||
4814 | 485 | <td>pointer to svg data. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=count][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guchar]</span> | ||
4815 | 486 | </td> | ||
4816 | 487 | </tr> | ||
4817 | 488 | <tr> | ||
4818 | 489 | <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td> | ||
4819 | 490 | <td>length of the <em class="parameter"><code>buf</code></em> buffer in bytes</td> | ||
4820 | 491 | </tr> | ||
4821 | 492 | <tr> | ||
4822 | 493 | <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> | ||
4823 | 494 | <td>a location to store a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> | ||
4824 | 495 | </td> | ||
4825 | 496 | </tr> | ||
4826 | 497 | <tr> | ||
4827 | 498 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
4828 | 499 | <td> | ||
4829 | 500 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</td> | ||
4830 | 501 | </tr> | ||
4831 | 502 | </tbody> | ||
4832 | 503 | </table></div> | ||
4833 | 504 | </div> | ||
4834 | 505 | <hr> | ||
4835 | 506 | <div class="refsect2"> | ||
4836 | 507 | <a name="rsvg-handle-close"></a><h3>rsvg_handle_close ()</h3> | ||
4837 | 508 | <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_close (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4838 | 509 | <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre> | ||
4839 | 510 | <p> | ||
4840 | 511 | Closes <em class="parameter"><code>handle</code></em>, to indicate that loading the image is complete. This will | ||
4841 | 512 | return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the loader closed successfully. Note that <em class="parameter"><code>handle</code></em> isn't | ||
4842 | 513 | freed until <em class="parameter"><code>g_object_unref</code></em> is called. | ||
4843 | 514 | </p> | ||
4844 | 515 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4845 | 516 | <colgroup> | ||
4846 | 517 | <col align="left" valign="top"> | ||
4847 | 518 | <col> | ||
4848 | 519 | </colgroup> | ||
4849 | 520 | <tbody> | ||
4850 | 521 | <tr> | ||
4851 | 522 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4852 | 523 | <td>a <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4853 | 524 | </td> | ||
4854 | 525 | </tr> | ||
4855 | 526 | <tr> | ||
4856 | 527 | <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td> | ||
4857 | 528 | <td>a location to store a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span> | ||
4858 | 529 | </td> | ||
4859 | 530 | </tr> | ||
4860 | 531 | <tr> | ||
4861 | 532 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
4862 | 533 | <td> | ||
4863 | 534 | <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</td> | ||
4864 | 535 | </tr> | ||
4865 | 536 | </tbody> | ||
4866 | 537 | </table></div> | ||
4867 | 538 | </div> | ||
4868 | 539 | <hr> | ||
4869 | 540 | <div class="refsect2"> | ||
4870 | 541 | <a name="rsvg-handle-get-base-uri"></a><h3>rsvg_handle_get_base_uri ()</h3> | ||
4871 | 542 | <pre class="programlisting">const <span class="returnvalue">char</span> * rsvg_handle_get_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>);</pre> | ||
4872 | 543 | <p> | ||
4873 | 544 | Gets the base uri for this <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a>. | ||
4874 | 545 | </p> | ||
4875 | 546 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4876 | 547 | <colgroup> | ||
4877 | 548 | <col align="left" valign="top"> | ||
4878 | 549 | <col> | ||
4879 | 550 | </colgroup> | ||
4880 | 551 | <tbody> | ||
4881 | 552 | <tr> | ||
4882 | 553 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4883 | 554 | <td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4884 | 555 | </td> | ||
4885 | 556 | </tr> | ||
4886 | 557 | <tr> | ||
4887 | 558 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> | ||
4888 | 559 | <td>the base uri, possibly null</td> | ||
4889 | 560 | </tr> | ||
4890 | 561 | </tbody> | ||
4891 | 562 | </table></div> | ||
4892 | 563 | <p class="since">Since 2.8</p> | ||
4893 | 564 | </div> | ||
4894 | 565 | <hr> | ||
4895 | 566 | <div class="refsect2"> | ||
4896 | 567 | <a name="rsvg-handle-set-base-uri"></a><h3>rsvg_handle_set_base_uri ()</h3> | ||
4897 | 568 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_set_base_uri (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4898 | 569 | <em class="parameter"><code>const <span class="type">char</span> *base_uri</code></em>);</pre> | ||
4899 | 570 | <p> | ||
4900 | 571 | Set the base URI for this SVG. This can only be called before <a class="link" href="RsvgHandle.html#rsvg-handle-write" title="rsvg_handle_write ()"><code class="function">rsvg_handle_write()</code></a> | ||
4901 | 572 | has been called. | ||
4902 | 573 | </p> | ||
4903 | 574 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4904 | 575 | <colgroup> | ||
4905 | 576 | <col align="left" valign="top"> | ||
4906 | 577 | <col> | ||
4907 | 578 | </colgroup> | ||
4908 | 579 | <tbody> | ||
4909 | 580 | <tr> | ||
4910 | 581 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4911 | 582 | <td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4912 | 583 | </td> | ||
4913 | 584 | </tr> | ||
4914 | 585 | <tr> | ||
4915 | 586 | <td><p><span class="term"><em class="parameter"><code>base_uri</code></em> :</span></p></td> | ||
4916 | 587 | <td>The base uri</td> | ||
4917 | 588 | </tr> | ||
4918 | 589 | </tbody> | ||
4919 | 590 | </table></div> | ||
4920 | 591 | <p class="since">Since 2.9</p> | ||
4921 | 592 | </div> | ||
4922 | 593 | <hr> | ||
4923 | 594 | <div class="refsect2"> | ||
4924 | 595 | <a name="rsvg-handle-get-dimensions"></a><h3>rsvg_handle_get_dimensions ()</h3> | ||
4925 | 596 | <pre class="programlisting"><span class="returnvalue">void</span> rsvg_handle_get_dimensions (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4926 | 597 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>);</pre> | ||
4927 | 598 | <p> | ||
4928 | 599 | Get the SVG's size. Do not call from within the size_func callback, because an infinite loop will occur. | ||
4929 | 600 | </p> | ||
4930 | 601 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4931 | 602 | <colgroup> | ||
4932 | 603 | <col align="left" valign="top"> | ||
4933 | 604 | <col> | ||
4934 | 605 | </colgroup> | ||
4935 | 606 | <tbody> | ||
4936 | 607 | <tr> | ||
4937 | 608 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4938 | 609 | <td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4939 | 610 | </td> | ||
4940 | 611 | </tr> | ||
4941 | 612 | <tr> | ||
4942 | 613 | <td><p><span class="term"><em class="parameter"><code>dimension_data</code></em> :</span></p></td> | ||
4943 | 614 | <td>A place to store the SVG's size. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> | ||
4944 | 615 | </td> | ||
4945 | 616 | </tr> | ||
4946 | 617 | </tbody> | ||
4947 | 618 | </table></div> | ||
4948 | 619 | <p class="since">Since 2.14</p> | ||
4949 | 620 | </div> | ||
4950 | 621 | <hr> | ||
4951 | 622 | <div class="refsect2"> | ||
4952 | 623 | <a name="rsvg-handle-get-dimensions-sub"></a><h3>rsvg_handle_get_dimensions_sub ()</h3> | ||
4953 | 624 | <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_get_dimensions_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4954 | 625 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgDimensionData" title="struct RsvgDimensionData"><span class="type">RsvgDimensionData</span></a> *dimension_data</code></em>, | ||
4955 | 626 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre> | ||
4956 | 627 | <p> | ||
4957 | 628 | Get the size of a subelement of the SVG file. Do not call from within the size_func callback, because an infinite loop will occur. | ||
4958 | 629 | </p> | ||
4959 | 630 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4960 | 631 | <colgroup> | ||
4961 | 632 | <col align="left" valign="top"> | ||
4962 | 633 | <col> | ||
4963 | 634 | </colgroup> | ||
4964 | 635 | <tbody> | ||
4965 | 636 | <tr> | ||
4966 | 637 | <td><p><span class="term"><em class="parameter"><code>handle</code></em> :</span></p></td> | ||
4967 | 638 | <td>A <a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> | ||
4968 | 639 | </td> | ||
4969 | 640 | </tr> | ||
4970 | 641 | <tr> | ||
4971 | 642 | <td><p><span class="term"><em class="parameter"><code>dimension_data</code></em> :</span></p></td> | ||
4972 | 643 | <td>A place to store the SVG's size. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span> | ||
4973 | 644 | </td> | ||
4974 | 645 | </tr> | ||
4975 | 646 | <tr> | ||
4976 | 647 | <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td> | ||
4977 | 648 | <td>An element's id within the SVG, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to get | ||
4978 | 649 | the dimension of the whole SVG. For example, if you have a layer | ||
4979 | 650 | called "layer1" for that you want to get the dimension, pass | ||
4980 | 651 | "<span class="type">layer1</span>" as the id. <span class="annotation">[nullable]</span> | ||
4981 | 652 | </td> | ||
4982 | 653 | </tr> | ||
4983 | 654 | </tbody> | ||
4984 | 655 | </table></div> | ||
4985 | 656 | <p class="since">Since 2.22</p> | ||
4986 | 657 | </div> | ||
4987 | 658 | <hr> | ||
4988 | 659 | <div class="refsect2"> | ||
4989 | 660 | <a name="rsvg-handle-get-position-sub"></a><h3>rsvg_handle_get_position_sub ()</h3> | ||
4990 | 661 | <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> rsvg_handle_get_position_sub (<em class="parameter"><code><a class="link" href="RsvgHandle.html" title="RsvgHandle"><span class="type">RsvgHandle</span></a> *handle</code></em>, | ||
4991 | 662 | <em class="parameter"><code><a class="link" href="RsvgHandle.html#RsvgPositionData" title="struct RsvgPositionData"><span class="type">RsvgPositionData</span></a> *position_data</code></em>, | ||
4992 | 663 | <em class="parameter"><code>const <span class="type">char</span> *id</code></em>);</pre> | ||
4993 | 664 | <p> | ||
4994 | 665 | Get the position of a subelement of the SVG file. Do not call from within | ||
4995 | 666 | the size_func callback, because an infinite loop will occur. | ||
4996 | 667 | </p> | ||
4997 | 668 | <div class="variablelist"><table border="0" class="variablelist"> | ||
4998 | 669 | <colgroup> | ||
4999 | 670 | <col align="left" valign="top"> | ||
5000 | 671 | <col> |
The diff has been truncated for viewing.
Text conflict in rsvg-convert.c
1 conflicts encountered.