New upstream version 1.13
Bas Couwenberg
6 years ago
0 | Wed Jun 24 13:01:40 EDT 2009 stevenj@alum.mit.edu | |
1 | * date for 1.12.1 release | |
2 | ||
3 | M ./NEWS -1 +1 | |
4 | ||
5 | Wed Jun 24 13:00:51 EDT 2009 stevenj@alum.mit.edu | |
6 | * use octave-config to detect installation path for Octave plugins | |
7 | ||
8 | M ./NEWS +5 | |
9 | M ./configure.ac -2 +9 | |
10 | ||
11 | Fri Jun 12 17:42:21 EDT 2009 stevenj@alum.mit.edu | |
12 | tagged h5utils-1.12 | |
13 | ||
14 | ||
15 | Fri Jun 12 17:34:08 EDT 2009 stevenj@alum.mit.edu | |
16 | * Fixed installation of h5read.oct for Octave 3.x. | |
17 | ||
18 | M ./NEWS +2 | |
19 | M ./configure.ac -1 +4 | |
20 | ||
21 | Fri Jun 12 17:13:55 EDT 2009 stevenj@alum.mit.edu | |
22 | * flip vertical axis in writepng, corresponding better to user expectations | |
23 | ||
24 | M ./NEWS -1 +6 | |
25 | M ./configure.ac -1 +1 | |
26 | M ./writepng.c -3 +3 | |
27 | ||
28 | Fri Jun 12 17:05:47 EDT 2009 stevenj@alum.mit.edu | |
29 | * mkdist.sh is no longer needed | |
30 | ||
31 | R ./mkdist.sh | |
32 | ||
33 | Fri Jun 12 17:04:59 EDT 2009 stevenj@alum.mit.edu | |
34 | * copyright year bump | |
35 | ||
36 | M ./COPYING -2 +1 | |
37 | M ./arrayh4.c -1 +1 | |
38 | M ./arrayh4.h -1 +1 | |
39 | M ./arrayh5.h -1 +1 | |
40 | M ./copyright.h -1 +1 | |
41 | M ./h4fromh5.1 -1 +1 | |
42 | M ./h4fromh5.c -1 +1 | |
43 | M ./h5fromh4.1 -1 +1 | |
44 | M ./h5fromh4.c -1 +1 | |
45 | M ./h5fromitxt.c -1 +1 | |
46 | M ./h5fromtxt.1 -1 +1 | |
47 | M ./h5fromtxt.c -1 +1 | |
48 | M ./h5math.1 -1 +1 | |
49 | M ./h5math.c -1 +1 | |
50 | M ./h5topng.c -1 +1 | |
51 | M ./h5totxt.1 -1 +1 | |
52 | M ./h5totxt.c -1 +1 | |
53 | M ./h5tov5d.1 -1 +1 | |
54 | M ./h5tov5d.c -2 +2 | |
55 | M ./h5tovtk.c -1 +1 | |
56 | M ./h5utils.c -1 +1 | |
57 | M ./h5utils.h -1 +1 | |
58 | M ./writepng.c -1 +1 | |
59 | M ./writepng.h -1 +1 | |
60 | ||
61 | Fri Jun 12 17:03:57 EDT 2009 stevenj@alum.mit.edu | |
62 | * fixed h5tovtk -2, more portable handling of integer types | |
63 | ||
64 | M ./NEWS +4 | |
65 | M ./configure.ac -11 +13 | |
66 | M ./h5tovtk.c -7 +30 | |
67 | ||
68 | Mon Apr 28 15:55:11 EDT 2008 stevenj@alum.mit.edu | |
69 | tagged 1.11.1 | |
70 | ||
71 | ||
72 | Mon Apr 28 15:53:59 EDT 2008 stevenj@alum.mit.edu | |
73 | * copyright bump | |
74 | ||
75 | M ./arrayh5.c -1 +1 | |
76 | M ./copyright.h -1 +1 | |
77 | M ./h5tovtk.c -1 +1 | |
78 | ||
79 | Mon Apr 28 15:48:22 EDT 2008 stevenj@alum.mit.edu | |
80 | * bug fix: autoconf 2.60 makes $datadir refer to $datarootdir which refers to $prefix, so we have to call "eval" twice (similar to AC_DEFINE_DIR macro in autoconf macro archive) | |
81 | ||
82 | M ./NEWS +5 | |
83 | M ./configure.ac -1 +2 | |
84 | ||
85 | Thu Apr 24 15:48:29 EDT 2008 stevenj@alum.mit.edu | |
86 | tagged 1.11 | |
87 | ||
88 | ||
89 | Thu Apr 24 15:41:32 EDT 2008 stevenj@alum.mit.edu | |
90 | * added darcs-dist target | |
91 | ||
92 | A ./ChangeLog | |
93 | M ./Makefile.am +9 | |
94 | ||
95 | Thu Apr 24 15:39:38 EDT 2008 stevenj@alum.mit.edu | |
96 | * version bump, rm autoconf warning | |
97 | ||
98 | M ./NEWS +7 | |
99 | M ./configure.ac -1 +2 | |
100 | ||
101 | Thu Apr 24 15:34:39 EDT 2008 stevenj@alum.mit.edu | |
102 | * compatibility with HDF5 1.8 | |
103 | ||
104 | M ./arrayh5.c +3 | |
105 | ||
106 | Tue Apr 3 13:53:51 EDT 2007 stevenj@alum.mit.edu | |
107 | * fix typo | |
108 | ||
109 | M ./h5tovtk.1 -1 | |
110 | ||
111 | Tue Apr 3 13:52:13 EDT 2007 stevenj@alum.mit.edu | |
112 | * h5tovtk should write out dimensions in correct order, not the reverse, according to VTK's column-major convention; thanks to Andreas Wilde for the suggestion and a preliminary patch | |
113 | ||
114 | M ./h5tovtk.c -7 +13 | |
115 | ||
116 | Tue Apr 3 13:35:02 EDT 2007 stevenj@alum.mit.edu | |
117 | * darcs updates | |
118 | ||
119 | R ./ChangeLog | |
120 | R ./install-sh | |
121 | M ./mkdist.sh -9 +1 | |
122 | ||
123 | Wed Sep 20 11:46:47 EDT 2006 stevenj | |
124 | * version bump | |
125 | ||
126 | M ./NEWS +5 | |
127 | M ./configure.ac -1 +1 | |
128 | ||
129 | Wed Sep 20 11:41:03 EDT 2006 stevenj | |
130 | * add EXEEXT for Cygwin builds | |
131 | ||
132 | M ./configure.ac -5 +5 | |
133 | ||
134 | Fri Oct 21 19:53:29 EDT 2005 stevenj | |
135 | * whoops | |
136 | ||
137 | M ./Makefile.am -1 +1 | |
138 | ||
139 | Fri Oct 21 19:53:00 EDT 2005 stevenj | |
140 | * pass .c file to mkoctfile since it may need special compilation flags | |
141 | pass .c file to mkoctfile since it may need special compilation flags | |
142 | (e.g. -fPIC) | |
143 | ||
144 | ||
145 | M ./Makefile.am -1 +1 | |
146 | ||
147 | Fri Sep 2 17:39:01 EDT 2005 stevenj | |
148 | * version bump | |
149 | ||
150 | M ./COPYING -1 +2 | |
151 | M ./NEWS +8 | |
152 | M ./arrayh4.c -1 +1 | |
153 | M ./arrayh5.c -1 +1 | |
154 | M ./configure.ac -1 +1 | |
155 | M ./copyright.h -1 +1 | |
156 | M ./h4fromh5.c -1 +1 | |
157 | M ./h5fromh4.1 -2 +2 | |
158 | M ./h5fromh4.c -1 +1 | |
159 | M ./h5fromitxt.c -1 +1 | |
160 | M ./h5fromtxt.1 -2 +2 | |
161 | M ./h5fromtxt.c -1 +1 | |
162 | M ./h5math.1 -3 +3 | |
163 | M ./h5math.c -1 +1 | |
164 | M ./h5topng.c -1 +1 | |
165 | M ./h5totxt.1 -2 +2 | |
166 | M ./h5totxt.c -1 +1 | |
167 | M ./h5tov5d.1 -2 +2 | |
168 | M ./h5tov5d.c -2 +2 | |
169 | M ./h5tovtk.1 -1 +1 | |
170 | M ./h5tovtk.c -1 +1 | |
171 | M ./h5utils.c -1 +1 | |
172 | M ./writepng.c -1 +1 | |
173 | ||
174 | Fri Sep 2 15:23:48 EDT 2005 stevenj | |
175 | * added h4fromh5.1, and added -T option to h4fromh5 | |
176 | ||
177 | A ./h4fromh5.1 | |
178 | M ./h4fromh5.c -2 +9 | |
179 | ||
180 | Fri Jul 15 13:37:56 EDT 2005 stevenj | |
181 | * added h4fromh5 (no man page yet) | |
182 | ||
183 | M ./Makefile.am -1 +4 | |
184 | M ./autogen.sh -1 +1 | |
185 | M ./configure.ac -11 +20 | |
186 | A ./h4fromh5.c | |
187 | ||
188 | Fri Jul 15 12:33:34 EDT 2005 stevenj | |
189 | * added autogen.sh | |
190 | ||
191 | A ./autogen.sh | |
192 | M ./install-sh -52 +50 | |
193 | ||
194 | Fri Jun 17 13:42:38 EDT 2005 stevenj | |
195 | * improve contrast by making dark-light transitions more gradual | |
196 | ||
197 | M ./colormaps/dkbluered -7 +31 | |
198 | ||
199 | Thu Jun 16 15:35:02 EDT 2005 stevenj | |
200 | * added dkbluered colormap, slightly simplified winter colormap | |
201 | ||
202 | M ./Makefile.am -1 +1 | |
203 | A ./colormaps/dkbluered | |
204 | M ./colormaps/winter -15 +1 | |
205 | ||
206 | Mon Aug 16 16:28:40 EDT 2004 stevenj | |
207 | * simplified | |
208 | ||
209 | M ./colormaps/autumn -15 +1 | |
210 | M ./colormaps/cool -15 +1 | |
211 | ||
212 | Thu Aug 5 00:53:49 EDT 2004 stevenj | |
213 | * version bump | |
214 | ||
215 | M ./NEWS +5 | |
216 | M ./configure.ac -1 +1 | |
217 | ||
218 | Tue Aug 3 13:08:30 EDT 2004 stevenj | |
219 | * don't mix declarations with code (thanks to Maarten van Reeuwijk for the bug report) | |
220 | ||
221 | M ./h5topng.c -1 +2 | |
222 | ||
223 | Mon Jul 12 21:11:30 EDT 2004 stevenj | |
224 | tagged h5utils-1-9 | |
225 | ||
226 | ||
227 | Mon Jul 12 21:11:30 EDT 2004 stevenj | |
228 | * updated NEWS for 1.9 | |
229 | ||
230 | M ./NEWS -1 +8 | |
231 | ||
232 | Mon Jul 12 21:04:45 EDT 2004 stevenj | |
233 | * update for latest libmatheval | |
234 | ||
235 | M ./configure.ac -1 +1 | |
236 | M ./h5math.c -8 +16 | |
237 | ||
238 | Sat Jun 5 11:30:54 EDT 2004 stevenj | |
239 | * support Matlab-like notation for slices, tiling overlay/contour to cover data | |
240 | ||
241 | M ./arrayh5.c +44 | |
242 | M ./arrayh5.h +2 | |
243 | M ./h5topng.1.in -4 +14 | |
244 | M ./h5topng.c -34 +125 | |
245 | M ./writepng.c -32 +37 | |
246 | M ./writepng.h +2 | |
247 | ||
248 | Mon May 24 00:51:58 EDT 2004 stevenj | |
249 | * version bump | |
250 | ||
251 | M ./NEWS +6 | |
252 | M ./configure.ac -1 +1 | |
253 | ||
254 | Mon May 24 00:49:42 EDT 2004 stevenj | |
255 | * added h5math man page etc. | |
256 | ||
257 | A ./h5math.1 | |
258 | M ./h5math.c -4 +4 | |
259 | ||
260 | Mon May 24 00:32:20 EDT 2004 stevenj | |
261 | * whoops | |
262 | ||
263 | M ./h5tov5d.1 -1 +1 | |
264 | ||
265 | Sun May 23 23:32:54 EDT 2004 stevenj | |
266 | * wrapping | |
267 | ||
268 | M ./h5math.c -1 +2 | |
269 | ||
270 | Sun May 23 23:11:34 EDT 2004 stevenj | |
271 | * fixed copyright dates in man pages | |
272 | ||
273 | M ./h5fromh4.1 -2 +2 | |
274 | M ./h5fromtxt.1 -2 +2 | |
275 | M ./h5topng.1.in -2 +2 | |
276 | M ./h5totxt.1 -2 +2 | |
277 | M ./h5tov5d.1 -2 +2 | |
278 | M ./h5tovtk.1 -1 +1 | |
279 | ||
280 | Sun May 23 22:14:49 EDT 2004 stevenj | |
281 | * whoops | |
282 | ||
283 | M ./h5math.c -2 +4 | |
284 | ||
285 | Sun May 23 22:10:36 EDT 2004 stevenj | |
286 | * make "t" variable the same as the last dimension, consistent with slice convention | |
287 | ||
288 | M ./h5math.c -3 +3 | |
289 | ||
290 | Sun May 23 22:05:31 EDT 2004 stevenj | |
291 | * added h5math utility (still needs man page) | |
292 | ||
293 | M ./Makefile.am -2 +5 | |
294 | M ./configure.ac -1 +13 | |
295 | A ./h5math.c | |
296 | ||
297 | Sun May 23 20:21:52 EDT 2004 stevenj | |
298 | * use my_strdup everywhere, get rid of some compiler warnings | |
299 | ||
300 | M ./h5fromh4.c -12 +4 | |
301 | M ./h5fromitxt.c -14 +8 | |
302 | M ./h5fromtxt.c -10 +4 | |
303 | M ./h5topng.c -8 | |
304 | M ./h5totxt.c -15 +4 | |
305 | M ./h5tov5d.c -8 +2 | |
306 | M ./h5tovtk.c -8 +2 | |
307 | M ./h5utils.c +11 | |
308 | M ./h5utils.h +1 | |
309 | ||
310 | Sat May 22 13:37:54 EDT 2004 stevenj | |
311 | tagged h5utils-1-8 | |
312 | ||
313 | ||
314 | Sat May 22 13:37:54 EDT 2004 stevenj | |
315 | * vpath build | |
316 | ||
317 | M ./Makefile.am -1 +1 | |
318 | ||
319 | Sat May 22 13:23:35 EDT 2004 stevenj | |
320 | * fixed some formatting problems | |
321 | ||
322 | M ./h5topng.1.in -9 +16 | |
323 | ||
324 | Sat May 22 13:19:22 EDT 2004 stevenj | |
325 | * make sure EXTRA_MANS is distributed | |
326 | ||
327 | M ./Makefile.am -2 +2 | |
328 | ||
329 | Sat May 22 12:58:44 EDT 2004 stevenj | |
330 | * planned release date | |
331 | ||
332 | M ./NEWS -1 +1 | |
333 | ||
334 | Fri May 21 20:55:40 EDT 2004 stevenj | |
335 | * whoops, missing '0' | |
336 | ||
337 | M ./h5tovtk.c +3 | |
338 | ||
339 | Fri May 21 20:51:40 EDT 2004 stevenj | |
340 | * note more digits | |
341 | ||
342 | M ./NEWS -1 +2 | |
343 | ||
344 | Fri May 21 20:50:14 EDT 2004 stevenj | |
345 | * whoops, screwed up slices | |
346 | ||
347 | M ./arrayh5.c -23 +7 | |
348 | M ./h5totxt.c -2 +1 | |
349 | ||
350 | Fri May 21 20:34:35 EDT 2004 stevenj | |
351 | * don't know release date yet | |
352 | ||
353 | M ./NEWS -1 +1 | |
354 | ||
355 | Fri May 21 20:32:49 EDT 2004 stevenj | |
356 | * new version | |
357 | ||
358 | M ./NEWS +24 | |
359 | M ./configure.ac -1 +1 | |
360 | ||
361 | Fri May 21 20:25:18 EDT 2004 stevenj | |
362 | * mkdist script | |
363 | ||
364 | A ./mkdist.sh | |
365 | ||
366 | Fri May 21 20:24:48 EDT 2004 stevenj | |
367 | * generate automatically | |
368 | ||
369 | M ./ChangeLog -256 +1 | |
370 | ||
371 | Fri May 21 20:23:41 EDT 2004 stevenj | |
372 | * add latest colormaps | |
373 | ||
374 | M ./Makefile.am -4 +5 | |
375 | ||
376 | Fri May 21 20:19:06 EDT 2004 stevenj | |
377 | * check for -8 with -A | |
378 | ||
379 | M ./h5topng.c +3 | |
380 | ||
381 | Fri May 21 20:17:57 EDT 2004 stevenj | |
382 | * default to 24-bit output, -8 for old behavior | |
383 | ||
384 | M ./h5topng.1.in -1 +7 | |
385 | M ./h5topng.c -5 +11 | |
386 | M ./writepng.c -29 +50 | |
387 | M ./writepng.h -2 +2 | |
388 | ||
389 | Fri May 21 19:50:52 EDT 2004 stevenj | |
390 | * updated man pages | |
391 | ||
392 | M ./h5topng.1.in -21 +54 | |
393 | M ./h5totxt.1 -28 +30 | |
394 | M ./h5tov5d.1 -1 +27 | |
395 | M ./h5tovtk.1 +29 | |
396 | ||
397 | Fri May 21 18:59:28 EDT 2004 stevenj | |
398 | * added translucent overlay option | |
399 | ||
400 | M ./arrayh4.c -1 +1 | |
401 | M ./arrayh5.c -2 +2 | |
402 | M ./colormaps/bluered -1 +1 | |
403 | M ./colormaps/gray -1 +1 | |
404 | A ./colormaps/green | |
405 | A ./colormaps/yarg | |
406 | A ./colormaps/yellow | |
407 | M ./copyright.h -1 +1 | |
408 | M ./h5fromh4.c -1 +1 | |
409 | M ./h5fromitxt.c -1 +1 | |
410 | M ./h5fromtxt.c -1 +1 | |
411 | M ./h5topng.c -64 +154 | |
412 | M ./h5totxt.c -1 +1 | |
413 | M ./h5tov5d.c -2 +2 | |
414 | M ./h5tovtk.c -1 +1 | |
415 | M ./h5utils.c -1 +1 | |
416 | M ./writepng.c -21 +101 | |
417 | M ./writepng.h -2 +4 | |
418 | ||
419 | Fri May 21 16:12:05 EDT 2004 stevenj | |
420 | * make nx = cols by default in h5topng | |
421 | ||
422 | M ./h5topng.c -1 +1 | |
423 | ||
424 | Fri May 21 16:10:58 EDT 2004 stevenj | |
425 | * INSTALL is supplied by automake --add-missing | |
426 | ||
427 | R ./INSTALL | |
428 | ||
429 | Fri May 21 16:10:23 EDT 2004 stevenj | |
430 | * support multiple slice dimensions | |
431 | ||
432 | M ./INSTALL -23 +26 | |
433 | M ./Makefile.am -1 +2 | |
434 | M ./arrayh5.c -65 +103 | |
435 | M ./arrayh5.h -1 +6 | |
436 | M ./configure.ac -2 +17 | |
437 | M ./h5fromitxt.c -2 +1 | |
438 | M ./h5read.cc -2 +2 | |
439 | M ./h5topng.c -18 +32 | |
440 | M ./h5totxt.c -36 +35 | |
441 | M ./h5tov5d.c -14 +50 | |
442 | M ./h5tovtk.c -4 +29 | |
443 | M ./install-sh -178 +252 | |
444 | ||
445 | Mon Mar 1 21:28:44 EST 2004 stevenj | |
446 | * added h5fromitxt | |
447 | ||
448 | M ./Makefile.am -1 +2 | |
449 | A ./h5fromitxt.c | |
450 | ||
451 | Mon Jul 15 13:27:27 EDT 2002 stevenj | |
452 | tagged h5utils-1-7-2 | |
453 | ||
454 | ||
455 | Mon Jul 15 13:27:27 EDT 2002 stevenj | |
456 | * C++ fix for g++ 3.x, from Josselin Mouette | |
457 | ||
458 | M ./h5read.cc -1 +1 | |
459 | ||
460 | Fri Jun 14 19:48:39 EDT 2002 stevenj | |
461 | * follow gd lib in initializing alpha before palette (don't know if it matters) | |
462 | ||
463 | M ./writepng.c -5 +4 | |
464 | ||
465 | Fri Jun 14 19:48:07 EDT 2002 stevenj | |
466 | * don't use colormap dir for ./<colormap> or /<colormap> | |
467 | ||
468 | M ./h5topng.c -1 +2 | |
469 | ||
470 | Wed May 29 23:37:54 EDT 2002 stevenj | |
471 | * added -a and -. flags | |
472 | ||
473 | M ./h5totxt.1 +13 | |
474 | M ./h5totxt.c -18 +60 | |
475 | ||
476 | Sat Mar 16 17:46:44 EST 2002 stevenj | |
477 | * added 1.7.1 notes | |
478 | ||
479 | M ./NEWS +5 | |
480 | ||
481 | Sat Mar 16 17:15:16 EST 2002 stevenj | |
482 | * fixed h5fromh4 and make dist | |
483 | ||
484 | M ./Makefile.am -7 +9 | |
485 | M ./configure.ac -2 +2 | |
486 | ||
487 | Sat Mar 16 16:58:28 EST 2002 stevenj | |
488 | tagged h5utils-1-7-1 | |
489 | ||
490 | ||
491 | Sat Mar 16 16:58:28 EST 2002 stevenj | |
492 | * fixed array overrun causing floating-point exceptions on Alpha (thanks to Marin Soljacic for the bug report) | |
493 | ||
494 | M ./writepng.c -5 +7 | |
495 | ||
496 | Thu Mar 14 03:06:28 EST 2002 stevenj | |
497 | * use automake | |
498 | ||
499 | A ./Makefile.am | |
500 | R ./Makefile.in | |
501 | A ./configure.ac | |
502 | R ./configure.in | |
503 | M ./h5fromh4.c -1 +1 | |
504 | M ./h5fromtxt.c -1 +1 | |
505 | M ./h5topng.c -2 +2 | |
506 | M ./h5totxt.c -1 +1 | |
507 | M ./h5tov5d.c -1 +1 | |
508 | M ./h5tovtk.c -1 +1 | |
509 | ||
510 | Wed Mar 13 18:48:05 EST 2002 stevenj | |
511 | * use mandir | |
512 | ||
513 | M ./Makefile.in -18 +19 | |
514 | ||
515 | Sun Mar 10 19:47:30 EST 2002 stevenj | |
516 | * added URL | |
517 | ||
518 | M ./README +1 | |
519 | ||
520 | Sat Mar 9 16:48:15 EST 2002 stevenj | |
521 | tagged h5utils-1-7 | |
522 | ||
523 | ||
524 | Sat Mar 9 16:48:15 EST 2002 stevenj | |
525 | * print warning for -c <h5file> | |
526 | ||
527 | M ./h5topng.c -2 +3 | |
528 | ||
529 | Sat Mar 9 16:35:59 EST 2002 stevenj | |
530 | * whoops | |
531 | ||
532 | M ./Makefile.in -1 +1 | |
533 | ||
534 | Sat Mar 9 16:29:19 EST 2002 stevenj | |
535 | * updated dates | |
536 | ||
537 | M ./NEWS -1 +1 | |
538 | M ./h5fromh4.1 -1 +1 | |
539 | M ./h5fromtxt.1 -1 +1 | |
540 | M ./h5topng.1.in -1 +1 | |
541 | M ./h5totxt.1 -1 +1 | |
542 | M ./h5tov5d.1 -1 +1 | |
543 | M ./h5tovtk.1 -1 +1 | |
544 | ||
545 | Sat Mar 9 15:13:29 EST 2002 stevenj | |
546 | * made more GNU-ly correct | |
547 | ||
548 | A ./INSTALL | |
549 | A ./README | |
550 | R ./README-h5utils.html | |
551 | ||
552 | Sat Mar 9 15:09:26 EST 2002 stevenj | |
553 | * added AUTHORS file to be GNU-ly correct | |
554 | ||
555 | A ./AUTHORS | |
556 | ||
557 | Tue Mar 5 02:23:55 EST 2002 stevenj | |
558 | * eliminated code duplication | |
559 | ||
560 | M ./Makefile.in -9 +9 | |
561 | M ./h5fromh4.c -43 +3 | |
562 | M ./h5fromtxt.c -28 +1 | |
563 | M ./h5topng.c -42 +3 | |
564 | M ./h5totxt.c -28 +1 | |
565 | M ./h5tov5d.c -48 +1 | |
566 | M ./h5tovtk.c -62 +4 | |
567 | A ./h5utils.c | |
568 | A ./h5utils.h | |
569 | ||
570 | Tue Mar 5 02:06:31 EST 2002 stevenj | |
571 | * finally fixed garbage pixels bug in h5topng | |
572 | ||
573 | M ./NEWS +3 | |
574 | M ./writepng.c -10 +9 | |
575 | ||
576 | Tue Mar 5 01:36:21 EST 2002 stevenj | |
577 | * added -0 option | |
578 | ||
579 | M ./NEWS +3 | |
580 | M ./arrayh5.c -51 +55 | |
581 | M ./arrayh5.h -1 +2 | |
582 | M ./h5read.cc -1 +1 | |
583 | M ./h5topng.1.in -1 +8 | |
584 | M ./h5topng.c -4 +9 | |
585 | M ./h5totxt.1 -1 +8 | |
586 | M ./h5totxt.c -3 +8 | |
587 | M ./h5tov5d.c -3 +3 | |
588 | M ./h5tovtk.c -1 +1 | |
589 | ||
590 | Tue Mar 5 00:03:20 EST 2002 stevenj | |
591 | * added -R option | |
592 | ||
593 | M ./NEWS +3 | |
594 | M ./h5topng.1.in -1 +9 | |
595 | M ./h5topng.c -16 +40 | |
596 | ||
597 | Mon Mar 4 23:25:15 EST 2002 stevenj | |
598 | * added alpha channel support to color maps | |
599 | ||
600 | M ./colormaps/autumn -16 +16 | |
601 | M ./colormaps/bluered -3 +3 | |
602 | M ./colormaps/bone -64 +64 | |
603 | M ./colormaps/colorcube -64 +64 | |
604 | M ./colormaps/cool -16 +16 | |
605 | M ./colormaps/copper -64 +64 | |
606 | M ./colormaps/flag -64 +64 | |
607 | M ./colormaps/gray -2 +2 | |
608 | M ./colormaps/hot -64 +64 | |
609 | M ./colormaps/hsv -64 +64 | |
610 | M ./colormaps/jet -16 +16 | |
611 | M ./colormaps/lines -64 +64 | |
612 | M ./colormaps/pink -64 +64 | |
613 | M ./colormaps/prism -16 +16 | |
614 | M ./colormaps/spring -16 +16 | |
615 | M ./colormaps/summer -16 +16 | |
616 | M ./colormaps/vga -16 +16 | |
617 | M ./colormaps/winter -16 +16 | |
618 | M ./h5topng.1.in -3 +4 | |
619 | M ./h5topng.c -12 +13 | |
620 | M ./writepng.c -4 +31 | |
621 | M ./writepng.h -3 +3 | |
622 | ||
623 | Mon Mar 4 22:22:11 EST 2002 stevenj | |
624 | * better error message for -c (catches common mistake) | |
625 | ||
626 | M ./h5topng.c -4 +7 | |
627 | ||
628 | Mon Mar 4 22:21:45 EST 2002 stevenj | |
629 | * slight improvements | |
630 | ||
631 | M ./h5topng.1.in -8 +7 | |
632 | ||
633 | Mon Mar 4 20:31:24 EST 2002 stevenj | |
634 | * have built-in gray colormap fallback | |
635 | ||
636 | M ./h5topng.c -9 +24 | |
637 | ||
638 | Sun Mar 3 23:48:26 EST 2002 stevenj | |
639 | * minor improvements; noted hsv | |
640 | ||
641 | M ./h5topng.1.in -8 +11 | |
642 | ||
643 | Sun Mar 3 23:33:46 EST 2002 stevenj | |
644 | * whoops | |
645 | ||
646 | R ./h5topng.1 | |
647 | ||
648 | Sun Mar 3 23:32:56 EST 2002 stevenj | |
649 | * linewrapped | |
650 | ||
651 | A ./h5topng.1 | |
652 | M ./h5topng.1.in -2 +6 | |
653 | ||
654 | Sun Mar 3 23:32:16 EST 2002 stevenj | |
655 | * updated for 1.7 | |
656 | ||
657 | M ./NEWS +15 | |
658 | ||
659 | Sun Mar 3 23:22:43 EST 2002 stevenj | |
660 | * added | |
661 | ||
662 | A ./ChangeLog | |
663 | ||
664 | Sun Mar 3 23:21:28 EST 2002 stevenj | |
665 | * 2002 copyright year update | |
666 | ||
667 | M ./COPYING -1 +1 | |
668 | M ./README-h5utils.html -1 +1 | |
669 | M ./arrayh4.c -1 +1 | |
670 | M ./arrayh4.h -1 +1 | |
671 | M ./arrayh5.c -1 +1 | |
672 | M ./arrayh5.h -1 +1 | |
673 | M ./copyright.h -1 +1 | |
674 | M ./h5fromh4.1 -2 +2 | |
675 | M ./h5fromh4.c -1 +1 | |
676 | M ./h5fromtxt.1 -2 +2 | |
677 | M ./h5fromtxt.c -1 +1 | |
678 | M ./h5read.cc -1 +1 | |
679 | M ./h5topng.1.in -2 +2 | |
680 | M ./h5topng.c -1 +1 | |
681 | M ./h5totxt.1 -2 +2 | |
682 | M ./h5totxt.c -1 +1 | |
683 | M ./h5tov5d.1 -2 +2 | |
684 | M ./h5tov5d.c -2 +2 | |
685 | M ./writepng.c -1 +1 | |
686 | M ./writepng.h -1 +1 | |
687 | ||
688 | Sun Mar 3 23:17:58 EST 2002 stevenj | |
689 | * fixed h5tovtk man page | |
690 | ||
691 | M ./h5tovtk.1 -16 +68 | |
692 | M ./h5tovtk.c -6 +6 | |
693 | ||
694 | Fri Mar 1 02:28:33 EST 2002 stevenj | |
695 | * noted location of colormap files | |
696 | ||
697 | M ./h5topng.c +1 | |
698 | ||
699 | Fri Mar 1 02:10:52 EST 2002 stevenj | |
700 | * added variable colormap support | |
701 | ||
702 | M ./Makefile.in -2 +13 | |
703 | M ./configure.in -1 +14 | |
704 | R ./h5topng.1 | |
705 | A ./h5topng.1.in | |
706 | M ./h5topng.c -5 +83 | |
707 | M ./writepng.c -16 +13 | |
708 | M ./writepng.h -3 +7 | |
709 | ||
710 | Fri Mar 1 02:10:26 EST 2002 stevenj | |
711 | * synced with latest arrayh5 | |
712 | ||
713 | M ./h5read.cc -1 +1 | |
714 | ||
715 | Fri Mar 1 01:11:37 EST 2002 stevenj | |
716 | * added some color map files | |
717 | ||
718 | A ./colormaps/ | |
719 | A ./colormaps/autumn | |
720 | A ./colormaps/bluered | |
721 | A ./colormaps/bone | |
722 | A ./colormaps/colorcube | |
723 | A ./colormaps/cool | |
724 | A ./colormaps/copper | |
725 | A ./colormaps/flag | |
726 | A ./colormaps/gray | |
727 | A ./colormaps/hot | |
728 | A ./colormaps/hsv | |
729 | A ./colormaps/jet | |
730 | A ./colormaps/lines | |
731 | A ./colormaps/pink | |
732 | A ./colormaps/prism | |
733 | A ./colormaps/spring | |
734 | A ./colormaps/summer | |
735 | A ./colormaps/vga | |
736 | A ./colormaps/winter | |
737 | ||
738 | Sat Jan 5 15:15:11 EST 2002 stevenj | |
739 | * added preliminary h5tovtk | |
740 | ||
741 | M ./Makefile.in -2 +16 | |
742 | M ./arrayh5.c -1 +5 | |
743 | M ./arrayh5.h -1 +1 | |
744 | M ./configure.in -1 +28 | |
745 | M ./h5topng.c -2 +2 | |
746 | M ./h5totxt.c -1 +1 | |
747 | M ./h5tov5d.c -3 +3 | |
748 | A ./h5tovtk.1 | |
749 | A ./h5tovtk.c | |
750 | ||
751 | Mon Oct 15 20:47:15 EDT 2001 stevenj | |
752 | * Use CPPFLAGS and LDFLAGS when calling mkoctfile! Thanks to Max Colice | |
753 | Use CPPFLAGS and LDFLAGS when calling mkoctfile! Thanks to Max Colice | |
754 | for the bug report. | |
755 | ||
756 | ||
757 | M ./Makefile.in -2 +2 | |
758 | ||
759 | Tue Oct 2 01:09:50 EDT 2001 stevenj | |
760 | * whoops, fixed datatype in -T mode | |
761 | ||
762 | M ./h5tov5d.c -10 +8 | |
763 | ||
764 | Sat Sep 22 19:21:04 EDT 2001 stevenj | |
765 | * slight bug fix in -T (?) | |
766 | ||
767 | M ./h5tov5d.c -3 +10 | |
768 | ||
769 | Sat Sep 22 18:54:36 EDT 2001 stevenj | |
770 | * added -T option to h5tov5d | |
771 | ||
772 | M ./NEWS +2 | |
773 | M ./h5tov5d.1 +3 | |
774 | M ./h5tov5d.c -26 +46 | |
775 | ||
776 | Sun Mar 18 01:32:07 EST 2001 stevenj | |
777 | * whoops, fixed problem when --without-h5tov5d and --without-h5fromh4 are used. Thanks to Nikola Ivanov Nikolov for the fix. | |
778 | ||
779 | M ./Makefile.in -2 +1 | |
780 | ||
781 | Wed Feb 14 13:48:01 EST 2001 stevenj | |
782 | * minor fix | |
783 | ||
784 | M ./h5fromtxt.1 -1 +1 | |
785 | ||
786 | Wed Jan 17 00:05:12 EST 2001 stevenj | |
787 | tagged h5utils-1-6 | |
788 | ||
789 | ||
790 | Wed Jan 17 00:05:12 EST 2001 stevenj | |
791 | * Don't build h5fromh4 if h4toh5 is present. Bumped version and copyright year. | |
792 | ||
793 | M ./COPYING -1 +1 | |
794 | M ./NEWS +6 | |
795 | M ./README-h5utils.html -1 +1 | |
796 | M ./arrayh4.c -1 +1 | |
797 | M ./arrayh4.h -1 +1 | |
798 | M ./arrayh5.c -1 +1 | |
799 | M ./arrayh5.h -1 +1 | |
800 | M ./configure.in -8 +21 | |
801 | M ./copyright.h -1 +1 | |
802 | M ./h5fromh4.1 -2 +2 | |
803 | M ./h5fromh4.c -1 +1 | |
804 | M ./h5fromtxt.1 -2 +2 | |
805 | M ./h5fromtxt.c -1 +1 | |
806 | M ./h5read.cc -1 +1 | |
807 | M ./h5topng.1 -2 +2 | |
808 | M ./h5topng.c -1 +1 | |
809 | M ./h5totxt.1 -2 +2 | |
810 | M ./h5totxt.c -1 +1 | |
811 | M ./h5tov5d.1 -2 +2 | |
812 | M ./h5tov5d.c -2 +2 | |
813 | M ./writepng.c -1 +1 | |
814 | M ./writepng.h -1 +1 | |
815 | ||
816 | Sat Dec 9 02:01:59 EST 2000 stevenj | |
817 | * 'make dist' should call autoheader | |
818 | ||
819 | M ./Makefile.in -1 +1 | |
820 | ||
821 | Sat Dec 9 02:00:21 EST 2000 stevenj | |
822 | * bumped version number | |
823 | ||
824 | M ./NEWS +7 | |
825 | M ./configure.in -1 +1 | |
826 | ||
827 | Sat Dec 9 01:58:37 EST 2000 stevenj | |
828 | * Support disabling Octave plugin manually, in case of C++ craziness. | |
829 | Support disabling Octave plugin manually, in case of C++ craziness. | |
830 | Support Vis5d+ header file locations. Support Debian HDF header file | |
831 | locations. Use autoheader. | |
832 | ||
833 | ||
834 | M ./Makefile.in -1 +1 | |
835 | M ./arrayh4.h -1 +5 | |
836 | R ./config.h.in | |
837 | M ./configure.in -3 +15 | |
838 | M ./h5tov5d.c -1 +3 | |
839 | ||
840 | Fri Jul 28 07:58:39 EDT 2000 stevenj | |
841 | * fixed bug in contour plotting | |
842 | ||
843 | M ./writepng.c -7 +11 | |
844 | ||
845 | Sun Jul 9 22:39:52 EDT 2000 stevenj | |
846 | * updated | |
847 | ||
848 | M ./NEWS -1 +1 | |
849 | ||
850 | Sun Jul 9 00:43:19 EDT 2000 stevenj | |
851 | * Note that HDF4 libraries are required for h5fromh4. | |
852 | ||
853 | M ./README-h5utils.html +3 | |
854 | ||
855 | Sun Jul 9 00:41:45 EDT 2000 stevenj | |
856 | * documented h5fromh4 | |
857 | ||
858 | M ./README-h5utils.html +8 | |
859 | ||
860 | Tue May 30 02:14:21 EDT 2000 stevenj | |
861 | * Added -S <s> option to h5topng as a shortcut for -X <s> -Y <s>. | |
862 | ||
863 | M ./NEWS +2 | |
864 | M ./h5topng.1 -2 +4 | |
865 | M ./h5topng.c -1 +5 | |
866 | ||
867 | Mon May 29 15:00:00 EDT 2000 stevenj | |
868 | * bumped version | |
869 | ||
870 | M ./NEWS -1 +5 | |
871 | M ./configure.in -1 +1 | |
872 | ||
873 | Mon May 29 14:56:38 EDT 2000 stevenj | |
874 | * slight fixes | |
875 | ||
876 | M ./h5fromh4.1 -5 +7 | |
877 | ||
878 | Mon May 29 14:52:33 EDT 2000 stevenj | |
879 | * added h5fromh4 man page | |
880 | ||
881 | A ./h5fromh4.1 | |
882 | ||
883 | Mon May 29 04:51:07 EDT 2000 stevenj | |
884 | * added h5fromh4 | |
885 | ||
886 | M ./Makefile.in -2 +17 | |
887 | A ./arrayh4.c | |
888 | A ./arrayh4.h | |
889 | M ./configure.in +10 | |
890 | A ./h5fromh4.c | |
891 | ||
892 | Mon May 29 04:37:47 EDT 2000 stevenj | |
893 | * got rid of spurious "sep" variable | |
894 | ||
895 | M ./h5fromtxt.c -6 | |
896 | ||
897 | Sun May 28 19:13:08 EDT 2000 stevenj | |
898 | tagged h5utils-1-4 | |
899 | ||
900 | ||
901 | Sun May 28 19:13:08 EDT 2000 stevenj | |
902 | * added h5fromtxt | |
903 | ||
904 | M ./Makefile.in -2 +16 | |
905 | M ./NEWS +4 | |
906 | M ./README-h5utils.html +11 | |
907 | M ./arrayh5.c -16 +125 | |
908 | M ./arrayh5.h +4 | |
909 | M ./configure.in -1 +1 | |
910 | A ./h5fromtxt.1 | |
911 | A ./h5fromtxt.c | |
912 | M ./h5topng.c -1 +1 | |
913 | M ./h5totxt.c -1 +1 | |
914 | M ./h5tov5d.c -1 +1 | |
915 | ||
916 | Mon Jan 31 22:14:43 EST 2000 stevenj | |
917 | tagged h5utils-1-3-4 | |
918 | ||
919 | ||
920 | Mon Jan 31 22:14:43 EST 2000 stevenj | |
921 | * slight correction | |
922 | ||
923 | M ./h5topng.1 -1 +1 | |
924 | ||
925 | Mon Jan 31 22:05:30 EST 2000 stevenj | |
926 | * fix so it works without -C! | |
927 | ||
928 | M ./h5topng.c -1 +2 | |
929 | ||
930 | Mon Jan 31 22:02:17 EST 2000 stevenj | |
931 | * bumped version | |
932 | ||
933 | M ./NEWS +6 | |
934 | M ./configure.in -1 +1 | |
935 | ||
936 | Mon Jan 31 21:59:32 EST 2000 stevenj | |
937 | * improved crude contour feature | |
938 | ||
939 | M ./h5topng.1 -2 +2 | |
940 | M ./h5topng.c -9 +11 | |
941 | M ./writepng.c -41 +45 | |
942 | M ./writepng.h -5 +2 | |
943 | ||
944 | Mon Jan 31 20:43:28 EST 2000 stevenj | |
945 | * Fixed display bug; thanks to Christoph Becher for the correction. | |
946 | ||
947 | M ./h5topng.1 -2 +5 | |
948 | ||
949 | Sun Jan 30 14:13:13 EST 2000 stevenj | |
950 | * credited 1.3.3 bug report | |
951 | ||
952 | M ./NEWS +1 | |
953 | ||
954 | Sun Jan 30 14:06:09 EST 2000 stevenj | |
955 | tagged h5utils-1-3-3 | |
956 | ||
957 | ||
958 | Sun Jan 30 14:06:09 EST 2000 stevenj | |
959 | * bumped version | |
960 | ||
961 | M ./configure.in -1 +1 | |
962 | ||
963 | Sun Jan 30 14:04:32 EST 2000 stevenj | |
964 | * got rid of compiler warning | |
965 | ||
966 | M ./NEWS +4 | |
967 | M ./arrayh5.c -2 +2 | |
968 | ||
969 | Sun Jan 30 14:04:07 EST 2000 stevenj | |
970 | * bug fix (uninitialized var) | |
971 | ||
972 | M ./writepng.c -2 +1 | |
973 | ||
974 | Fri Jan 28 21:26:20 EST 2000 stevenj | |
975 | tagged h5utils-1-3-2 | |
976 | ||
977 | ||
978 | Fri Jan 28 21:26:20 EST 2000 stevenj | |
979 | * added -Z option | |
980 | ||
981 | M ./NEWS +2 | |
982 | M ./h5topng.1 -1 +5 | |
983 | M ./h5topng.c -1 +11 | |
984 | ||
985 | Fri Jan 28 18:03:46 EST 2000 stevenj | |
986 | * fixed typo | |
987 | ||
988 | M ./h5topng.c -1 +1 | |
989 | ||
990 | Fri Jan 28 18:01:28 EST 2000 stevenj | |
991 | * now support h5topng -C filename:dataset | |
992 | ||
993 | M ./NEWS +4 | |
994 | M ./configure.in -1 +1 | |
995 | M ./h5topng.1 -2 +4 | |
996 | M ./h5topng.c -2 +9 | |
997 | ||
998 | Thu Jan 27 19:54:35 EST 2000 stevenj | |
999 | tagged h5utils-1-3-1 | |
1000 | ||
1001 | ||
1002 | Thu Jan 27 19:54:35 EST 2000 stevenj | |
1003 | * bumped version | |
1004 | ||
1005 | M ./NEWS +5 | |
1006 | M ./configure.in -1 +1 | |
1007 | ||
1008 | Thu Jan 27 19:34:54 EST 2000 stevenj | |
1009 | * fixed bug in joining hdf5 files | |
1010 | ||
1011 | M ./h5tov5d.c -1 +1 | |
1012 | ||
1013 | Thu Jan 27 15:44:19 EST 2000 stevenj | |
1014 | * fixed handling of -d option so that it doesn't get overriden if only | |
1015 | fixed handling of -d option so that it doesn't get overriden if only | |
1016 | a single file specifies a dataset via fname:dataset. | |
1017 | ||
1018 | ||
1019 | M ./h5topng.c -3 +7 | |
1020 | M ./h5totxt.c -3 +6 | |
1021 | ||
1022 | Fri Jan 21 14:12:29 EST 2000 stevenj | |
1023 | tagged h5utils-1-3 | |
1024 | ||
1025 | ||
1026 | Fri Jan 21 14:12:29 EST 2000 stevenj | |
1027 | * documented changes | |
1028 | ||
1029 | M ./NEWS +6 | |
1030 | M ./README-h5utils.html +6 | |
1031 | ||
1032 | Thu Jan 20 22:44:13 EST 2000 stevenj | |
1033 | * detect -lv5d library | |
1034 | ||
1035 | M ./Makefile.in -1 +1 | |
1036 | M ./config.h.in +3 | |
1037 | M ./configure.in -2 +5 | |
1038 | M ./h5tov5d.c -5 +6 | |
1039 | ||
1040 | Thu Jan 20 22:36:57 EST 2000 stevenj | |
1041 | * added filename:dataset syntax | |
1042 | ||
1043 | M ./arrayh5.c -1 | |
1044 | M ./arrayh5.h +1 | |
1045 | M ./configure.in -1 +1 | |
1046 | M ./h5topng.1 -1 +3 | |
1047 | M ./h5topng.c -6 +41 | |
1048 | M ./h5totxt.1 -1 +3 | |
1049 | M ./h5totxt.c -8 +43 | |
1050 | M ./h5tov5d.1 -1 +3 | |
1051 | M ./h5tov5d.c -7 +53 | |
1052 | ||
1053 | Thu Jan 20 20:35:10 EST 2000 stevenj | |
1054 | tagged h5utils-1-2-3 | |
1055 | ||
1056 | ||
1057 | Thu Jan 20 20:35:10 EST 2000 stevenj | |
1058 | * bumped version | |
1059 | ||
1060 | M ./NEWS +4 | |
1061 | M ./configure.in -1 +1 | |
1062 | ||
1063 | Thu Jan 20 20:33:39 EST 2000 stevenj | |
1064 | * fixed help message | |
1065 | ||
1066 | M ./h5totxt.c -1 +1 | |
1067 | ||
1068 | Wed Jan 12 22:52:25 EST 2000 stevenj | |
1069 | * use CPPFLAGS when compiling | |
1070 | ||
1071 | M ./Makefile.in -1 +2 | |
1072 | M ./NEWS +6 | |
1073 | M ./configure.in -1 +1 | |
1074 | ||
1075 | Sat Jan 1 12:47:34 EST 2000 stevenj | |
1076 | * h5tov5d -o now joins; bumped copyright year | |
1077 | ||
1078 | M ./COPYING -1 +1 | |
1079 | M ./NEWS +4 | |
1080 | M ./README-h5utils.html -1 +1 | |
1081 | M ./arrayh5.c -1 +1 | |
1082 | M ./arrayh5.h -1 +1 | |
1083 | M ./configure.in -1 +1 | |
1084 | M ./copyright.h -1 +1 | |
1085 | M ./h5read.cc -1 +1 | |
1086 | M ./h5topng.1 -2 +2 | |
1087 | M ./h5topng.c -1 +1 | |
1088 | M ./h5totxt.1 -2 +2 | |
1089 | M ./h5totxt.c -1 +1 | |
1090 | M ./h5tov5d.1 -6 +12 | |
1091 | M ./h5tov5d.c -117 +166 | |
1092 | M ./writepng.c -1 +1 | |
1093 | M ./writepng.h -1 +1 | |
1094 | ||
1095 | Fri Dec 31 21:43:44 EST 1999 stevenj | |
1096 | tagged h5utils-1-2 | |
1097 | ||
1098 | ||
1099 | Fri Dec 31 21:43:44 EST 1999 stevenj | |
1100 | * noted changes | |
1101 | ||
1102 | M ./NEWS +8 | |
1103 | ||
1104 | Fri Dec 31 21:41:01 EST 1999 stevenj | |
1105 | * bumped version | |
1106 | ||
1107 | M ./configure.in -1 +1 | |
1108 | ||
1109 | Fri Dec 31 21:20:43 EST 1999 stevenj | |
1110 | * noted man page | |
1111 | ||
1112 | M ./README-h5utils.html +3 | |
1113 | ||
1114 | Fri Dec 31 21:17:38 EST 1999 stevenj | |
1115 | * updated license | |
1116 | ||
1117 | M ./README-h5utils.html +22 | |
1118 | ||
1119 | Fri Dec 31 21:05:29 EST 1999 stevenj | |
1120 | * added h5tov5d | |
1121 | ||
1122 | M ./COPYING -21 +373 | |
1123 | M ./Makefile.in -6 +32 | |
1124 | M ./README-h5utils.html -2 +31 | |
1125 | M ./configure.in +27 | |
1126 | A ./copyright.h | |
1127 | M ./h5topng.c -23 +1 | |
1128 | M ./h5totxt.c -23 +1 | |
1129 | A ./h5tov5d.1 | |
1130 | A ./h5tov5d.c | |
1131 | ||
1132 | Fri Dec 31 16:58:12 EST 1999 stevenj | |
1133 | * some cleanup | |
1134 | ||
1135 | M ./configure.in -2 +9 | |
1136 | ||
1137 | Fri Dec 31 16:55:39 EST 1999 stevenj | |
1138 | * Better documentation of (revised) installation. | |
1139 | ||
1140 | M ./README-h5utils.html -6 +9 | |
1141 | ||
1142 | Fri Dec 31 16:46:31 EST 1999 stevenj | |
1143 | * install h5read.oct in right place | |
1144 | ||
1145 | M ./Makefile.in -4 +13 | |
1146 | M ./configure.in +18 | |
1147 | ||
1148 | Fri Dec 31 16:01:41 EST 1999 stevenj | |
1149 | * fixed install/uninstall rules so that they ignore things that aren't built | |
1150 | ||
1151 | M ./Makefile.in -6 +27 | |
1152 | ||
1153 | Mon Dec 6 17:49:46 EST 1999 stevenj | |
1154 | * small fixes | |
1155 | ||
1156 | M ./README-h5utils.html -4 +5 | |
1157 | ||
1158 | Mon Dec 6 17:40:56 EST 1999 stevenj | |
1159 | * added h5totxt | |
1160 | ||
1161 | M ./Makefile.in -7 +14 | |
1162 | A ./NEWS | |
1163 | M ./README-h5utils.html +8 | |
1164 | M ./configure.in -1 +1 | |
1165 | A ./h5totxt.1 | |
1166 | A ./h5totxt.c | |
1167 | ||
1168 | Mon Nov 22 00:02:13 EST 1999 stevenj | |
1169 | tagged h5utils-1-0 | |
1170 | ||
1171 | ||
1172 | Mon Nov 22 00:02:13 EST 1999 stevenj | |
1173 | * don't strip (-s) man page!! | |
1174 | ||
1175 | M ./Makefile.in -1 +1 | |
1176 | ||
1177 | Sun Nov 21 23:50:36 EST 1999 stevenj | |
1178 | * changed README to HTML | |
1179 | ||
1180 | R ./README | |
1181 | A ./README-h5utils.html | |
1182 | ||
1183 | Sun Nov 21 23:01:59 EST 1999 stevenj | |
1184 | * added man page | |
1185 | ||
1186 | M ./Makefile.in +2 | |
1187 | M ./README -1 +2 | |
1188 | A ./h5topng.1 | |
1189 | ||
1190 | Sun Nov 21 21:41:52 EST 1999 stevenj | |
1191 | * got rid of garbage file | |
1192 | ||
1193 | R ./.png | |
1194 | ||
1195 | Sun Nov 21 21:39:48 EST 1999 stevenj | |
1196 | * made sure 'make clean' gets rid of h5read.o | |
1197 | ||
1198 | M ./Makefile.in -1 +1 | |
1199 | ||
1200 | Sun Nov 21 21:39:04 EST 1999 stevenj | |
1201 | * various fixes | |
1202 | ||
1203 | M ./config.h.in +2 | |
1204 | M ./configure.in -1 +1 | |
1205 | M ./h5topng.c -4 +39 | |
1206 | ||
1207 | Sun Nov 21 21:27:45 EST 1999 stevenj | |
1208 | * comment-ized license | |
1209 | ||
1210 | M ./COPYING -19 +21 | |
1211 | ||
1212 | Sun Nov 21 21:26:49 EST 1999 stevenj | |
1213 | * added copyright notices | |
1214 | ||
1215 | M ./arrayh5.c +22 | |
1216 | M ./arrayh5.h +22 | |
1217 | M ./h5read.cc +22 | |
1218 | M ./h5topng.c +22 | |
1219 | M ./writepng.c +22 | |
1220 | M ./writepng.h -1 +36 | |
1221 | ||
1222 | Sun Nov 21 21:22:47 EST 1999 stevenj | |
1223 | * fixed clean targets | |
1224 | ||
1225 | M ./Makefile.in -1 +4 | |
1226 | ||
1227 | Sun Nov 21 21:20:16 EST 1999 stevenj | |
1228 | * added MIT license | |
1229 | ||
1230 | A ./COPYING | |
1231 | ||
1232 | Sun Nov 21 21:19:54 EST 1999 stevenj | |
1233 | * autoconfiscated | |
1234 | ||
1235 | R ./Makefile | |
1236 | A ./Makefile.in | |
1237 | A ./config.h.in | |
1238 | A ./configure.in | |
1239 | A ./install-sh | |
1240 | ||
1241 | Sun Nov 21 20:49:08 EST 1999 stevenj | |
1242 | * deleted extraneous files | |
1243 | ||
1244 | R ./.indent.pro | |
1245 | R ./README.writepng | |
1246 | ||
1247 | Sun Nov 21 20:48:36 EST 1999 stevenj | |
1248 | * added README | |
1249 | ||
1250 | A ./README | |
1251 | ||
1252 | Sun Nov 21 20:24:59 EST 1999 stevenj | |
1253 | * Initial revision | |
1254 | ||
1255 | A ./.indent.pro | |
1256 | A ./.png | |
1257 | A ./Makefile | |
1258 | A ./README.writepng | |
1259 | A ./arrayh5.c | |
1260 | A ./arrayh5.h | |
1261 | A ./h5read.cc | |
1262 | A ./h5topng.c | |
1263 | A ./writepng.c | |
1264 | A ./writepng.h | |
0 | See https://github.com/stevengj/h5utils for the complete git | |
1 | history of h5utils. |
0 | Installation Instructions | |
1 | ************************* | |
2 | ||
3 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | |
4 | 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
5 | ||
6 | This file is free documentation; the Free Software Foundation gives | |
7 | unlimited permission to copy, distribute and modify it. | |
8 | ||
9 | Basic Installation | |
10 | ================== | |
11 | ||
12 | Briefly, the shell commands `./configure; make; make install' should | |
13 | configure, build, and install this package. The following | |
14 | more-detailed instructions are generic; see the `README' file for | |
15 | instructions specific to this package. | |
16 | ||
17 | The `configure' shell script attempts to guess correct values for | |
18 | various system-dependent variables used during compilation. It uses | |
19 | those values to create a `Makefile' in each directory of the package. | |
20 | It may also create one or more `.h' files containing system-dependent | |
21 | definitions. Finally, it creates a shell script `config.status' that | |
22 | you can run in the future to recreate the current configuration, and a | |
23 | file `config.log' containing compiler output (useful mainly for | |
24 | debugging `configure'). | |
25 | ||
26 | It can also use an optional file (typically called `config.cache' | |
27 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | |
28 | the results of its tests to speed up reconfiguring. Caching is | |
29 | disabled by default to prevent problems with accidental use of stale | |
30 | cache files. | |
31 | ||
32 | If you need to do unusual things to compile the package, please try | |
33 | to figure out how `configure' could check whether to do them, and mail | |
34 | diffs or instructions to the address given in the `README' so they can | |
35 | be considered for the next release. If you are using the cache, and at | |
36 | some point `config.cache' contains results you don't want to keep, you | |
37 | may remove or edit it. | |
38 | ||
39 | The file `configure.ac' (or `configure.in') is used to create | |
40 | `configure' by a program called `autoconf'. You need `configure.ac' if | |
41 | you want to change it or regenerate `configure' using a newer version | |
42 | of `autoconf'. | |
43 | ||
44 | The simplest way to compile this package is: | |
45 | ||
46 | 1. `cd' to the directory containing the package's source code and type | |
47 | `./configure' to configure the package for your system. | |
48 | ||
49 | Running `configure' might take a while. While running, it prints | |
50 | some messages telling which features it is checking for. | |
51 | ||
52 | 2. Type `make' to compile the package. | |
53 | ||
54 | 3. Optionally, type `make check' to run any self-tests that come with | |
55 | the package. | |
56 | ||
57 | 4. Type `make install' to install the programs and any data files and | |
58 | documentation. | |
59 | ||
60 | 5. You can remove the program binaries and object files from the | |
61 | source code directory by typing `make clean'. To also remove the | |
62 | files that `configure' created (so you can compile the package for | |
63 | a different kind of computer), type `make distclean'. There is | |
64 | also a `make maintainer-clean' target, but that is intended mainly | |
65 | for the package's developers. If you use it, you may have to get | |
66 | all sorts of other programs in order to regenerate files that came | |
67 | with the distribution. | |
68 | ||
69 | 6. Often, you can also type `make uninstall' to remove the installed | |
70 | files again. | |
71 | ||
72 | Compilers and Options | |
73 | ===================== | |
74 | ||
75 | Some systems require unusual options for compilation or linking that | |
76 | the `configure' script does not know about. Run `./configure --help' | |
77 | for details on some of the pertinent environment variables. | |
78 | ||
79 | You can give `configure' initial values for configuration parameters | |
80 | by setting variables in the command line or in the environment. Here | |
81 | is an example: | |
82 | ||
83 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix | |
84 | ||
85 | *Note Defining Variables::, for more details. | |
86 | ||
87 | Compiling For Multiple Architectures | |
88 | ==================================== | |
89 | ||
90 | You can compile the package for more than one kind of computer at the | |
91 | same time, by placing the object files for each architecture in their | |
92 | own directory. To do this, you can use GNU `make'. `cd' to the | |
93 | directory where you want the object files and executables to go and run | |
94 | the `configure' script. `configure' automatically checks for the | |
95 | source code in the directory that `configure' is in and in `..'. | |
96 | ||
97 | With a non-GNU `make', it is safer to compile the package for one | |
98 | architecture at a time in the source code directory. After you have | |
99 | installed the package for one architecture, use `make distclean' before | |
100 | reconfiguring for another architecture. | |
101 | ||
102 | On MacOS X 10.5 and later systems, you can create libraries and | |
103 | executables that work on multiple system types--known as "fat" or | |
104 | "universal" binaries--by specifying multiple `-arch' options to the | |
105 | compiler but only a single `-arch' option to the preprocessor. Like | |
106 | this: | |
107 | ||
108 | ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | |
109 | CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ | |
110 | CPP="gcc -E" CXXCPP="g++ -E" | |
111 | ||
112 | This is not guaranteed to produce working output in all cases, you | |
113 | may have to build one architecture at a time and combine the results | |
114 | using the `lipo' tool if you have problems. | |
115 | ||
116 | Installation Names | |
117 | ================== | |
118 | ||
119 | By default, `make install' installs the package's commands under | |
120 | `/usr/local/bin', include files under `/usr/local/include', etc. You | |
121 | can specify an installation prefix other than `/usr/local' by giving | |
122 | `configure' the option `--prefix=PREFIX'. | |
123 | ||
124 | You can specify separate installation prefixes for | |
125 | architecture-specific files and architecture-independent files. If you | |
126 | pass the option `--exec-prefix=PREFIX' to `configure', the package uses | |
127 | PREFIX as the prefix for installing programs and libraries. | |
128 | Documentation and other data files still use the regular prefix. | |
129 | ||
130 | In addition, if you use an unusual directory layout you can give | |
131 | options like `--bindir=DIR' to specify different values for particular | |
132 | kinds of files. Run `configure --help' for a list of the directories | |
133 | you can set and what kinds of files go in them. | |
134 | ||
135 | If the package supports it, you can cause programs to be installed | |
136 | with an extra prefix or suffix on their names by giving `configure' the | |
137 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | |
138 | ||
139 | Optional Features | |
140 | ================= | |
141 | ||
142 | Some packages pay attention to `--enable-FEATURE' options to | |
143 | `configure', where FEATURE indicates an optional part of the package. | |
144 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | |
145 | is something like `gnu-as' or `x' (for the X Window System). The | |
146 | `README' should mention any `--enable-' and `--with-' options that the | |
147 | package recognizes. | |
148 | ||
149 | For packages that use the X Window System, `configure' can usually | |
150 | find the X include and library files automatically, but if it doesn't, | |
151 | you can use the `configure' options `--x-includes=DIR' and | |
152 | `--x-libraries=DIR' to specify their locations. | |
153 | ||
154 | Particular systems | |
155 | ================== | |
156 | ||
157 | On HP-UX, the default C compiler is not ANSI C compatible. If GNU | |
158 | CC is not installed, it is recommended to use the following options in | |
159 | order to use an ANSI C compiler: | |
160 | ||
161 | ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" | |
162 | ||
163 | and if that doesn't work, install pre-built binaries of GCC for HP-UX. | |
164 | ||
165 | On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot | |
166 | parse its `<wchar.h>' header file. The option `-nodtk' can be used as | |
167 | a workaround. If GNU CC is not installed, it is therefore recommended | |
168 | to try | |
169 | ||
170 | ./configure CC="cc" | |
171 | ||
172 | and if that doesn't work, try | |
173 | ||
174 | ./configure CC="cc -nodtk" | |
175 | ||
176 | On Solaris, don't put `/usr/ucb' early in your `PATH'. This | |
177 | directory contains several dysfunctional programs; working variants of | |
178 | these programs are available in `/usr/bin'. So, if you need `/usr/ucb' | |
179 | in your `PATH', put it _after_ `/usr/bin'. | |
180 | ||
181 | On Haiku, software installed for all users goes in `/boot/common', | |
182 | not `/usr/local'. It is recommended to use the following options: | |
183 | ||
184 | ./configure --prefix=/boot/common | |
185 | ||
186 | Specifying the System Type | |
187 | ========================== | |
188 | ||
189 | There may be some features `configure' cannot figure out | |
190 | automatically, but needs to determine by the type of machine the package | |
191 | will run on. Usually, assuming the package is built to be run on the | |
192 | _same_ architectures, `configure' can figure that out, but if it prints | |
193 | a message saying it cannot guess the machine type, give it the | |
194 | `--build=TYPE' option. TYPE can either be a short name for the system | |
195 | type, such as `sun4', or a canonical name which has the form: | |
196 | ||
197 | CPU-COMPANY-SYSTEM | |
198 | ||
199 | where SYSTEM can have one of these forms: | |
200 | ||
201 | OS | |
202 | KERNEL-OS | |
203 | ||
204 | See the file `config.sub' for the possible values of each field. If | |
205 | `config.sub' isn't included in this package, then this package doesn't | |
206 | need to know the machine type. | |
207 | ||
208 | If you are _building_ compiler tools for cross-compiling, you should | |
209 | use the option `--target=TYPE' to select the type of system they will | |
210 | produce code for. | |
211 | ||
212 | If you want to _use_ a cross compiler, that generates code for a | |
213 | platform different from the build platform, you should specify the | |
214 | "host" platform (i.e., that on which the generated programs will | |
215 | eventually be run) with `--host=TYPE'. | |
216 | ||
217 | Sharing Defaults | |
218 | ================ | |
219 | ||
220 | If you want to set default values for `configure' scripts to share, | |
221 | you can create a site shell script called `config.site' that gives | |
222 | default values for variables like `CC', `cache_file', and `prefix'. | |
223 | `configure' looks for `PREFIX/share/config.site' if it exists, then | |
224 | `PREFIX/etc/config.site' if it exists. Or, you can set the | |
225 | `CONFIG_SITE' environment variable to the location of the site script. | |
226 | A warning: not all `configure' scripts look for a site script. | |
227 | ||
228 | Defining Variables | |
229 | ================== | |
230 | ||
231 | Variables not defined in a site shell script can be set in the | |
232 | environment passed to `configure'. However, some packages may run | |
233 | configure again during the build, and the customized values of these | |
234 | variables may be lost. In order to avoid this problem, you should set | |
235 | them in the `configure' command line, using `VAR=value'. For example: | |
236 | ||
237 | ./configure CC=/usr/local2/bin/gcc | |
238 | ||
239 | causes the specified `gcc' to be used as the C compiler (unless it is | |
240 | overridden in the site shell script). | |
241 | ||
242 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to | |
243 | an Autoconf bug. Until the bug is fixed you can use this workaround: | |
244 | ||
245 | CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash | |
246 | ||
247 | `configure' Invocation | |
248 | ====================== | |
249 | ||
250 | `configure' recognizes the following options to control how it | |
251 | operates. | |
252 | ||
253 | `--help' | |
254 | `-h' | |
255 | Print a summary of all of the options to `configure', and exit. | |
256 | ||
257 | `--help=short' | |
258 | `--help=recursive' | |
259 | Print a summary of the options unique to this package's | |
260 | `configure', and exit. The `short' variant lists options used | |
261 | only in the top level, while the `recursive' variant lists options | |
262 | also present in any nested packages. | |
263 | ||
264 | `--version' | |
265 | `-V' | |
266 | Print the version of Autoconf used to generate the `configure' | |
267 | script, and exit. | |
268 | ||
269 | `--cache-file=FILE' | |
270 | Enable the cache: use and save the results of the tests in FILE, | |
271 | traditionally `config.cache'. FILE defaults to `/dev/null' to | |
272 | disable caching. | |
273 | ||
274 | `--config-cache' | |
275 | `-C' | |
276 | Alias for `--cache-file=config.cache'. | |
277 | ||
278 | `--quiet' | |
279 | `--silent' | |
280 | `-q' | |
281 | Do not print messages saying which checks are being made. To | |
282 | suppress all normal output, redirect it to `/dev/null' (any error | |
283 | messages will still be shown). | |
284 | ||
285 | `--srcdir=DIR' | |
286 | Look for the package's source code in directory DIR. Usually | |
287 | `configure' can determine that directory automatically. | |
288 | ||
289 | `--prefix=DIR' | |
290 | Use DIR as the installation prefix. *Note Installation Names:: | |
291 | for more details, including other options available for fine-tuning | |
292 | the installation locations. | |
293 | ||
294 | `--no-create' | |
295 | `-n' | |
296 | Run the configure checks, but stop before creating any output | |
297 | files. | |
298 | ||
299 | `configure' also accepts some other, not widely useful, options. Run | |
300 | `configure --help' for more details. | |
301 |
2 | 2 | colormaps/gray colormaps/green colormaps/hot colormaps/hsv \ |
3 | 3 | colormaps/jet colormaps/lines colormaps/pink colormaps/prism \ |
4 | 4 | colormaps/spring colormaps/summer colormaps/vga colormaps/winter \ |
5 | colormaps/yarg colormaps/yellow colormaps/dkbluered | |
5 | colormaps/yarg colormaps/yellow colormaps/dkbluered \ | |
6 | colormaps/viridis colormaps/inferno colormaps/RdBu colormaps/BrBG | |
6 | 7 | |
7 | EXTRA_MANS = h5topng.1.in h5tov5d.1 h5fromh4.1 h5math.1 | |
8 | EXTRA_MANS = doc/man/h5topng.1.in doc/man/h5tov5d.1 doc/man/h5fromh4.1 doc/man/h5math.1 | |
8 | 9 | EXTRA_DIST = h5read.cc copyright.h $(COLORMAPS) $(EXTRA_MANS) |
9 | 10 | |
10 | noinst_PROGRAMS = h5fromitxt # quick hack, not really supported | |
11 | noinst_PROGRAMS = h5cyl2cart # not documented/supported yet | |
11 | 12 | bin_PROGRAMS = h5totxt h5fromtxt h5tovtk @MORE_H5UTILS@ |
12 | 13 | EXTRA_PROGRAMS = h5topng h5tov5d h5fromh4 h4fromh5 h5math |
13 | 14 | |
14 | dist_man_MANS = h5totxt.1 h5fromtxt.1 h5tovtk.1 @MORE_H5UTILS_MANS@ | |
15 | dist_man_MANS = doc/man/h5totxt.1 doc/man/h5fromtxt.1 doc/man/h5tovtk.1 @MORE_H5UTILS_MANS@ | |
15 | 16 | nodist_man_MANS = @H5TOPNG_MAN@ |
16 | 17 | |
17 | 18 | COMMON_SRC = arrayh5.c arrayh5.h h5utils.c h5utils.h |
18 | 19 | |
19 | 20 | h5totxt_SOURCES = h5totxt.c $(COMMON_SRC) |
20 | 21 | h5fromtxt_SOURCES = h5fromtxt.c $(COMMON_SRC) |
21 | h5fromitxt_SOURCES = h5fromitxt.c $(COMMON_SRC) | |
22 | 22 | h5tovtk_SOURCES = h5tovtk.c $(COMMON_SRC) |
23 | 23 | |
24 | 24 | h5topng_SOURCES = h5topng.c writepng.c writepng.h $(COMMON_SRC) |
37 | 37 | h5math_SOURCES = h5math.c $(COMMON_SRC) |
38 | 38 | h5math_LDADD = -lmatheval |
39 | 39 | |
40 | h5cyl2cart_SOURCES = h5cyl2cart.c $(COMMON_SRC) | |
41 | ||
40 | 42 | octdir = @OCT_INSTALL_DIR@ |
41 | 43 | oct_DATA = @H5READ@ |
42 | 44 | |
47 | 49 | rm -f h5read.oct |
48 | 50 | |
49 | 51 | nobase_dist_pkgdata_DATA = $(COLORMAPS) |
50 | ||
51 | # Somewhat hackish. The "right" way to do this is by a dist-hook target, | |
52 | # but then darcs check will fail because it doesn't run in the darcs | |
53 | # repository. | |
54 | darcs-dist: distdir | |
55 | darcs changes --summary > $(distdir)/ChangeLog | |
56 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
57 | $(am__remove_distdir) | |
58 |
0 | # Makefile.in generated by automake 1.11 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
5 | # Inc. | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
16 | 15 | |
17 | 16 | |
18 | 17 | VPATH = @srcdir@ |
18 | am__is_gnu_make = { \ | |
19 | if test -z '$(MAKELEVEL)'; then \ | |
20 | false; \ | |
21 | elif test -n '$(MAKE_HOST)'; then \ | |
22 | true; \ | |
23 | elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ | |
24 | true; \ | |
25 | else \ | |
26 | false; \ | |
27 | fi; \ | |
28 | } | |
29 | am__make_running_with_option = \ | |
30 | case $${target_option-} in \ | |
31 | ?) ;; \ | |
32 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
33 | "target option '$${target_option-}' specified" >&2; \ | |
34 | exit 1;; \ | |
35 | esac; \ | |
36 | has_opt=no; \ | |
37 | sane_makeflags=$$MAKEFLAGS; \ | |
38 | if $(am__is_gnu_make); then \ | |
39 | sane_makeflags=$$MFLAGS; \ | |
40 | else \ | |
41 | case $$MAKEFLAGS in \ | |
42 | *\\[\ \ ]*) \ | |
43 | bs=\\; \ | |
44 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
45 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
46 | esac; \ | |
47 | fi; \ | |
48 | skip_next=no; \ | |
49 | strip_trailopt () \ | |
50 | { \ | |
51 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
52 | }; \ | |
53 | for flg in $$sane_makeflags; do \ | |
54 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
55 | case $$flg in \ | |
56 | *=*|--*) continue;; \ | |
57 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
58 | -*I?*) strip_trailopt 'I';; \ | |
59 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
60 | -*O?*) strip_trailopt 'O';; \ | |
61 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
62 | -*l?*) strip_trailopt 'l';; \ | |
63 | -[dEDm]) skip_next=yes;; \ | |
64 | -[JT]) skip_next=yes;; \ | |
65 | esac; \ | |
66 | case $$flg in \ | |
67 | *$$target_option*) has_opt=yes; break;; \ | |
68 | esac; \ | |
69 | done; \ | |
70 | test $$has_opt = yes | |
71 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
72 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
19 | 73 | pkgdatadir = $(datadir)/@PACKAGE@ |
20 | 74 | pkgincludedir = $(includedir)/@PACKAGE@ |
21 | 75 | pkglibdir = $(libdir)/@PACKAGE@ |
32 | 86 | NORMAL_UNINSTALL = : |
33 | 87 | PRE_UNINSTALL = : |
34 | 88 | POST_UNINSTALL = : |
35 | noinst_PROGRAMS = h5fromitxt$(EXEEXT) | |
89 | noinst_PROGRAMS = h5cyl2cart$(EXEEXT) | |
36 | 90 | bin_PROGRAMS = h5totxt$(EXEEXT) h5fromtxt$(EXEEXT) h5tovtk$(EXEEXT) \ |
37 | 91 | @MORE_H5UTILS@ $(am__empty) |
38 | 92 | EXTRA_PROGRAMS = h5topng$(EXEEXT) h5tov5d$(EXEEXT) h5fromh4$(EXEEXT) \ |
39 | 93 | h4fromh5$(EXEEXT) h5math$(EXEEXT) |
40 | 94 | subdir = . |
41 | DIST_COMMON = README $(am__configure_deps) $(dist_man_MANS) \ | |
42 | $(nobase_dist_pkgdata_DATA) $(srcdir)/Makefile.am \ | |
43 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
44 | $(srcdir)/h5topng.1.in $(top_srcdir)/configure AUTHORS COPYING \ | |
45 | ChangeLog INSTALL NEWS compile depcomp install-sh missing | |
46 | 95 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
47 | 96 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
48 | 97 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
49 | 98 | $(ACLOCAL_M4) |
99 | DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ | |
100 | $(am__configure_deps) $(nobase_dist_pkgdata_DATA) \ | |
101 | $(am__DIST_COMMON) | |
50 | 102 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
51 | 103 | configure.lineno config.status.lineno |
52 | 104 | mkinstalldirs = $(install_sh) -d |
53 | 105 | CONFIG_HEADER = config.h |
54 | CONFIG_CLEAN_FILES = h5topng.1 | |
106 | CONFIG_CLEAN_FILES = doc/man/h5topng.1 | |
55 | 107 | CONFIG_CLEAN_VPATH_FILES = |
56 | 108 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \ |
57 | 109 | "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(octdir)" |
61 | 113 | $(am__objects_1) |
62 | 114 | h4fromh5_OBJECTS = $(am_h4fromh5_OBJECTS) |
63 | 115 | h4fromh5_DEPENDENCIES = |
116 | am_h5cyl2cart_OBJECTS = h5cyl2cart.$(OBJEXT) $(am__objects_1) | |
117 | h5cyl2cart_OBJECTS = $(am_h5cyl2cart_OBJECTS) | |
118 | h5cyl2cart_LDADD = $(LDADD) | |
64 | 119 | am_h5fromh4_OBJECTS = h5fromh4.$(OBJEXT) arrayh4.$(OBJEXT) \ |
65 | 120 | $(am__objects_1) |
66 | 121 | h5fromh4_OBJECTS = $(am_h5fromh4_OBJECTS) |
67 | 122 | h5fromh4_DEPENDENCIES = |
68 | am_h5fromitxt_OBJECTS = h5fromitxt.$(OBJEXT) $(am__objects_1) | |
69 | h5fromitxt_OBJECTS = $(am_h5fromitxt_OBJECTS) | |
70 | h5fromitxt_LDADD = $(LDADD) | |
71 | 123 | am_h5fromtxt_OBJECTS = h5fromtxt.$(OBJEXT) $(am__objects_1) |
72 | 124 | h5fromtxt_OBJECTS = $(am_h5fromtxt_OBJECTS) |
73 | 125 | h5fromtxt_LDADD = $(LDADD) |
88 | 140 | am_h5tovtk_OBJECTS = h5tovtk.$(OBJEXT) $(am__objects_1) |
89 | 141 | h5tovtk_OBJECTS = $(am_h5tovtk_OBJECTS) |
90 | 142 | h5tovtk_LDADD = $(LDADD) |
143 | AM_V_P = $(am__v_P_@AM_V@) | |
144 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
145 | am__v_P_0 = false | |
146 | am__v_P_1 = : | |
147 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
148 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
149 | am__v_GEN_0 = @echo " GEN " $@; | |
150 | am__v_GEN_1 = | |
151 | AM_V_at = $(am__v_at_@AM_V@) | |
152 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
153 | am__v_at_0 = @ | |
154 | am__v_at_1 = | |
91 | 155 | DEFAULT_INCLUDES = -I.@am__isrc@ |
92 | 156 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
93 | 157 | am__depfiles_maybe = depfiles |
94 | 158 | am__mv = mv -f |
159 | AM_V_lt = $(am__v_lt_@AM_V@) | |
160 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | |
161 | am__v_lt_0 = --silent | |
162 | am__v_lt_1 = | |
95 | 163 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
96 | 164 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
165 | AM_V_CC = $(am__v_CC_@AM_V@) | |
166 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | |
167 | am__v_CC_0 = @echo " CC " $@; | |
168 | am__v_CC_1 = | |
97 | 169 | CCLD = $(CC) |
98 | 170 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
99 | SOURCES = $(h4fromh5_SOURCES) $(h5fromh4_SOURCES) \ | |
100 | $(h5fromitxt_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \ | |
171 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | |
172 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | |
173 | am__v_CCLD_0 = @echo " CCLD " $@; | |
174 | am__v_CCLD_1 = | |
175 | SOURCES = $(h4fromh5_SOURCES) $(h5cyl2cart_SOURCES) \ | |
176 | $(h5fromh4_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \ | |
101 | 177 | $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) \ |
102 | 178 | $(h5tovtk_SOURCES) |
103 | DIST_SOURCES = $(h4fromh5_SOURCES) $(h5fromh4_SOURCES) \ | |
104 | $(h5fromitxt_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \ | |
179 | DIST_SOURCES = $(h4fromh5_SOURCES) $(h5cyl2cart_SOURCES) \ | |
180 | $(h5fromh4_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \ | |
105 | 181 | $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) \ |
106 | 182 | $(h5tovtk_SOURCES) |
183 | am__can_run_installinfo = \ | |
184 | case $$AM_UPDATE_INFO_DIR in \ | |
185 | n|no|NO) false;; \ | |
186 | *) (install-info --version) >/dev/null 2>&1;; \ | |
187 | esac | |
107 | 188 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; |
108 | 189 | am__vpath_adj = case $$p in \ |
109 | 190 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ |
125 | 206 | am__base_list = \ |
126 | 207 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ |
127 | 208 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' |
209 | am__uninstall_files_from_dir = { \ | |
210 | test -z "$$files" \ | |
211 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
212 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
213 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
214 | } | |
128 | 215 | man1dir = $(mandir)/man1 |
129 | 216 | NROFF = nroff |
130 | 217 | MANS = $(dist_man_MANS) $(nodist_man_MANS) |
131 | 218 | DATA = $(nobase_dist_pkgdata_DATA) $(oct_DATA) |
219 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | |
220 | $(LISP)config.h.in | |
221 | # Read a list of newline-separated strings from the standard input, | |
222 | # and print each of them once, without duplicates. Input order is | |
223 | # *not* preserved. | |
224 | am__uniquify_input = $(AWK) '\ | |
225 | BEGIN { nonempty = 0; } \ | |
226 | { items[$$0] = 1; nonempty = 1; } \ | |
227 | END { if (nonempty) { for (i in items) print i; }; } \ | |
228 | ' | |
229 | # Make sure the list of sources is unique. This is necessary because, | |
230 | # e.g., the same source file might be shared among _SOURCES variables | |
231 | # for different programs/libraries. | |
232 | am__define_uniq_tagged_files = \ | |
233 | list='$(am__tagged_files)'; \ | |
234 | unique=`for i in $$list; do \ | |
235 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
236 | done | $(am__uniquify_input)` | |
132 | 237 | ETAGS = etags |
133 | 238 | CTAGS = ctags |
239 | CSCOPE = cscope | |
240 | AM_RECURSIVE_TARGETS = cscope | |
241 | am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in \ | |
242 | $(srcdir)/config.h.in $(top_srcdir)/doc/man/h5topng.1.in \ | |
243 | AUTHORS COPYING ChangeLog compile depcomp install-sh missing | |
134 | 244 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
135 | 245 | distdir = $(PACKAGE)-$(VERSION) |
136 | 246 | top_distdir = $(distdir) |
137 | 247 | am__remove_distdir = \ |
138 | { test ! -d "$(distdir)" \ | |
139 | || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
140 | && rm -fr "$(distdir)"; }; } | |
248 | if test -d "$(distdir)"; then \ | |
249 | find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
250 | && rm -rf "$(distdir)" \ | |
251 | || { sleep 5 && rm -rf "$(distdir)"; }; \ | |
252 | else :; fi | |
253 | am__post_remove_distdir = $(am__remove_distdir) | |
141 | 254 | DIST_ARCHIVES = $(distdir).tar.gz |
142 | 255 | GZIP_ENV = --best |
256 | DIST_TARGETS = dist-gzip | |
143 | 257 | distuninstallcheck_listfiles = find . -type f -print |
258 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
259 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
144 | 260 | distcleancheck_listfiles = find . -type f -print |
145 | 261 | ACLOCAL = @ACLOCAL@ |
146 | 262 | AMTAR = @AMTAR@ |
263 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
147 | 264 | AUTOCONF = @AUTOCONF@ |
148 | 265 | AUTOHEADER = @AUTOHEADER@ |
149 | 266 | AUTOMAKE = @AUTOMAKE@ |
191 | 308 | PACKAGE_NAME = @PACKAGE_NAME@ |
192 | 309 | PACKAGE_STRING = @PACKAGE_STRING@ |
193 | 310 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
311 | PACKAGE_URL = @PACKAGE_URL@ | |
194 | 312 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
195 | 313 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
196 | 314 | PNG_LIBS = @PNG_LIBS@ |
248 | 366 | colormaps/gray colormaps/green colormaps/hot colormaps/hsv \ |
249 | 367 | colormaps/jet colormaps/lines colormaps/pink colormaps/prism \ |
250 | 368 | colormaps/spring colormaps/summer colormaps/vga colormaps/winter \ |
251 | colormaps/yarg colormaps/yellow colormaps/dkbluered | |
252 | ||
253 | EXTRA_MANS = h5topng.1.in h5tov5d.1 h5fromh4.1 h5math.1 | |
369 | colormaps/yarg colormaps/yellow colormaps/dkbluered \ | |
370 | colormaps/viridis colormaps/inferno colormaps/RdBu colormaps/BrBG | |
371 | ||
372 | EXTRA_MANS = doc/man/h5topng.1.in doc/man/h5tov5d.1 doc/man/h5fromh4.1 doc/man/h5math.1 | |
254 | 373 | EXTRA_DIST = h5read.cc copyright.h $(COLORMAPS) $(EXTRA_MANS) |
255 | dist_man_MANS = h5totxt.1 h5fromtxt.1 h5tovtk.1 @MORE_H5UTILS_MANS@ | |
374 | dist_man_MANS = doc/man/h5totxt.1 doc/man/h5fromtxt.1 doc/man/h5tovtk.1 @MORE_H5UTILS_MANS@ | |
256 | 375 | nodist_man_MANS = @H5TOPNG_MAN@ |
257 | 376 | COMMON_SRC = arrayh5.c arrayh5.h h5utils.c h5utils.h |
258 | 377 | h5totxt_SOURCES = h5totxt.c $(COMMON_SRC) |
259 | 378 | h5fromtxt_SOURCES = h5fromtxt.c $(COMMON_SRC) |
260 | h5fromitxt_SOURCES = h5fromitxt.c $(COMMON_SRC) | |
261 | 379 | h5tovtk_SOURCES = h5tovtk.c $(COMMON_SRC) |
262 | 380 | h5topng_SOURCES = h5topng.c writepng.c writepng.h $(COMMON_SRC) |
263 | 381 | h5topng_LDADD = @PNG_LIBS@ |
270 | 388 | h4fromh5_LDADD = @H4_LIBS@ |
271 | 389 | h5math_SOURCES = h5math.c $(COMMON_SRC) |
272 | 390 | h5math_LDADD = -lmatheval |
391 | h5cyl2cart_SOURCES = h5cyl2cart.c $(COMMON_SRC) | |
273 | 392 | octdir = @OCT_INSTALL_DIR@ |
274 | 393 | oct_DATA = @H5READ@ |
275 | 394 | nobase_dist_pkgdata_DATA = $(COLORMAPS) |
278 | 397 | |
279 | 398 | .SUFFIXES: |
280 | 399 | .SUFFIXES: .c .o .obj |
281 | am--refresh: | |
400 | am--refresh: Makefile | |
282 | 401 | @: |
283 | 402 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) |
284 | 403 | @for dep in $?; do \ |
285 | 404 | case '$(am__configure_deps)' in \ |
286 | 405 | *$$dep*) \ |
287 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
288 | $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
406 | echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ | |
407 | $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ | |
289 | 408 | && exit 0; \ |
290 | 409 | exit 1;; \ |
291 | 410 | esac; \ |
292 | 411 | done; \ |
293 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
412 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ | |
294 | 413 | $(am__cd) $(top_srcdir) && \ |
295 | $(AUTOMAKE) --gnu Makefile | |
296 | .PRECIOUS: Makefile | |
414 | $(AUTOMAKE) --foreign Makefile | |
297 | 415 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
298 | 416 | @case '$?' in \ |
299 | 417 | *config.status*) \ |
314 | 432 | $(am__aclocal_m4_deps): |
315 | 433 | |
316 | 434 | config.h: stamp-h1 |
317 | @if test ! -f $@; then \ | |
318 | rm -f stamp-h1; \ | |
319 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | |
320 | else :; fi | |
435 | @test -f $@ || rm -f stamp-h1 | |
436 | @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 | |
321 | 437 | |
322 | 438 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
323 | 439 | @rm -f stamp-h1 |
329 | 445 | |
330 | 446 | distclean-hdr: |
331 | 447 | -rm -f config.h stamp-h1 |
332 | h5topng.1: $(top_builddir)/config.status $(srcdir)/h5topng.1.in | |
448 | doc/man/h5topng.1: $(top_builddir)/config.status $(top_srcdir)/doc/man/h5topng.1.in | |
333 | 449 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
334 | 450 | install-binPROGRAMS: $(bin_PROGRAMS) |
335 | 451 | @$(NORMAL_INSTALL) |
336 | test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
337 | 452 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ |
453 | if test -n "$$list"; then \ | |
454 | echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ | |
455 | $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ | |
456 | fi; \ | |
338 | 457 | for p in $$list; do echo "$$p $$p"; done | \ |
339 | 458 | sed 's/$(EXEEXT)$$//' | \ |
340 | while read p p1; do if test -f $$p; \ | |
341 | then echo "$$p"; echo "$$p"; else :; fi; \ | |
459 | while read p p1; do if test -f $$p \ | |
460 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
342 | 461 | done | \ |
343 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
462 | sed -e 'p;s,.*/,,;n;h' \ | |
463 | -e 's|.*|.|' \ | |
344 | 464 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ |
345 | 465 | sed 'N;N;N;s,\n, ,g' | \ |
346 | 466 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ |
361 | 481 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ |
362 | 482 | files=`for p in $$list; do echo "$$p"; done | \ |
363 | 483 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
364 | -e 's/$$/$(EXEEXT)/' `; \ | |
484 | -e 's/$$/$(EXEEXT)/' \ | |
485 | `; \ | |
365 | 486 | test -n "$$list" || exit 0; \ |
366 | 487 | echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ |
367 | 488 | cd "$(DESTDIR)$(bindir)" && rm -f $$files |
371 | 492 | |
372 | 493 | clean-noinstPROGRAMS: |
373 | 494 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) |
374 | h4fromh5$(EXEEXT): $(h4fromh5_OBJECTS) $(h4fromh5_DEPENDENCIES) | |
495 | ||
496 | h4fromh5$(EXEEXT): $(h4fromh5_OBJECTS) $(h4fromh5_DEPENDENCIES) $(EXTRA_h4fromh5_DEPENDENCIES) | |
375 | 497 | @rm -f h4fromh5$(EXEEXT) |
376 | $(LINK) $(h4fromh5_OBJECTS) $(h4fromh5_LDADD) $(LIBS) | |
377 | h5fromh4$(EXEEXT): $(h5fromh4_OBJECTS) $(h5fromh4_DEPENDENCIES) | |
498 | $(AM_V_CCLD)$(LINK) $(h4fromh5_OBJECTS) $(h4fromh5_LDADD) $(LIBS) | |
499 | ||
500 | h5cyl2cart$(EXEEXT): $(h5cyl2cart_OBJECTS) $(h5cyl2cart_DEPENDENCIES) $(EXTRA_h5cyl2cart_DEPENDENCIES) | |
501 | @rm -f h5cyl2cart$(EXEEXT) | |
502 | $(AM_V_CCLD)$(LINK) $(h5cyl2cart_OBJECTS) $(h5cyl2cart_LDADD) $(LIBS) | |
503 | ||
504 | h5fromh4$(EXEEXT): $(h5fromh4_OBJECTS) $(h5fromh4_DEPENDENCIES) $(EXTRA_h5fromh4_DEPENDENCIES) | |
378 | 505 | @rm -f h5fromh4$(EXEEXT) |
379 | $(LINK) $(h5fromh4_OBJECTS) $(h5fromh4_LDADD) $(LIBS) | |
380 | h5fromitxt$(EXEEXT): $(h5fromitxt_OBJECTS) $(h5fromitxt_DEPENDENCIES) | |
381 | @rm -f h5fromitxt$(EXEEXT) | |
382 | $(LINK) $(h5fromitxt_OBJECTS) $(h5fromitxt_LDADD) $(LIBS) | |
383 | h5fromtxt$(EXEEXT): $(h5fromtxt_OBJECTS) $(h5fromtxt_DEPENDENCIES) | |
506 | $(AM_V_CCLD)$(LINK) $(h5fromh4_OBJECTS) $(h5fromh4_LDADD) $(LIBS) | |
507 | ||
508 | h5fromtxt$(EXEEXT): $(h5fromtxt_OBJECTS) $(h5fromtxt_DEPENDENCIES) $(EXTRA_h5fromtxt_DEPENDENCIES) | |
384 | 509 | @rm -f h5fromtxt$(EXEEXT) |
385 | $(LINK) $(h5fromtxt_OBJECTS) $(h5fromtxt_LDADD) $(LIBS) | |
386 | h5math$(EXEEXT): $(h5math_OBJECTS) $(h5math_DEPENDENCIES) | |
510 | $(AM_V_CCLD)$(LINK) $(h5fromtxt_OBJECTS) $(h5fromtxt_LDADD) $(LIBS) | |
511 | ||
512 | h5math$(EXEEXT): $(h5math_OBJECTS) $(h5math_DEPENDENCIES) $(EXTRA_h5math_DEPENDENCIES) | |
387 | 513 | @rm -f h5math$(EXEEXT) |
388 | $(LINK) $(h5math_OBJECTS) $(h5math_LDADD) $(LIBS) | |
389 | h5topng$(EXEEXT): $(h5topng_OBJECTS) $(h5topng_DEPENDENCIES) | |
514 | $(AM_V_CCLD)$(LINK) $(h5math_OBJECTS) $(h5math_LDADD) $(LIBS) | |
515 | ||
516 | h5topng$(EXEEXT): $(h5topng_OBJECTS) $(h5topng_DEPENDENCIES) $(EXTRA_h5topng_DEPENDENCIES) | |
390 | 517 | @rm -f h5topng$(EXEEXT) |
391 | $(LINK) $(h5topng_OBJECTS) $(h5topng_LDADD) $(LIBS) | |
392 | h5totxt$(EXEEXT): $(h5totxt_OBJECTS) $(h5totxt_DEPENDENCIES) | |
518 | $(AM_V_CCLD)$(LINK) $(h5topng_OBJECTS) $(h5topng_LDADD) $(LIBS) | |
519 | ||
520 | h5totxt$(EXEEXT): $(h5totxt_OBJECTS) $(h5totxt_DEPENDENCIES) $(EXTRA_h5totxt_DEPENDENCIES) | |
393 | 521 | @rm -f h5totxt$(EXEEXT) |
394 | $(LINK) $(h5totxt_OBJECTS) $(h5totxt_LDADD) $(LIBS) | |
395 | h5tov5d$(EXEEXT): $(h5tov5d_OBJECTS) $(h5tov5d_DEPENDENCIES) | |
522 | $(AM_V_CCLD)$(LINK) $(h5totxt_OBJECTS) $(h5totxt_LDADD) $(LIBS) | |
523 | ||
524 | h5tov5d$(EXEEXT): $(h5tov5d_OBJECTS) $(h5tov5d_DEPENDENCIES) $(EXTRA_h5tov5d_DEPENDENCIES) | |
396 | 525 | @rm -f h5tov5d$(EXEEXT) |
397 | $(LINK) $(h5tov5d_OBJECTS) $(h5tov5d_LDADD) $(LIBS) | |
398 | h5tovtk$(EXEEXT): $(h5tovtk_OBJECTS) $(h5tovtk_DEPENDENCIES) | |
526 | $(AM_V_CCLD)$(LINK) $(h5tov5d_OBJECTS) $(h5tov5d_LDADD) $(LIBS) | |
527 | ||
528 | h5tovtk$(EXEEXT): $(h5tovtk_OBJECTS) $(h5tovtk_DEPENDENCIES) $(EXTRA_h5tovtk_DEPENDENCIES) | |
399 | 529 | @rm -f h5tovtk$(EXEEXT) |
400 | $(LINK) $(h5tovtk_OBJECTS) $(h5tovtk_LDADD) $(LIBS) | |
530 | $(AM_V_CCLD)$(LINK) $(h5tovtk_OBJECTS) $(h5tovtk_LDADD) $(LIBS) | |
401 | 531 | |
402 | 532 | mostlyclean-compile: |
403 | 533 | -rm -f *.$(OBJEXT) |
408 | 538 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrayh4.Po@am__quote@ |
409 | 539 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrayh5.Po@am__quote@ |
410 | 540 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h4fromh5.Po@am__quote@ |
541 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5cyl2cart.Po@am__quote@ | |
411 | 542 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromh4.Po@am__quote@ |
412 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromitxt.Po@am__quote@ | |
413 | 543 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromtxt.Po@am__quote@ |
414 | 544 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5math.Po@am__quote@ |
415 | 545 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5topng.Po@am__quote@ |
422 | 552 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/writepng.Po@am__quote@ |
423 | 553 | |
424 | 554 | .c.o: |
425 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
426 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
427 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
555 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
556 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
557 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
428 | 558 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
429 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
559 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | |
430 | 560 | |
431 | 561 | .c.obj: |
432 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
433 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
434 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
562 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
563 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
564 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
435 | 565 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
436 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
566 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | |
437 | 567 | |
438 | 568 | h5tov5d-h5tov5d.o: h5tov5d.c |
439 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5tov5d.o -MD -MP -MF $(DEPDIR)/h5tov5d-h5tov5d.Tpo -c -o h5tov5d-h5tov5d.o `test -f 'h5tov5d.c' || echo '$(srcdir)/'`h5tov5d.c | |
440 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/h5tov5d-h5tov5d.Tpo $(DEPDIR)/h5tov5d-h5tov5d.Po | |
441 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5tov5d.c' object='h5tov5d-h5tov5d.o' libtool=no @AMDEPBACKSLASH@ | |
569 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5tov5d.o -MD -MP -MF $(DEPDIR)/h5tov5d-h5tov5d.Tpo -c -o h5tov5d-h5tov5d.o `test -f 'h5tov5d.c' || echo '$(srcdir)/'`h5tov5d.c | |
570 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5tov5d.Tpo $(DEPDIR)/h5tov5d-h5tov5d.Po | |
571 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5tov5d.c' object='h5tov5d-h5tov5d.o' libtool=no @AMDEPBACKSLASH@ | |
442 | 572 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
443 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5tov5d.o `test -f 'h5tov5d.c' || echo '$(srcdir)/'`h5tov5d.c | |
573 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5tov5d.o `test -f 'h5tov5d.c' || echo '$(srcdir)/'`h5tov5d.c | |
444 | 574 | |
445 | 575 | h5tov5d-h5tov5d.obj: h5tov5d.c |
446 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5tov5d.obj -MD -MP -MF $(DEPDIR)/h5tov5d-h5tov5d.Tpo -c -o h5tov5d-h5tov5d.obj `if test -f 'h5tov5d.c'; then $(CYGPATH_W) 'h5tov5d.c'; else $(CYGPATH_W) '$(srcdir)/h5tov5d.c'; fi` | |
447 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/h5tov5d-h5tov5d.Tpo $(DEPDIR)/h5tov5d-h5tov5d.Po | |
448 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5tov5d.c' object='h5tov5d-h5tov5d.obj' libtool=no @AMDEPBACKSLASH@ | |
576 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5tov5d.obj -MD -MP -MF $(DEPDIR)/h5tov5d-h5tov5d.Tpo -c -o h5tov5d-h5tov5d.obj `if test -f 'h5tov5d.c'; then $(CYGPATH_W) 'h5tov5d.c'; else $(CYGPATH_W) '$(srcdir)/h5tov5d.c'; fi` | |
577 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5tov5d.Tpo $(DEPDIR)/h5tov5d-h5tov5d.Po | |
578 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5tov5d.c' object='h5tov5d-h5tov5d.obj' libtool=no @AMDEPBACKSLASH@ | |
449 | 579 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
450 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5tov5d.obj `if test -f 'h5tov5d.c'; then $(CYGPATH_W) 'h5tov5d.c'; else $(CYGPATH_W) '$(srcdir)/h5tov5d.c'; fi` | |
580 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5tov5d.obj `if test -f 'h5tov5d.c'; then $(CYGPATH_W) 'h5tov5d.c'; else $(CYGPATH_W) '$(srcdir)/h5tov5d.c'; fi` | |
451 | 581 | |
452 | 582 | h5tov5d-arrayh5.o: arrayh5.c |
453 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-arrayh5.o -MD -MP -MF $(DEPDIR)/h5tov5d-arrayh5.Tpo -c -o h5tov5d-arrayh5.o `test -f 'arrayh5.c' || echo '$(srcdir)/'`arrayh5.c | |
454 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/h5tov5d-arrayh5.Tpo $(DEPDIR)/h5tov5d-arrayh5.Po | |
455 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arrayh5.c' object='h5tov5d-arrayh5.o' libtool=no @AMDEPBACKSLASH@ | |
583 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-arrayh5.o -MD -MP -MF $(DEPDIR)/h5tov5d-arrayh5.Tpo -c -o h5tov5d-arrayh5.o `test -f 'arrayh5.c' || echo '$(srcdir)/'`arrayh5.c | |
584 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-arrayh5.Tpo $(DEPDIR)/h5tov5d-arrayh5.Po | |
585 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arrayh5.c' object='h5tov5d-arrayh5.o' libtool=no @AMDEPBACKSLASH@ | |
456 | 586 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
457 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-arrayh5.o `test -f 'arrayh5.c' || echo '$(srcdir)/'`arrayh5.c | |
587 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-arrayh5.o `test -f 'arrayh5.c' || echo '$(srcdir)/'`arrayh5.c | |
458 | 588 | |
459 | 589 | h5tov5d-arrayh5.obj: arrayh5.c |
460 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-arrayh5.obj -MD -MP -MF $(DEPDIR)/h5tov5d-arrayh5.Tpo -c -o h5tov5d-arrayh5.obj `if test -f 'arrayh5.c'; then $(CYGPATH_W) 'arrayh5.c'; else $(CYGPATH_W) '$(srcdir)/arrayh5.c'; fi` | |
461 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/h5tov5d-arrayh5.Tpo $(DEPDIR)/h5tov5d-arrayh5.Po | |
462 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arrayh5.c' object='h5tov5d-arrayh5.obj' libtool=no @AMDEPBACKSLASH@ | |
590 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-arrayh5.obj -MD -MP -MF $(DEPDIR)/h5tov5d-arrayh5.Tpo -c -o h5tov5d-arrayh5.obj `if test -f 'arrayh5.c'; then $(CYGPATH_W) 'arrayh5.c'; else $(CYGPATH_W) '$(srcdir)/arrayh5.c'; fi` | |
591 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-arrayh5.Tpo $(DEPDIR)/h5tov5d-arrayh5.Po | |
592 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arrayh5.c' object='h5tov5d-arrayh5.obj' libtool=no @AMDEPBACKSLASH@ | |
463 | 593 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
464 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-arrayh5.obj `if test -f 'arrayh5.c'; then $(CYGPATH_W) 'arrayh5.c'; else $(CYGPATH_W) '$(srcdir)/arrayh5.c'; fi` | |
594 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-arrayh5.obj `if test -f 'arrayh5.c'; then $(CYGPATH_W) 'arrayh5.c'; else $(CYGPATH_W) '$(srcdir)/arrayh5.c'; fi` | |
465 | 595 | |
466 | 596 | h5tov5d-h5utils.o: h5utils.c |
467 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5utils.o -MD -MP -MF $(DEPDIR)/h5tov5d-h5utils.Tpo -c -o h5tov5d-h5utils.o `test -f 'h5utils.c' || echo '$(srcdir)/'`h5utils.c | |
468 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/h5tov5d-h5utils.Tpo $(DEPDIR)/h5tov5d-h5utils.Po | |
469 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5utils.c' object='h5tov5d-h5utils.o' libtool=no @AMDEPBACKSLASH@ | |
597 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5utils.o -MD -MP -MF $(DEPDIR)/h5tov5d-h5utils.Tpo -c -o h5tov5d-h5utils.o `test -f 'h5utils.c' || echo '$(srcdir)/'`h5utils.c | |
598 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5utils.Tpo $(DEPDIR)/h5tov5d-h5utils.Po | |
599 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5utils.c' object='h5tov5d-h5utils.o' libtool=no @AMDEPBACKSLASH@ | |
470 | 600 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
471 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5utils.o `test -f 'h5utils.c' || echo '$(srcdir)/'`h5utils.c | |
601 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5utils.o `test -f 'h5utils.c' || echo '$(srcdir)/'`h5utils.c | |
472 | 602 | |
473 | 603 | h5tov5d-h5utils.obj: h5utils.c |
474 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5utils.obj -MD -MP -MF $(DEPDIR)/h5tov5d-h5utils.Tpo -c -o h5tov5d-h5utils.obj `if test -f 'h5utils.c'; then $(CYGPATH_W) 'h5utils.c'; else $(CYGPATH_W) '$(srcdir)/h5utils.c'; fi` | |
475 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/h5tov5d-h5utils.Tpo $(DEPDIR)/h5tov5d-h5utils.Po | |
476 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5utils.c' object='h5tov5d-h5utils.obj' libtool=no @AMDEPBACKSLASH@ | |
604 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5utils.obj -MD -MP -MF $(DEPDIR)/h5tov5d-h5utils.Tpo -c -o h5tov5d-h5utils.obj `if test -f 'h5utils.c'; then $(CYGPATH_W) 'h5utils.c'; else $(CYGPATH_W) '$(srcdir)/h5utils.c'; fi` | |
605 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5utils.Tpo $(DEPDIR)/h5tov5d-h5utils.Po | |
606 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5utils.c' object='h5tov5d-h5utils.obj' libtool=no @AMDEPBACKSLASH@ | |
477 | 607 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
478 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5utils.obj `if test -f 'h5utils.c'; then $(CYGPATH_W) 'h5utils.c'; else $(CYGPATH_W) '$(srcdir)/h5utils.c'; fi` | |
608 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5utils.obj `if test -f 'h5utils.c'; then $(CYGPATH_W) 'h5utils.c'; else $(CYGPATH_W) '$(srcdir)/h5utils.c'; fi` | |
479 | 609 | install-man1: $(dist_man_MANS) $(nodist_man_MANS) |
480 | 610 | @$(NORMAL_INSTALL) |
481 | test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" | |
482 | @list=''; test -n "$(man1dir)" || exit 0; \ | |
483 | { for i in $$list; do echo "$$i"; done; \ | |
484 | l2='$(dist_man_MANS) $(nodist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ | |
485 | sed -n '/\.1[a-z]*$$/p'; \ | |
611 | @list1=''; \ | |
612 | list2='$(dist_man_MANS) $(nodist_man_MANS)'; \ | |
613 | test -n "$(man1dir)" \ | |
614 | && test -n "`echo $$list1$$list2`" \ | |
615 | || exit 0; \ | |
616 | echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ | |
617 | $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ | |
618 | { for i in $$list1; do echo "$$i"; done; \ | |
619 | if test -n "$$list2"; then \ | |
620 | for i in $$list2; do echo "$$i"; done \ | |
621 | | sed -n '/\.1[a-z]*$$/p'; \ | |
622 | fi; \ | |
486 | 623 | } | while read p; do \ |
487 | 624 | if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ |
488 | 625 | echo "$$d$$p"; echo "$$p"; \ |
511 | 648 | sed -n '/\.1[a-z]*$$/p'; \ |
512 | 649 | } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ |
513 | 650 | -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ |
514 | test -z "$$files" || { \ | |
515 | echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ | |
516 | cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } | |
651 | dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) | |
517 | 652 | install-nobase_dist_pkgdataDATA: $(nobase_dist_pkgdata_DATA) |
518 | 653 | @$(NORMAL_INSTALL) |
519 | test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" | |
520 | 654 | @list='$(nobase_dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ |
655 | if test -n "$$list"; then \ | |
656 | echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ | |
657 | $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ | |
658 | fi; \ | |
521 | 659 | $(am__nobase_list) | while read dir files; do \ |
522 | 660 | xfiles=; for file in $$files; do \ |
523 | 661 | if test -f "$$file"; then xfiles="$$xfiles $$file"; \ |
524 | 662 | else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \ |
525 | 663 | test -z "$$xfiles" || { \ |
526 | 664 | test "x$$dir" = x. || { \ |
527 | echo "$(MKDIR_P) '$(DESTDIR)$(pkgdatadir)/$$dir'"; \ | |
665 | echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)/$$dir'"; \ | |
528 | 666 | $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)/$$dir"; }; \ |
529 | 667 | echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(pkgdatadir)/$$dir'"; \ |
530 | 668 | $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(pkgdatadir)/$$dir" || exit $$?; }; \ |
534 | 672 | @$(NORMAL_UNINSTALL) |
535 | 673 | @list='$(nobase_dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ |
536 | 674 | $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ |
537 | test -n "$$files" || exit 0; \ | |
538 | echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ | |
539 | cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files | |
675 | dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) | |
540 | 676 | install-octDATA: $(oct_DATA) |
541 | 677 | @$(NORMAL_INSTALL) |
542 | test -z "$(octdir)" || $(MKDIR_P) "$(DESTDIR)$(octdir)" | |
543 | 678 | @list='$(oct_DATA)'; test -n "$(octdir)" || list=; \ |
679 | if test -n "$$list"; then \ | |
680 | echo " $(MKDIR_P) '$(DESTDIR)$(octdir)'"; \ | |
681 | $(MKDIR_P) "$(DESTDIR)$(octdir)" || exit 1; \ | |
682 | fi; \ | |
544 | 683 | for p in $$list; do \ |
545 | 684 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
546 | 685 | echo "$$d$$p"; \ |
554 | 693 | @$(NORMAL_UNINSTALL) |
555 | 694 | @list='$(oct_DATA)'; test -n "$(octdir)" || list=; \ |
556 | 695 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
557 | test -n "$$files" || exit 0; \ | |
558 | echo " ( cd '$(DESTDIR)$(octdir)' && rm -f" $$files ")"; \ | |
559 | cd "$(DESTDIR)$(octdir)" && rm -f $$files | |
560 | ||
561 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
562 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
563 | unique=`for i in $$list; do \ | |
564 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
565 | done | \ | |
566 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
567 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
568 | mkid -fID $$unique | |
569 | tags: TAGS | |
570 | ||
571 | TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
572 | $(TAGS_FILES) $(LISP) | |
696 | dir='$(DESTDIR)$(octdir)'; $(am__uninstall_files_from_dir) | |
697 | ||
698 | ID: $(am__tagged_files) | |
699 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
700 | tags: tags-am | |
701 | TAGS: tags | |
702 | ||
703 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
573 | 704 | set x; \ |
574 | 705 | here=`pwd`; \ |
575 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
576 | unique=`for i in $$list; do \ | |
577 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
578 | done | \ | |
579 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
580 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
706 | $(am__define_uniq_tagged_files); \ | |
581 | 707 | shift; \ |
582 | 708 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
583 | 709 | test -n "$$unique" || unique=$$empty_fix; \ |
589 | 715 | $$unique; \ |
590 | 716 | fi; \ |
591 | 717 | fi |
592 | ctags: CTAGS | |
593 | CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
594 | $(TAGS_FILES) $(LISP) | |
595 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
596 | unique=`for i in $$list; do \ | |
597 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
598 | done | \ | |
599 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
600 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
718 | ctags: ctags-am | |
719 | ||
720 | CTAGS: ctags | |
721 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
722 | $(am__define_uniq_tagged_files); \ | |
601 | 723 | test -z "$(CTAGS_ARGS)$$unique" \ |
602 | 724 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
603 | 725 | $$unique |
606 | 728 | here=`$(am__cd) $(top_builddir) && pwd` \ |
607 | 729 | && $(am__cd) $(top_srcdir) \ |
608 | 730 | && gtags -i $(GTAGS_ARGS) "$$here" |
731 | cscope: cscope.files | |
732 | test ! -s cscope.files \ | |
733 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
734 | clean-cscope: | |
735 | -rm -f cscope.files | |
736 | cscope.files: clean-cscope cscopelist | |
737 | cscopelist: cscopelist-am | |
738 | ||
739 | cscopelist-am: $(am__tagged_files) | |
740 | list='$(am__tagged_files)'; \ | |
741 | case "$(srcdir)" in \ | |
742 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
743 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
744 | esac; \ | |
745 | for i in $$list; do \ | |
746 | if test -f "$$i"; then \ | |
747 | echo "$(subdir)/$$i"; \ | |
748 | else \ | |
749 | echo "$$sdir/$$i"; \ | |
750 | fi; \ | |
751 | done >> $(top_builddir)/cscope.files | |
609 | 752 | |
610 | 753 | distclean-tags: |
611 | 754 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
755 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
612 | 756 | |
613 | 757 | distdir: $(DISTFILES) |
614 | @list='$(MANS)'; if test -n "$$list"; then \ | |
615 | list=`for p in $$list; do \ | |
616 | if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ | |
617 | if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ | |
618 | if test -n "$$list" && \ | |
619 | grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ | |
620 | echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ | |
621 | grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ | |
622 | echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ | |
623 | echo " typically \`make maintainer-clean' will remove them" >&2; \ | |
624 | exit 1; \ | |
625 | else :; fi; \ | |
626 | else :; fi | |
627 | 758 | $(am__remove_distdir) |
628 | 759 | test -d "$(distdir)" || mkdir "$(distdir)" |
629 | 760 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
656 | 787 | fi; \ |
657 | 788 | done |
658 | 789 | -test -n "$(am__skip_mode_fix)" \ |
659 | || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | |
790 | || find "$(distdir)" -type d ! -perm -755 \ | |
791 | -exec chmod u+rwx,go+rx {} \; -o \ | |
660 | 792 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
661 | 793 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
662 | 794 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
663 | 795 | || chmod -R a+r "$(distdir)" |
664 | 796 | dist-gzip: distdir |
665 | 797 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
666 | $(am__remove_distdir) | |
798 | $(am__post_remove_distdir) | |
667 | 799 | |
668 | 800 | dist-bzip2: distdir |
669 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
670 | $(am__remove_distdir) | |
671 | ||
672 | dist-lzma: distdir | |
673 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
674 | $(am__remove_distdir) | |
801 | tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 | |
802 | $(am__post_remove_distdir) | |
803 | ||
804 | dist-lzip: distdir | |
805 | tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz | |
806 | $(am__post_remove_distdir) | |
675 | 807 | |
676 | 808 | dist-xz: distdir |
677 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | |
678 | $(am__remove_distdir) | |
809 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz | |
810 | $(am__post_remove_distdir) | |
679 | 811 | |
680 | 812 | dist-tarZ: distdir |
813 | @echo WARNING: "Support for distribution archives compressed with" \ | |
814 | "legacy program 'compress' is deprecated." >&2 | |
815 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
681 | 816 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
682 | $(am__remove_distdir) | |
817 | $(am__post_remove_distdir) | |
683 | 818 | |
684 | 819 | dist-shar: distdir |
820 | @echo WARNING: "Support for shar distribution archives is" \ | |
821 | "deprecated." >&2 | |
822 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 | |
685 | 823 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
686 | $(am__remove_distdir) | |
824 | $(am__post_remove_distdir) | |
687 | 825 | |
688 | 826 | dist-zip: distdir |
689 | 827 | -rm -f $(distdir).zip |
690 | 828 | zip -rq $(distdir).zip $(distdir) |
691 | $(am__remove_distdir) | |
692 | ||
693 | dist dist-all: distdir | |
694 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
695 | $(am__remove_distdir) | |
829 | $(am__post_remove_distdir) | |
830 | ||
831 | dist dist-all: | |
832 | $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
833 | $(am__post_remove_distdir) | |
696 | 834 | |
697 | 835 | # This target untars the dist file and tries a VPATH configuration. Then |
698 | 836 | # it guarantees that the distribution is self-contained by making another |
700 | 838 | distcheck: dist |
701 | 839 | case '$(DIST_ARCHIVES)' in \ |
702 | 840 | *.tar.gz*) \ |
703 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | |
841 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
704 | 842 | *.tar.bz2*) \ |
705 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | |
706 | *.tar.lzma*) \ | |
707 | unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ | |
843 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
844 | *.tar.lz*) \ | |
845 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
708 | 846 | *.tar.xz*) \ |
709 | 847 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
710 | 848 | *.tar.Z*) \ |
711 | 849 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
712 | 850 | *.shar.gz*) \ |
713 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | |
851 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
714 | 852 | *.zip*) \ |
715 | 853 | unzip $(distdir).zip ;;\ |
716 | 854 | esac |
717 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
718 | mkdir $(distdir)/_build | |
719 | mkdir $(distdir)/_inst | |
855 | chmod -R a-w $(distdir) | |
856 | chmod u+w $(distdir) | |
857 | mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst | |
720 | 858 | chmod a-w $(distdir) |
721 | 859 | test -d $(distdir)/_build || exit 0; \ |
722 | 860 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
723 | 861 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
724 | 862 | && am__cwd=`pwd` \ |
725 | && $(am__cd) $(distdir)/_build \ | |
726 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
863 | && $(am__cd) $(distdir)/_build/sub \ | |
864 | && ../../configure \ | |
865 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
727 | 866 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
867 | --srcdir=../.. --prefix="$$dc_install_base" \ | |
728 | 868 | && $(MAKE) $(AM_MAKEFLAGS) \ |
729 | 869 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
730 | 870 | && $(MAKE) $(AM_MAKEFLAGS) check \ |
747 | 887 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
748 | 888 | && cd "$$am__cwd" \ |
749 | 889 | || exit 1 |
750 | $(am__remove_distdir) | |
890 | $(am__post_remove_distdir) | |
751 | 891 | @(echo "$(distdir) archives ready for distribution: "; \ |
752 | 892 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
753 | 893 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
754 | 894 | distuninstallcheck: |
755 | @$(am__cd) '$(distuninstallcheck_dir)' \ | |
756 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
895 | @test -n '$(distuninstallcheck_dir)' || { \ | |
896 | echo 'ERROR: trying to run $@ with an empty' \ | |
897 | '$$(distuninstallcheck_dir)' >&2; \ | |
898 | exit 1; \ | |
899 | }; \ | |
900 | $(am__cd) '$(distuninstallcheck_dir)' || { \ | |
901 | echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ | |
902 | exit 1; \ | |
903 | }; \ | |
904 | test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ | |
757 | 905 | || { echo "ERROR: files left after uninstall:" ; \ |
758 | 906 | if test -n "$(DESTDIR)"; then \ |
759 | 907 | echo " (check DESTDIR support)"; \ |
786 | 934 | |
787 | 935 | installcheck: installcheck-am |
788 | 936 | install-strip: |
789 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
790 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
791 | `test -z '$(STRIP)' || \ | |
792 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
937 | if test -z '$(STRIP)'; then \ | |
938 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
939 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
940 | install; \ | |
941 | else \ | |
942 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
943 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
944 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
945 | fi | |
793 | 946 | mostlyclean-generic: |
794 | 947 | |
795 | 948 | clean-generic: |
880 | 1033 | |
881 | 1034 | .MAKE: all install-am install-strip |
882 | 1035 | |
883 | .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ | |
884 | clean-binPROGRAMS clean-generic clean-noinstPROGRAMS ctags \ | |
885 | dist dist-all dist-bzip2 dist-gzip dist-lzma dist-shar \ | |
886 | dist-tarZ dist-xz dist-zip distcheck distclean \ | |
887 | distclean-compile distclean-generic distclean-hdr \ | |
888 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
889 | dvi-am html html-am info info-am install install-am \ | |
890 | install-binPROGRAMS install-data install-data-am install-dvi \ | |
891 | install-dvi-am install-exec install-exec-am install-html \ | |
892 | install-html-am install-info install-info-am install-man \ | |
893 | install-man1 install-nobase_dist_pkgdataDATA install-octDATA \ | |
894 | install-pdf install-pdf-am install-ps install-ps-am \ | |
895 | install-strip installcheck installcheck-am installdirs \ | |
896 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
897 | mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ | |
898 | tags uninstall uninstall-am uninstall-binPROGRAMS \ | |
899 | uninstall-man uninstall-man1 uninstall-nobase_dist_pkgdataDATA \ | |
1036 | .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ | |
1037 | clean-binPROGRAMS clean-cscope clean-generic \ | |
1038 | clean-noinstPROGRAMS cscope cscopelist-am ctags ctags-am dist \ | |
1039 | dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ | |
1040 | dist-xz dist-zip distcheck distclean distclean-compile \ | |
1041 | distclean-generic distclean-hdr distclean-tags distcleancheck \ | |
1042 | distdir distuninstallcheck dvi dvi-am html html-am info \ | |
1043 | info-am install install-am install-binPROGRAMS install-data \ | |
1044 | install-data-am install-dvi install-dvi-am install-exec \ | |
1045 | install-exec-am install-html install-html-am install-info \ | |
1046 | install-info-am install-man install-man1 \ | |
1047 | install-nobase_dist_pkgdataDATA install-octDATA install-pdf \ | |
1048 | install-pdf-am install-ps install-ps-am install-strip \ | |
1049 | installcheck installcheck-am installdirs maintainer-clean \ | |
1050 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
1051 | mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ | |
1052 | uninstall-am uninstall-binPROGRAMS uninstall-man \ | |
1053 | uninstall-man1 uninstall-nobase_dist_pkgdataDATA \ | |
900 | 1054 | uninstall-octDATA |
1055 | ||
1056 | .PRECIOUS: Makefile | |
901 | 1057 | |
902 | 1058 | |
903 | 1059 | h5read.oct: h5read.cc arrayh5.h arrayh5.o |
905 | 1061 | |
906 | 1062 | clean-hook: |
907 | 1063 | rm -f h5read.oct |
908 | ||
909 | # Somewhat hackish. The "right" way to do this is by a dist-hook target, | |
910 | # but then darcs check will fail because it doesn't run in the darcs | |
911 | # repository. | |
912 | darcs-dist: distdir | |
913 | darcs changes --summary > $(distdir)/ChangeLog | |
914 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
915 | $(am__remove_distdir) | |
916 | 1064 | |
917 | 1065 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
918 | 1066 | # Otherwise a system limit (for SysV at least) may be exceeded. |
0 | h5utils 1.12.1 (6/24/09) | |
1 | ||
2 | * Use octave-config, if available, to detect octave-plugin installation | |
3 | path (thanks to Debian bug report #516453 for suggestion). | |
4 | ||
5 | h5utils 1.12 (6/12/09) | |
6 | ||
7 | * The vertical axis in h5topng is now reversed to correspond to | |
8 | what most people seem to expect: increasing coordinates correspond | |
9 | to "up" and "right" in the image, rather than "down" and "right" | |
10 | in the image as in previous versions. | |
11 | ||
12 | * Fixed failure in h5tovtk -2; thanks to Karen Lee for the bug report. | |
13 | ||
14 | * Fixed installation of h5read.oct for Octave 3.x. | |
15 | ||
16 | h5utils 1.11.1 (4/28/08) | |
17 | ||
18 | * Fixed failure to find colormap files in h5topng 1.11 (due | |
19 | to changes in autoconf 2.60); thanks to bug report from Jiangjun Zheng. | |
20 | ||
21 | h5utils 1.11 (4/24/08) | |
22 | ||
23 | * h5tovtk no longer reverses the dimensions; thanks to Andreas Wilde | |
24 | for the suggestion. | |
25 | ||
26 | * Fix compilation failure with HDF5 1.8. | |
27 | ||
28 | h5utils 1.10.1 (9/20/06) | |
29 | ||
30 | * Fixed build problem on Cygwin due to missing ".exe" extension. | |
31 | Thanks to Ken Hill for the bug report. | |
32 | ||
33 | h5utils 1.10 (9/2/05) | |
34 | ||
35 | * Added h4fromh5 utility. (NCSA seems to be no longer shipping | |
36 | the HDF5/HDF4 conversion tools with the latest HDF5 release.) | |
37 | ||
38 | * Added dkbluered color map, which is similar to bluered but | |
39 | uses a somewhat wider range of colors. | |
40 | ||
41 | h5utils 1.9.1 (8/5/04) | |
42 | ||
43 | * Fix h5topng compilation failure with some non-C99 compilers; | |
44 | thanks to Maarten van Reeuwijk for the bug report. | |
45 | ||
46 | h5utils 1.9 (7/12/04) | |
47 | ||
48 | * Added new h5math utility, which creates and combines HDF5 datasets | |
49 | using a user-specified mathematical expression. (Requires GNU | |
50 | libmatheval to be installed.) | |
51 | ||
52 | * h5topng: Matlab-like start:end or start:step:end notation for | |
53 | slice indices, to allow a whole sequence of slices to be output as | |
54 | a sequence of PNG images. | |
55 | ||
56 | * h5topng: if contour/overlay dataset does not have same dimensions | |
57 | as output data, it is periodically "tiled" over the output. | |
58 | ||
59 | h5utils 1.8 (5/22/04) | |
60 | ||
61 | * New -A and -a options for h5topng to allow translucent overlays | |
62 | from one file onto another (an alternative or complement to the | |
63 | -C contour-overlay option). | |
64 | ||
65 | * h5topng uses 24-bit direct color by default (use -8 option for | |
66 | old 8-bit behavior). | |
67 | ||
68 | * h5topng uses columns/rows for x/y by default (use -T to swap), | |
69 | the opposite of the old behavior. | |
70 | ||
71 | * There is no default -z 0 slice dimension in h5topng/h5totxt any more. | |
72 | You must specify a slice for 3+ dimensional data in h5topng. | |
73 | h5totxt dumps the whole data file by default unless one or more | |
74 | slices are specified. | |
75 | ||
76 | * Support specifying multiple slice dimensions for 4+ dimensional | |
77 | datasets, with new "-t" option to indicate final dimension. | |
78 | ||
79 | * Slices are also supported now in h5tovtk and h5tov5d. | |
80 | ||
81 | * New -. option in h5totxt to specify number of significant digits; | |
82 | output 16 digits by default instead of 6, previously. | |
83 | ||
84 | h5utils 1.7.1 (3/16/02) | |
85 | ||
86 | * Fixed array overrun in h5topng that caused a floating-point exception | |
87 | on Alphas; thanks to Marin Soljacic for the bug report. | |
88 | ||
89 | h5utils 1.7 (3/9/02) | |
90 | ||
91 | * h5topng now supports multiple, user-definable color tables, a number | |
92 | of which are provided. INCOMPATIBLE CHANGE: the -c option now has | |
93 | the syntax: -c <colortable>. The old behavior corresponds to the | |
94 | included "bluered" colortable, invoked via: -c bluered. | |
95 | ||
96 | * New -R option for h5topng to use a consistent color scale for | |
97 | all specified files. | |
98 | ||
99 | * New -0 option for h5topng and h5totxt that shifts the origin of the | |
100 | slice coordinates to the dataset center. | |
101 | ||
102 | * Added h5tovtk program to output VTK (Visualization ToolKit) data files. | |
103 | ||
104 | * Support -T (transpose dimensions) option in h5tov5d. | |
105 | ||
106 | * Fixed bug in h5topng that caused extra rows/columns of garbage pixels | |
107 | to be written at the edges of images when scaling was used. | |
108 | ||
109 | * When compiling the h5read Octave plugin, respect the CPPFLAGS and LDFLAGS | |
110 | environment variables. Thanks to Max Colice for the bug report. | |
111 | ||
112 | * Fixed problem when --without-h5tov5d and --without-h5fromh4 are used. | |
113 | Thanks to Nikola Ivanov Nikolov for the fix. | |
114 | ||
115 | h5utils 1.6 (1/17/01) | |
116 | ||
117 | * Don't build h5fromh4 if the superior h4toh5 tool (from HDF5 1.4) | |
118 | is present. Also added --{with,without}-h5fromh4 option to | |
119 | configure to force whether h5fromh4 is built. | |
120 | ||
121 | h5utils 1.5.1 (12/9/00) | |
122 | ||
123 | * Support manually disabling Octave plugin support | |
124 | (configure --without-octave) in case of C++ problems. | |
125 | ||
126 | * Support Vis5d+ and Debian HDF header file locations. | |
127 | ||
128 | h5utils 1.5 (7/9/00) | |
129 | ||
130 | * Added h5fromh4 program to convert HDF4 datasets to HDF5 format. | |
131 | ||
132 | * Added -S <s> option to h5topng as a shortcut for -X <s> -Y <s>. | |
133 | ||
134 | h5utils 1.4 (5/28/00) | |
135 | ||
136 | * Added h5fromtxt program to convert text input to an HDF5 dataset. | |
137 | ||
138 | h5utils 1.3.4 (1/31/00) | |
139 | ||
140 | * Improved -C contour plotting in h5topng. | |
141 | ||
142 | * Fix in h5topng man page (thanks to Christoph Becher). | |
143 | ||
144 | h5utils 1.3.3 (1/30/00) | |
145 | ||
146 | * Bug fix in h5topng (would sometimes output solid black images). | |
147 | Thanks to Karl Koch for the bug report. | |
148 | ||
149 | h5utils 1.3.2 (1/28/00) | |
150 | ||
151 | * Added h5topng -Z option to center color scale on zero. | |
152 | ||
153 | * Now support h5topng -C filename:dataset. | |
154 | ||
155 | h5utils 1.3.1 (1/27/00) | |
156 | ||
157 | * Bug fixes in dataset name-handling, especially when using h5tov5d to | |
158 | join multiple datasets into one output file. | |
159 | ||
160 | h5utils 1.3 (1/21/00) | |
161 | ||
162 | * You can now specify individual datasets within a file by using | |
163 | <filename>:<dataset> instead of just <filename> with h5topng, | |
164 | h5totxt, and h5tov5d. | |
165 | ||
166 | h5utils 1.2.3: (1/20/00) | |
167 | ||
168 | * Fixed minor bug in 'h5totxt -h'. | |
169 | ||
170 | h5utils 1.2.2: (1/12/00) | |
171 | ||
172 | * Makefile now includes CPPFLAGS in the compiler flags, making it | |
173 | easier to use header files in non-standard locations. (CPPFLAGS | |
174 | is the proper place to put -I flags for the configure script.) | |
175 | ||
176 | h5utils 1.2.1: (1/1/00) | |
177 | ||
178 | * Modified -o option of h5tov5d to join datasets into a single Vis5d file. | |
179 | ||
180 | h5utils 1.2: (12/31/99) | |
181 | ||
182 | * Added h5tov5d program for converting to Vis5d format. | |
183 | ||
184 | * Improved installation; h5read.oct now goes into the sitewide Octave | |
185 | plugins directory, and things work correctly when only some of the | |
186 | utilities are compiled. | |
187 | ||
188 | h5utils 1.1: (12/6/99) | |
189 | ||
190 | * Added h5totxt program for exporting 2d slices of HDF5 files to text | |
191 | suitable for importing into a spreadsheet. | |
192 | ||
193 | h5utils 1.0: (11/22/99) | |
194 | ||
195 | * Initial release. |
0 | h5utils | |
1 | http://ab-initio.mit.edu/h5utils/ | |
2 | ||
3 | h5utils is a set of utilities for visualization and conversion of | |
4 | scientific data in the free, portable HDF5 format. HDF5 was developed | |
5 | in the National Center for Supercomputing Applications at the | |
6 | University of Illinois. | |
7 | ||
8 | Besides providing a simple tool for batch visualization as PNG images, | |
9 | h5utils also includes programs to convert HDF5 datasets into the | |
10 | formats required by other free visualization software (e.g. plain | |
11 | text, Vis5d, and VTK). | |
12 | ||
13 | The included utilities are: | |
14 | ||
15 | * h5fromtxt and h5totxt: convert ASCII data (e.g. comma or tab | |
16 | delimited) to/from HDF5. | |
17 | * h5topng: convert 2d slices of HDF5 datasets to PNG images, with | |
18 | a variety of color tables and other options. | |
19 | * h5tov5d: convert HDF5 datasets to the format used by the free | |
20 | 3d+ visualization tool Vis5d. | |
21 | * h5tovtk: convert HDF5 datasets to VTK format for use by the free | |
22 | Visualization ToolKit (along with supporting programs like MayaVi). | |
23 | * h5read.oct: a plug-in for GNU Octave (a Matlab-like program) to | |
24 | read 2d slices of HDF5 datasets (the latest versions of Octave | |
25 | include native support for HDF5). | |
26 | * h5fromh4: convert HDF (version 4) datasets to HDF5; mostly | |
27 | superceded by the h4toh5 program included with recent versins of HDF5. | |
28 | ||
29 | This package is developed by Steven G. Johnson (stevenj@alum.mit.edu), | |
30 | and is free software that should easily install under any Unix-like | |
31 | operating system (e.g. GNU/Linux). | |
32 | ||
33 | See the COPYING file for license and copyright information. |
0 | # generated automatically by aclocal 1.11 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.15 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
3 | ||
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
6 | 6 | # with or without modifications, as long as this notice is preserved. |
10 | 10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | 11 | # PARTICULAR PURPOSE. |
12 | 12 | |
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
13 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, | |
16 | [m4_warning([this file was generated for autoconf 2.63. | |
16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
17 | [m4_warning([this file was generated for autoconf 2.69. | |
17 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
18 | 19 | If you have problems, you may need to regenerate the build system entirely. |
19 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
20 | ||
21 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | ||
22 | # Copyright (C) 2002-2014 Free Software Foundation, Inc. | |
22 | 23 | # |
23 | 24 | # This file is free software; the Free Software Foundation |
24 | 25 | # gives unlimited permission to copy and/or distribute it, |
30 | 31 | # generated from the m4 files accompanying Automake X.Y. |
31 | 32 | # (This private macro should not be called outside this file.) |
32 | 33 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
33 | [am__api_version='1.11' | |
34 | [am__api_version='1.15' | |
34 | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
35 | 36 | dnl require some minimum version. Point them to the right macro. |
36 | m4_if([$1], [1.11], [], | |
37 | m4_if([$1], [1.15], [], | |
37 | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
38 | 39 | ]) |
39 | 40 | |
49 | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
50 | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
51 | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
52 | [AM_AUTOMAKE_VERSION([1.11])dnl | |
53 | [AM_AUTOMAKE_VERSION([1.15])dnl | |
53 | 54 | m4_ifndef([AC_AUTOCONF_VERSION], |
54 | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
55 | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
56 | 57 | |
57 | 58 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
58 | 59 | |
59 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
60 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
60 | 61 | # |
61 | 62 | # This file is free software; the Free Software Foundation |
62 | 63 | # gives unlimited permission to copy and/or distribute it, |
63 | 64 | # with or without modifications, as long as this notice is preserved. |
64 | 65 | |
65 | 66 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
66 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
67 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
67 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
68 | # '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
68 | 69 | # |
69 | 70 | # Of course, Automake must honor this variable whenever it calls a |
70 | 71 | # tool from the auxiliary directory. The problem is that $srcdir (and |
83 | 84 | # |
84 | 85 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
85 | 86 | # are both prefixed by $srcdir. In an in-source build this is usually |
86 | # harmless because $srcdir is `.', but things will broke when you | |
87 | # harmless because $srcdir is '.', but things will broke when you | |
87 | 88 | # start a VPATH build or use an absolute $srcdir. |
88 | 89 | # |
89 | 90 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
101 | 102 | # configured tree to be moved without reconfiguration. |
102 | 103 | |
103 | 104 | AC_DEFUN([AM_AUX_DIR_EXPAND], |
104 | [dnl Rely on autoconf to set up CDPATH properly. | |
105 | AC_PREREQ([2.50])dnl | |
106 | # expand $ac_aux_dir to an absolute path | |
107 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
105 | [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
106 | # Expand $ac_aux_dir to an absolute path. | |
107 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
108 | 108 | ]) |
109 | 109 | |
110 | 110 | # AM_CONDITIONAL -*- Autoconf -*- |
111 | 111 | |
112 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
113 | # Free Software Foundation, Inc. | |
114 | # | |
115 | # This file is free software; the Free Software Foundation | |
116 | # gives unlimited permission to copy and/or distribute it, | |
117 | # with or without modifications, as long as this notice is preserved. | |
118 | ||
119 | # serial 9 | |
112 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
113 | # | |
114 | # This file is free software; the Free Software Foundation | |
115 | # gives unlimited permission to copy and/or distribute it, | |
116 | # with or without modifications, as long as this notice is preserved. | |
120 | 117 | |
121 | 118 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
122 | 119 | # ------------------------------------- |
123 | 120 | # Define a conditional. |
124 | 121 | AC_DEFUN([AM_CONDITIONAL], |
125 | [AC_PREREQ(2.52)dnl | |
126 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
127 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
122 | [AC_PREREQ([2.52])dnl | |
123 | m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
124 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
128 | 125 | AC_SUBST([$1_TRUE])dnl |
129 | 126 | AC_SUBST([$1_FALSE])dnl |
130 | 127 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
143 | 140 | Usually this means the macro was only invoked conditionally.]]) |
144 | 141 | fi])]) |
145 | 142 | |
146 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | |
147 | # Free Software Foundation, Inc. | |
148 | # | |
149 | # This file is free software; the Free Software Foundation | |
150 | # gives unlimited permission to copy and/or distribute it, | |
151 | # with or without modifications, as long as this notice is preserved. | |
152 | ||
153 | # serial 10 | |
154 | ||
155 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
143 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
144 | # | |
145 | # This file is free software; the Free Software Foundation | |
146 | # gives unlimited permission to copy and/or distribute it, | |
147 | # with or without modifications, as long as this notice is preserved. | |
148 | ||
149 | ||
150 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
156 | 151 | # written in clear, in which case automake, when reading aclocal.m4, |
157 | 152 | # will think it sees a *use*, and therefore will trigger all it's |
158 | 153 | # C support machinery. Also note that it means that autoscan, seeing |
162 | 157 | # _AM_DEPENDENCIES(NAME) |
163 | 158 | # ---------------------- |
164 | 159 | # See how the compiler implements dependency checking. |
165 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
160 | # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
166 | 161 | # We try a few techniques and use that to set a single cache variable. |
167 | 162 | # |
168 | 163 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
175 | 170 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
176 | 171 | AC_REQUIRE([AM_DEP_TRACK])dnl |
177 | 172 | |
178 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
179 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
180 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
181 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
182 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
183 | [depcc="$$1" am_compiler_list=]) | |
173 | m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
174 | [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
175 | [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
176 | [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
177 | [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
178 | [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
179 | [depcc="$$1" am_compiler_list=]) | |
184 | 180 | |
185 | 181 | AC_CACHE_CHECK([dependency style of $depcc], |
186 | 182 | [am_cv_$1_dependencies_compiler_type], |
188 | 184 | # We make a subdir and do the tests there. Otherwise we can end up |
189 | 185 | # making bogus files that we don't know about and never remove. For |
190 | 186 | # instance it was reported that on HP-UX the gcc test will end up |
191 | # making a dummy file named `D' -- because `-MD' means `put the output | |
192 | # in D'. | |
187 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
188 | # in D". | |
189 | rm -rf conftest.dir | |
193 | 190 | mkdir conftest.dir |
194 | 191 | # Copy depcomp to subdir because otherwise we won't find it if we're |
195 | 192 | # using a relative directory. |
228 | 225 | : > sub/conftest.c |
229 | 226 | for i in 1 2 3 4 5 6; do |
230 | 227 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
231 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
232 | # Solaris 8's {/usr,}/bin/sh. | |
233 | touch sub/conftst$i.h | |
228 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
229 | # Solaris 10 /bin/sh. | |
230 | echo '/* dummy */' > sub/conftst$i.h | |
234 | 231 | done |
235 | 232 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
236 | 233 | |
237 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
234 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
238 | 235 | # mode. It turns out that the SunPro C++ compiler does not properly |
239 | # handle `-M -o', and we need to detect this. Also, some Intel | |
240 | # versions had trouble with output in subdirs | |
236 | # handle '-M -o', and we need to detect this. Also, some Intel | |
237 | # versions had trouble with output in subdirs. | |
241 | 238 | am__obj=sub/conftest.${OBJEXT-o} |
242 | 239 | am__minus_obj="-o $am__obj" |
243 | 240 | case $depmode in |
246 | 243 | test "$am__universal" = false || continue |
247 | 244 | ;; |
248 | 245 | nosideeffect) |
249 | # after this tag, mechanisms are not by side-effect, so they'll | |
250 | # only be used when explicitly requested | |
246 | # After this tag, mechanisms are not by side-effect, so they'll | |
247 | # only be used when explicitly requested. | |
251 | 248 | if test "x$enable_dependency_tracking" = xyes; then |
252 | 249 | continue |
253 | 250 | else |
254 | 251 | break |
255 | 252 | fi |
256 | 253 | ;; |
257 | msvisualcpp | msvcmsys) | |
258 | # This compiler won't grok `-c -o', but also, the minuso test has | |
254 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
255 | # This compiler won't grok '-c -o', but also, the minuso test has | |
259 | 256 | # not run yet. These depmodes are late enough in the game, and |
260 | 257 | # so weak that their functioning should not be impacted. |
261 | 258 | am__obj=conftest.${OBJEXT-o} |
303 | 300 | # AM_SET_DEPDIR |
304 | 301 | # ------------- |
305 | 302 | # Choose a directory name for dependency files. |
306 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
303 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
307 | 304 | AC_DEFUN([AM_SET_DEPDIR], |
308 | 305 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
309 | 306 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
313 | 310 | # AM_DEP_TRACK |
314 | 311 | # ------------ |
315 | 312 | AC_DEFUN([AM_DEP_TRACK], |
316 | [AC_ARG_ENABLE(dependency-tracking, | |
317 | [ --disable-dependency-tracking speeds up one-time build | |
318 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
313 | [AC_ARG_ENABLE([dependency-tracking], [dnl | |
314 | AS_HELP_STRING( | |
315 | [--enable-dependency-tracking], | |
316 | [do not reject slow dependency extractors]) | |
317 | AS_HELP_STRING( | |
318 | [--disable-dependency-tracking], | |
319 | [speeds up one-time build])]) | |
319 | 320 | if test "x$enable_dependency_tracking" != xno; then |
320 | 321 | am_depcomp="$ac_aux_dir/depcomp" |
321 | 322 | AMDEPBACKSLASH='\' |
323 | am__nodep='_no' | |
322 | 324 | fi |
323 | 325 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
324 | 326 | AC_SUBST([AMDEPBACKSLASH])dnl |
325 | 327 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
328 | AC_SUBST([am__nodep])dnl | |
329 | _AM_SUBST_NOTMAKE([am__nodep])dnl | |
326 | 330 | ]) |
327 | 331 | |
328 | 332 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
329 | 333 | |
330 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
331 | # Free Software Foundation, Inc. | |
332 | # | |
333 | # This file is free software; the Free Software Foundation | |
334 | # gives unlimited permission to copy and/or distribute it, | |
335 | # with or without modifications, as long as this notice is preserved. | |
336 | ||
337 | #serial 5 | |
334 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
335 | # | |
336 | # This file is free software; the Free Software Foundation | |
337 | # gives unlimited permission to copy and/or distribute it, | |
338 | # with or without modifications, as long as this notice is preserved. | |
339 | ||
338 | 340 | |
339 | 341 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
340 | 342 | # ------------------------------ |
341 | 343 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
342 | 344 | [{ |
343 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
345 | # Older Autoconf quotes --file arguments for eval, but not when files | |
344 | 346 | # are listed without --file. Let's play safe and only enable the eval |
345 | 347 | # if we detect the quoting. |
346 | 348 | case $CONFIG_FILES in |
353 | 355 | # Strip MF so we end up with the name of the file. |
354 | 356 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
355 | 357 | # Check whether this is an Automake generated Makefile or not. |
356 | # We used to match only the files named `Makefile.in', but | |
358 | # We used to match only the files named 'Makefile.in', but | |
357 | 359 | # some people rename them; so instead we look at the file content. |
358 | 360 | # Grep'ing the first line is not enough: some people post-process |
359 | 361 | # each Makefile.in and add a new line on top of each file to say so. |
365 | 367 | continue |
366 | 368 | fi |
367 | 369 | # Extract the definition of DEPDIR, am__include, and am__quote |
368 | # from the Makefile without running `make'. | |
370 | # from the Makefile without running 'make'. | |
369 | 371 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
370 | 372 | test -z "$DEPDIR" && continue |
371 | 373 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
372 | test -z "am__include" && continue | |
374 | test -z "$am__include" && continue | |
373 | 375 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
374 | # When using ansi2knr, U may be empty or an underscore; expand it | |
375 | U=`sed -n 's/^U = //p' < "$mf"` | |
376 | 376 | # Find all dependency output files, they are included files with |
377 | 377 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
378 | 378 | # simplest approach to changing $(DEPDIR) to its actual value in the |
379 | 379 | # expansion. |
380 | 380 | for file in `sed -n " |
381 | 381 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
382 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
382 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
383 | 383 | # Make sure the directory exists. |
384 | 384 | test -f "$dirpart/$file" && continue |
385 | 385 | fdir=`AS_DIRNAME(["$file"])` |
397 | 397 | # This macro should only be invoked once -- use via AC_REQUIRE. |
398 | 398 | # |
399 | 399 | # This code is only required when automatic dependency tracking |
400 | # is enabled. FIXME. This creates each `.P' file that we will | |
400 | # is enabled. FIXME. This creates each '.P' file that we will | |
401 | 401 | # need in order to bootstrap the dependency handling code. |
402 | 402 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
403 | 403 | [AC_CONFIG_COMMANDS([depfiles], |
405 | 405 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
406 | 406 | ]) |
407 | 407 | |
408 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |
409 | # Free Software Foundation, Inc. | |
410 | # | |
411 | # This file is free software; the Free Software Foundation | |
412 | # gives unlimited permission to copy and/or distribute it, | |
413 | # with or without modifications, as long as this notice is preserved. | |
414 | ||
415 | # serial 8 | |
416 | ||
417 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. | |
418 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) | |
419 | ||
420 | 408 | # Do all the work for Automake. -*- Autoconf -*- |
421 | 409 | |
422 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
423 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
424 | # | |
425 | # This file is free software; the Free Software Foundation | |
426 | # gives unlimited permission to copy and/or distribute it, | |
427 | # with or without modifications, as long as this notice is preserved. | |
428 | ||
429 | # serial 16 | |
410 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
411 | # | |
412 | # This file is free software; the Free Software Foundation | |
413 | # gives unlimited permission to copy and/or distribute it, | |
414 | # with or without modifications, as long as this notice is preserved. | |
430 | 415 | |
431 | 416 | # This macro actually does too much. Some checks are only needed if |
432 | 417 | # your package does certain things. But this isn't really a big deal. |
418 | ||
419 | dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
420 | m4_define([AC_PROG_CC], | |
421 | m4_defn([AC_PROG_CC]) | |
422 | [_AM_PROG_CC_C_O | |
423 | ]) | |
433 | 424 | |
434 | 425 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
435 | 426 | # AM_INIT_AUTOMAKE([OPTIONS]) |
443 | 434 | # arguments mandatory, and then we can depend on a new Autoconf |
444 | 435 | # release and drop the old call support. |
445 | 436 | AC_DEFUN([AM_INIT_AUTOMAKE], |
446 | [AC_PREREQ([2.62])dnl | |
437 | [AC_PREREQ([2.65])dnl | |
447 | 438 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
448 | 439 | dnl the ones we care about. |
449 | 440 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
472 | 463 | # Define the identity of the package. |
473 | 464 | dnl Distinguish between old-style and new-style calls. |
474 | 465 | m4_ifval([$2], |
475 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
466 | [AC_DIAGNOSE([obsolete], | |
467 | [$0: two- and three-arguments forms are deprecated.]) | |
468 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
476 | 469 | AC_SUBST([PACKAGE], [$1])dnl |
477 | 470 | AC_SUBST([VERSION], [$2])], |
478 | 471 | [_AM_SET_OPTIONS([$1])dnl |
479 | 472 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
480 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
473 | m4_if( | |
474 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
475 | [ok:ok],, | |
481 | 476 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
482 | 477 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
483 | 478 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
484 | 479 | |
485 | 480 | _AM_IF_OPTION([no-define],, |
486 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
487 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
481 | [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
482 | AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
488 | 483 | |
489 | 484 | # Some tools Automake needs. |
490 | 485 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
491 | 486 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
492 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
493 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
494 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
495 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
496 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
487 | AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
488 | AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
489 | AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
490 | AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
491 | AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
497 | 492 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
498 | 493 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
499 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
500 | # We need awk for the "check" target. The system "awk" is bad on | |
501 | # some platforms. | |
494 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
495 | # For better backward compatibility. To be removed once Automake 1.9.x | |
496 | # dies out for good. For more background, see: | |
497 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
498 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
499 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
500 | # We need awk for the "check" target (and possibly the TAP driver). The | |
501 | # system "awk" is bad on some platforms. | |
502 | 502 | AC_REQUIRE([AC_PROG_AWK])dnl |
503 | 503 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
504 | 504 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
507 | 507 | [_AM_PROG_TAR([v7])])]) |
508 | 508 | _AM_IF_OPTION([no-dependencies],, |
509 | 509 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
510 | [_AM_DEPENDENCIES(CC)], | |
511 | [define([AC_PROG_CC], | |
512 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
510 | [_AM_DEPENDENCIES([CC])], | |
511 | [m4_define([AC_PROG_CC], | |
512 | m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
513 | 513 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
514 | [_AM_DEPENDENCIES(CXX)], | |
515 | [define([AC_PROG_CXX], | |
516 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
514 | [_AM_DEPENDENCIES([CXX])], | |
515 | [m4_define([AC_PROG_CXX], | |
516 | m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
517 | 517 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
518 | [_AM_DEPENDENCIES(OBJC)], | |
519 | [define([AC_PROG_OBJC], | |
520 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
521 | ]) | |
522 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
523 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
524 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
525 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
518 | [_AM_DEPENDENCIES([OBJC])], | |
519 | [m4_define([AC_PROG_OBJC], | |
520 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
521 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
522 | [_AM_DEPENDENCIES([OBJCXX])], | |
523 | [m4_define([AC_PROG_OBJCXX], | |
524 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
525 | ]) | |
526 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
527 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
528 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
529 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
526 | 530 | AC_CONFIG_COMMANDS_PRE(dnl |
527 | 531 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
528 | 532 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
529 | ]) | |
530 | ||
531 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
533 | ||
534 | # POSIX will say in a future version that running "rm -f" with no argument | |
535 | # is OK; and we want to be able to make that assumption in our Makefile | |
536 | # recipes. So use an aggressive probe to check that the usage we want is | |
537 | # actually supported "in the wild" to an acceptable degree. | |
538 | # See automake bug#10828. | |
539 | # To make any issue more visible, cause the running configure to be aborted | |
540 | # by default if the 'rm' program in use doesn't match our expectations; the | |
541 | # user can still override this though. | |
542 | if rm -f && rm -fr && rm -rf; then : OK; else | |
543 | cat >&2 <<'END' | |
544 | Oops! | |
545 | ||
546 | Your 'rm' program seems unable to run without file operands specified | |
547 | on the command line, even when the '-f' option is present. This is contrary | |
548 | to the behaviour of most rm programs out there, and not conforming with | |
549 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
550 | ||
551 | Please tell bug-automake@gnu.org about your system, including the value | |
552 | of your $PATH and any error possibly output before this message. This | |
553 | can help us improve future automake versions. | |
554 | ||
555 | END | |
556 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
557 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
558 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
559 | echo >&2 | |
560 | else | |
561 | cat >&2 <<'END' | |
562 | Aborting the configuration process, to ensure you take notice of the issue. | |
563 | ||
564 | You can download and install GNU coreutils to get an 'rm' implementation | |
565 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
566 | ||
567 | If you want to complete the configuration process using your problematic | |
568 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
569 | to "yes", and re-run configure. | |
570 | ||
571 | END | |
572 | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
573 | fi | |
574 | fi | |
575 | dnl The trailing newline in this macro's definition is deliberate, for | |
576 | dnl backward compatibility and to allow trailing 'dnl'-style comments | |
577 | dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. | |
578 | ]) | |
579 | ||
580 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
532 | 581 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
533 | 582 | dnl mangled by Autoconf and run in a shell conditional statement. |
534 | 583 | m4_define([_AC_COMPILER_EXEEXT], |
535 | 584 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
536 | ||
537 | 585 | |
538 | 586 | # When config.status generates a header, we must update the stamp-h file. |
539 | 587 | # This file resides in the same directory as the config header |
556 | 604 | done |
557 | 605 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
558 | 606 | |
559 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
607 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
560 | 608 | # |
561 | 609 | # This file is free software; the Free Software Foundation |
562 | 610 | # gives unlimited permission to copy and/or distribute it, |
567 | 615 | # Define $install_sh. |
568 | 616 | AC_DEFUN([AM_PROG_INSTALL_SH], |
569 | 617 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
570 | if test x"${install_sh}" != xset; then | |
618 | if test x"${install_sh+set}" != xset; then | |
571 | 619 | case $am_aux_dir in |
572 | 620 | *\ * | *\ *) |
573 | 621 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
575 | 623 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
576 | 624 | esac |
577 | 625 | fi |
578 | AC_SUBST(install_sh)]) | |
579 | ||
580 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
581 | # | |
582 | # This file is free software; the Free Software Foundation | |
583 | # gives unlimited permission to copy and/or distribute it, | |
584 | # with or without modifications, as long as this notice is preserved. | |
585 | ||
586 | # serial 2 | |
626 | AC_SUBST([install_sh])]) | |
627 | ||
628 | # Copyright (C) 2003-2014 Free Software Foundation, Inc. | |
629 | # | |
630 | # This file is free software; the Free Software Foundation | |
631 | # gives unlimited permission to copy and/or distribute it, | |
632 | # with or without modifications, as long as this notice is preserved. | |
587 | 633 | |
588 | 634 | # Check whether the underlying file-system supports filenames |
589 | 635 | # with a leading dot. For instance MS-DOS doesn't. |
601 | 647 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
602 | 648 | # From Jim Meyering |
603 | 649 | |
604 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
605 | # Free Software Foundation, Inc. | |
606 | # | |
607 | # This file is free software; the Free Software Foundation | |
608 | # gives unlimited permission to copy and/or distribute it, | |
609 | # with or without modifications, as long as this notice is preserved. | |
610 | ||
611 | # serial 5 | |
650 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
651 | # | |
652 | # This file is free software; the Free Software Foundation | |
653 | # gives unlimited permission to copy and/or distribute it, | |
654 | # with or without modifications, as long as this notice is preserved. | |
612 | 655 | |
613 | 656 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) |
614 | 657 | # ---------------------------------- |
615 | 658 | # Control maintainer-specific portions of Makefiles. |
616 | # Default is to disable them, unless `enable' is passed literally. | |
617 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
659 | # Default is to disable them, unless 'enable' is passed literally. | |
660 | # For symmetry, 'disable' may be passed as well. Anyway, the user | |
618 | 661 | # can override the default with the --enable/--disable switch. |
619 | 662 | AC_DEFUN([AM_MAINTAINER_MODE], |
620 | 663 | [m4_case(m4_default([$1], [disable]), |
622 | 665 | [disable], [m4_define([am_maintainer_other], [enable])], |
623 | 666 | [m4_define([am_maintainer_other], [enable]) |
624 | 667 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
625 | AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
668 | AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | |
626 | 669 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
627 | 670 | AC_ARG_ENABLE([maintainer-mode], |
628 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
629 | (and sometimes confusing) to the casual installer], | |
630 | [USE_MAINTAINER_MODE=$enableval], | |
631 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
671 | [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], | |
672 | am_maintainer_other[ make rules and dependencies not useful | |
673 | (and sometimes confusing) to the casual installer])], | |
674 | [USE_MAINTAINER_MODE=$enableval], | |
675 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
632 | 676 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
633 | 677 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
634 | 678 | MAINT=$MAINTAINER_MODE_TRUE |
636 | 680 | ] |
637 | 681 | ) |
638 | 682 | |
639 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
640 | ||
641 | 683 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
642 | 684 | |
643 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
644 | # | |
645 | # This file is free software; the Free Software Foundation | |
646 | # gives unlimited permission to copy and/or distribute it, | |
647 | # with or without modifications, as long as this notice is preserved. | |
648 | ||
649 | # serial 4 | |
685 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
686 | # | |
687 | # This file is free software; the Free Software Foundation | |
688 | # gives unlimited permission to copy and/or distribute it, | |
689 | # with or without modifications, as long as this notice is preserved. | |
650 | 690 | |
651 | 691 | # AM_MAKE_INCLUDE() |
652 | 692 | # ----------------- |
665 | 705 | _am_result=none |
666 | 706 | # First try GNU make style include. |
667 | 707 | echo "include confinc" > confmf |
668 | # Ignore all kinds of additional output from `make'. | |
708 | # Ignore all kinds of additional output from 'make'. | |
669 | 709 | case `$am_make -s -f confmf 2> /dev/null` in #( |
670 | 710 | *the\ am__doit\ target*) |
671 | 711 | am__include=include |
690 | 730 | rm -f confinc confmf |
691 | 731 | ]) |
692 | 732 | |
693 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
694 | # Free Software Foundation, Inc. | |
695 | # | |
696 | # This file is free software; the Free Software Foundation | |
697 | # gives unlimited permission to copy and/or distribute it, | |
698 | # with or without modifications, as long as this notice is preserved. | |
699 | ||
700 | # serial 6 | |
701 | ||
702 | # AM_PROG_CC_C_O | |
703 | # -------------- | |
704 | # Like AC_PROG_CC_C_O, but changed for automake. | |
705 | AC_DEFUN([AM_PROG_CC_C_O], | |
706 | [AC_REQUIRE([AC_PROG_CC_C_O])dnl | |
707 | AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
708 | AC_REQUIRE_AUX_FILE([compile])dnl | |
709 | # FIXME: we rely on the cache variable name because | |
710 | # there is no other way. | |
711 | set dummy $CC | |
712 | am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` | |
713 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
714 | if test "$am_t" != yes; then | |
715 | # Losing compiler, so override with the script. | |
716 | # FIXME: It is wrong to rewrite CC. | |
717 | # But if we don't then we get into trouble of one sort or another. | |
718 | # A longer-term fix would be to have automake use am__CC in this case, | |
719 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
720 | CC="$am_aux_dir/compile $CC" | |
721 | fi | |
722 | dnl Make sure AC_PROG_CC is never called again, or it will override our | |
723 | dnl setting of CC. | |
724 | m4_define([AC_PROG_CC], | |
725 | [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) | |
726 | ]) | |
727 | ||
728 | 733 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
729 | 734 | |
730 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
731 | # Free Software Foundation, Inc. | |
732 | # | |
733 | # This file is free software; the Free Software Foundation | |
734 | # gives unlimited permission to copy and/or distribute it, | |
735 | # with or without modifications, as long as this notice is preserved. | |
736 | ||
737 | # serial 6 | |
735 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
736 | # | |
737 | # This file is free software; the Free Software Foundation | |
738 | # gives unlimited permission to copy and/or distribute it, | |
739 | # with or without modifications, as long as this notice is preserved. | |
738 | 740 | |
739 | 741 | # AM_MISSING_PROG(NAME, PROGRAM) |
740 | 742 | # ------------------------------ |
743 | 745 | $1=${$1-"${am_missing_run}$2"} |
744 | 746 | AC_SUBST($1)]) |
745 | 747 | |
746 | ||
747 | 748 | # AM_MISSING_HAS_RUN |
748 | 749 | # ------------------ |
749 | # Define MISSING if not defined so far and test if it supports --run. | |
750 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
750 | # Define MISSING if not defined so far and test if it is modern enough. | |
751 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
751 | 752 | AC_DEFUN([AM_MISSING_HAS_RUN], |
752 | 753 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
753 | 754 | AC_REQUIRE_AUX_FILE([missing])dnl |
760 | 761 | esac |
761 | 762 | fi |
762 | 763 | # Use eval to expand $SHELL |
763 | if eval "$MISSING --run true"; then | |
764 | am_missing_run="$MISSING --run " | |
764 | if eval "$MISSING --is-lightweight"; then | |
765 | am_missing_run="$MISSING " | |
765 | 766 | else |
766 | 767 | am_missing_run= |
767 | AC_MSG_WARN([`missing' script is too old or missing]) | |
768 | fi | |
769 | ]) | |
770 | ||
771 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
772 | # | |
773 | # This file is free software; the Free Software Foundation | |
774 | # gives unlimited permission to copy and/or distribute it, | |
775 | # with or without modifications, as long as this notice is preserved. | |
776 | ||
777 | # AM_PROG_MKDIR_P | |
778 | # --------------- | |
779 | # Check for `mkdir -p'. | |
780 | AC_DEFUN([AM_PROG_MKDIR_P], | |
781 | [AC_PREREQ([2.60])dnl | |
782 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
783 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
784 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
785 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
786 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
787 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
788 | dnl adjustment using top_builddir (which is defined more often than | |
789 | dnl MKDIR_P). | |
790 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
791 | case $mkdir_p in | |
792 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
793 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
794 | esac | |
795 | ]) | |
768 | AC_MSG_WARN(['missing' script is too old or missing]) | |
769 | fi | |
770 | ]) | |
771 | ||
772 | # -*- Autoconf -*- | |
773 | # Obsolete and "removed" macros, that must however still report explicit | |
774 | # error messages when used, to smooth transition. | |
775 | # | |
776 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
777 | # | |
778 | # This file is free software; the Free Software Foundation | |
779 | # gives unlimited permission to copy and/or distribute it, | |
780 | # with or without modifications, as long as this notice is preserved. | |
781 | ||
782 | AC_DEFUN([AM_CONFIG_HEADER], | |
783 | [AC_DIAGNOSE([obsolete], | |
784 | ['$0': this macro is obsolete. | |
785 | You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl | |
786 | AC_CONFIG_HEADERS($@)]) | |
787 | ||
788 | AC_DEFUN([AM_PROG_CC_STDC], | |
789 | [AC_PROG_CC | |
790 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
791 | AC_DIAGNOSE([obsolete], | |
792 | ['$0': this macro is obsolete. | |
793 | You should simply use the 'AC][_PROG_CC' macro instead. | |
794 | Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', | |
795 | but upon 'ac_cv_prog_cc_stdc'.])]) | |
796 | ||
797 | AC_DEFUN([AM_C_PROTOTYPES], | |
798 | [AC_FATAL([automatic de-ANSI-fication support has been removed])]) | |
799 | AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) | |
796 | 800 | |
797 | 801 | # Helper functions for option handling. -*- Autoconf -*- |
798 | 802 | |
799 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
800 | # | |
801 | # This file is free software; the Free Software Foundation | |
802 | # gives unlimited permission to copy and/or distribute it, | |
803 | # with or without modifications, as long as this notice is preserved. | |
804 | ||
805 | # serial 4 | |
803 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
804 | # | |
805 | # This file is free software; the Free Software Foundation | |
806 | # gives unlimited permission to copy and/or distribute it, | |
807 | # with or without modifications, as long as this notice is preserved. | |
806 | 808 | |
807 | 809 | # _AM_MANGLE_OPTION(NAME) |
808 | 810 | # ----------------------- |
810 | 812 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
811 | 813 | |
812 | 814 | # _AM_SET_OPTION(NAME) |
813 | # ------------------------------ | |
815 | # -------------------- | |
814 | 816 | # Set option NAME. Presently that only means defining a flag for this option. |
815 | 817 | AC_DEFUN([_AM_SET_OPTION], |
816 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
818 | [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
817 | 819 | |
818 | 820 | # _AM_SET_OPTIONS(OPTIONS) |
819 | # ---------------------------------- | |
821 | # ------------------------ | |
820 | 822 | # OPTIONS is a space-separated list of Automake options. |
821 | 823 | AC_DEFUN([_AM_SET_OPTIONS], |
822 | 824 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
827 | 829 | AC_DEFUN([_AM_IF_OPTION], |
828 | 830 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
829 | 831 | |
832 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
833 | # | |
834 | # This file is free software; the Free Software Foundation | |
835 | # gives unlimited permission to copy and/or distribute it, | |
836 | # with or without modifications, as long as this notice is preserved. | |
837 | ||
838 | # _AM_PROG_CC_C_O | |
839 | # --------------- | |
840 | # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
841 | # to automatically call this. | |
842 | AC_DEFUN([_AM_PROG_CC_C_O], | |
843 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
844 | AC_REQUIRE_AUX_FILE([compile])dnl | |
845 | AC_LANG_PUSH([C])dnl | |
846 | AC_CACHE_CHECK( | |
847 | [whether $CC understands -c and -o together], | |
848 | [am_cv_prog_cc_c_o], | |
849 | [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
850 | # Make sure it works both with $CC and with simple cc. | |
851 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
852 | # compilers refuse to overwrite an existing .o file with -o, | |
853 | # though they will create one. | |
854 | am_cv_prog_cc_c_o=yes | |
855 | for am_i in 1 2; do | |
856 | if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
857 | && test -f conftest2.$ac_objext; then | |
858 | : OK | |
859 | else | |
860 | am_cv_prog_cc_c_o=no | |
861 | break | |
862 | fi | |
863 | done | |
864 | rm -f core conftest* | |
865 | unset am_i]) | |
866 | if test "$am_cv_prog_cc_c_o" != yes; then | |
867 | # Losing compiler, so override with the script. | |
868 | # FIXME: It is wrong to rewrite CC. | |
869 | # But if we don't then we get into trouble of one sort or another. | |
870 | # A longer-term fix would be to have automake use am__CC in this case, | |
871 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
872 | CC="$am_aux_dir/compile $CC" | |
873 | fi | |
874 | AC_LANG_POP([C])]) | |
875 | ||
876 | # For backward compatibility. | |
877 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
878 | ||
879 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
880 | # | |
881 | # This file is free software; the Free Software Foundation | |
882 | # gives unlimited permission to copy and/or distribute it, | |
883 | # with or without modifications, as long as this notice is preserved. | |
884 | ||
885 | # AM_RUN_LOG(COMMAND) | |
886 | # ------------------- | |
887 | # Run COMMAND, save the exit status in ac_status, and log it. | |
888 | # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
889 | AC_DEFUN([AM_RUN_LOG], | |
890 | [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
891 | ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
892 | ac_status=$? | |
893 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
894 | (exit $ac_status); }]) | |
895 | ||
830 | 896 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
831 | 897 | |
832 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
833 | # Free Software Foundation, Inc. | |
834 | # | |
835 | # This file is free software; the Free Software Foundation | |
836 | # gives unlimited permission to copy and/or distribute it, | |
837 | # with or without modifications, as long as this notice is preserved. | |
838 | ||
839 | # serial 5 | |
898 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
899 | # | |
900 | # This file is free software; the Free Software Foundation | |
901 | # gives unlimited permission to copy and/or distribute it, | |
902 | # with or without modifications, as long as this notice is preserved. | |
840 | 903 | |
841 | 904 | # AM_SANITY_CHECK |
842 | 905 | # --------------- |
843 | 906 | AC_DEFUN([AM_SANITY_CHECK], |
844 | 907 | [AC_MSG_CHECKING([whether build environment is sane]) |
845 | # Just in case | |
846 | sleep 1 | |
847 | echo timestamp > conftest.file | |
848 | 908 | # Reject unsafe characters in $srcdir or the absolute working directory |
849 | 909 | # name. Accept space and tab only in the latter. |
850 | 910 | am_lf=' |
855 | 915 | esac |
856 | 916 | case $srcdir in |
857 | 917 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
858 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
918 | AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
859 | 919 | esac |
860 | 920 | |
861 | # Do `set' in a subshell so we don't clobber the current shell's | |
921 | # Do 'set' in a subshell so we don't clobber the current shell's | |
862 | 922 | # arguments. Must try -L first in case configure is actually a |
863 | 923 | # symlink; some systems play weird games with the mod time of symlinks |
864 | 924 | # (eg FreeBSD returns the mod time of the symlink's containing |
865 | 925 | # directory). |
866 | 926 | if ( |
867 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
868 | if test "$[*]" = "X"; then | |
869 | # -L didn't work. | |
870 | set X `ls -t "$srcdir/configure" conftest.file` | |
871 | fi | |
872 | rm -f conftest.file | |
873 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
874 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
875 | ||
876 | # If neither matched, then we have a broken ls. This can happen | |
877 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
878 | # broken ls alias from the environment. This has actually | |
879 | # happened. Such a system could not be considered "sane". | |
880 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
881 | alias in your environment]) | |
882 | fi | |
883 | ||
927 | am_has_slept=no | |
928 | for am_try in 1 2; do | |
929 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
930 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
931 | if test "$[*]" = "X"; then | |
932 | # -L didn't work. | |
933 | set X `ls -t "$srcdir/configure" conftest.file` | |
934 | fi | |
935 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
936 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
937 | ||
938 | # If neither matched, then we have a broken ls. This can happen | |
939 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
940 | # broken ls alias from the environment. This has actually | |
941 | # happened. Such a system could not be considered "sane". | |
942 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
943 | alias in your environment]) | |
944 | fi | |
945 | if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
946 | break | |
947 | fi | |
948 | # Just in case. | |
949 | sleep 1 | |
950 | am_has_slept=yes | |
951 | done | |
884 | 952 | test "$[2]" = conftest.file |
885 | 953 | ) |
886 | 954 | then |
890 | 958 | AC_MSG_ERROR([newly created file is older than distributed files! |
891 | 959 | Check your system clock]) |
892 | 960 | fi |
893 | AC_MSG_RESULT(yes)]) | |
894 | ||
895 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
961 | AC_MSG_RESULT([yes]) | |
962 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
963 | # generated files are strictly newer. | |
964 | am_sleep_pid= | |
965 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
966 | ( sleep 1 ) & | |
967 | am_sleep_pid=$! | |
968 | fi | |
969 | AC_CONFIG_COMMANDS_PRE( | |
970 | [AC_MSG_CHECKING([that generated files are newer than configure]) | |
971 | if test -n "$am_sleep_pid"; then | |
972 | # Hide warnings about reused PIDs. | |
973 | wait $am_sleep_pid 2>/dev/null | |
974 | fi | |
975 | AC_MSG_RESULT([done])]) | |
976 | rm -f conftest.file | |
977 | ]) | |
978 | ||
979 | # Copyright (C) 2009-2014 Free Software Foundation, Inc. | |
980 | # | |
981 | # This file is free software; the Free Software Foundation | |
982 | # gives unlimited permission to copy and/or distribute it, | |
983 | # with or without modifications, as long as this notice is preserved. | |
984 | ||
985 | # AM_SILENT_RULES([DEFAULT]) | |
986 | # -------------------------- | |
987 | # Enable less verbose build rules; with the default set to DEFAULT | |
988 | # ("yes" being less verbose, "no" or empty being verbose). | |
989 | AC_DEFUN([AM_SILENT_RULES], | |
990 | [AC_ARG_ENABLE([silent-rules], [dnl | |
991 | AS_HELP_STRING( | |
992 | [--enable-silent-rules], | |
993 | [less verbose build output (undo: "make V=1")]) | |
994 | AS_HELP_STRING( | |
995 | [--disable-silent-rules], | |
996 | [verbose build output (undo: "make V=0")])dnl | |
997 | ]) | |
998 | case $enable_silent_rules in @%:@ ((( | |
999 | yes) AM_DEFAULT_VERBOSITY=0;; | |
1000 | no) AM_DEFAULT_VERBOSITY=1;; | |
1001 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
1002 | esac | |
1003 | dnl | |
1004 | dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
1005 | dnl do not support nested variable expansions. | |
1006 | dnl See automake bug#9928 and bug#10237. | |
1007 | am_make=${MAKE-make} | |
1008 | AC_CACHE_CHECK([whether $am_make supports nested variables], | |
1009 | [am_cv_make_support_nested_variables], | |
1010 | [if AS_ECHO([['TRUE=$(BAR$(V)) | |
1011 | BAR0=false | |
1012 | BAR1=true | |
1013 | V=1 | |
1014 | am__doit: | |
1015 | @$(TRUE) | |
1016 | .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
1017 | am_cv_make_support_nested_variables=yes | |
1018 | else | |
1019 | am_cv_make_support_nested_variables=no | |
1020 | fi]) | |
1021 | if test $am_cv_make_support_nested_variables = yes; then | |
1022 | dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
1023 | AM_V='$(V)' | |
1024 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
1025 | else | |
1026 | AM_V=$AM_DEFAULT_VERBOSITY | |
1027 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
1028 | fi | |
1029 | AC_SUBST([AM_V])dnl | |
1030 | AM_SUBST_NOTMAKE([AM_V])dnl | |
1031 | AC_SUBST([AM_DEFAULT_V])dnl | |
1032 | AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
1033 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
1034 | AM_BACKSLASH='\' | |
1035 | AC_SUBST([AM_BACKSLASH])dnl | |
1036 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
1037 | ]) | |
1038 | ||
1039 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
896 | 1040 | # |
897 | 1041 | # This file is free software; the Free Software Foundation |
898 | 1042 | # gives unlimited permission to copy and/or distribute it, |
900 | 1044 | |
901 | 1045 | # AM_PROG_INSTALL_STRIP |
902 | 1046 | # --------------------- |
903 | # One issue with vendor `install' (even GNU) is that you can't | |
1047 | # One issue with vendor 'install' (even GNU) is that you can't | |
904 | 1048 | # specify the program used to strip binaries. This is especially |
905 | 1049 | # annoying in cross-compiling environments, where the build's strip |
906 | 1050 | # is unlikely to handle the host's binaries. |
907 | 1051 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
908 | # always use install-sh in `make install-strip', and initialize | |
1052 | # always use install-sh in "make install-strip", and initialize | |
909 | 1053 | # STRIPPROG with the value of the STRIP variable (set by the user). |
910 | 1054 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
911 | 1055 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
912 | # Installed binaries are usually stripped using `strip' when the user | |
913 | # run `make install-strip'. However `strip' might not be the right | |
1056 | # Installed binaries are usually stripped using 'strip' when the user | |
1057 | # run "make install-strip". However 'strip' might not be the right | |
914 | 1058 | # tool to use in cross-compilation environments, therefore Automake |
915 | # will honor the `STRIP' environment variable to overrule this program. | |
916 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
1059 | # will honor the 'STRIP' environment variable to overrule this program. | |
1060 | dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
917 | 1061 | if test "$cross_compiling" != no; then |
918 | 1062 | AC_CHECK_TOOL([STRIP], [strip], :) |
919 | 1063 | fi |
920 | 1064 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
921 | 1065 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
922 | 1066 | |
923 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
924 | # | |
925 | # This file is free software; the Free Software Foundation | |
926 | # gives unlimited permission to copy and/or distribute it, | |
927 | # with or without modifications, as long as this notice is preserved. | |
928 | ||
929 | # serial 2 | |
1067 | # Copyright (C) 2006-2014 Free Software Foundation, Inc. | |
1068 | # | |
1069 | # This file is free software; the Free Software Foundation | |
1070 | # gives unlimited permission to copy and/or distribute it, | |
1071 | # with or without modifications, as long as this notice is preserved. | |
930 | 1072 | |
931 | 1073 | # _AM_SUBST_NOTMAKE(VARIABLE) |
932 | 1074 | # --------------------------- |
935 | 1077 | AC_DEFUN([_AM_SUBST_NOTMAKE]) |
936 | 1078 | |
937 | 1079 | # AM_SUBST_NOTMAKE(VARIABLE) |
938 | # --------------------------- | |
1080 | # -------------------------- | |
939 | 1081 | # Public sister of _AM_SUBST_NOTMAKE. |
940 | 1082 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
941 | 1083 | |
942 | 1084 | # Check how to create a tarball. -*- Autoconf -*- |
943 | 1085 | |
944 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
945 | # | |
946 | # This file is free software; the Free Software Foundation | |
947 | # gives unlimited permission to copy and/or distribute it, | |
948 | # with or without modifications, as long as this notice is preserved. | |
949 | ||
950 | # serial 2 | |
1086 | # Copyright (C) 2004-2014 Free Software Foundation, Inc. | |
1087 | # | |
1088 | # This file is free software; the Free Software Foundation | |
1089 | # gives unlimited permission to copy and/or distribute it, | |
1090 | # with or without modifications, as long as this notice is preserved. | |
951 | 1091 | |
952 | 1092 | # _AM_PROG_TAR(FORMAT) |
953 | 1093 | # -------------------- |
954 | 1094 | # Check how to create a tarball in format FORMAT. |
955 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
1095 | # FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
956 | 1096 | # |
957 | 1097 | # Substitute a variable $(am__tar) that is a command |
958 | 1098 | # writing to stdout a FORMAT-tarball containing the directory |
962 | 1102 | # Substitute a variable $(am__untar) that extract such |
963 | 1103 | # a tarball read from stdin. |
964 | 1104 | # $(am__untar) < result.tar |
1105 | # | |
965 | 1106 | AC_DEFUN([_AM_PROG_TAR], |
966 | [# Always define AMTAR for backward compatibility. | |
967 | AM_MISSING_PROG([AMTAR], [tar]) | |
1107 | [# Always define AMTAR for backward compatibility. Yes, it's still used | |
1108 | # in the wild :-( We should find a proper way to deprecate it ... | |
1109 | AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
1110 | ||
1111 | # We'll loop over all known methods to create a tar archive until one works. | |
1112 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1113 | ||
968 | 1114 | m4_if([$1], [v7], |
969 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
970 | [m4_case([$1], [ustar],, [pax],, | |
971 | [m4_fatal([Unknown tar format])]) | |
972 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
973 | # Loop over all known methods to create a tar archive until one works. | |
974 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
975 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
976 | # Do not fold the above two line into one, because Tru64 sh and | |
977 | # Solaris sh will not grok spaces in the rhs of `-'. | |
978 | for _am_tool in $_am_tools | |
979 | do | |
980 | case $_am_tool in | |
981 | gnutar) | |
982 | for _am_tar in tar gnutar gtar; | |
983 | do | |
984 | AM_RUN_LOG([$_am_tar --version]) && break | |
985 | done | |
986 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
987 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
988 | am__untar="$_am_tar -xf -" | |
989 | ;; | |
990 | plaintar) | |
991 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
992 | # ustar tarball either. | |
993 | (tar --version) >/dev/null 2>&1 && continue | |
994 | am__tar='tar chf - "$$tardir"' | |
995 | am__tar_='tar chf - "$tardir"' | |
996 | am__untar='tar xf -' | |
997 | ;; | |
998 | pax) | |
999 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1000 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1001 | am__untar='pax -r' | |
1002 | ;; | |
1003 | cpio) | |
1004 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1005 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1006 | am__untar='cpio -i -H $1 -d' | |
1007 | ;; | |
1008 | none) | |
1009 | am__tar=false | |
1010 | am__tar_=false | |
1011 | am__untar=false | |
1012 | ;; | |
1013 | esac | |
1014 | ||
1015 | # If the value was cached, stop now. We just wanted to have am__tar | |
1016 | # and am__untar set. | |
1017 | test -n "${am_cv_prog_tar_$1}" && break | |
1018 | ||
1019 | # tar/untar a dummy directory, and stop if the command works | |
1115 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
1116 | ||
1117 | [m4_case([$1], | |
1118 | [ustar], | |
1119 | [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
1120 | # There is notably a 21 bits limit for the UID and the GID. In fact, | |
1121 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
1122 | # and bug#13588). | |
1123 | am_max_uid=2097151 # 2^21 - 1 | |
1124 | am_max_gid=$am_max_uid | |
1125 | # The $UID and $GID variables are not portable, so we need to resort | |
1126 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
1127 | # below are definitely unexpected, so allow the users to see them | |
1128 | # (that is, avoid stderr redirection). | |
1129 | am_uid=`id -u || echo unknown` | |
1130 | am_gid=`id -g || echo unknown` | |
1131 | AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
1132 | if test $am_uid -le $am_max_uid; then | |
1133 | AC_MSG_RESULT([yes]) | |
1134 | else | |
1135 | AC_MSG_RESULT([no]) | |
1136 | _am_tools=none | |
1137 | fi | |
1138 | AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
1139 | if test $am_gid -le $am_max_gid; then | |
1140 | AC_MSG_RESULT([yes]) | |
1141 | else | |
1142 | AC_MSG_RESULT([no]) | |
1143 | _am_tools=none | |
1144 | fi], | |
1145 | ||
1146 | [pax], | |
1147 | [], | |
1148 | ||
1149 | [m4_fatal([Unknown tar format])]) | |
1150 | ||
1151 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1152 | ||
1153 | # Go ahead even if we have the value already cached. We do so because we | |
1154 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
1155 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1156 | ||
1157 | for _am_tool in $_am_tools; do | |
1158 | case $_am_tool in | |
1159 | gnutar) | |
1160 | for _am_tar in tar gnutar gtar; do | |
1161 | AM_RUN_LOG([$_am_tar --version]) && break | |
1162 | done | |
1163 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1164 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1165 | am__untar="$_am_tar -xf -" | |
1166 | ;; | |
1167 | plaintar) | |
1168 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1169 | # ustar tarball either. | |
1170 | (tar --version) >/dev/null 2>&1 && continue | |
1171 | am__tar='tar chf - "$$tardir"' | |
1172 | am__tar_='tar chf - "$tardir"' | |
1173 | am__untar='tar xf -' | |
1174 | ;; | |
1175 | pax) | |
1176 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1177 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1178 | am__untar='pax -r' | |
1179 | ;; | |
1180 | cpio) | |
1181 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1182 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1183 | am__untar='cpio -i -H $1 -d' | |
1184 | ;; | |
1185 | none) | |
1186 | am__tar=false | |
1187 | am__tar_=false | |
1188 | am__untar=false | |
1189 | ;; | |
1190 | esac | |
1191 | ||
1192 | # If the value was cached, stop now. We just wanted to have am__tar | |
1193 | # and am__untar set. | |
1194 | test -n "${am_cv_prog_tar_$1}" && break | |
1195 | ||
1196 | # tar/untar a dummy directory, and stop if the command works. | |
1197 | rm -rf conftest.dir | |
1198 | mkdir conftest.dir | |
1199 | echo GrepMe > conftest.dir/file | |
1200 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1201 | rm -rf conftest.dir | |
1202 | if test -s conftest.tar; then | |
1203 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1204 | AM_RUN_LOG([cat conftest.dir/file]) | |
1205 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1206 | fi | |
1207 | done | |
1020 | 1208 | rm -rf conftest.dir |
1021 | mkdir conftest.dir | |
1022 | echo GrepMe > conftest.dir/file | |
1023 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1024 | rm -rf conftest.dir | |
1025 | if test -s conftest.tar; then | |
1026 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1027 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1028 | fi | |
1029 | done | |
1030 | rm -rf conftest.dir | |
1031 | ||
1032 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1033 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1209 | ||
1210 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1211 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1212 | ||
1034 | 1213 | AC_SUBST([am__tar]) |
1035 | 1214 | AC_SUBST([am__untar]) |
1036 | 1215 | ]) # _AM_PROG_TAR |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
6 | 6 | * distribute, sublicense, and/or sell copies of the Software, and to |
7 | 7 | * permit persons to whom the Software is furnished to do so, subject to |
8 | 8 | * the following conditions: |
9 | * | |
9 | * | |
10 | 10 | * The above copyright notice and this permission notice shall be |
11 | 11 | * included in all copies or substantial portions of the Software. |
12 | * | |
12 | * | |
13 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
14 | 14 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
15 | 15 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
53 | 53 | |
54 | 54 | CHECK(rank >= 0, "non-positive rank"); |
55 | 55 | a.rank = rank; |
56 | ||
56 | ||
57 | 57 | CHK_MALLOC(a.dims, int, rank); |
58 | 58 | |
59 | 59 | a.N = 1; |
77 | 77 | |
78 | 78 | arrayh5 arrayh5_clone(arrayh5 a) |
79 | 79 | { |
80 | return arrayh5_create(a.rank, a.dims); | |
80 | arrayh5 b = arrayh5_create(a.rank, a.dims); | |
81 | if (a.data) memcpy(b.data, a.data, sizeof(double) * a.N); | |
82 | return b; | |
81 | 83 | } |
82 | 84 | |
83 | 85 | void arrayh5_destroy(arrayh5 a) |
104 | 106 | { |
105 | 107 | int prod_before = 1, prod_after = 1; |
106 | 108 | int i; |
107 | ||
109 | ||
108 | 110 | if (rank == 0) { |
109 | 111 | *data_t = *data; |
110 | 112 | return; |
189 | 191 | |
190 | 192 | int arrayh5_read(arrayh5 *a, const char *fname, const char *datapath, |
191 | 193 | char **dataname, |
192 | int nslicedims, const int *slicedim_, const int *islice_, | |
194 | int nslicedims_, const int *slicedim_, const int *islice_, | |
193 | 195 | const int *center_slice) |
194 | 196 | { |
195 | 197 | hid_t file_id = -1, data_id = -1, space_id = -1; |
196 | 198 | char *dname = NULL; |
197 | 199 | int err = NO_ERROR; |
198 | hsize_t i, rank, *dims_copy, *maxdims; | |
199 | int *islice = 0, *slicedim = 0; | |
200 | hsize_t i, rank, *dims_copy, *maxdims, *slicedim = 0; | |
201 | int *islice = 0; | |
200 | 202 | int *dims = 0; |
203 | hsize_t nslicedims = (hsize_t) nslicedims_; | |
201 | 204 | |
202 | 205 | CHECK(a, "NULL array passed to arrayh5_read"); |
203 | 206 | a->dims = NULL; |
208 | 211 | err = OPEN_FAILED; |
209 | 212 | goto done; |
210 | 213 | } |
211 | ||
214 | ||
212 | 215 | if (datapath && datapath[0]) { |
213 | 216 | CHK_MALLOC(dname, char, strlen(datapath) + 1); |
214 | 217 | strcpy(dname, datapath); |
232 | 235 | err = INVALID_RANK; |
233 | 236 | goto done; |
234 | 237 | } |
235 | ||
238 | ||
236 | 239 | CHK_MALLOC(dims, int, rank); |
237 | 240 | CHK_MALLOC(dims_copy, hsize_t, rank); |
238 | 241 | CHK_MALLOC(maxdims, hsize_t, rank); |
243 | 246 | |
244 | 247 | free(maxdims); |
245 | 248 | free(dims_copy); |
246 | ||
249 | ||
247 | 250 | for (i = 0; i < nslicedims && slicedim_[i] == NO_SLICE_DIM; ++i) |
248 | 251 | ; |
249 | 252 | |
250 | 253 | if (i == nslicedims) { /* no slices */ |
251 | 254 | *a = arrayh5_create(rank, dims); |
252 | ||
255 | ||
253 | 256 | if (H5Dread(data_id, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, |
254 | 257 | H5P_DEFAULT, (void *) a->data) < 0) { |
255 | 258 | err = READ_FAILED; |
258 | 261 | } |
259 | 262 | else if (nslicedims > 0) { |
260 | 263 | int j, rank2 = rank; |
261 | hssize_t *start; | |
264 | hsize_t *start; | |
262 | 265 | hsize_t *count; |
263 | 266 | hid_t mem_space_id; |
264 | 267 | herr_t readerr; |
265 | 268 | |
266 | CHK_MALLOC(slicedim, int, nslicedims); | |
269 | CHK_MALLOC(slicedim, hsize_t, nslicedims); | |
267 | 270 | CHK_MALLOC(islice, int, nslicedims); |
268 | 271 | |
269 | 272 | for (i = j = 0; i < nslicedims; ++i) |
271 | 274 | if (slicedim_[i] == LAST_SLICE_DIM) |
272 | 275 | slicedim[j] = rank - 1; |
273 | 276 | else |
274 | slicedim[j] = slicedim_[i]; | |
275 | if (slicedim[j] < 0 || slicedim[j] >= rank) { | |
277 | slicedim[j] = (hsize_t) slicedim_[i]; | |
278 | if (slicedim[j] >= rank) { | |
276 | 279 | err = INVALID_SLICE; |
277 | 280 | goto done; |
278 | 281 | } |
286 | 289 | j++; |
287 | 290 | } |
288 | 291 | nslicedims = j; |
289 | ||
290 | CHK_MALLOC(start, hssize_t, rank); | |
292 | ||
293 | CHK_MALLOC(start, hsize_t, rank); | |
291 | 294 | CHK_MALLOC(count, hsize_t, rank); |
292 | ||
295 | ||
293 | 296 | for (i = 0; i < rank; ++i) { |
294 | 297 | count[i] = dims[i]; |
295 | 298 | start[i] = 0; |
298 | 301 | start[slicedim[i]] = islice[i]; |
299 | 302 | count[slicedim[i]] = 1; |
300 | 303 | } |
301 | ||
304 | ||
302 | 305 | H5Sselect_hyperslab(space_id, H5S_SELECT_SET, |
303 | 306 | start, NULL, count, NULL); |
304 | 307 | |
308 | 311 | rank2 = j; |
309 | 312 | |
310 | 313 | *a = arrayh5_create(rank2, dims); |
311 | ||
314 | ||
312 | 315 | mem_space_id = H5Screate_simple(rank, count, NULL); |
313 | 316 | H5Sselect_all(mem_space_id); |
314 | ||
315 | readerr = H5Dread(data_id, H5T_NATIVE_DOUBLE, | |
316 | mem_space_id, space_id, | |
317 | ||
318 | readerr = H5Dread(data_id, H5T_NATIVE_DOUBLE, | |
319 | mem_space_id, space_id, | |
317 | 320 | H5P_DEFAULT, (void *) a->data); |
318 | ||
321 | ||
319 | 322 | H5Sclose(mem_space_id); |
320 | 323 | free(count); |
321 | 324 | free(start); |
322 | ||
325 | ||
323 | 326 | if (readerr < 0) { |
324 | 327 | err = SLICE_FAILED; |
325 | 328 | goto done; |
371 | 374 | else |
372 | 375 | file_id = H5Fcreate(filename, H5F_ACC_TRUNC, |
373 | 376 | H5P_DEFAULT, H5P_DEFAULT); |
374 | CHECK(file_id >= 0, "error opening HDF5 output file"); | |
377 | CHECK(file_id >= 0, "error opening HDF5 output file"); | |
375 | 378 | |
376 | 379 | if (dataset_exists(file_id, dataname)) |
377 | 380 | H5Gunlink(file_id, dataname); /* delete it */ |
404 | 407 | err = OPEN_FAILED; |
405 | 408 | goto done; |
406 | 409 | } |
407 | ||
410 | ||
408 | 411 | if (datapath && datapath[0]) { |
409 | 412 | CHK_MALLOC(dname, char, strlen(datapath) + 1); |
410 | 413 | strcpy(dname, datapath); |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | # BrBG colormap (based on Matplotlib colormap of the same name) | |
1 | 0.32941176470588235 0.18823529411764706 0.0196078431372549 1 | |
2 | 0.3380238369857747 0.1933102652825836 0.020376778162245292 1 | |
3 | 0.34663590926566706 0.19838523644752018 0.02114571318723568 1 | |
4 | 0.3552479815455594 0.20346020761245676 0.021914648212226065 1 | |
5 | 0.3638600538254517 0.2085351787773933 0.022683583237216455 1 | |
6 | 0.3724721261053441 0.21361014994232985 0.02345251826220684 1 | |
7 | 0.38108419838523644 0.21868512110726643 0.02422145328719723 1 | |
8 | 0.3896962706651288 0.223760092272203 0.02499038831218762 1 | |
9 | 0.39830834294502115 0.22883506343713955 0.02575932333717801 1 | |
10 | 0.4069204152249135 0.23391003460207613 0.0265282583621684 1 | |
11 | 0.41553248750480587 0.23898500576701268 0.027297193387158785 1 | |
12 | 0.4241445597846982 0.24405997693194925 0.02806612841214917 1 | |
13 | 0.4327566320645906 0.2491349480968858 0.02883506343713956 1 | |
14 | 0.4413687043444829 0.25420991926182235 0.02960399846212995 1 | |
15 | 0.4499807766243753 0.25928489042675895 0.03037293348712034 1 | |
16 | 0.45859284890426766 0.2643598615916955 0.031141868512110725 1 | |
17 | 0.46720492118415996 0.26943483275663205 0.031910803537101115 1 | |
18 | 0.4758169934640523 0.2745098039215686 0.0326797385620915 1 | |
19 | 0.4844290657439447 0.2795847750865052 0.033448673587081895 1 | |
20 | 0.49304113802383703 0.28465974625144175 0.03421760861207228 1 | |
21 | 0.5016532103037293 0.2897347174163783 0.03498654363706267 1 | |
22 | 0.5102652825836217 0.29480968858131484 0.03575547866205306 1 | |
23 | 0.518877354863514 0.29988465974625145 0.03652441368704344 1 | |
24 | 0.5274894271434064 0.304959630911188 0.03729334871203383 1 | |
25 | 0.5361014994232988 0.31003460207612454 0.03806228373702422 1 | |
26 | 0.5447135717031911 0.31510957324106115 0.038831218762014605 1 | |
27 | 0.5529411764705883 0.3213379469434833 0.041906958861976165 1 | |
28 | 0.5607843137254902 0.328719723183391 0.04728950403690888 1 | |
29 | 0.5686274509803922 0.3361014994232987 0.0526720492118416 1 | |
30 | 0.5764705882352942 0.34348327566320647 0.05805459438677432 1 | |
31 | 0.5843137254901961 0.3508650519031142 0.06343713956170705 1 | |
32 | 0.592156862745098 0.3582468281430219 0.06881968473663976 1 | |
33 | 0.6000000000000001 0.3656286043829296 0.07420222991157246 1 | |
34 | 0.6078431372549019 0.3730103806228373 0.07958477508650516 1 | |
35 | 0.615686274509804 0.3803921568627451 0.08496732026143791 1 | |
36 | 0.6235294117647059 0.3877739331026528 0.09034986543637064 1 | |
37 | 0.6313725490196078 0.3951557093425605 0.09573241061130335 1 | |
38 | 0.6392156862745098 0.4025374855824682 0.10111495578623603 1 | |
39 | 0.6470588235294118 0.409919261822376 0.10649750096116878 1 | |
40 | 0.6549019607843137 0.4173010380622837 0.1118800461361015 1 | |
41 | 0.6627450980392157 0.42468281430219146 0.11726259131103423 1 | |
42 | 0.6705882352941176 0.4320645905420991 0.12264513648596691 1 | |
43 | 0.6784313725490196 0.4394463667820069 0.12802768166089967 1 | |
44 | 0.6862745098039216 0.44682814302191465 0.13341022683583237 1 | |
45 | 0.6941176470588235 0.45420991926182236 0.1387927720107651 1 | |
46 | 0.7019607843137254 0.46159169550173007 0.14417531718569776 1 | |
47 | 0.7098039215686275 0.46897347174163784 0.14955786236063054 1 | |
48 | 0.7176470588235294 0.47635524798154555 0.15494040753556326 1 | |
49 | 0.7254901960784313 0.48373702422145326 0.16032295271049596 1 | |
50 | 0.7333333333333333 0.4911188004613609 0.16570549788542865 1 | |
51 | 0.7411764705882353 0.49850057670126874 0.1710880430603614 1 | |
52 | 0.7490196078431373 0.5058823529411764 0.17647058823529413 1 | |
53 | 0.7539407920030757 0.5158785082660515 0.18877354863514034 1 | |
54 | 0.7588619761630142 0.5258746635909265 0.20107650903498644 1 | |
55 | 0.7637831603229527 0.5358708189158016 0.21337946943483274 1 | |
56 | 0.7687043444828912 0.5458669742406767 0.22568242983467895 1 | |
57 | 0.7736255286428296 0.5558631295655516 0.23798539023452514 1 | |
58 | 0.7785467128027681 0.5658592848904266 0.25028835063437127 1 | |
59 | 0.7834678969627067 0.5758554402153018 0.26259131103421757 1 | |
60 | 0.7883890811226452 0.5858515955401767 0.27489427143406375 1 | |
61 | 0.7933102652825836 0.5958477508650518 0.28719723183391 1 | |
62 | 0.798231449442522 0.6058439061899268 0.2995001922337561 1 | |
63 | 0.8031526336024606 0.6158400615148019 0.31180315263360237 1 | |
64 | 0.8080738177623991 0.6258362168396769 0.3241061130334486 1 | |
65 | 0.8129950019223375 0.635832372164552 0.33640907343329485 1 | |
66 | 0.817916186082276 0.6458285274894271 0.34871203383314103 1 | |
67 | 0.8228373702422145 0.655824682814302 0.36101499423298705 1 | |
68 | 0.827758554402153 0.6658208381391771 0.37331795463283346 1 | |
69 | 0.8326797385620914 0.6758169934640521 0.3856209150326796 1 | |
70 | 0.8376009227220299 0.6858131487889272 0.39792387543252583 1 | |
71 | 0.8425221068819684 0.6958093041138023 0.41022683583237207 1 | |
72 | 0.847443291041907 0.7058054594386773 0.4225297962322182 1 | |
73 | 0.8523644752018453 0.7158016147635523 0.43483275663206444 1 | |
74 | 0.8572856593617839 0.7257977700884274 0.4471357170319107 1 | |
75 | 0.8622068435217223 0.7357939254133022 0.4594386774317567 1 | |
76 | 0.8671280276816609 0.7457900807381774 0.47174163783160306 1 | |
77 | 0.8720492118415993 0.7557862360630525 0.4840445982314493 1 | |
78 | 0.8762783544790465 0.7637062668204535 0.4955786236063051 1 | |
79 | 0.8798154555940023 0.7695501730103805 0.5063437139561705 1 | |
80 | 0.8833525567089581 0.7753940792003075 0.517108804306036 1 | |
81 | 0.8868896578239138 0.7812379853902344 0.5278738946559014 1 | |
82 | 0.8904267589388696 0.7870818915801614 0.5386389850057669 1 | |
83 | 0.8939638600538253 0.7929257977700882 0.5494040753556322 1 | |
84 | 0.8975009611687812 0.7987697039600152 0.5601691657054977 1 | |
85 | 0.901038062283737 0.8046136101499423 0.5709342560553632 1 | |
86 | 0.9045751633986928 0.8104575163398692 0.5816993464052287 1 | |
87 | 0.9081122645136486 0.8163014225297962 0.5924644367550941 1 | |
88 | 0.9116493656286043 0.8221453287197231 0.6032295271049595 1 | |
89 | 0.9151864667435602 0.82798923490965 0.613994617454825 1 | |
90 | 0.9187235678585159 0.833833141099577 0.6247597078046904 1 | |
91 | 0.9222606689734717 0.8396770472895039 0.6355247981545558 1 | |
92 | 0.9257977700884276 0.8455209534794309 0.6462898885044213 1 | |
93 | 0.9293348712033833 0.8513648596693579 0.6570549788542868 1 | |
94 | 0.9328719723183391 0.8572087658592848 0.6678200692041522 1 | |
95 | 0.9364090734332948 0.8630526720492118 0.6785851595540175 1 | |
96 | 0.9399461745482507 0.8688965782391388 0.689350249903883 1 | |
97 | 0.9434832756632064 0.8747404844290657 0.7001153402537484 1 | |
98 | 0.9470203767781622 0.8805843906189926 0.7108804306036139 1 | |
99 | 0.950557477893118 0.8864282968089195 0.7216455209534792 1 | |
100 | 0.9540945790080738 0.8922722029988466 0.7324106113033448 1 | |
101 | 0.9576316801230296 0.8981161091887735 0.7431757016532102 1 | |
102 | 0.9611687812379854 0.9039600153787005 0.7539407920030756 1 | |
103 | 0.9647058823529412 0.9098039215686274 0.7647058823529411 1 | |
104 | 0.9645520953479431 0.9118031526336025 0.772395232602845 1 | |
105 | 0.964398308342945 0.9138023836985775 0.7800845828527488 1 | |
106 | 0.9642445213379469 0.9158016147635525 0.7877739331026528 1 | |
107 | 0.9640907343329489 0.9178008458285275 0.7954632833525566 1 | |
108 | 0.9639369473279508 0.9198000768935025 0.8031526336024606 1 | |
109 | 0.9637831603229527 0.9217993079584775 0.8108419838523644 1 | |
110 | 0.9636293733179546 0.9237985390234525 0.8185313341022683 1 | |
111 | 0.9634755863129566 0.9257977700884276 0.8262206843521722 1 | |
112 | 0.9633217993079585 0.9277970011534026 0.8339100346020761 1 | |
113 | 0.9631680123029605 0.9297962322183776 0.84159938485198 1 | |
114 | 0.9630142252979623 0.9317954632833526 0.8492887351018839 1 | |
115 | 0.9628604382929643 0.9337946943483275 0.8569780853517877 1 | |
116 | 0.9627066512879662 0.9357939254133025 0.8646674356016917 1 | |
117 | 0.9625528642829682 0.9377931564782775 0.8723567858515955 1 | |
118 | 0.96239907727797 0.9397923875432526 0.8800461361014994 1 | |
119 | 0.962245290272972 0.9417916186082276 0.8877354863514033 1 | |
120 | 0.9620915032679739 0.9437908496732026 0.8954248366013071 1 | |
121 | 0.9619377162629758 0.9457900807381776 0.9031141868512111 1 | |
122 | 0.9617839292579777 0.9477893118031526 0.910803537101115 1 | |
123 | 0.9616301422529796 0.9497885428681276 0.9184928873510187 1 | |
124 | 0.9614763552479816 0.9517877739331027 0.9261822376009228 1 | |
125 | 0.9613225682429835 0.9537870049980777 0.9338715878508266 1 | |
126 | 0.9611687812379854 0.9557862360630527 0.9415609381007305 1 | |
127 | 0.9610149942329873 0.9577854671280277 0.9492502883506344 1 | |
128 | 0.9608612072279893 0.9597846981930027 0.9569396386005382 1 | |
129 | 0.9572472126105345 0.9599384851980008 0.9595540176855056 1 | |
130 | 0.9501730103806229 0.958246828143022 0.9570934256055363 1 | |
131 | 0.9430988081507113 0.9565551710880431 0.9546328335255672 1 | |
132 | 0.9360246059207997 0.9548635140330642 0.9521722414455979 1 | |
133 | 0.9289504036908884 0.9531718569780854 0.9497116493656287 1 | |
134 | 0.9218762014609766 0.9514801999231065 0.9472510572856594 1 | |
135 | 0.9148019992310651 0.9497885428681276 0.9447904652056902 1 | |
136 | 0.9077277970011535 0.9480968858131488 0.9423298731257209 1 | |
137 | 0.900653594771242 0.9464052287581699 0.9398692810457517 1 | |
138 | 0.8935793925413303 0.9447135717031911 0.9374086889657824 1 | |
139 | 0.8865051903114188 0.9430219146482123 0.9349480968858133 1 | |
140 | 0.8794309880815072 0.9413302575932334 0.932487504805844 1 | |
141 | 0.8723567858515957 0.9396386005382545 0.9300269127258747 1 | |
142 | 0.8652825836216841 0.9379469434832757 0.9275663206459055 1 | |
143 | 0.8582083813917726 0.9362552864282968 0.9251057285659362 1 | |
144 | 0.851134179161861 0.9345636293733179 0.922645136485967 1 | |
145 | 0.8440599769319495 0.9328719723183391 0.9201845444059977 1 | |
146 | 0.8369857747020378 0.9311803152633603 0.9177239523260285 1 | |
147 | 0.8299115724721262 0.9294886582083814 0.9152633602460593 1 | |
148 | 0.8228373702422147 0.9277970011534026 0.9128027681660901 1 | |
149 | 0.8157631680123033 0.9261053440984237 0.9103421760861209 1 | |
150 | 0.8086889657823916 0.9244136870434448 0.9078815840061516 1 | |
151 | 0.80161476355248 0.922722029988466 0.9054209919261823 1 | |
152 | 0.7945405613225685 0.9210303729334871 0.9029603998462131 1 | |
153 | 0.7874663590926568 0.9193387158785082 0.9004998077662438 1 | |
154 | 0.7803921568627453 0.9176470588235294 0.8980392156862746 1 | |
155 | 0.7694732795078819 0.9131872356785853 0.8925028835063439 1 | |
156 | 0.7585544021530184 0.908727412533641 0.8869665513264131 1 | |
157 | 0.7476355247981549 0.9042675893886968 0.8814302191464823 1 | |
158 | 0.7367166474432914 0.8998077662437525 0.8758938869665515 1 | |
159 | 0.7257977700884278 0.8953479430988083 0.8703575547866207 1 | |
160 | 0.7148788927335643 0.890888119953864 0.8648212226066899 1 | |
161 | 0.7039600153787008 0.8864282968089198 0.8592848904267592 1 | |
162 | 0.6930411380238373 0.8819684736639755 0.8537485582468283 1 | |
163 | 0.6821222606689737 0.8775086505190313 0.8482122260668975 1 | |
164 | 0.6712033833141102 0.873048827374087 0.8426758938869667 1 | |
165 | 0.660284505959247 0.8685890042291429 0.8371395617070361 1 | |
166 | 0.6493656286043832 0.8641291810841984 0.8316032295271051 1 | |
167 | 0.6384467512495198 0.8596693579392543 0.8260668973471743 1 | |
168 | 0.6275278738946561 0.8552095347943101 0.8205305651672435 1 | |
169 | 0.6166089965397927 0.8507497116493657 0.8149942329873128 1 | |
170 | 0.6056901191849292 0.8462898885044216 0.8094579008073819 1 | |
171 | 0.5947712418300657 0.8418300653594772 0.8039215686274511 1 | |
172 | 0.5838523644752022 0.837370242214533 0.7983852364475204 1 | |
173 | 0.5729334871203386 0.8329104190695887 0.7928489042675895 1 | |
174 | 0.5620146097654751 0.8284505959246445 0.7873125720876587 1 | |
175 | 0.5510957324106116 0.8239907727797002 0.7817762399077279 1 | |
176 | 0.5401768550557481 0.819530949634756 0.7762399077277972 1 | |
177 | 0.5292579777008846 0.8150711264898117 0.7707035755478664 1 | |
178 | 0.518339100346021 0.8106113033448675 0.7651672433679355 1 | |
179 | 0.5074202229911575 0.8061514801999232 0.7596309111880047 1 | |
180 | 0.4961937716262979 0.7997693194925032 0.7530180699730875 1 | |
181 | 0.48465974625144237 0.7914648212226072 0.7453287197231838 1 | |
182 | 0.4731257208765862 0.7831603229527108 0.7376393694732797 1 | |
183 | 0.4615916955017304 0.7748558246828146 0.7299500192233758 1 | |
184 | 0.45005767012687453 0.7665513264129183 0.7222606689734719 1 | |
185 | 0.4385236447520187 0.7582468281430221 0.714571318723568 1 | |
186 | 0.4269896193771629 0.7499423298731259 0.7068819684736641 1 | |
187 | 0.415455594002307 0.7416378316032297 0.6991926182237602 1 | |
188 | 0.4039215686274512 0.7333333333333335 0.6915032679738563 1 | |
189 | 0.3923875432525954 0.7250288350634373 0.6838139177239524 1 | |
190 | 0.3808535178777395 0.7167243367935411 0.6761245674740486 1 | |
191 | 0.3693194925028837 0.7084198385236449 0.6684352172241447 1 | |
192 | 0.35778546712802783 0.7001153402537487 0.6607458669742408 1 | |
193 | 0.346251441753172 0.6918108419838525 0.653056516724337 1 | |
194 | 0.3347174163783162 0.6835063437139562 0.645367166474433 1 | |
195 | 0.32318339100346033 0.67520184544406 0.6376778162245291 1 | |
196 | 0.3116493656286045 0.6668973471741639 0.6299884659746252 1 | |
197 | 0.300115340253749 0.658592848904268 0.6222991157247215 1 | |
198 | 0.2885813148788928 0.6502883506343715 0.6146097654748175 1 | |
199 | 0.277047289504037 0.6419838523644753 0.6069204152249136 1 | |
200 | 0.2655132641291812 0.6336793540945791 0.5992310649750097 1 | |
201 | 0.2539792387543254 0.6253748558246829 0.5915417147251057 1 | |
202 | 0.2424452133794695 0.6170703575547867 0.5838523644752018 1 | |
203 | 0.2309111880046137 0.6087658592848905 0.576163014225298 1 | |
204 | 0.21937716262975787 0.6004613610149943 0.5684736639753941 1 | |
205 | 0.207843137254902 0.592156862745098 0.5607843137254902 1 | |
206 | 0.19984621299500194 0.5846212995001923 0.5532487504805844 1 | |
207 | 0.1918492887351019 0.5770857362552865 0.5457131872356786 1 | |
208 | 0.18385236447520187 0.5695501730103806 0.5381776239907727 1 | |
209 | 0.1758554402153018 0.5620146097654748 0.530642060745867 1 | |
210 | 0.16785851595540177 0.554479046520569 0.5231064975009612 1 | |
211 | 0.15986159169550174 0.5469434832756632 0.5155709342560554 1 | |
212 | 0.1518646674356017 0.5394079200307574 0.5080353710111496 1 | |
213 | 0.1438677431757019 0.5318723567858519 0.5004998077662439 1 | |
214 | 0.1358708189158016 0.5243367935409458 0.49296424452133797 1 | |
215 | 0.1278738946559016 0.51680123029604 0.48542868127643213 1 | |
216 | 0.11987697039600155 0.5092656670511342 0.47789311803152634 1 | |
217 | 0.11188004613610152 0.5017301038062284 0.47035755478662056 1 | |
218 | 0.10388312187620148 0.4941945405613226 0.4628219915417148 1 | |
219 | 0.09588619761630142 0.4866589773164168 0.45528642829680893 1 | |
220 | 0.0878892733564014 0.479123414071511 0.44775086505190315 1 | |
221 | 0.07989234909650136 0.47158785082660515 0.4402153018069973 1 | |
222 | 0.07189542483660133 0.46405228758169936 0.4326797385620915 1 | |
223 | 0.06389850057670127 0.4565167243367936 0.42514417531718574 1 | |
224 | 0.05590157631680123 0.44898116109188774 0.4176086120722799 1 | |
225 | 0.0479046520569012 0.44144559784698195 0.4100730488273741 1 | |
226 | 0.03990772779700116 0.4339100346020761 0.40253748558246827 1 | |
227 | 0.03191080353710113 0.4263744713571703 0.3950019223375625 1 | |
228 | 0.023913879277201094 0.41883890811226454 0.3874663590926567 1 | |
229 | 0.015916955017301282 0.411303344867359 0.37993079584775113 1 | |
230 | 0.007920030757401025 0.40376778162245297 0.3723952326028451 1 | |
231 | 0.0038446751249519417 0.3967704728950404 0.36509034986543637 1 | |
232 | 0.003690888119953864 0.39031141868512115 0.3580161476355248 1 | |
233 | 0.003537101114955786 0.3838523644752019 0.35094194540561324 1 | |
234 | 0.0033833141099577084 0.3773933102652826 0.3438677431757017 1 | |
235 | 0.0032295271049596307 0.37093425605536334 0.3367935409457901 1 | |
236 | 0.0030757400999615533 0.3644752018454441 0.32971933871587855 1 | |
237 | 0.0029219530949634756 0.3580161476355248 0.32264513648596693 1 | |
238 | 0.002768166089965398 0.35155709342560554 0.31557093425605537 1 | |
239 | 0.0026143790849673205 0.34509803921568627 0.3084967320261438 1 | |
240 | 0.0024605920799692423 0.338638985005767 0.30142252979623224 1 | |
241 | 0.002306805074971165 0.33217993079584773 0.2943483275663207 1 | |
242 | 0.0021530180699730873 0.3257208765859285 0.28727412533640906 1 | |
243 | 0.0019992310649750095 0.31926182237600925 0.2801999231064975 1 | |
244 | 0.0018454440599769317 0.31280276816609 0.27312572087658593 1 | |
245 | 0.0016916570549788588 0.3063437139561709 0.26605151864667453 1 | |
246 | 0.0015378700499807767 0.29988465974625145 0.2589773164167628 1 | |
247 | 0.001384083044982699 0.2934256055363322 0.2519031141868512 1 | |
248 | 0.0012302960399846212 0.2869665513264129 0.24482891195693965 1 | |
249 | 0.0010765090349865438 0.2805074971164937 0.23775470972702809 1 | |
250 | 0.0009227220299884661 0.2740484429065744 0.2306805074971165 1 | |
251 | 0.0007689350249903883 0.26758938869665516 0.22360630526720493 1 | |
252 | 0.0006151480199923106 0.26113033448673584 0.21653210303729334 1 | |
253 | 0.00046136101499423326 0.2546712802768166 0.20945790080738177 1 | |
254 | 0.0003075740099961555 0.24821222606689736 0.2023836985774702 1 | |
255 | 0.00015378700499807775 0.2417531718569781 0.19530949634755862 1 | |
256 | 0 0.23529411764705882 0.18823529411764706 1 |
0 | # RdBu colormap (based on Matplotlib colormap of the same name) | |
1 | 0.403921568627451 0 0.12156862745098039 1 | |
2 | 0.4154555940023068 0.003690888119953864 0.12341407151095732 1 | |
3 | 0.4269896193771626 0.007381776239907728 0.12525951557093426 1 | |
4 | 0.43852364475201844 0.011072664359861591 0.12710495963091117 1 | |
5 | 0.45005767012687425 0.014763552479815456 0.12895040369088812 1 | |
6 | 0.4615916955017301 0.01845444059976932 0.13079584775086506 1 | |
7 | 0.47312572087658594 0.022145328719723183 0.132641291810842 1 | |
8 | 0.48465974625144176 0.02583621683967705 0.1344867358708189 1 | |
9 | 0.4961937716262976 0.02952710495963091 0.13633217993079585 1 | |
10 | 0.5077277970011534 0.03321799307958478 0.13817762399077277 1 | |
11 | 0.5192618223760093 0.03690888119953864 0.1400230680507497 1 | |
12 | 0.5307958477508651 0.0405997693194925 0.14186851211072665 1 | |
13 | 0.5423298731257209 0.044290657439446365 0.1437139561707036 1 | |
14 | 0.5538638985005767 0.04798154555940023 0.1455594002306805 1 | |
15 | 0.5653979238754325 0.0516724336793541 0.14740484429065745 1 | |
16 | 0.5769319492502883 0.05536332179930796 0.14925028835063436 1 | |
17 | 0.5884659746251442 0.05905420991926182 0.1510957324106113 1 | |
18 | 0.6 0.06274509803921569 0.15294117647058825 1 | |
19 | 0.6115340253748558 0.06643598615916955 0.1547866205305652 1 | |
20 | 0.6230680507497116 0.07012687427912341 0.1566320645905421 1 | |
21 | 0.6346020761245674 0.07381776239907728 0.15847750865051904 1 | |
22 | 0.6461361014994232 0.07750865051903114 0.16032295271049596 1 | |
23 | 0.6576701268742791 0.081199538638985 0.1621683967704729 1 | |
24 | 0.669204152249135 0.08489042675893888 0.16401384083044984 1 | |
25 | 0.6807381776239907 0.08858131487889273 0.16585928489042678 1 | |
26 | 0.6922722029988466 0.09227220299884659 0.1677047289504037 1 | |
27 | 0.7008073817762399 0.09965397923875433 0.17124183006535948 1 | |
28 | 0.7063437139561707 0.11072664359861592 0.17647058823529413 1 | |
29 | 0.7118800461361015 0.12179930795847752 0.18169934640522878 1 | |
30 | 0.7174163783160322 0.1328719723183391 0.1869281045751634 1 | |
31 | 0.7229527104959631 0.14394463667820068 0.19215686274509805 1 | |
32 | 0.7284890426758939 0.15501730103806227 0.1973856209150327 1 | |
33 | 0.7340253748558246 0.16608996539792387 0.20261437908496732 1 | |
34 | 0.7395617070357554 0.1771626297577854 0.20784313725490194 1 | |
35 | 0.7450980392156863 0.18823529411764706 0.2130718954248366 1 | |
36 | 0.7506343713956171 0.19930795847750865 0.21830065359477124 1 | |
37 | 0.7561707035755478 0.21038062283737025 0.22352941176470587 1 | |
38 | 0.7617070357554786 0.22145328719723176 0.2287581699346405 1 | |
39 | 0.7672433679354095 0.2325259515570934 0.23398692810457516 1 | |
40 | 0.7727797001153403 0.243598615916955 0.2392156862745098 1 | |
41 | 0.778316032295271 0.2546712802768166 0.24444444444444444 1 | |
42 | 0.7838523644752018 0.2657439446366781 0.24967320261437903 1 | |
43 | 0.7893886966551327 0.2768166089965398 0.2549019607843137 1 | |
44 | 0.7949250288350634 0.28788927335640135 0.26013071895424833 1 | |
45 | 0.8004613610149942 0.298961937716263 0.265359477124183 1 | |
46 | 0.805997693194925 0.3100346020761245 0.2705882352941176 1 | |
47 | 0.8115340253748559 0.3211072664359862 0.2758169934640523 1 | |
48 | 0.8170703575547866 0.33217993079584773 0.28104575163398693 1 | |
49 | 0.8226066897347174 0.34325259515570933 0.28627450980392155 1 | |
50 | 0.8281430219146482 0.35432525951557087 0.2915032679738562 1 | |
51 | 0.833679354094579 0.3653979238754325 0.29673202614379085 1 | |
52 | 0.8392156862745098 0.3764705882352941 0.30196078431372547 1 | |
53 | 0.8438292964244521 0.3870818915801615 0.3101114955786236 1 | |
54 | 0.8484429065743945 0.39769319492502875 0.31826220684352163 1 | |
55 | 0.8530565167243368 0.4083044982698962 0.3264129181084198 1 | |
56 | 0.8576701268742791 0.41891580161476355 0.3345636293733179 1 | |
57 | 0.8622837370242215 0.42952710495963087 0.34271434063821604 1 | |
58 | 0.8668973471741638 0.44013840830449813 0.35086505190311407 1 | |
59 | 0.8715109573241061 0.4507497116493656 0.35901576316801226 1 | |
60 | 0.8761245674740484 0.46136101499423293 0.3671664744329104 1 | |
61 | 0.8807381776239908 0.4719723183391003 0.3753171856978085 1 | |
62 | 0.8853517877739331 0.48258362168396757 0.38346789696270656 1 | |
63 | 0.8899653979238754 0.493194925028835 0.3916186082276047 1 | |
64 | 0.8945790080738177 0.5038062283737024 0.39976931949250283 1 | |
65 | 0.8991926182237601 0.5144175317185697 0.4079200307574009 1 | |
66 | 0.9038062283737024 0.5250288350634371 0.41607074202229904 1 | |
67 | 0.9084198385236447 0.5356401384083043 0.424221453287197 1 | |
68 | 0.913033448673587 0.5462514417531718 0.43237216455209526 1 | |
69 | 0.9176470588235294 0.5568627450980391 0.44052287581699334 1 | |
70 | 0.9222606689734717 0.5674740484429065 0.4486735870818915 1 | |
71 | 0.926874279123414 0.5780853517877739 0.4568242983467896 1 | |
72 | 0.9314878892733564 0.5886966551326411 0.4649750096116877 1 | |
73 | 0.9361014994232987 0.5993079584775085 0.4731257208765858 1 | |
74 | 0.940715109573241 0.6099192618223759 0.4812764321414839 1 | |
75 | 0.9453287197231833 0.6205305651672431 0.48942714340638194 1 | |
76 | 0.9499423298731257 0.6311418685121106 0.49757785467128013 1 | |
77 | 0.954555940023068 0.641753171856978 0.5057285659361782 1 | |
78 | 0.9575547866205306 0.6512110726643597 0.515109573241061 1 | |
79 | 0.9589388696655133 0.659515570934256 0.5257208765859284 1 | |
80 | 0.960322952710496 0.6678200692041522 0.5363321799307956 1 | |
81 | 0.9617070357554787 0.6761245674740484 0.546943483275663 1 | |
82 | 0.9630911188004614 0.6844290657439446 0.5575547866205304 1 | |
83 | 0.9644752018454441 0.6927335640138407 0.5681660899653976 1 | |
84 | 0.9658592848904268 0.701038062283737 0.5787773933102651 1 | |
85 | 0.9672433679354094 0.7093425605536331 0.5893886966551325 1 | |
86 | 0.9686274509803922 0.7176470588235293 0.5999999999999999 1 | |
87 | 0.9700115340253749 0.7259515570934255 0.6106113033448672 1 | |
88 | 0.9713956170703576 0.7342560553633217 0.6212226066897346 1 | |
89 | 0.9727797001153403 0.7425605536332179 0.631833910034602 1 | |
90 | 0.9741637831603229 0.7508650519031141 0.6424452133794694 1 | |
91 | 0.9755478662053056 0.7591695501730102 0.6530565167243365 1 | |
92 | 0.9769319492502884 0.7674740484429066 0.6636678200692041 1 | |
93 | 0.9783160322952711 0.7757785467128027 0.6742791234140715 1 | |
94 | 0.9797001153402538 0.7840830449826989 0.6848904267589389 1 | |
95 | 0.9810841983852365 0.7923875432525951 0.6955017301038062 1 | |
96 | 0.9824682814302191 0.8006920415224913 0.7061130334486736 1 | |
97 | 0.9838523644752019 0.8089965397923875 0.7167243367935409 1 | |
98 | 0.9852364475201846 0.8173010380622837 0.7273356401384083 1 | |
99 | 0.9866205305651673 0.8256055363321797 0.7379469434832755 1 | |
100 | 0.98800461361015 0.833910034602076 0.748558246828143 1 | |
101 | 0.9893886966551326 0.8422145328719722 0.7591695501730104 1 | |
102 | 0.9907727797001153 0.8505190311418684 0.7697808535178777 1 | |
103 | 0.9921568627450981 0.8588235294117647 0.7803921568627451 1 | |
104 | 0.9912341407151096 0.8631295655517108 0.7877739331026529 1 | |
105 | 0.9903114186851212 0.867435601691657 0.7951557093425605 1 | |
106 | 0.9893886966551326 0.8717416378316032 0.8025374855824683 1 | |
107 | 0.9884659746251442 0.8760476739715493 0.809919261822376 1 | |
108 | 0.9875432525951557 0.8803537101114955 0.8173010380622837 1 | |
109 | 0.9866205305651673 0.8846597462514417 0.8246828143021915 1 | |
110 | 0.9856978085351787 0.8889657823913879 0.8320645905420992 1 | |
111 | 0.9847750865051903 0.8932718185313341 0.8394463667820069 1 | |
112 | 0.9838523644752019 0.8975778546712803 0.8468281430219147 1 | |
113 | 0.9829296424452134 0.9018838908112264 0.8542099192618224 1 | |
114 | 0.982006920415225 0.9061899269511726 0.8615916955017301 1 | |
115 | 0.9810841983852365 0.9104959630911187 0.8689734717416377 1 | |
116 | 0.980161476355248 0.914801999231065 0.8763552479815455 1 | |
117 | 0.9792387543252595 0.9191080353710112 0.8837370242214533 1 | |
118 | 0.9783160322952711 0.9234140715109573 0.891118800461361 1 | |
119 | 0.9773933102652826 0.9277201076509035 0.8985005767012687 1 | |
120 | 0.9764705882352941 0.9320261437908497 0.9058823529411765 1 | |
121 | 0.9755478662053056 0.9363321799307959 0.9132641291810842 1 | |
122 | 0.9746251441753172 0.940638216070742 0.9206459054209919 1 | |
123 | 0.9737024221453288 0.9449442522106881 0.9280276816608996 1 | |
124 | 0.9727797001153402 0.9492502883506344 0.9354094579008074 1 | |
125 | 0.9718569780853518 0.9535563244905806 0.9427912341407151 1 | |
126 | 0.9709342560553633 0.9578623606305268 0.9501730103806229 1 | |
127 | 0.9700115340253749 0.9621683967704728 0.9575547866205305 1 | |
128 | 0.9690888119953864 0.9664744329104191 0.9649365628604383 1 | |
129 | 0.9657054978854287 0.9672433679354094 0.9680891964628989 1 | |
130 | 0.9598615916955018 0.9644752018454441 0.9670126874279124 1 | |
131 | 0.9540176855055748 0.9617070357554787 0.9659361783929258 1 | |
132 | 0.9481737793156478 0.9589388696655132 0.9648596693579392 1 | |
133 | 0.942329873125721 0.956170703575548 0.9637831603229527 1 | |
134 | 0.936485966935794 0.9534025374855825 0.9627066512879662 1 | |
135 | 0.930642060745867 0.9506343713956171 0.9616301422529796 1 | |
136 | 0.92479815455594 0.9478662053056517 0.960553633217993 1 | |
137 | 0.9189542483660131 0.9450980392156864 0.9594771241830066 1 | |
138 | 0.9131103421760862 0.9423298731257209 0.95840061514802 1 | |
139 | 0.9072664359861592 0.9395617070357555 0.9573241061130334 1 | |
140 | 0.9014225297962323 0.9367935409457901 0.956247597078047 1 | |
141 | 0.8955786236063054 0.9340253748558247 0.9551710880430604 1 | |
142 | 0.8897347174163783 0.9312572087658594 0.9540945790080738 1 | |
143 | 0.8838908112264514 0.9284890426758939 0.9530180699730872 1 | |
144 | 0.8780469050365245 0.9257208765859286 0.9519415609381008 1 | |
145 | 0.8722029988465976 0.9229527104959632 0.9508650519031142 1 | |
146 | 0.8663590926566707 0.9201845444059977 0.9497885428681276 1 | |
147 | 0.8605151864667436 0.9174163783160324 0.9487120338331411 1 | |
148 | 0.8546712802768167 0.914648212226067 0.9476355247981546 1 | |
149 | 0.8488273740868899 0.9118800461361016 0.946559015763168 1 | |
150 | 0.8429834678969628 0.9091118800461362 0.9454825067281815 1 | |
151 | 0.8371395617070359 0.9063437139561707 0.9444059976931949 1 | |
152 | 0.8312956555171089 0.9035755478662054 0.9433294886582084 1 | |
153 | 0.825451749327182 0.90080738177624 0.9422529796232219 1 | |
154 | 0.8196078431372551 0.8980392156862746 0.9411764705882353 1 | |
155 | 0.8099192618223763 0.8931180315263362 0.93840830449827 1 | |
156 | 0.8002306805074973 0.8881968473663977 0.9356401384083045 1 | |
157 | 0.7905420991926184 0.8832756632064592 0.9328719723183392 1 | |
158 | 0.7808535178777396 0.8783544790465208 0.9301038062283737 1 | |
159 | 0.7711649365628607 0.8734332948865823 0.9273356401384084 1 | |
160 | 0.7614763552479817 0.8685121107266438 0.924567474048443 1 | |
161 | 0.7517877739331029 0.8635909265667053 0.9217993079584775 1 | |
162 | 0.742099192618224 0.8586697424067669 0.9190311418685122 1 | |
163 | 0.7324106113033451 0.8537485582468283 0.9162629757785468 1 | |
164 | 0.7227220299884662 0.8488273740868898 0.9134948096885814 1 | |
165 | 0.7130334486735876 0.8439061899269515 0.9107266435986161 1 | |
166 | 0.7033448673587084 0.8389850057670128 0.9079584775086506 1 | |
167 | 0.6936562860438296 0.8340638216070744 0.9051903114186852 1 | |
168 | 0.6839677047289506 0.8291426374471359 0.9024221453287198 1 | |
169 | 0.6742791234140717 0.8242214532871974 0.8996539792387545 1 | |
170 | 0.6645905420991929 0.819300269127259 0.896885813148789 1 | |
171 | 0.654901960784314 0.8143790849673205 0.8941176470588236 1 | |
172 | 0.645213379469435 0.8094579008073819 0.8913494809688582 1 | |
173 | 0.6355247981545562 0.8045367166474434 0.8885813148788928 1 | |
174 | 0.6258362168396773 0.7996155324875049 0.8858131487889275 1 | |
175 | 0.6161476355247983 0.7946943483275665 0.883044982698962 1 | |
176 | 0.6064590542099195 0.789773164167628 0.8802768166089966 1 | |
177 | 0.5967704728950406 0.7848519800076895 0.8775086505190313 1 | |
178 | 0.5870818915801617 0.779930795847751 0.8747404844290658 1 | |
179 | 0.5773933102652828 0.7750096116878126 0.8719723183391004 1 | |
180 | 0.5664744329104193 0.7687043444828915 0.8685121107266437 1 | |
181 | 0.5543252595155715 0.7610149942329878 0.8643598615916958 1 | |
182 | 0.5421760861207231 0.7533256439830837 0.8602076124567475 1 | |
183 | 0.530026912725875 0.7456362937331797 0.8560553633217994 1 | |
184 | 0.5178777393310268 0.7379469434832758 0.8519031141868513 1 | |
185 | 0.5057285659361787 0.7302575932333719 0.8477508650519032 1 | |
186 | 0.4935793925413305 0.7225682429834681 0.8435986159169551 1 | |
187 | 0.4814302191464823 0.7148788927335642 0.839446366782007 1 | |
188 | 0.4692810457516342 0.7071895424836603 0.8352941176470589 1 | |
189 | 0.45713187235678604 0.6995001922337564 0.8311418685121108 1 | |
190 | 0.4449826989619379 0.6918108419838525 0.8269896193771626 1 | |
191 | 0.43283352556708976 0.6841214917339487 0.8228373702422146 1 | |
192 | 0.42068435217224165 0.6764321414840447 0.8186851211072664 1 | |
193 | 0.4085351787773935 0.6687427912341408 0.8145328719723184 1 | |
194 | 0.3963860053825453 0.6610534409842369 0.8103806228373702 1 | |
195 | 0.38423683198769715 0.653364090734333 0.8062283737024222 1 | |
196 | 0.37208765859284904 0.6456747404844292 0.8020761245674741 1 | |
197 | 0.3599384851980012 0.6379853902345254 0.7979238754325261 1 | |
198 | 0.34778931180315276 0.6302960399846214 0.7937716262975778 1 | |
199 | 0.3356401384083046 0.6226066897347174 0.7896193771626298 1 | |
200 | 0.3234909650134564 0.6149173394848135 0.7854671280276817 1 | |
201 | 0.3113417916186083 0.6072279892349096 0.7813148788927335 1 | |
202 | 0.29919261822376014 0.5995386389850057 0.7771626297577854 1 | |
203 | 0.287043444828912 0.5918492887351019 0.7730103806228373 1 | |
204 | 0.27489427143406386 0.584159938485198 0.7688581314878893 1 | |
205 | 0.2627450980392157 0.5764705882352941 0.7647058823529411 1 | |
206 | 0.2575163398692811 0.5695501730103806 0.7611687812379854 1 | |
207 | 0.2522875816993464 0.5626297577854671 0.7576316801230295 1 | |
208 | 0.24705882352941178 0.5557093425605536 0.7540945790080738 1 | |
209 | 0.24183006535947713 0.5487889273356401 0.750557477893118 1 | |
210 | 0.2366013071895425 0.5418685121107266 0.7470203767781622 1 | |
211 | 0.23137254901960785 0.5349480968858131 0.7434832756632064 1 | |
212 | 0.2261437908496732 0.5280276816608996 0.7399461745482506 1 | |
213 | 0.22091503267973872 0.5211072664359864 0.736409073433295 1 | |
214 | 0.21568627450980393 0.5141868512110727 0.7328719723183391 1 | |
215 | 0.21045751633986928 0.5072664359861592 0.7293348712033833 1 | |
216 | 0.20522875816993463 0.5003460207612457 0.7257977700884275 1 | |
217 | 0.2 0.4934256055363322 0.7222606689734717 1 | |
218 | 0.1947712418300654 0.4865051903114187 0.718723567858516 1 | |
219 | 0.1895424836601307 0.47958477508650516 0.7151864667435601 1 | |
220 | 0.1843137254901961 0.47266435986159167 0.7116493656286044 1 | |
221 | 0.17908496732026147 0.46574394463667823 0.7081122645136486 1 | |
222 | 0.17385620915032682 0.45882352941176474 0.7045751633986929 1 | |
223 | 0.16862745098039217 0.4519031141868512 0.701038062283737 1 | |
224 | 0.16339869281045752 0.4449826989619377 0.6975009611687812 1 | |
225 | 0.15816993464052287 0.43806228373702427 0.6939638600538255 1 | |
226 | 0.15294117647058825 0.4311418685121108 0.6904267589388697 1 | |
227 | 0.1477124183006536 0.42422145328719724 0.6868896578239139 1 | |
228 | 0.14248366013071895 0.41730103806228375 0.6833525567089581 1 | |
229 | 0.13725490196078446 0.4103806228373704 0.6798154555940025 1 | |
230 | 0.1320261437908497 0.40346020761245677 0.6762783544790466 1 | |
231 | 0.12725874663590928 0.3958477508650519 0.6687427912341407 1 | |
232 | 0.1229527104959631 0.3875432525951557 0.6572087658592849 1 | |
233 | 0.11864667435601693 0.37923875432525955 0.6456747404844291 1 | |
234 | 0.11434063821607075 0.37093425605536334 0.6341407151095733 1 | |
235 | 0.11003460207612457 0.36262975778546713 0.6226066897347174 1 | |
236 | 0.10572856593617841 0.3543252595155709 0.6110726643598616 1 | |
237 | 0.10142252979623223 0.34602076124567477 0.5995386389850058 1 | |
238 | 0.09711649365628605 0.33771626297577856 0.58800461361015 1 | |
239 | 0.09281045751633987 0.3294117647058824 0.5764705882352942 1 | |
240 | 0.0885044213763937 0.3211072664359862 0.5649365628604384 1 | |
241 | 0.08419838523644753 0.31280276816609 0.5534025374855824 1 | |
242 | 0.07989234909650135 0.3044982698961938 0.5418685121107266 1 | |
243 | 0.07558631295655519 0.29619377162629756 0.5303344867358708 1 | |
244 | 0.071280276816609 0.2878892733564014 0.518800461361015 1 | |
245 | 0.06697424067666295 0.2795847750865054 0.5072664359861595 1 | |
246 | 0.06266820453671666 0.27128027681660905 0.49573241061130335 1 | |
247 | 0.05836216839677047 0.26297577854671284 0.48419838523644754 1 | |
248 | 0.054056132256824305 0.2546712802768166 0.4726643598615917 1 | |
249 | 0.049750096116878126 0.24636678200692042 0.4611303344867359 1 | |
250 | 0.04544405997693196 0.23806228373702423 0.4495963091118801 1 | |
251 | 0.04113802383698577 0.22975778546712802 0.4380622837370242 1 | |
252 | 0.0368319876970396 0.22145328719723184 0.4265282583621684 1 | |
253 | 0.032525951557093424 0.21314878892733566 0.4149942329873126 1 | |
254 | 0.02821991541714726 0.20484429065743945 0.40346020761245677 1 | |
255 | 0.02391387927720108 0.19653979238754324 0.3919261822376009 1 | |
256 | 0.0196078431372549 0.18823529411764706 0.3803921568627451 1 |
0 | # inferno colormap (based on Matplotlib colormap of the same name) | |
1 | 0.001462 466e-6 0.013866 1 | |
2 | 0.002267 0.00127 0.01857 1 | |
3 | 0.003299 0.002249 0.024239 1 | |
4 | 0.004547 0.003392 0.030909 1 | |
5 | 0.006006 0.004692 0.038558 1 | |
6 | 0.007676 0.006136 0.046836 1 | |
7 | 0.009561 0.007713 0.055143 1 | |
8 | 0.011663 0.009417 0.06346 1 | |
9 | 0.013995 0.011225 0.071862 1 | |
10 | 0.016561 0.013136 0.080282 1 | |
11 | 0.019373 0.015133 0.088767 1 | |
12 | 0.022447 0.017199 0.097327 1 | |
13 | 0.025793 0.019331 0.10593 1 | |
14 | 0.029432 0.021503 0.114621 1 | |
15 | 0.033385 0.023702 0.123397 1 | |
16 | 0.037668 0.025921 0.132232 1 | |
17 | 0.042253 0.028139 0.141141 1 | |
18 | 0.046915 0.030324 0.150164 1 | |
19 | 0.051644 0.032474 0.159254 1 | |
20 | 0.056449 0.034569 0.168414 1 | |
21 | 0.06134 0.03659 0.177642 1 | |
22 | 0.066331 0.038504 0.186962 1 | |
23 | 0.071429 0.040294 0.196354 1 | |
24 | 0.076637 0.041905 0.205799 1 | |
25 | 0.081962 0.043328 0.215289 1 | |
26 | 0.087411 0.044556 0.224813 1 | |
27 | 0.09299 0.045583 0.234358 1 | |
28 | 0.098702 0.046402 0.243904 1 | |
29 | 0.104551 0.047008 0.25343 1 | |
30 | 0.110536 0.047399 0.262912 1 | |
31 | 0.116656 0.047574 0.272321 1 | |
32 | 0.122908 0.047536 0.281624 1 | |
33 | 0.129285 0.047293 0.290788 1 | |
34 | 0.135778 0.046856 0.299776 1 | |
35 | 0.142378 0.046242 0.308553 1 | |
36 | 0.149073 0.045468 0.317085 1 | |
37 | 0.15585 0.044559 0.325338 1 | |
38 | 0.162689 0.043554 0.333277 1 | |
39 | 0.169575 0.042489 0.340874 1 | |
40 | 0.176493 0.041402 0.348111 1 | |
41 | 0.183429 0.040329 0.354971 1 | |
42 | 0.190367 0.039309 0.361447 1 | |
43 | 0.197297 0.0384 0.367535 1 | |
44 | 0.204209 0.037632 0.373238 1 | |
45 | 0.211095 0.03703 0.378563 1 | |
46 | 0.217949 0.036615 0.383522 1 | |
47 | 0.224763 0.036405 0.388129 1 | |
48 | 0.231538 0.036405 0.3924 1 | |
49 | 0.238273 0.036621 0.396353 1 | |
50 | 0.244967 0.037055 0.400007 1 | |
51 | 0.25162 0.037705 0.403378 1 | |
52 | 0.258234 0.038571 0.406485 1 | |
53 | 0.26481 0.039647 0.409345 1 | |
54 | 0.271347 0.040922 0.411976 1 | |
55 | 0.27785 0.042353 0.414392 1 | |
56 | 0.284321 0.043933 0.416608 1 | |
57 | 0.290763 0.045644 0.418637 1 | |
58 | 0.297178 0.04747 0.420491 1 | |
59 | 0.303568 0.049396 0.422182 1 | |
60 | 0.309935 0.051407 0.423721 1 | |
61 | 0.316282 0.05349 0.425116 1 | |
62 | 0.32261 0.055634 0.426377 1 | |
63 | 0.328921 0.057827 0.427511 1 | |
64 | 0.335217 0.06006 0.428524 1 | |
65 | 0.3415 0.062325 0.429425 1 | |
66 | 0.347771 0.064616 0.430217 1 | |
67 | 0.354032 0.066925 0.430906 1 | |
68 | 0.360284 0.069247 0.431497 1 | |
69 | 0.366529 0.071579 0.431994 1 | |
70 | 0.372768 0.073915 0.4324 1 | |
71 | 0.379001 0.076253 0.432719 1 | |
72 | 0.385228 0.078591 0.432955 1 | |
73 | 0.391453 0.080927 0.433109 1 | |
74 | 0.397674 0.083257 0.433183 1 | |
75 | 0.403894 0.08558 0.433179 1 | |
76 | 0.410113 0.087896 0.433098 1 | |
77 | 0.416331 0.090203 0.432943 1 | |
78 | 0.422549 0.092501 0.432714 1 | |
79 | 0.428768 0.09479 0.432412 1 | |
80 | 0.434987 0.097069 0.432039 1 | |
81 | 0.441207 0.099338 0.431594 1 | |
82 | 0.447428 0.101597 0.43108 1 | |
83 | 0.453651 0.103848 0.430498 1 | |
84 | 0.459875 0.106089 0.429846 1 | |
85 | 0.4661 0.108322 0.429125 1 | |
86 | 0.472328 0.110547 0.428334 1 | |
87 | 0.478558 0.112764 0.427475 1 | |
88 | 0.484789 0.114974 0.426548 1 | |
89 | 0.491022 0.117179 0.425552 1 | |
90 | 0.497257 0.119379 0.424488 1 | |
91 | 0.503493 0.121575 0.423356 1 | |
92 | 0.50973 0.123769 0.422156 1 | |
93 | 0.515967 0.12596 0.420887 1 | |
94 | 0.522206 0.12815 0.419549 1 | |
95 | 0.528444 0.130341 0.418142 1 | |
96 | 0.534683 0.132534 0.416667 1 | |
97 | 0.54092 0.134729 0.415123 1 | |
98 | 0.547157 0.136929 0.413511 1 | |
99 | 0.553392 0.139134 0.411829 1 | |
100 | 0.559624 0.141346 0.410078 1 | |
101 | 0.565854 0.143567 0.408258 1 | |
102 | 0.572081 0.145797 0.406369 1 | |
103 | 0.578304 0.148039 0.404411 1 | |
104 | 0.584521 0.150294 0.402385 1 | |
105 | 0.590734 0.152563 0.40029 1 | |
106 | 0.59694 0.154848 0.398125 1 | |
107 | 0.603139 0.157151 0.395891 1 | |
108 | 0.60933 0.159474 0.393589 1 | |
109 | 0.615513 0.161817 0.391219 1 | |
110 | 0.621685 0.164184 0.388781 1 | |
111 | 0.627847 0.166575 0.386276 1 | |
112 | 0.633998 0.168992 0.383704 1 | |
113 | 0.640135 0.171438 0.381065 1 | |
114 | 0.64626 0.173914 0.378359 1 | |
115 | 0.652369 0.176421 0.375586 1 | |
116 | 0.658463 0.178962 0.372748 1 | |
117 | 0.66454 0.181539 0.369846 1 | |
118 | 0.670599 0.184153 0.366879 1 | |
119 | 0.676638 0.186807 0.363849 1 | |
120 | 0.682656 0.189501 0.360757 1 | |
121 | 0.688653 0.192239 0.357603 1 | |
122 | 0.694627 0.195021 0.354388 1 | |
123 | 0.700576 0.197851 0.351113 1 | |
124 | 0.7065 0.200728 0.347777 1 | |
125 | 0.712396 0.203656 0.344383 1 | |
126 | 0.718264 0.206636 0.340931 1 | |
127 | 0.724103 0.20967 0.337424 1 | |
128 | 0.729909 0.212759 0.333861 1 | |
129 | 0.735683 0.215906 0.330245 1 | |
130 | 0.741423 0.219112 0.326576 1 | |
131 | 0.747127 0.222378 0.322856 1 | |
132 | 0.752794 0.225706 0.319085 1 | |
133 | 0.758422 0.229097 0.315266 1 | |
134 | 0.76401 0.232554 0.311399 1 | |
135 | 0.769556 0.236077 0.307485 1 | |
136 | 0.775059 0.239667 0.303526 1 | |
137 | 0.780517 0.243327 0.299523 1 | |
138 | 0.785929 0.247056 0.295477 1 | |
139 | 0.791293 0.250856 0.29139 1 | |
140 | 0.796607 0.254728 0.287264 1 | |
141 | 0.801871 0.258674 0.283099 1 | |
142 | 0.807082 0.262692 0.278898 1 | |
143 | 0.812239 0.266786 0.274661 1 | |
144 | 0.817341 0.270954 0.27039 1 | |
145 | 0.822386 0.275197 0.266085 1 | |
146 | 0.827372 0.279517 0.26175 1 | |
147 | 0.832299 0.283913 0.257383 1 | |
148 | 0.837165 0.288385 0.252988 1 | |
149 | 0.841969 0.292933 0.248564 1 | |
150 | 0.846709 0.297559 0.244113 1 | |
151 | 0.851384 0.30226 0.239636 1 | |
152 | 0.855992 0.307038 0.235133 1 | |
153 | 0.860533 0.311892 0.230606 1 | |
154 | 0.865006 0.316822 0.226055 1 | |
155 | 0.869409 0.321827 0.221482 1 | |
156 | 0.873741 0.326906 0.216886 1 | |
157 | 0.878001 0.33206 0.212268 1 | |
158 | 0.882188 0.337287 0.207628 1 | |
159 | 0.886302 0.342586 0.202968 1 | |
160 | 0.890341 0.347957 0.198286 1 | |
161 | 0.894305 0.353399 0.193584 1 | |
162 | 0.898192 0.358911 0.18886 1 | |
163 | 0.902003 0.364492 0.184116 1 | |
164 | 0.905735 0.37014 0.17935 1 | |
165 | 0.90939 0.375856 0.174563 1 | |
166 | 0.912966 0.381636 0.169755 1 | |
167 | 0.916462 0.387481 0.164924 1 | |
168 | 0.919879 0.393389 0.16007 1 | |
169 | 0.923215 0.399359 0.155193 1 | |
170 | 0.92647 0.405389 0.150292 1 | |
171 | 0.929644 0.411479 0.145367 1 | |
172 | 0.932737 0.417627 0.140417 1 | |
173 | 0.935747 0.423831 0.13544 1 | |
174 | 0.938675 0.430091 0.130438 1 | |
175 | 0.941521 0.436405 0.125409 1 | |
176 | 0.944285 0.442772 0.120354 1 | |
177 | 0.946965 0.449191 0.115272 1 | |
178 | 0.949562 0.45566 0.110164 1 | |
179 | 0.952075 0.462178 0.105031 1 | |
180 | 0.954506 0.468744 0.099874 1 | |
181 | 0.956852 0.475356 0.094695 1 | |
182 | 0.959114 0.482014 0.089499 1 | |
183 | 0.961293 0.488716 0.084289 1 | |
184 | 0.963387 0.495462 0.079073 1 | |
185 | 0.965397 0.502249 0.073859 1 | |
186 | 0.967322 0.509078 0.068659 1 | |
187 | 0.969163 0.515946 0.063488 1 | |
188 | 0.970919 0.522853 0.058367 1 | |
189 | 0.97259 0.529798 0.053324 1 | |
190 | 0.974176 0.53678 0.048392 1 | |
191 | 0.975677 0.543798 0.043618 1 | |
192 | 0.977092 0.55085 0.03905 1 | |
193 | 0.978422 0.557937 0.034931 1 | |
194 | 0.979666 0.565057 0.031409 1 | |
195 | 0.980824 0.572209 0.028508 1 | |
196 | 0.981895 0.579392 0.02625 1 | |
197 | 0.982881 0.586606 0.024661 1 | |
198 | 0.983779 0.593849 0.02377 1 | |
199 | 0.984591 0.601122 0.023606 1 | |
200 | 0.985315 0.608422 0.024202 1 | |
201 | 0.985952 0.61575 0.025592 1 | |
202 | 0.986502 0.623105 0.027814 1 | |
203 | 0.986964 0.630485 0.030908 1 | |
204 | 0.987337 0.63789 0.034916 1 | |
205 | 0.987622 0.64532 0.039886 1 | |
206 | 0.987819 0.652773 0.045581 1 | |
207 | 0.987926 0.66025 0.05175 1 | |
208 | 0.987945 0.667748 0.058329 1 | |
209 | 0.987874 0.675267 0.065257 1 | |
210 | 0.987714 0.682807 0.072489 1 | |
211 | 0.987464 0.690366 0.07999 1 | |
212 | 0.987124 0.697944 0.087731 1 | |
213 | 0.986694 0.70554 0.095694 1 | |
214 | 0.986175 0.713153 0.103863 1 | |
215 | 0.985566 0.720782 0.112229 1 | |
216 | 0.984865 0.728427 0.120785 1 | |
217 | 0.984075 0.736087 0.129527 1 | |
218 | 0.983196 0.743758 0.138453 1 | |
219 | 0.982228 0.751442 0.147565 1 | |
220 | 0.981173 0.759135 0.156863 1 | |
221 | 0.980032 0.766837 0.166353 1 | |
222 | 0.978806 0.774545 0.176037 1 | |
223 | 0.977497 0.782258 0.185923 1 | |
224 | 0.976108 0.789974 0.196018 1 | |
225 | 0.974638 0.797692 0.206332 1 | |
226 | 0.973088 0.805409 0.216877 1 | |
227 | 0.971468 0.813122 0.227658 1 | |
228 | 0.969783 0.820825 0.238686 1 | |
229 | 0.968041 0.828515 0.249972 1 | |
230 | 0.966243 0.836191 0.261534 1 | |
231 | 0.964394 0.843848 0.273391 1 | |
232 | 0.962517 0.851476 0.285546 1 | |
233 | 0.960626 0.859069 0.29801 1 | |
234 | 0.95872 0.866624 0.31082 1 | |
235 | 0.956834 0.874129 0.323974 1 | |
236 | 0.954997 0.881569 0.337475 1 | |
237 | 0.953215 0.888942 0.351369 1 | |
238 | 0.951546 0.896226 0.365627 1 | |
239 | 0.950018 0.903409 0.380271 1 | |
240 | 0.948683 0.910473 0.395289 1 | |
241 | 0.947594 0.917399 0.410665 1 | |
242 | 0.946809 0.924168 0.426373 1 | |
243 | 0.946392 0.930761 0.442367 1 | |
244 | 0.946403 0.937159 0.458592 1 | |
245 | 0.946903 0.943348 0.47497 1 | |
246 | 0.947937 0.949318 0.491426 1 | |
247 | 0.949545 0.955063 0.50786 1 | |
248 | 0.95174 0.960587 0.524203 1 | |
249 | 0.954529 0.965896 0.540361 1 | |
250 | 0.957896 0.971003 0.556275 1 | |
251 | 0.961812 0.975924 0.571925 1 | |
252 | 0.966249 0.980678 0.587206 1 | |
253 | 0.971162 0.985282 0.602154 1 | |
254 | 0.976511 0.989753 0.61676 1 | |
255 | 0.982257 0.994109 0.631017 1 | |
256 | 0.988362 0.998364 0.644924 1 |
0 | # viridis colormap (based on Matplotlib colormap of the same name) | |
1 | 0.267004 0.004874 0.329415 1 | |
2 | 0.26851 0.009605 0.335427 1 | |
3 | 0.269944 0.014625 0.341379 1 | |
4 | 0.271305 0.019942 0.347269 1 | |
5 | 0.272594 0.025563 0.353093 1 | |
6 | 0.273809 0.031497 0.358853 1 | |
7 | 0.274952 0.037752 0.364543 1 | |
8 | 0.276022 0.044167 0.370164 1 | |
9 | 0.277018 0.050344 0.375715 1 | |
10 | 0.277941 0.056324 0.381191 1 | |
11 | 0.278791 0.062145 0.386592 1 | |
12 | 0.279566 0.067836 0.391917 1 | |
13 | 0.280267 0.073417 0.397163 1 | |
14 | 0.280894 0.078907 0.402329 1 | |
15 | 0.281446 0.08432 0.407414 1 | |
16 | 0.281924 0.089666 0.412415 1 | |
17 | 0.282327 0.094955 0.417331 1 | |
18 | 0.282656 0.100196 0.42216 1 | |
19 | 0.28291 0.105393 0.426902 1 | |
20 | 0.283091 0.110553 0.431554 1 | |
21 | 0.283197 0.11568 0.436115 1 | |
22 | 0.283229 0.120777 0.440584 1 | |
23 | 0.283187 0.125848 0.44496 1 | |
24 | 0.283072 0.130895 0.449241 1 | |
25 | 0.282884 0.13592 0.453427 1 | |
26 | 0.282623 0.140926 0.457517 1 | |
27 | 0.28229 0.145912 0.46151 1 | |
28 | 0.281887 0.150881 0.465405 1 | |
29 | 0.281412 0.155834 0.469201 1 | |
30 | 0.280868 0.160771 0.472899 1 | |
31 | 0.280255 0.165693 0.476498 1 | |
32 | 0.279574 0.170599 0.479997 1 | |
33 | 0.278826 0.17549 0.483397 1 | |
34 | 0.278012 0.180367 0.486697 1 | |
35 | 0.277134 0.185228 0.489898 1 | |
36 | 0.276194 0.190074 0.493001 1 | |
37 | 0.275191 0.194905 0.496005 1 | |
38 | 0.274128 0.199721 0.498911 1 | |
39 | 0.273006 0.20452 0.501721 1 | |
40 | 0.271828 0.209303 0.504434 1 | |
41 | 0.270595 0.214069 0.507052 1 | |
42 | 0.269308 0.218818 0.509577 1 | |
43 | 0.267968 0.223549 0.512008 1 | |
44 | 0.26658 0.228262 0.514349 1 | |
45 | 0.265145 0.232956 0.516599 1 | |
46 | 0.263663 0.237631 0.518762 1 | |
47 | 0.262138 0.242286 0.520837 1 | |
48 | 0.260571 0.246922 0.522828 1 | |
49 | 0.258965 0.251537 0.524736 1 | |
50 | 0.257322 0.25613 0.526563 1 | |
51 | 0.255645 0.260703 0.528312 1 | |
52 | 0.253935 0.265254 0.529983 1 | |
53 | 0.252194 0.269783 0.531579 1 | |
54 | 0.250425 0.27429 0.533103 1 | |
55 | 0.248629 0.278775 0.534556 1 | |
56 | 0.246811 0.283237 0.535941 1 | |
57 | 0.244972 0.287675 0.53726 1 | |
58 | 0.243113 0.292092 0.538516 1 | |
59 | 0.241237 0.296485 0.539709 1 | |
60 | 0.239346 0.300855 0.540844 1 | |
61 | 0.237441 0.305202 0.541921 1 | |
62 | 0.235526 0.309527 0.542944 1 | |
63 | 0.233603 0.313828 0.543914 1 | |
64 | 0.231674 0.318106 0.544834 1 | |
65 | 0.229739 0.322361 0.545706 1 | |
66 | 0.227802 0.326594 0.546532 1 | |
67 | 0.225863 0.330805 0.547314 1 | |
68 | 0.223925 0.334994 0.548053 1 | |
69 | 0.221989 0.339161 0.548752 1 | |
70 | 0.220057 0.343307 0.549413 1 | |
71 | 0.21813 0.347432 0.550038 1 | |
72 | 0.21621 0.351535 0.550627 1 | |
73 | 0.214298 0.355619 0.551184 1 | |
74 | 0.212395 0.359683 0.55171 1 | |
75 | 0.210503 0.363727 0.552206 1 | |
76 | 0.208623 0.367752 0.552675 1 | |
77 | 0.206756 0.371758 0.553117 1 | |
78 | 0.204903 0.375746 0.553533 1 | |
79 | 0.203063 0.379716 0.553925 1 | |
80 | 0.201239 0.38367 0.554294 1 | |
81 | 0.19943 0.387607 0.554642 1 | |
82 | 0.197636 0.391528 0.554969 1 | |
83 | 0.19586 0.395433 0.555276 1 | |
84 | 0.1941 0.399323 0.555565 1 | |
85 | 0.192357 0.403199 0.555836 1 | |
86 | 0.190631 0.407061 0.556089 1 | |
87 | 0.188923 0.41091 0.556326 1 | |
88 | 0.187231 0.414746 0.556547 1 | |
89 | 0.185556 0.41857 0.556753 1 | |
90 | 0.183898 0.422383 0.556944 1 | |
91 | 0.182256 0.426184 0.55712 1 | |
92 | 0.180629 0.429975 0.557282 1 | |
93 | 0.179019 0.433756 0.55743 1 | |
94 | 0.177423 0.437527 0.557565 1 | |
95 | 0.175841 0.44129 0.557685 1 | |
96 | 0.174274 0.445044 0.557792 1 | |
97 | 0.172719 0.448791 0.557885 1 | |
98 | 0.171176 0.45253 0.557965 1 | |
99 | 0.169646 0.456262 0.55803 1 | |
100 | 0.168126 0.459988 0.558082 1 | |
101 | 0.166617 0.463708 0.558119 1 | |
102 | 0.165117 0.467423 0.558141 1 | |
103 | 0.163625 0.471133 0.558148 1 | |
104 | 0.162142 0.474838 0.55814 1 | |
105 | 0.160665 0.47854 0.558115 1 | |
106 | 0.159194 0.482237 0.558073 1 | |
107 | 0.157729 0.485932 0.558013 1 | |
108 | 0.15627 0.489624 0.557936 1 | |
109 | 0.154815 0.493313 0.55784 1 | |
110 | 0.153364 0.497 0.557724 1 | |
111 | 0.151918 0.500685 0.557587 1 | |
112 | 0.150476 0.504369 0.55743 1 | |
113 | 0.149039 0.508051 0.55725 1 | |
114 | 0.147607 0.511733 0.557049 1 | |
115 | 0.14618 0.515413 0.556823 1 | |
116 | 0.144759 0.519093 0.556572 1 | |
117 | 0.143343 0.522773 0.556295 1 | |
118 | 0.141935 0.526453 0.555991 1 | |
119 | 0.140536 0.530132 0.555659 1 | |
120 | 0.139147 0.533812 0.555298 1 | |
121 | 0.13777 0.537492 0.554906 1 | |
122 | 0.136408 0.541173 0.554483 1 | |
123 | 0.135066 0.544853 0.554029 1 | |
124 | 0.133743 0.548535 0.553541 1 | |
125 | 0.132444 0.552216 0.553018 1 | |
126 | 0.131172 0.555899 0.552459 1 | |
127 | 0.129933 0.559582 0.551864 1 | |
128 | 0.128729 0.563265 0.551229 1 | |
129 | 0.127568 0.566949 0.550556 1 | |
130 | 0.126453 0.570633 0.549841 1 | |
131 | 0.125394 0.574318 0.549086 1 | |
132 | 0.124395 0.578002 0.548287 1 | |
133 | 0.123463 0.581687 0.547445 1 | |
134 | 0.122606 0.585371 0.546557 1 | |
135 | 0.121831 0.589055 0.545623 1 | |
136 | 0.121148 0.592739 0.544641 1 | |
137 | 0.120565 0.596422 0.543611 1 | |
138 | 0.120092 0.600104 0.54253 1 | |
139 | 0.119738 0.603785 0.5414 1 | |
140 | 0.119512 0.607464 0.540218 1 | |
141 | 0.119423 0.611141 0.538982 1 | |
142 | 0.119483 0.614817 0.537692 1 | |
143 | 0.119699 0.61849 0.536347 1 | |
144 | 0.120081 0.622161 0.534946 1 | |
145 | 0.120638 0.625828 0.533488 1 | |
146 | 0.12138 0.629492 0.531973 1 | |
147 | 0.122312 0.633153 0.530398 1 | |
148 | 0.123444 0.636809 0.528763 1 | |
149 | 0.12478 0.640461 0.527068 1 | |
150 | 0.126326 0.644107 0.525311 1 | |
151 | 0.128087 0.647749 0.523491 1 | |
152 | 0.130067 0.651384 0.521608 1 | |
153 | 0.132268 0.655014 0.519661 1 | |
154 | 0.134692 0.658636 0.517649 1 | |
155 | 0.137339 0.662252 0.515571 1 | |
156 | 0.14021 0.665859 0.513427 1 | |
157 | 0.143303 0.669459 0.511215 1 | |
158 | 0.146616 0.67305 0.508936 1 | |
159 | 0.150148 0.676631 0.506589 1 | |
160 | 0.153894 0.680203 0.504172 1 | |
161 | 0.157851 0.683765 0.501686 1 | |
162 | 0.162016 0.687316 0.499129 1 | |
163 | 0.166383 0.690856 0.496502 1 | |
164 | 0.170948 0.694384 0.493803 1 | |
165 | 0.175707 0.6979 0.491033 1 | |
166 | 0.180653 0.701402 0.488189 1 | |
167 | 0.185783 0.704891 0.485273 1 | |
168 | 0.19109 0.708366 0.482284 1 | |
169 | 0.196571 0.711827 0.479221 1 | |
170 | 0.202219 0.715272 0.476084 1 | |
171 | 0.20803 0.718701 0.472873 1 | |
172 | 0.214 0.722114 0.469588 1 | |
173 | 0.220124 0.725509 0.466226 1 | |
174 | 0.226397 0.728888 0.462789 1 | |
175 | 0.232815 0.732247 0.459277 1 | |
176 | 0.239374 0.735588 0.455688 1 | |
177 | 0.24607 0.73891 0.452024 1 | |
178 | 0.252899 0.742211 0.448284 1 | |
179 | 0.259857 0.745492 0.444467 1 | |
180 | 0.266941 0.748751 0.440573 1 | |
181 | 0.274149 0.751988 0.436601 1 | |
182 | 0.281477 0.755203 0.432552 1 | |
183 | 0.288921 0.758394 0.428426 1 | |
184 | 0.296479 0.761561 0.424223 1 | |
185 | 0.304148 0.764704 0.419943 1 | |
186 | 0.311925 0.767822 0.415586 1 | |
187 | 0.319809 0.770914 0.411152 1 | |
188 | 0.327796 0.77398 0.40664 1 | |
189 | 0.335885 0.777018 0.402049 1 | |
190 | 0.344074 0.780029 0.397381 1 | |
191 | 0.35236 0.783011 0.392636 1 | |
192 | 0.360741 0.785964 0.387814 1 | |
193 | 0.369214 0.788888 0.382914 1 | |
194 | 0.377779 0.791781 0.377939 1 | |
195 | 0.386433 0.794644 0.372886 1 | |
196 | 0.395174 0.797475 0.367757 1 | |
197 | 0.404001 0.800275 0.362552 1 | |
198 | 0.412913 0.803041 0.357269 1 | |
199 | 0.421908 0.805774 0.35191 1 | |
200 | 0.430983 0.808473 0.346476 1 | |
201 | 0.440137 0.811138 0.340967 1 | |
202 | 0.449368 0.813768 0.335384 1 | |
203 | 0.458674 0.816363 0.329727 1 | |
204 | 0.468053 0.818921 0.323998 1 | |
205 | 0.477504 0.821444 0.318195 1 | |
206 | 0.487026 0.823929 0.312321 1 | |
207 | 0.496615 0.826376 0.306377 1 | |
208 | 0.506271 0.828786 0.300362 1 | |
209 | 0.515992 0.831158 0.294279 1 | |
210 | 0.525776 0.833491 0.288127 1 | |
211 | 0.535621 0.835785 0.281908 1 | |
212 | 0.545524 0.838039 0.275626 1 | |
213 | 0.555484 0.840254 0.269281 1 | |
214 | 0.565498 0.84243 0.262877 1 | |
215 | 0.575563 0.844566 0.256415 1 | |
216 | 0.585678 0.846661 0.249897 1 | |
217 | 0.595839 0.848717 0.243329 1 | |
218 | 0.606045 0.850733 0.236712 1 | |
219 | 0.616293 0.852709 0.230052 1 | |
220 | 0.626579 0.854645 0.223353 1 | |
221 | 0.636902 0.856542 0.21662 1 | |
222 | 0.647257 0.8584 0.209861 1 | |
223 | 0.657642 0.860219 0.203082 1 | |
224 | 0.668054 0.861999 0.196293 1 | |
225 | 0.678489 0.863742 0.189503 1 | |
226 | 0.688944 0.865448 0.182725 1 | |
227 | 0.699415 0.867117 0.175971 1 | |
228 | 0.709898 0.868751 0.169257 1 | |
229 | 0.720391 0.87035 0.162603 1 | |
230 | 0.730889 0.871916 0.156029 1 | |
231 | 0.741388 0.873449 0.149561 1 | |
232 | 0.751884 0.874951 0.143228 1 | |
233 | 0.762373 0.876424 0.137064 1 | |
234 | 0.772852 0.877868 0.131109 1 | |
235 | 0.783315 0.879285 0.125405 1 | |
236 | 0.79376 0.880678 0.120005 1 | |
237 | 0.804182 0.882046 0.114965 1 | |
238 | 0.814576 0.883393 0.110347 1 | |
239 | 0.82494 0.88472 0.106217 1 | |
240 | 0.83527 0.886029 0.102646 1 | |
241 | 0.845561 0.887322 0.099702 1 | |
242 | 0.85581 0.888601 0.097452 1 | |
243 | 0.866013 0.889868 0.095953 1 | |
244 | 0.876168 0.891125 0.09525 1 | |
245 | 0.886271 0.892374 0.095374 1 | |
246 | 0.89632 0.893616 0.096335 1 | |
247 | 0.906311 0.894855 0.098125 1 | |
248 | 0.916242 0.896091 0.100717 1 | |
249 | 0.926106 0.89733 0.104071 1 | |
250 | 0.935904 0.89857 0.108131 1 | |
251 | 0.945636 0.899815 0.112838 1 | |
252 | 0.9553 0.901065 0.118128 1 | |
253 | 0.964894 0.902323 0.123941 1 | |
254 | 0.974417 0.90359 0.130215 1 | |
255 | 0.983868 0.904867 0.136897 1 | |
256 | 0.993248 0.906157 0.143936 1 |
0 | 0 | #! /bin/sh |
1 | # Wrapper for compilers which do not understand `-c -o'. | |
2 | ||
3 | scriptversion=2009-04-28.21; # UTC | |
4 | ||
5 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software | |
6 | # Foundation, Inc. | |
1 | # Wrapper for compilers which do not understand '-c -o'. | |
2 | ||
3 | scriptversion=2012-10-14.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
7 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
8 | 7 | # |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
28 | 27 | # bugs to <bug-automake@gnu.org> or send patches to |
29 | 28 | # <automake-patches@gnu.org>. |
30 | 29 | |
30 | nl=' | |
31 | ' | |
32 | ||
33 | # We need space, tab and new line, in precisely that order. Quoting is | |
34 | # there to prevent tools from complaining about whitespace usage. | |
35 | IFS=" "" $nl" | |
36 | ||
37 | file_conv= | |
38 | ||
39 | # func_file_conv build_file lazy | |
40 | # Convert a $build file to $host form and store it in $file | |
41 | # Currently only supports Windows hosts. If the determined conversion | |
42 | # type is listed in (the comma separated) LAZY, no conversion will | |
43 | # take place. | |
44 | func_file_conv () | |
45 | { | |
46 | file=$1 | |
47 | case $file in | |
48 | / | /[!/]*) # absolute file, and not a UNC file | |
49 | if test -z "$file_conv"; then | |
50 | # lazily determine how to convert abs files | |
51 | case `uname -s` in | |
52 | MINGW*) | |
53 | file_conv=mingw | |
54 | ;; | |
55 | CYGWIN*) | |
56 | file_conv=cygwin | |
57 | ;; | |
58 | *) | |
59 | file_conv=wine | |
60 | ;; | |
61 | esac | |
62 | fi | |
63 | case $file_conv/,$2, in | |
64 | *,$file_conv,*) | |
65 | ;; | |
66 | mingw/*) | |
67 | file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` | |
68 | ;; | |
69 | cygwin/*) | |
70 | file=`cygpath -m "$file" || echo "$file"` | |
71 | ;; | |
72 | wine/*) | |
73 | file=`winepath -w "$file" || echo "$file"` | |
74 | ;; | |
75 | esac | |
76 | ;; | |
77 | esac | |
78 | } | |
79 | ||
80 | # func_cl_dashL linkdir | |
81 | # Make cl look for libraries in LINKDIR | |
82 | func_cl_dashL () | |
83 | { | |
84 | func_file_conv "$1" | |
85 | if test -z "$lib_path"; then | |
86 | lib_path=$file | |
87 | else | |
88 | lib_path="$lib_path;$file" | |
89 | fi | |
90 | linker_opts="$linker_opts -LIBPATH:$file" | |
91 | } | |
92 | ||
93 | # func_cl_dashl library | |
94 | # Do a library search-path lookup for cl | |
95 | func_cl_dashl () | |
96 | { | |
97 | lib=$1 | |
98 | found=no | |
99 | save_IFS=$IFS | |
100 | IFS=';' | |
101 | for dir in $lib_path $LIB | |
102 | do | |
103 | IFS=$save_IFS | |
104 | if $shared && test -f "$dir/$lib.dll.lib"; then | |
105 | found=yes | |
106 | lib=$dir/$lib.dll.lib | |
107 | break | |
108 | fi | |
109 | if test -f "$dir/$lib.lib"; then | |
110 | found=yes | |
111 | lib=$dir/$lib.lib | |
112 | break | |
113 | fi | |
114 | if test -f "$dir/lib$lib.a"; then | |
115 | found=yes | |
116 | lib=$dir/lib$lib.a | |
117 | break | |
118 | fi | |
119 | done | |
120 | IFS=$save_IFS | |
121 | ||
122 | if test "$found" != yes; then | |
123 | lib=$lib.lib | |
124 | fi | |
125 | } | |
126 | ||
127 | # func_cl_wrapper cl arg... | |
128 | # Adjust compile command to suit cl | |
129 | func_cl_wrapper () | |
130 | { | |
131 | # Assume a capable shell | |
132 | lib_path= | |
133 | shared=: | |
134 | linker_opts= | |
135 | for arg | |
136 | do | |
137 | if test -n "$eat"; then | |
138 | eat= | |
139 | else | |
140 | case $1 in | |
141 | -o) | |
142 | # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
143 | eat=1 | |
144 | case $2 in | |
145 | *.o | *.[oO][bB][jJ]) | |
146 | func_file_conv "$2" | |
147 | set x "$@" -Fo"$file" | |
148 | shift | |
149 | ;; | |
150 | *) | |
151 | func_file_conv "$2" | |
152 | set x "$@" -Fe"$file" | |
153 | shift | |
154 | ;; | |
155 | esac | |
156 | ;; | |
157 | -I) | |
158 | eat=1 | |
159 | func_file_conv "$2" mingw | |
160 | set x "$@" -I"$file" | |
161 | shift | |
162 | ;; | |
163 | -I*) | |
164 | func_file_conv "${1#-I}" mingw | |
165 | set x "$@" -I"$file" | |
166 | shift | |
167 | ;; | |
168 | -l) | |
169 | eat=1 | |
170 | func_cl_dashl "$2" | |
171 | set x "$@" "$lib" | |
172 | shift | |
173 | ;; | |
174 | -l*) | |
175 | func_cl_dashl "${1#-l}" | |
176 | set x "$@" "$lib" | |
177 | shift | |
178 | ;; | |
179 | -L) | |
180 | eat=1 | |
181 | func_cl_dashL "$2" | |
182 | ;; | |
183 | -L*) | |
184 | func_cl_dashL "${1#-L}" | |
185 | ;; | |
186 | -static) | |
187 | shared=false | |
188 | ;; | |
189 | -Wl,*) | |
190 | arg=${1#-Wl,} | |
191 | save_ifs="$IFS"; IFS=',' | |
192 | for flag in $arg; do | |
193 | IFS="$save_ifs" | |
194 | linker_opts="$linker_opts $flag" | |
195 | done | |
196 | IFS="$save_ifs" | |
197 | ;; | |
198 | -Xlinker) | |
199 | eat=1 | |
200 | linker_opts="$linker_opts $2" | |
201 | ;; | |
202 | -*) | |
203 | set x "$@" "$1" | |
204 | shift | |
205 | ;; | |
206 | *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) | |
207 | func_file_conv "$1" | |
208 | set x "$@" -Tp"$file" | |
209 | shift | |
210 | ;; | |
211 | *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) | |
212 | func_file_conv "$1" mingw | |
213 | set x "$@" "$file" | |
214 | shift | |
215 | ;; | |
216 | *) | |
217 | set x "$@" "$1" | |
218 | shift | |
219 | ;; | |
220 | esac | |
221 | fi | |
222 | shift | |
223 | done | |
224 | if test -n "$linker_opts"; then | |
225 | linker_opts="-link$linker_opts" | |
226 | fi | |
227 | exec "$@" $linker_opts | |
228 | exit 1 | |
229 | } | |
230 | ||
231 | eat= | |
232 | ||
31 | 233 | case $1 in |
32 | 234 | '') |
33 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | |
235 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
34 | 236 | exit 1; |
35 | 237 | ;; |
36 | 238 | -h | --h*) |
37 | 239 | cat <<\EOF |
38 | 240 | Usage: compile [--help] [--version] PROGRAM [ARGS] |
39 | 241 | |
40 | Wrapper for compilers which do not understand `-c -o'. | |
41 | Remove `-o dest.o' from ARGS, run PROGRAM with the remaining | |
242 | Wrapper for compilers which do not understand '-c -o'. | |
243 | Remove '-o dest.o' from ARGS, run PROGRAM with the remaining | |
42 | 244 | arguments, and rename the output as expected. |
43 | 245 | |
44 | 246 | If you are trying to build a whole package this is not the |
45 | right script to run: please start by reading the file `INSTALL'. | |
247 | right script to run: please start by reading the file 'INSTALL'. | |
46 | 248 | |
47 | 249 | Report bugs to <bug-automake@gnu.org>. |
48 | 250 | EOF |
52 | 254 | echo "compile $scriptversion" |
53 | 255 | exit $? |
54 | 256 | ;; |
257 | cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) | |
258 | func_cl_wrapper "$@" # Doesn't return... | |
259 | ;; | |
55 | 260 | esac |
56 | 261 | |
57 | 262 | ofile= |
58 | 263 | cfile= |
59 | eat= | |
60 | 264 | |
61 | 265 | for arg |
62 | 266 | do |
65 | 269 | else |
66 | 270 | case $1 in |
67 | 271 | -o) |
68 | # configure might choose to run compile as `compile cc -o foo foo.c'. | |
69 | # So we strip `-o arg' only if arg is an object. | |
272 | # configure might choose to run compile as 'compile cc -o foo foo.c'. | |
273 | # So we strip '-o arg' only if arg is an object. | |
70 | 274 | eat=1 |
71 | 275 | case $2 in |
72 | 276 | *.o | *.obj) |
93 | 297 | done |
94 | 298 | |
95 | 299 | if test -z "$ofile" || test -z "$cfile"; then |
96 | # If no `-o' option was seen then we might have been invoked from a | |
300 | # If no '-o' option was seen then we might have been invoked from a | |
97 | 301 | # pattern rule where we don't need one. That is ok -- this is a |
98 | 302 | # normal compilation that the losing compiler can handle. If no |
99 | # `.c' file was seen then we are probably linking. That is also | |
303 | # '.c' file was seen then we are probably linking. That is also | |
100 | 304 | # ok. |
101 | 305 | exec "$@" |
102 | 306 | fi |
105 | 309 | cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` |
106 | 310 | |
107 | 311 | # Create the lock directory. |
108 | # Note: use `[/\\:.-]' here to ensure that we don't use the same name | |
312 | # Note: use '[/\\:.-]' here to ensure that we don't use the same name | |
109 | 313 | # that we are using for the .o file. Also, base the name on the expected |
110 | 314 | # object file name, since that is what matters with a parallel build. |
111 | 315 | lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d |
123 | 327 | ret=$? |
124 | 328 | |
125 | 329 | if test -f "$cofile"; then |
126 | mv "$cofile" "$ofile" | |
330 | test "$cofile" = "$ofile" || mv "$cofile" "$ofile" | |
127 | 331 | elif test -f "${cofile}bj"; then |
128 | mv "${cofile}bj" "$ofile" | |
332 | test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" | |
129 | 333 | fi |
130 | 334 | |
131 | 335 | rmdir "$lockdir" |
65 | 65 | /* Define to 1 if you have the <vis5d/v5d.h> header file. */ |
66 | 66 | #undef HAVE_VIS5D_V5D_H |
67 | 67 | |
68 | /* [Define], [if], [you], [have], [the], [<vis5d+/v5d.h>], [header], [file.] | |
69 | */ | |
68 | /* [Define if you have the <vis5d+/v5d.h> header file.] */ | |
70 | 69 | #undef HAVE_VIS5Dp_V5D_H |
71 | ||
72 | /* Define to 1 if your C compiler doesn't accept -c and -o together. */ | |
73 | #undef NO_MINUS_C_MINUS_O | |
74 | 70 | |
75 | 71 | /* Name of package */ |
76 | 72 | #undef PACKAGE |
86 | 82 | |
87 | 83 | /* Define to the one symbol short name of this package. */ |
88 | 84 | #undef PACKAGE_TARNAME |
85 | ||
86 | /* Define to the home page for this package. */ | |
87 | #undef PACKAGE_URL | |
89 | 88 | |
90 | 89 | /* Define to the version of this package. */ |
91 | 90 | #undef PACKAGE_VERSION |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.63 for h5utils 1.12.1. | |
2 | # Generated by GNU Autoconf 2.69 for h5utils 1.13. | |
3 | 3 | # |
4 | 4 | # Report bugs to <stevenj@alum.mit.edu>. |
5 | 5 | # |
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
6 | # | |
7 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
8 | # | |
9 | # | |
8 | 10 | # This configure script is free software; the Free Software Foundation |
9 | 11 | # gives unlimited permission to copy, distribute and modify it. |
10 | ## --------------------- ## | |
11 | ## M4sh Initialization. ## | |
12 | ## --------------------- ## | |
12 | ## -------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## -------------------- ## | |
13 | 15 | |
14 | 16 | # Be more Bourne compatible |
15 | 17 | DUALCASE=1; export DUALCASE # for MKS sh |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
17 | 19 | emulate sh |
18 | 20 | NULLCMD=: |
19 | 21 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 | 23 | alias -g '${1+"$@"}'='"$@"' |
22 | 24 | setopt NO_GLOB_SUBST |
23 | 25 | else |
24 | case `(set -o) 2>/dev/null` in | |
25 | *posix*) set -o posix ;; | |
26 | case `(set -o) 2>/dev/null` in #( | |
27 | *posix*) : | |
28 | set -o posix ;; #( | |
29 | *) : | |
30 | ;; | |
26 | 31 | esac |
27 | ||
28 | fi | |
29 | ||
30 | ||
31 | ||
32 | ||
33 | # PATH needs CR | |
34 | # Avoid depending upon Character Ranges. | |
35 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
36 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
37 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
38 | as_cr_digits='0123456789' | |
39 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
32 | fi | |
33 | ||
40 | 34 | |
41 | 35 | as_nl=' |
42 | 36 | ' |
45 | 39 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
46 | 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
47 | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
48 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
42 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
43 | # but without wasting forks for bash or zsh. | |
44 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
45 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
46 | as_echo='print -r --' | |
47 | as_echo_n='print -rn --' | |
48 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | 49 | as_echo='printf %s\n' |
50 | 50 | as_echo_n='printf %s' |
51 | 51 | else |
56 | 56 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
57 | 57 | as_echo_n_body='eval |
58 | 58 | arg=$1; |
59 | case $arg in | |
59 | case $arg in #( | |
60 | 60 | *"$as_nl"*) |
61 | 61 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
62 | 62 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
79 | 79 | } |
80 | 80 | fi |
81 | 81 | |
82 | # Support unset when possible. | |
83 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
84 | as_unset=unset | |
85 | else | |
86 | as_unset=false | |
87 | fi | |
88 | ||
89 | 82 | |
90 | 83 | # IFS |
91 | 84 | # We need space, tab and new line, in precisely that order. Quoting is |
95 | 88 | IFS=" "" $as_nl" |
96 | 89 | |
97 | 90 | # Find who we are. Look in the path if we contain no directory separator. |
98 | case $0 in | |
91 | as_myself= | |
92 | case $0 in #(( | |
99 | 93 | *[\\/]* ) as_myself=$0 ;; |
100 | 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
101 | 95 | for as_dir in $PATH |
102 | 96 | do |
103 | 97 | IFS=$as_save_IFS |
104 | 98 | test -z "$as_dir" && as_dir=. |
105 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
106 | done | |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
100 | done | |
107 | 101 | IFS=$as_save_IFS |
108 | 102 | |
109 | 103 | ;; |
115 | 109 | fi |
116 | 110 | if test ! -f "$as_myself"; then |
117 | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
118 | { (exit 1); exit 1; } | |
119 | fi | |
120 | ||
121 | # Work around bugs in pre-3.0 UWIN ksh. | |
122 | for as_var in ENV MAIL MAILPATH | |
123 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
112 | exit 1 | |
113 | fi | |
114 | ||
115 | # Unset variables that we do not need and which cause bugs (e.g. in | |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | 122 | done |
125 | 123 | PS1='$ ' |
126 | 124 | PS2='> ' |
132 | 130 | LANGUAGE=C |
133 | 131 | export LANGUAGE |
134 | 132 | |
135 | # Required to use basename. | |
133 | # CDPATH. | |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | # Use a proper internal environment variable to ensure we don't fall | |
137 | # into an infinite loop, continuously re-executing ourselves. | |
138 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
139 | _as_can_reexec=no; export _as_can_reexec; | |
140 | # We cannot yet assume a decent shell, so we have to provide a | |
141 | # neutralization value for shells without unset; and this also | |
142 | # works around shells that cannot unset nonexistent variables. | |
143 | # Preserve -v and -x to the replacement shell. | |
144 | BASH_ENV=/dev/null | |
145 | ENV=/dev/null | |
146 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
147 | case $- in # (((( | |
148 | *v*x* | *x*v* ) as_opts=-vx ;; | |
149 | *v* ) as_opts=-v ;; | |
150 | *x* ) as_opts=-x ;; | |
151 | * ) as_opts= ;; | |
152 | esac | |
153 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
154 | # Admittedly, this is quite paranoid, since all the known shells bail | |
155 | # out after a failed `exec'. | |
156 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
157 | as_fn_exit 255 | |
158 | fi | |
159 | # We don't want this to propagate to other subprocesses. | |
160 | { _as_can_reexec=; unset _as_can_reexec;} | |
161 | if test "x$CONFIG_SHELL" = x; then | |
162 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
163 | emulate sh | |
164 | NULLCMD=: | |
165 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
166 | # is contrary to our usage. Disable this feature. | |
167 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
168 | setopt NO_GLOB_SUBST | |
169 | else | |
170 | case \`(set -o) 2>/dev/null\` in #( | |
171 | *posix*) : | |
172 | set -o posix ;; #( | |
173 | *) : | |
174 | ;; | |
175 | esac | |
176 | fi | |
177 | " | |
178 | as_required="as_fn_return () { (exit \$1); } | |
179 | as_fn_success () { as_fn_return 0; } | |
180 | as_fn_failure () { as_fn_return 1; } | |
181 | as_fn_ret_success () { return 0; } | |
182 | as_fn_ret_failure () { return 1; } | |
183 | ||
184 | exitcode=0 | |
185 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
186 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
187 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
188 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
189 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
190 | ||
191 | else | |
192 | exitcode=1; echo positional parameters were not saved. | |
193 | fi | |
194 | test x\$exitcode = x0 || exit 1 | |
195 | test -x / || exit 1" | |
196 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
197 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
198 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
199 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
200 | test \$(( 1 + 1 )) = 2 || exit 1" | |
201 | if (eval "$as_required") 2>/dev/null; then : | |
202 | as_have_required=yes | |
203 | else | |
204 | as_have_required=no | |
205 | fi | |
206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
207 | ||
208 | else | |
209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
210 | as_found=false | |
211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212 | do | |
213 | IFS=$as_save_IFS | |
214 | test -z "$as_dir" && as_dir=. | |
215 | as_found=: | |
216 | case $as_dir in #( | |
217 | /*) | |
218 | for as_base in sh bash ksh sh5; do | |
219 | # Try only shells that exist, to save several forks. | |
220 | as_shell=$as_dir/$as_base | |
221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
223 | CONFIG_SHELL=$as_shell as_have_required=yes | |
224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | break 2 | |
226 | fi | |
227 | fi | |
228 | done;; | |
229 | esac | |
230 | as_found=false | |
231 | done | |
232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | fi; } | |
236 | IFS=$as_save_IFS | |
237 | ||
238 | ||
239 | if test "x$CONFIG_SHELL" != x; then : | |
240 | export CONFIG_SHELL | |
241 | # We cannot yet assume a decent shell, so we have to provide a | |
242 | # neutralization value for shells without unset; and this also | |
243 | # works around shells that cannot unset nonexistent variables. | |
244 | # Preserve -v and -x to the replacement shell. | |
245 | BASH_ENV=/dev/null | |
246 | ENV=/dev/null | |
247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | case $- in # (((( | |
249 | *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | *v* ) as_opts=-v ;; | |
251 | *x* ) as_opts=-x ;; | |
252 | * ) as_opts= ;; | |
253 | esac | |
254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | # Admittedly, this is quite paranoid, since all the known shells bail | |
256 | # out after a failed `exec'. | |
257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
258 | exit 255 | |
259 | fi | |
260 | ||
261 | if test x$as_have_required = xno; then : | |
262 | $as_echo "$0: This script requires a shell more modern than all" | |
263 | $as_echo "$0: the shells that I found on your system." | |
264 | if test x${ZSH_VERSION+set} = xset ; then | |
265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
267 | else | |
268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
269 | $0: stevenj@alum.mit.edu about your system, including any | |
270 | $0: error possibly output before this message. Then install | |
271 | $0: a modern shell, or manually run the script under such a | |
272 | $0: shell if you do have one." | |
273 | fi | |
274 | exit 1 | |
275 | fi | |
276 | fi | |
277 | fi | |
278 | SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | export SHELL | |
280 | # Unset more variables known to interfere with behavior of common tools. | |
281 | CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | ||
284 | ## --------------------- ## | |
285 | ## M4sh Shell Functions. ## | |
286 | ## --------------------- ## | |
287 | # as_fn_unset VAR | |
288 | # --------------- | |
289 | # Portably unset VAR. | |
290 | as_fn_unset () | |
291 | { | |
292 | { eval $1=; unset $1;} | |
293 | } | |
294 | as_unset=as_fn_unset | |
295 | ||
296 | # as_fn_set_status STATUS | |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
313 | ||
314 | # as_fn_mkdir_p | |
315 | # ------------- | |
316 | # Create "$as_dir" as a directory, including parents if necessary. | |
317 | as_fn_mkdir_p () | |
318 | { | |
319 | ||
320 | case $as_dir in #( | |
321 | -*) as_dir=./$as_dir;; | |
322 | esac | |
323 | test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | as_dirs= | |
325 | while :; do | |
326 | case $as_dir in #( | |
327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | *) as_qdir=$as_dir;; | |
329 | esac | |
330 | as_dirs="'$as_qdir' $as_dirs" | |
331 | as_dir=`$as_dirname -- "$as_dir" || | |
332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | X"$as_dir" : 'X\(//\)$' \| \ | |
335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | $as_echo X"$as_dir" | | |
337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | s//\1/ | |
339 | q | |
340 | } | |
341 | /^X\(\/\/\)[^/].*/{ | |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\).*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | s/.*/./; q'` | |
354 | test -d "$as_dir" && break | |
355 | done | |
356 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
358 | ||
359 | ||
360 | } # as_fn_mkdir_p | |
361 | ||
362 | # as_fn_executable_p FILE | |
363 | # ----------------------- | |
364 | # Test if FILE is an executable regular file. | |
365 | as_fn_executable_p () | |
366 | { | |
367 | test -f "$1" && test -x "$1" | |
368 | } # as_fn_executable_p | |
369 | # as_fn_append VAR VALUE | |
370 | # ---------------------- | |
371 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | # advantage of any shell optimizations that allow amortized linear growth over | |
373 | # repeated appends, instead of the typical quadratic growth present in naive | |
374 | # implementations. | |
375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | eval 'as_fn_append () | |
377 | { | |
378 | eval $1+=\$2 | |
379 | }' | |
380 | else | |
381 | as_fn_append () | |
382 | { | |
383 | eval $1=\$$1\$2 | |
384 | } | |
385 | fi # as_fn_append | |
386 | ||
387 | # as_fn_arith ARG... | |
388 | # ------------------ | |
389 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | # must be portable across $(()) and expr. | |
392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | eval 'as_fn_arith () | |
394 | { | |
395 | as_val=$(( $* )) | |
396 | }' | |
397 | else | |
398 | as_fn_arith () | |
399 | { | |
400 | as_val=`expr "$@" || test $? -eq 1` | |
401 | } | |
402 | fi # as_fn_arith | |
403 | ||
404 | ||
405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
406 | # ---------------------------------------- | |
407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
409 | # script with STATUS, using 1 if that was 0. | |
410 | as_fn_error () | |
411 | { | |
412 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
413 | if test "$4"; then | |
414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
416 | fi | |
417 | $as_echo "$as_me: error: $2" >&2 | |
418 | as_fn_exit $as_status | |
419 | } # as_fn_error | |
420 | ||
136 | 421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
137 | 422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
138 | 423 | as_expr=expr |
146 | 431 | as_basename=false |
147 | 432 | fi |
148 | 433 | |
149 | ||
150 | # Name of the executable. | |
434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
435 | as_dirname=dirname | |
436 | else | |
437 | as_dirname=false | |
438 | fi | |
439 | ||
151 | 440 | as_me=`$as_basename -- "$0" || |
152 | 441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
153 | 442 | X"$0" : 'X\(//\)$' \| \ |
167 | 456 | } |
168 | 457 | s/.*/./; q'` |
169 | 458 | |
170 | # CDPATH. | |
171 | $as_unset CDPATH | |
172 | ||
173 | ||
174 | if test "x$CONFIG_SHELL" = x; then | |
175 | if (eval ":") 2>/dev/null; then | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | ||
181 | if test $as_have_required = yes && (eval ": | |
182 | (as_func_return () { | |
183 | (exit \$1) | |
184 | } | |
185 | as_func_success () { | |
186 | as_func_return 0 | |
187 | } | |
188 | as_func_failure () { | |
189 | as_func_return 1 | |
190 | } | |
191 | as_func_ret_success () { | |
192 | return 0 | |
193 | } | |
194 | as_func_ret_failure () { | |
195 | return 1 | |
196 | } | |
197 | ||
198 | exitcode=0 | |
199 | if as_func_success; then | |
200 | : | |
201 | else | |
202 | exitcode=1 | |
203 | echo as_func_success failed. | |
204 | fi | |
205 | ||
206 | if as_func_failure; then | |
207 | exitcode=1 | |
208 | echo as_func_failure succeeded. | |
209 | fi | |
210 | ||
211 | if as_func_ret_success; then | |
212 | : | |
213 | else | |
214 | exitcode=1 | |
215 | echo as_func_ret_success failed. | |
216 | fi | |
217 | ||
218 | if as_func_ret_failure; then | |
219 | exitcode=1 | |
220 | echo as_func_ret_failure succeeded. | |
221 | fi | |
222 | ||
223 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
224 | : | |
225 | else | |
226 | exitcode=1 | |
227 | echo positional parameters were not saved. | |
228 | fi | |
229 | ||
230 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
231 | ||
232 | ( | |
233 | as_lineno_1=\$LINENO | |
234 | as_lineno_2=\$LINENO | |
235 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
236 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
237 | ") 2> /dev/null; then | |
238 | : | |
239 | else | |
240 | as_candidate_shells= | |
241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
242 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
243 | do | |
244 | IFS=$as_save_IFS | |
245 | test -z "$as_dir" && as_dir=. | |
246 | case $as_dir in | |
247 | /*) | |
248 | for as_base in sh bash ksh sh5; do | |
249 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
250 | done;; | |
251 | esac | |
252 | done | |
253 | IFS=$as_save_IFS | |
254 | ||
255 | ||
256 | for as_shell in $as_candidate_shells $SHELL; do | |
257 | # Try only shells that exist, to save several forks. | |
258 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
259 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
260 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
261 | emulate sh | |
262 | NULLCMD=: | |
263 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
264 | # is contrary to our usage. Disable this feature. | |
265 | alias -g '${1+"$@"}'='"$@"' | |
266 | setopt NO_GLOB_SUBST | |
267 | else | |
268 | case `(set -o) 2>/dev/null` in | |
269 | *posix*) set -o posix ;; | |
270 | esac | |
271 | ||
272 | fi | |
273 | ||
274 | ||
275 | : | |
276 | _ASEOF | |
277 | }; then | |
278 | CONFIG_SHELL=$as_shell | |
279 | as_have_required=yes | |
280 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
281 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
282 | emulate sh | |
283 | NULLCMD=: | |
284 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
285 | # is contrary to our usage. Disable this feature. | |
286 | alias -g '${1+"$@"}'='"$@"' | |
287 | setopt NO_GLOB_SUBST | |
288 | else | |
289 | case `(set -o) 2>/dev/null` in | |
290 | *posix*) set -o posix ;; | |
291 | esac | |
292 | ||
293 | fi | |
294 | ||
295 | ||
296 | : | |
297 | (as_func_return () { | |
298 | (exit $1) | |
299 | } | |
300 | as_func_success () { | |
301 | as_func_return 0 | |
302 | } | |
303 | as_func_failure () { | |
304 | as_func_return 1 | |
305 | } | |
306 | as_func_ret_success () { | |
307 | return 0 | |
308 | } | |
309 | as_func_ret_failure () { | |
310 | return 1 | |
311 | } | |
312 | ||
313 | exitcode=0 | |
314 | if as_func_success; then | |
315 | : | |
316 | else | |
317 | exitcode=1 | |
318 | echo as_func_success failed. | |
319 | fi | |
320 | ||
321 | if as_func_failure; then | |
322 | exitcode=1 | |
323 | echo as_func_failure succeeded. | |
324 | fi | |
325 | ||
326 | if as_func_ret_success; then | |
327 | : | |
328 | else | |
329 | exitcode=1 | |
330 | echo as_func_ret_success failed. | |
331 | fi | |
332 | ||
333 | if as_func_ret_failure; then | |
334 | exitcode=1 | |
335 | echo as_func_ret_failure succeeded. | |
336 | fi | |
337 | ||
338 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
339 | : | |
340 | else | |
341 | exitcode=1 | |
342 | echo positional parameters were not saved. | |
343 | fi | |
344 | ||
345 | test $exitcode = 0) || { (exit 1); exit 1; } | |
346 | ||
347 | ( | |
348 | as_lineno_1=$LINENO | |
349 | as_lineno_2=$LINENO | |
350 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
351 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
352 | ||
353 | _ASEOF | |
354 | }; then | |
355 | break | |
356 | fi | |
357 | ||
358 | fi | |
359 | ||
360 | done | |
361 | ||
362 | if test "x$CONFIG_SHELL" != x; then | |
363 | for as_var in BASH_ENV ENV | |
364 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
365 | done | |
366 | export CONFIG_SHELL | |
367 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
368 | fi | |
369 | ||
370 | ||
371 | if test $as_have_required = no; then | |
372 | echo This script requires a shell more modern than all the | |
373 | echo shells that I found on your system. Please install a | |
374 | echo modern shell, or manually run the script under such a | |
375 | echo shell if you do have one. | |
376 | { (exit 1); exit 1; } | |
377 | fi | |
378 | ||
379 | ||
380 | fi | |
381 | ||
382 | fi | |
383 | ||
384 | ||
385 | ||
386 | (eval "as_func_return () { | |
387 | (exit \$1) | |
388 | } | |
389 | as_func_success () { | |
390 | as_func_return 0 | |
391 | } | |
392 | as_func_failure () { | |
393 | as_func_return 1 | |
394 | } | |
395 | as_func_ret_success () { | |
396 | return 0 | |
397 | } | |
398 | as_func_ret_failure () { | |
399 | return 1 | |
400 | } | |
401 | ||
402 | exitcode=0 | |
403 | if as_func_success; then | |
404 | : | |
405 | else | |
406 | exitcode=1 | |
407 | echo as_func_success failed. | |
408 | fi | |
409 | ||
410 | if as_func_failure; then | |
411 | exitcode=1 | |
412 | echo as_func_failure succeeded. | |
413 | fi | |
414 | ||
415 | if as_func_ret_success; then | |
416 | : | |
417 | else | |
418 | exitcode=1 | |
419 | echo as_func_ret_success failed. | |
420 | fi | |
421 | ||
422 | if as_func_ret_failure; then | |
423 | exitcode=1 | |
424 | echo as_func_ret_failure succeeded. | |
425 | fi | |
426 | ||
427 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
428 | : | |
429 | else | |
430 | exitcode=1 | |
431 | echo positional parameters were not saved. | |
432 | fi | |
433 | ||
434 | test \$exitcode = 0") || { | |
435 | echo No shell found that supports shell functions. | |
436 | echo Please tell bug-autoconf@gnu.org about your system, | |
437 | echo including any error possibly output before this message. | |
438 | echo This can help us improve future autoconf versions. | |
439 | echo Configuration will now proceed without shell functions. | |
440 | } | |
441 | ||
442 | ||
443 | ||
444 | as_lineno_1=$LINENO | |
445 | as_lineno_2=$LINENO | |
446 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
447 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
448 | ||
449 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
450 | # uniformly replaced by the line number. The first 'sed' inserts a | |
451 | # line-number line after each line using $LINENO; the second 'sed' | |
452 | # does the real work. The second script uses 'N' to pair each | |
453 | # line-number line with the line containing $LINENO, and appends | |
454 | # trailing '-' during substitution so that $LINENO is not a special | |
455 | # case at line end. | |
456 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
457 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
458 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
459 | # Avoid depending upon Character Ranges. | |
460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | as_cr_digits='0123456789' | |
464 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
465 | ||
466 | ||
467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
459 | 472 | sed -n ' |
460 | 473 | p |
461 | 474 | /[$]LINENO/= |
472 | 485 | s/-\n.*// |
473 | 486 | ' >$as_me.lineno && |
474 | 487 | chmod +x "$as_me.lineno" || |
475 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
476 | { (exit 1); exit 1; }; } | |
477 | ||
488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
489 | ||
490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
491 | # already done that, so ensure we don't try to do so again and fall | |
492 | # in an infinite loop. This has already happened in practice. | |
493 | _as_can_reexec=no; export _as_can_reexec | |
478 | 494 | # Don't try to exec as it changes $[0], causing all sort of problems |
479 | 495 | # (the dirname of $[0] is not the place where we might find the |
480 | 496 | # original and so on. Autoconf is especially sensitive to this). |
483 | 499 | exit |
484 | 500 | } |
485 | 501 | |
486 | ||
487 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
488 | as_dirname=dirname | |
489 | else | |
490 | as_dirname=false | |
491 | fi | |
492 | ||
493 | 502 | ECHO_C= ECHO_N= ECHO_T= |
494 | case `echo -n x` in | |
503 | case `echo -n x` in #((((( | |
495 | 504 | -n*) |
496 | case `echo 'x\c'` in | |
505 | case `echo 'xy\c'` in | |
497 | 506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
498 | *) ECHO_C='\c';; | |
507 | xy) ECHO_C='\c';; | |
508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | ECHO_T=' ';; | |
499 | 510 | esac;; |
500 | 511 | *) |
501 | 512 | ECHO_N='-n';; |
502 | 513 | esac |
503 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
504 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
505 | as_expr=expr | |
506 | else | |
507 | as_expr=false | |
508 | fi | |
509 | 514 | |
510 | 515 | rm -f conf$$ conf$$.exe conf$$.file |
511 | 516 | if test -d conf$$.dir; then |
520 | 525 | # ... but there are two gotchas: |
521 | 526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
522 | 527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
523 | # In both cases, we have to default to `cp -p'. | |
528 | # In both cases, we have to default to `cp -pR'. | |
524 | 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
525 | as_ln_s='cp -p' | |
530 | as_ln_s='cp -pR' | |
526 | 531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
527 | 532 | as_ln_s=ln |
528 | 533 | else |
529 | as_ln_s='cp -p' | |
534 | as_ln_s='cp -pR' | |
530 | 535 | fi |
531 | 536 | else |
532 | as_ln_s='cp -p' | |
537 | as_ln_s='cp -pR' | |
533 | 538 | fi |
534 | 539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
535 | 540 | rmdir conf$$.dir 2>/dev/null |
536 | 541 | |
537 | 542 | if mkdir -p . 2>/dev/null; then |
538 | as_mkdir_p=: | |
543 | as_mkdir_p='mkdir -p "$as_dir"' | |
539 | 544 | else |
540 | 545 | test -d ./-p && rmdir ./-p |
541 | 546 | as_mkdir_p=false |
542 | 547 | fi |
543 | 548 | |
544 | if test -x / >/dev/null 2>&1; then | |
545 | as_test_x='test -x' | |
546 | else | |
547 | if ls -dL / >/dev/null 2>&1; then | |
548 | as_ls_L_option=L | |
549 | else | |
550 | as_ls_L_option= | |
551 | fi | |
552 | as_test_x=' | |
553 | eval sh -c '\'' | |
554 | if test -d "$1"; then | |
555 | test -d "$1/."; | |
556 | else | |
557 | case $1 in | |
558 | -*)set "./$1";; | |
559 | esac; | |
560 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
561 | ???[sx]*):;;*)false;;esac;fi | |
562 | '\'' sh | |
563 | ' | |
564 | fi | |
565 | as_executable_p=$as_test_x | |
549 | as_test_x='test -x' | |
550 | as_executable_p=as_fn_executable_p | |
566 | 551 | |
567 | 552 | # Sed expression to map a string onto a valid CPP name. |
568 | 553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
571 | 556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
572 | 557 | |
573 | 558 | |
574 | ||
575 | exec 7<&0 </dev/null 6>&1 | |
559 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
560 | exec 6>&1 | |
576 | 561 | |
577 | 562 | # Name of the host. |
578 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
579 | 564 | # so uname gets run too. |
580 | 565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
581 | 566 | |
590 | 575 | subdirs= |
591 | 576 | MFLAGS= |
592 | 577 | MAKEFLAGS= |
593 | SHELL=${CONFIG_SHELL-/bin/sh} | |
594 | 578 | |
595 | 579 | # Identity of this package. |
596 | 580 | PACKAGE_NAME='h5utils' |
597 | 581 | PACKAGE_TARNAME='h5utils' |
598 | PACKAGE_VERSION='1.12.1' | |
599 | PACKAGE_STRING='h5utils 1.12.1' | |
582 | PACKAGE_VERSION='1.13' | |
583 | PACKAGE_STRING='h5utils 1.13' | |
600 | 584 | PACKAGE_BUGREPORT='stevenj@alum.mit.edu' |
585 | PACKAGE_URL='' | |
601 | 586 | |
602 | 587 | ac_unique_file="h5topng.c" |
603 | 588 | # Factoring default headers for most tests. |
661 | 646 | am__fastdepCC_FALSE |
662 | 647 | am__fastdepCC_TRUE |
663 | 648 | CCDEPMODE |
649 | am__nodep | |
664 | 650 | AMDEPBACKSLASH |
665 | 651 | AMDEP_FALSE |
666 | 652 | AMDEP_TRUE |
677 | 663 | MAINT |
678 | 664 | MAINTAINER_MODE_FALSE |
679 | 665 | MAINTAINER_MODE_TRUE |
666 | AM_BACKSLASH | |
667 | AM_DEFAULT_VERBOSITY | |
668 | AM_DEFAULT_V | |
669 | AM_V | |
680 | 670 | am__untar |
681 | 671 | am__tar |
682 | 672 | AMTAR |
730 | 720 | program_transform_name |
731 | 721 | prefix |
732 | 722 | exec_prefix |
723 | PACKAGE_URL | |
733 | 724 | PACKAGE_BUGREPORT |
734 | 725 | PACKAGE_STRING |
735 | 726 | PACKAGE_VERSION |
740 | 731 | ac_subst_files='' |
741 | 732 | ac_user_opts=' |
742 | 733 | enable_option_checking |
734 | enable_silent_rules | |
743 | 735 | enable_maintainer_mode |
744 | 736 | enable_dependency_tracking |
745 | 737 | with_hdf4 |
817 | 809 | fi |
818 | 810 | |
819 | 811 | case $ac_option in |
820 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
821 | *) ac_optarg=yes ;; | |
812 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
813 | *=) ac_optarg= ;; | |
814 | *) ac_optarg=yes ;; | |
822 | 815 | esac |
823 | 816 | |
824 | 817 | # Accept the important Cygnus configure options, so we can diagnose typos. |
863 | 856 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
864 | 857 | # Reject names that are not valid shell variable names. |
865 | 858 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
866 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
867 | { (exit 1); exit 1; }; } | |
859 | as_fn_error $? "invalid feature name: $ac_useropt" | |
868 | 860 | ac_useropt_orig=$ac_useropt |
869 | 861 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
870 | 862 | case $ac_user_opts in |
890 | 882 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
891 | 883 | # Reject names that are not valid shell variable names. |
892 | 884 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
893 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
894 | { (exit 1); exit 1; }; } | |
885 | as_fn_error $? "invalid feature name: $ac_useropt" | |
895 | 886 | ac_useropt_orig=$ac_useropt |
896 | 887 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
897 | 888 | case $ac_user_opts in |
1095 | 1086 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1096 | 1087 | # Reject names that are not valid shell variable names. |
1097 | 1088 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1098 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1099 | { (exit 1); exit 1; }; } | |
1089 | as_fn_error $? "invalid package name: $ac_useropt" | |
1100 | 1090 | ac_useropt_orig=$ac_useropt |
1101 | 1091 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1102 | 1092 | case $ac_user_opts in |
1112 | 1102 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1113 | 1103 | # Reject names that are not valid shell variable names. |
1114 | 1104 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1115 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1116 | { (exit 1); exit 1; }; } | |
1105 | as_fn_error $? "invalid package name: $ac_useropt" | |
1117 | 1106 | ac_useropt_orig=$ac_useropt |
1118 | 1107 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1119 | 1108 | case $ac_user_opts in |
1143 | 1132 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1144 | 1133 | x_libraries=$ac_optarg ;; |
1145 | 1134 | |
1146 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1147 | Try \`$0 --help' for more information." >&2 | |
1148 | { (exit 1); exit 1; }; } | |
1135 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1136 | Try \`$0 --help' for more information" | |
1149 | 1137 | ;; |
1150 | 1138 | |
1151 | 1139 | *=*) |
1152 | 1140 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1153 | 1141 | # Reject names that are not valid shell variable names. |
1154 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1155 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1156 | { (exit 1); exit 1; }; } | |
1142 | case $ac_envvar in #( | |
1143 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1144 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1145 | esac | |
1157 | 1146 | eval $ac_envvar=\$ac_optarg |
1158 | 1147 | export $ac_envvar ;; |
1159 | 1148 | |
1162 | 1151 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1163 | 1152 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1164 | 1153 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1165 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1154 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1166 | 1155 | ;; |
1167 | 1156 | |
1168 | 1157 | esac |
1170 | 1159 | |
1171 | 1160 | if test -n "$ac_prev"; then |
1172 | 1161 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1173 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1174 | { (exit 1); exit 1; }; } | |
1162 | as_fn_error $? "missing argument to $ac_option" | |
1175 | 1163 | fi |
1176 | 1164 | |
1177 | 1165 | if test -n "$ac_unrecognized_opts"; then |
1178 | 1166 | case $enable_option_checking in |
1179 | 1167 | no) ;; |
1180 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1181 | { (exit 1); exit 1; }; } ;; | |
1168 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1182 | 1169 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1183 | 1170 | esac |
1184 | 1171 | fi |
1201 | 1188 | [\\/$]* | ?:[\\/]* ) continue;; |
1202 | 1189 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1203 | 1190 | esac |
1204 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1205 | { (exit 1); exit 1; }; } | |
1191 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1206 | 1192 | done |
1207 | 1193 | |
1208 | 1194 | # There might be people who depend on the old broken behavior: `$host' |
1216 | 1202 | if test "x$host_alias" != x; then |
1217 | 1203 | if test "x$build_alias" = x; then |
1218 | 1204 | cross_compiling=maybe |
1219 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1220 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1221 | 1205 | elif test "x$build_alias" != "x$host_alias"; then |
1222 | 1206 | cross_compiling=yes |
1223 | 1207 | fi |
1232 | 1216 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1233 | 1217 | ac_ls_di=`ls -di .` && |
1234 | 1218 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1235 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1236 | { (exit 1); exit 1; }; } | |
1219 | as_fn_error $? "working directory cannot be determined" | |
1237 | 1220 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1238 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1239 | { (exit 1); exit 1; }; } | |
1221 | as_fn_error $? "pwd does not report name of working directory" | |
1240 | 1222 | |
1241 | 1223 | |
1242 | 1224 | # Find the source files, if location was not specified. |
1275 | 1257 | fi |
1276 | 1258 | if test ! -r "$srcdir/$ac_unique_file"; then |
1277 | 1259 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1278 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1279 | { (exit 1); exit 1; }; } | |
1260 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1280 | 1261 | fi |
1281 | 1262 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1282 | 1263 | ac_abs_confdir=`( |
1283 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1284 | { (exit 1); exit 1; }; } | |
1264 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1285 | 1265 | pwd)` |
1286 | 1266 | # When building in place, set srcdir=. |
1287 | 1267 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1307 | 1287 | # Omit some internal or obsolete options to make the list less imposing. |
1308 | 1288 | # This message is too long to be a string in the A/UX 3.1 sh. |
1309 | 1289 | cat <<_ACEOF |
1310 | \`configure' configures h5utils 1.12.1 to adapt to many kinds of systems. | |
1290 | \`configure' configures h5utils 1.13 to adapt to many kinds of systems. | |
1311 | 1291 | |
1312 | 1292 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1313 | 1293 | |
1321 | 1301 | --help=short display options specific to this package |
1322 | 1302 | --help=recursive display the short help of all the included packages |
1323 | 1303 | -V, --version display version information and exit |
1324 | -q, --quiet, --silent do not print \`checking...' messages | |
1304 | -q, --quiet, --silent do not print \`checking ...' messages | |
1325 | 1305 | --cache-file=FILE cache test results in FILE [disabled] |
1326 | 1306 | -C, --config-cache alias for \`--cache-file=config.cache' |
1327 | 1307 | -n, --no-create do not create output files |
1373 | 1353 | |
1374 | 1354 | if test -n "$ac_init_help"; then |
1375 | 1355 | case $ac_init_help in |
1376 | short | recursive ) echo "Configuration of h5utils 1.12.1:";; | |
1356 | short | recursive ) echo "Configuration of h5utils 1.13:";; | |
1377 | 1357 | esac |
1378 | 1358 | cat <<\_ACEOF |
1379 | 1359 | |
1381 | 1361 | --disable-option-checking ignore unrecognized --enable/--with options |
1382 | 1362 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1383 | 1363 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1384 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1385 | (and sometimes confusing) to the casual installer | |
1386 | --disable-dependency-tracking speeds up one-time build | |
1387 | --enable-dependency-tracking do not reject slow dependency extractors | |
1364 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1365 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1366 | --enable-maintainer-mode | |
1367 | enable make rules and dependencies not useful (and | |
1368 | sometimes confusing) to the casual installer | |
1369 | --enable-dependency-tracking | |
1370 | do not reject slow dependency extractors | |
1371 | --disable-dependency-tracking | |
1372 | speeds up one-time build | |
1388 | 1373 | |
1389 | 1374 | Optional Packages: |
1390 | 1375 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1400 | 1385 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1401 | 1386 | nonstandard directory <lib dir> |
1402 | 1387 | LIBS libraries to pass to the linker, e.g. -l<library> |
1403 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1388 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1404 | 1389 | you have headers in a nonstandard directory <include dir> |
1405 | 1390 | CPP C preprocessor |
1406 | 1391 | |
1470 | 1455 | test -n "$ac_init_help" && exit $ac_status |
1471 | 1456 | if $ac_init_version; then |
1472 | 1457 | cat <<\_ACEOF |
1473 | h5utils configure 1.12.1 | |
1474 | generated by GNU Autoconf 2.63 | |
1475 | ||
1476 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1477 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1458 | h5utils configure 1.13 | |
1459 | generated by GNU Autoconf 2.69 | |
1460 | ||
1461 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1478 | 1462 | This configure script is free software; the Free Software Foundation |
1479 | 1463 | gives unlimited permission to copy, distribute and modify it. |
1480 | 1464 | _ACEOF |
1481 | 1465 | exit |
1482 | 1466 | fi |
1467 | ||
1468 | ## ------------------------ ## | |
1469 | ## Autoconf initialization. ## | |
1470 | ## ------------------------ ## | |
1471 | ||
1472 | # ac_fn_c_try_compile LINENO | |
1473 | # -------------------------- | |
1474 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1475 | ac_fn_c_try_compile () | |
1476 | { | |
1477 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1478 | rm -f conftest.$ac_objext | |
1479 | if { { ac_try="$ac_compile" | |
1480 | case "(($ac_try" in | |
1481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1482 | *) ac_try_echo=$ac_try;; | |
1483 | esac | |
1484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1485 | $as_echo "$ac_try_echo"; } >&5 | |
1486 | (eval "$ac_compile") 2>conftest.err | |
1487 | ac_status=$? | |
1488 | if test -s conftest.err; then | |
1489 | grep -v '^ *+' conftest.err >conftest.er1 | |
1490 | cat conftest.er1 >&5 | |
1491 | mv -f conftest.er1 conftest.err | |
1492 | fi | |
1493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1494 | test $ac_status = 0; } && { | |
1495 | test -z "$ac_c_werror_flag" || | |
1496 | test ! -s conftest.err | |
1497 | } && test -s conftest.$ac_objext; then : | |
1498 | ac_retval=0 | |
1499 | else | |
1500 | $as_echo "$as_me: failed program was:" >&5 | |
1501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1502 | ||
1503 | ac_retval=1 | |
1504 | fi | |
1505 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1506 | as_fn_set_status $ac_retval | |
1507 | ||
1508 | } # ac_fn_c_try_compile | |
1509 | ||
1510 | # ac_fn_c_try_cpp LINENO | |
1511 | # ---------------------- | |
1512 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1513 | ac_fn_c_try_cpp () | |
1514 | { | |
1515 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1516 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1517 | case "(($ac_try" in | |
1518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1519 | *) ac_try_echo=$ac_try;; | |
1520 | esac | |
1521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1522 | $as_echo "$ac_try_echo"; } >&5 | |
1523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1524 | ac_status=$? | |
1525 | if test -s conftest.err; then | |
1526 | grep -v '^ *+' conftest.err >conftest.er1 | |
1527 | cat conftest.er1 >&5 | |
1528 | mv -f conftest.er1 conftest.err | |
1529 | fi | |
1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1531 | test $ac_status = 0; } > conftest.i && { | |
1532 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1533 | test ! -s conftest.err | |
1534 | }; then : | |
1535 | ac_retval=0 | |
1536 | else | |
1537 | $as_echo "$as_me: failed program was:" >&5 | |
1538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1539 | ||
1540 | ac_retval=1 | |
1541 | fi | |
1542 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1543 | as_fn_set_status $ac_retval | |
1544 | ||
1545 | } # ac_fn_c_try_cpp | |
1546 | ||
1547 | # ac_fn_c_try_run LINENO | |
1548 | # ---------------------- | |
1549 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1550 | # that executables *can* be run. | |
1551 | ac_fn_c_try_run () | |
1552 | { | |
1553 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1554 | if { { ac_try="$ac_link" | |
1555 | case "(($ac_try" in | |
1556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1557 | *) ac_try_echo=$ac_try;; | |
1558 | esac | |
1559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1560 | $as_echo "$ac_try_echo"; } >&5 | |
1561 | (eval "$ac_link") 2>&5 | |
1562 | ac_status=$? | |
1563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1564 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1565 | { { case "(($ac_try" in | |
1566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1567 | *) ac_try_echo=$ac_try;; | |
1568 | esac | |
1569 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1570 | $as_echo "$ac_try_echo"; } >&5 | |
1571 | (eval "$ac_try") 2>&5 | |
1572 | ac_status=$? | |
1573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1574 | test $ac_status = 0; }; }; then : | |
1575 | ac_retval=0 | |
1576 | else | |
1577 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1578 | $as_echo "$as_me: failed program was:" >&5 | |
1579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1580 | ||
1581 | ac_retval=$ac_status | |
1582 | fi | |
1583 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1584 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1585 | as_fn_set_status $ac_retval | |
1586 | ||
1587 | } # ac_fn_c_try_run | |
1588 | ||
1589 | # ac_fn_c_try_link LINENO | |
1590 | # ----------------------- | |
1591 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1592 | ac_fn_c_try_link () | |
1593 | { | |
1594 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1596 | if { { ac_try="$ac_link" | |
1597 | case "(($ac_try" in | |
1598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1599 | *) ac_try_echo=$ac_try;; | |
1600 | esac | |
1601 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1602 | $as_echo "$ac_try_echo"; } >&5 | |
1603 | (eval "$ac_link") 2>conftest.err | |
1604 | ac_status=$? | |
1605 | if test -s conftest.err; then | |
1606 | grep -v '^ *+' conftest.err >conftest.er1 | |
1607 | cat conftest.er1 >&5 | |
1608 | mv -f conftest.er1 conftest.err | |
1609 | fi | |
1610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1611 | test $ac_status = 0; } && { | |
1612 | test -z "$ac_c_werror_flag" || | |
1613 | test ! -s conftest.err | |
1614 | } && test -s conftest$ac_exeext && { | |
1615 | test "$cross_compiling" = yes || | |
1616 | test -x conftest$ac_exeext | |
1617 | }; then : | |
1618 | ac_retval=0 | |
1619 | else | |
1620 | $as_echo "$as_me: failed program was:" >&5 | |
1621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1622 | ||
1623 | ac_retval=1 | |
1624 | fi | |
1625 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1626 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1627 | # interfere with the next link command; also delete a directory that is | |
1628 | # left behind by Apple's compiler. We do this before executing the actions. | |
1629 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1630 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1631 | as_fn_set_status $ac_retval | |
1632 | ||
1633 | } # ac_fn_c_try_link | |
1634 | ||
1635 | # ac_fn_c_check_func LINENO FUNC VAR | |
1636 | # ---------------------------------- | |
1637 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1638 | ac_fn_c_check_func () | |
1639 | { | |
1640 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1642 | $as_echo_n "checking for $2... " >&6; } | |
1643 | if eval \${$3+:} false; then : | |
1644 | $as_echo_n "(cached) " >&6 | |
1645 | else | |
1646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1647 | /* end confdefs.h. */ | |
1648 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1650 | #define $2 innocuous_$2 | |
1651 | ||
1652 | /* System header to define __stub macros and hopefully few prototypes, | |
1653 | which can conflict with char $2 (); below. | |
1654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1655 | <limits.h> exists even on freestanding compilers. */ | |
1656 | ||
1657 | #ifdef __STDC__ | |
1658 | # include <limits.h> | |
1659 | #else | |
1660 | # include <assert.h> | |
1661 | #endif | |
1662 | ||
1663 | #undef $2 | |
1664 | ||
1665 | /* Override any GCC internal prototype to avoid an error. | |
1666 | Use char because int might match the return type of a GCC | |
1667 | builtin and then its argument prototype would still apply. */ | |
1668 | #ifdef __cplusplus | |
1669 | extern "C" | |
1670 | #endif | |
1671 | char $2 (); | |
1672 | /* The GNU C library defines this for functions which it implements | |
1673 | to always fail with ENOSYS. Some functions are actually named | |
1674 | something starting with __ and the normal name is an alias. */ | |
1675 | #if defined __stub_$2 || defined __stub___$2 | |
1676 | choke me | |
1677 | #endif | |
1678 | ||
1679 | int | |
1680 | main () | |
1681 | { | |
1682 | return $2 (); | |
1683 | ; | |
1684 | return 0; | |
1685 | } | |
1686 | _ACEOF | |
1687 | if ac_fn_c_try_link "$LINENO"; then : | |
1688 | eval "$3=yes" | |
1689 | else | |
1690 | eval "$3=no" | |
1691 | fi | |
1692 | rm -f core conftest.err conftest.$ac_objext \ | |
1693 | conftest$ac_exeext conftest.$ac_ext | |
1694 | fi | |
1695 | eval ac_res=\$$3 | |
1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1697 | $as_echo "$ac_res" >&6; } | |
1698 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1699 | ||
1700 | } # ac_fn_c_check_func | |
1701 | ||
1702 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1703 | # ------------------------------------------------------- | |
1704 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1705 | # the include files in INCLUDES and setting the cache variable VAR | |
1706 | # accordingly. | |
1707 | ac_fn_c_check_header_mongrel () | |
1708 | { | |
1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1710 | if eval \${$3+:} false; then : | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1712 | $as_echo_n "checking for $2... " >&6; } | |
1713 | if eval \${$3+:} false; then : | |
1714 | $as_echo_n "(cached) " >&6 | |
1715 | fi | |
1716 | eval ac_res=\$$3 | |
1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1718 | $as_echo "$ac_res" >&6; } | |
1719 | else | |
1720 | # Is the header compilable? | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1722 | $as_echo_n "checking $2 usability... " >&6; } | |
1723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1724 | /* end confdefs.h. */ | |
1725 | $4 | |
1726 | #include <$2> | |
1727 | _ACEOF | |
1728 | if ac_fn_c_try_compile "$LINENO"; then : | |
1729 | ac_header_compiler=yes | |
1730 | else | |
1731 | ac_header_compiler=no | |
1732 | fi | |
1733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1735 | $as_echo "$ac_header_compiler" >&6; } | |
1736 | ||
1737 | # Is the header present? | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1739 | $as_echo_n "checking $2 presence... " >&6; } | |
1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1741 | /* end confdefs.h. */ | |
1742 | #include <$2> | |
1743 | _ACEOF | |
1744 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1745 | ac_header_preproc=yes | |
1746 | else | |
1747 | ac_header_preproc=no | |
1748 | fi | |
1749 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1751 | $as_echo "$ac_header_preproc" >&6; } | |
1752 | ||
1753 | # So? What about this header? | |
1754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1755 | yes:no: ) | |
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1757 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1759 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1760 | ;; | |
1761 | no:yes:* ) | |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1763 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1765 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1767 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1769 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1771 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1772 | ( $as_echo "## ----------------------------------- ## | |
1773 | ## Report this to stevenj@alum.mit.edu ## | |
1774 | ## ----------------------------------- ##" | |
1775 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1776 | ;; | |
1777 | esac | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1779 | $as_echo_n "checking for $2... " >&6; } | |
1780 | if eval \${$3+:} false; then : | |
1781 | $as_echo_n "(cached) " >&6 | |
1782 | else | |
1783 | eval "$3=\$ac_header_compiler" | |
1784 | fi | |
1785 | eval ac_res=\$$3 | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1787 | $as_echo "$ac_res" >&6; } | |
1788 | fi | |
1789 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1790 | ||
1791 | } # ac_fn_c_check_header_mongrel | |
1792 | ||
1793 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1794 | # ------------------------------------------------------- | |
1795 | # Tests whether HEADER exists and can be compiled using the include files in | |
1796 | # INCLUDES, setting the cache variable VAR accordingly. | |
1797 | ac_fn_c_check_header_compile () | |
1798 | { | |
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1801 | $as_echo_n "checking for $2... " >&6; } | |
1802 | if eval \${$3+:} false; then : | |
1803 | $as_echo_n "(cached) " >&6 | |
1804 | else | |
1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 | /* end confdefs.h. */ | |
1807 | $4 | |
1808 | #include <$2> | |
1809 | _ACEOF | |
1810 | if ac_fn_c_try_compile "$LINENO"; then : | |
1811 | eval "$3=yes" | |
1812 | else | |
1813 | eval "$3=no" | |
1814 | fi | |
1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1816 | fi | |
1817 | eval ac_res=\$$3 | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1819 | $as_echo "$ac_res" >&6; } | |
1820 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1821 | ||
1822 | } # ac_fn_c_check_header_compile | |
1823 | ||
1824 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1825 | # ------------------------------------------- | |
1826 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1827 | # variable VAR accordingly. | |
1828 | ac_fn_c_check_type () | |
1829 | { | |
1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1832 | $as_echo_n "checking for $2... " >&6; } | |
1833 | if eval \${$3+:} false; then : | |
1834 | $as_echo_n "(cached) " >&6 | |
1835 | else | |
1836 | eval "$3=no" | |
1837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1838 | /* end confdefs.h. */ | |
1839 | $4 | |
1840 | int | |
1841 | main () | |
1842 | { | |
1843 | if (sizeof ($2)) | |
1844 | return 0; | |
1845 | ; | |
1846 | return 0; | |
1847 | } | |
1848 | _ACEOF | |
1849 | if ac_fn_c_try_compile "$LINENO"; then : | |
1850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1851 | /* end confdefs.h. */ | |
1852 | $4 | |
1853 | int | |
1854 | main () | |
1855 | { | |
1856 | if (sizeof (($2))) | |
1857 | return 0; | |
1858 | ; | |
1859 | return 0; | |
1860 | } | |
1861 | _ACEOF | |
1862 | if ac_fn_c_try_compile "$LINENO"; then : | |
1863 | ||
1864 | else | |
1865 | eval "$3=yes" | |
1866 | fi | |
1867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1868 | fi | |
1869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1870 | fi | |
1871 | eval ac_res=\$$3 | |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1873 | $as_echo "$ac_res" >&6; } | |
1874 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1875 | ||
1876 | } # ac_fn_c_check_type | |
1877 | ||
1878 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1879 | # -------------------------------------------- | |
1880 | # Tries to find the compile-time value of EXPR in a program that includes | |
1881 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1882 | # computed | |
1883 | ac_fn_c_compute_int () | |
1884 | { | |
1885 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1886 | if test "$cross_compiling" = yes; then | |
1887 | # Depending upon the size, compute the lo and hi bounds. | |
1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1889 | /* end confdefs.h. */ | |
1890 | $4 | |
1891 | int | |
1892 | main () | |
1893 | { | |
1894 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1895 | test_array [0] = 0; | |
1896 | return test_array [0]; | |
1897 | ||
1898 | ; | |
1899 | return 0; | |
1900 | } | |
1901 | _ACEOF | |
1902 | if ac_fn_c_try_compile "$LINENO"; then : | |
1903 | ac_lo=0 ac_mid=0 | |
1904 | while :; do | |
1905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1906 | /* end confdefs.h. */ | |
1907 | $4 | |
1908 | int | |
1909 | main () | |
1910 | { | |
1911 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1912 | test_array [0] = 0; | |
1913 | return test_array [0]; | |
1914 | ||
1915 | ; | |
1916 | return 0; | |
1917 | } | |
1918 | _ACEOF | |
1919 | if ac_fn_c_try_compile "$LINENO"; then : | |
1920 | ac_hi=$ac_mid; break | |
1921 | else | |
1922 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1923 | if test $ac_lo -le $ac_mid; then | |
1924 | ac_lo= ac_hi= | |
1925 | break | |
1926 | fi | |
1927 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1928 | fi | |
1929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1930 | done | |
1931 | else | |
1932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1933 | /* end confdefs.h. */ | |
1934 | $4 | |
1935 | int | |
1936 | main () | |
1937 | { | |
1938 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1939 | test_array [0] = 0; | |
1940 | return test_array [0]; | |
1941 | ||
1942 | ; | |
1943 | return 0; | |
1944 | } | |
1945 | _ACEOF | |
1946 | if ac_fn_c_try_compile "$LINENO"; then : | |
1947 | ac_hi=-1 ac_mid=-1 | |
1948 | while :; do | |
1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1950 | /* end confdefs.h. */ | |
1951 | $4 | |
1952 | int | |
1953 | main () | |
1954 | { | |
1955 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1956 | test_array [0] = 0; | |
1957 | return test_array [0]; | |
1958 | ||
1959 | ; | |
1960 | return 0; | |
1961 | } | |
1962 | _ACEOF | |
1963 | if ac_fn_c_try_compile "$LINENO"; then : | |
1964 | ac_lo=$ac_mid; break | |
1965 | else | |
1966 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1967 | if test $ac_mid -le $ac_hi; then | |
1968 | ac_lo= ac_hi= | |
1969 | break | |
1970 | fi | |
1971 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1972 | fi | |
1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1974 | done | |
1975 | else | |
1976 | ac_lo= ac_hi= | |
1977 | fi | |
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1979 | fi | |
1980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1981 | # Binary search between lo and hi bounds. | |
1982 | while test "x$ac_lo" != "x$ac_hi"; do | |
1983 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1985 | /* end confdefs.h. */ | |
1986 | $4 | |
1987 | int | |
1988 | main () | |
1989 | { | |
1990 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1991 | test_array [0] = 0; | |
1992 | return test_array [0]; | |
1993 | ||
1994 | ; | |
1995 | return 0; | |
1996 | } | |
1997 | _ACEOF | |
1998 | if ac_fn_c_try_compile "$LINENO"; then : | |
1999 | ac_hi=$ac_mid | |
2000 | else | |
2001 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2002 | fi | |
2003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2004 | done | |
2005 | case $ac_lo in #(( | |
2006 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2007 | '') ac_retval=1 ;; | |
2008 | esac | |
2009 | else | |
2010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2011 | /* end confdefs.h. */ | |
2012 | $4 | |
2013 | static long int longval () { return $2; } | |
2014 | static unsigned long int ulongval () { return $2; } | |
2015 | #include <stdio.h> | |
2016 | #include <stdlib.h> | |
2017 | int | |
2018 | main () | |
2019 | { | |
2020 | ||
2021 | FILE *f = fopen ("conftest.val", "w"); | |
2022 | if (! f) | |
2023 | return 1; | |
2024 | if (($2) < 0) | |
2025 | { | |
2026 | long int i = longval (); | |
2027 | if (i != ($2)) | |
2028 | return 1; | |
2029 | fprintf (f, "%ld", i); | |
2030 | } | |
2031 | else | |
2032 | { | |
2033 | unsigned long int i = ulongval (); | |
2034 | if (i != ($2)) | |
2035 | return 1; | |
2036 | fprintf (f, "%lu", i); | |
2037 | } | |
2038 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2039 | on some platforms. */ | |
2040 | return ferror (f) || fclose (f) != 0; | |
2041 | ||
2042 | ; | |
2043 | return 0; | |
2044 | } | |
2045 | _ACEOF | |
2046 | if ac_fn_c_try_run "$LINENO"; then : | |
2047 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2048 | else | |
2049 | ac_retval=1 | |
2050 | fi | |
2051 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2052 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2053 | rm -f conftest.val | |
2054 | ||
2055 | fi | |
2056 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2057 | as_fn_set_status $ac_retval | |
2058 | ||
2059 | } # ac_fn_c_compute_int | |
1483 | 2060 | cat >config.log <<_ACEOF |
1484 | 2061 | This file contains any messages produced by compilers while |
1485 | 2062 | running configure, to aid debugging if configure makes a mistake. |
1486 | 2063 | |
1487 | It was created by h5utils $as_me 1.12.1, which was | |
1488 | generated by GNU Autoconf 2.63. Invocation command line was | |
2064 | It was created by h5utils $as_me 1.13, which was | |
2065 | generated by GNU Autoconf 2.69. Invocation command line was | |
1489 | 2066 | |
1490 | 2067 | $ $0 $@ |
1491 | 2068 | |
1521 | 2098 | do |
1522 | 2099 | IFS=$as_save_IFS |
1523 | 2100 | test -z "$as_dir" && as_dir=. |
1524 | $as_echo "PATH: $as_dir" | |
1525 | done | |
2101 | $as_echo "PATH: $as_dir" | |
2102 | done | |
1526 | 2103 | IFS=$as_save_IFS |
1527 | 2104 | |
1528 | 2105 | } >&5 |
1559 | 2136 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1560 | 2137 | esac |
1561 | 2138 | case $ac_pass in |
1562 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
2139 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1563 | 2140 | 2) |
1564 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
2141 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1565 | 2142 | if test $ac_must_keep_next = true; then |
1566 | 2143 | ac_must_keep_next=false # Got value, back to normal. |
1567 | 2144 | else |
1577 | 2154 | -* ) ac_must_keep_next=true ;; |
1578 | 2155 | esac |
1579 | 2156 | fi |
1580 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
2157 | as_fn_append ac_configure_args " '$ac_arg'" | |
1581 | 2158 | ;; |
1582 | 2159 | esac |
1583 | 2160 | done |
1584 | 2161 | done |
1585 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1586 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
2162 | { ac_configure_args0=; unset ac_configure_args0;} | |
2163 | { ac_configure_args1=; unset ac_configure_args1;} | |
1587 | 2164 | |
1588 | 2165 | # When interrupted or exit'd, cleanup temporary files, and complete |
1589 | 2166 | # config.log. We remove comments because anyway the quotes in there |
1595 | 2172 | { |
1596 | 2173 | echo |
1597 | 2174 | |
1598 | cat <<\_ASBOX | |
1599 | ## ---------------- ## | |
2175 | $as_echo "## ---------------- ## | |
1600 | 2176 | ## Cache variables. ## |
1601 | ## ---------------- ## | |
1602 | _ASBOX | |
2177 | ## ---------------- ##" | |
1603 | 2178 | echo |
1604 | 2179 | # The following way of writing the cache mishandles newlines in values, |
1605 | 2180 | ( |
1608 | 2183 | case $ac_val in #( |
1609 | 2184 | *${as_nl}*) |
1610 | 2185 | case $ac_var in #( |
1611 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
2186 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1612 | 2187 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1613 | 2188 | esac |
1614 | 2189 | case $ac_var in #( |
1615 | 2190 | _ | IFS | as_nl) ;; #( |
1616 | 2191 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1617 | *) $as_unset $ac_var ;; | |
2192 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1618 | 2193 | esac ;; |
1619 | 2194 | esac |
1620 | 2195 | done |
1633 | 2208 | ) |
1634 | 2209 | echo |
1635 | 2210 | |
1636 | cat <<\_ASBOX | |
1637 | ## ----------------- ## | |
2211 | $as_echo "## ----------------- ## | |
1638 | 2212 | ## Output variables. ## |
1639 | ## ----------------- ## | |
1640 | _ASBOX | |
2213 | ## ----------------- ##" | |
1641 | 2214 | echo |
1642 | 2215 | for ac_var in $ac_subst_vars |
1643 | 2216 | do |
1650 | 2223 | echo |
1651 | 2224 | |
1652 | 2225 | if test -n "$ac_subst_files"; then |
1653 | cat <<\_ASBOX | |
1654 | ## ------------------- ## | |
2226 | $as_echo "## ------------------- ## | |
1655 | 2227 | ## File substitutions. ## |
1656 | ## ------------------- ## | |
1657 | _ASBOX | |
2228 | ## ------------------- ##" | |
1658 | 2229 | echo |
1659 | 2230 | for ac_var in $ac_subst_files |
1660 | 2231 | do |
1668 | 2239 | fi |
1669 | 2240 | |
1670 | 2241 | if test -s confdefs.h; then |
1671 | cat <<\_ASBOX | |
1672 | ## ----------- ## | |
2242 | $as_echo "## ----------- ## | |
1673 | 2243 | ## confdefs.h. ## |
1674 | ## ----------- ## | |
1675 | _ASBOX | |
2244 | ## ----------- ##" | |
1676 | 2245 | echo |
1677 | 2246 | cat confdefs.h |
1678 | 2247 | echo |
1686 | 2255 | exit $exit_status |
1687 | 2256 | ' 0 |
1688 | 2257 | for ac_signal in 1 2 13 15; do |
1689 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
2258 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1690 | 2259 | done |
1691 | 2260 | ac_signal=0 |
1692 | 2261 | |
1693 | 2262 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1694 | 2263 | rm -f -r conftest* confdefs.h |
1695 | 2264 | |
2265 | $as_echo "/* confdefs.h */" > confdefs.h | |
2266 | ||
1696 | 2267 | # Predefined preprocessor variables. |
1697 | 2268 | |
1698 | 2269 | cat >>confdefs.h <<_ACEOF |
1699 | 2270 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1700 | 2271 | _ACEOF |
1701 | 2272 | |
1702 | ||
1703 | 2273 | cat >>confdefs.h <<_ACEOF |
1704 | 2274 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1705 | 2275 | _ACEOF |
1706 | 2276 | |
1707 | ||
1708 | 2277 | cat >>confdefs.h <<_ACEOF |
1709 | 2278 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1710 | 2279 | _ACEOF |
1711 | 2280 | |
1712 | ||
1713 | 2281 | cat >>confdefs.h <<_ACEOF |
1714 | 2282 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1715 | 2283 | _ACEOF |
1716 | 2284 | |
1717 | ||
1718 | 2285 | cat >>confdefs.h <<_ACEOF |
1719 | 2286 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2287 | _ACEOF | |
2288 | ||
2289 | cat >>confdefs.h <<_ACEOF | |
2290 | #define PACKAGE_URL "$PACKAGE_URL" | |
1720 | 2291 | _ACEOF |
1721 | 2292 | |
1722 | 2293 | |
1725 | 2296 | ac_site_file1=NONE |
1726 | 2297 | ac_site_file2=NONE |
1727 | 2298 | if test -n "$CONFIG_SITE"; then |
1728 | ac_site_file1=$CONFIG_SITE | |
2299 | # We do not want a PATH search for config.site. | |
2300 | case $CONFIG_SITE in #(( | |
2301 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2302 | */*) ac_site_file1=$CONFIG_SITE;; | |
2303 | *) ac_site_file1=./$CONFIG_SITE;; | |
2304 | esac | |
1729 | 2305 | elif test "x$prefix" != xNONE; then |
1730 | 2306 | ac_site_file1=$prefix/share/config.site |
1731 | 2307 | ac_site_file2=$prefix/etc/config.site |
1736 | 2312 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1737 | 2313 | do |
1738 | 2314 | test "x$ac_site_file" = xNONE && continue |
1739 | if test -r "$ac_site_file"; then | |
1740 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
2315 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1741 | 2317 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1742 | 2318 | sed 's/^/| /' "$ac_site_file" >&5 |
1743 | . "$ac_site_file" | |
2319 | . "$ac_site_file" \ | |
2320 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2322 | as_fn_error $? "failed to load site script $ac_site_file | |
2323 | See \`config.log' for more details" "$LINENO" 5; } | |
1744 | 2324 | fi |
1745 | 2325 | done |
1746 | 2326 | |
1747 | 2327 | if test -r "$cache_file"; then |
1748 | # Some versions of bash will fail to source /dev/null (special | |
1749 | # files actually), so we avoid doing that. | |
1750 | if test -f "$cache_file"; then | |
1751 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
2328 | # Some versions of bash will fail to source /dev/null (special files | |
2329 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2330 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1752 | 2332 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
1753 | 2333 | case $cache_file in |
1754 | 2334 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1756 | 2336 | esac |
1757 | 2337 | fi |
1758 | 2338 | else |
1759 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1760 | 2340 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
1761 | 2341 | >$cache_file |
1762 | 2342 | fi |
1771 | 2351 | eval ac_new_val=\$ac_env_${ac_var}_value |
1772 | 2352 | case $ac_old_set,$ac_new_set in |
1773 | 2353 | set,) |
1774 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1775 | 2355 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1776 | 2356 | ac_cache_corrupted=: ;; |
1777 | 2357 | ,set) |
1778 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1779 | 2359 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1780 | 2360 | ac_cache_corrupted=: ;; |
1781 | 2361 | ,);; |
1785 | 2365 | ac_old_val_w=`echo x $ac_old_val` |
1786 | 2366 | ac_new_val_w=`echo x $ac_new_val` |
1787 | 2367 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1788 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1789 | 2369 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1790 | 2370 | ac_cache_corrupted=: |
1791 | 2371 | else |
1792 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1793 | 2373 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1794 | 2374 | eval $ac_var=\$ac_old_val |
1795 | 2375 | fi |
1796 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1797 | 2377 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1798 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1799 | 2379 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1800 | 2380 | fi;; |
1801 | 2381 | esac |
1807 | 2387 | esac |
1808 | 2388 | case " $ac_configure_args " in |
1809 | 2389 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1810 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2390 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1811 | 2391 | esac |
1812 | 2392 | fi |
1813 | 2393 | done |
1814 | 2394 | if $ac_cache_corrupted; then |
1815 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1816 | 2396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1817 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1818 | 2398 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1819 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1820 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1821 | { (exit 1); exit 1; }; } | |
1822 | fi | |
1823 | ||
1824 | ||
1825 | ||
1826 | ||
1827 | ||
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
1835 | ||
1836 | ||
1837 | ||
1838 | ||
1839 | ||
1840 | ||
1841 | ||
1842 | ||
1843 | ||
1844 | ||
1845 | ||
1846 | ||
2399 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2400 | fi | |
2401 | ## -------------------- ## | |
2402 | ## Main body of script. ## | |
2403 | ## -------------------- ## | |
1847 | 2404 | |
1848 | 2405 | ac_ext=c |
1849 | 2406 | ac_cpp='$CPP $CPPFLAGS' |
1852 | 2409 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1853 | 2410 | |
1854 | 2411 | |
1855 | am__api_version='1.11' | |
2412 | am__api_version='1.15' | |
1856 | 2413 | |
1857 | 2414 | ac_aux_dir= |
1858 | 2415 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1871 | 2428 | fi |
1872 | 2429 | done |
1873 | 2430 | if test -z "$ac_aux_dir"; then |
1874 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
1875 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1876 | { (exit 1); exit 1; }; } | |
2431 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
1877 | 2432 | fi |
1878 | 2433 | |
1879 | 2434 | # These three variables are undocumented and unsupported, |
1899 | 2454 | # OS/2's system install, which has a completely different semantic |
1900 | 2455 | # ./install, which can be erroneously created by make from ./install.sh. |
1901 | 2456 | # Reject install programs that cannot install multiple files. |
1902 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
1903 | 2458 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
1904 | 2459 | if test -z "$INSTALL"; then |
1905 | if test "${ac_cv_path_install+set}" = set; then | |
2460 | if ${ac_cv_path_install+:} false; then : | |
1906 | 2461 | $as_echo_n "(cached) " >&6 |
1907 | 2462 | else |
1908 | 2463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1910 | 2465 | do |
1911 | 2466 | IFS=$as_save_IFS |
1912 | 2467 | test -z "$as_dir" && as_dir=. |
1913 | # Account for people who put trailing slashes in PATH elements. | |
1914 | case $as_dir/ in | |
1915 | ./ | .// | /cC/* | \ | |
2468 | # Account for people who put trailing slashes in PATH elements. | |
2469 | case $as_dir/ in #(( | |
2470 | ./ | .// | /[cC]/* | \ | |
1916 | 2471 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1917 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2472 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
1918 | 2473 | /usr/ucb/* ) ;; |
1919 | 2474 | *) |
1920 | 2475 | # OSF1 and SCO ODT 3.0 have their own names for install. |
1922 | 2477 | # by default. |
1923 | 2478 | for ac_prog in ginstall scoinst install; do |
1924 | 2479 | for ac_exec_ext in '' $ac_executable_extensions; do |
1925 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2480 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1926 | 2481 | if test $ac_prog = install && |
1927 | 2482 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
1928 | 2483 | # AIX install. It has an incompatible calling convention. |
1951 | 2506 | ;; |
1952 | 2507 | esac |
1953 | 2508 | |
1954 | done | |
2509 | done | |
1955 | 2510 | IFS=$as_save_IFS |
1956 | 2511 | |
1957 | 2512 | rm -rf conftest.one conftest.two conftest.dir |
1967 | 2522 | INSTALL=$ac_install_sh |
1968 | 2523 | fi |
1969 | 2524 | fi |
1970 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
1971 | 2526 | $as_echo "$INSTALL" >&6; } |
1972 | 2527 | |
1973 | 2528 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1978 | 2533 | |
1979 | 2534 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1980 | 2535 | |
1981 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
1982 | 2537 | $as_echo_n "checking whether build environment is sane... " >&6; } |
1983 | # Just in case | |
1984 | sleep 1 | |
1985 | echo timestamp > conftest.file | |
1986 | 2538 | # Reject unsafe characters in $srcdir or the absolute working directory |
1987 | 2539 | # name. Accept space and tab only in the latter. |
1988 | 2540 | am_lf=' |
1989 | 2541 | ' |
1990 | 2542 | case `pwd` in |
1991 | 2543 | *[\\\"\#\$\&\'\`$am_lf]*) |
1992 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
1993 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
1994 | { (exit 1); exit 1; }; };; | |
2544 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
1995 | 2545 | esac |
1996 | 2546 | case $srcdir in |
1997 | 2547 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
1998 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
1999 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2000 | { (exit 1); exit 1; }; };; | |
2548 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2001 | 2549 | esac |
2002 | 2550 | |
2003 | # Do `set' in a subshell so we don't clobber the current shell's | |
2551 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2004 | 2552 | # arguments. Must try -L first in case configure is actually a |
2005 | 2553 | # symlink; some systems play weird games with the mod time of symlinks |
2006 | 2554 | # (eg FreeBSD returns the mod time of the symlink's containing |
2007 | 2555 | # directory). |
2008 | 2556 | if ( |
2009 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2010 | if test "$*" = "X"; then | |
2011 | # -L didn't work. | |
2012 | set X `ls -t "$srcdir/configure" conftest.file` | |
2013 | fi | |
2014 | rm -f conftest.file | |
2015 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2016 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2017 | ||
2018 | # If neither matched, then we have a broken ls. This can happen | |
2019 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2020 | # broken ls alias from the environment. This has actually | |
2021 | # happened. Such a system could not be considered "sane". | |
2022 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2023 | alias in your environment" >&5 | |
2024 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2025 | alias in your environment" >&2;} | |
2026 | { (exit 1); exit 1; }; } | |
2027 | fi | |
2028 | ||
2557 | am_has_slept=no | |
2558 | for am_try in 1 2; do | |
2559 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2560 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2561 | if test "$*" = "X"; then | |
2562 | # -L didn't work. | |
2563 | set X `ls -t "$srcdir/configure" conftest.file` | |
2564 | fi | |
2565 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2566 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2567 | ||
2568 | # If neither matched, then we have a broken ls. This can happen | |
2569 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2570 | # broken ls alias from the environment. This has actually | |
2571 | # happened. Such a system could not be considered "sane". | |
2572 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2573 | alias in your environment" "$LINENO" 5 | |
2574 | fi | |
2575 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2576 | break | |
2577 | fi | |
2578 | # Just in case. | |
2579 | sleep 1 | |
2580 | am_has_slept=yes | |
2581 | done | |
2029 | 2582 | test "$2" = conftest.file |
2030 | 2583 | ) |
2031 | 2584 | then |
2032 | 2585 | # Ok. |
2033 | 2586 | : |
2034 | 2587 | else |
2035 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2036 | Check your system clock" >&5 | |
2037 | $as_echo "$as_me: error: newly created file is older than distributed files! | |
2038 | Check your system clock" >&2;} | |
2039 | { (exit 1); exit 1; }; } | |
2040 | fi | |
2041 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2588 | as_fn_error $? "newly created file is older than distributed files! | |
2589 | Check your system clock" "$LINENO" 5 | |
2590 | fi | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2042 | 2592 | $as_echo "yes" >&6; } |
2593 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2594 | # generated files are strictly newer. | |
2595 | am_sleep_pid= | |
2596 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2597 | ( sleep 1 ) & | |
2598 | am_sleep_pid=$! | |
2599 | fi | |
2600 | ||
2601 | rm -f conftest.file | |
2602 | ||
2043 | 2603 | test "$program_prefix" != NONE && |
2044 | 2604 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2045 | 2605 | # Use a double $ so make ignores it. |
2050 | 2610 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2051 | 2611 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2052 | 2612 | |
2053 | # expand $ac_aux_dir to an absolute path | |
2054 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2613 | # Expand $ac_aux_dir to an absolute path. | |
2614 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2055 | 2615 | |
2056 | 2616 | if test x"${MISSING+set}" != xset; then |
2057 | 2617 | case $am_aux_dir in |
2062 | 2622 | esac |
2063 | 2623 | fi |
2064 | 2624 | # Use eval to expand $SHELL |
2065 | if eval "$MISSING --run true"; then | |
2066 | am_missing_run="$MISSING --run " | |
2625 | if eval "$MISSING --is-lightweight"; then | |
2626 | am_missing_run="$MISSING " | |
2067 | 2627 | else |
2068 | 2628 | am_missing_run= |
2069 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2070 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2071 | fi | |
2072 | ||
2073 | if test x"${install_sh}" != xset; then | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2630 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2631 | fi | |
2632 | ||
2633 | if test x"${install_sh+set}" != xset; then | |
2074 | 2634 | case $am_aux_dir in |
2075 | 2635 | *\ * | *\ *) |
2076 | 2636 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2079 | 2639 | esac |
2080 | 2640 | fi |
2081 | 2641 | |
2082 | # Installed binaries are usually stripped using `strip' when the user | |
2083 | # run `make install-strip'. However `strip' might not be the right | |
2642 | # Installed binaries are usually stripped using 'strip' when the user | |
2643 | # run "make install-strip". However 'strip' might not be the right | |
2084 | 2644 | # tool to use in cross-compilation environments, therefore Automake |
2085 | # will honor the `STRIP' environment variable to overrule this program. | |
2645 | # will honor the 'STRIP' environment variable to overrule this program. | |
2086 | 2646 | if test "$cross_compiling" != no; then |
2087 | 2647 | if test -n "$ac_tool_prefix"; then |
2088 | 2648 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2089 | 2649 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2090 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2091 | 2651 | $as_echo_n "checking for $ac_word... " >&6; } |
2092 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2652 | if ${ac_cv_prog_STRIP+:} false; then : | |
2093 | 2653 | $as_echo_n "(cached) " >&6 |
2094 | 2654 | else |
2095 | 2655 | if test -n "$STRIP"; then |
2100 | 2660 | do |
2101 | 2661 | IFS=$as_save_IFS |
2102 | 2662 | test -z "$as_dir" && as_dir=. |
2103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2105 | 2665 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2106 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2107 | 2667 | break 2 |
2108 | 2668 | fi |
2109 | 2669 | done |
2110 | done | |
2670 | done | |
2111 | 2671 | IFS=$as_save_IFS |
2112 | 2672 | |
2113 | 2673 | fi |
2114 | 2674 | fi |
2115 | 2675 | STRIP=$ac_cv_prog_STRIP |
2116 | 2676 | if test -n "$STRIP"; then |
2117 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2118 | 2678 | $as_echo "$STRIP" >&6; } |
2119 | 2679 | else |
2120 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2121 | 2681 | $as_echo "no" >&6; } |
2122 | 2682 | fi |
2123 | 2683 | |
2127 | 2687 | ac_ct_STRIP=$STRIP |
2128 | 2688 | # Extract the first word of "strip", so it can be a program name with args. |
2129 | 2689 | set dummy strip; ac_word=$2 |
2130 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2131 | 2691 | $as_echo_n "checking for $ac_word... " >&6; } |
2132 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2692 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2133 | 2693 | $as_echo_n "(cached) " >&6 |
2134 | 2694 | else |
2135 | 2695 | if test -n "$ac_ct_STRIP"; then |
2140 | 2700 | do |
2141 | 2701 | IFS=$as_save_IFS |
2142 | 2702 | test -z "$as_dir" && as_dir=. |
2143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2145 | 2705 | ac_cv_prog_ac_ct_STRIP="strip" |
2146 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2147 | 2707 | break 2 |
2148 | 2708 | fi |
2149 | 2709 | done |
2150 | done | |
2710 | done | |
2151 | 2711 | IFS=$as_save_IFS |
2152 | 2712 | |
2153 | 2713 | fi |
2154 | 2714 | fi |
2155 | 2715 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2156 | 2716 | if test -n "$ac_ct_STRIP"; then |
2157 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2158 | 2718 | $as_echo "$ac_ct_STRIP" >&6; } |
2159 | 2719 | else |
2160 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2161 | 2721 | $as_echo "no" >&6; } |
2162 | 2722 | fi |
2163 | 2723 | |
2166 | 2726 | else |
2167 | 2727 | case $cross_compiling:$ac_tool_warned in |
2168 | 2728 | yes:) |
2169 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2170 | 2730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2171 | 2731 | ac_tool_warned=yes ;; |
2172 | 2732 | esac |
2179 | 2739 | fi |
2180 | 2740 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2181 | 2741 | |
2182 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2183 | 2743 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2184 | 2744 | if test -z "$MKDIR_P"; then |
2185 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2745 | if ${ac_cv_path_mkdir+:} false; then : | |
2186 | 2746 | $as_echo_n "(cached) " >&6 |
2187 | 2747 | else |
2188 | 2748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2190 | 2750 | do |
2191 | 2751 | IFS=$as_save_IFS |
2192 | 2752 | test -z "$as_dir" && as_dir=. |
2193 | for ac_prog in mkdir gmkdir; do | |
2753 | for ac_prog in mkdir gmkdir; do | |
2194 | 2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
2195 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2755 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2196 | 2756 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2197 | 2757 | 'mkdir (GNU coreutils) '* | \ |
2198 | 2758 | 'mkdir (coreutils) '* | \ |
2202 | 2762 | esac |
2203 | 2763 | done |
2204 | 2764 | done |
2205 | done | |
2765 | done | |
2206 | 2766 | IFS=$as_save_IFS |
2207 | 2767 | |
2208 | 2768 | fi |
2209 | 2769 | |
2770 | test -d ./--version && rmdir ./--version | |
2210 | 2771 | if test "${ac_cv_path_mkdir+set}" = set; then |
2211 | 2772 | MKDIR_P="$ac_cv_path_mkdir -p" |
2212 | 2773 | else |
2214 | 2775 | # value for MKDIR_P within a source directory, because that will |
2215 | 2776 | # break other packages using the cache if that directory is |
2216 | 2777 | # removed, or if the value is a relative name. |
2217 | test -d ./--version && rmdir ./--version | |
2218 | 2778 | MKDIR_P="$ac_install_sh -d" |
2219 | 2779 | fi |
2220 | 2780 | fi |
2221 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2222 | 2782 | $as_echo "$MKDIR_P" >&6; } |
2223 | ||
2224 | mkdir_p="$MKDIR_P" | |
2225 | case $mkdir_p in | |
2226 | [\\/$]* | ?:[\\/]*) ;; | |
2227 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2228 | esac | |
2229 | 2783 | |
2230 | 2784 | for ac_prog in gawk mawk nawk awk |
2231 | 2785 | do |
2232 | 2786 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2233 | 2787 | set dummy $ac_prog; ac_word=$2 |
2234 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2235 | 2789 | $as_echo_n "checking for $ac_word... " >&6; } |
2236 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2790 | if ${ac_cv_prog_AWK+:} false; then : | |
2237 | 2791 | $as_echo_n "(cached) " >&6 |
2238 | 2792 | else |
2239 | 2793 | if test -n "$AWK"; then |
2244 | 2798 | do |
2245 | 2799 | IFS=$as_save_IFS |
2246 | 2800 | test -z "$as_dir" && as_dir=. |
2247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2249 | 2803 | ac_cv_prog_AWK="$ac_prog" |
2250 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2251 | 2805 | break 2 |
2252 | 2806 | fi |
2253 | 2807 | done |
2254 | done | |
2808 | done | |
2255 | 2809 | IFS=$as_save_IFS |
2256 | 2810 | |
2257 | 2811 | fi |
2258 | 2812 | fi |
2259 | 2813 | AWK=$ac_cv_prog_AWK |
2260 | 2814 | if test -n "$AWK"; then |
2261 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2262 | 2816 | $as_echo "$AWK" >&6; } |
2263 | 2817 | else |
2264 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2265 | 2819 | $as_echo "no" >&6; } |
2266 | 2820 | fi |
2267 | 2821 | |
2269 | 2823 | test -n "$AWK" && break |
2270 | 2824 | done |
2271 | 2825 | |
2272 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2273 | 2827 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2274 | 2828 | set x ${MAKE-make} |
2275 | 2829 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2276 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2830 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2277 | 2831 | $as_echo_n "(cached) " >&6 |
2278 | 2832 | else |
2279 | 2833 | cat >conftest.make <<\_ACEOF |
2281 | 2835 | all: |
2282 | 2836 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2283 | 2837 | _ACEOF |
2284 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2838 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2285 | 2839 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2286 | 2840 | *@@@%%%=?*=@@@%%%*) |
2287 | 2841 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2291 | 2845 | rm -f conftest.make |
2292 | 2846 | fi |
2293 | 2847 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2294 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2295 | 2849 | $as_echo "yes" >&6; } |
2296 | 2850 | SET_MAKE= |
2297 | 2851 | else |
2298 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2299 | 2853 | $as_echo "no" >&6; } |
2300 | 2854 | SET_MAKE="MAKE=${MAKE-make}" |
2301 | 2855 | fi |
2308 | 2862 | am__leading_dot=_ |
2309 | 2863 | fi |
2310 | 2864 | rmdir .tst 2>/dev/null |
2865 | ||
2866 | # Check whether --enable-silent-rules was given. | |
2867 | if test "${enable_silent_rules+set}" = set; then : | |
2868 | enableval=$enable_silent_rules; | |
2869 | fi | |
2870 | ||
2871 | case $enable_silent_rules in # ((( | |
2872 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2873 | no) AM_DEFAULT_VERBOSITY=1;; | |
2874 | *) AM_DEFAULT_VERBOSITY=1;; | |
2875 | esac | |
2876 | am_make=${MAKE-make} | |
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2878 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2879 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2880 | $as_echo_n "(cached) " >&6 | |
2881 | else | |
2882 | if $as_echo 'TRUE=$(BAR$(V)) | |
2883 | BAR0=false | |
2884 | BAR1=true | |
2885 | V=1 | |
2886 | am__doit: | |
2887 | @$(TRUE) | |
2888 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2889 | am_cv_make_support_nested_variables=yes | |
2890 | else | |
2891 | am_cv_make_support_nested_variables=no | |
2892 | fi | |
2893 | fi | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2895 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2896 | if test $am_cv_make_support_nested_variables = yes; then | |
2897 | AM_V='$(V)' | |
2898 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2899 | else | |
2900 | AM_V=$AM_DEFAULT_VERBOSITY | |
2901 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2902 | fi | |
2903 | AM_BACKSLASH='\' | |
2311 | 2904 | |
2312 | 2905 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2313 | 2906 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2315 | 2908 | am__isrc=' -I$(srcdir)' |
2316 | 2909 | # test to see if srcdir already configured |
2317 | 2910 | if test -f $srcdir/config.status; then |
2318 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2319 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2320 | { (exit 1); exit 1; }; } | |
2911 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2321 | 2912 | fi |
2322 | 2913 | fi |
2323 | 2914 | |
2333 | 2924 | |
2334 | 2925 | # Define the identity of the package. |
2335 | 2926 | PACKAGE='h5utils' |
2336 | VERSION='1.12.1' | |
2927 | VERSION='1.13' | |
2337 | 2928 | |
2338 | 2929 | |
2339 | 2930 | cat >>confdefs.h <<_ACEOF |
2361 | 2952 | |
2362 | 2953 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2363 | 2954 | |
2364 | # We need awk for the "check" target. The system "awk" is bad on | |
2365 | # some platforms. | |
2366 | # Always define AMTAR for backward compatibility. | |
2367 | ||
2368 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2369 | ||
2370 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2371 | ||
2372 | ||
2373 | ||
2374 | ||
2955 | # For better backward compatibility. To be removed once Automake 1.9.x | |
2956 | # dies out for good. For more background, see: | |
2957 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2958 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2959 | mkdir_p='$(MKDIR_P)' | |
2960 | ||
2961 | # We need awk for the "check" target (and possibly the TAP driver). The | |
2962 | # system "awk" is bad on some platforms. | |
2963 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
2964 | # in the wild :-( We should find a proper way to deprecate it ... | |
2965 | AMTAR='$${TAR-tar}' | |
2966 | ||
2967 | ||
2968 | # We'll loop over all known methods to create a tar archive until one works. | |
2969 | _am_tools='gnutar pax cpio none' | |
2970 | ||
2971 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
2972 | ||
2973 | ||
2974 | ||
2975 | ||
2976 | ||
2977 | ||
2978 | # POSIX will say in a future version that running "rm -f" with no argument | |
2979 | # is OK; and we want to be able to make that assumption in our Makefile | |
2980 | # recipes. So use an aggressive probe to check that the usage we want is | |
2981 | # actually supported "in the wild" to an acceptable degree. | |
2982 | # See automake bug#10828. | |
2983 | # To make any issue more visible, cause the running configure to be aborted | |
2984 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2985 | # user can still override this though. | |
2986 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2987 | cat >&2 <<'END' | |
2988 | Oops! | |
2989 | ||
2990 | Your 'rm' program seems unable to run without file operands specified | |
2991 | on the command line, even when the '-f' option is present. This is contrary | |
2992 | to the behaviour of most rm programs out there, and not conforming with | |
2993 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2994 | ||
2995 | Please tell bug-automake@gnu.org about your system, including the value | |
2996 | of your $PATH and any error possibly output before this message. This | |
2997 | can help us improve future automake versions. | |
2998 | ||
2999 | END | |
3000 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3001 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3002 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3003 | echo >&2 | |
3004 | else | |
3005 | cat >&2 <<'END' | |
3006 | Aborting the configuration process, to ensure you take notice of the issue. | |
3007 | ||
3008 | You can download and install GNU coreutils to get an 'rm' implementation | |
3009 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3010 | ||
3011 | If you want to complete the configuration process using your problematic | |
3012 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3013 | to "yes", and re-run configure. | |
3014 | ||
3015 | END | |
3016 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3017 | fi | |
3018 | fi | |
3019 | ||
3020 | # Check whether --enable-silent-rules was given. | |
3021 | if test "${enable_silent_rules+set}" = set; then : | |
3022 | enableval=$enable_silent_rules; | |
3023 | fi | |
3024 | ||
3025 | case $enable_silent_rules in # ((( | |
3026 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3027 | no) AM_DEFAULT_VERBOSITY=1;; | |
3028 | *) AM_DEFAULT_VERBOSITY=0;; | |
3029 | esac | |
3030 | am_make=${MAKE-make} | |
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3032 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3033 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3034 | $as_echo_n "(cached) " >&6 | |
3035 | else | |
3036 | if $as_echo 'TRUE=$(BAR$(V)) | |
3037 | BAR0=false | |
3038 | BAR1=true | |
3039 | V=1 | |
3040 | am__doit: | |
3041 | @$(TRUE) | |
3042 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3043 | am_cv_make_support_nested_variables=yes | |
3044 | else | |
3045 | am_cv_make_support_nested_variables=no | |
3046 | fi | |
3047 | fi | |
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3049 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3050 | if test $am_cv_make_support_nested_variables = yes; then | |
3051 | AM_V='$(V)' | |
3052 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3053 | else | |
3054 | AM_V=$AM_DEFAULT_VERBOSITY | |
3055 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3056 | fi | |
3057 | AM_BACKSLASH='\' | |
2375 | 3058 | |
2376 | 3059 | |
2377 | 3060 | ac_config_headers="$ac_config_headers config.h" |
2378 | 3061 | |
2379 | 3062 | |
2380 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2381 | 3064 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
2382 | 3065 | # Check whether --enable-maintainer-mode was given. |
2383 | if test "${enable_maintainer_mode+set}" = set; then | |
3066 | if test "${enable_maintainer_mode+set}" = set; then : | |
2384 | 3067 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2385 | 3068 | else |
2386 | 3069 | USE_MAINTAINER_MODE=no |
2387 | 3070 | fi |
2388 | 3071 | |
2389 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2390 | 3073 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
2391 | 3074 | if test $USE_MAINTAINER_MODE = yes; then |
2392 | 3075 | MAINTAINER_MODE_TRUE= |
2409 | 3092 | if test -n "$ac_tool_prefix"; then |
2410 | 3093 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2411 | 3094 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2412 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2413 | 3096 | $as_echo_n "checking for $ac_word... " >&6; } |
2414 | if test "${ac_cv_prog_CC+set}" = set; then | |
3097 | if ${ac_cv_prog_CC+:} false; then : | |
2415 | 3098 | $as_echo_n "(cached) " >&6 |
2416 | 3099 | else |
2417 | 3100 | if test -n "$CC"; then |
2422 | 3105 | do |
2423 | 3106 | IFS=$as_save_IFS |
2424 | 3107 | test -z "$as_dir" && as_dir=. |
2425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2427 | 3110 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2428 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2429 | 3112 | break 2 |
2430 | 3113 | fi |
2431 | 3114 | done |
2432 | done | |
3115 | done | |
2433 | 3116 | IFS=$as_save_IFS |
2434 | 3117 | |
2435 | 3118 | fi |
2436 | 3119 | fi |
2437 | 3120 | CC=$ac_cv_prog_CC |
2438 | 3121 | if test -n "$CC"; then |
2439 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2440 | 3123 | $as_echo "$CC" >&6; } |
2441 | 3124 | else |
2442 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2443 | 3126 | $as_echo "no" >&6; } |
2444 | 3127 | fi |
2445 | 3128 | |
2449 | 3132 | ac_ct_CC=$CC |
2450 | 3133 | # Extract the first word of "gcc", so it can be a program name with args. |
2451 | 3134 | set dummy gcc; ac_word=$2 |
2452 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2453 | 3136 | $as_echo_n "checking for $ac_word... " >&6; } |
2454 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3137 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2455 | 3138 | $as_echo_n "(cached) " >&6 |
2456 | 3139 | else |
2457 | 3140 | if test -n "$ac_ct_CC"; then |
2462 | 3145 | do |
2463 | 3146 | IFS=$as_save_IFS |
2464 | 3147 | test -z "$as_dir" && as_dir=. |
2465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2467 | 3150 | ac_cv_prog_ac_ct_CC="gcc" |
2468 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2469 | 3152 | break 2 |
2470 | 3153 | fi |
2471 | 3154 | done |
2472 | done | |
3155 | done | |
2473 | 3156 | IFS=$as_save_IFS |
2474 | 3157 | |
2475 | 3158 | fi |
2476 | 3159 | fi |
2477 | 3160 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2478 | 3161 | if test -n "$ac_ct_CC"; then |
2479 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2480 | 3163 | $as_echo "$ac_ct_CC" >&6; } |
2481 | 3164 | else |
2482 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2483 | 3166 | $as_echo "no" >&6; } |
2484 | 3167 | fi |
2485 | 3168 | |
2488 | 3171 | else |
2489 | 3172 | case $cross_compiling:$ac_tool_warned in |
2490 | 3173 | yes:) |
2491 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2492 | 3175 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2493 | 3176 | ac_tool_warned=yes ;; |
2494 | 3177 | esac |
2502 | 3185 | if test -n "$ac_tool_prefix"; then |
2503 | 3186 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2504 | 3187 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2505 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2506 | 3189 | $as_echo_n "checking for $ac_word... " >&6; } |
2507 | if test "${ac_cv_prog_CC+set}" = set; then | |
3190 | if ${ac_cv_prog_CC+:} false; then : | |
2508 | 3191 | $as_echo_n "(cached) " >&6 |
2509 | 3192 | else |
2510 | 3193 | if test -n "$CC"; then |
2515 | 3198 | do |
2516 | 3199 | IFS=$as_save_IFS |
2517 | 3200 | test -z "$as_dir" && as_dir=. |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2520 | 3203 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2521 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2522 | 3205 | break 2 |
2523 | 3206 | fi |
2524 | 3207 | done |
2525 | done | |
3208 | done | |
2526 | 3209 | IFS=$as_save_IFS |
2527 | 3210 | |
2528 | 3211 | fi |
2529 | 3212 | fi |
2530 | 3213 | CC=$ac_cv_prog_CC |
2531 | 3214 | if test -n "$CC"; then |
2532 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2533 | 3216 | $as_echo "$CC" >&6; } |
2534 | 3217 | else |
2535 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2536 | 3219 | $as_echo "no" >&6; } |
2537 | 3220 | fi |
2538 | 3221 | |
2542 | 3225 | if test -z "$CC"; then |
2543 | 3226 | # Extract the first word of "cc", so it can be a program name with args. |
2544 | 3227 | set dummy cc; ac_word=$2 |
2545 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2546 | 3229 | $as_echo_n "checking for $ac_word... " >&6; } |
2547 | if test "${ac_cv_prog_CC+set}" = set; then | |
3230 | if ${ac_cv_prog_CC+:} false; then : | |
2548 | 3231 | $as_echo_n "(cached) " >&6 |
2549 | 3232 | else |
2550 | 3233 | if test -n "$CC"; then |
2556 | 3239 | do |
2557 | 3240 | IFS=$as_save_IFS |
2558 | 3241 | test -z "$as_dir" && as_dir=. |
2559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3242 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2561 | 3244 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2562 | 3245 | ac_prog_rejected=yes |
2563 | 3246 | continue |
2564 | 3247 | fi |
2565 | 3248 | ac_cv_prog_CC="cc" |
2566 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2567 | 3250 | break 2 |
2568 | 3251 | fi |
2569 | 3252 | done |
2570 | done | |
3253 | done | |
2571 | 3254 | IFS=$as_save_IFS |
2572 | 3255 | |
2573 | 3256 | if test $ac_prog_rejected = yes; then |
2586 | 3269 | fi |
2587 | 3270 | CC=$ac_cv_prog_CC |
2588 | 3271 | if test -n "$CC"; then |
2589 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2590 | 3273 | $as_echo "$CC" >&6; } |
2591 | 3274 | else |
2592 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2593 | 3276 | $as_echo "no" >&6; } |
2594 | 3277 | fi |
2595 | 3278 | |
2601 | 3284 | do |
2602 | 3285 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2603 | 3286 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2604 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2605 | 3288 | $as_echo_n "checking for $ac_word... " >&6; } |
2606 | if test "${ac_cv_prog_CC+set}" = set; then | |
3289 | if ${ac_cv_prog_CC+:} false; then : | |
2607 | 3290 | $as_echo_n "(cached) " >&6 |
2608 | 3291 | else |
2609 | 3292 | if test -n "$CC"; then |
2614 | 3297 | do |
2615 | 3298 | IFS=$as_save_IFS |
2616 | 3299 | test -z "$as_dir" && as_dir=. |
2617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2619 | 3302 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2620 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2621 | 3304 | break 2 |
2622 | 3305 | fi |
2623 | 3306 | done |
2624 | done | |
3307 | done | |
2625 | 3308 | IFS=$as_save_IFS |
2626 | 3309 | |
2627 | 3310 | fi |
2628 | 3311 | fi |
2629 | 3312 | CC=$ac_cv_prog_CC |
2630 | 3313 | if test -n "$CC"; then |
2631 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2632 | 3315 | $as_echo "$CC" >&6; } |
2633 | 3316 | else |
2634 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2635 | 3318 | $as_echo "no" >&6; } |
2636 | 3319 | fi |
2637 | 3320 | |
2645 | 3328 | do |
2646 | 3329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2647 | 3330 | set dummy $ac_prog; ac_word=$2 |
2648 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2649 | 3332 | $as_echo_n "checking for $ac_word... " >&6; } |
2650 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3333 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2651 | 3334 | $as_echo_n "(cached) " >&6 |
2652 | 3335 | else |
2653 | 3336 | if test -n "$ac_ct_CC"; then |
2658 | 3341 | do |
2659 | 3342 | IFS=$as_save_IFS |
2660 | 3343 | test -z "$as_dir" && as_dir=. |
2661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2663 | 3346 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2664 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2665 | 3348 | break 2 |
2666 | 3349 | fi |
2667 | 3350 | done |
2668 | done | |
3351 | done | |
2669 | 3352 | IFS=$as_save_IFS |
2670 | 3353 | |
2671 | 3354 | fi |
2672 | 3355 | fi |
2673 | 3356 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2674 | 3357 | if test -n "$ac_ct_CC"; then |
2675 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2676 | 3359 | $as_echo "$ac_ct_CC" >&6; } |
2677 | 3360 | else |
2678 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2679 | 3362 | $as_echo "no" >&6; } |
2680 | 3363 | fi |
2681 | 3364 | |
2688 | 3371 | else |
2689 | 3372 | case $cross_compiling:$ac_tool_warned in |
2690 | 3373 | yes:) |
2691 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2692 | 3375 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2693 | 3376 | ac_tool_warned=yes ;; |
2694 | 3377 | esac |
2699 | 3382 | fi |
2700 | 3383 | |
2701 | 3384 | |
2702 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3385 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2703 | 3386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2704 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2705 | See \`config.log' for more details." >&5 | |
2706 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2707 | See \`config.log' for more details." >&2;} | |
2708 | { (exit 1); exit 1; }; }; } | |
3387 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3388 | See \`config.log' for more details" "$LINENO" 5; } | |
2709 | 3389 | |
2710 | 3390 | # Provide some information about the compiler. |
2711 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
3391 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2712 | 3392 | set X $ac_compile |
2713 | 3393 | ac_compiler=$2 |
2714 | { (ac_try="$ac_compiler --version >&5" | |
3394 | for ac_option in --version -v -V -qversion; do | |
3395 | { { ac_try="$ac_compiler $ac_option >&5" | |
2715 | 3396 | case "(($ac_try" in |
2716 | 3397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2717 | 3398 | *) ac_try_echo=$ac_try;; |
2718 | 3399 | esac |
2719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2720 | $as_echo "$ac_try_echo") >&5 | |
2721 | (eval "$ac_compiler --version >&5") 2>&5 | |
3400 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3401 | $as_echo "$ac_try_echo"; } >&5 | |
3402 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2722 | 3403 | ac_status=$? |
2723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2724 | (exit $ac_status); } | |
2725 | { (ac_try="$ac_compiler -v >&5" | |
2726 | case "(($ac_try" in | |
2727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2728 | *) ac_try_echo=$ac_try;; | |
2729 | esac | |
2730 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2731 | $as_echo "$ac_try_echo") >&5 | |
2732 | (eval "$ac_compiler -v >&5") 2>&5 | |
2733 | ac_status=$? | |
2734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2735 | (exit $ac_status); } | |
2736 | { (ac_try="$ac_compiler -V >&5" | |
2737 | case "(($ac_try" in | |
2738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2739 | *) ac_try_echo=$ac_try;; | |
2740 | esac | |
2741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2742 | $as_echo "$ac_try_echo") >&5 | |
2743 | (eval "$ac_compiler -V >&5") 2>&5 | |
2744 | ac_status=$? | |
2745 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2746 | (exit $ac_status); } | |
2747 | ||
2748 | cat >conftest.$ac_ext <<_ACEOF | |
2749 | /* confdefs.h. */ | |
2750 | _ACEOF | |
2751 | cat confdefs.h >>conftest.$ac_ext | |
2752 | cat >>conftest.$ac_ext <<_ACEOF | |
3404 | if test -s conftest.err; then | |
3405 | sed '10a\ | |
3406 | ... rest of stderr output deleted ... | |
3407 | 10q' conftest.err >conftest.er1 | |
3408 | cat conftest.er1 >&5 | |
3409 | fi | |
3410 | rm -f conftest.er1 conftest.err | |
3411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3412 | test $ac_status = 0; } | |
3413 | done | |
3414 | ||
3415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2753 | 3416 | /* end confdefs.h. */ |
2754 | 3417 | |
2755 | 3418 | int |
2765 | 3428 | # Try to create an executable without -o first, disregard a.out. |
2766 | 3429 | # It will help us diagnose broken compilers, and finding out an intuition |
2767 | 3430 | # of exeext. |
2768 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2769 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3432 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2770 | 3433 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2771 | 3434 | |
2772 | 3435 | # The possible output files: |
2782 | 3445 | done |
2783 | 3446 | rm -f $ac_rmfiles |
2784 | 3447 | |
2785 | if { (ac_try="$ac_link_default" | |
3448 | if { { ac_try="$ac_link_default" | |
2786 | 3449 | case "(($ac_try" in |
2787 | 3450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2788 | 3451 | *) ac_try_echo=$ac_try;; |
2789 | 3452 | esac |
2790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2791 | $as_echo "$ac_try_echo") >&5 | |
3453 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3454 | $as_echo "$ac_try_echo"; } >&5 | |
2792 | 3455 | (eval "$ac_link_default") 2>&5 |
2793 | 3456 | ac_status=$? |
2794 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2795 | (exit $ac_status); }; then | |
3457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3458 | test $ac_status = 0; }; then : | |
2796 | 3459 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2797 | 3460 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2798 | 3461 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2809 | 3472 | # certainly right. |
2810 | 3473 | break;; |
2811 | 3474 | *.* ) |
2812 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3475 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2813 | 3476 | then :; else |
2814 | 3477 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2815 | 3478 | fi |
2828 | 3491 | else |
2829 | 3492 | ac_file='' |
2830 | 3493 | fi |
2831 | ||
2832 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3494 | if test -z "$ac_file"; then : | |
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3496 | $as_echo "no" >&6; } | |
3497 | $as_echo "$as_me: failed program was:" >&5 | |
3498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3499 | ||
3500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3502 | as_fn_error 77 "C compiler cannot create executables | |
3503 | See \`config.log' for more details" "$LINENO" 5; } | |
3504 | else | |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3506 | $as_echo "yes" >&6; } | |
3507 | fi | |
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3509 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2833 | 3511 | $as_echo "$ac_file" >&6; } |
2834 | if test -z "$ac_file"; then | |
2835 | $as_echo "$as_me: failed program was:" >&5 | |
2836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2837 | ||
2838 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2840 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2841 | See \`config.log' for more details." >&5 | |
2842 | $as_echo "$as_me: error: C compiler cannot create executables | |
2843 | See \`config.log' for more details." >&2;} | |
2844 | { (exit 77); exit 77; }; }; } | |
2845 | fi | |
2846 | ||
2847 | 3512 | ac_exeext=$ac_cv_exeext |
2848 | ||
2849 | # Check that the compiler produces executables we can run. If not, either | |
2850 | # the compiler is broken, or we cross compile. | |
2851 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2852 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2853 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2854 | # If not cross compiling, check that we can run a simple program. | |
2855 | if test "$cross_compiling" != yes; then | |
2856 | if { ac_try='./$ac_file' | |
2857 | { (case "(($ac_try" in | |
2858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2859 | *) ac_try_echo=$ac_try;; | |
2860 | esac | |
2861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2862 | $as_echo "$ac_try_echo") >&5 | |
2863 | (eval "$ac_try") 2>&5 | |
2864 | ac_status=$? | |
2865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2866 | (exit $ac_status); }; }; then | |
2867 | cross_compiling=no | |
2868 | else | |
2869 | if test "$cross_compiling" = maybe; then | |
2870 | cross_compiling=yes | |
2871 | else | |
2872 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2874 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2875 | If you meant to cross compile, use \`--host'. | |
2876 | See \`config.log' for more details." >&5 | |
2877 | $as_echo "$as_me: error: cannot run C compiled programs. | |
2878 | If you meant to cross compile, use \`--host'. | |
2879 | See \`config.log' for more details." >&2;} | |
2880 | { (exit 1); exit 1; }; }; } | |
2881 | fi | |
2882 | fi | |
2883 | fi | |
2884 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2885 | $as_echo "yes" >&6; } | |
2886 | 3513 | |
2887 | 3514 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2888 | 3515 | ac_clean_files=$ac_clean_files_save |
2889 | # Check that the compiler produces executables we can run. If not, either | |
2890 | # the compiler is broken, or we cross compile. | |
2891 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2892 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2893 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2894 | $as_echo "$cross_compiling" >&6; } | |
2895 | ||
2896 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2897 | 3517 | $as_echo_n "checking for suffix of executables... " >&6; } |
2898 | if { (ac_try="$ac_link" | |
3518 | if { { ac_try="$ac_link" | |
2899 | 3519 | case "(($ac_try" in |
2900 | 3520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2901 | 3521 | *) ac_try_echo=$ac_try;; |
2902 | 3522 | esac |
2903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2904 | $as_echo "$ac_try_echo") >&5 | |
3523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3524 | $as_echo "$ac_try_echo"; } >&5 | |
2905 | 3525 | (eval "$ac_link") 2>&5 |
2906 | 3526 | ac_status=$? |
2907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2908 | (exit $ac_status); }; then | |
3527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3528 | test $ac_status = 0; }; then : | |
2909 | 3529 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2910 | 3530 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2911 | 3531 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2920 | 3540 | esac |
2921 | 3541 | done |
2922 | 3542 | else |
2923 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3543 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2924 | 3544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2925 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2926 | See \`config.log' for more details." >&5 | |
2927 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2928 | See \`config.log' for more details." >&2;} | |
2929 | { (exit 1); exit 1; }; }; } | |
2930 | fi | |
2931 | ||
2932 | rm -f conftest$ac_cv_exeext | |
2933 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3545 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3546 | See \`config.log' for more details" "$LINENO" 5; } | |
3547 | fi | |
3548 | rm -f conftest conftest$ac_cv_exeext | |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2934 | 3550 | $as_echo "$ac_cv_exeext" >&6; } |
2935 | 3551 | |
2936 | 3552 | rm -f conftest.$ac_ext |
2937 | 3553 | EXEEXT=$ac_cv_exeext |
2938 | 3554 | ac_exeext=$EXEEXT |
2939 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2940 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2941 | if test "${ac_cv_objext+set}" = set; then | |
2942 | $as_echo_n "(cached) " >&6 | |
2943 | else | |
2944 | cat >conftest.$ac_ext <<_ACEOF | |
2945 | /* confdefs.h. */ | |
2946 | _ACEOF | |
2947 | cat confdefs.h >>conftest.$ac_ext | |
2948 | cat >>conftest.$ac_ext <<_ACEOF | |
3555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2949 | 3556 | /* end confdefs.h. */ |
2950 | ||
3557 | #include <stdio.h> | |
2951 | 3558 | int |
2952 | 3559 | main () |
2953 | 3560 | { |
3561 | FILE *f = fopen ("conftest.out", "w"); | |
3562 | return ferror (f) || fclose (f) != 0; | |
2954 | 3563 | |
2955 | 3564 | ; |
2956 | 3565 | return 0; |
2957 | 3566 | } |
2958 | 3567 | _ACEOF |
2959 | rm -f conftest.o conftest.obj | |
2960 | if { (ac_try="$ac_compile" | |
3568 | ac_clean_files="$ac_clean_files conftest.out" | |
3569 | # Check that the compiler produces executables we can run. If not, either | |
3570 | # the compiler is broken, or we cross compile. | |
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3572 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3573 | if test "$cross_compiling" != yes; then | |
3574 | { { ac_try="$ac_link" | |
2961 | 3575 | case "(($ac_try" in |
2962 | 3576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2963 | 3577 | *) ac_try_echo=$ac_try;; |
2964 | 3578 | esac |
2965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2966 | $as_echo "$ac_try_echo") >&5 | |
3579 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3580 | $as_echo "$ac_try_echo"; } >&5 | |
3581 | (eval "$ac_link") 2>&5 | |
3582 | ac_status=$? | |
3583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3584 | test $ac_status = 0; } | |
3585 | if { ac_try='./conftest$ac_cv_exeext' | |
3586 | { { case "(($ac_try" in | |
3587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3588 | *) ac_try_echo=$ac_try;; | |
3589 | esac | |
3590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3591 | $as_echo "$ac_try_echo"; } >&5 | |
3592 | (eval "$ac_try") 2>&5 | |
3593 | ac_status=$? | |
3594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3595 | test $ac_status = 0; }; }; then | |
3596 | cross_compiling=no | |
3597 | else | |
3598 | if test "$cross_compiling" = maybe; then | |
3599 | cross_compiling=yes | |
3600 | else | |
3601 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3602 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3603 | as_fn_error $? "cannot run C compiled programs. | |
3604 | If you meant to cross compile, use \`--host'. | |
3605 | See \`config.log' for more details" "$LINENO" 5; } | |
3606 | fi | |
3607 | fi | |
3608 | fi | |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3610 | $as_echo "$cross_compiling" >&6; } | |
3611 | ||
3612 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3613 | ac_clean_files=$ac_clean_files_save | |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3615 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3616 | if ${ac_cv_objext+:} false; then : | |
3617 | $as_echo_n "(cached) " >&6 | |
3618 | else | |
3619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3620 | /* end confdefs.h. */ | |
3621 | ||
3622 | int | |
3623 | main () | |
3624 | { | |
3625 | ||
3626 | ; | |
3627 | return 0; | |
3628 | } | |
3629 | _ACEOF | |
3630 | rm -f conftest.o conftest.obj | |
3631 | if { { ac_try="$ac_compile" | |
3632 | case "(($ac_try" in | |
3633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3634 | *) ac_try_echo=$ac_try;; | |
3635 | esac | |
3636 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3637 | $as_echo "$ac_try_echo"; } >&5 | |
2967 | 3638 | (eval "$ac_compile") 2>&5 |
2968 | 3639 | ac_status=$? |
2969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2970 | (exit $ac_status); }; then | |
3640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3641 | test $ac_status = 0; }; then : | |
2971 | 3642 | for ac_file in conftest.o conftest.obj conftest.*; do |
2972 | 3643 | test -f "$ac_file" || continue; |
2973 | 3644 | case $ac_file in |
2980 | 3651 | $as_echo "$as_me: failed program was:" >&5 |
2981 | 3652 | sed 's/^/| /' conftest.$ac_ext >&5 |
2982 | 3653 | |
2983 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3654 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2984 | 3655 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2985 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2986 | See \`config.log' for more details." >&5 | |
2987 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2988 | See \`config.log' for more details." >&2;} | |
2989 | { (exit 1); exit 1; }; }; } | |
2990 | fi | |
2991 | ||
3656 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3657 | See \`config.log' for more details" "$LINENO" 5; } | |
3658 | fi | |
2992 | 3659 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2993 | 3660 | fi |
2994 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2995 | 3662 | $as_echo "$ac_cv_objext" >&6; } |
2996 | 3663 | OBJEXT=$ac_cv_objext |
2997 | 3664 | ac_objext=$OBJEXT |
2998 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2999 | 3666 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3000 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3667 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3001 | 3668 | $as_echo_n "(cached) " >&6 |
3002 | 3669 | else |
3003 | cat >conftest.$ac_ext <<_ACEOF | |
3004 | /* confdefs.h. */ | |
3005 | _ACEOF | |
3006 | cat confdefs.h >>conftest.$ac_ext | |
3007 | cat >>conftest.$ac_ext <<_ACEOF | |
3670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3008 | 3671 | /* end confdefs.h. */ |
3009 | 3672 | |
3010 | 3673 | int |
3018 | 3681 | return 0; |
3019 | 3682 | } |
3020 | 3683 | _ACEOF |
3021 | rm -f conftest.$ac_objext | |
3022 | if { (ac_try="$ac_compile" | |
3023 | case "(($ac_try" in | |
3024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3025 | *) ac_try_echo=$ac_try;; | |
3026 | esac | |
3027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3028 | $as_echo "$ac_try_echo") >&5 | |
3029 | (eval "$ac_compile") 2>conftest.er1 | |
3030 | ac_status=$? | |
3031 | grep -v '^ *+' conftest.er1 >conftest.err | |
3032 | rm -f conftest.er1 | |
3033 | cat conftest.err >&5 | |
3034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3035 | (exit $ac_status); } && { | |
3036 | test -z "$ac_c_werror_flag" || | |
3037 | test ! -s conftest.err | |
3038 | } && test -s conftest.$ac_objext; then | |
3684 | if ac_fn_c_try_compile "$LINENO"; then : | |
3039 | 3685 | ac_compiler_gnu=yes |
3040 | 3686 | else |
3041 | $as_echo "$as_me: failed program was:" >&5 | |
3042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3043 | ||
3044 | ac_compiler_gnu=no | |
3045 | fi | |
3046 | ||
3687 | ac_compiler_gnu=no | |
3688 | fi | |
3047 | 3689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3048 | 3690 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3049 | 3691 | |
3050 | 3692 | fi |
3051 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3052 | 3694 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3053 | 3695 | if test $ac_compiler_gnu = yes; then |
3054 | 3696 | GCC=yes |
3057 | 3699 | fi |
3058 | 3700 | ac_test_CFLAGS=${CFLAGS+set} |
3059 | 3701 | ac_save_CFLAGS=$CFLAGS |
3060 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3061 | 3703 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3062 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3704 | if ${ac_cv_prog_cc_g+:} false; then : | |
3063 | 3705 | $as_echo_n "(cached) " >&6 |
3064 | 3706 | else |
3065 | 3707 | ac_save_c_werror_flag=$ac_c_werror_flag |
3066 | 3708 | ac_c_werror_flag=yes |
3067 | 3709 | ac_cv_prog_cc_g=no |
3068 | 3710 | CFLAGS="-g" |
3069 | cat >conftest.$ac_ext <<_ACEOF | |
3070 | /* confdefs.h. */ | |
3071 | _ACEOF | |
3072 | cat confdefs.h >>conftest.$ac_ext | |
3073 | cat >>conftest.$ac_ext <<_ACEOF | |
3711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3074 | 3712 | /* end confdefs.h. */ |
3075 | 3713 | |
3076 | 3714 | int |
3081 | 3719 | return 0; |
3082 | 3720 | } |
3083 | 3721 | _ACEOF |
3084 | rm -f conftest.$ac_objext | |
3085 | if { (ac_try="$ac_compile" | |
3086 | case "(($ac_try" in | |
3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3088 | *) ac_try_echo=$ac_try;; | |
3089 | esac | |
3090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3091 | $as_echo "$ac_try_echo") >&5 | |
3092 | (eval "$ac_compile") 2>conftest.er1 | |
3093 | ac_status=$? | |
3094 | grep -v '^ *+' conftest.er1 >conftest.err | |
3095 | rm -f conftest.er1 | |
3096 | cat conftest.err >&5 | |
3097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3098 | (exit $ac_status); } && { | |
3099 | test -z "$ac_c_werror_flag" || | |
3100 | test ! -s conftest.err | |
3101 | } && test -s conftest.$ac_objext; then | |
3722 | if ac_fn_c_try_compile "$LINENO"; then : | |
3102 | 3723 | ac_cv_prog_cc_g=yes |
3103 | 3724 | else |
3104 | $as_echo "$as_me: failed program was:" >&5 | |
3105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3106 | ||
3107 | CFLAGS="" | |
3108 | cat >conftest.$ac_ext <<_ACEOF | |
3109 | /* confdefs.h. */ | |
3110 | _ACEOF | |
3111 | cat confdefs.h >>conftest.$ac_ext | |
3112 | cat >>conftest.$ac_ext <<_ACEOF | |
3725 | CFLAGS="" | |
3726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3113 | 3727 | /* end confdefs.h. */ |
3114 | 3728 | |
3115 | 3729 | int |
3120 | 3734 | return 0; |
3121 | 3735 | } |
3122 | 3736 | _ACEOF |
3123 | rm -f conftest.$ac_objext | |
3124 | if { (ac_try="$ac_compile" | |
3125 | case "(($ac_try" in | |
3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3127 | *) ac_try_echo=$ac_try;; | |
3128 | esac | |
3129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3130 | $as_echo "$ac_try_echo") >&5 | |
3131 | (eval "$ac_compile") 2>conftest.er1 | |
3132 | ac_status=$? | |
3133 | grep -v '^ *+' conftest.er1 >conftest.err | |
3134 | rm -f conftest.er1 | |
3135 | cat conftest.err >&5 | |
3136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3137 | (exit $ac_status); } && { | |
3138 | test -z "$ac_c_werror_flag" || | |
3139 | test ! -s conftest.err | |
3140 | } && test -s conftest.$ac_objext; then | |
3141 | : | |
3142 | else | |
3143 | $as_echo "$as_me: failed program was:" >&5 | |
3144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3145 | ||
3146 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3737 | if ac_fn_c_try_compile "$LINENO"; then : | |
3738 | ||
3739 | else | |
3740 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3147 | 3741 | CFLAGS="-g" |
3148 | cat >conftest.$ac_ext <<_ACEOF | |
3149 | /* confdefs.h. */ | |
3150 | _ACEOF | |
3151 | cat confdefs.h >>conftest.$ac_ext | |
3152 | cat >>conftest.$ac_ext <<_ACEOF | |
3742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3153 | 3743 | /* end confdefs.h. */ |
3154 | 3744 | |
3155 | 3745 | int |
3160 | 3750 | return 0; |
3161 | 3751 | } |
3162 | 3752 | _ACEOF |
3163 | rm -f conftest.$ac_objext | |
3164 | if { (ac_try="$ac_compile" | |
3165 | case "(($ac_try" in | |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3167 | *) ac_try_echo=$ac_try;; | |
3168 | esac | |
3169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3170 | $as_echo "$ac_try_echo") >&5 | |
3171 | (eval "$ac_compile") 2>conftest.er1 | |
3172 | ac_status=$? | |
3173 | grep -v '^ *+' conftest.er1 >conftest.err | |
3174 | rm -f conftest.er1 | |
3175 | cat conftest.err >&5 | |
3176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3177 | (exit $ac_status); } && { | |
3178 | test -z "$ac_c_werror_flag" || | |
3179 | test ! -s conftest.err | |
3180 | } && test -s conftest.$ac_objext; then | |
3753 | if ac_fn_c_try_compile "$LINENO"; then : | |
3181 | 3754 | ac_cv_prog_cc_g=yes |
3182 | else | |
3183 | $as_echo "$as_me: failed program was:" >&5 | |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3185 | ||
3186 | ||
3187 | fi | |
3188 | ||
3755 | fi | |
3189 | 3756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3190 | 3757 | fi |
3191 | ||
3192 | 3758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3193 | 3759 | fi |
3194 | ||
3195 | 3760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3196 | 3761 | ac_c_werror_flag=$ac_save_c_werror_flag |
3197 | 3762 | fi |
3198 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3199 | 3764 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
3200 | 3765 | if test "$ac_test_CFLAGS" = set; then |
3201 | 3766 | CFLAGS=$ac_save_CFLAGS |
3212 | 3777 | CFLAGS= |
3213 | 3778 | fi |
3214 | 3779 | fi |
3215 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3216 | 3781 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3217 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3782 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3218 | 3783 | $as_echo_n "(cached) " >&6 |
3219 | 3784 | else |
3220 | 3785 | ac_cv_prog_cc_c89=no |
3221 | 3786 | ac_save_CC=$CC |
3222 | cat >conftest.$ac_ext <<_ACEOF | |
3223 | /* confdefs.h. */ | |
3224 | _ACEOF | |
3225 | cat confdefs.h >>conftest.$ac_ext | |
3226 | cat >>conftest.$ac_ext <<_ACEOF | |
3787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3227 | 3788 | /* end confdefs.h. */ |
3228 | 3789 | #include <stdarg.h> |
3229 | 3790 | #include <stdio.h> |
3230 | #include <sys/types.h> | |
3231 | #include <sys/stat.h> | |
3791 | struct stat; | |
3232 | 3792 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3233 | 3793 | struct buf { int x; }; |
3234 | 3794 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3280 | 3840 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3281 | 3841 | do |
3282 | 3842 | CC="$ac_save_CC $ac_arg" |
3283 | rm -f conftest.$ac_objext | |
3284 | if { (ac_try="$ac_compile" | |
3285 | case "(($ac_try" in | |
3286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3287 | *) ac_try_echo=$ac_try;; | |
3288 | esac | |
3289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3290 | $as_echo "$ac_try_echo") >&5 | |
3291 | (eval "$ac_compile") 2>conftest.er1 | |
3292 | ac_status=$? | |
3293 | grep -v '^ *+' conftest.er1 >conftest.err | |
3294 | rm -f conftest.er1 | |
3295 | cat conftest.err >&5 | |
3296 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3297 | (exit $ac_status); } && { | |
3298 | test -z "$ac_c_werror_flag" || | |
3299 | test ! -s conftest.err | |
3300 | } && test -s conftest.$ac_objext; then | |
3843 | if ac_fn_c_try_compile "$LINENO"; then : | |
3301 | 3844 | ac_cv_prog_cc_c89=$ac_arg |
3302 | else | |
3303 | $as_echo "$as_me: failed program was:" >&5 | |
3304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3305 | ||
3306 | ||
3307 | fi | |
3308 | ||
3845 | fi | |
3309 | 3846 | rm -f core conftest.err conftest.$ac_objext |
3310 | 3847 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3311 | 3848 | done |
3316 | 3853 | # AC_CACHE_VAL |
3317 | 3854 | case "x$ac_cv_prog_cc_c89" in |
3318 | 3855 | x) |
3319 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3320 | 3857 | $as_echo "none needed" >&6; } ;; |
3321 | 3858 | xno) |
3322 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3323 | 3860 | $as_echo "unsupported" >&6; } ;; |
3324 | 3861 | *) |
3325 | 3862 | CC="$CC $ac_cv_prog_cc_c89" |
3326 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3327 | 3864 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3328 | 3865 | esac |
3329 | ||
3866 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3867 | ||
3868 | fi | |
3330 | 3869 | |
3331 | 3870 | ac_ext=c |
3332 | 3871 | ac_cpp='$CPP $CPPFLAGS' |
3333 | 3872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3334 | 3873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3335 | 3874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3875 | ||
3876 | ac_ext=c | |
3877 | ac_cpp='$CPP $CPPFLAGS' | |
3878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3882 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3883 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3884 | $as_echo_n "(cached) " >&6 | |
3885 | else | |
3886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3887 | /* end confdefs.h. */ | |
3888 | ||
3889 | int | |
3890 | main () | |
3891 | { | |
3892 | ||
3893 | ; | |
3894 | return 0; | |
3895 | } | |
3896 | _ACEOF | |
3897 | # Make sure it works both with $CC and with simple cc. | |
3898 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3899 | # compilers refuse to overwrite an existing .o file with -o, | |
3900 | # though they will create one. | |
3901 | am_cv_prog_cc_c_o=yes | |
3902 | for am_i in 1 2; do | |
3903 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3904 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3905 | ac_status=$? | |
3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3907 | (exit $ac_status); } \ | |
3908 | && test -f conftest2.$ac_objext; then | |
3909 | : OK | |
3910 | else | |
3911 | am_cv_prog_cc_c_o=no | |
3912 | break | |
3913 | fi | |
3914 | done | |
3915 | rm -f core conftest* | |
3916 | unset am_i | |
3917 | fi | |
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3919 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3920 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3921 | # Losing compiler, so override with the script. | |
3922 | # FIXME: It is wrong to rewrite CC. | |
3923 | # But if we don't then we get into trouble of one sort or another. | |
3924 | # A longer-term fix would be to have automake use am__CC in this case, | |
3925 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3926 | CC="$am_aux_dir/compile $CC" | |
3927 | fi | |
3928 | ac_ext=c | |
3929 | ac_cpp='$CPP $CPPFLAGS' | |
3930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3933 | ||
3336 | 3934 | DEPDIR="${am__leading_dot}deps" |
3337 | 3935 | |
3338 | 3936 | ac_config_commands="$ac_config_commands depfiles" |
3345 | 3943 | .PHONY: am__doit |
3346 | 3944 | END |
3347 | 3945 | # If we don't find an include directive, just comment out the code. |
3348 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3349 | 3947 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
3350 | 3948 | am__include="#" |
3351 | 3949 | am__quote= |
3352 | 3950 | _am_result=none |
3353 | 3951 | # First try GNU make style include. |
3354 | 3952 | echo "include confinc" > confmf |
3355 | # Ignore all kinds of additional output from `make'. | |
3953 | # Ignore all kinds of additional output from 'make'. | |
3356 | 3954 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3357 | 3955 | *the\ am__doit\ target*) |
3358 | 3956 | am__include=include |
3373 | 3971 | fi |
3374 | 3972 | |
3375 | 3973 | |
3376 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3377 | 3975 | $as_echo "$_am_result" >&6; } |
3378 | 3976 | rm -f confinc confmf |
3379 | 3977 | |
3380 | 3978 | # Check whether --enable-dependency-tracking was given. |
3381 | if test "${enable_dependency_tracking+set}" = set; then | |
3979 | if test "${enable_dependency_tracking+set}" = set; then : | |
3382 | 3980 | enableval=$enable_dependency_tracking; |
3383 | 3981 | fi |
3384 | 3982 | |
3385 | 3983 | if test "x$enable_dependency_tracking" != xno; then |
3386 | 3984 | am_depcomp="$ac_aux_dir/depcomp" |
3387 | 3985 | AMDEPBACKSLASH='\' |
3986 | am__nodep='_no' | |
3388 | 3987 | fi |
3389 | 3988 | if test "x$enable_dependency_tracking" != xno; then |
3390 | 3989 | AMDEP_TRUE= |
3398 | 3997 | |
3399 | 3998 | depcc="$CC" am_compiler_list= |
3400 | 3999 | |
3401 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3402 | 4001 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
3403 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
4002 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3404 | 4003 | $as_echo_n "(cached) " >&6 |
3405 | 4004 | else |
3406 | 4005 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3407 | 4006 | # We make a subdir and do the tests there. Otherwise we can end up |
3408 | 4007 | # making bogus files that we don't know about and never remove. For |
3409 | 4008 | # instance it was reported that on HP-UX the gcc test will end up |
3410 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3411 | # in D'. | |
4009 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4010 | # in D". | |
4011 | rm -rf conftest.dir | |
3412 | 4012 | mkdir conftest.dir |
3413 | 4013 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3414 | 4014 | # using a relative directory. |
3442 | 4042 | : > sub/conftest.c |
3443 | 4043 | for i in 1 2 3 4 5 6; do |
3444 | 4044 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3445 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3446 | # Solaris 8's {/usr,}/bin/sh. | |
3447 | touch sub/conftst$i.h | |
4045 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4046 | # Solaris 10 /bin/sh. | |
4047 | echo '/* dummy */' > sub/conftst$i.h | |
3448 | 4048 | done |
3449 | 4049 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3450 | 4050 | |
3451 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4051 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3452 | 4052 | # mode. It turns out that the SunPro C++ compiler does not properly |
3453 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3454 | # versions had trouble with output in subdirs | |
4053 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4054 | # versions had trouble with output in subdirs. | |
3455 | 4055 | am__obj=sub/conftest.${OBJEXT-o} |
3456 | 4056 | am__minus_obj="-o $am__obj" |
3457 | 4057 | case $depmode in |
3460 | 4060 | test "$am__universal" = false || continue |
3461 | 4061 | ;; |
3462 | 4062 | nosideeffect) |
3463 | # after this tag, mechanisms are not by side-effect, so they'll | |
3464 | # only be used when explicitly requested | |
4063 | # After this tag, mechanisms are not by side-effect, so they'll | |
4064 | # only be used when explicitly requested. | |
3465 | 4065 | if test "x$enable_dependency_tracking" = xyes; then |
3466 | 4066 | continue |
3467 | 4067 | else |
3468 | 4068 | break |
3469 | 4069 | fi |
3470 | 4070 | ;; |
3471 | msvisualcpp | msvcmsys) | |
3472 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4071 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4072 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3473 | 4073 | # not run yet. These depmodes are late enough in the game, and |
3474 | 4074 | # so weak that their functioning should not be impacted. |
3475 | 4075 | am__obj=conftest.${OBJEXT-o} |
3508 | 4108 | fi |
3509 | 4109 | |
3510 | 4110 | fi |
3511 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3512 | 4112 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
3513 | 4113 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3514 | 4114 | |
3523 | 4123 | fi |
3524 | 4124 | |
3525 | 4125 | |
3526 | if test "x$CC" != xcc; then | |
3527 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3528 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
3529 | else | |
3530 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3531 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
3532 | fi | |
3533 | set dummy $CC; ac_cc=`$as_echo "$2" | | |
3534 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3535 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then | |
3536 | $as_echo_n "(cached) " >&6 | |
3537 | else | |
3538 | cat >conftest.$ac_ext <<_ACEOF | |
3539 | /* confdefs.h. */ | |
3540 | _ACEOF | |
3541 | cat confdefs.h >>conftest.$ac_ext | |
3542 | cat >>conftest.$ac_ext <<_ACEOF | |
3543 | /* end confdefs.h. */ | |
3544 | ||
3545 | int | |
3546 | main () | |
3547 | { | |
3548 | ||
3549 | ; | |
3550 | return 0; | |
3551 | } | |
3552 | _ACEOF | |
3553 | # Make sure it works both with $CC and with simple cc. | |
3554 | # We do the test twice because some compilers refuse to overwrite an | |
3555 | # existing .o file with -o, though they will create one. | |
3556 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3557 | rm -f conftest2.* | |
3558 | if { (case "(($ac_try" in | |
3559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3560 | *) ac_try_echo=$ac_try;; | |
3561 | esac | |
3562 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3563 | $as_echo "$ac_try_echo") >&5 | |
3564 | (eval "$ac_try") 2>&5 | |
3565 | ac_status=$? | |
3566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3567 | (exit $ac_status); } && | |
3568 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3570 | *) ac_try_echo=$ac_try;; | |
3571 | esac | |
3572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3573 | $as_echo "$ac_try_echo") >&5 | |
3574 | (eval "$ac_try") 2>&5 | |
3575 | ac_status=$? | |
3576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3577 | (exit $ac_status); }; | |
3578 | then | |
3579 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3580 | if test "x$CC" != xcc; then | |
3581 | # Test first that cc exists at all. | |
3582 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3583 | { (case "(($ac_try" in | |
3584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3585 | *) ac_try_echo=$ac_try;; | |
3586 | esac | |
3587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3588 | $as_echo "$ac_try_echo") >&5 | |
3589 | (eval "$ac_try") 2>&5 | |
3590 | ac_status=$? | |
3591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3592 | (exit $ac_status); }; }; then | |
3593 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3594 | rm -f conftest2.* | |
3595 | if { (case "(($ac_try" in | |
3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3597 | *) ac_try_echo=$ac_try;; | |
3598 | esac | |
3599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3600 | $as_echo "$ac_try_echo") >&5 | |
3601 | (eval "$ac_try") 2>&5 | |
3602 | ac_status=$? | |
3603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3604 | (exit $ac_status); } && | |
3605 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3607 | *) ac_try_echo=$ac_try;; | |
3608 | esac | |
3609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3610 | $as_echo "$ac_try_echo") >&5 | |
3611 | (eval "$ac_try") 2>&5 | |
3612 | ac_status=$? | |
3613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3614 | (exit $ac_status); }; | |
3615 | then | |
3616 | # cc works too. | |
3617 | : | |
3618 | else | |
3619 | # cc exists but doesn't like -o. | |
3620 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3621 | fi | |
3622 | fi | |
3623 | fi | |
3624 | else | |
3625 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3626 | fi | |
3627 | rm -f core conftest* | |
3628 | ||
3629 | fi | |
3630 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
3631 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3632 | $as_echo "yes" >&6; } | |
3633 | else | |
3634 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3635 | $as_echo "no" >&6; } | |
3636 | ||
3637 | cat >>confdefs.h <<\_ACEOF | |
3638 | #define NO_MINUS_C_MINUS_O 1 | |
3639 | _ACEOF | |
3640 | ||
3641 | fi | |
3642 | ||
3643 | # FIXME: we rely on the cache variable name because | |
3644 | # there is no other way. | |
3645 | set dummy $CC | |
3646 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3647 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
3648 | if test "$am_t" != yes; then | |
3649 | # Losing compiler, so override with the script. | |
3650 | # FIXME: It is wrong to rewrite CC. | |
3651 | # But if we don't then we get into trouble of one sort or another. | |
3652 | # A longer-term fix would be to have automake use am__CC in this case, | |
3653 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3654 | CC="$am_aux_dir/compile $CC" | |
3655 | fi | |
3656 | ||
3657 | 4126 | |
3658 | 4127 | |
3659 | 4128 | # Checks for header files. |
3663 | 4132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3664 | 4133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3665 | 4134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3666 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3667 | 4136 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
3668 | 4137 | # On Suns, sometimes $CPP names a directory. |
3669 | 4138 | if test -n "$CPP" && test -d "$CPP"; then |
3670 | 4139 | CPP= |
3671 | 4140 | fi |
3672 | 4141 | if test -z "$CPP"; then |
3673 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4142 | if ${ac_cv_prog_CPP+:} false; then : | |
3674 | 4143 | $as_echo_n "(cached) " >&6 |
3675 | 4144 | else |
3676 | 4145 | # Double quotes because CPP needs to be expanded |
3685 | 4154 | # <limits.h> exists even on freestanding compilers. |
3686 | 4155 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3687 | 4156 | # not just through cpp. "Syntax error" is here to catch this case. |
3688 | cat >conftest.$ac_ext <<_ACEOF | |
3689 | /* confdefs.h. */ | |
3690 | _ACEOF | |
3691 | cat confdefs.h >>conftest.$ac_ext | |
3692 | cat >>conftest.$ac_ext <<_ACEOF | |
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3693 | 4158 | /* end confdefs.h. */ |
3694 | 4159 | #ifdef __STDC__ |
3695 | 4160 | # include <limits.h> |
3698 | 4163 | #endif |
3699 | 4164 | Syntax error |
3700 | 4165 | _ACEOF |
3701 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3702 | case "(($ac_try" in | |
3703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3704 | *) ac_try_echo=$ac_try;; | |
3705 | esac | |
3706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3707 | $as_echo "$ac_try_echo") >&5 | |
3708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3709 | ac_status=$? | |
3710 | grep -v '^ *+' conftest.er1 >conftest.err | |
3711 | rm -f conftest.er1 | |
3712 | cat conftest.err >&5 | |
3713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3714 | (exit $ac_status); } >/dev/null && { | |
3715 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3716 | test ! -s conftest.err | |
3717 | }; then | |
3718 | : | |
3719 | else | |
3720 | $as_echo "$as_me: failed program was:" >&5 | |
3721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3722 | ||
4166 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4167 | ||
4168 | else | |
3723 | 4169 | # Broken: fails on valid input. |
3724 | 4170 | continue |
3725 | 4171 | fi |
3726 | ||
3727 | rm -f conftest.err conftest.$ac_ext | |
4172 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3728 | 4173 | |
3729 | 4174 | # OK, works on sane cases. Now check whether nonexistent headers |
3730 | 4175 | # can be detected and how. |
3731 | cat >conftest.$ac_ext <<_ACEOF | |
3732 | /* confdefs.h. */ | |
3733 | _ACEOF | |
3734 | cat confdefs.h >>conftest.$ac_ext | |
3735 | cat >>conftest.$ac_ext <<_ACEOF | |
4176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3736 | 4177 | /* end confdefs.h. */ |
3737 | 4178 | #include <ac_nonexistent.h> |
3738 | 4179 | _ACEOF |
3739 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3740 | case "(($ac_try" in | |
3741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3742 | *) ac_try_echo=$ac_try;; | |
3743 | esac | |
3744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3745 | $as_echo "$ac_try_echo") >&5 | |
3746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3747 | ac_status=$? | |
3748 | grep -v '^ *+' conftest.er1 >conftest.err | |
3749 | rm -f conftest.er1 | |
3750 | cat conftest.err >&5 | |
3751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3752 | (exit $ac_status); } >/dev/null && { | |
3753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3754 | test ! -s conftest.err | |
3755 | }; then | |
4180 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3756 | 4181 | # Broken: success on invalid input. |
3757 | 4182 | continue |
3758 | 4183 | else |
3759 | $as_echo "$as_me: failed program was:" >&5 | |
3760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3761 | ||
3762 | 4184 | # Passes both tests. |
3763 | 4185 | ac_preproc_ok=: |
3764 | 4186 | break |
3765 | 4187 | fi |
3766 | ||
3767 | rm -f conftest.err conftest.$ac_ext | |
4188 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3768 | 4189 | |
3769 | 4190 | done |
3770 | 4191 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3771 | rm -f conftest.err conftest.$ac_ext | |
3772 | if $ac_preproc_ok; then | |
4192 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4193 | if $ac_preproc_ok; then : | |
3773 | 4194 | break |
3774 | 4195 | fi |
3775 | 4196 | |
3781 | 4202 | else |
3782 | 4203 | ac_cv_prog_CPP=$CPP |
3783 | 4204 | fi |
3784 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3785 | 4206 | $as_echo "$CPP" >&6; } |
3786 | 4207 | ac_preproc_ok=false |
3787 | 4208 | for ac_c_preproc_warn_flag in '' yes |
3792 | 4213 | # <limits.h> exists even on freestanding compilers. |
3793 | 4214 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3794 | 4215 | # not just through cpp. "Syntax error" is here to catch this case. |
3795 | cat >conftest.$ac_ext <<_ACEOF | |
3796 | /* confdefs.h. */ | |
3797 | _ACEOF | |
3798 | cat confdefs.h >>conftest.$ac_ext | |
3799 | cat >>conftest.$ac_ext <<_ACEOF | |
4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3800 | 4217 | /* end confdefs.h. */ |
3801 | 4218 | #ifdef __STDC__ |
3802 | 4219 | # include <limits.h> |
3805 | 4222 | #endif |
3806 | 4223 | Syntax error |
3807 | 4224 | _ACEOF |
3808 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3809 | case "(($ac_try" in | |
3810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3811 | *) ac_try_echo=$ac_try;; | |
3812 | esac | |
3813 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3814 | $as_echo "$ac_try_echo") >&5 | |
3815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3816 | ac_status=$? | |
3817 | grep -v '^ *+' conftest.er1 >conftest.err | |
3818 | rm -f conftest.er1 | |
3819 | cat conftest.err >&5 | |
3820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3821 | (exit $ac_status); } >/dev/null && { | |
3822 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3823 | test ! -s conftest.err | |
3824 | }; then | |
3825 | : | |
3826 | else | |
3827 | $as_echo "$as_me: failed program was:" >&5 | |
3828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3829 | ||
4225 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4226 | ||
4227 | else | |
3830 | 4228 | # Broken: fails on valid input. |
3831 | 4229 | continue |
3832 | 4230 | fi |
3833 | ||
3834 | rm -f conftest.err conftest.$ac_ext | |
4231 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3835 | 4232 | |
3836 | 4233 | # OK, works on sane cases. Now check whether nonexistent headers |
3837 | 4234 | # can be detected and how. |
3838 | cat >conftest.$ac_ext <<_ACEOF | |
3839 | /* confdefs.h. */ | |
3840 | _ACEOF | |
3841 | cat confdefs.h >>conftest.$ac_ext | |
3842 | cat >>conftest.$ac_ext <<_ACEOF | |
4235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3843 | 4236 | /* end confdefs.h. */ |
3844 | 4237 | #include <ac_nonexistent.h> |
3845 | 4238 | _ACEOF |
3846 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3847 | case "(($ac_try" in | |
3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3849 | *) ac_try_echo=$ac_try;; | |
3850 | esac | |
3851 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3852 | $as_echo "$ac_try_echo") >&5 | |
3853 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3854 | ac_status=$? | |
3855 | grep -v '^ *+' conftest.er1 >conftest.err | |
3856 | rm -f conftest.er1 | |
3857 | cat conftest.err >&5 | |
3858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3859 | (exit $ac_status); } >/dev/null && { | |
3860 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3861 | test ! -s conftest.err | |
3862 | }; then | |
4239 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3863 | 4240 | # Broken: success on invalid input. |
3864 | 4241 | continue |
3865 | 4242 | else |
3866 | $as_echo "$as_me: failed program was:" >&5 | |
3867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3868 | ||
3869 | 4243 | # Passes both tests. |
3870 | 4244 | ac_preproc_ok=: |
3871 | 4245 | break |
3872 | 4246 | fi |
3873 | ||
3874 | rm -f conftest.err conftest.$ac_ext | |
4247 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3875 | 4248 | |
3876 | 4249 | done |
3877 | 4250 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3878 | rm -f conftest.err conftest.$ac_ext | |
3879 | if $ac_preproc_ok; then | |
3880 | : | |
3881 | else | |
3882 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4251 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4252 | if $ac_preproc_ok; then : | |
4253 | ||
4254 | else | |
4255 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3883 | 4256 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3884 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3885 | See \`config.log' for more details." >&5 | |
3886 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3887 | See \`config.log' for more details." >&2;} | |
3888 | { (exit 1); exit 1; }; }; } | |
4257 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4258 | See \`config.log' for more details" "$LINENO" 5; } | |
3889 | 4259 | fi |
3890 | 4260 | |
3891 | 4261 | ac_ext=c |
3895 | 4265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3896 | 4266 | |
3897 | 4267 | |
3898 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3899 | 4269 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
3900 | if test "${ac_cv_path_GREP+set}" = set; then | |
4270 | if ${ac_cv_path_GREP+:} false; then : | |
3901 | 4271 | $as_echo_n "(cached) " >&6 |
3902 | 4272 | else |
3903 | 4273 | if test -z "$GREP"; then |
3908 | 4278 | do |
3909 | 4279 | IFS=$as_save_IFS |
3910 | 4280 | test -z "$as_dir" && as_dir=. |
3911 | for ac_prog in grep ggrep; do | |
4281 | for ac_prog in grep ggrep; do | |
3912 | 4282 | for ac_exec_ext in '' $ac_executable_extensions; do |
3913 | 4283 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3914 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4284 | as_fn_executable_p "$ac_path_GREP" || continue | |
3915 | 4285 | # Check for GNU ac_path_GREP and select it if it is found. |
3916 | 4286 | # Check for GNU $ac_path_GREP |
3917 | 4287 | case `"$ac_path_GREP" --version 2>&1` in |
3928 | 4298 | $as_echo 'GREP' >> "conftest.nl" |
3929 | 4299 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3930 | 4300 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3931 | ac_count=`expr $ac_count + 1` | |
4301 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3932 | 4302 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3933 | 4303 | # Best one so far, save it but keep looking for a better one |
3934 | 4304 | ac_cv_path_GREP="$ac_path_GREP" |
3943 | 4313 | $ac_path_GREP_found && break 3 |
3944 | 4314 | done |
3945 | 4315 | done |
3946 | done | |
4316 | done | |
3947 | 4317 | IFS=$as_save_IFS |
3948 | 4318 | if test -z "$ac_cv_path_GREP"; then |
3949 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3950 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3951 | { (exit 1); exit 1; }; } | |
4319 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3952 | 4320 | fi |
3953 | 4321 | else |
3954 | 4322 | ac_cv_path_GREP=$GREP |
3955 | 4323 | fi |
3956 | 4324 | |
3957 | 4325 | fi |
3958 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3959 | 4327 | $as_echo "$ac_cv_path_GREP" >&6; } |
3960 | 4328 | GREP="$ac_cv_path_GREP" |
3961 | 4329 | |
3962 | 4330 | |
3963 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3964 | 4332 | $as_echo_n "checking for egrep... " >&6; } |
3965 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4333 | if ${ac_cv_path_EGREP+:} false; then : | |
3966 | 4334 | $as_echo_n "(cached) " >&6 |
3967 | 4335 | else |
3968 | 4336 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3976 | 4344 | do |
3977 | 4345 | IFS=$as_save_IFS |
3978 | 4346 | test -z "$as_dir" && as_dir=. |
3979 | for ac_prog in egrep; do | |
4347 | for ac_prog in egrep; do | |
3980 | 4348 | for ac_exec_ext in '' $ac_executable_extensions; do |
3981 | 4349 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3982 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4350 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3983 | 4351 | # Check for GNU ac_path_EGREP and select it if it is found. |
3984 | 4352 | # Check for GNU $ac_path_EGREP |
3985 | 4353 | case `"$ac_path_EGREP" --version 2>&1` in |
3996 | 4364 | $as_echo 'EGREP' >> "conftest.nl" |
3997 | 4365 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3998 | 4366 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3999 | ac_count=`expr $ac_count + 1` | |
4367 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4000 | 4368 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4001 | 4369 | # Best one so far, save it but keep looking for a better one |
4002 | 4370 | ac_cv_path_EGREP="$ac_path_EGREP" |
4011 | 4379 | $ac_path_EGREP_found && break 3 |
4012 | 4380 | done |
4013 | 4381 | done |
4014 | done | |
4382 | done | |
4015 | 4383 | IFS=$as_save_IFS |
4016 | 4384 | if test -z "$ac_cv_path_EGREP"; then |
4017 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4018 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4019 | { (exit 1); exit 1; }; } | |
4385 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4020 | 4386 | fi |
4021 | 4387 | else |
4022 | 4388 | ac_cv_path_EGREP=$EGREP |
4024 | 4390 | |
4025 | 4391 | fi |
4026 | 4392 | fi |
4027 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4028 | 4394 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4029 | 4395 | EGREP="$ac_cv_path_EGREP" |
4030 | 4396 | |
4031 | 4397 | |
4032 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4033 | 4399 | $as_echo_n "checking for ANSI C header files... " >&6; } |
4034 | if test "${ac_cv_header_stdc+set}" = set; then | |
4400 | if ${ac_cv_header_stdc+:} false; then : | |
4035 | 4401 | $as_echo_n "(cached) " >&6 |
4036 | 4402 | else |
4037 | cat >conftest.$ac_ext <<_ACEOF | |
4038 | /* confdefs.h. */ | |
4039 | _ACEOF | |
4040 | cat confdefs.h >>conftest.$ac_ext | |
4041 | cat >>conftest.$ac_ext <<_ACEOF | |
4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4042 | 4404 | /* end confdefs.h. */ |
4043 | 4405 | #include <stdlib.h> |
4044 | 4406 | #include <stdarg.h> |
4053 | 4415 | return 0; |
4054 | 4416 | } |
4055 | 4417 | _ACEOF |
4056 | rm -f conftest.$ac_objext | |
4057 | if { (ac_try="$ac_compile" | |
4058 | case "(($ac_try" in | |
4059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4060 | *) ac_try_echo=$ac_try;; | |
4061 | esac | |
4062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4063 | $as_echo "$ac_try_echo") >&5 | |
4064 | (eval "$ac_compile") 2>conftest.er1 | |
4065 | ac_status=$? | |
4066 | grep -v '^ *+' conftest.er1 >conftest.err | |
4067 | rm -f conftest.er1 | |
4068 | cat conftest.err >&5 | |
4069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4070 | (exit $ac_status); } && { | |
4071 | test -z "$ac_c_werror_flag" || | |
4072 | test ! -s conftest.err | |
4073 | } && test -s conftest.$ac_objext; then | |
4418 | if ac_fn_c_try_compile "$LINENO"; then : | |
4074 | 4419 | ac_cv_header_stdc=yes |
4075 | 4420 | else |
4076 | $as_echo "$as_me: failed program was:" >&5 | |
4077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4078 | ||
4079 | ac_cv_header_stdc=no | |
4080 | fi | |
4081 | ||
4421 | ac_cv_header_stdc=no | |
4422 | fi | |
4082 | 4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4083 | 4424 | |
4084 | 4425 | if test $ac_cv_header_stdc = yes; then |
4085 | 4426 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4086 | cat >conftest.$ac_ext <<_ACEOF | |
4087 | /* confdefs.h. */ | |
4088 | _ACEOF | |
4089 | cat confdefs.h >>conftest.$ac_ext | |
4090 | cat >>conftest.$ac_ext <<_ACEOF | |
4427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4091 | 4428 | /* end confdefs.h. */ |
4092 | 4429 | #include <string.h> |
4093 | 4430 | |
4094 | 4431 | _ACEOF |
4095 | 4432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4096 | $EGREP "memchr" >/dev/null 2>&1; then | |
4097 | : | |
4433 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4434 | ||
4098 | 4435 | else |
4099 | 4436 | ac_cv_header_stdc=no |
4100 | 4437 | fi |
4104 | 4441 | |
4105 | 4442 | if test $ac_cv_header_stdc = yes; then |
4106 | 4443 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4107 | cat >conftest.$ac_ext <<_ACEOF | |
4108 | /* confdefs.h. */ | |
4109 | _ACEOF | |
4110 | cat confdefs.h >>conftest.$ac_ext | |
4111 | cat >>conftest.$ac_ext <<_ACEOF | |
4444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4112 | 4445 | /* end confdefs.h. */ |
4113 | 4446 | #include <stdlib.h> |
4114 | 4447 | |
4115 | 4448 | _ACEOF |
4116 | 4449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4117 | $EGREP "free" >/dev/null 2>&1; then | |
4118 | : | |
4450 | $EGREP "free" >/dev/null 2>&1; then : | |
4451 | ||
4119 | 4452 | else |
4120 | 4453 | ac_cv_header_stdc=no |
4121 | 4454 | fi |
4125 | 4458 | |
4126 | 4459 | if test $ac_cv_header_stdc = yes; then |
4127 | 4460 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4128 | if test "$cross_compiling" = yes; then | |
4461 | if test "$cross_compiling" = yes; then : | |
4129 | 4462 | : |
4130 | 4463 | else |
4131 | cat >conftest.$ac_ext <<_ACEOF | |
4132 | /* confdefs.h. */ | |
4133 | _ACEOF | |
4134 | cat confdefs.h >>conftest.$ac_ext | |
4135 | cat >>conftest.$ac_ext <<_ACEOF | |
4464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4136 | 4465 | /* end confdefs.h. */ |
4137 | 4466 | #include <ctype.h> |
4138 | 4467 | #include <stdlib.h> |
4159 | 4488 | return 0; |
4160 | 4489 | } |
4161 | 4490 | _ACEOF |
4162 | rm -f conftest$ac_exeext | |
4163 | if { (ac_try="$ac_link" | |
4164 | case "(($ac_try" in | |
4165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4166 | *) ac_try_echo=$ac_try;; | |
4167 | esac | |
4168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4169 | $as_echo "$ac_try_echo") >&5 | |
4170 | (eval "$ac_link") 2>&5 | |
4171 | ac_status=$? | |
4172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4174 | { (case "(($ac_try" in | |
4175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4176 | *) ac_try_echo=$ac_try;; | |
4177 | esac | |
4178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4179 | $as_echo "$ac_try_echo") >&5 | |
4180 | (eval "$ac_try") 2>&5 | |
4181 | ac_status=$? | |
4182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4183 | (exit $ac_status); }; }; then | |
4184 | : | |
4185 | else | |
4186 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
4187 | $as_echo "$as_me: failed program was:" >&5 | |
4188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4189 | ||
4190 | ( exit $ac_status ) | |
4191 | ac_cv_header_stdc=no | |
4192 | fi | |
4193 | rm -rf conftest.dSYM | |
4194 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4195 | fi | |
4196 | ||
4197 | ||
4198 | fi | |
4199 | fi | |
4200 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4491 | if ac_fn_c_try_run "$LINENO"; then : | |
4492 | ||
4493 | else | |
4494 | ac_cv_header_stdc=no | |
4495 | fi | |
4496 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4497 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4498 | fi | |
4499 | ||
4500 | fi | |
4501 | fi | |
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4201 | 4503 | $as_echo "$ac_cv_header_stdc" >&6; } |
4202 | 4504 | if test $ac_cv_header_stdc = yes; then |
4203 | 4505 | |
4204 | cat >>confdefs.h <<\_ACEOF | |
4205 | #define STDC_HEADERS 1 | |
4206 | _ACEOF | |
4207 | ||
4208 | fi | |
4209 | ||
4210 | ||
4211 | ||
4212 | { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5 | |
4506 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4507 | ||
4508 | fi | |
4509 | ||
4510 | ||
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 | |
4213 | 4512 | $as_echo_n "checking for sin in -lm... " >&6; } |
4214 | if test "${ac_cv_lib_m_sin+set}" = set; then | |
4513 | if ${ac_cv_lib_m_sin+:} false; then : | |
4215 | 4514 | $as_echo_n "(cached) " >&6 |
4216 | 4515 | else |
4217 | 4516 | ac_check_lib_save_LIBS=$LIBS |
4218 | 4517 | LIBS="-lm $LIBS" |
4219 | cat >conftest.$ac_ext <<_ACEOF | |
4220 | /* confdefs.h. */ | |
4221 | _ACEOF | |
4222 | cat confdefs.h >>conftest.$ac_ext | |
4223 | cat >>conftest.$ac_ext <<_ACEOF | |
4518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4224 | 4519 | /* end confdefs.h. */ |
4225 | 4520 | |
4226 | 4521 | /* Override any GCC internal prototype to avoid an error. |
4238 | 4533 | return 0; |
4239 | 4534 | } |
4240 | 4535 | _ACEOF |
4241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4242 | if { (ac_try="$ac_link" | |
4243 | case "(($ac_try" in | |
4244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4245 | *) ac_try_echo=$ac_try;; | |
4246 | esac | |
4247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4248 | $as_echo "$ac_try_echo") >&5 | |
4249 | (eval "$ac_link") 2>conftest.er1 | |
4250 | ac_status=$? | |
4251 | grep -v '^ *+' conftest.er1 >conftest.err | |
4252 | rm -f conftest.er1 | |
4253 | cat conftest.err >&5 | |
4254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4255 | (exit $ac_status); } && { | |
4256 | test -z "$ac_c_werror_flag" || | |
4257 | test ! -s conftest.err | |
4258 | } && test -s conftest$ac_exeext && { | |
4259 | test "$cross_compiling" = yes || | |
4260 | $as_test_x conftest$ac_exeext | |
4261 | }; then | |
4536 | if ac_fn_c_try_link "$LINENO"; then : | |
4262 | 4537 | ac_cv_lib_m_sin=yes |
4263 | 4538 | else |
4264 | $as_echo "$as_me: failed program was:" >&5 | |
4265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4266 | ||
4267 | ac_cv_lib_m_sin=no | |
4268 | fi | |
4269 | ||
4270 | rm -rf conftest.dSYM | |
4271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4272 | conftest$ac_exeext conftest.$ac_ext | |
4539 | ac_cv_lib_m_sin=no | |
4540 | fi | |
4541 | rm -f core conftest.err conftest.$ac_objext \ | |
4542 | conftest$ac_exeext conftest.$ac_ext | |
4273 | 4543 | LIBS=$ac_check_lib_save_LIBS |
4274 | 4544 | fi |
4275 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 | |
4276 | 4546 | $as_echo "$ac_cv_lib_m_sin" >&6; } |
4277 | if test "x$ac_cv_lib_m_sin" = x""yes; then | |
4547 | if test "x$ac_cv_lib_m_sin" = xyes; then : | |
4278 | 4548 | cat >>confdefs.h <<_ACEOF |
4279 | 4549 | #define HAVE_LIBM 1 |
4280 | 4550 | _ACEOF |
4283 | 4553 | |
4284 | 4554 | fi |
4285 | 4555 | |
4286 | ||
4287 | 4556 | for ac_func in snprintf |
4288 | do | |
4289 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4290 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4291 | $as_echo_n "checking for $ac_func... " >&6; } | |
4292 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
4293 | $as_echo_n "(cached) " >&6 | |
4294 | else | |
4295 | cat >conftest.$ac_ext <<_ACEOF | |
4296 | /* confdefs.h. */ | |
4297 | _ACEOF | |
4298 | cat confdefs.h >>conftest.$ac_ext | |
4299 | cat >>conftest.$ac_ext <<_ACEOF | |
4300 | /* end confdefs.h. */ | |
4301 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4302 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4303 | #define $ac_func innocuous_$ac_func | |
4304 | ||
4305 | /* System header to define __stub macros and hopefully few prototypes, | |
4306 | which can conflict with char $ac_func (); below. | |
4307 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4308 | <limits.h> exists even on freestanding compilers. */ | |
4309 | ||
4310 | #ifdef __STDC__ | |
4311 | # include <limits.h> | |
4312 | #else | |
4313 | # include <assert.h> | |
4314 | #endif | |
4315 | ||
4316 | #undef $ac_func | |
4317 | ||
4318 | /* Override any GCC internal prototype to avoid an error. | |
4319 | Use char because int might match the return type of a GCC | |
4320 | builtin and then its argument prototype would still apply. */ | |
4321 | #ifdef __cplusplus | |
4322 | extern "C" | |
4323 | #endif | |
4324 | char $ac_func (); | |
4325 | /* The GNU C library defines this for functions which it implements | |
4326 | to always fail with ENOSYS. Some functions are actually named | |
4327 | something starting with __ and the normal name is an alias. */ | |
4328 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
4329 | choke me | |
4330 | #endif | |
4331 | ||
4332 | int | |
4333 | main () | |
4334 | { | |
4335 | return $ac_func (); | |
4336 | ; | |
4337 | return 0; | |
4338 | } | |
4339 | _ACEOF | |
4340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4341 | if { (ac_try="$ac_link" | |
4342 | case "(($ac_try" in | |
4343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4344 | *) ac_try_echo=$ac_try;; | |
4345 | esac | |
4346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4347 | $as_echo "$ac_try_echo") >&5 | |
4348 | (eval "$ac_link") 2>conftest.er1 | |
4349 | ac_status=$? | |
4350 | grep -v '^ *+' conftest.er1 >conftest.err | |
4351 | rm -f conftest.er1 | |
4352 | cat conftest.err >&5 | |
4353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4354 | (exit $ac_status); } && { | |
4355 | test -z "$ac_c_werror_flag" || | |
4356 | test ! -s conftest.err | |
4357 | } && test -s conftest$ac_exeext && { | |
4358 | test "$cross_compiling" = yes || | |
4359 | $as_test_x conftest$ac_exeext | |
4360 | }; then | |
4361 | eval "$as_ac_var=yes" | |
4362 | else | |
4363 | $as_echo "$as_me: failed program was:" >&5 | |
4364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4365 | ||
4366 | eval "$as_ac_var=no" | |
4367 | fi | |
4368 | ||
4369 | rm -rf conftest.dSYM | |
4370 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4371 | conftest$ac_exeext conftest.$ac_ext | |
4372 | fi | |
4373 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
4374 | $as_echo "$as_val"'` | |
4375 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4376 | $as_echo "$ac_res" >&6; } | |
4377 | as_val=`eval 'as_val=${'$as_ac_var'} | |
4378 | $as_echo "$as_val"'` | |
4379 | if test "x$as_val" = x""yes; then | |
4557 | do : | |
4558 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" | |
4559 | if test "x$ac_cv_func_snprintf" = xyes; then : | |
4380 | 4560 | cat >>confdefs.h <<_ACEOF |
4381 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4561 | #define HAVE_SNPRINTF 1 | |
4382 | 4562 | _ACEOF |
4383 | 4563 | |
4384 | 4564 | fi |
4405 | 4585 | H5TOPNG=yes |
4406 | 4586 | PNG_LIBS="" |
4407 | 4587 | |
4408 | { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5 | |
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 | |
4409 | 4589 | $as_echo_n "checking for inflate in -lz... " >&6; } |
4410 | if test "${ac_cv_lib_z_inflate+set}" = set; then | |
4590 | if ${ac_cv_lib_z_inflate+:} false; then : | |
4411 | 4591 | $as_echo_n "(cached) " >&6 |
4412 | 4592 | else |
4413 | 4593 | ac_check_lib_save_LIBS=$LIBS |
4414 | 4594 | LIBS="-lz $LIBS" |
4415 | cat >conftest.$ac_ext <<_ACEOF | |
4416 | /* confdefs.h. */ | |
4417 | _ACEOF | |
4418 | cat confdefs.h >>conftest.$ac_ext | |
4419 | cat >>conftest.$ac_ext <<_ACEOF | |
4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4420 | 4596 | /* end confdefs.h. */ |
4421 | 4597 | |
4422 | 4598 | /* Override any GCC internal prototype to avoid an error. |
4434 | 4610 | return 0; |
4435 | 4611 | } |
4436 | 4612 | _ACEOF |
4437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4438 | if { (ac_try="$ac_link" | |
4439 | case "(($ac_try" in | |
4440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4441 | *) ac_try_echo=$ac_try;; | |
4442 | esac | |
4443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4444 | $as_echo "$ac_try_echo") >&5 | |
4445 | (eval "$ac_link") 2>conftest.er1 | |
4446 | ac_status=$? | |
4447 | grep -v '^ *+' conftest.er1 >conftest.err | |
4448 | rm -f conftest.er1 | |
4449 | cat conftest.err >&5 | |
4450 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4451 | (exit $ac_status); } && { | |
4452 | test -z "$ac_c_werror_flag" || | |
4453 | test ! -s conftest.err | |
4454 | } && test -s conftest$ac_exeext && { | |
4455 | test "$cross_compiling" = yes || | |
4456 | $as_test_x conftest$ac_exeext | |
4457 | }; then | |
4613 | if ac_fn_c_try_link "$LINENO"; then : | |
4458 | 4614 | ac_cv_lib_z_inflate=yes |
4459 | 4615 | else |
4460 | $as_echo "$as_me: failed program was:" >&5 | |
4461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4462 | ||
4463 | ac_cv_lib_z_inflate=no | |
4464 | fi | |
4465 | ||
4466 | rm -rf conftest.dSYM | |
4467 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4468 | conftest$ac_exeext conftest.$ac_ext | |
4616 | ac_cv_lib_z_inflate=no | |
4617 | fi | |
4618 | rm -f core conftest.err conftest.$ac_objext \ | |
4619 | conftest$ac_exeext conftest.$ac_ext | |
4469 | 4620 | LIBS=$ac_check_lib_save_LIBS |
4470 | 4621 | fi |
4471 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5 | |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 | |
4472 | 4623 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
4473 | if test "x$ac_cv_lib_z_inflate" = x""yes; then | |
4624 | if test "x$ac_cv_lib_z_inflate" = xyes; then : | |
4474 | 4625 | ok=yes |
4475 | 4626 | else |
4476 | 4627 | ok=no |
4479 | 4630 | if test "$ok" = "yes"; then |
4480 | 4631 | LIBS="-lz $LIBS" |
4481 | 4632 | |
4482 | { $as_echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5 | |
4633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5 | |
4483 | 4634 | $as_echo_n "checking for png_create_write_struct in -lpng... " >&6; } |
4484 | if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then | |
4635 | if ${ac_cv_lib_png_png_create_write_struct+:} false; then : | |
4485 | 4636 | $as_echo_n "(cached) " >&6 |
4486 | 4637 | else |
4487 | 4638 | ac_check_lib_save_LIBS=$LIBS |
4488 | 4639 | LIBS="-lpng $LIBS" |
4489 | cat >conftest.$ac_ext <<_ACEOF | |
4490 | /* confdefs.h. */ | |
4491 | _ACEOF | |
4492 | cat confdefs.h >>conftest.$ac_ext | |
4493 | cat >>conftest.$ac_ext <<_ACEOF | |
4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4494 | 4641 | /* end confdefs.h. */ |
4495 | 4642 | |
4496 | 4643 | /* Override any GCC internal prototype to avoid an error. |
4508 | 4655 | return 0; |
4509 | 4656 | } |
4510 | 4657 | _ACEOF |
4511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4512 | if { (ac_try="$ac_link" | |
4513 | case "(($ac_try" in | |
4514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4515 | *) ac_try_echo=$ac_try;; | |
4516 | esac | |
4517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4518 | $as_echo "$ac_try_echo") >&5 | |
4519 | (eval "$ac_link") 2>conftest.er1 | |
4520 | ac_status=$? | |
4521 | grep -v '^ *+' conftest.er1 >conftest.err | |
4522 | rm -f conftest.er1 | |
4523 | cat conftest.err >&5 | |
4524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4525 | (exit $ac_status); } && { | |
4526 | test -z "$ac_c_werror_flag" || | |
4527 | test ! -s conftest.err | |
4528 | } && test -s conftest$ac_exeext && { | |
4529 | test "$cross_compiling" = yes || | |
4530 | $as_test_x conftest$ac_exeext | |
4531 | }; then | |
4658 | if ac_fn_c_try_link "$LINENO"; then : | |
4532 | 4659 | ac_cv_lib_png_png_create_write_struct=yes |
4533 | 4660 | else |
4534 | $as_echo "$as_me: failed program was:" >&5 | |
4535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4536 | ||
4537 | ac_cv_lib_png_png_create_write_struct=no | |
4538 | fi | |
4539 | ||
4540 | rm -rf conftest.dSYM | |
4541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4542 | conftest$ac_exeext conftest.$ac_ext | |
4661 | ac_cv_lib_png_png_create_write_struct=no | |
4662 | fi | |
4663 | rm -f core conftest.err conftest.$ac_objext \ | |
4664 | conftest$ac_exeext conftest.$ac_ext | |
4543 | 4665 | LIBS=$ac_check_lib_save_LIBS |
4544 | 4666 | fi |
4545 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5 | |
4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5 | |
4546 | 4668 | $as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; } |
4547 | if test "x$ac_cv_lib_png_png_create_write_struct" = x""yes; then | |
4669 | if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then : | |
4548 | 4670 | ok=yes |
4549 | 4671 | else |
4550 | 4672 | ok=no |
4553 | 4675 | if test "$ok" = "yes"; then |
4554 | 4676 | PNG_LIBS="-lpng" |
4555 | 4677 | else |
4556 | { $as_echo "$as_me:$LINENO: WARNING: can't find libpng: won't be able to compile h5topng" >&5 | |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libpng: won't be able to compile h5topng" >&5 | |
4557 | 4679 | $as_echo "$as_me: WARNING: can't find libpng: won't be able to compile h5topng" >&2;} |
4558 | 4680 | H5TOPNG=no |
4559 | 4681 | fi |
4560 | 4682 | else |
4561 | { $as_echo "$as_me:$LINENO: WARNING: can't find libz: won't be able to compile h5topng" >&5 | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz: won't be able to compile h5topng" >&5 | |
4562 | 4684 | $as_echo "$as_me: WARNING: can't find libz: won't be able to compile h5topng" >&2;} |
4563 | 4685 | H5TOPNG=no |
4564 | 4686 | fi |
4565 | 4687 | |
4566 | 4688 | if test $H5TOPNG = yes; then |
4567 | 4689 | MORE_H5UTILS="h5topng\$(EXEEXT) $MORE_H5UTILS" |
4568 | H5TOPNG_MAN=h5topng.1 | |
4690 | H5TOPNG_MAN=doc/man/h5topng.1 | |
4569 | 4691 | fi |
4570 | 4692 | |
4571 | 4693 | |
4573 | 4695 | |
4574 | 4696 | ########################################################################### |
4575 | 4697 | |
4576 | { $as_echo "$as_me:$LINENO: checking for evaluator_get_variables in -lmatheval" >&5 | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evaluator_get_variables in -lmatheval" >&5 | |
4577 | 4699 | $as_echo_n "checking for evaluator_get_variables in -lmatheval... " >&6; } |
4578 | if test "${ac_cv_lib_matheval_evaluator_get_variables+set}" = set; then | |
4700 | if ${ac_cv_lib_matheval_evaluator_get_variables+:} false; then : | |
4579 | 4701 | $as_echo_n "(cached) " >&6 |
4580 | 4702 | else |
4581 | 4703 | ac_check_lib_save_LIBS=$LIBS |
4582 | 4704 | LIBS="-lmatheval $LIBS" |
4583 | cat >conftest.$ac_ext <<_ACEOF | |
4584 | /* confdefs.h. */ | |
4585 | _ACEOF | |
4586 | cat confdefs.h >>conftest.$ac_ext | |
4587 | cat >>conftest.$ac_ext <<_ACEOF | |
4705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4588 | 4706 | /* end confdefs.h. */ |
4589 | 4707 | |
4590 | 4708 | /* Override any GCC internal prototype to avoid an error. |
4602 | 4720 | return 0; |
4603 | 4721 | } |
4604 | 4722 | _ACEOF |
4605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4606 | if { (ac_try="$ac_link" | |
4607 | case "(($ac_try" in | |
4608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4609 | *) ac_try_echo=$ac_try;; | |
4610 | esac | |
4611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4612 | $as_echo "$ac_try_echo") >&5 | |
4613 | (eval "$ac_link") 2>conftest.er1 | |
4614 | ac_status=$? | |
4615 | grep -v '^ *+' conftest.er1 >conftest.err | |
4616 | rm -f conftest.er1 | |
4617 | cat conftest.err >&5 | |
4618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 | (exit $ac_status); } && { | |
4620 | test -z "$ac_c_werror_flag" || | |
4621 | test ! -s conftest.err | |
4622 | } && test -s conftest$ac_exeext && { | |
4623 | test "$cross_compiling" = yes || | |
4624 | $as_test_x conftest$ac_exeext | |
4625 | }; then | |
4723 | if ac_fn_c_try_link "$LINENO"; then : | |
4626 | 4724 | ac_cv_lib_matheval_evaluator_get_variables=yes |
4627 | 4725 | else |
4628 | $as_echo "$as_me: failed program was:" >&5 | |
4629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4630 | ||
4631 | ac_cv_lib_matheval_evaluator_get_variables=no | |
4632 | fi | |
4633 | ||
4634 | rm -rf conftest.dSYM | |
4635 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4636 | conftest$ac_exeext conftest.$ac_ext | |
4726 | ac_cv_lib_matheval_evaluator_get_variables=no | |
4727 | fi | |
4728 | rm -f core conftest.err conftest.$ac_objext \ | |
4729 | conftest$ac_exeext conftest.$ac_ext | |
4637 | 4730 | LIBS=$ac_check_lib_save_LIBS |
4638 | 4731 | fi |
4639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_matheval_evaluator_get_variables" >&5 | |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_matheval_evaluator_get_variables" >&5 | |
4640 | 4733 | $as_echo "$ac_cv_lib_matheval_evaluator_get_variables" >&6; } |
4641 | if test "x$ac_cv_lib_matheval_evaluator_get_variables" = x""yes; then | |
4734 | if test "x$ac_cv_lib_matheval_evaluator_get_variables" = xyes; then : | |
4642 | 4735 | H5MATH=yes |
4643 | 4736 | else |
4644 | 4737 | H5MATH=no |
4649 | 4742 | MORE_H5UTILS="h5math\$(EXEEXT) $MORE_H5UTILS" |
4650 | 4743 | MORE_H5UTILS_MANS="h5math.1 $MORE_H5UTILS_MANS" |
4651 | 4744 | else |
4652 | { $as_echo "$as_me:$LINENO: WARNING: can't find libmatheval: won't be able to compile h5math" >&5 | |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libmatheval: won't be able to compile h5math" >&5 | |
4653 | 4746 | $as_echo "$as_me: WARNING: can't find libmatheval: won't be able to compile h5math" >&2;} |
4654 | 4747 | fi |
4655 | 4748 | |
4659 | 4752 | # thus don't have the superior h4toh5 utility. Similarly for h5toh4. |
4660 | 4753 | # Extract the first word of "h4toh5", so it can be a program name with args. |
4661 | 4754 | set dummy h4toh5; ac_word=$2 |
4662 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4663 | 4756 | $as_echo_n "checking for $ac_word... " >&6; } |
4664 | if test "${ac_cv_prog_H4TOH5+set}" = set; then | |
4757 | if ${ac_cv_prog_H4TOH5+:} false; then : | |
4665 | 4758 | $as_echo_n "(cached) " >&6 |
4666 | 4759 | else |
4667 | 4760 | if test -n "$H4TOH5"; then |
4672 | 4765 | do |
4673 | 4766 | IFS=$as_save_IFS |
4674 | 4767 | test -z "$as_dir" && as_dir=. |
4675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4677 | 4770 | ac_cv_prog_H4TOH5="h4toh5" |
4678 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4679 | 4772 | break 2 |
4680 | 4773 | fi |
4681 | 4774 | done |
4682 | done | |
4775 | done | |
4683 | 4776 | IFS=$as_save_IFS |
4684 | 4777 | |
4685 | 4778 | fi |
4686 | 4779 | fi |
4687 | 4780 | H4TOH5=$ac_cv_prog_H4TOH5 |
4688 | 4781 | if test -n "$H4TOH5"; then |
4689 | { $as_echo "$as_me:$LINENO: result: $H4TOH5" >&5 | |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $H4TOH5" >&5 | |
4690 | 4783 | $as_echo "$H4TOH5" >&6; } |
4691 | 4784 | else |
4692 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4693 | 4786 | $as_echo "no" >&6; } |
4694 | 4787 | fi |
4695 | 4788 | |
4696 | 4789 | |
4697 | 4790 | # Extract the first word of "h5toh4", so it can be a program name with args. |
4698 | 4791 | set dummy h5toh4; ac_word=$2 |
4699 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4700 | 4793 | $as_echo_n "checking for $ac_word... " >&6; } |
4701 | if test "${ac_cv_prog_H5TOH4+set}" = set; then | |
4794 | if ${ac_cv_prog_H5TOH4+:} false; then : | |
4702 | 4795 | $as_echo_n "(cached) " >&6 |
4703 | 4796 | else |
4704 | 4797 | if test -n "$H5TOH4"; then |
4709 | 4802 | do |
4710 | 4803 | IFS=$as_save_IFS |
4711 | 4804 | test -z "$as_dir" && as_dir=. |
4712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4806 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4714 | 4807 | ac_cv_prog_H5TOH4="h5toh4" |
4715 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4716 | 4809 | break 2 |
4717 | 4810 | fi |
4718 | 4811 | done |
4719 | done | |
4812 | done | |
4720 | 4813 | IFS=$as_save_IFS |
4721 | 4814 | |
4722 | 4815 | fi |
4723 | 4816 | fi |
4724 | 4817 | H5TOH4=$ac_cv_prog_H5TOH4 |
4725 | 4818 | if test -n "$H5TOH4"; then |
4726 | { $as_echo "$as_me:$LINENO: result: $H5TOH4" >&5 | |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5TOH4" >&5 | |
4727 | 4820 | $as_echo "$H5TOH4" >&6; } |
4728 | 4821 | else |
4729 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4730 | 4823 | $as_echo "no" >&6; } |
4731 | 4824 | fi |
4732 | 4825 | |
4734 | 4827 | |
4735 | 4828 | |
4736 | 4829 | # Check whether --with-hdf4 was given. |
4737 | if test "${with_hdf4+set}" = set; then | |
4830 | if test "${with_hdf4+set}" = set; then : | |
4738 | 4831 | withval=$with_hdf4; ok=$withval |
4739 | 4832 | else |
4740 | 4833 | ok=maybe |
4750 | 4843 | |
4751 | 4844 | HDF4=no |
4752 | 4845 | if test "x$H4TOH5" != xh4toh5 -o "x$H5TOH4" != xh5toh4; then |
4753 | { $as_echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5 | |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5 | |
4754 | 4847 | $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; } |
4755 | if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then | |
4848 | if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then : | |
4756 | 4849 | $as_echo_n "(cached) " >&6 |
4757 | 4850 | else |
4758 | 4851 | ac_check_lib_save_LIBS=$LIBS |
4759 | 4852 | LIBS="-ljpeg $LIBS" |
4760 | cat >conftest.$ac_ext <<_ACEOF | |
4761 | /* confdefs.h. */ | |
4762 | _ACEOF | |
4763 | cat confdefs.h >>conftest.$ac_ext | |
4764 | cat >>conftest.$ac_ext <<_ACEOF | |
4853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4765 | 4854 | /* end confdefs.h. */ |
4766 | 4855 | |
4767 | 4856 | /* Override any GCC internal prototype to avoid an error. |
4779 | 4868 | return 0; |
4780 | 4869 | } |
4781 | 4870 | _ACEOF |
4782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4783 | if { (ac_try="$ac_link" | |
4784 | case "(($ac_try" in | |
4785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4786 | *) ac_try_echo=$ac_try;; | |
4787 | esac | |
4788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4789 | $as_echo "$ac_try_echo") >&5 | |
4790 | (eval "$ac_link") 2>conftest.er1 | |
4791 | ac_status=$? | |
4792 | grep -v '^ *+' conftest.er1 >conftest.err | |
4793 | rm -f conftest.er1 | |
4794 | cat conftest.err >&5 | |
4795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4796 | (exit $ac_status); } && { | |
4797 | test -z "$ac_c_werror_flag" || | |
4798 | test ! -s conftest.err | |
4799 | } && test -s conftest$ac_exeext && { | |
4800 | test "$cross_compiling" = yes || | |
4801 | $as_test_x conftest$ac_exeext | |
4802 | }; then | |
4871 | if ac_fn_c_try_link "$LINENO"; then : | |
4803 | 4872 | ac_cv_lib_jpeg_jpeg_start_compress=yes |
4804 | 4873 | else |
4805 | $as_echo "$as_me: failed program was:" >&5 | |
4806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4807 | ||
4808 | ac_cv_lib_jpeg_jpeg_start_compress=no | |
4809 | fi | |
4810 | ||
4811 | rm -rf conftest.dSYM | |
4812 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4813 | conftest$ac_exeext conftest.$ac_ext | |
4874 | ac_cv_lib_jpeg_jpeg_start_compress=no | |
4875 | fi | |
4876 | rm -f core conftest.err conftest.$ac_objext \ | |
4877 | conftest$ac_exeext conftest.$ac_ext | |
4814 | 4878 | LIBS=$ac_check_lib_save_LIBS |
4815 | 4879 | fi |
4816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5 | |
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5 | |
4817 | 4881 | $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; } |
4818 | if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = x""yes; then | |
4819 | { $as_echo "$as_me:$LINENO: checking for DFSDgetdata in -ldf" >&5 | |
4882 | if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then : | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DFSDgetdata in -ldf" >&5 | |
4820 | 4884 | $as_echo_n "checking for DFSDgetdata in -ldf... " >&6; } |
4821 | if test "${ac_cv_lib_df_DFSDgetdata+set}" = set; then | |
4885 | if ${ac_cv_lib_df_DFSDgetdata+:} false; then : | |
4822 | 4886 | $as_echo_n "(cached) " >&6 |
4823 | 4887 | else |
4824 | 4888 | ac_check_lib_save_LIBS=$LIBS |
4825 | 4889 | LIBS="-ldf -ljpeg $LIBS" |
4826 | cat >conftest.$ac_ext <<_ACEOF | |
4827 | /* confdefs.h. */ | |
4828 | _ACEOF | |
4829 | cat confdefs.h >>conftest.$ac_ext | |
4830 | cat >>conftest.$ac_ext <<_ACEOF | |
4890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4831 | 4891 | /* end confdefs.h. */ |
4832 | 4892 | |
4833 | 4893 | /* Override any GCC internal prototype to avoid an error. |
4845 | 4905 | return 0; |
4846 | 4906 | } |
4847 | 4907 | _ACEOF |
4848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4849 | if { (ac_try="$ac_link" | |
4850 | case "(($ac_try" in | |
4851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4852 | *) ac_try_echo=$ac_try;; | |
4853 | esac | |
4854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4855 | $as_echo "$ac_try_echo") >&5 | |
4856 | (eval "$ac_link") 2>conftest.er1 | |
4857 | ac_status=$? | |
4858 | grep -v '^ *+' conftest.er1 >conftest.err | |
4859 | rm -f conftest.er1 | |
4860 | cat conftest.err >&5 | |
4861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4862 | (exit $ac_status); } && { | |
4863 | test -z "$ac_c_werror_flag" || | |
4864 | test ! -s conftest.err | |
4865 | } && test -s conftest$ac_exeext && { | |
4866 | test "$cross_compiling" = yes || | |
4867 | $as_test_x conftest$ac_exeext | |
4868 | }; then | |
4908 | if ac_fn_c_try_link "$LINENO"; then : | |
4869 | 4909 | ac_cv_lib_df_DFSDgetdata=yes |
4870 | 4910 | else |
4871 | $as_echo "$as_me: failed program was:" >&5 | |
4872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4873 | ||
4874 | ac_cv_lib_df_DFSDgetdata=no | |
4875 | fi | |
4876 | ||
4877 | rm -rf conftest.dSYM | |
4878 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4879 | conftest$ac_exeext conftest.$ac_ext | |
4911 | ac_cv_lib_df_DFSDgetdata=no | |
4912 | fi | |
4913 | rm -f core conftest.err conftest.$ac_objext \ | |
4914 | conftest$ac_exeext conftest.$ac_ext | |
4880 | 4915 | LIBS=$ac_check_lib_save_LIBS |
4881 | 4916 | fi |
4882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_df_DFSDgetdata" >&5 | |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_df_DFSDgetdata" >&5 | |
4883 | 4918 | $as_echo "$ac_cv_lib_df_DFSDgetdata" >&6; } |
4884 | if test "x$ac_cv_lib_df_DFSDgetdata" = x""yes; then | |
4919 | if test "x$ac_cv_lib_df_DFSDgetdata" = xyes; then : | |
4885 | 4920 | H4_LIBS="-ldf -ljpeg"; HDF4=yes |
4886 | 4921 | else |
4887 | { $as_echo "$as_me:$LINENO: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&5 | |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&5 | |
4888 | 4923 | $as_echo "$as_me: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&2;} |
4889 | 4924 | fi |
4890 | 4925 | |
4891 | 4926 | else |
4892 | { $as_echo "$as_me:$LINENO: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&5 | |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&5 | |
4893 | 4928 | $as_echo "$as_me: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&2;} |
4894 | 4929 | fi |
4895 | 4930 | |
4906 | 4941 | fi |
4907 | 4942 | fi |
4908 | 4943 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4909 | ||
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | ||
4917 | ||
4918 | 4944 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4919 | 4945 | inttypes.h stdint.h unistd.h |
4920 | do | |
4921 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4922 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4923 | $as_echo_n "checking for $ac_header... " >&6; } | |
4924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4925 | $as_echo_n "(cached) " >&6 | |
4926 | else | |
4927 | cat >conftest.$ac_ext <<_ACEOF | |
4928 | /* confdefs.h. */ | |
4929 | _ACEOF | |
4930 | cat confdefs.h >>conftest.$ac_ext | |
4931 | cat >>conftest.$ac_ext <<_ACEOF | |
4932 | /* end confdefs.h. */ | |
4933 | $ac_includes_default | |
4934 | ||
4935 | #include <$ac_header> | |
4936 | _ACEOF | |
4937 | rm -f conftest.$ac_objext | |
4938 | if { (ac_try="$ac_compile" | |
4939 | case "(($ac_try" in | |
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4941 | *) ac_try_echo=$ac_try;; | |
4942 | esac | |
4943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4944 | $as_echo "$ac_try_echo") >&5 | |
4945 | (eval "$ac_compile") 2>conftest.er1 | |
4946 | ac_status=$? | |
4947 | grep -v '^ *+' conftest.er1 >conftest.err | |
4948 | rm -f conftest.er1 | |
4949 | cat conftest.err >&5 | |
4950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4951 | (exit $ac_status); } && { | |
4952 | test -z "$ac_c_werror_flag" || | |
4953 | test ! -s conftest.err | |
4954 | } && test -s conftest.$ac_objext; then | |
4955 | eval "$as_ac_Header=yes" | |
4956 | else | |
4957 | $as_echo "$as_me: failed program was:" >&5 | |
4958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4959 | ||
4960 | eval "$as_ac_Header=no" | |
4961 | fi | |
4962 | ||
4963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4964 | fi | |
4965 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4966 | $as_echo "$as_val"'` | |
4967 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4968 | $as_echo "$ac_res" >&6; } | |
4969 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4970 | $as_echo "$as_val"'` | |
4971 | if test "x$as_val" = x""yes; then | |
4946 | do : | |
4947 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4948 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4949 | " | |
4950 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4972 | 4951 | cat >>confdefs.h <<_ACEOF |
4973 | 4952 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4974 | 4953 | _ACEOF |
4978 | 4957 | done |
4979 | 4958 | |
4980 | 4959 | |
4981 | ||
4982 | ||
4983 | 4960 | for ac_header in hdf.h hdf/hdf.h |
4984 | do | |
4985 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4987 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4988 | $as_echo_n "checking for $ac_header... " >&6; } | |
4989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4990 | $as_echo_n "(cached) " >&6 | |
4991 | fi | |
4992 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4993 | $as_echo "$as_val"'` | |
4994 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4995 | $as_echo "$ac_res" >&6; } | |
4996 | else | |
4997 | # Is the header compilable? | |
4998 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4999 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5000 | cat >conftest.$ac_ext <<_ACEOF | |
5001 | /* confdefs.h. */ | |
5002 | _ACEOF | |
5003 | cat confdefs.h >>conftest.$ac_ext | |
5004 | cat >>conftest.$ac_ext <<_ACEOF | |
5005 | /* end confdefs.h. */ | |
5006 | $ac_includes_default | |
5007 | #include <$ac_header> | |
5008 | _ACEOF | |
5009 | rm -f conftest.$ac_objext | |
5010 | if { (ac_try="$ac_compile" | |
5011 | case "(($ac_try" in | |
5012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5013 | *) ac_try_echo=$ac_try;; | |
5014 | esac | |
5015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5016 | $as_echo "$ac_try_echo") >&5 | |
5017 | (eval "$ac_compile") 2>conftest.er1 | |
5018 | ac_status=$? | |
5019 | grep -v '^ *+' conftest.er1 >conftest.err | |
5020 | rm -f conftest.er1 | |
5021 | cat conftest.err >&5 | |
5022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5023 | (exit $ac_status); } && { | |
5024 | test -z "$ac_c_werror_flag" || | |
5025 | test ! -s conftest.err | |
5026 | } && test -s conftest.$ac_objext; then | |
5027 | ac_header_compiler=yes | |
5028 | else | |
5029 | $as_echo "$as_me: failed program was:" >&5 | |
5030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5031 | ||
5032 | ac_header_compiler=no | |
5033 | fi | |
5034 | ||
5035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5036 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5037 | $as_echo "$ac_header_compiler" >&6; } | |
5038 | ||
5039 | # Is the header present? | |
5040 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5041 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5042 | cat >conftest.$ac_ext <<_ACEOF | |
5043 | /* confdefs.h. */ | |
5044 | _ACEOF | |
5045 | cat confdefs.h >>conftest.$ac_ext | |
5046 | cat >>conftest.$ac_ext <<_ACEOF | |
5047 | /* end confdefs.h. */ | |
5048 | #include <$ac_header> | |
5049 | _ACEOF | |
5050 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5051 | case "(($ac_try" in | |
5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5053 | *) ac_try_echo=$ac_try;; | |
5054 | esac | |
5055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5056 | $as_echo "$ac_try_echo") >&5 | |
5057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5058 | ac_status=$? | |
5059 | grep -v '^ *+' conftest.er1 >conftest.err | |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
5062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5063 | (exit $ac_status); } >/dev/null && { | |
5064 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5065 | test ! -s conftest.err | |
5066 | }; then | |
5067 | ac_header_preproc=yes | |
5068 | else | |
5069 | $as_echo "$as_me: failed program was:" >&5 | |
5070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5071 | ||
5072 | ac_header_preproc=no | |
5073 | fi | |
5074 | ||
5075 | rm -f conftest.err conftest.$ac_ext | |
5076 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5077 | $as_echo "$ac_header_preproc" >&6; } | |
5078 | ||
5079 | # So? What about this header? | |
5080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5081 | yes:no: ) | |
5082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5083 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5085 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5086 | ac_header_preproc=yes | |
5087 | ;; | |
5088 | no:yes:* ) | |
5089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5090 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5092 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5094 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5096 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5098 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5100 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5101 | ( cat <<\_ASBOX | |
5102 | ## ----------------------------------- ## | |
5103 | ## Report this to stevenj@alum.mit.edu ## | |
5104 | ## ----------------------------------- ## | |
5105 | _ASBOX | |
5106 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
5107 | ;; | |
5108 | esac | |
5109 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5110 | $as_echo_n "checking for $ac_header... " >&6; } | |
5111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5112 | $as_echo_n "(cached) " >&6 | |
5113 | else | |
5114 | eval "$as_ac_Header=\$ac_header_preproc" | |
5115 | fi | |
5116 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5117 | $as_echo "$as_val"'` | |
5118 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5119 | $as_echo "$ac_res" >&6; } | |
5120 | ||
5121 | fi | |
5122 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5123 | $as_echo "$as_val"'` | |
5124 | if test "x$as_val" = x""yes; then | |
4961 | do : | |
4962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4963 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4964 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5125 | 4965 | cat >>confdefs.h <<_ACEOF |
5126 | 4966 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5127 | 4967 | _ACEOF |
5135 | 4975 | |
5136 | 4976 | ########################################################################### |
5137 | 4977 | |
5138 | { $as_echo "$as_me:$LINENO: checking for H5Fopen in -lhdf5" >&5 | |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5 | |
5139 | 4979 | $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; } |
5140 | if test "${ac_cv_lib_hdf5_H5Fopen+set}" = set; then | |
4980 | if ${ac_cv_lib_hdf5_H5Fopen+:} false; then : | |
5141 | 4981 | $as_echo_n "(cached) " >&6 |
5142 | 4982 | else |
5143 | 4983 | ac_check_lib_save_LIBS=$LIBS |
5144 | 4984 | LIBS="-lhdf5 $LIBS" |
5145 | cat >conftest.$ac_ext <<_ACEOF | |
5146 | /* confdefs.h. */ | |
5147 | _ACEOF | |
5148 | cat confdefs.h >>conftest.$ac_ext | |
5149 | cat >>conftest.$ac_ext <<_ACEOF | |
4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5150 | 4986 | /* end confdefs.h. */ |
5151 | 4987 | |
5152 | 4988 | /* Override any GCC internal prototype to avoid an error. |
5164 | 5000 | return 0; |
5165 | 5001 | } |
5166 | 5002 | _ACEOF |
5167 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5168 | if { (ac_try="$ac_link" | |
5169 | case "(($ac_try" in | |
5170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5171 | *) ac_try_echo=$ac_try;; | |
5172 | esac | |
5173 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5174 | $as_echo "$ac_try_echo") >&5 | |
5175 | (eval "$ac_link") 2>conftest.er1 | |
5176 | ac_status=$? | |
5177 | grep -v '^ *+' conftest.er1 >conftest.err | |
5178 | rm -f conftest.er1 | |
5179 | cat conftest.err >&5 | |
5180 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5181 | (exit $ac_status); } && { | |
5182 | test -z "$ac_c_werror_flag" || | |
5183 | test ! -s conftest.err | |
5184 | } && test -s conftest$ac_exeext && { | |
5185 | test "$cross_compiling" = yes || | |
5186 | $as_test_x conftest$ac_exeext | |
5187 | }; then | |
5003 | if ac_fn_c_try_link "$LINENO"; then : | |
5188 | 5004 | ac_cv_lib_hdf5_H5Fopen=yes |
5189 | 5005 | else |
5190 | $as_echo "$as_me: failed program was:" >&5 | |
5191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5192 | ||
5193 | ac_cv_lib_hdf5_H5Fopen=no | |
5194 | fi | |
5195 | ||
5196 | rm -rf conftest.dSYM | |
5197 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5198 | conftest$ac_exeext conftest.$ac_ext | |
5006 | ac_cv_lib_hdf5_H5Fopen=no | |
5007 | fi | |
5008 | rm -f core conftest.err conftest.$ac_objext \ | |
5009 | conftest$ac_exeext conftest.$ac_ext | |
5199 | 5010 | LIBS=$ac_check_lib_save_LIBS |
5200 | 5011 | fi |
5201 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hdf5_H5Fopen" >&5 | |
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5 | |
5202 | 5013 | $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; } |
5203 | if test "x$ac_cv_lib_hdf5_H5Fopen" = x""yes; then | |
5014 | if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then : | |
5204 | 5015 | LIBS="-lhdf5 $LIBS" |
5205 | 5016 | else |
5206 | { { $as_echo "$as_me:$LINENO: error: hdf5 libraries are required for compilation" >&5 | |
5207 | $as_echo "$as_me: error: hdf5 libraries are required for compilation" >&2;} | |
5208 | { (exit 1); exit 1; }; } | |
5017 | as_fn_error $? "hdf5 libraries are required for compilation" "$LINENO" 5 | |
5209 | 5018 | fi |
5210 | 5019 | |
5211 | 5020 | |
5213 | 5022 | |
5214 | 5023 | |
5215 | 5024 | # Check whether --with-octave was given. |
5216 | if test "${with_octave+set}" = set; then | |
5025 | if test "${with_octave+set}" = set; then : | |
5217 | 5026 | withval=$with_octave; ok=$withval |
5218 | 5027 | else |
5219 | 5028 | ok=yes |
5228 | 5037 | do |
5229 | 5038 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5230 | 5039 | set dummy $ac_prog; ac_word=$2 |
5231 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5232 | 5041 | $as_echo_n "checking for $ac_word... " >&6; } |
5233 | if test "${ac_cv_prog_MKOCTFILE+set}" = set; then | |
5042 | if ${ac_cv_prog_MKOCTFILE+:} false; then : | |
5234 | 5043 | $as_echo_n "(cached) " >&6 |
5235 | 5044 | else |
5236 | 5045 | if test -n "$MKOCTFILE"; then |
5241 | 5050 | do |
5242 | 5051 | IFS=$as_save_IFS |
5243 | 5052 | test -z "$as_dir" && as_dir=. |
5244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5246 | 5055 | ac_cv_prog_MKOCTFILE="$ac_prog" |
5247 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5248 | 5057 | break 2 |
5249 | 5058 | fi |
5250 | 5059 | done |
5251 | done | |
5060 | done | |
5252 | 5061 | IFS=$as_save_IFS |
5253 | 5062 | |
5254 | 5063 | fi |
5255 | 5064 | fi |
5256 | 5065 | MKOCTFILE=$ac_cv_prog_MKOCTFILE |
5257 | 5066 | if test -n "$MKOCTFILE"; then |
5258 | { $as_echo "$as_me:$LINENO: result: $MKOCTFILE" >&5 | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5 | |
5259 | 5068 | $as_echo "$MKOCTFILE" >&6; } |
5260 | 5069 | else |
5261 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5262 | 5071 | $as_echo "no" >&6; } |
5263 | 5072 | fi |
5264 | 5073 | |
5268 | 5077 | test -n "$MKOCTFILE" || MKOCTFILE="echo" |
5269 | 5078 | |
5270 | 5079 | if test "$MKOCTFILE" = "echo"; then |
5271 | { $as_echo "$as_me:$LINENO: WARNING: can't find mkoctfile: won't be able to compile h5read.oct" >&5 | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mkoctfile: won't be able to compile h5read.oct" >&5 | |
5272 | 5081 | $as_echo "$as_me: WARNING: can't find mkoctfile: won't be able to compile h5read.oct" >&2;} |
5273 | 5082 | else |
5274 | 5083 | # try to find installation directory |
5276 | 5085 | do |
5277 | 5086 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5278 | 5087 | set dummy $ac_prog; ac_word=$2 |
5279 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5280 | 5089 | $as_echo_n "checking for $ac_word... " >&6; } |
5281 | if test "${ac_cv_prog_OCTAVE+set}" = set; then | |
5090 | if ${ac_cv_prog_OCTAVE+:} false; then : | |
5282 | 5091 | $as_echo_n "(cached) " >&6 |
5283 | 5092 | else |
5284 | 5093 | if test -n "$OCTAVE"; then |
5289 | 5098 | do |
5290 | 5099 | IFS=$as_save_IFS |
5291 | 5100 | test -z "$as_dir" && as_dir=. |
5292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5294 | 5103 | ac_cv_prog_OCTAVE="$ac_prog" |
5295 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5296 | 5105 | break 2 |
5297 | 5106 | fi |
5298 | 5107 | done |
5299 | done | |
5108 | done | |
5300 | 5109 | IFS=$as_save_IFS |
5301 | 5110 | |
5302 | 5111 | fi |
5303 | 5112 | fi |
5304 | 5113 | OCTAVE=$ac_cv_prog_OCTAVE |
5305 | 5114 | if test -n "$OCTAVE"; then |
5306 | { $as_echo "$as_me:$LINENO: result: $OCTAVE" >&5 | |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5 | |
5307 | 5116 | $as_echo "$OCTAVE" >&6; } |
5308 | 5117 | else |
5309 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5310 | 5119 | $as_echo "no" >&6; } |
5311 | 5120 | fi |
5312 | 5121 | |
5319 | 5128 | do |
5320 | 5129 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5321 | 5130 | set dummy $ac_prog; ac_word=$2 |
5322 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5323 | 5132 | $as_echo_n "checking for $ac_word... " >&6; } |
5324 | if test "${ac_cv_prog_OCTAVE_CONFIG+set}" = set; then | |
5133 | if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then : | |
5325 | 5134 | $as_echo_n "(cached) " >&6 |
5326 | 5135 | else |
5327 | 5136 | if test -n "$OCTAVE_CONFIG"; then |
5332 | 5141 | do |
5333 | 5142 | IFS=$as_save_IFS |
5334 | 5143 | test -z "$as_dir" && as_dir=. |
5335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5144 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5145 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5337 | 5146 | ac_cv_prog_OCTAVE_CONFIG="$ac_prog" |
5338 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5147 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5339 | 5148 | break 2 |
5340 | 5149 | fi |
5341 | 5150 | done |
5342 | done | |
5151 | done | |
5343 | 5152 | IFS=$as_save_IFS |
5344 | 5153 | |
5345 | 5154 | fi |
5346 | 5155 | fi |
5347 | 5156 | OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG |
5348 | 5157 | if test -n "$OCTAVE_CONFIG"; then |
5349 | { $as_echo "$as_me:$LINENO: result: $OCTAVE_CONFIG" >&5 | |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5 | |
5350 | 5159 | $as_echo "$OCTAVE_CONFIG" >&6; } |
5351 | 5160 | else |
5352 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5353 | 5162 | $as_echo "no" >&6; } |
5354 | 5163 | fi |
5355 | 5164 | |
5358 | 5167 | done |
5359 | 5168 | test -n "$OCTAVE_CONFIG" || OCTAVE_CONFIG="echo" |
5360 | 5169 | |
5361 | { $as_echo "$as_me:$LINENO: checking where octave plugins go" >&5 | |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where octave plugins go" >&5 | |
5362 | 5171 | $as_echo_n "checking where octave plugins go... " >&6; } |
5363 | 5172 | OCT_INSTALL_DIR=`octave-config --oct-site-dir 2> /dev/null | grep '/'` |
5364 | 5173 | if test -z "$OCT_INSTALL_DIR"; then |
5371 | 5180 | OCT_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q 2> /dev/null | tr ':' '\n' | grep "site/oct" | head -1` |
5372 | 5181 | fi |
5373 | 5182 | if test -n "$OCT_INSTALL_DIR"; then |
5374 | { $as_echo "$as_me:$LINENO: result: $OCT_INSTALL_DIR" >&5 | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCT_INSTALL_DIR" >&5 | |
5375 | 5184 | $as_echo "$OCT_INSTALL_DIR" >&6; } |
5376 | 5185 | H5READ=h5read.oct |
5377 | 5186 | else |
5378 | { $as_echo "$as_me:$LINENO: result: unknown" >&5 | |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 | |
5379 | 5188 | $as_echo "unknown" >&6; } |
5380 | { $as_echo "$as_me:$LINENO: WARNING: can't find where to install octave plugins: won't be able to compile h5read.oct" >&5 | |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find where to install octave plugins: won't be able to compile h5read.oct" >&5 | |
5381 | 5190 | $as_echo "$as_me: WARNING: can't find where to install octave plugins: won't be able to compile h5read.oct" >&2;} |
5382 | 5191 | fi |
5383 | 5192 | fi |
5390 | 5199 | |
5391 | 5200 | |
5392 | 5201 | # Check whether --with-v5d was given. |
5393 | if test "${with_v5d+set}" = set; then | |
5202 | if test "${with_v5d+set}" = set; then : | |
5394 | 5203 | withval=$with_v5d; ok=$withval |
5395 | 5204 | else |
5396 | 5205 | ok=yes |
5400 | 5209 | V5D_FILES="" |
5401 | 5210 | V5D_INCLUDES="" |
5402 | 5211 | if test "$ok" = "yes"; then |
5403 | { $as_echo "$as_me:$LINENO: checking for v5dCreate in -lv5d" >&5 | |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v5dCreate in -lv5d" >&5 | |
5404 | 5213 | $as_echo_n "checking for v5dCreate in -lv5d... " >&6; } |
5405 | if test "${ac_cv_lib_v5d_v5dCreate+set}" = set; then | |
5214 | if ${ac_cv_lib_v5d_v5dCreate+:} false; then : | |
5406 | 5215 | $as_echo_n "(cached) " >&6 |
5407 | 5216 | else |
5408 | 5217 | ac_check_lib_save_LIBS=$LIBS |
5409 | 5218 | LIBS="-lv5d $LIBS" |
5410 | cat >conftest.$ac_ext <<_ACEOF | |
5411 | /* confdefs.h. */ | |
5412 | _ACEOF | |
5413 | cat confdefs.h >>conftest.$ac_ext | |
5414 | cat >>conftest.$ac_ext <<_ACEOF | |
5219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5415 | 5220 | /* end confdefs.h. */ |
5416 | 5221 | |
5417 | 5222 | /* Override any GCC internal prototype to avoid an error. |
5429 | 5234 | return 0; |
5430 | 5235 | } |
5431 | 5236 | _ACEOF |
5432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5433 | if { (ac_try="$ac_link" | |
5434 | case "(($ac_try" in | |
5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5436 | *) ac_try_echo=$ac_try;; | |
5437 | esac | |
5438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5439 | $as_echo "$ac_try_echo") >&5 | |
5440 | (eval "$ac_link") 2>conftest.er1 | |
5441 | ac_status=$? | |
5442 | grep -v '^ *+' conftest.er1 >conftest.err | |
5443 | rm -f conftest.er1 | |
5444 | cat conftest.err >&5 | |
5445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5446 | (exit $ac_status); } && { | |
5447 | test -z "$ac_c_werror_flag" || | |
5448 | test ! -s conftest.err | |
5449 | } && test -s conftest$ac_exeext && { | |
5450 | test "$cross_compiling" = yes || | |
5451 | $as_test_x conftest$ac_exeext | |
5452 | }; then | |
5237 | if ac_fn_c_try_link "$LINENO"; then : | |
5453 | 5238 | ac_cv_lib_v5d_v5dCreate=yes |
5454 | 5239 | else |
5455 | $as_echo "$as_me: failed program was:" >&5 | |
5456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5457 | ||
5458 | ac_cv_lib_v5d_v5dCreate=no | |
5459 | fi | |
5460 | ||
5461 | rm -rf conftest.dSYM | |
5462 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5463 | conftest$ac_exeext conftest.$ac_ext | |
5240 | ac_cv_lib_v5d_v5dCreate=no | |
5241 | fi | |
5242 | rm -f core conftest.err conftest.$ac_objext \ | |
5243 | conftest$ac_exeext conftest.$ac_ext | |
5464 | 5244 | LIBS=$ac_check_lib_save_LIBS |
5465 | 5245 | fi |
5466 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_v5d_v5dCreate" >&5 | |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v5d_v5dCreate" >&5 | |
5467 | 5247 | $as_echo "$ac_cv_lib_v5d_v5dCreate" >&6; } |
5468 | if test "x$ac_cv_lib_v5d_v5dCreate" = x""yes; then | |
5248 | if test "x$ac_cv_lib_v5d_v5dCreate" = xyes; then : | |
5469 | 5249 | V5D_FILES="-lv5d"; H5TOV5D=yes |
5470 | 5250 | fi |
5471 | 5251 | |
5472 | ||
5473 | for ac_header in vis5d/v5d.h | |
5474 | do | |
5475 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5476 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5477 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5478 | $as_echo_n "checking for $ac_header... " >&6; } | |
5479 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5480 | $as_echo_n "(cached) " >&6 | |
5481 | fi | |
5482 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5483 | $as_echo "$as_val"'` | |
5484 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5485 | $as_echo "$ac_res" >&6; } | |
5486 | else | |
5487 | # Is the header compilable? | |
5488 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5489 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5490 | cat >conftest.$ac_ext <<_ACEOF | |
5491 | /* confdefs.h. */ | |
5492 | _ACEOF | |
5493 | cat confdefs.h >>conftest.$ac_ext | |
5494 | cat >>conftest.$ac_ext <<_ACEOF | |
5495 | /* end confdefs.h. */ | |
5496 | $ac_includes_default | |
5497 | #include <$ac_header> | |
5498 | _ACEOF | |
5499 | rm -f conftest.$ac_objext | |
5500 | if { (ac_try="$ac_compile" | |
5501 | case "(($ac_try" in | |
5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5503 | *) ac_try_echo=$ac_try;; | |
5504 | esac | |
5505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5506 | $as_echo "$ac_try_echo") >&5 | |
5507 | (eval "$ac_compile") 2>conftest.er1 | |
5508 | ac_status=$? | |
5509 | grep -v '^ *+' conftest.er1 >conftest.err | |
5510 | rm -f conftest.er1 | |
5511 | cat conftest.err >&5 | |
5512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5513 | (exit $ac_status); } && { | |
5514 | test -z "$ac_c_werror_flag" || | |
5515 | test ! -s conftest.err | |
5516 | } && test -s conftest.$ac_objext; then | |
5517 | ac_header_compiler=yes | |
5518 | else | |
5519 | $as_echo "$as_me: failed program was:" >&5 | |
5520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5521 | ||
5522 | ac_header_compiler=no | |
5523 | fi | |
5524 | ||
5525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5526 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5527 | $as_echo "$ac_header_compiler" >&6; } | |
5528 | ||
5529 | # Is the header present? | |
5530 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5531 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5532 | cat >conftest.$ac_ext <<_ACEOF | |
5533 | /* confdefs.h. */ | |
5534 | _ACEOF | |
5535 | cat confdefs.h >>conftest.$ac_ext | |
5536 | cat >>conftest.$ac_ext <<_ACEOF | |
5537 | /* end confdefs.h. */ | |
5538 | #include <$ac_header> | |
5539 | _ACEOF | |
5540 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5541 | case "(($ac_try" in | |
5542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5543 | *) ac_try_echo=$ac_try;; | |
5544 | esac | |
5545 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5546 | $as_echo "$ac_try_echo") >&5 | |
5547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5548 | ac_status=$? | |
5549 | grep -v '^ *+' conftest.er1 >conftest.err | |
5550 | rm -f conftest.er1 | |
5551 | cat conftest.err >&5 | |
5552 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5553 | (exit $ac_status); } >/dev/null && { | |
5554 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5555 | test ! -s conftest.err | |
5556 | }; then | |
5557 | ac_header_preproc=yes | |
5558 | else | |
5559 | $as_echo "$as_me: failed program was:" >&5 | |
5560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5561 | ||
5562 | ac_header_preproc=no | |
5563 | fi | |
5564 | ||
5565 | rm -f conftest.err conftest.$ac_ext | |
5566 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5567 | $as_echo "$ac_header_preproc" >&6; } | |
5568 | ||
5569 | # So? What about this header? | |
5570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5571 | yes:no: ) | |
5572 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5573 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5574 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5575 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5576 | ac_header_preproc=yes | |
5577 | ;; | |
5578 | no:yes:* ) | |
5579 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5580 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5582 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5583 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5584 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5585 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5586 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5587 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5588 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5589 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5590 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5591 | ( cat <<\_ASBOX | |
5592 | ## ----------------------------------- ## | |
5593 | ## Report this to stevenj@alum.mit.edu ## | |
5594 | ## ----------------------------------- ## | |
5595 | _ASBOX | |
5596 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
5597 | ;; | |
5598 | esac | |
5599 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5600 | $as_echo_n "checking for $ac_header... " >&6; } | |
5601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5602 | $as_echo_n "(cached) " >&6 | |
5603 | else | |
5604 | eval "$as_ac_Header=\$ac_header_preproc" | |
5605 | fi | |
5606 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5607 | $as_echo "$as_val"'` | |
5608 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5609 | $as_echo "$ac_res" >&6; } | |
5610 | ||
5611 | fi | |
5612 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5613 | $as_echo "$as_val"'` | |
5614 | if test "x$as_val" = x""yes; then | |
5252 | for ac_header in vis5d/v5d.h | |
5253 | do : | |
5254 | ac_fn_c_check_header_mongrel "$LINENO" "vis5d/v5d.h" "ac_cv_header_vis5d_v5d_h" "$ac_includes_default" | |
5255 | if test "x$ac_cv_header_vis5d_v5d_h" = xyes; then : | |
5615 | 5256 | cat >>confdefs.h <<_ACEOF |
5616 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5257 | #define HAVE_VIS5D_V5D_H 1 | |
5617 | 5258 | _ACEOF |
5618 | 5259 | |
5619 | 5260 | fi |
5620 | 5261 | |
5621 | 5262 | done |
5622 | 5263 | |
5623 | if test "${ac_cv_header_vis5dp_v5d_h+set}" = set; then | |
5624 | { $as_echo "$as_me:$LINENO: checking for vis5d+/v5d.h" >&5 | |
5625 | $as_echo_n "checking for vis5d+/v5d.h... " >&6; } | |
5626 | if test "${ac_cv_header_vis5dp_v5d_h+set}" = set; then | |
5627 | $as_echo_n "(cached) " >&6 | |
5628 | fi | |
5629 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vis5dp_v5d_h" >&5 | |
5630 | $as_echo "$ac_cv_header_vis5dp_v5d_h" >&6; } | |
5631 | else | |
5632 | # Is the header compilable? | |
5633 | { $as_echo "$as_me:$LINENO: checking vis5d+/v5d.h usability" >&5 | |
5634 | $as_echo_n "checking vis5d+/v5d.h usability... " >&6; } | |
5635 | cat >conftest.$ac_ext <<_ACEOF | |
5636 | /* confdefs.h. */ | |
5637 | _ACEOF | |
5638 | cat confdefs.h >>conftest.$ac_ext | |
5639 | cat >>conftest.$ac_ext <<_ACEOF | |
5640 | /* end confdefs.h. */ | |
5641 | $ac_includes_default | |
5642 | #include <vis5d+/v5d.h> | |
5643 | _ACEOF | |
5644 | rm -f conftest.$ac_objext | |
5645 | if { (ac_try="$ac_compile" | |
5646 | case "(($ac_try" in | |
5647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5648 | *) ac_try_echo=$ac_try;; | |
5649 | esac | |
5650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5651 | $as_echo "$ac_try_echo") >&5 | |
5652 | (eval "$ac_compile") 2>conftest.er1 | |
5653 | ac_status=$? | |
5654 | grep -v '^ *+' conftest.er1 >conftest.err | |
5655 | rm -f conftest.er1 | |
5656 | cat conftest.err >&5 | |
5657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5658 | (exit $ac_status); } && { | |
5659 | test -z "$ac_c_werror_flag" || | |
5660 | test ! -s conftest.err | |
5661 | } && test -s conftest.$ac_objext; then | |
5662 | ac_header_compiler=yes | |
5663 | else | |
5664 | $as_echo "$as_me: failed program was:" >&5 | |
5665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5666 | ||
5667 | ac_header_compiler=no | |
5668 | fi | |
5669 | ||
5670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5671 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5672 | $as_echo "$ac_header_compiler" >&6; } | |
5673 | ||
5674 | # Is the header present? | |
5675 | { $as_echo "$as_me:$LINENO: checking vis5d+/v5d.h presence" >&5 | |
5676 | $as_echo_n "checking vis5d+/v5d.h presence... " >&6; } | |
5677 | cat >conftest.$ac_ext <<_ACEOF | |
5678 | /* confdefs.h. */ | |
5679 | _ACEOF | |
5680 | cat confdefs.h >>conftest.$ac_ext | |
5681 | cat >>conftest.$ac_ext <<_ACEOF | |
5682 | /* end confdefs.h. */ | |
5683 | #include <vis5d+/v5d.h> | |
5684 | _ACEOF | |
5685 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5686 | case "(($ac_try" in | |
5687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5688 | *) ac_try_echo=$ac_try;; | |
5689 | esac | |
5690 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5691 | $as_echo "$ac_try_echo") >&5 | |
5692 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5693 | ac_status=$? | |
5694 | grep -v '^ *+' conftest.er1 >conftest.err | |
5695 | rm -f conftest.er1 | |
5696 | cat conftest.err >&5 | |
5697 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5698 | (exit $ac_status); } >/dev/null && { | |
5699 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5700 | test ! -s conftest.err | |
5701 | }; then | |
5702 | ac_header_preproc=yes | |
5703 | else | |
5704 | $as_echo "$as_me: failed program was:" >&5 | |
5705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5706 | ||
5707 | ac_header_preproc=no | |
5708 | fi | |
5709 | ||
5710 | rm -f conftest.err conftest.$ac_ext | |
5711 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5712 | $as_echo "$ac_header_preproc" >&6; } | |
5713 | ||
5714 | # So? What about this header? | |
5715 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5716 | yes:no: ) | |
5717 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5718 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5719 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: proceeding with the compiler's result" >&5 | |
5720 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: proceeding with the compiler's result" >&2;} | |
5721 | ac_header_preproc=yes | |
5722 | ;; | |
5723 | no:yes:* ) | |
5724 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: present but cannot be compiled" >&5 | |
5725 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: present but cannot be compiled" >&2;} | |
5726 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: check for missing prerequisite headers?" >&5 | |
5727 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: check for missing prerequisite headers?" >&2;} | |
5728 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: see the Autoconf documentation" >&5 | |
5729 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: see the Autoconf documentation" >&2;} | |
5730 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5731 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5732 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: proceeding with the preprocessor's result" >&5 | |
5733 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: proceeding with the preprocessor's result" >&2;} | |
5734 | { $as_echo "$as_me:$LINENO: WARNING: vis5d+/v5d.h: in the future, the compiler will take precedence" >&5 | |
5735 | $as_echo "$as_me: WARNING: vis5d+/v5d.h: in the future, the compiler will take precedence" >&2;} | |
5736 | ( cat <<\_ASBOX | |
5737 | ## ----------------------------------- ## | |
5738 | ## Report this to stevenj@alum.mit.edu ## | |
5739 | ## ----------------------------------- ## | |
5740 | _ASBOX | |
5741 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
5742 | ;; | |
5743 | esac | |
5744 | { $as_echo "$as_me:$LINENO: checking for vis5d+/v5d.h" >&5 | |
5745 | $as_echo_n "checking for vis5d+/v5d.h... " >&6; } | |
5746 | if test "${ac_cv_header_vis5dp_v5d_h+set}" = set; then | |
5747 | $as_echo_n "(cached) " >&6 | |
5748 | else | |
5749 | ac_cv_header_vis5dp_v5d_h=$ac_header_preproc | |
5750 | fi | |
5751 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_vis5dp_v5d_h" >&5 | |
5752 | $as_echo "$ac_cv_header_vis5dp_v5d_h" >&6; } | |
5753 | ||
5754 | fi | |
5755 | if test "x$ac_cv_header_vis5dp_v5d_h" = x""yes; then | |
5756 | ||
5757 | cat >>confdefs.h <<\_ACEOF | |
5758 | #define HAVE_VIS5Dp_V5D_H 1 | |
5759 | _ACEOF | |
5264 | ac_fn_c_check_header_mongrel "$LINENO" "vis5d+/v5d.h" "ac_cv_header_vis5dp_v5d_h" "$ac_includes_default" | |
5265 | if test "x$ac_cv_header_vis5dp_v5d_h" = xyes; then : | |
5266 | ||
5267 | $as_echo "#define HAVE_VIS5Dp_V5D_H 1" >>confdefs.h | |
5760 | 5268 | |
5761 | 5269 | fi |
5762 | 5270 | |
5763 | 5271 | |
5764 | 5272 | elif test "$ok" != "no"; then |
5765 | { $as_echo "$as_me:$LINENO: checking for Vis5d object files and headers" >&5 | |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vis5d object files and headers" >&5 | |
5766 | 5274 | $as_echo_n "checking for Vis5d object files and headers... " >&6; } |
5767 | 5275 | if test -r "$ok/src/v5d.o" -a -r "$ok/src/binio.o" -a -r "$ok/src/v5d.h" -a -r "$ok/src/binio.h"; then |
5768 | 5276 | V5D_FILES="$ok/src/v5d.o $ok/src/binio.o" |
5772 | 5280 | V5D_INCLUDES="-I$ok" |
5773 | 5281 | fi |
5774 | 5282 | if test -z "$V5D_FILES"; then |
5775 | { $as_echo "$as_me:$LINENO: result: not found" >&5 | |
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5776 | 5284 | $as_echo "not found" >&6; } |
5777 | { { $as_echo "$as_me:$LINENO: error: couldn't read Vis5D object files in $ok" >&5 | |
5778 | $as_echo "$as_me: error: couldn't read Vis5D object files in $ok" >&2;} | |
5779 | { (exit 1); exit 1; }; } | |
5285 | as_fn_error $? "couldn't read Vis5D object files in $ok" "$LINENO" 5 | |
5780 | 5286 | else |
5781 | { $as_echo "$as_me:$LINENO: result: found" >&5 | |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
5782 | 5288 | $as_echo "found" >&6; } |
5783 | 5289 | fi |
5784 | 5290 | H5TOV5D=yes |
5792 | 5298 | |
5793 | 5299 | ########################################################################### |
5794 | 5300 | |
5795 | ||
5796 | ||
5797 | ||
5798 | ||
5799 | 5301 | for ac_header in arpa/inet.h netinet/in.h stdint.h inttypes.h |
5800 | do | |
5801 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5802 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5803 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5804 | $as_echo_n "checking for $ac_header... " >&6; } | |
5805 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5806 | $as_echo_n "(cached) " >&6 | |
5807 | fi | |
5808 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5809 | $as_echo "$as_val"'` | |
5810 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5811 | $as_echo "$ac_res" >&6; } | |
5812 | else | |
5813 | # Is the header compilable? | |
5814 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5815 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5816 | cat >conftest.$ac_ext <<_ACEOF | |
5817 | /* confdefs.h. */ | |
5818 | _ACEOF | |
5819 | cat confdefs.h >>conftest.$ac_ext | |
5820 | cat >>conftest.$ac_ext <<_ACEOF | |
5821 | /* end confdefs.h. */ | |
5822 | $ac_includes_default | |
5823 | #include <$ac_header> | |
5824 | _ACEOF | |
5825 | rm -f conftest.$ac_objext | |
5826 | if { (ac_try="$ac_compile" | |
5827 | case "(($ac_try" in | |
5828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5829 | *) ac_try_echo=$ac_try;; | |
5830 | esac | |
5831 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5832 | $as_echo "$ac_try_echo") >&5 | |
5833 | (eval "$ac_compile") 2>conftest.er1 | |
5834 | ac_status=$? | |
5835 | grep -v '^ *+' conftest.er1 >conftest.err | |
5836 | rm -f conftest.er1 | |
5837 | cat conftest.err >&5 | |
5838 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5839 | (exit $ac_status); } && { | |
5840 | test -z "$ac_c_werror_flag" || | |
5841 | test ! -s conftest.err | |
5842 | } && test -s conftest.$ac_objext; then | |
5843 | ac_header_compiler=yes | |
5844 | else | |
5845 | $as_echo "$as_me: failed program was:" >&5 | |
5846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5847 | ||
5848 | ac_header_compiler=no | |
5849 | fi | |
5850 | ||
5851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5852 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5853 | $as_echo "$ac_header_compiler" >&6; } | |
5854 | ||
5855 | # Is the header present? | |
5856 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5857 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5858 | cat >conftest.$ac_ext <<_ACEOF | |
5859 | /* confdefs.h. */ | |
5860 | _ACEOF | |
5861 | cat confdefs.h >>conftest.$ac_ext | |
5862 | cat >>conftest.$ac_ext <<_ACEOF | |
5863 | /* end confdefs.h. */ | |
5864 | #include <$ac_header> | |
5865 | _ACEOF | |
5866 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5867 | case "(($ac_try" in | |
5868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5869 | *) ac_try_echo=$ac_try;; | |
5870 | esac | |
5871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5872 | $as_echo "$ac_try_echo") >&5 | |
5873 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5874 | ac_status=$? | |
5875 | grep -v '^ *+' conftest.er1 >conftest.err | |
5876 | rm -f conftest.er1 | |
5877 | cat conftest.err >&5 | |
5878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5879 | (exit $ac_status); } >/dev/null && { | |
5880 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5881 | test ! -s conftest.err | |
5882 | }; then | |
5883 | ac_header_preproc=yes | |
5884 | else | |
5885 | $as_echo "$as_me: failed program was:" >&5 | |
5886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5887 | ||
5888 | ac_header_preproc=no | |
5889 | fi | |
5890 | ||
5891 | rm -f conftest.err conftest.$ac_ext | |
5892 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5893 | $as_echo "$ac_header_preproc" >&6; } | |
5894 | ||
5895 | # So? What about this header? | |
5896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5897 | yes:no: ) | |
5898 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5899 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5900 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5901 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5902 | ac_header_preproc=yes | |
5903 | ;; | |
5904 | no:yes:* ) | |
5905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5906 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5907 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5908 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5909 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5910 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5911 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5912 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5913 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5914 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5916 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5917 | ( cat <<\_ASBOX | |
5918 | ## ----------------------------------- ## | |
5919 | ## Report this to stevenj@alum.mit.edu ## | |
5920 | ## ----------------------------------- ## | |
5921 | _ASBOX | |
5922 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
5923 | ;; | |
5924 | esac | |
5925 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5926 | $as_echo_n "checking for $ac_header... " >&6; } | |
5927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5928 | $as_echo_n "(cached) " >&6 | |
5929 | else | |
5930 | eval "$as_ac_Header=\$ac_header_preproc" | |
5931 | fi | |
5932 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5933 | $as_echo "$as_val"'` | |
5934 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5935 | $as_echo "$ac_res" >&6; } | |
5936 | ||
5937 | fi | |
5938 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5939 | $as_echo "$as_val"'` | |
5940 | if test "x$as_val" = x""yes; then | |
5302 | do : | |
5303 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5304 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5305 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5941 | 5306 | cat >>confdefs.h <<_ACEOF |
5942 | 5307 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5943 | 5308 | _ACEOF |
5946 | 5311 | |
5947 | 5312 | done |
5948 | 5313 | |
5949 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
5950 | $as_echo_n "checking for uint16_t... " >&6; } | |
5951 | if test "${ac_cv_type_uint16_t+set}" = set; then | |
5952 | $as_echo_n "(cached) " >&6 | |
5953 | else | |
5954 | ac_cv_type_uint16_t=no | |
5955 | cat >conftest.$ac_ext <<_ACEOF | |
5956 | /* confdefs.h. */ | |
5957 | _ACEOF | |
5958 | cat confdefs.h >>conftest.$ac_ext | |
5959 | cat >>conftest.$ac_ext <<_ACEOF | |
5960 | /* end confdefs.h. */ | |
5961 | $ac_includes_default | |
5962 | int | |
5963 | main () | |
5964 | { | |
5965 | if (sizeof (uint16_t)) | |
5966 | return 0; | |
5967 | ; | |
5968 | return 0; | |
5969 | } | |
5970 | _ACEOF | |
5971 | rm -f conftest.$ac_objext | |
5972 | if { (ac_try="$ac_compile" | |
5973 | case "(($ac_try" in | |
5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5975 | *) ac_try_echo=$ac_try;; | |
5976 | esac | |
5977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5978 | $as_echo "$ac_try_echo") >&5 | |
5979 | (eval "$ac_compile") 2>conftest.er1 | |
5980 | ac_status=$? | |
5981 | grep -v '^ *+' conftest.er1 >conftest.err | |
5982 | rm -f conftest.er1 | |
5983 | cat conftest.err >&5 | |
5984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5985 | (exit $ac_status); } && { | |
5986 | test -z "$ac_c_werror_flag" || | |
5987 | test ! -s conftest.err | |
5988 | } && test -s conftest.$ac_objext; then | |
5989 | cat >conftest.$ac_ext <<_ACEOF | |
5990 | /* confdefs.h. */ | |
5991 | _ACEOF | |
5992 | cat confdefs.h >>conftest.$ac_ext | |
5993 | cat >>conftest.$ac_ext <<_ACEOF | |
5994 | /* end confdefs.h. */ | |
5995 | $ac_includes_default | |
5996 | int | |
5997 | main () | |
5998 | { | |
5999 | if (sizeof ((uint16_t))) | |
6000 | return 0; | |
6001 | ; | |
6002 | return 0; | |
6003 | } | |
6004 | _ACEOF | |
6005 | rm -f conftest.$ac_objext | |
6006 | if { (ac_try="$ac_compile" | |
6007 | case "(($ac_try" in | |
6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6009 | *) ac_try_echo=$ac_try;; | |
6010 | esac | |
6011 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6012 | $as_echo "$ac_try_echo") >&5 | |
6013 | (eval "$ac_compile") 2>conftest.er1 | |
6014 | ac_status=$? | |
6015 | grep -v '^ *+' conftest.er1 >conftest.err | |
6016 | rm -f conftest.er1 | |
6017 | cat conftest.err >&5 | |
6018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6019 | (exit $ac_status); } && { | |
6020 | test -z "$ac_c_werror_flag" || | |
6021 | test ! -s conftest.err | |
6022 | } && test -s conftest.$ac_objext; then | |
6023 | : | |
6024 | else | |
6025 | $as_echo "$as_me: failed program was:" >&5 | |
6026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6027 | ||
6028 | ac_cv_type_uint16_t=yes | |
6029 | fi | |
6030 | ||
6031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6032 | else | |
6033 | $as_echo "$as_me: failed program was:" >&5 | |
6034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6035 | ||
6036 | ||
6037 | fi | |
6038 | ||
6039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6040 | fi | |
6041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
6042 | $as_echo "$ac_cv_type_uint16_t" >&6; } | |
6043 | if test "x$ac_cv_type_uint16_t" = x""yes; then | |
5314 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" | |
5315 | if test "x$ac_cv_type_uint16_t" = xyes; then : | |
6044 | 5316 | |
6045 | 5317 | cat >>confdefs.h <<_ACEOF |
6046 | 5318 | #define HAVE_UINT16_T 1 |
6048 | 5320 | |
6049 | 5321 | |
6050 | 5322 | fi |
6051 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
6052 | $as_echo_n "checking for uint32_t... " >&6; } | |
6053 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
6054 | $as_echo_n "(cached) " >&6 | |
6055 | else | |
6056 | ac_cv_type_uint32_t=no | |
6057 | cat >conftest.$ac_ext <<_ACEOF | |
6058 | /* confdefs.h. */ | |
6059 | _ACEOF | |
6060 | cat confdefs.h >>conftest.$ac_ext | |
6061 | cat >>conftest.$ac_ext <<_ACEOF | |
6062 | /* end confdefs.h. */ | |
6063 | $ac_includes_default | |
6064 | int | |
6065 | main () | |
6066 | { | |
6067 | if (sizeof (uint32_t)) | |
6068 | return 0; | |
6069 | ; | |
6070 | return 0; | |
6071 | } | |
6072 | _ACEOF | |
6073 | rm -f conftest.$ac_objext | |
6074 | if { (ac_try="$ac_compile" | |
6075 | case "(($ac_try" in | |
6076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6077 | *) ac_try_echo=$ac_try;; | |
6078 | esac | |
6079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6080 | $as_echo "$ac_try_echo") >&5 | |
6081 | (eval "$ac_compile") 2>conftest.er1 | |
6082 | ac_status=$? | |
6083 | grep -v '^ *+' conftest.er1 >conftest.err | |
6084 | rm -f conftest.er1 | |
6085 | cat conftest.err >&5 | |
6086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6087 | (exit $ac_status); } && { | |
6088 | test -z "$ac_c_werror_flag" || | |
6089 | test ! -s conftest.err | |
6090 | } && test -s conftest.$ac_objext; then | |
6091 | cat >conftest.$ac_ext <<_ACEOF | |
6092 | /* confdefs.h. */ | |
6093 | _ACEOF | |
6094 | cat confdefs.h >>conftest.$ac_ext | |
6095 | cat >>conftest.$ac_ext <<_ACEOF | |
6096 | /* end confdefs.h. */ | |
6097 | $ac_includes_default | |
6098 | int | |
6099 | main () | |
6100 | { | |
6101 | if (sizeof ((uint32_t))) | |
6102 | return 0; | |
6103 | ; | |
6104 | return 0; | |
6105 | } | |
6106 | _ACEOF | |
6107 | rm -f conftest.$ac_objext | |
6108 | if { (ac_try="$ac_compile" | |
6109 | case "(($ac_try" in | |
6110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6111 | *) ac_try_echo=$ac_try;; | |
6112 | esac | |
6113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6114 | $as_echo "$ac_try_echo") >&5 | |
6115 | (eval "$ac_compile") 2>conftest.er1 | |
6116 | ac_status=$? | |
6117 | grep -v '^ *+' conftest.er1 >conftest.err | |
6118 | rm -f conftest.er1 | |
6119 | cat conftest.err >&5 | |
6120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6121 | (exit $ac_status); } && { | |
6122 | test -z "$ac_c_werror_flag" || | |
6123 | test ! -s conftest.err | |
6124 | } && test -s conftest.$ac_objext; then | |
6125 | : | |
6126 | else | |
6127 | $as_echo "$as_me: failed program was:" >&5 | |
6128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6129 | ||
6130 | ac_cv_type_uint32_t=yes | |
6131 | fi | |
6132 | ||
6133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6134 | else | |
6135 | $as_echo "$as_me: failed program was:" >&5 | |
6136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6137 | ||
6138 | ||
6139 | fi | |
6140 | ||
6141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6142 | fi | |
6143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
6144 | $as_echo "$ac_cv_type_uint32_t" >&6; } | |
6145 | if test "x$ac_cv_type_uint32_t" = x""yes; then | |
5323 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | |
5324 | if test "x$ac_cv_type_uint32_t" = xyes; then : | |
6146 | 5325 | |
6147 | 5326 | cat >>confdefs.h <<_ACEOF |
6148 | 5327 | #define HAVE_UINT32_T 1 |
6152 | 5331 | fi |
6153 | 5332 | |
6154 | 5333 | |
6155 | { $as_echo "$as_me:$LINENO: checking for htons" >&5 | |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htons" >&5 | |
6156 | 5335 | $as_echo_n "checking for htons... " >&6; } |
6157 | cat >conftest.$ac_ext <<_ACEOF | |
6158 | /* confdefs.h. */ | |
6159 | _ACEOF | |
6160 | cat confdefs.h >>conftest.$ac_ext | |
6161 | cat >>conftest.$ac_ext <<_ACEOF | |
5336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6162 | 5337 | /* end confdefs.h. */ |
6163 | 5338 | #if defined(HAVE_ARPA_INET_H) |
6164 | 5339 | #include <arpa/inet.h> |
6173 | 5348 | return 0; |
6174 | 5349 | } |
6175 | 5350 | _ACEOF |
6176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6177 | if { (ac_try="$ac_link" | |
6178 | case "(($ac_try" in | |
6179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6180 | *) ac_try_echo=$ac_try;; | |
6181 | esac | |
6182 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6183 | $as_echo "$ac_try_echo") >&5 | |
6184 | (eval "$ac_link") 2>conftest.er1 | |
6185 | ac_status=$? | |
6186 | grep -v '^ *+' conftest.er1 >conftest.err | |
6187 | rm -f conftest.er1 | |
6188 | cat conftest.err >&5 | |
6189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6190 | (exit $ac_status); } && { | |
6191 | test -z "$ac_c_werror_flag" || | |
6192 | test ! -s conftest.err | |
6193 | } && test -s conftest$ac_exeext && { | |
6194 | test "$cross_compiling" = yes || | |
6195 | $as_test_x conftest$ac_exeext | |
6196 | }; then | |
5351 | if ac_fn_c_try_link "$LINENO"; then : | |
6197 | 5352 | htons=yes |
6198 | 5353 | |
6199 | cat >>confdefs.h <<\_ACEOF | |
6200 | #define HAVE_HTONS 1 | |
6201 | _ACEOF | |
6202 | ||
6203 | else | |
6204 | $as_echo "$as_me: failed program was:" >&5 | |
6205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6206 | ||
6207 | htons=no | |
6208 | fi | |
6209 | ||
6210 | rm -rf conftest.dSYM | |
6211 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6212 | conftest$ac_exeext conftest.$ac_ext | |
6213 | { $as_echo "$as_me:$LINENO: result: $htons" >&5 | |
5354 | $as_echo "#define HAVE_HTONS 1" >>confdefs.h | |
5355 | ||
5356 | else | |
5357 | htons=no | |
5358 | fi | |
5359 | rm -f core conftest.err conftest.$ac_objext \ | |
5360 | conftest$ac_exeext conftest.$ac_ext | |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $htons" >&5 | |
6214 | 5362 | $as_echo "$htons" >&6; } |
6215 | 5363 | |
6216 | 5364 | # The cast to long int works around a bug in the HP C Compiler |
6217 | 5365 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
6218 | 5366 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
6219 | 5367 | # This bug is HP SR number 8606223364. |
6220 | { $as_echo "$as_me:$LINENO: checking size of float" >&5 | |
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | |
6221 | 5369 | $as_echo_n "checking size of float... " >&6; } |
6222 | if test "${ac_cv_sizeof_float+set}" = set; then | |
5370 | if ${ac_cv_sizeof_float+:} false; then : | |
6223 | 5371 | $as_echo_n "(cached) " >&6 |
6224 | 5372 | else |
6225 | if test "$cross_compiling" = yes; then | |
6226 | # Depending upon the size, compute the lo and hi bounds. | |
6227 | cat >conftest.$ac_ext <<_ACEOF | |
6228 | /* confdefs.h. */ | |
6229 | _ACEOF | |
6230 | cat confdefs.h >>conftest.$ac_ext | |
6231 | cat >>conftest.$ac_ext <<_ACEOF | |
6232 | /* end confdefs.h. */ | |
6233 | $ac_includes_default | |
6234 | int | |
6235 | main () | |
6236 | { | |
6237 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= 0)]; | |
6238 | test_array [0] = 0 | |
6239 | ||
6240 | ; | |
6241 | return 0; | |
6242 | } | |
6243 | _ACEOF | |
6244 | rm -f conftest.$ac_objext | |
6245 | if { (ac_try="$ac_compile" | |
6246 | case "(($ac_try" in | |
6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6248 | *) ac_try_echo=$ac_try;; | |
6249 | esac | |
6250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6251 | $as_echo "$ac_try_echo") >&5 | |
6252 | (eval "$ac_compile") 2>conftest.er1 | |
6253 | ac_status=$? | |
6254 | grep -v '^ *+' conftest.er1 >conftest.err | |
6255 | rm -f conftest.er1 | |
6256 | cat conftest.err >&5 | |
6257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6258 | (exit $ac_status); } && { | |
6259 | test -z "$ac_c_werror_flag" || | |
6260 | test ! -s conftest.err | |
6261 | } && test -s conftest.$ac_objext; then | |
6262 | ac_lo=0 ac_mid=0 | |
6263 | while :; do | |
6264 | cat >conftest.$ac_ext <<_ACEOF | |
6265 | /* confdefs.h. */ | |
6266 | _ACEOF | |
6267 | cat confdefs.h >>conftest.$ac_ext | |
6268 | cat >>conftest.$ac_ext <<_ACEOF | |
6269 | /* end confdefs.h. */ | |
6270 | $ac_includes_default | |
6271 | int | |
6272 | main () | |
6273 | { | |
6274 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; | |
6275 | test_array [0] = 0 | |
6276 | ||
6277 | ; | |
6278 | return 0; | |
6279 | } | |
6280 | _ACEOF | |
6281 | rm -f conftest.$ac_objext | |
6282 | if { (ac_try="$ac_compile" | |
6283 | case "(($ac_try" in | |
6284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6285 | *) ac_try_echo=$ac_try;; | |
6286 | esac | |
6287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6288 | $as_echo "$ac_try_echo") >&5 | |
6289 | (eval "$ac_compile") 2>conftest.er1 | |
6290 | ac_status=$? | |
6291 | grep -v '^ *+' conftest.er1 >conftest.err | |
6292 | rm -f conftest.er1 | |
6293 | cat conftest.err >&5 | |
6294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6295 | (exit $ac_status); } && { | |
6296 | test -z "$ac_c_werror_flag" || | |
6297 | test ! -s conftest.err | |
6298 | } && test -s conftest.$ac_objext; then | |
6299 | ac_hi=$ac_mid; break | |
6300 | else | |
6301 | $as_echo "$as_me: failed program was:" >&5 | |
6302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6303 | ||
6304 | ac_lo=`expr $ac_mid + 1` | |
6305 | if test $ac_lo -le $ac_mid; then | |
6306 | ac_lo= ac_hi= | |
6307 | break | |
6308 | fi | |
6309 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6310 | fi | |
6311 | ||
6312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6313 | done | |
6314 | else | |
6315 | $as_echo "$as_me: failed program was:" >&5 | |
6316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6317 | ||
6318 | cat >conftest.$ac_ext <<_ACEOF | |
6319 | /* confdefs.h. */ | |
6320 | _ACEOF | |
6321 | cat confdefs.h >>conftest.$ac_ext | |
6322 | cat >>conftest.$ac_ext <<_ACEOF | |
6323 | /* end confdefs.h. */ | |
6324 | $ac_includes_default | |
6325 | int | |
6326 | main () | |
6327 | { | |
6328 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) < 0)]; | |
6329 | test_array [0] = 0 | |
6330 | ||
6331 | ; | |
6332 | return 0; | |
6333 | } | |
6334 | _ACEOF | |
6335 | rm -f conftest.$ac_objext | |
6336 | if { (ac_try="$ac_compile" | |
6337 | case "(($ac_try" in | |
6338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6339 | *) ac_try_echo=$ac_try;; | |
6340 | esac | |
6341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6342 | $as_echo "$ac_try_echo") >&5 | |
6343 | (eval "$ac_compile") 2>conftest.er1 | |
6344 | ac_status=$? | |
6345 | grep -v '^ *+' conftest.er1 >conftest.err | |
6346 | rm -f conftest.er1 | |
6347 | cat conftest.err >&5 | |
6348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6349 | (exit $ac_status); } && { | |
6350 | test -z "$ac_c_werror_flag" || | |
6351 | test ! -s conftest.err | |
6352 | } && test -s conftest.$ac_objext; then | |
6353 | ac_hi=-1 ac_mid=-1 | |
6354 | while :; do | |
6355 | cat >conftest.$ac_ext <<_ACEOF | |
6356 | /* confdefs.h. */ | |
6357 | _ACEOF | |
6358 | cat confdefs.h >>conftest.$ac_ext | |
6359 | cat >>conftest.$ac_ext <<_ACEOF | |
6360 | /* end confdefs.h. */ | |
6361 | $ac_includes_default | |
6362 | int | |
6363 | main () | |
6364 | { | |
6365 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) >= $ac_mid)]; | |
6366 | test_array [0] = 0 | |
6367 | ||
6368 | ; | |
6369 | return 0; | |
6370 | } | |
6371 | _ACEOF | |
6372 | rm -f conftest.$ac_objext | |
6373 | if { (ac_try="$ac_compile" | |
6374 | case "(($ac_try" in | |
6375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6376 | *) ac_try_echo=$ac_try;; | |
6377 | esac | |
6378 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6379 | $as_echo "$ac_try_echo") >&5 | |
6380 | (eval "$ac_compile") 2>conftest.er1 | |
6381 | ac_status=$? | |
6382 | grep -v '^ *+' conftest.er1 >conftest.err | |
6383 | rm -f conftest.er1 | |
6384 | cat conftest.err >&5 | |
6385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6386 | (exit $ac_status); } && { | |
6387 | test -z "$ac_c_werror_flag" || | |
6388 | test ! -s conftest.err | |
6389 | } && test -s conftest.$ac_objext; then | |
6390 | ac_lo=$ac_mid; break | |
6391 | else | |
6392 | $as_echo "$as_me: failed program was:" >&5 | |
6393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6394 | ||
6395 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6396 | if test $ac_mid -le $ac_hi; then | |
6397 | ac_lo= ac_hi= | |
6398 | break | |
6399 | fi | |
6400 | ac_mid=`expr 2 '*' $ac_mid` | |
6401 | fi | |
6402 | ||
6403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6404 | done | |
6405 | else | |
6406 | $as_echo "$as_me: failed program was:" >&5 | |
6407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6408 | ||
6409 | ac_lo= ac_hi= | |
6410 | fi | |
6411 | ||
6412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6413 | fi | |
6414 | ||
6415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6416 | # Binary search between lo and hi bounds. | |
6417 | while test "x$ac_lo" != "x$ac_hi"; do | |
6418 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6419 | cat >conftest.$ac_ext <<_ACEOF | |
6420 | /* confdefs.h. */ | |
6421 | _ACEOF | |
6422 | cat confdefs.h >>conftest.$ac_ext | |
6423 | cat >>conftest.$ac_ext <<_ACEOF | |
6424 | /* end confdefs.h. */ | |
6425 | $ac_includes_default | |
6426 | int | |
6427 | main () | |
6428 | { | |
6429 | static int test_array [1 - 2 * !(((long int) (sizeof (float))) <= $ac_mid)]; | |
6430 | test_array [0] = 0 | |
6431 | ||
6432 | ; | |
6433 | return 0; | |
6434 | } | |
6435 | _ACEOF | |
6436 | rm -f conftest.$ac_objext | |
6437 | if { (ac_try="$ac_compile" | |
6438 | case "(($ac_try" in | |
6439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6440 | *) ac_try_echo=$ac_try;; | |
6441 | esac | |
6442 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6443 | $as_echo "$ac_try_echo") >&5 | |
6444 | (eval "$ac_compile") 2>conftest.er1 | |
6445 | ac_status=$? | |
6446 | grep -v '^ *+' conftest.er1 >conftest.err | |
6447 | rm -f conftest.er1 | |
6448 | cat conftest.err >&5 | |
6449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6450 | (exit $ac_status); } && { | |
6451 | test -z "$ac_c_werror_flag" || | |
6452 | test ! -s conftest.err | |
6453 | } && test -s conftest.$ac_objext; then | |
6454 | ac_hi=$ac_mid | |
6455 | else | |
6456 | $as_echo "$as_me: failed program was:" >&5 | |
6457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6458 | ||
6459 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6460 | fi | |
6461 | ||
6462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6463 | done | |
6464 | case $ac_lo in | |
6465 | ?*) ac_cv_sizeof_float=$ac_lo;; | |
6466 | '') if test "$ac_cv_type_float" = yes; then | |
6467 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
5373 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : | |
5374 | ||
5375 | else | |
5376 | if test "$ac_cv_type_float" = yes; then | |
5377 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6468 | 5378 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6469 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) | |
6470 | See \`config.log' for more details." >&5 | |
6471 | $as_echo "$as_me: error: cannot compute sizeof (float) | |
6472 | See \`config.log' for more details." >&2;} | |
6473 | { (exit 77); exit 77; }; }; } | |
6474 | else | |
6475 | ac_cv_sizeof_float=0 | |
6476 | fi ;; | |
6477 | esac | |
6478 | else | |
6479 | cat >conftest.$ac_ext <<_ACEOF | |
6480 | /* confdefs.h. */ | |
6481 | _ACEOF | |
6482 | cat confdefs.h >>conftest.$ac_ext | |
6483 | cat >>conftest.$ac_ext <<_ACEOF | |
6484 | /* end confdefs.h. */ | |
6485 | $ac_includes_default | |
6486 | static long int longval () { return (long int) (sizeof (float)); } | |
6487 | static unsigned long int ulongval () { return (long int) (sizeof (float)); } | |
6488 | #include <stdio.h> | |
6489 | #include <stdlib.h> | |
6490 | int | |
6491 | main () | |
6492 | { | |
6493 | ||
6494 | FILE *f = fopen ("conftest.val", "w"); | |
6495 | if (! f) | |
6496 | return 1; | |
6497 | if (((long int) (sizeof (float))) < 0) | |
6498 | { | |
6499 | long int i = longval (); | |
6500 | if (i != ((long int) (sizeof (float)))) | |
6501 | return 1; | |
6502 | fprintf (f, "%ld", i); | |
6503 | } | |
6504 | else | |
6505 | { | |
6506 | unsigned long int i = ulongval (); | |
6507 | if (i != ((long int) (sizeof (float)))) | |
6508 | return 1; | |
6509 | fprintf (f, "%lu", i); | |
6510 | } | |
6511 | /* Do not output a trailing newline, as this causes \r\n confusion | |
6512 | on some platforms. */ | |
6513 | return ferror (f) || fclose (f) != 0; | |
6514 | ||
6515 | ; | |
6516 | return 0; | |
6517 | } | |
6518 | _ACEOF | |
6519 | rm -f conftest$ac_exeext | |
6520 | if { (ac_try="$ac_link" | |
6521 | case "(($ac_try" in | |
6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6523 | *) ac_try_echo=$ac_try;; | |
6524 | esac | |
6525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6526 | $as_echo "$ac_try_echo") >&5 | |
6527 | (eval "$ac_link") 2>&5 | |
6528 | ac_status=$? | |
6529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6531 | { (case "(($ac_try" in | |
6532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6533 | *) ac_try_echo=$ac_try;; | |
6534 | esac | |
6535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6536 | $as_echo "$ac_try_echo") >&5 | |
6537 | (eval "$ac_try") 2>&5 | |
6538 | ac_status=$? | |
6539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6540 | (exit $ac_status); }; }; then | |
6541 | ac_cv_sizeof_float=`cat conftest.val` | |
6542 | else | |
6543 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
6544 | $as_echo "$as_me: failed program was:" >&5 | |
6545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6546 | ||
6547 | ( exit $ac_status ) | |
6548 | if test "$ac_cv_type_float" = yes; then | |
6549 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
6550 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6551 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (float) | |
6552 | See \`config.log' for more details." >&5 | |
6553 | $as_echo "$as_me: error: cannot compute sizeof (float) | |
6554 | See \`config.log' for more details." >&2;} | |
6555 | { (exit 77); exit 77; }; }; } | |
5379 | as_fn_error 77 "cannot compute sizeof (float) | |
5380 | See \`config.log' for more details" "$LINENO" 5; } | |
6556 | 5381 | else |
6557 | 5382 | ac_cv_sizeof_float=0 |
6558 | 5383 | fi |
6559 | 5384 | fi |
6560 | rm -rf conftest.dSYM | |
6561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6562 | fi | |
6563 | rm -f conftest.val | |
6564 | fi | |
6565 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 | |
5385 | ||
5386 | fi | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | |
6566 | 5388 | $as_echo "$ac_cv_sizeof_float" >&6; } |
6567 | 5389 | |
6568 | 5390 | |
6573 | 5395 | |
6574 | 5396 | |
6575 | 5397 | |
6576 | { $as_echo "$as_me:$LINENO: checking for htonl" >&5 | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl" >&5 | |
6577 | 5399 | $as_echo_n "checking for htonl... " >&6; } |
6578 | cat >conftest.$ac_ext <<_ACEOF | |
6579 | /* confdefs.h. */ | |
6580 | _ACEOF | |
6581 | cat confdefs.h >>conftest.$ac_ext | |
6582 | cat >>conftest.$ac_ext <<_ACEOF | |
5400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6583 | 5401 | /* end confdefs.h. */ |
6584 | 5402 | #if defined(HAVE_ARPA_INET_H) |
6585 | 5403 | #include <arpa/inet.h> |
6594 | 5412 | return 0; |
6595 | 5413 | } |
6596 | 5414 | _ACEOF |
6597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6598 | if { (ac_try="$ac_link" | |
6599 | case "(($ac_try" in | |
6600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6601 | *) ac_try_echo=$ac_try;; | |
6602 | esac | |
6603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6604 | $as_echo "$ac_try_echo") >&5 | |
6605 | (eval "$ac_link") 2>conftest.er1 | |
6606 | ac_status=$? | |
6607 | grep -v '^ *+' conftest.er1 >conftest.err | |
6608 | rm -f conftest.er1 | |
6609 | cat conftest.err >&5 | |
6610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6611 | (exit $ac_status); } && { | |
6612 | test -z "$ac_c_werror_flag" || | |
6613 | test ! -s conftest.err | |
6614 | } && test -s conftest$ac_exeext && { | |
6615 | test "$cross_compiling" = yes || | |
6616 | $as_test_x conftest$ac_exeext | |
6617 | }; then | |
5415 | if ac_fn_c_try_link "$LINENO"; then : | |
6618 | 5416 | htonl=yes |
6619 | 5417 | |
6620 | cat >>confdefs.h <<\_ACEOF | |
6621 | #define HAVE_HTONL 1 | |
6622 | _ACEOF | |
6623 | ||
6624 | else | |
6625 | $as_echo "$as_me: failed program was:" >&5 | |
6626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6627 | ||
6628 | htonl=no | |
6629 | fi | |
6630 | ||
6631 | rm -rf conftest.dSYM | |
6632 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6633 | conftest$ac_exeext conftest.$ac_ext | |
6634 | { $as_echo "$as_me:$LINENO: result: $htonl" >&5 | |
5418 | $as_echo "#define HAVE_HTONL 1" >>confdefs.h | |
5419 | ||
5420 | else | |
5421 | htonl=no | |
5422 | fi | |
5423 | rm -f core conftest.err conftest.$ac_objext \ | |
5424 | conftest$ac_exeext conftest.$ac_ext | |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $htonl" >&5 | |
6635 | 5426 | $as_echo "$htonl" >&6; } |
6636 | 5427 | |
6637 | 5428 | if test "x$htons" != xyes -o "x$htonl" != xyes; then |
6638 | ||
6639 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
6640 | 5430 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
6641 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5431 | if ${ac_cv_c_bigendian+:} false; then : | |
6642 | 5432 | $as_echo_n "(cached) " >&6 |
6643 | 5433 | else |
6644 | 5434 | ac_cv_c_bigendian=unknown |
6645 | 5435 | # See if we're dealing with a universal compiler. |
6646 | cat >conftest.$ac_ext <<_ACEOF | |
6647 | /* confdefs.h. */ | |
6648 | _ACEOF | |
6649 | cat confdefs.h >>conftest.$ac_ext | |
6650 | cat >>conftest.$ac_ext <<_ACEOF | |
5436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6651 | 5437 | /* end confdefs.h. */ |
6652 | 5438 | #ifndef __APPLE_CC__ |
6653 | 5439 | not a universal capable compiler |
6655 | 5441 | typedef int dummy; |
6656 | 5442 | |
6657 | 5443 | _ACEOF |
6658 | rm -f conftest.$ac_objext | |
6659 | if { (ac_try="$ac_compile" | |
6660 | case "(($ac_try" in | |
6661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6662 | *) ac_try_echo=$ac_try;; | |
6663 | esac | |
6664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6665 | $as_echo "$ac_try_echo") >&5 | |
6666 | (eval "$ac_compile") 2>conftest.er1 | |
6667 | ac_status=$? | |
6668 | grep -v '^ *+' conftest.er1 >conftest.err | |
6669 | rm -f conftest.er1 | |
6670 | cat conftest.err >&5 | |
6671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6672 | (exit $ac_status); } && { | |
6673 | test -z "$ac_c_werror_flag" || | |
6674 | test ! -s conftest.err | |
6675 | } && test -s conftest.$ac_objext; then | |
5444 | if ac_fn_c_try_compile "$LINENO"; then : | |
6676 | 5445 | |
6677 | 5446 | # Check for potential -arch flags. It is not universal unless |
6678 | # there are some -arch flags. Note that *ppc* also matches | |
6679 | # ppc64. This check is also rather less than ideal. | |
6680 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( | |
6681 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; | |
6682 | esac | |
6683 | else | |
6684 | $as_echo "$as_me: failed program was:" >&5 | |
6685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6686 | ||
6687 | ||
6688 | fi | |
6689 | ||
5447 | # there are at least two -arch flags with different values. | |
5448 | ac_arch= | |
5449 | ac_prev= | |
5450 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5451 | if test -n "$ac_prev"; then | |
5452 | case $ac_word in | |
5453 | i?86 | x86_64 | ppc | ppc64) | |
5454 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5455 | ac_arch=$ac_word | |
5456 | else | |
5457 | ac_cv_c_bigendian=universal | |
5458 | break | |
5459 | fi | |
5460 | ;; | |
5461 | esac | |
5462 | ac_prev= | |
5463 | elif test "x$ac_word" = "x-arch"; then | |
5464 | ac_prev=arch | |
5465 | fi | |
5466 | done | |
5467 | fi | |
6690 | 5468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6691 | 5469 | if test $ac_cv_c_bigendian = unknown; then |
6692 | 5470 | # See if sys/param.h defines the BYTE_ORDER macro. |
6693 | cat >conftest.$ac_ext <<_ACEOF | |
6694 | /* confdefs.h. */ | |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
5471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6698 | 5472 | /* end confdefs.h. */ |
6699 | 5473 | #include <sys/types.h> |
6700 | 5474 | #include <sys/param.h> |
6712 | 5486 | return 0; |
6713 | 5487 | } |
6714 | 5488 | _ACEOF |
6715 | rm -f conftest.$ac_objext | |
6716 | if { (ac_try="$ac_compile" | |
6717 | case "(($ac_try" in | |
6718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6719 | *) ac_try_echo=$ac_try;; | |
6720 | esac | |
6721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6722 | $as_echo "$ac_try_echo") >&5 | |
6723 | (eval "$ac_compile") 2>conftest.er1 | |
6724 | ac_status=$? | |
6725 | grep -v '^ *+' conftest.er1 >conftest.err | |
6726 | rm -f conftest.er1 | |
6727 | cat conftest.err >&5 | |
6728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6729 | (exit $ac_status); } && { | |
6730 | test -z "$ac_c_werror_flag" || | |
6731 | test ! -s conftest.err | |
6732 | } && test -s conftest.$ac_objext; then | |
5489 | if ac_fn_c_try_compile "$LINENO"; then : | |
6733 | 5490 | # It does; now see whether it defined to BIG_ENDIAN or not. |
6734 | cat >conftest.$ac_ext <<_ACEOF | |
6735 | /* confdefs.h. */ | |
6736 | _ACEOF | |
6737 | cat confdefs.h >>conftest.$ac_ext | |
6738 | cat >>conftest.$ac_ext <<_ACEOF | |
5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6739 | 5492 | /* end confdefs.h. */ |
6740 | 5493 | #include <sys/types.h> |
6741 | 5494 | #include <sys/param.h> |
6751 | 5504 | return 0; |
6752 | 5505 | } |
6753 | 5506 | _ACEOF |
6754 | rm -f conftest.$ac_objext | |
6755 | if { (ac_try="$ac_compile" | |
6756 | case "(($ac_try" in | |
6757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6758 | *) ac_try_echo=$ac_try;; | |
6759 | esac | |
6760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6761 | $as_echo "$ac_try_echo") >&5 | |
6762 | (eval "$ac_compile") 2>conftest.er1 | |
6763 | ac_status=$? | |
6764 | grep -v '^ *+' conftest.er1 >conftest.err | |
6765 | rm -f conftest.er1 | |
6766 | cat conftest.err >&5 | |
6767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6768 | (exit $ac_status); } && { | |
6769 | test -z "$ac_c_werror_flag" || | |
6770 | test ! -s conftest.err | |
6771 | } && test -s conftest.$ac_objext; then | |
5507 | if ac_fn_c_try_compile "$LINENO"; then : | |
6772 | 5508 | ac_cv_c_bigendian=yes |
6773 | 5509 | else |
6774 | $as_echo "$as_me: failed program was:" >&5 | |
6775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6776 | ||
6777 | ac_cv_c_bigendian=no | |
6778 | fi | |
6779 | ||
5510 | ac_cv_c_bigendian=no | |
5511 | fi | |
6780 | 5512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6781 | else | |
6782 | $as_echo "$as_me: failed program was:" >&5 | |
6783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6784 | ||
6785 | ||
6786 | fi | |
6787 | ||
5513 | fi | |
6788 | 5514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6789 | 5515 | fi |
6790 | 5516 | if test $ac_cv_c_bigendian = unknown; then |
6791 | 5517 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
6792 | cat >conftest.$ac_ext <<_ACEOF | |
6793 | /* confdefs.h. */ | |
6794 | _ACEOF | |
6795 | cat confdefs.h >>conftest.$ac_ext | |
6796 | cat >>conftest.$ac_ext <<_ACEOF | |
5518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6797 | 5519 | /* end confdefs.h. */ |
6798 | 5520 | #include <limits.h> |
6799 | 5521 | |
6808 | 5530 | return 0; |
6809 | 5531 | } |
6810 | 5532 | _ACEOF |
6811 | rm -f conftest.$ac_objext | |
6812 | if { (ac_try="$ac_compile" | |
6813 | case "(($ac_try" in | |
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6815 | *) ac_try_echo=$ac_try;; | |
6816 | esac | |
6817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6818 | $as_echo "$ac_try_echo") >&5 | |
6819 | (eval "$ac_compile") 2>conftest.er1 | |
6820 | ac_status=$? | |
6821 | grep -v '^ *+' conftest.er1 >conftest.err | |
6822 | rm -f conftest.er1 | |
6823 | cat conftest.err >&5 | |
6824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6825 | (exit $ac_status); } && { | |
6826 | test -z "$ac_c_werror_flag" || | |
6827 | test ! -s conftest.err | |
6828 | } && test -s conftest.$ac_objext; then | |
5533 | if ac_fn_c_try_compile "$LINENO"; then : | |
6829 | 5534 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
6830 | cat >conftest.$ac_ext <<_ACEOF | |
6831 | /* confdefs.h. */ | |
6832 | _ACEOF | |
6833 | cat confdefs.h >>conftest.$ac_ext | |
6834 | cat >>conftest.$ac_ext <<_ACEOF | |
5535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6835 | 5536 | /* end confdefs.h. */ |
6836 | 5537 | #include <limits.h> |
6837 | 5538 | |
6846 | 5547 | return 0; |
6847 | 5548 | } |
6848 | 5549 | _ACEOF |
6849 | rm -f conftest.$ac_objext | |
6850 | if { (ac_try="$ac_compile" | |
6851 | case "(($ac_try" in | |
6852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6853 | *) ac_try_echo=$ac_try;; | |
6854 | esac | |
6855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6856 | $as_echo "$ac_try_echo") >&5 | |
6857 | (eval "$ac_compile") 2>conftest.er1 | |
6858 | ac_status=$? | |
6859 | grep -v '^ *+' conftest.er1 >conftest.err | |
6860 | rm -f conftest.er1 | |
6861 | cat conftest.err >&5 | |
6862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6863 | (exit $ac_status); } && { | |
6864 | test -z "$ac_c_werror_flag" || | |
6865 | test ! -s conftest.err | |
6866 | } && test -s conftest.$ac_objext; then | |
5550 | if ac_fn_c_try_compile "$LINENO"; then : | |
6867 | 5551 | ac_cv_c_bigendian=yes |
6868 | 5552 | else |
6869 | $as_echo "$as_me: failed program was:" >&5 | |
6870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6871 | ||
6872 | ac_cv_c_bigendian=no | |
6873 | fi | |
6874 | ||
5553 | ac_cv_c_bigendian=no | |
5554 | fi | |
6875 | 5555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6876 | else | |
6877 | $as_echo "$as_me: failed program was:" >&5 | |
6878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6879 | ||
6880 | ||
6881 | fi | |
6882 | ||
5556 | fi | |
6883 | 5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6884 | 5558 | fi |
6885 | 5559 | if test $ac_cv_c_bigendian = unknown; then |
6886 | 5560 | # Compile a test program. |
6887 | if test "$cross_compiling" = yes; then | |
5561 | if test "$cross_compiling" = yes; then : | |
6888 | 5562 | # Try to guess by grepping values from an object file. |
6889 | cat >conftest.$ac_ext <<_ACEOF | |
6890 | /* confdefs.h. */ | |
6891 | _ACEOF | |
6892 | cat confdefs.h >>conftest.$ac_ext | |
6893 | cat >>conftest.$ac_ext <<_ACEOF | |
5563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6894 | 5564 | /* end confdefs.h. */ |
6895 | 5565 | short int ascii_mm[] = |
6896 | 5566 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
6916 | 5586 | return 0; |
6917 | 5587 | } |
6918 | 5588 | _ACEOF |
6919 | rm -f conftest.$ac_objext | |
6920 | if { (ac_try="$ac_compile" | |
6921 | case "(($ac_try" in | |
6922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6923 | *) ac_try_echo=$ac_try;; | |
6924 | esac | |
6925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6926 | $as_echo "$ac_try_echo") >&5 | |
6927 | (eval "$ac_compile") 2>conftest.er1 | |
6928 | ac_status=$? | |
6929 | grep -v '^ *+' conftest.er1 >conftest.err | |
6930 | rm -f conftest.er1 | |
6931 | cat conftest.err >&5 | |
6932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6933 | (exit $ac_status); } && { | |
6934 | test -z "$ac_c_werror_flag" || | |
6935 | test ! -s conftest.err | |
6936 | } && test -s conftest.$ac_objext; then | |
5589 | if ac_fn_c_try_compile "$LINENO"; then : | |
6937 | 5590 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
6938 | 5591 | ac_cv_c_bigendian=yes |
6939 | 5592 | fi |
6945 | 5598 | ac_cv_c_bigendian=unknown |
6946 | 5599 | fi |
6947 | 5600 | fi |
6948 | else | |
6949 | $as_echo "$as_me: failed program was:" >&5 | |
6950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6951 | ||
6952 | ||
6953 | fi | |
6954 | ||
5601 | fi | |
6955 | 5602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6956 | 5603 | else |
6957 | cat >conftest.$ac_ext <<_ACEOF | |
6958 | /* confdefs.h. */ | |
6959 | _ACEOF | |
6960 | cat confdefs.h >>conftest.$ac_ext | |
6961 | cat >>conftest.$ac_ext <<_ACEOF | |
5604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6962 | 5605 | /* end confdefs.h. */ |
6963 | 5606 | $ac_includes_default |
6964 | 5607 | int |
6978 | 5621 | return 0; |
6979 | 5622 | } |
6980 | 5623 | _ACEOF |
6981 | rm -f conftest$ac_exeext | |
6982 | if { (ac_try="$ac_link" | |
6983 | case "(($ac_try" in | |
6984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6985 | *) ac_try_echo=$ac_try;; | |
6986 | esac | |
6987 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6988 | $as_echo "$ac_try_echo") >&5 | |
6989 | (eval "$ac_link") 2>&5 | |
6990 | ac_status=$? | |
6991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6993 | { (case "(($ac_try" in | |
6994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6995 | *) ac_try_echo=$ac_try;; | |
6996 | esac | |
6997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6998 | $as_echo "$ac_try_echo") >&5 | |
6999 | (eval "$ac_try") 2>&5 | |
7000 | ac_status=$? | |
7001 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7002 | (exit $ac_status); }; }; then | |
5624 | if ac_fn_c_try_run "$LINENO"; then : | |
7003 | 5625 | ac_cv_c_bigendian=no |
7004 | 5626 | else |
7005 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7006 | $as_echo "$as_me: failed program was:" >&5 | |
7007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7008 | ||
7009 | ( exit $ac_status ) | |
7010 | ac_cv_c_bigendian=yes | |
7011 | fi | |
7012 | rm -rf conftest.dSYM | |
7013 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7014 | fi | |
7015 | ||
5627 | ac_cv_c_bigendian=yes | |
5628 | fi | |
5629 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5630 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5631 | fi | |
7016 | 5632 | |
7017 | 5633 | fi |
7018 | 5634 | fi |
7019 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
7020 | 5636 | $as_echo "$ac_cv_c_bigendian" >&6; } |
7021 | 5637 | case $ac_cv_c_bigendian in #( |
7022 | 5638 | yes) |
7023 | cat >>confdefs.h <<\_ACEOF | |
7024 | #define WORDS_BIGENDIAN 1 | |
7025 | _ACEOF | |
5639 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
7026 | 5640 | ;; #( |
7027 | 5641 | no) |
7028 | 5642 | ;; #( |
7029 | 5643 | universal) |
7030 | 5644 | |
7031 | cat >>confdefs.h <<\_ACEOF | |
7032 | #define AC_APPLE_UNIVERSAL_BUILD 1 | |
7033 | _ACEOF | |
5645 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
7034 | 5646 | |
7035 | 5647 | ;; #( |
7036 | 5648 | *) |
7037 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | |
7038 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7039 | $as_echo "$as_me: error: unknown endianness | |
7040 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7041 | { (exit 1); exit 1; }; } ;; | |
5649 | as_fn_error $? "unknown endianness | |
5650 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
7042 | 5651 | esac |
7043 | 5652 | |
7044 | 5653 | fi |
7066 | 5675 | |
7067 | 5676 | ########################################################################### |
7068 | 5677 | |
7069 | ac_config_files="$ac_config_files Makefile h5topng.1" | |
5678 | ac_config_files="$ac_config_files Makefile doc/man/h5topng.1" | |
7070 | 5679 | |
7071 | 5680 | cat >confcache <<\_ACEOF |
7072 | 5681 | # This file is a shell script that caches the results of configure |
7095 | 5704 | case $ac_val in #( |
7096 | 5705 | *${as_nl}*) |
7097 | 5706 | case $ac_var in #( |
7098 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
5707 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7099 | 5708 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7100 | 5709 | esac |
7101 | 5710 | case $ac_var in #( |
7102 | 5711 | _ | IFS | as_nl) ;; #( |
7103 | 5712 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7104 | *) $as_unset $ac_var ;; | |
5713 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7105 | 5714 | esac ;; |
7106 | 5715 | esac |
7107 | 5716 | done |
7109 | 5718 | (set) 2>&1 | |
7110 | 5719 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7111 | 5720 | *${as_nl}ac_space=\ *) |
7112 | # `set' does not quote correctly, so add quotes (double-quote | |
7113 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5721 | # `set' does not quote correctly, so add quotes: double-quote | |
5722 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
7114 | 5723 | sed -n \ |
7115 | 5724 | "s/'/'\\\\''/g; |
7116 | 5725 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7132 | 5741 | :end' >>confcache |
7133 | 5742 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7134 | 5743 | if test -w "$cache_file"; then |
7135 | test "x$cache_file" != "x/dev/null" && | |
7136 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
5744 | if test "x$cache_file" != "x/dev/null"; then | |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7137 | 5746 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
7138 | cat confcache >$cache_file | |
5747 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
5748 | cat confcache >"$cache_file" | |
5749 | else | |
5750 | case $cache_file in #( | |
5751 | */* | ?:*) | |
5752 | mv -f confcache "$cache_file"$$ && | |
5753 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
5754 | *) | |
5755 | mv -f confcache "$cache_file" ;; | |
5756 | esac | |
5757 | fi | |
5758 | fi | |
7139 | 5759 | else |
7140 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
7141 | 5761 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
7142 | 5762 | fi |
7143 | 5763 | fi |
7157 | 5777 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7158 | 5778 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7159 | 5779 | # will be set to the directory where LIBOBJS objects are built. |
7160 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7161 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
5780 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5781 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
7162 | 5782 | done |
7163 | 5783 | LIBOBJS=$ac_libobjs |
7164 | 5784 | |
7165 | 5785 | LTLIBOBJS=$ac_ltlibobjs |
7166 | 5786 | |
7167 | 5787 | |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
5789 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
5790 | if test -n "$am_sleep_pid"; then | |
5791 | # Hide warnings about reused PIDs. | |
5792 | wait $am_sleep_pid 2>/dev/null | |
5793 | fi | |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
5795 | $as_echo "done" >&6; } | |
7168 | 5796 | if test -n "$EXEEXT"; then |
7169 | 5797 | am__EXEEXT_TRUE= |
7170 | 5798 | am__EXEEXT_FALSE='#' |
7174 | 5802 | fi |
7175 | 5803 | |
7176 | 5804 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
7177 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
7178 | Usually this means the macro was only invoked conditionally." >&5 | |
7179 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
7180 | Usually this means the macro was only invoked conditionally." >&2;} | |
7181 | { (exit 1); exit 1; }; } | |
5805 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
5806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7182 | 5807 | fi |
7183 | 5808 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
7184 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
7185 | Usually this means the macro was only invoked conditionally." >&5 | |
7186 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
7187 | Usually this means the macro was only invoked conditionally." >&2;} | |
7188 | { (exit 1); exit 1; }; } | |
5809 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
5810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7189 | 5811 | fi |
7190 | 5812 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
7191 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
7192 | Usually this means the macro was only invoked conditionally." >&5 | |
7193 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
7194 | Usually this means the macro was only invoked conditionally." >&2;} | |
7195 | { (exit 1); exit 1; }; } | |
7196 | fi | |
7197 | ||
7198 | ||
7199 | : ${CONFIG_STATUS=./config.status} | |
5813 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
5814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5815 | fi | |
5816 | ||
5817 | ||
5818 | : "${CONFIG_STATUS=./config.status}" | |
7200 | 5819 | ac_write_fail=0 |
7201 | 5820 | ac_clean_files_save=$ac_clean_files |
7202 | 5821 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
7203 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
7204 | 5823 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
7205 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5824 | as_write_fail=0 | |
5825 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
7206 | 5826 | #! $SHELL |
7207 | 5827 | # Generated by $as_me. |
7208 | 5828 | # Run this file to recreate the current configuration. |
7212 | 5832 | debug=false |
7213 | 5833 | ac_cs_recheck=false |
7214 | 5834 | ac_cs_silent=false |
5835 | ||
7215 | 5836 | SHELL=\${CONFIG_SHELL-$SHELL} |
7216 | _ACEOF | |
7217 | ||
7218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7219 | ## --------------------- ## | |
7220 | ## M4sh Initialization. ## | |
7221 | ## --------------------- ## | |
5837 | export SHELL | |
5838 | _ASEOF | |
5839 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
5840 | ## -------------------- ## | |
5841 | ## M4sh Initialization. ## | |
5842 | ## -------------------- ## | |
7222 | 5843 | |
7223 | 5844 | # Be more Bourne compatible |
7224 | 5845 | DUALCASE=1; export DUALCASE # for MKS sh |
7225 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5846 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
7226 | 5847 | emulate sh |
7227 | 5848 | NULLCMD=: |
7228 | 5849 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7230 | 5851 | alias -g '${1+"$@"}'='"$@"' |
7231 | 5852 | setopt NO_GLOB_SUBST |
7232 | 5853 | else |
7233 | case `(set -o) 2>/dev/null` in | |
7234 | *posix*) set -o posix ;; | |
5854 | case `(set -o) 2>/dev/null` in #( | |
5855 | *posix*) : | |
5856 | set -o posix ;; #( | |
5857 | *) : | |
5858 | ;; | |
7235 | 5859 | esac |
7236 | ||
7237 | fi | |
7238 | ||
7239 | ||
7240 | ||
7241 | ||
7242 | # PATH needs CR | |
7243 | # Avoid depending upon Character Ranges. | |
7244 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7245 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7246 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7247 | as_cr_digits='0123456789' | |
7248 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5860 | fi | |
5861 | ||
7249 | 5862 | |
7250 | 5863 | as_nl=' |
7251 | 5864 | ' |
7254 | 5867 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
7255 | 5868 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
7256 | 5869 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
7257 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5870 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
5871 | # but without wasting forks for bash or zsh. | |
5872 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
5873 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5874 | as_echo='print -r --' | |
5875 | as_echo_n='print -rn --' | |
5876 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7258 | 5877 | as_echo='printf %s\n' |
7259 | 5878 | as_echo_n='printf %s' |
7260 | 5879 | else |
7265 | 5884 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
7266 | 5885 | as_echo_n_body='eval |
7267 | 5886 | arg=$1; |
7268 | case $arg in | |
5887 | case $arg in #( | |
7269 | 5888 | *"$as_nl"*) |
7270 | 5889 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
7271 | 5890 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
7288 | 5907 | } |
7289 | 5908 | fi |
7290 | 5909 | |
7291 | # Support unset when possible. | |
7292 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7293 | as_unset=unset | |
7294 | else | |
7295 | as_unset=false | |
7296 | fi | |
7297 | ||
7298 | 5910 | |
7299 | 5911 | # IFS |
7300 | 5912 | # We need space, tab and new line, in precisely that order. Quoting is |
7304 | 5916 | IFS=" "" $as_nl" |
7305 | 5917 | |
7306 | 5918 | # Find who we are. Look in the path if we contain no directory separator. |
7307 | case $0 in | |
5919 | as_myself= | |
5920 | case $0 in #(( | |
7308 | 5921 | *[\\/]* ) as_myself=$0 ;; |
7309 | 5922 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7310 | 5923 | for as_dir in $PATH |
7311 | 5924 | do |
7312 | 5925 | IFS=$as_save_IFS |
7313 | 5926 | test -z "$as_dir" && as_dir=. |
7314 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7315 | done | |
5927 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5928 | done | |
7316 | 5929 | IFS=$as_save_IFS |
7317 | 5930 | |
7318 | 5931 | ;; |
7324 | 5937 | fi |
7325 | 5938 | if test ! -f "$as_myself"; then |
7326 | 5939 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7327 | { (exit 1); exit 1; } | |
7328 | fi | |
7329 | ||
7330 | # Work around bugs in pre-3.0 UWIN ksh. | |
7331 | for as_var in ENV MAIL MAILPATH | |
7332 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
5940 | exit 1 | |
5941 | fi | |
5942 | ||
5943 | # Unset variables that we do not need and which cause bugs (e.g. in | |
5944 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
5945 | # suppresses any "Segmentation fault" message there. '((' could | |
5946 | # trigger a bug in pdksh 5.2.14. | |
5947 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
5948 | do eval test x\${$as_var+set} = xset \ | |
5949 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7333 | 5950 | done |
7334 | 5951 | PS1='$ ' |
7335 | 5952 | PS2='> ' |
7341 | 5958 | LANGUAGE=C |
7342 | 5959 | export LANGUAGE |
7343 | 5960 | |
7344 | # Required to use basename. | |
5961 | # CDPATH. | |
5962 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
5963 | ||
5964 | ||
5965 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
5966 | # ---------------------------------------- | |
5967 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
5968 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5969 | # script with STATUS, using 1 if that was 0. | |
5970 | as_fn_error () | |
5971 | { | |
5972 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
5973 | if test "$4"; then | |
5974 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
5975 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5976 | fi | |
5977 | $as_echo "$as_me: error: $2" >&2 | |
5978 | as_fn_exit $as_status | |
5979 | } # as_fn_error | |
5980 | ||
5981 | ||
5982 | # as_fn_set_status STATUS | |
5983 | # ----------------------- | |
5984 | # Set $? to STATUS, without forking. | |
5985 | as_fn_set_status () | |
5986 | { | |
5987 | return $1 | |
5988 | } # as_fn_set_status | |
5989 | ||
5990 | # as_fn_exit STATUS | |
5991 | # ----------------- | |
5992 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
5993 | as_fn_exit () | |
5994 | { | |
5995 | set +e | |
5996 | as_fn_set_status $1 | |
5997 | exit $1 | |
5998 | } # as_fn_exit | |
5999 | ||
6000 | # as_fn_unset VAR | |
6001 | # --------------- | |
6002 | # Portably unset VAR. | |
6003 | as_fn_unset () | |
6004 | { | |
6005 | { eval $1=; unset $1;} | |
6006 | } | |
6007 | as_unset=as_fn_unset | |
6008 | # as_fn_append VAR VALUE | |
6009 | # ---------------------- | |
6010 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6011 | # advantage of any shell optimizations that allow amortized linear growth over | |
6012 | # repeated appends, instead of the typical quadratic growth present in naive | |
6013 | # implementations. | |
6014 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6015 | eval 'as_fn_append () | |
6016 | { | |
6017 | eval $1+=\$2 | |
6018 | }' | |
6019 | else | |
6020 | as_fn_append () | |
6021 | { | |
6022 | eval $1=\$$1\$2 | |
6023 | } | |
6024 | fi # as_fn_append | |
6025 | ||
6026 | # as_fn_arith ARG... | |
6027 | # ------------------ | |
6028 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6029 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6030 | # must be portable across $(()) and expr. | |
6031 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6032 | eval 'as_fn_arith () | |
6033 | { | |
6034 | as_val=$(( $* )) | |
6035 | }' | |
6036 | else | |
6037 | as_fn_arith () | |
6038 | { | |
6039 | as_val=`expr "$@" || test $? -eq 1` | |
6040 | } | |
6041 | fi # as_fn_arith | |
6042 | ||
6043 | ||
7345 | 6044 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7346 | 6045 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
7347 | 6046 | as_expr=expr |
7355 | 6054 | as_basename=false |
7356 | 6055 | fi |
7357 | 6056 | |
7358 | ||
7359 | # Name of the executable. | |
6057 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
6058 | as_dirname=dirname | |
6059 | else | |
6060 | as_dirname=false | |
6061 | fi | |
6062 | ||
7360 | 6063 | as_me=`$as_basename -- "$0" || |
7361 | 6064 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7362 | 6065 | X"$0" : 'X\(//\)$' \| \ |
7376 | 6079 | } |
7377 | 6080 | s/.*/./; q'` |
7378 | 6081 | |
7379 | # CDPATH. | |
7380 | $as_unset CDPATH | |
7381 | ||
7382 | ||
7383 | ||
7384 | as_lineno_1=$LINENO | |
7385 | as_lineno_2=$LINENO | |
7386 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7387 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
7388 | ||
7389 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7390 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7391 | # line-number line after each line using $LINENO; the second 'sed' | |
7392 | # does the real work. The second script uses 'N' to pair each | |
7393 | # line-number line with the line containing $LINENO, and appends | |
7394 | # trailing '-' during substitution so that $LINENO is not a special | |
7395 | # case at line end. | |
7396 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7397 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
7398 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
7399 | sed -n ' | |
7400 | p | |
7401 | /[$]LINENO/= | |
7402 | ' <$as_myself | | |
7403 | sed ' | |
7404 | s/[$]LINENO.*/&-/ | |
7405 | t lineno | |
7406 | b | |
7407 | :lineno | |
7408 | N | |
7409 | :loop | |
7410 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
7411 | t loop | |
7412 | s/-\n.*// | |
7413 | ' >$as_me.lineno && | |
7414 | chmod +x "$as_me.lineno" || | |
7415 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
7416 | { (exit 1); exit 1; }; } | |
7417 | ||
7418 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7419 | # (the dirname of $[0] is not the place where we might find the | |
7420 | # original and so on. Autoconf is especially sensitive to this). | |
7421 | . "./$as_me.lineno" | |
7422 | # Exit status is that of the last command. | |
7423 | exit | |
7424 | } | |
7425 | ||
7426 | ||
7427 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
7428 | as_dirname=dirname | |
7429 | else | |
7430 | as_dirname=false | |
7431 | fi | |
6082 | # Avoid depending upon Character Ranges. | |
6083 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6084 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6085 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6086 | as_cr_digits='0123456789' | |
6087 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7432 | 6088 | |
7433 | 6089 | ECHO_C= ECHO_N= ECHO_T= |
7434 | case `echo -n x` in | |
6090 | case `echo -n x` in #((((( | |
7435 | 6091 | -n*) |
7436 | case `echo 'x\c'` in | |
6092 | case `echo 'xy\c'` in | |
7437 | 6093 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7438 | *) ECHO_C='\c';; | |
6094 | xy) ECHO_C='\c';; | |
6095 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6096 | ECHO_T=' ';; | |
7439 | 6097 | esac;; |
7440 | 6098 | *) |
7441 | 6099 | ECHO_N='-n';; |
7442 | 6100 | esac |
7443 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7444 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
7445 | as_expr=expr | |
7446 | else | |
7447 | as_expr=false | |
7448 | fi | |
7449 | 6101 | |
7450 | 6102 | rm -f conf$$ conf$$.exe conf$$.file |
7451 | 6103 | if test -d conf$$.dir; then |
7460 | 6112 | # ... but there are two gotchas: |
7461 | 6113 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
7462 | 6114 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
7463 | # In both cases, we have to default to `cp -p'. | |
6115 | # In both cases, we have to default to `cp -pR'. | |
7464 | 6116 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
7465 | as_ln_s='cp -p' | |
6117 | as_ln_s='cp -pR' | |
7466 | 6118 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7467 | 6119 | as_ln_s=ln |
7468 | 6120 | else |
7469 | as_ln_s='cp -p' | |
6121 | as_ln_s='cp -pR' | |
7470 | 6122 | fi |
7471 | 6123 | else |
7472 | as_ln_s='cp -p' | |
6124 | as_ln_s='cp -pR' | |
7473 | 6125 | fi |
7474 | 6126 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7475 | 6127 | rmdir conf$$.dir 2>/dev/null |
7476 | 6128 | |
6129 | ||
6130 | # as_fn_mkdir_p | |
6131 | # ------------- | |
6132 | # Create "$as_dir" as a directory, including parents if necessary. | |
6133 | as_fn_mkdir_p () | |
6134 | { | |
6135 | ||
6136 | case $as_dir in #( | |
6137 | -*) as_dir=./$as_dir;; | |
6138 | esac | |
6139 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6140 | as_dirs= | |
6141 | while :; do | |
6142 | case $as_dir in #( | |
6143 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6144 | *) as_qdir=$as_dir;; | |
6145 | esac | |
6146 | as_dirs="'$as_qdir' $as_dirs" | |
6147 | as_dir=`$as_dirname -- "$as_dir" || | |
6148 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6149 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6150 | X"$as_dir" : 'X\(//\)$' \| \ | |
6151 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6152 | $as_echo X"$as_dir" | | |
6153 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6154 | s//\1/ | |
6155 | q | |
6156 | } | |
6157 | /^X\(\/\/\)[^/].*/{ | |
6158 | s//\1/ | |
6159 | q | |
6160 | } | |
6161 | /^X\(\/\/\)$/{ | |
6162 | s//\1/ | |
6163 | q | |
6164 | } | |
6165 | /^X\(\/\).*/{ | |
6166 | s//\1/ | |
6167 | q | |
6168 | } | |
6169 | s/.*/./; q'` | |
6170 | test -d "$as_dir" && break | |
6171 | done | |
6172 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6173 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
6174 | ||
6175 | ||
6176 | } # as_fn_mkdir_p | |
7477 | 6177 | if mkdir -p . 2>/dev/null; then |
7478 | as_mkdir_p=: | |
6178 | as_mkdir_p='mkdir -p "$as_dir"' | |
7479 | 6179 | else |
7480 | 6180 | test -d ./-p && rmdir ./-p |
7481 | 6181 | as_mkdir_p=false |
7482 | 6182 | fi |
7483 | 6183 | |
7484 | if test -x / >/dev/null 2>&1; then | |
7485 | as_test_x='test -x' | |
7486 | else | |
7487 | if ls -dL / >/dev/null 2>&1; then | |
7488 | as_ls_L_option=L | |
7489 | else | |
7490 | as_ls_L_option= | |
7491 | fi | |
7492 | as_test_x=' | |
7493 | eval sh -c '\'' | |
7494 | if test -d "$1"; then | |
7495 | test -d "$1/."; | |
7496 | else | |
7497 | case $1 in | |
7498 | -*)set "./$1";; | |
7499 | esac; | |
7500 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
7501 | ???[sx]*):;;*)false;;esac;fi | |
7502 | '\'' sh | |
7503 | ' | |
7504 | fi | |
7505 | as_executable_p=$as_test_x | |
6184 | ||
6185 | # as_fn_executable_p FILE | |
6186 | # ----------------------- | |
6187 | # Test if FILE is an executable regular file. | |
6188 | as_fn_executable_p () | |
6189 | { | |
6190 | test -f "$1" && test -x "$1" | |
6191 | } # as_fn_executable_p | |
6192 | as_test_x='test -x' | |
6193 | as_executable_p=as_fn_executable_p | |
7506 | 6194 | |
7507 | 6195 | # Sed expression to map a string onto a valid CPP name. |
7508 | 6196 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
7512 | 6200 | |
7513 | 6201 | |
7514 | 6202 | exec 6>&1 |
7515 | ||
7516 | # Save the log message, to keep $[0] and so on meaningful, and to | |
6203 | ## ----------------------------------- ## | |
6204 | ## Main body of $CONFIG_STATUS script. ## | |
6205 | ## ----------------------------------- ## | |
6206 | _ASEOF | |
6207 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6208 | ||
6209 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6210 | # Save the log message, to keep $0 and so on meaningful, and to | |
7517 | 6211 | # report actual input values of CONFIG_FILES etc. instead of their |
7518 | 6212 | # values after options handling. |
7519 | 6213 | ac_log=" |
7520 | This file was extended by h5utils $as_me 1.12.1, which was | |
7521 | generated by GNU Autoconf 2.63. Invocation command line was | |
6214 | This file was extended by h5utils $as_me 1.13, which was | |
6215 | generated by GNU Autoconf 2.69. Invocation command line was | |
7522 | 6216 | |
7523 | 6217 | CONFIG_FILES = $CONFIG_FILES |
7524 | 6218 | CONFIG_HEADERS = $CONFIG_HEADERS |
7550 | 6244 | |
7551 | 6245 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7552 | 6246 | ac_cs_usage="\ |
7553 | \`$as_me' instantiates files from templates according to the | |
7554 | current configuration. | |
7555 | ||
7556 | Usage: $0 [OPTION]... [FILE]... | |
6247 | \`$as_me' instantiates files and other configuration actions | |
6248 | from templates according to the current configuration. Unless the files | |
6249 | and actions are specified as TAGs, all are instantiated by default. | |
6250 | ||
6251 | Usage: $0 [OPTION]... [TAG]... | |
7557 | 6252 | |
7558 | 6253 | -h, --help print this help, then exit |
7559 | 6254 | -V, --version print version number and configuration settings, then exit |
6255 | --config print configuration, then exit | |
7560 | 6256 | -q, --quiet, --silent |
7561 | 6257 | do not print progress messages |
7562 | 6258 | -d, --debug don't remove temporary files |
7575 | 6271 | Configuration commands: |
7576 | 6272 | $config_commands |
7577 | 6273 | |
7578 | Report bugs to <bug-autoconf@gnu.org>." | |
6274 | Report bugs to <stevenj@alum.mit.edu>." | |
7579 | 6275 | |
7580 | 6276 | _ACEOF |
7581 | 6277 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6278 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
7582 | 6279 | ac_cs_version="\\ |
7583 | h5utils config.status 1.12.1 | |
7584 | configured by $0, generated by GNU Autoconf 2.63, | |
7585 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
7586 | ||
7587 | Copyright (C) 2008 Free Software Foundation, Inc. | |
6280 | h5utils config.status 1.13 | |
6281 | configured by $0, generated by GNU Autoconf 2.69, | |
6282 | with options \\"\$ac_cs_config\\" | |
6283 | ||
6284 | Copyright (C) 2012 Free Software Foundation, Inc. | |
7588 | 6285 | This config.status script is free software; the Free Software Foundation |
7589 | 6286 | gives unlimited permission to copy, distribute and modify it." |
7590 | 6287 | |
7602 | 6299 | while test $# != 0 |
7603 | 6300 | do |
7604 | 6301 | case $1 in |
7605 | --*=*) | |
6302 | --*=?*) | |
7606 | 6303 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7607 | 6304 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
6305 | ac_shift=: | |
6306 | ;; | |
6307 | --*=) | |
6308 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6309 | ac_optarg= | |
7608 | 6310 | ac_shift=: |
7609 | 6311 | ;; |
7610 | 6312 | *) |
7620 | 6322 | ac_cs_recheck=: ;; |
7621 | 6323 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7622 | 6324 | $as_echo "$ac_cs_version"; exit ;; |
6325 | --config | --confi | --conf | --con | --co | --c ) | |
6326 | $as_echo "$ac_cs_config"; exit ;; | |
7623 | 6327 | --debug | --debu | --deb | --de | --d | -d ) |
7624 | 6328 | debug=: ;; |
7625 | 6329 | --file | --fil | --fi | --f ) |
7626 | 6330 | $ac_shift |
7627 | 6331 | case $ac_optarg in |
7628 | 6332 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
6333 | '') as_fn_error $? "missing file argument" ;; | |
7629 | 6334 | esac |
7630 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
6335 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
7631 | 6336 | ac_need_defaults=false;; |
7632 | 6337 | --header | --heade | --head | --hea ) |
7633 | 6338 | $ac_shift |
7634 | 6339 | case $ac_optarg in |
7635 | 6340 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7636 | 6341 | esac |
7637 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
6342 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
7638 | 6343 | ac_need_defaults=false;; |
7639 | 6344 | --he | --h) |
7640 | 6345 | # Conflict between --help and --header |
7641 | { $as_echo "$as_me: error: ambiguous option: $1 | |
7642 | Try \`$0 --help' for more information." >&2 | |
7643 | { (exit 1); exit 1; }; };; | |
6346 | as_fn_error $? "ambiguous option: \`$1' | |
6347 | Try \`$0 --help' for more information.";; | |
7644 | 6348 | --help | --hel | -h ) |
7645 | 6349 | $as_echo "$ac_cs_usage"; exit ;; |
7646 | 6350 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7648 | 6352 | ac_cs_silent=: ;; |
7649 | 6353 | |
7650 | 6354 | # This is an error. |
7651 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
7652 | Try \`$0 --help' for more information." >&2 | |
7653 | { (exit 1); exit 1; }; } ;; | |
7654 | ||
7655 | *) ac_config_targets="$ac_config_targets $1" | |
6355 | -*) as_fn_error $? "unrecognized option: \`$1' | |
6356 | Try \`$0 --help' for more information." ;; | |
6357 | ||
6358 | *) as_fn_append ac_config_targets " $1" | |
7656 | 6359 | ac_need_defaults=false ;; |
7657 | 6360 | |
7658 | 6361 | esac |
7669 | 6372 | _ACEOF |
7670 | 6373 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7671 | 6374 | if \$ac_cs_recheck; then |
7672 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6375 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7673 | 6376 | shift |
7674 | 6377 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
7675 | 6378 | CONFIG_SHELL='$SHELL' |
7706 | 6409 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
7707 | 6410 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
7708 | 6411 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
7709 | "h5topng.1") CONFIG_FILES="$CONFIG_FILES h5topng.1" ;; | |
7710 | ||
7711 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7712 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7713 | { (exit 1); exit 1; }; };; | |
6412 | "doc/man/h5topng.1") CONFIG_FILES="$CONFIG_FILES doc/man/h5topng.1" ;; | |
6413 | ||
6414 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
7714 | 6415 | esac |
7715 | 6416 | done |
7716 | 6417 | |
7733 | 6434 | # after its creation but before its name has been assigned to `$tmp'. |
7734 | 6435 | $debug || |
7735 | 6436 | { |
7736 | tmp= | |
6437 | tmp= ac_tmp= | |
7737 | 6438 | trap 'exit_status=$? |
7738 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6439 | : "${ac_tmp:=$tmp}" | |
6440 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7739 | 6441 | ' 0 |
7740 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6442 | trap 'as_fn_exit 1' 1 2 13 15 | |
7741 | 6443 | } |
7742 | 6444 | # Create a (secure) tmp directory for tmp files. |
7743 | 6445 | |
7744 | 6446 | { |
7745 | 6447 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
7746 | test -n "$tmp" && test -d "$tmp" | |
6448 | test -d "$tmp" | |
7747 | 6449 | } || |
7748 | 6450 | { |
7749 | 6451 | tmp=./conf$$-$RANDOM |
7750 | 6452 | (umask 077 && mkdir "$tmp") |
7751 | } || | |
7752 | { | |
7753 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
7754 | { (exit 1); exit 1; } | |
7755 | } | |
6453 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
6454 | ac_tmp=$tmp | |
7756 | 6455 | |
7757 | 6456 | # Set up the scripts for CONFIG_FILES section. |
7758 | 6457 | # No need to generate them if there are no CONFIG_FILES. |
7760 | 6459 | if test -n "$CONFIG_FILES"; then |
7761 | 6460 | |
7762 | 6461 | |
7763 | ac_cr=' ⏎ | |
7764 | ' | |
6462 | ac_cr=`echo X | tr X '\015'` | |
6463 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
6464 | # But we know of no other shell where ac_cr would be empty at this | |
6465 | # point, so we can use a bashism as a fallback. | |
6466 | if test "x$ac_cr" = x; then | |
6467 | eval ac_cr=\$\'\\r\' | |
6468 | fi | |
7765 | 6469 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
7766 | 6470 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
7767 | 6471 | ac_cs_awk_cr='\\r' |
7769 | 6473 | ac_cs_awk_cr=$ac_cr |
7770 | 6474 | fi |
7771 | 6475 | |
7772 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
6476 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
7773 | 6477 | _ACEOF |
7774 | 6478 | |
7775 | 6479 | |
7778 | 6482 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
7779 | 6483 | echo "_ACEOF" |
7780 | 6484 | } >conf$$subs.sh || |
7781 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7782 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7783 | { (exit 1); exit 1; }; } | |
7784 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
6485 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6486 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7785 | 6487 | ac_delim='%!_!# ' |
7786 | 6488 | for ac_last_try in false false false false false :; do |
7787 | 6489 | . ./conf$$subs.sh || |
7788 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7789 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7790 | { (exit 1); exit 1; }; } | |
6490 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7791 | 6491 | |
7792 | 6492 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
7793 | 6493 | if test $ac_delim_n = $ac_delim_num; then |
7794 | 6494 | break |
7795 | 6495 | elif $ac_last_try; then |
7796 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
7797 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7798 | { (exit 1); exit 1; }; } | |
6496 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7799 | 6497 | else |
7800 | 6498 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
7801 | 6499 | fi |
7803 | 6501 | rm -f conf$$subs.sh |
7804 | 6502 | |
7805 | 6503 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7806 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
6504 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
7807 | 6505 | _ACEOF |
7808 | 6506 | sed -n ' |
7809 | 6507 | h |
7817 | 6515 | t delim |
7818 | 6516 | :nl |
7819 | 6517 | h |
7820 | s/\(.\{148\}\).*/\1/ | |
6518 | s/\(.\{148\}\)..*/\1/ | |
7821 | 6519 | t more1 |
7822 | 6520 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
7823 | 6521 | p |
7831 | 6529 | t nl |
7832 | 6530 | :delim |
7833 | 6531 | h |
7834 | s/\(.\{148\}\).*/\1/ | |
6532 | s/\(.\{148\}\)..*/\1/ | |
7835 | 6533 | t more2 |
7836 | 6534 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
7837 | 6535 | p |
7851 | 6549 | rm -f conf$$subs.awk |
7852 | 6550 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7853 | 6551 | _ACAWK |
7854 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
6552 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
7855 | 6553 | for (key in S) S_is_set[key] = 1 |
7856 | 6554 | FS = "" |
7857 | 6555 | |
7883 | 6581 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
7884 | 6582 | else |
7885 | 6583 | cat |
7886 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
7887 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
7888 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
7889 | { (exit 1); exit 1; }; } | |
7890 | _ACEOF | |
7891 | ||
7892 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
7893 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6584 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
6585 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
6586 | _ACEOF | |
6587 | ||
6588 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
6589 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7894 | 6590 | # trailing colons and then remove the whole line if VPATH becomes empty |
7895 | 6591 | # (actually we leave an empty line to preserve line numbers). |
7896 | 6592 | if test "x$srcdir" = x.; then |
7897 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7898 | s/:*\$(srcdir):*/:/ | |
7899 | s/:*\${srcdir}:*/:/ | |
7900 | s/:*@srcdir@:*/:/ | |
7901 | s/^\([^=]*=[ ]*\):*/\1/ | |
6593 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
6594 | h | |
6595 | s/// | |
6596 | s/^/:/ | |
6597 | s/[ ]*$/:/ | |
6598 | s/:\$(srcdir):/:/g | |
6599 | s/:\${srcdir}:/:/g | |
6600 | s/:@srcdir@:/:/g | |
6601 | s/^:*// | |
7902 | 6602 | s/:*$// |
6603 | x | |
6604 | s/\(=[ ]*\).*/\1/ | |
6605 | G | |
6606 | s/\n// | |
7903 | 6607 | s/^[^=]*=[ ]*$// |
7904 | 6608 | }' |
7905 | 6609 | fi |
7911 | 6615 | # No need to generate them if there are no CONFIG_HEADERS. |
7912 | 6616 | # This happens for instance with `./config.status Makefile'. |
7913 | 6617 | if test -n "$CONFIG_HEADERS"; then |
7914 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
6618 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
7915 | 6619 | BEGIN { |
7916 | 6620 | _ACEOF |
7917 | 6621 | |
7923 | 6627 | # handling of long lines. |
7924 | 6628 | ac_delim='%!_!# ' |
7925 | 6629 | for ac_last_try in false false :; do |
7926 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
7927 | if test -z "$ac_t"; then | |
6630 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
6631 | if test -z "$ac_tt"; then | |
7928 | 6632 | break |
7929 | 6633 | elif $ac_last_try; then |
7930 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
7931 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
7932 | { (exit 1); exit 1; }; } | |
6634 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
7933 | 6635 | else |
7934 | 6636 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
7935 | 6637 | fi |
8014 | 6716 | _ACAWK |
8015 | 6717 | _ACEOF |
8016 | 6718 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8017 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
8018 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
8019 | { (exit 1); exit 1; }; } | |
6719 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
8020 | 6720 | fi # test -n "$CONFIG_HEADERS" |
8021 | 6721 | |
8022 | 6722 | |
8029 | 6729 | esac |
8030 | 6730 | case $ac_mode$ac_tag in |
8031 | 6731 | :[FHL]*:*);; |
8032 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
8033 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
8034 | { (exit 1); exit 1; }; };; | |
6732 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8035 | 6733 | :[FH]-) ac_tag=-:-;; |
8036 | 6734 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
8037 | 6735 | esac |
8050 | 6748 | for ac_f |
8051 | 6749 | do |
8052 | 6750 | case $ac_f in |
8053 | -) ac_f="$tmp/stdin";; | |
6751 | -) ac_f="$ac_tmp/stdin";; | |
8054 | 6752 | *) # Look for the file first in the build tree, then in the source tree |
8055 | 6753 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
8056 | 6754 | # because $ac_f cannot contain `:'. |
8059 | 6757 | [\\/$]*) false;; |
8060 | 6758 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
8061 | 6759 | esac || |
8062 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
8063 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
8064 | { (exit 1); exit 1; }; };; | |
6760 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8065 | 6761 | esac |
8066 | 6762 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
8067 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
6763 | as_fn_append ac_file_inputs " '$ac_f'" | |
8068 | 6764 | done |
8069 | 6765 | |
8070 | 6766 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8075 | 6771 | `' by configure.' |
8076 | 6772 | if test x"$ac_file" != x-; then |
8077 | 6773 | configure_input="$ac_file. $configure_input" |
8078 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8079 | 6775 | $as_echo "$as_me: creating $ac_file" >&6;} |
8080 | 6776 | fi |
8081 | 6777 | # Neutralize special characters interpreted by sed in replacement strings. |
8087 | 6783 | esac |
8088 | 6784 | |
8089 | 6785 | case $ac_tag in |
8090 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
8091 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
8092 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
8093 | { (exit 1); exit 1; }; } ;; | |
6786 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
6787 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8094 | 6788 | esac |
8095 | 6789 | ;; |
8096 | 6790 | esac |
8118 | 6812 | q |
8119 | 6813 | } |
8120 | 6814 | s/.*/./; q'` |
8121 | { as_dir="$ac_dir" | |
8122 | case $as_dir in #( | |
8123 | -*) as_dir=./$as_dir;; | |
8124 | esac | |
8125 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
8126 | as_dirs= | |
8127 | while :; do | |
8128 | case $as_dir in #( | |
8129 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8130 | *) as_qdir=$as_dir;; | |
8131 | esac | |
8132 | as_dirs="'$as_qdir' $as_dirs" | |
8133 | as_dir=`$as_dirname -- "$as_dir" || | |
8134 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8135 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8136 | X"$as_dir" : 'X\(//\)$' \| \ | |
8137 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8138 | $as_echo X"$as_dir" | | |
8139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8140 | s//\1/ | |
8141 | q | |
8142 | } | |
8143 | /^X\(\/\/\)[^/].*/{ | |
8144 | s//\1/ | |
8145 | q | |
8146 | } | |
8147 | /^X\(\/\/\)$/{ | |
8148 | s//\1/ | |
8149 | q | |
8150 | } | |
8151 | /^X\(\/\).*/{ | |
8152 | s//\1/ | |
8153 | q | |
8154 | } | |
8155 | s/.*/./; q'` | |
8156 | test -d "$as_dir" && break | |
8157 | done | |
8158 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8159 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
8160 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
8161 | { (exit 1); exit 1; }; }; } | |
6815 | as_dir="$ac_dir"; as_fn_mkdir_p | |
8162 | 6816 | ac_builddir=. |
8163 | 6817 | |
8164 | 6818 | case "$ac_dir" in |
8215 | 6869 | # If the template does not know about datarootdir, expand it. |
8216 | 6870 | # FIXME: This hack should be removed a few years after 2.60. |
8217 | 6871 | ac_datarootdir_hack=; ac_datarootdir_seen= |
8218 | ||
8219 | 6872 | ac_sed_dataroot=' |
8220 | 6873 | /datarootdir/ { |
8221 | 6874 | p |
8225 | 6878 | /@docdir@/p |
8226 | 6879 | /@infodir@/p |
8227 | 6880 | /@localedir@/p |
8228 | /@mandir@/p | |
8229 | ' | |
6881 | /@mandir@/p' | |
8230 | 6882 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
8231 | 6883 | *datarootdir*) ac_datarootdir_seen=yes;; |
8232 | 6884 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
8233 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8234 | 6886 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
8235 | 6887 | _ACEOF |
8236 | 6888 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8240 | 6892 | s&@infodir@&$infodir&g |
8241 | 6893 | s&@localedir@&$localedir&g |
8242 | 6894 | s&@mandir@&$mandir&g |
8243 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
6895 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8244 | 6896 | esac |
8245 | 6897 | _ACEOF |
8246 | 6898 | |
8268 | 6920 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
8269 | 6921 | $ac_datarootdir_hack |
8270 | 6922 | " |
8271 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
8272 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
8273 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
8274 | { (exit 1); exit 1; }; } | |
6923 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
6924 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8275 | 6925 | |
8276 | 6926 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
8277 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8278 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8279 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8280 | which seems to be undefined. Please make sure it is defined." >&5 | |
6927 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
6928 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
6929 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6931 | which seems to be undefined. Please make sure it is defined" >&5 | |
8281 | 6932 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
8282 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8283 | ||
8284 | rm -f "$tmp/stdin" | |
6933 | which seems to be undefined. Please make sure it is defined" >&2;} | |
6934 | ||
6935 | rm -f "$ac_tmp/stdin" | |
8285 | 6936 | case $ac_file in |
8286 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
8287 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
6937 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
6938 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8288 | 6939 | esac \ |
8289 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
8290 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
8291 | { (exit 1); exit 1; }; } | |
6940 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8292 | 6941 | ;; |
8293 | 6942 | :H) |
8294 | 6943 | # |
8297 | 6946 | if test x"$ac_file" != x-; then |
8298 | 6947 | { |
8299 | 6948 | $as_echo "/* $configure_input */" \ |
8300 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
8301 | } >"$tmp/config.h" \ | |
8302 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
8303 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
8304 | { (exit 1); exit 1; }; } | |
8305 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
8306 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
6949 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
6950 | } >"$ac_tmp/config.h" \ | |
6951 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6952 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8307 | 6954 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
8308 | 6955 | else |
8309 | 6956 | rm -f "$ac_file" |
8310 | mv "$tmp/config.h" "$ac_file" \ | |
8311 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
8312 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
8313 | { (exit 1); exit 1; }; } | |
6957 | mv "$ac_tmp/config.h" "$ac_file" \ | |
6958 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8314 | 6959 | fi |
8315 | 6960 | else |
8316 | 6961 | $as_echo "/* $configure_input */" \ |
8317 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
8318 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
8319 | $as_echo "$as_me: error: could not create -" >&2;} | |
8320 | { (exit 1); exit 1; }; } | |
6962 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
6963 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8321 | 6964 | fi |
8322 | 6965 | # Compute "$ac_file"'s index in $config_headers. |
8323 | 6966 | _am_arg="$ac_file" |
8355 | 6998 | s/.*/./; q'`/stamp-h$_am_stamp_count |
8356 | 6999 | ;; |
8357 | 7000 | |
8358 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
7001 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
8359 | 7002 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
8360 | 7003 | ;; |
8361 | 7004 | esac |
8363 | 7006 | |
8364 | 7007 | case $ac_file$ac_mode in |
8365 | 7008 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
8366 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
7009 | # Older Autoconf quotes --file arguments for eval, but not when files | |
8367 | 7010 | # are listed without --file. Let's play safe and only enable the eval |
8368 | 7011 | # if we detect the quoting. |
8369 | 7012 | case $CONFIG_FILES in |
8376 | 7019 | # Strip MF so we end up with the name of the file. |
8377 | 7020 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
8378 | 7021 | # Check whether this is an Automake generated Makefile or not. |
8379 | # We used to match only the files named `Makefile.in', but | |
7022 | # We used to match only the files named 'Makefile.in', but | |
8380 | 7023 | # some people rename them; so instead we look at the file content. |
8381 | 7024 | # Grep'ing the first line is not enough: some people post-process |
8382 | 7025 | # each Makefile.in and add a new line on top of each file to say so. |
8410 | 7053 | continue |
8411 | 7054 | fi |
8412 | 7055 | # Extract the definition of DEPDIR, am__include, and am__quote |
8413 | # from the Makefile without running `make'. | |
7056 | # from the Makefile without running 'make'. | |
8414 | 7057 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
8415 | 7058 | test -z "$DEPDIR" && continue |
8416 | 7059 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
8417 | test -z "am__include" && continue | |
7060 | test -z "$am__include" && continue | |
8418 | 7061 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8419 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8420 | U=`sed -n 's/^U = //p' < "$mf"` | |
8421 | 7062 | # Find all dependency output files, they are included files with |
8422 | 7063 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
8423 | 7064 | # simplest approach to changing $(DEPDIR) to its actual value in the |
8424 | 7065 | # expansion. |
8425 | 7066 | for file in `sed -n " |
8426 | 7067 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
8427 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
7068 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
8428 | 7069 | # Make sure the directory exists. |
8429 | 7070 | test -f "$dirpart/$file" && continue |
8430 | 7071 | fdir=`$as_dirname -- "$file" || |
8450 | 7091 | q |
8451 | 7092 | } |
8452 | 7093 | s/.*/./; q'` |
8453 | { as_dir=$dirpart/$fdir | |
8454 | case $as_dir in #( | |
8455 | -*) as_dir=./$as_dir;; | |
8456 | esac | |
8457 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
8458 | as_dirs= | |
8459 | while :; do | |
8460 | case $as_dir in #( | |
8461 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8462 | *) as_qdir=$as_dir;; | |
8463 | esac | |
8464 | as_dirs="'$as_qdir' $as_dirs" | |
8465 | as_dir=`$as_dirname -- "$as_dir" || | |
8466 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8467 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8468 | X"$as_dir" : 'X\(//\)$' \| \ | |
8469 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8470 | $as_echo X"$as_dir" | | |
8471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8472 | s//\1/ | |
8473 | q | |
8474 | } | |
8475 | /^X\(\/\/\)[^/].*/{ | |
8476 | s//\1/ | |
8477 | q | |
8478 | } | |
8479 | /^X\(\/\/\)$/{ | |
8480 | s//\1/ | |
8481 | q | |
8482 | } | |
8483 | /^X\(\/\).*/{ | |
8484 | s//\1/ | |
8485 | q | |
8486 | } | |
8487 | s/.*/./; q'` | |
8488 | test -d "$as_dir" && break | |
8489 | done | |
8490 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
8491 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
8492 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
8493 | { (exit 1); exit 1; }; }; } | |
7094 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8494 | 7095 | # echo "creating $dirpart/$file" |
8495 | 7096 | echo '# dummy' > "$dirpart/$file" |
8496 | 7097 | done |
8502 | 7103 | done # for ac_tag |
8503 | 7104 | |
8504 | 7105 | |
8505 | { (exit 0); exit 0; } | |
8506 | _ACEOF | |
8507 | chmod +x $CONFIG_STATUS | |
7106 | as_fn_exit 0 | |
7107 | _ACEOF | |
8508 | 7108 | ac_clean_files=$ac_clean_files_save |
8509 | 7109 | |
8510 | 7110 | test $ac_write_fail = 0 || |
8511 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
8512 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
8513 | { (exit 1); exit 1; }; } | |
7111 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8514 | 7112 | |
8515 | 7113 | |
8516 | 7114 | # configure is writing to config.log, and then calls config.status. |
8531 | 7129 | exec 5>>config.log |
8532 | 7130 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
8533 | 7131 | # would make configure fail if this is the last instruction. |
8534 | $ac_cs_success || { (exit 1); exit 1; } | |
7132 | $ac_cs_success || as_fn_exit 1 | |
8535 | 7133 | fi |
8536 | 7134 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
8537 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8538 | 7136 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
8539 | 7137 | fi |
8540 | 7138 |
0 | 0 | # Process this file with autoconf to produce a configure script. |
1 | AC_INIT(h5utils, 1.12.1, stevenj@alum.mit.edu) | |
2 | AM_INIT_AUTOMAKE(1.6) | |
1 | AC_INIT(h5utils, 1.13, stevenj@alum.mit.edu) | |
2 | AM_INIT_AUTOMAKE([foreign silent-rules 1.6]) | |
3 | AM_SILENT_RULES(yes) | |
3 | 4 | AC_CONFIG_SRCDIR([h5topng.c]) |
4 | 5 | AM_CONFIG_HEADER(config.h) |
5 | 6 | AM_MAINTAINER_MODE |
27 | 28 | dnl add gcc warnings, in debug/maintainer mode only |
28 | 29 | if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then |
29 | 30 | if test $ac_cv_prog_gcc = yes; then |
30 | CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations | |
31 | CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations | |
31 | 32 | fi |
32 | 33 | fi |
33 | 34 | |
54 | 55 | |
55 | 56 | if test $H5TOPNG = yes; then |
56 | 57 | MORE_H5UTILS="h5topng\$(EXEEXT) $MORE_H5UTILS" |
57 | H5TOPNG_MAN=h5topng.1 | |
58 | H5TOPNG_MAN=doc/man/h5topng.1 | |
58 | 59 | fi |
59 | 60 | |
60 | 61 | AC_SUBST(H5TOPNG_MAN) |
238 | 239 | AC_SUBST(MORE_H5UTILS_MANS) |
239 | 240 | ########################################################################### |
240 | 241 | |
241 | AC_CONFIG_FILES([Makefile h5topng.1]) | |
242 | AC_CONFIG_FILES([Makefile doc/man/h5topng.1]) | |
242 | 243 | AC_OUTPUT |
3 | 3 | /* License and copyright string for inclusion in program output: */ |
4 | 4 | |
5 | 5 | #define COPYRIGHT \ |
6 | "Copyright (c) 1999-2009 Massachusetts Institute of Technology\n"\ | |
6 | "Copyright (c) 1999-2017 Massachusetts Institute of Technology\n"\ | |
7 | 7 | "\n"\ |
8 | 8 | "Permission is hereby granted, free of charge, to any person obtaining\n"\ |
9 | 9 | "a copy of this software and associated documentation files (the\n"\ |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
4 | ||
5 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free | |
6 | # Software Foundation, Inc. | |
3 | scriptversion=2013-05-30.07; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
7 | 6 | |
8 | 7 | # This program is free software; you can redistribute it and/or modify |
9 | 8 | # it under the terms of the GNU General Public License as published by |
27 | 26 | |
28 | 27 | case $1 in |
29 | 28 | '') |
30 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | |
31 | exit 1; | |
32 | ;; | |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
33 | 32 | -h | --h*) |
34 | 33 | cat <<\EOF |
35 | 34 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
39 | 38 | |
40 | 39 | Environment variables: |
41 | 40 | depmode Dependency tracking mode. |
42 | source Source file read by `PROGRAMS ARGS'. | |
43 | object Object file output by `PROGRAMS ARGS'. | |
41 | source Source file read by 'PROGRAMS ARGS'. | |
42 | object Object file output by 'PROGRAMS ARGS'. | |
44 | 43 | DEPDIR directory where to store dependencies. |
45 | 44 | depfile Dependency file to output. |
46 | tmpdepfile Temporary file to use when outputing dependencies. | |
45 | tmpdepfile Temporary file to use when outputting dependencies. | |
47 | 46 | libtool Whether libtool is used (yes/no). |
48 | 47 | |
49 | 48 | Report bugs to <bug-automake@gnu.org>. |
56 | 55 | ;; |
57 | 56 | esac |
58 | 57 | |
58 | # Get the directory component of the given path, and save it in the | |
59 | # global variables '$dir'. Note that this directory component will | |
60 | # be either empty or ending with a '/' character. This is deliberate. | |
61 | set_dir_from () | |
62 | { | |
63 | case $1 in | |
64 | */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; | |
65 | *) dir=;; | |
66 | esac | |
67 | } | |
68 | ||
69 | # Get the suffix-stripped basename of the given path, and save it the | |
70 | # global variable '$base'. | |
71 | set_base_from () | |
72 | { | |
73 | base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` | |
74 | } | |
75 | ||
76 | # If no dependency file was actually created by the compiler invocation, | |
77 | # we still have to create a dummy depfile, to avoid errors with the | |
78 | # Makefile "include basename.Plo" scheme. | |
79 | make_dummy_depfile () | |
80 | { | |
81 | echo "#dummy" > "$depfile" | |
82 | } | |
83 | ||
84 | # Factor out some common post-processing of the generated depfile. | |
85 | # Requires the auxiliary global variable '$tmpdepfile' to be set. | |
86 | aix_post_process_depfile () | |
87 | { | |
88 | # If the compiler actually managed to produce a dependency file, | |
89 | # post-process it. | |
90 | if test -f "$tmpdepfile"; then | |
91 | # Each line is of the form 'foo.o: dependency.h'. | |
92 | # Do two passes, one to just change these to | |
93 | # $object: dependency.h | |
94 | # and one to simply output | |
95 | # dependency.h: | |
96 | # which is needed to avoid the deleted-header problem. | |
97 | { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" | |
98 | sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" | |
99 | } > "$depfile" | |
100 | rm -f "$tmpdepfile" | |
101 | else | |
102 | make_dummy_depfile | |
103 | fi | |
104 | } | |
105 | ||
106 | # A tabulation character. | |
107 | tab=' ' | |
108 | # A newline character. | |
109 | nl=' | |
110 | ' | |
111 | # Character ranges might be problematic outside the C locale. | |
112 | # These definitions help. | |
113 | upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ | |
114 | lower=abcdefghijklmnopqrstuvwxyz | |
115 | digits=0123456789 | |
116 | alpha=${upper}${lower} | |
117 | ||
59 | 118 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
60 | 119 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
61 | 120 | exit 1 |
67 | 126 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
68 | 127 | |
69 | 128 | rm -f "$tmpdepfile" |
129 | ||
130 | # Avoid interferences from the environment. | |
131 | gccflag= dashmflag= | |
70 | 132 | |
71 | 133 | # Some modes work just like other modes, but use different flags. We |
72 | 134 | # parameterize here, but still list the modes in the big case below, |
79 | 141 | fi |
80 | 142 | |
81 | 143 | if test "$depmode" = dashXmstdout; then |
82 | # This is just like dashmstdout with a different argument. | |
83 | dashmflag=-xM | |
84 | depmode=dashmstdout | |
144 | # This is just like dashmstdout with a different argument. | |
145 | dashmflag=-xM | |
146 | depmode=dashmstdout | |
85 | 147 | fi |
86 | 148 | |
87 | 149 | cygpath_u="cygpath -u -f -" |
88 | 150 | if test "$depmode" = msvcmsys; then |
89 | # This is just like msvisualcpp but w/o cygpath translation. | |
90 | # Just convert the backslash-escaped backslashes to single forward | |
91 | # slashes to satisfy depend.m4 | |
92 | cygpath_u="sed s,\\\\\\\\,/,g" | |
93 | depmode=msvisualcpp | |
151 | # This is just like msvisualcpp but w/o cygpath translation. | |
152 | # Just convert the backslash-escaped backslashes to single forward | |
153 | # slashes to satisfy depend.m4 | |
154 | cygpath_u='sed s,\\\\,/,g' | |
155 | depmode=msvisualcpp | |
156 | fi | |
157 | ||
158 | if test "$depmode" = msvc7msys; then | |
159 | # This is just like msvc7 but w/o cygpath translation. | |
160 | # Just convert the backslash-escaped backslashes to single forward | |
161 | # slashes to satisfy depend.m4 | |
162 | cygpath_u='sed s,\\\\,/,g' | |
163 | depmode=msvc7 | |
164 | fi | |
165 | ||
166 | if test "$depmode" = xlc; then | |
167 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. | |
168 | gccflag=-qmakedep=gcc,-MF | |
169 | depmode=gcc | |
94 | 170 | fi |
95 | 171 | |
96 | 172 | case "$depmode" in |
113 | 189 | done |
114 | 190 | "$@" |
115 | 191 | stat=$? |
116 | if test $stat -eq 0; then : | |
117 | else | |
192 | if test $stat -ne 0; then | |
118 | 193 | rm -f "$tmpdepfile" |
119 | 194 | exit $stat |
120 | 195 | fi |
122 | 197 | ;; |
123 | 198 | |
124 | 199 | gcc) |
200 | ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. | |
201 | ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. | |
202 | ## (see the conditional assignment to $gccflag above). | |
125 | 203 | ## There are various ways to get dependency output from gcc. Here's |
126 | 204 | ## why we pick this rather obscure method: |
127 | 205 | ## - Don't want to use -MD because we'd like the dependencies to end |
128 | 206 | ## up in a subdir. Having to rename by hand is ugly. |
129 | 207 | ## (We might end up doing this anyway to support other compilers.) |
130 | 208 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
131 | ## -MM, not -M (despite what the docs say). | |
209 | ## -MM, not -M (despite what the docs say). Also, it might not be | |
210 | ## supported by the other compilers which use the 'gcc' depmode. | |
132 | 211 | ## - Using -M directly means running the compiler twice (even worse |
133 | 212 | ## than renaming). |
134 | 213 | if test -z "$gccflag"; then |
136 | 215 | fi |
137 | 216 | "$@" -Wp,"$gccflag$tmpdepfile" |
138 | 217 | stat=$? |
139 | if test $stat -eq 0; then : | |
140 | else | |
218 | if test $stat -ne 0; then | |
141 | 219 | rm -f "$tmpdepfile" |
142 | 220 | exit $stat |
143 | 221 | fi |
144 | 222 | rm -f "$depfile" |
145 | 223 | echo "$object : \\" > "$depfile" |
146 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
147 | ## The second -e expression handles DOS-style file names with drive letters. | |
224 | # The second -e expression handles DOS-style file names with drive | |
225 | # letters. | |
148 | 226 | sed -e 's/^[^:]*: / /' \ |
149 | 227 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
150 | ## This next piece of magic avoids the `deleted header file' problem. | |
228 | ## This next piece of magic avoids the "deleted header file" problem. | |
151 | 229 | ## The problem is that when a header file which appears in a .P file |
152 | 230 | ## is deleted, the dependency causes make to die (because there is |
153 | 231 | ## typically no way to rebuild the header). We avoid this by adding |
154 | 232 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
155 | 233 | ## this for us directly. |
156 | tr ' ' ' | |
157 | ' < "$tmpdepfile" | | |
158 | ## Some versions of gcc put a space before the `:'. On the theory | |
234 | ## Some versions of gcc put a space before the ':'. On the theory | |
159 | 235 | ## that the space means something, we add a space to the output as |
160 | ## well. | |
236 | ## well. hp depmode also adds that space, but also prefixes the VPATH | |
237 | ## to the object. Take care to not repeat it in the output. | |
161 | 238 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
162 | 239 | ## correctly. Breaking it into two sed invocations is a workaround. |
163 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
240 | tr ' ' "$nl" < "$tmpdepfile" \ | |
241 | | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
242 | | sed -e 's/$/ :/' >> "$depfile" | |
164 | 243 | rm -f "$tmpdepfile" |
165 | 244 | ;; |
166 | 245 | |
178 | 257 | "$@" -MDupdate "$tmpdepfile" |
179 | 258 | fi |
180 | 259 | stat=$? |
181 | if test $stat -eq 0; then : | |
182 | else | |
260 | if test $stat -ne 0; then | |
183 | 261 | rm -f "$tmpdepfile" |
184 | 262 | exit $stat |
185 | 263 | fi |
187 | 265 | |
188 | 266 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
189 | 267 | echo "$object : \\" > "$depfile" |
190 | ||
191 | 268 | # Clip off the initial element (the dependent). Don't try to be |
192 | 269 | # clever and replace this with sed code, as IRIX sed won't handle |
193 | 270 | # lines with more than a fixed number of characters (4096 in |
194 | 271 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; |
195 | # the IRIX cc adds comments like `#:fec' to the end of the | |
272 | # the IRIX cc adds comments like '#:fec' to the end of the | |
196 | 273 | # dependency line. |
197 | tr ' ' ' | |
198 | ' < "$tmpdepfile" \ | |
199 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
200 | tr ' | |
201 | ' ' ' >> "$depfile" | |
274 | tr ' ' "$nl" < "$tmpdepfile" \ | |
275 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | |
276 | | tr "$nl" ' ' >> "$depfile" | |
202 | 277 | echo >> "$depfile" |
203 | ||
204 | 278 | # The second pass generates a dummy entry for each header file. |
205 | tr ' ' ' | |
206 | ' < "$tmpdepfile" \ | |
207 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
208 | >> "$depfile" | |
279 | tr ' ' "$nl" < "$tmpdepfile" \ | |
280 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
281 | >> "$depfile" | |
209 | 282 | else |
210 | # The sourcefile does not contain any dependencies, so just | |
211 | # store a dummy comment line, to avoid errors with the Makefile | |
212 | # "include basename.Plo" scheme. | |
213 | echo "#dummy" > "$depfile" | |
283 | make_dummy_depfile | |
214 | 284 | fi |
215 | 285 | rm -f "$tmpdepfile" |
286 | ;; | |
287 | ||
288 | xlc) | |
289 | # This case exists only to let depend.m4 do its work. It works by | |
290 | # looking at the text of this script. This case will never be run, | |
291 | # since it is checked for above. | |
292 | exit 1 | |
216 | 293 | ;; |
217 | 294 | |
218 | 295 | aix) |
219 | 296 | # The C for AIX Compiler uses -M and outputs the dependencies |
220 | 297 | # in a .u file. In older versions, this file always lives in the |
221 | # current directory. Also, the AIX compiler puts `$object:' at the | |
298 | # current directory. Also, the AIX compiler puts '$object:' at the | |
222 | 299 | # start of each line; $object doesn't have directory information. |
223 | 300 | # Version 6 uses the directory in both cases. |
224 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
225 | test "x$dir" = "x$object" && dir= | |
226 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
301 | set_dir_from "$object" | |
302 | set_base_from "$object" | |
227 | 303 | if test "$libtool" = yes; then |
228 | 304 | tmpdepfile1=$dir$base.u |
229 | 305 | tmpdepfile2=$base.u |
236 | 312 | "$@" -M |
237 | 313 | fi |
238 | 314 | stat=$? |
239 | ||
240 | if test $stat -eq 0; then : | |
241 | else | |
315 | if test $stat -ne 0; then | |
242 | 316 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
243 | 317 | exit $stat |
244 | 318 | fi |
247 | 321 | do |
248 | 322 | test -f "$tmpdepfile" && break |
249 | 323 | done |
250 | if test -f "$tmpdepfile"; then | |
251 | # Each line is of the form `foo.o: dependent.h'. | |
252 | # Do two passes, one to just change these to | |
253 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
254 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
255 | # That's a tab and a space in the []. | |
256 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
257 | else | |
258 | # The sourcefile does not contain any dependencies, so just | |
259 | # store a dummy comment line, to avoid errors with the Makefile | |
260 | # "include basename.Plo" scheme. | |
261 | echo "#dummy" > "$depfile" | |
262 | fi | |
324 | aix_post_process_depfile | |
325 | ;; | |
326 | ||
327 | tcc) | |
328 | # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 | |
329 | # FIXME: That version still under development at the moment of writing. | |
330 | # Make that this statement remains true also for stable, released | |
331 | # versions. | |
332 | # It will wrap lines (doesn't matter whether long or short) with a | |
333 | # trailing '\', as in: | |
334 | # | |
335 | # foo.o : \ | |
336 | # foo.c \ | |
337 | # foo.h \ | |
338 | # | |
339 | # It will put a trailing '\' even on the last line, and will use leading | |
340 | # spaces rather than leading tabs (at least since its commit 0394caf7 | |
341 | # "Emit spaces for -MD"). | |
342 | "$@" -MD -MF "$tmpdepfile" | |
343 | stat=$? | |
344 | if test $stat -ne 0; then | |
345 | rm -f "$tmpdepfile" | |
346 | exit $stat | |
347 | fi | |
348 | rm -f "$depfile" | |
349 | # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. | |
350 | # We have to change lines of the first kind to '$object: \'. | |
351 | sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" | |
352 | # And for each line of the second kind, we have to emit a 'dep.h:' | |
353 | # dummy dependency, to avoid the deleted-header problem. | |
354 | sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" | |
263 | 355 | rm -f "$tmpdepfile" |
264 | 356 | ;; |
265 | 357 | |
266 | icc) | |
267 | # Intel's C compiler understands `-MD -MF file'. However on | |
268 | # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
269 | # ICC 7.0 will fill foo.d with something like | |
270 | # foo.o: sub/foo.c | |
271 | # foo.o: sub/foo.h | |
272 | # which is wrong. We want: | |
273 | # sub/foo.o: sub/foo.c | |
274 | # sub/foo.o: sub/foo.h | |
275 | # sub/foo.c: | |
276 | # sub/foo.h: | |
277 | # ICC 7.1 will output | |
358 | ## The order of this option in the case statement is important, since the | |
359 | ## shell code in configure will try each of these formats in the order | |
360 | ## listed in this file. A plain '-MD' option would be understood by many | |
361 | ## compilers, so we must ensure this comes after the gcc and icc options. | |
362 | pgcc) | |
363 | # Portland's C compiler understands '-MD'. | |
364 | # Will always output deps to 'file.d' where file is the root name of the | |
365 | # source file under compilation, even if file resides in a subdirectory. | |
366 | # The object file name does not affect the name of the '.d' file. | |
367 | # pgcc 10.2 will output | |
278 | 368 | # foo.o: sub/foo.c sub/foo.h |
279 | # and will wrap long lines using \ : | |
369 | # and will wrap long lines using '\' : | |
280 | 370 | # foo.o: sub/foo.c ... \ |
281 | 371 | # sub/foo.h ... \ |
282 | 372 | # ... |
283 | ||
284 | "$@" -MD -MF "$tmpdepfile" | |
285 | stat=$? | |
286 | if test $stat -eq 0; then : | |
287 | else | |
373 | set_dir_from "$object" | |
374 | # Use the source, not the object, to determine the base name, since | |
375 | # that's sadly what pgcc will do too. | |
376 | set_base_from "$source" | |
377 | tmpdepfile=$base.d | |
378 | ||
379 | # For projects that build the same source file twice into different object | |
380 | # files, the pgcc approach of using the *source* file root name can cause | |
381 | # problems in parallel builds. Use a locking strategy to avoid stomping on | |
382 | # the same $tmpdepfile. | |
383 | lockdir=$base.d-lock | |
384 | trap " | |
385 | echo '$0: caught signal, cleaning up...' >&2 | |
386 | rmdir '$lockdir' | |
387 | exit 1 | |
388 | " 1 2 13 15 | |
389 | numtries=100 | |
390 | i=$numtries | |
391 | while test $i -gt 0; do | |
392 | # mkdir is a portable test-and-set. | |
393 | if mkdir "$lockdir" 2>/dev/null; then | |
394 | # This process acquired the lock. | |
395 | "$@" -MD | |
396 | stat=$? | |
397 | # Release the lock. | |
398 | rmdir "$lockdir" | |
399 | break | |
400 | else | |
401 | # If the lock is being held by a different process, wait | |
402 | # until the winning process is done or we timeout. | |
403 | while test -d "$lockdir" && test $i -gt 0; do | |
404 | sleep 1 | |
405 | i=`expr $i - 1` | |
406 | done | |
407 | fi | |
408 | i=`expr $i - 1` | |
409 | done | |
410 | trap - 1 2 13 15 | |
411 | if test $i -le 0; then | |
412 | echo "$0: failed to acquire lock after $numtries attempts" >&2 | |
413 | echo "$0: check lockdir '$lockdir'" >&2 | |
414 | exit 1 | |
415 | fi | |
416 | ||
417 | if test $stat -ne 0; then | |
288 | 418 | rm -f "$tmpdepfile" |
289 | 419 | exit $stat |
290 | 420 | fi |
296 | 426 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" |
297 | 427 | # Some versions of the HPUX 10.20 sed can't process this invocation |
298 | 428 | # correctly. Breaking it into two sed invocations is a workaround. |
299 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | |
300 | sed -e 's/$/ :/' >> "$depfile" | |
429 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | |
430 | | sed -e 's/$/ :/' >> "$depfile" | |
301 | 431 | rm -f "$tmpdepfile" |
302 | 432 | ;; |
303 | 433 | |
308 | 438 | # 'foo.d', which lands next to the object file, wherever that |
309 | 439 | # happens to be. |
310 | 440 | # Much of this is similar to the tru64 case; see comments there. |
311 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
312 | test "x$dir" = "x$object" && dir= | |
313 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
441 | set_dir_from "$object" | |
442 | set_base_from "$object" | |
314 | 443 | if test "$libtool" = yes; then |
315 | 444 | tmpdepfile1=$dir$base.d |
316 | 445 | tmpdepfile2=$dir.libs/$base.d |
321 | 450 | "$@" +Maked |
322 | 451 | fi |
323 | 452 | stat=$? |
324 | if test $stat -eq 0; then : | |
325 | else | |
453 | if test $stat -ne 0; then | |
326 | 454 | rm -f "$tmpdepfile1" "$tmpdepfile2" |
327 | 455 | exit $stat |
328 | 456 | fi |
332 | 460 | test -f "$tmpdepfile" && break |
333 | 461 | done |
334 | 462 | if test -f "$tmpdepfile"; then |
335 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
336 | # Add `dependent.h:' lines. | |
463 | sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | |
464 | # Add 'dependent.h:' lines. | |
337 | 465 | sed -ne '2,${ |
338 | s/^ *// | |
339 | s/ \\*$// | |
340 | s/$/:/ | |
341 | p | |
342 | }' "$tmpdepfile" >> "$depfile" | |
466 | s/^ *// | |
467 | s/ \\*$// | |
468 | s/$/:/ | |
469 | p | |
470 | }' "$tmpdepfile" >> "$depfile" | |
343 | 471 | else |
344 | echo "#dummy" > "$depfile" | |
472 | make_dummy_depfile | |
345 | 473 | fi |
346 | 474 | rm -f "$tmpdepfile" "$tmpdepfile2" |
347 | 475 | ;; |
348 | 476 | |
349 | 477 | tru64) |
350 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
351 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | |
352 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
353 | # dependencies in `foo.d' instead, so we check for that too. | |
354 | # Subdirectories are respected. | |
355 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
356 | test "x$dir" = "x$object" && dir= | |
357 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
358 | ||
359 | if test "$libtool" = yes; then | |
360 | # With Tru64 cc, shared objects can also be used to make a | |
361 | # static library. This mechanism is used in libtool 1.4 series to | |
362 | # handle both shared and static libraries in a single compilation. | |
363 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
364 | # | |
365 | # With libtool 1.5 this exception was removed, and libtool now | |
366 | # generates 2 separate objects for the 2 libraries. These two | |
367 | # compilations output dependencies in $dir.libs/$base.o.d and | |
368 | # in $dir$base.o.d. We have to check for both files, because | |
369 | # one of the two compilations can be disabled. We should prefer | |
370 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
371 | # automatically cleaned when .libs/ is deleted, while ignoring | |
372 | # the former would cause a distcleancheck panic. | |
373 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
374 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
375 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
376 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
377 | "$@" -Wc,-MD | |
378 | else | |
379 | tmpdepfile1=$dir$base.o.d | |
380 | tmpdepfile2=$dir$base.d | |
381 | tmpdepfile3=$dir$base.d | |
382 | tmpdepfile4=$dir$base.d | |
383 | "$@" -MD | |
384 | fi | |
385 | ||
386 | stat=$? | |
387 | if test $stat -eq 0; then : | |
388 | else | |
389 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
390 | exit $stat | |
391 | fi | |
392 | ||
393 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
394 | do | |
395 | test -f "$tmpdepfile" && break | |
396 | done | |
397 | if test -f "$tmpdepfile"; then | |
398 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
399 | # That's a tab and a space in the []. | |
400 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
401 | else | |
402 | echo "#dummy" > "$depfile" | |
403 | fi | |
404 | rm -f "$tmpdepfile" | |
405 | ;; | |
478 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
479 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
480 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
481 | # dependencies in 'foo.d' instead, so we check for that too. | |
482 | # Subdirectories are respected. | |
483 | set_dir_from "$object" | |
484 | set_base_from "$object" | |
485 | ||
486 | if test "$libtool" = yes; then | |
487 | # Libtool generates 2 separate objects for the 2 libraries. These | |
488 | # two compilations output dependencies in $dir.libs/$base.o.d and | |
489 | # in $dir$base.o.d. We have to check for both files, because | |
490 | # one of the two compilations can be disabled. We should prefer | |
491 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
492 | # automatically cleaned when .libs/ is deleted, while ignoring | |
493 | # the former would cause a distcleancheck panic. | |
494 | tmpdepfile1=$dir$base.o.d # libtool 1.5 | |
495 | tmpdepfile2=$dir.libs/$base.o.d # Likewise. | |
496 | tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
497 | "$@" -Wc,-MD | |
498 | else | |
499 | tmpdepfile1=$dir$base.d | |
500 | tmpdepfile2=$dir$base.d | |
501 | tmpdepfile3=$dir$base.d | |
502 | "$@" -MD | |
503 | fi | |
504 | ||
505 | stat=$? | |
506 | if test $stat -ne 0; then | |
507 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
508 | exit $stat | |
509 | fi | |
510 | ||
511 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
512 | do | |
513 | test -f "$tmpdepfile" && break | |
514 | done | |
515 | # Same post-processing that is required for AIX mode. | |
516 | aix_post_process_depfile | |
517 | ;; | |
518 | ||
519 | msvc7) | |
520 | if test "$libtool" = yes; then | |
521 | showIncludes=-Wc,-showIncludes | |
522 | else | |
523 | showIncludes=-showIncludes | |
524 | fi | |
525 | "$@" $showIncludes > "$tmpdepfile" | |
526 | stat=$? | |
527 | grep -v '^Note: including file: ' "$tmpdepfile" | |
528 | if test $stat -ne 0; then | |
529 | rm -f "$tmpdepfile" | |
530 | exit $stat | |
531 | fi | |
532 | rm -f "$depfile" | |
533 | echo "$object : \\" > "$depfile" | |
534 | # The first sed program below extracts the file names and escapes | |
535 | # backslashes for cygpath. The second sed program outputs the file | |
536 | # name when reading, but also accumulates all include files in the | |
537 | # hold buffer in order to output them again at the end. This only | |
538 | # works with sed implementations that can handle large buffers. | |
539 | sed < "$tmpdepfile" -n ' | |
540 | /^Note: including file: *\(.*\)/ { | |
541 | s//\1/ | |
542 | s/\\/\\\\/g | |
543 | p | |
544 | }' | $cygpath_u | sort -u | sed -n ' | |
545 | s/ /\\ /g | |
546 | s/\(.*\)/'"$tab"'\1 \\/p | |
547 | s/.\(.*\) \\/\1:/ | |
548 | H | |
549 | $ { | |
550 | s/.*/'"$tab"'/ | |
551 | G | |
552 | p | |
553 | }' >> "$depfile" | |
554 | echo >> "$depfile" # make sure the fragment doesn't end with a backslash | |
555 | rm -f "$tmpdepfile" | |
556 | ;; | |
557 | ||
558 | msvc7msys) | |
559 | # This case exists only to let depend.m4 do its work. It works by | |
560 | # looking at the text of this script. This case will never be run, | |
561 | # since it is checked for above. | |
562 | exit 1 | |
563 | ;; | |
406 | 564 | |
407 | 565 | #nosideeffect) |
408 | 566 | # This comment above is used by automake to tell side-effect |
421 | 579 | shift |
422 | 580 | fi |
423 | 581 | |
424 | # Remove `-o $object'. | |
582 | # Remove '-o $object'. | |
425 | 583 | IFS=" " |
426 | 584 | for arg |
427 | 585 | do |
441 | 599 | done |
442 | 600 | |
443 | 601 | test -z "$dashmflag" && dashmflag=-M |
444 | # Require at least two characters before searching for `:' | |
602 | # Require at least two characters before searching for ':' | |
445 | 603 | # in the target name. This is to cope with DOS-style filenames: |
446 | # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | |
604 | # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. | |
447 | 605 | "$@" $dashmflag | |
448 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | |
606 | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | |
449 | 607 | rm -f "$depfile" |
450 | 608 | cat < "$tmpdepfile" > "$depfile" |
451 | tr ' ' ' | |
452 | ' < "$tmpdepfile" | \ | |
453 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
454 | ## correctly. Breaking it into two sed invocations is a workaround. | |
455 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
609 | # Some versions of the HPUX 10.20 sed can't process this sed invocation | |
610 | # correctly. Breaking it into two sed invocations is a workaround. | |
611 | tr ' ' "$nl" < "$tmpdepfile" \ | |
612 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
613 | | sed -e 's/$/ :/' >> "$depfile" | |
456 | 614 | rm -f "$tmpdepfile" |
457 | 615 | ;; |
458 | 616 | |
502 | 660 | touch "$tmpdepfile" |
503 | 661 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" |
504 | 662 | rm -f "$depfile" |
505 | cat < "$tmpdepfile" > "$depfile" | |
506 | sed '1,2d' "$tmpdepfile" | tr ' ' ' | |
507 | ' | \ | |
508 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
509 | ## correctly. Breaking it into two sed invocations is a workaround. | |
510 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
663 | # makedepend may prepend the VPATH from the source file name to the object. | |
664 | # No need to regex-escape $object, excess matching of '.' is harmless. | |
665 | sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" | |
666 | # Some versions of the HPUX 10.20 sed can't process the last invocation | |
667 | # correctly. Breaking it into two sed invocations is a workaround. | |
668 | sed '1,2d' "$tmpdepfile" \ | |
669 | | tr ' ' "$nl" \ | |
670 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
671 | | sed -e 's/$/ :/' >> "$depfile" | |
511 | 672 | rm -f "$tmpdepfile" "$tmpdepfile".bak |
512 | 673 | ;; |
513 | 674 | |
524 | 685 | shift |
525 | 686 | fi |
526 | 687 | |
527 | # Remove `-o $object'. | |
688 | # Remove '-o $object'. | |
528 | 689 | IFS=" " |
529 | 690 | for arg |
530 | 691 | do |
543 | 704 | esac |
544 | 705 | done |
545 | 706 | |
546 | "$@" -E | | |
547 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
548 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
549 | sed '$ s: \\$::' > "$tmpdepfile" | |
707 | "$@" -E \ | |
708 | | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
709 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
710 | | sed '$ s: \\$::' > "$tmpdepfile" | |
550 | 711 | rm -f "$depfile" |
551 | 712 | echo "$object : \\" > "$depfile" |
552 | 713 | cat < "$tmpdepfile" >> "$depfile" |
578 | 739 | shift |
579 | 740 | ;; |
580 | 741 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
581 | set fnord "$@" | |
582 | shift | |
583 | shift | |
584 | ;; | |
742 | set fnord "$@" | |
743 | shift | |
744 | shift | |
745 | ;; | |
585 | 746 | *) |
586 | set fnord "$@" "$arg" | |
587 | shift | |
588 | shift | |
589 | ;; | |
747 | set fnord "$@" "$arg" | |
748 | shift | |
749 | shift | |
750 | ;; | |
590 | 751 | esac |
591 | 752 | done |
592 | 753 | "$@" -E 2>/dev/null | |
593 | 754 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" |
594 | 755 | rm -f "$depfile" |
595 | 756 | echo "$object : \\" > "$depfile" |
596 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" | |
597 | echo " " >> "$depfile" | |
757 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" | |
758 | echo "$tab" >> "$depfile" | |
598 | 759 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" |
599 | 760 | rm -f "$tmpdepfile" |
600 | 761 | ;; |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5FROMH4 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5fromh4 \- convert HDF4 scientific datasets to an HDF5 file | |
24 | .SH SYNOPSIS | |
25 | .B h5fromh4 | |
26 | [\fIOPTION\fR]... [\fIHDF4FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5fromh4 takes one or more files in HDF4 format and outputs files in | |
31 | HDF5 format containing the datasets from the HDF4 files. (Currently, | |
32 | only a single dataset per HDF4 file is converted.) | |
33 | ||
34 | HDF4 and HDF5 are free, portable binary formats and supporting libraries | |
35 | developed by the National Center for Supercomputing Applications at | |
36 | the University of Illinois in Urbana-Champaign. | |
37 | ||
38 | A single | |
39 | .I h5 | |
40 | file can contain multiple data sets; by default, | |
41 | .I h5fromh4 | |
42 | creates a dataset called "data", but this can be changed via the | |
43 | .B -d | |
44 | option, or by using the syntax \fIHDF5FILE:DATASET\fR with the | |
45 | .B -o | |
46 | option. The | |
47 | .B -a | |
48 | option can be used to append new datasets to an existing HDF5 file. | |
49 | If the | |
50 | .B -o | |
51 | option is used and multiple HDF4 files are specified, all the HDF4 | |
52 | datasets are output into that HDF5 file with the input filenames | |
53 | (minus the ".hdf" suffix) used as the dataset names. | |
54 | ||
55 | The most basic usage is something like \'h5fromh4 foo.hdf\', which | |
56 | will output a file foo.h5 containing the scientific dataset from | |
57 | foo.hdf. | |
58 | .SH OPTIONS | |
59 | .TP | |
60 | .B -h | |
61 | Display help on the command-line options and usage. | |
62 | .TP | |
63 | .B -V | |
64 | Print the version number and copyright info for h5fromh4. | |
65 | .TP | |
66 | .B -v | |
67 | Verbose output. | |
68 | .TP | |
69 | .B -a | |
70 | If the HDF5 output file already exists, append the data as a new | |
71 | dataset rather than overwriting the file (the default behavior). An | |
72 | existing dataset of the same name within the file is overwritten, | |
73 | however. | |
74 | .TP | |
75 | \fB\-o\fR \fIfile\fR | |
76 | Send HDF5 output to | |
77 | .I file | |
78 | rather than to the input filename with .hdf replaced with .h5 (the | |
79 | default). If multiple input files were specified, this causes all | |
80 | input datasets to be stored in | |
81 | .I file | |
82 | (rather than in separate files), with the input filenames (minus the .hdf | |
83 | suffix) as the dataset names. | |
84 | .TP | |
85 | \fB\-d\fR \fIname\fR | |
86 | Write to dataset | |
87 | .I name | |
88 | in the output; otherwise, the output dataset is called "data" by default. | |
89 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR with the | |
90 | .B -o | |
91 | option. | |
92 | .SH BUGS | |
93 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
94 | .SH AUTHORS | |
95 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
96 | Institute of Technology. |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5FROMTXT 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5fromtxt \- convert text input to an HDF5 file | |
24 | .SH SYNOPSIS | |
25 | .B h5fromtxt | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR] | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5fromtxt takes a series of numbers from standard input and outputs a | |
31 | multi-dimensional numeric dataset in an HDF5 file. | |
32 | ||
33 | HDF5 is a free, portable binary format and supporting library developed | |
34 | by the National Center for Supercomputing Applications at the University | |
35 | of Illinois in Urbana-Champaign. A single | |
36 | .I h5 | |
37 | file can contain multiple data sets; by default, | |
38 | .I h5fromtxt | |
39 | creates a dataset called "data", but this can be changed via the | |
40 | .B -d | |
41 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. The | |
42 | .B -a | |
43 | option can be used to append new datasets to an existing HDF5 file. | |
44 | ||
45 | All characters besides the numbers (and associated decimal points, | |
46 | etcetera) in the input are ignored. By default, the data is assumed | |
47 | to be a two-dimensional MxN dataset where M is the number of rows | |
48 | (delimited by newlines) and N is the number of columns. In this case, | |
49 | it is an error for the number of columns to vary between rows. If M | |
50 | or N is 1 then the data is written as a one-dimensional dataset. | |
51 | ||
52 | Alternatively, you can specify the dimensions of the data explicitly | |
53 | via the | |
54 | .B -n | |
55 | .I size | |
56 | option, where | |
57 | .I size | |
58 | is e.g. "2x2x2". In this case, newlines are ignored and the data is | |
59 | taken as an array of the given size stored in row-major ("C") order | |
60 | (where the last index varies most quickly as you step through the | |
61 | data). e.g. a 2x2x2 array would be have the elements listed in the | |
62 | order: (0,0,0), (0,0,1), (0,1,0), (0,1,1), (1,0,0), (1,0,1), (1,1,0), | |
63 | (1,1,1). | |
64 | ||
65 | A simple example is: | |
66 | .IP "" 4 | |
67 | h5fromtxt foo.h5 <<EOF | |
68 | .br | |
69 | 1 2 3 4 | |
70 | .br | |
71 | 5 6 7 8 | |
72 | .br | |
73 | EOF | |
74 | .PP | |
75 | which reads in a 2x4 space-delimited array from standard input. | |
76 | .SH OPTIONS | |
77 | .TP | |
78 | .B -h | |
79 | Display help on the command-line options and usage. | |
80 | .TP | |
81 | .B -V | |
82 | Print the version number and copyright info for h5fromtxt. | |
83 | .TP | |
84 | .B -v | |
85 | Verbose output. | |
86 | .TP | |
87 | .B -a | |
88 | If the HDF5 output file already exists, append the data as a new | |
89 | dataset rather than overwriting the file (the default behavior). An | |
90 | existing dataset of the same name within the file is overwritten, | |
91 | however. | |
92 | .TP | |
93 | \fB\-n\fR \fIsize\fR | |
94 | Instead of trying to infer the dimensions of the array from the rows | |
95 | and columns of the input, treat the data as a sequence of numbers in | |
96 | row-major order forming an array of dimensions \fIsize\fR. \fIsize\fR | |
97 | is of the form MxNxLx... (with M, N, L being numbers) and may be of | |
98 | any dimensionality. | |
99 | .TP | |
100 | .B -T | |
101 | Transpose the input when it is written, reversing the dimensions. | |
102 | .TP | |
103 | \fB\-d\fR \fIname\fR | |
104 | Write to dataset | |
105 | .I name | |
106 | in the output; otherwise, the output dataset is called "data" by default. | |
107 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR. | |
108 | .SH BUGS | |
109 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
110 | .SH AUTHORS | |
111 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
112 | Institute of Technology. |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5MATH 1 "May 23, 2005" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5math \- combine/create HDF5 files with math expressions | |
24 | .SH SYNOPSIS | |
25 | .B h5math | |
26 | [\fIOPTION\fR]... \fIOUTPUT-HDF5FILE\fR [\fIINPUT-HDF5FILES\fR...] | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5math takes any number of HDF5 files as input, along with a mathematical | |
31 | expression, and combines them to produce a new HDF5 file. | |
32 | ||
33 | HDF5 is a free, portable binary format and supporting library developed | |
34 | by the National Center for Supercomputing Applications at the University | |
35 | of Illinois in Urbana-Champaign. A single | |
36 | .I h5 | |
37 | file can contain multiple data sets; by default, | |
38 | .I h5math | |
39 | creates a dataset called "h5math", but this can be changed via the | |
40 | .B -d | |
41 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. The | |
42 | .B -a | |
43 | option can be used to append new datasets to an existing HDF5 file. | |
44 | The same syntax is used to specify the dataset used in the input | |
45 | file(s); by default, the first dataset (alphabetically) is used. | |
46 | ||
47 | A simple example of h5math's usage is: | |
48 | .IP "" 4 | |
49 | h5math -e "d1 + 2*d2" out.h5 foo.h5 bar.h5:blah | |
50 | .PP | |
51 | which produces a new file, out.h5, by adding the first dataset in | |
52 | foo.h5 with twice the "blah" dataset in bar.h5. In the expression | |
53 | (specified by \fB-e\fR), the first input dataset (from left to right) | |
54 | is referred to as \fId1\fR, the second as \fId2\fR, and so on. | |
55 | ||
56 | In addition to input datasets, you can also use the x/y/z coordinates | |
57 | of each point in the expression, referenced by "x" "y" and "z" | |
58 | variables (for the first three dimensions) as well as a "t" variable | |
59 | that refers to the last dimension. By default, these are integers starting at 0 at the corner of the dataset, but the | |
60 | .B -0 | |
61 | option will change the x/y/z origin to the center of the dataset (t is | |
62 | unaffected), and the | |
63 | .B -r | |
64 | .I res | |
65 | option will specify the "resolution", dividing the x/y/z coordinates | |
66 | by \fIres\fR. | |
67 | ||
68 | All of the input datasets must have the same dimensions, which are | |
69 | also the dimensions of the output. If there are no input files, and | |
70 | you are defining the output purely by a mathematical formula, you can | |
71 | specify the dimensions of the output explicitly via the | |
72 | .B -n | |
73 | .I size | |
74 | option, where | |
75 | .I size | |
76 | is e.g. "2x2x2". | |
77 | ||
78 | Sometimes, however, you want to use only a smaller-dimensional "slice" | |
79 | of multi-dimensional data. To do this, you specify coordinates in one | |
80 | (or more) slice dimension(s), via the | |
81 | .B -xyzt | |
82 | options. | |
83 | .SH OPTIONS | |
84 | .TP | |
85 | .B -h | |
86 | Display help on the command-line options and usage. | |
87 | .TP | |
88 | .B -V | |
89 | Print the version number and copyright info for h5math. | |
90 | .TP | |
91 | .B -v | |
92 | Verbose output. | |
93 | .TP | |
94 | .B -a | |
95 | If the HDF5 output file already exists, append the data as a new | |
96 | dataset rather than overwriting the file (the default behavior). An | |
97 | existing dataset of the same name within the file is overwritten, | |
98 | however. | |
99 | .TP | |
100 | \fB\-e\fR \fIexpression\fR | |
101 | Specify the mathematical expression that is used to construct the | |
102 | output (generally in " quotes to group the expression as one item in | |
103 | the shell), in terms of the variables for the input datasets and | |
104 | the coordinates as described above. | |
105 | ||
106 | Expressions use a C-like infix notation, with most standard operators | |
107 | and mathematical functions (+, sin, etc.) being supported. This | |
108 | functionality is provided (and its features determined) by GNU libmatheval. | |
109 | .TP | |
110 | \fB\-f\fR \fIfilename\fR | |
111 | Name of a text file to read the expression from, if no | |
112 | .B -e | |
113 | expression is specified. Defaults to stdin. | |
114 | .TP | |
115 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
116 | This tells | |
117 | .I h5math | |
118 | to use a particular slice of a multi-dimensional dataset. e.g. | |
119 | .B -x | |
120 | uses the subset (with one less dimension) at an x index of | |
121 | .I ix | |
122 | (where the indices run from zero to one less than the maximum index in | |
123 | that direction). Here, x/y/z correspond to the first/second/third | |
124 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
125 | in the last dimension, whichever that might be. See also the | |
126 | .B -0 | |
127 | option to shift the origin of the x/y/z slice coordinates to the | |
128 | dataset center. | |
129 | .TP | |
130 | .B -0 | |
131 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
132 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
133 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
134 | coordinates are not affected.) | |
135 | ||
136 | This also shifts the origin of the x/y/z variables in the expression so | |
137 | that 0 is the center of the dataset. | |
138 | .TP | |
139 | \fB\-r\fR \fIres\fR | |
140 | Use a resolution | |
141 | .I res | |
142 | for x/y/z (but not t) variables in the expression, so that the data | |
143 | "grid" coordinates are divided by \fIres\fR. The default \fIres\fR is 1. | |
144 | ||
145 | For example, if the x dimension has 21 grid steps, setting a \fIres\fR | |
146 | of 20 will mean that x variables in the expression run from 0.0 to | |
147 | 1.0 (or -0.5 to 0.5 if \fB\-0\fR is specified), instead of 0 to 20. | |
148 | ||
149 | .B -r | |
150 | does not affect the coordinates used for slices, which are always integers. | |
151 | .TP | |
152 | \fB\-n\fR \fIsize\fR | |
153 | The output dataset must be the same size as the input datasets. If | |
154 | there are no input datasets (if you are defining the output purely by | |
155 | a formula), then you must specify the output size manually with this | |
156 | option: \fIsize\fR is of the form MxNxLx... (with M, N, L being | |
157 | integers) and may be of any dimensionality. | |
158 | .TP | |
159 | \fB\-d\fR \fIname\fR | |
160 | Write to dataset | |
161 | .I name | |
162 | in the output; otherwise, the output dataset is called "data" by default. | |
163 | Also use dataset | |
164 | .I name | |
165 | in the input; otherwise, the first input dataset (alphabetically) in a | |
166 | file is used. Alternatively, use the syntax \fIHDF5FILE:DATASET\fR | |
167 | (which overrides the | |
168 | .B -d | |
169 | option). | |
170 | .SH BUGS | |
171 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
172 | .SH AUTHORS | |
173 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
174 | Institute of Technology. |
0 | .\" Copyright (c) 2004 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOPNG 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5topng \- generate PNG images from 2d slices of HDF5 files | |
24 | .SH SYNOPSIS | |
25 | .B h5topng | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5topng is a utility to generate images in PNG (Portable Network Graphics) | |
31 | format from two-dimensional slices of datasets in HDF5 files. It is | |
32 | designed for quick-and-dirty visualization of scientific data, and for | |
33 | batch processing thereof via shell scripts. | |
34 | ||
35 | HDF5 is a free, portable binary format and supporting library developed | |
36 | by the National Center for Supercomputing Applications at the University | |
37 | of Illinois in Urbana-Champaign. A single | |
38 | .I h5 | |
39 | file can contain multiple data sets; by default, | |
40 | .I h5topng | |
41 | takes the first dataset, but this can be changed via the | |
42 | .B -d | |
43 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
44 | ||
45 | For a three- or four-dimensional dataset you must specify coordinates | |
46 | in one or two slice dimensions, respectively, to get a two-dimensional | |
47 | slice, via the | |
48 | .B -xyzt | |
49 | options. Yet more options control things like the colormap and | |
50 | magnification. Still, the most basic usage is something like | |
51 | \'h5topng foo.h5\', which will output a file foo.png containing an | |
52 | image from the two-dimensional data in foo.h5. | |
53 | .SH OPTIONS | |
54 | .TP | |
55 | .B -h | |
56 | Display help on the command-line options and usage. | |
57 | .TP | |
58 | .B -V | |
59 | Print the version number and copyright info for h5topng. | |
60 | .TP | |
61 | .B -v | |
62 | Verbose output. This output includes the minimum and maximum values | |
63 | encountered in the data, which is useful to know for the | |
64 | .B -mM | |
65 | options. | |
66 | .TP | |
67 | \fB\-o\fR \fIfile\fR | |
68 | Send PNG output to | |
69 | .I file | |
70 | rather than to the filename with .h5 replaced with .png (the default). | |
71 | .TP | |
72 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
73 | This tells | |
74 | .I h5topng | |
75 | to use a particular slice of a multi-dimensional dataset. e.g. | |
76 | .B -x | |
77 | causes a yz plane (of a 3d dataset) to be used, at an x index of | |
78 | .I ix | |
79 | (where the indices run from zero to one less than the maximum index in | |
80 | that direction). Here, x/y/z correspond to the first/second/third | |
81 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
82 | in the last dimension, whichever that might be. See also the | |
83 | .B -0 | |
84 | option to shift the origin of the x/y/z slice coordinates to the | |
85 | dataset center. | |
86 | ||
87 | Instead of specifying a single index as an argument to these options, | |
88 | you can also specify a range of indices in a Matlab-like notation: | |
89 | \fIstart\fR:\fIstep\fR:\fIend\fR or \fIstart\fR:\fIend\fR | |
90 | (\fIstep\fR defaults to 1). This loops over that slice index, from | |
91 | \fIstart\fR to \fIend\fR in steps of \fIstep\fR, producing a | |
92 | sequence of output PNG files (with the slice index appended to the | |
93 | filename, before the ".png"). | |
94 | .TP | |
95 | .B -0 | |
96 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
97 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
98 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
99 | coordinates are not affected.) | |
100 | .TP | |
101 | \fB\-X\fR \fIscalex\fR, \fB\-Y\fR \fIscaley\fR, \fB\-S\fR \fIscale\fR | |
102 | Scale the x and y dimensions of the image by | |
103 | .I scalex | |
104 | and | |
105 | .I scaley | |
106 | respectively. The | |
107 | .B -S | |
108 | option scales both x and y. The default is to use scale factors of 1.0; | |
109 | i.e. the image has the same dimensions (in pixels) as the data. Linear | |
110 | interpolation is used to fill in the pixels when the scale factors are | |
111 | not 1.0. | |
112 | .TP | |
113 | \fB\-s\fR \fIskewangle\fR | |
114 | Skew the image by | |
115 | .I skewangle | |
116 | (in degrees) to the left or right. The result is a parallelogram, with | |
117 | the leftover space in the (square) image filled with either black or white | |
118 | pixels, depending upon the color map. | |
119 | .TP | |
120 | .B -T | |
121 | Transpose the data (interchange the image axes). By default, | |
122 | the first (x) coordinate of the data corresponds to the columns, | |
123 | and the second (y) coordinate corresponds to the rows; transposition | |
124 | reverses this convention. | |
125 | .TP | |
126 | .B -c \fIcolormap\fR | |
127 | Use a color map | |
128 | .I colormap | |
129 | rather than the default | |
130 | .B gray | |
131 | color map (a grayscale ramp from white to black). | |
132 | .I colormap | |
133 | is normally the name of one of the color maps provided with | |
134 | .I h5topng | |
135 | (in the @datadir_val@/h5utils/colormaps directory), or can instead be | |
136 | the name of a color-map file. | |
137 | ||
138 | Three useful included color maps are | |
139 | .B hot | |
140 | (black-red-yellow-white, useful for intensity data), | |
141 | .B bluered | |
142 | (blue-white-red, useful for signed data), and | |
143 | .B hsv | |
144 | (a multi-color "rainbow"). If you use the | |
145 | .B bluered | |
146 | color map for signed data, you may also want to use the | |
147 | .B -Z | |
148 | option so that the center of the color scale (white) corresponds to | |
149 | zero. | |
150 | ||
151 | A color-map file is a sequence of whitespace-separated R G B A | |
152 | quadruples, where each value is in the range 0.0 to 1.0 and indicates | |
153 | the fraction of red/green/blue/alpha. (An alpha of 0 is transparent | |
154 | and of 1 is opaque; this is only used for the \fB\-a\fR option, | |
155 | below.) The colors in the color map are linearly interpolated as | |
156 | necessary to provide a continuous color ramp. | |
157 | .TP | |
158 | .B -r | |
159 | Reverse the ordering of the color map. You can also accomplish this | |
160 | by putting a "-" before the colormap name in the | |
161 | .B -c | |
162 | or | |
163 | .B -a | |
164 | option. | |
165 | .TP | |
166 | .B -Z | |
167 | Center the color scale on the value zero in the data. | |
168 | .TP | |
169 | \fB\-m\fR \fImin\fR, \fB\-M\fR \fImax\fR | |
170 | Normally, the bottom and top of the color map correspond to the | |
171 | minimum and maximum values in the data. Using these options, you | |
172 | can make the bottom and top of the color map correspond to | |
173 | .I min | |
174 | and | |
175 | .I max | |
176 | instead. Data values below or above this range will be treated as if | |
177 | they were | |
178 | .I min | |
179 | or | |
180 | .I max | |
181 | respectively. See also the | |
182 | .B -Z | |
183 | and | |
184 | .B -R | |
185 | options. | |
186 | .TP | |
187 | .B -R | |
188 | When multiple files are specified, set the bottom and top of the color | |
189 | maps according to the minimum and maximum over all the data. This is | |
190 | useful to process many files using a consistent color scale, since | |
191 | otherwise the scale is set for each file individually. | |
192 | .TP | |
193 | \fB\-C\fR \fIfile\fR, \fB\-b\fR \fIval\fR | |
194 | Superimpose contour outlines from the first dataset in the | |
195 | .I file | |
196 | HDF5 file on all of the output images. (If the contour dataset does | |
197 | not have the same dimensions as the output data, it is peridically | |
198 | "tiled" over the output.) You can use the syntax | |
199 | .I file:dataset | |
200 | to specify a particular dataset within the file. The contour outlines | |
201 | are around a value of | |
202 | .I val | |
203 | (defaults to middle of value range in \fIfile\fR). | |
204 | .TP | |
205 | \fB\-A\fR \fIfile\fR, \fB\-a\fR \fIcolormap\fR:\fIopacity\fR | |
206 | Translucently overlay the data from the first dataset in the | |
207 | .I file | |
208 | HDF5 file, which should have the same dimensions as the input | |
209 | dataset, on all of the output images, using the colormap | |
210 | .I colormap | |
211 | with opacity (from 0 for completely transparent to 1 for completely opaque) | |
212 | .I opacity | |
213 | multiplied by the opacity (alpha) values in the colormap. (If the | |
214 | overlay dataset does not have the same dimensions as the output data, | |
215 | it is peridically "tiled" over the output.) You can use the syntax | |
216 | .I file:dataset | |
217 | to specify a particular dataset within the file. | |
218 | ||
219 | Some predefined colormaps that work particularly well for this feature | |
220 | are | |
221 | .B yellow | |
222 | (transparent white to opaque yellow) | |
223 | .B gray | |
224 | (transparent white to opaque black), | |
225 | .B yarg | |
226 | (transparent black to opaque white), | |
227 | .B green | |
228 | (transparent white to opaque green), and | |
229 | .B bluered | |
230 | (opaque blue to transparent white to opaque red). You can prepend "-" | |
231 | to the colormap name to reverse the colormap order. (See also | |
232 | \fB\-c\fR, above.) The default for \fB\-a\fR is yellow:0.3 (yellow | |
233 | colormap multiplied by 30% opacity). | |
234 | .TP | |
235 | \fB\-d\fR \fIname\fR | |
236 | Use dataset | |
237 | .I name | |
238 | from the input files; otherwise, the first dataset from each file is used. | |
239 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
240 | to specify a different dataset for each file. | |
241 | You can use the | |
242 | .I h5ls | |
243 | command (included with hdf5) to find the names of datasets within a file. | |
244 | .TP | |
245 | .B -8 | |
246 | Use 8-bit (indexed) color for the PNG output, instead of 24-bit (direct) | |
247 | color (the default). (This shrinks the image size slightly, with some | |
248 | degradation in quality.) Not supported in conjunction with the \fB\-A\fR | |
249 | (translucent overlay) option. | |
250 | .SH BUGS | |
251 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
252 | .SH AUTHORS | |
253 | Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts | |
254 | Institute of Technology. |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOTXT 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5totxt \- generate comma-delimited text from 2d slices of HDF5 files | |
24 | .SH SYNOPSIS | |
25 | .B h5totxt | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5totxt is a utility to generate comma-delimited text (and similar | |
31 | formats) from one-, two-, or more-dimensional slices of numeric | |
32 | datasets in HDF5 files. This way, the data can easily be imported | |
33 | into spreadsheets and similar programs for analysis and visualization. | |
34 | ||
35 | HDF5 is a free, portable binary format and supporting library developed | |
36 | by the National Center for Supercomputing Applications at the University | |
37 | of Illinois in Urbana-Champaign. A single | |
38 | .I h5 | |
39 | file can contain multiple data sets; by default, | |
40 | .I h5totxt | |
41 | takes the first dataset, but this can be changed via the | |
42 | .B -d | |
43 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
44 | ||
45 | By default, the entire dataset is dumped to the output. in row-major | |
46 | order. For 3d datasets, this corresponds to a sequence of yz slices, | |
47 | in order of increasing x, separated by blank lines. If | |
48 | .B -T | |
49 | is specified, outputs in the transposed (column-major) order instead | |
50 | ||
51 | Often, however, you want only a one- or two-dimensional slice of | |
52 | multi-dimensional data. To do this, you specify coordinates in one or | |
53 | more slice dimensions, via the | |
54 | .B -xyzt | |
55 | options. | |
56 | ||
57 | The most basic usage is something like \'h5totxt foo.h5\', which will | |
58 | output comma-delimited text to stdout from the data in foo.h5. | |
59 | .SH OPTIONS | |
60 | .TP | |
61 | .B -h | |
62 | Display help on the command-line options and usage. | |
63 | .TP | |
64 | .B -V | |
65 | Print the version number and copyright info for h5totxt. | |
66 | .TP | |
67 | .B -v | |
68 | Verbose output. | |
69 | .TP | |
70 | \fB\-o\fR \fIfile\fR | |
71 | Send text output to | |
72 | .I file | |
73 | rather than to stdout (the default). | |
74 | .TP | |
75 | \fB\-s\fR \fIsep\fR | |
76 | Use the string | |
77 | .I sep | |
78 | to separate columns of the output rather than a comma (the default). | |
79 | .TP | |
80 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
81 | This tells | |
82 | .I h5totxt | |
83 | to use a particular slice of a multi-dimensional dataset. e.g. | |
84 | .B -x | |
85 | causes a yz plane (of a 3d dataset) to be used, at an x index of | |
86 | .I ix | |
87 | (where the indices run from zero to one less than the maximum index in | |
88 | that direction). Here, x/y/z correspond to the first/second/third | |
89 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
90 | in the last dimension, whichever that might be. See also the | |
91 | .B -0 | |
92 | option to shift the origin of the x/y/z slice coordinates to the | |
93 | dataset center. | |
94 | .TP | |
95 | .B -0 | |
96 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
97 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
98 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
99 | coordinates are not affected.) | |
100 | .TP | |
101 | .B -T | |
102 | Transpose the data (interchange the dimension ordering). By default, no | |
103 | transposition is done. | |
104 | .TP | |
105 | \fB\-.\fR \fInumdigits\fR | |
106 | Output | |
107 | .I numdigits | |
108 | digits after the decimal point (defaults to 16). | |
109 | .TP | |
110 | \fB\-d\fR \fIname\fR | |
111 | Use dataset | |
112 | .I name | |
113 | from the input files; otherwise, the first dataset from each file is used. | |
114 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
115 | to specify a different dataset for each file. | |
116 | You can use the | |
117 | .I h5ls | |
118 | command (included with hdf5) to find the names of datasets within a file. | |
119 | .SH BUGS | |
120 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
121 | .SH AUTHORS | |
122 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
123 | Institute of Technology. |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOV5D 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5tov5d \- convert datasets in HDF5 files to Vis5d format | |
24 | .SH SYNOPSIS | |
25 | .B h5tov5d | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5tov5d is a program to generate Vis5d data files from | |
31 | multidimensional datasets in HDF5 files. Vis5d is a free volumetric | |
32 | visualization program capable of displaying 3, 4, or even 5 | |
33 | dimensional datasets (using time for the 4th dimension and different | |
34 | variables for the 5th dimension). | |
35 | ||
36 | HDF5 is a free, portable binary format and supporting library developed | |
37 | by the National Center for Supercomputing Applications at the University | |
38 | of Illinois in Urbana-Champaign. A single | |
39 | .I h5 | |
40 | file can contain multiple data sets; by default, | |
41 | .I h5tov5d | |
42 | takes the first dataset, but this can be changed via the | |
43 | .B -d | |
44 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
45 | ||
46 | 1d/2d/3d datasets are converted into 3d Vis5d datasets. 4d datasets | |
47 | are converted into a time series of 3d datasets, with the first | |
48 | dimension marking the time. 5d datasets are converted into several | |
49 | variables of time series of 3d datasets, with the first dimension as | |
50 | the variable index and the second dimension as the time. Often, | |
51 | however, you want only a three-dimensional "slice" of four (or more) | |
52 | dimensional data. To do this, you specify coordinates in one (or | |
53 | more) slice dimension(s), via the | |
54 | .B -xyzt | |
55 | options. | |
56 | ||
57 | A typical invocation is of the form | |
58 | \'h5tov5d foo.h5\', which will output a Vis5d data file foo.v5d | |
59 | from the data in foo.h5. | |
60 | .SH OPTIONS | |
61 | .TP | |
62 | .B -h | |
63 | Display help on the command-line options and usage. | |
64 | .TP | |
65 | .B -V | |
66 | Print the version number and copyright info for h5tov5d. | |
67 | .TP | |
68 | .B -v | |
69 | Verbose output. | |
70 | .TP | |
71 | .B -T | |
72 | Transpose the output dimensions (reverse their order). | |
73 | .TP | |
74 | \fB\-o\fR \fIfile\fR | |
75 | Save the datasets from all of the input files to a single Vis5d | |
76 | .I file | |
77 | with each dataset being expressed as a separate Vis5d variable. In | |
78 | this way, you can use Vis5d to superimpose and compare the plots from | |
79 | the different datasets. The first two dimensions (or three, for 4d | |
80 | datasets) must be the same for all of the input datasets. | |
81 | ||
82 | Otherwise, the default behavior is to save each dataset to a separate | |
83 | Vis5d file, with the .h5 suffix of the input filename replaced by .v5d | |
84 | in the output filename. | |
85 | .TP | |
86 | \fB\-1\fR, \fB\-2\fR, \fB\-4\fR | |
87 | Use 1 (the default), 2, or 4 bytes to store each data point in the | |
88 | output file. Fewer bytes will cause Vis5d to be faster (as well as | |
89 | requiring less storage and memory), but will decrease the resolution | |
90 | in the values. | |
91 | .B -1 | |
92 | will break up the data values into one of 256 possible values (on a | |
93 | linear scale from the minimum to the maximum value in your data), | |
94 | .B -2 | |
95 | will allow 65536 possible values, and | |
96 | .B -4 | |
97 | will use 4-byte floating-point numbers for an "exact" representation. | |
98 | In most circumstances, | |
99 | .B -1 | |
100 | is more than adequate for data visualization purposes. | |
101 | .TP | |
102 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
103 | This tells | |
104 | .I h5tov5d | |
105 | to use a particular slice of a multi-dimensional dataset. e.g. | |
106 | .B -x | |
107 | uses the subset (with one less dimension) at an x index of | |
108 | .I ix | |
109 | (where the indices run from zero to one less than the maximum index in | |
110 | that direction). Here, x/y/z correspond to the first/second/third | |
111 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
112 | in the last dimension, whichever that might be. See also the | |
113 | .B -0 | |
114 | option to shift the origin of the x/y/z slice coordinates to the | |
115 | dataset center. | |
116 | .TP | |
117 | .B -0 | |
118 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
119 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
120 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
121 | coordinates are not affected.) | |
122 | .TP | |
123 | \fB\-d\fR \fIname\fR | |
124 | Use dataset | |
125 | .I name | |
126 | from the input files; otherwise, the first dataset from each file is used. | |
127 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
128 | to specify a different dataset for each file. | |
129 | You can use the | |
130 | .I h5ls | |
131 | command (included with hdf5) to find the names of datasets within a file. | |
132 | .SH BUGS | |
133 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
134 | .SH AUTHORS | |
135 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
136 | Institute of Technology. |
0 | .\" Copyright (c) 2002 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOVTK 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5tovtk \- convert datasets in HDF5 files to VTK format | |
24 | .SH SYNOPSIS | |
25 | .B h5tovtk | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5tovtk is a program to generate VTK data files from multidimensional | |
31 | datasets in HDF5 files. VTK, the Visualization ToolKit, is an | |
32 | open-source, freely available software system for 3D computer | |
33 | graphics, image processing, and visualization. VTK itself is a | |
34 | programming library, but it is also the basis for a number of end-user | |
35 | graphical visualization programs. | |
36 | ||
37 | HDF5 is a free, portable binary format and supporting library developed | |
38 | by the National Center for Supercomputing Applications at the University | |
39 | of Illinois in Urbana-Champaign. A single | |
40 | .I h5 | |
41 | file can contain multiple datasets; by default, | |
42 | .I h5tovtk | |
43 | takes the first dataset, but this can be changed via the | |
44 | .B -d | |
45 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
46 | ||
47 | 1d/2d/3d datasets are converted into 3d VTK \"structured points\" | |
48 | datasets. Normally, a single scalar VTK dataset is output, but | |
49 | vectors and fields can be output via the | |
50 | .B -o | |
51 | option below. | |
52 | ||
53 | A typical invocation is of the form | |
54 | \'h5tovtk foo.h5\', which will output a VTK data file foo.vtk | |
55 | from the data in foo.h5. | |
56 | .SH OPTIONS | |
57 | .TP | |
58 | .B -h | |
59 | Display help on the command-line options and usage. | |
60 | .TP | |
61 | .B -V | |
62 | Print the version number and copyright info for h5tovtk. | |
63 | .TP | |
64 | .B -v | |
65 | Verbose output. | |
66 | .TP | |
67 | \fB\-o\fR \fIfile\fR | |
68 | Save all the input datasets to a single VTK \fIfile\fR. If there is | |
69 | only one dataset, it is output to a VTK scalar dataset; if there are | |
70 | three datasets, they are output as a VTK vector dataset; all other | |
71 | numbers of datasets are combined into a VTK field dataset. | |
72 | ||
73 | Otherwise, the default behavior is to save each dataset to a separate | |
74 | VTK file, with the .h5 suffix of the input filename replaced by .vtk | |
75 | in the output filename. | |
76 | ||
77 | Only three-dimensional datasets may be written to the VTK file. If | |
78 | you have a four (or more) dimensional data set, then you must take a | |
79 | three-dimensional "slice" of the multi-dimensional data. To do this, | |
80 | you specify coordinates in one (or more) slice dimension(s), via the | |
81 | .B -xyzt | |
82 | options. | |
83 | .TP | |
84 | \fB\-1\fR, \fB\-2\fR, \fB\-4\fR | |
85 | Use 1 , 2, or 4 bytes to store each data point in the | |
86 | output file. Fewer bytes require less storage and memory, | |
87 | but will decrease the resolution in the values. | |
88 | .B -1 | |
89 | will break up the data values into one of 256 possible values (on a | |
90 | linear scale from the minimum to the maximum value in your data), | |
91 | .B -2 | |
92 | will allow 65536 possible values, and | |
93 | .B -4 | |
94 | (the default) will use 4-byte floating-point numbers for an "exact" | |
95 | representation. | |
96 | .TP | |
97 | .B -a | |
98 | Output in ASCII format; otherwise, VTK's more compact, but less | |
99 | readable and somewhat less portable binary format is used. | |
100 | .TP | |
101 | .B -n | |
102 | For binary output (see | |
103 | .B -a | |
104 | above), by default the data is written in bigendian byte order, which | |
105 | is normally the order that VTK expects. However, some external tools | |
106 | and a few VTK classes use the native byte ordering instead (which may | |
107 | not be bigendian), and the | |
108 | .B -n | |
109 | option causes | |
110 | .I h5tovtk | |
111 | to output binary data in the native ordering. | |
112 | .TP | |
113 | \fB\-m\fR \fImin\fR, \fB\-M\fR \fImax\fR | |
114 | When | |
115 | .B -1 | |
116 | or | |
117 | .B -2 | |
118 | are used, the input data are converted to a linear integer scale. | |
119 | Normally, the bottom and top of this scale correspond to the | |
120 | minimum and maximum values in the data. Using the | |
121 | .B -m | |
122 | and | |
123 | .B -M | |
124 | options, you | |
125 | can make the bottom and top of the scale correspond to | |
126 | .I min | |
127 | and | |
128 | .I max | |
129 | instead, respectively. Data values below or above this range will be | |
130 | treated as if they were | |
131 | .I min | |
132 | or | |
133 | .I max | |
134 | respectively. See also the | |
135 | .B -Z | |
136 | option. | |
137 | .TP | |
138 | .B -Z | |
139 | For | |
140 | .B -1 | |
141 | or | |
142 | .B -2 | |
143 | output, center the linear integer scale on the value zero in the data. | |
144 | .TP | |
145 | .B -r | |
146 | Invert the output values (map the minimum to the maximum and vice versa). | |
147 | .TP | |
148 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
149 | This tells | |
150 | .I h5tovtk | |
151 | to use a particular slice of a multi-dimensional dataset. e.g. | |
152 | .B -x | |
153 | uses the subset (with one less dimension) at an x index of | |
154 | .I ix | |
155 | (where the indices run from zero to one less than the maximum index in | |
156 | that direction). Here, x/y/z correspond to the first/second/third | |
157 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
158 | in the last dimension, whichever that might be. See also the | |
159 | .B -0 | |
160 | option to shift the origin of the x/y/z slice coordinates to the | |
161 | dataset center. | |
162 | .TP | |
163 | .B -0 | |
164 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
165 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
166 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
167 | coordinates are not affected.) | |
168 | .TP | |
169 | \fB\-d\fR \fIname\fR | |
170 | Use dataset | |
171 | .I name | |
172 | from the input files; otherwise, the first dataset from each file is used. | |
173 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
174 | to specify a different dataset for each file. | |
175 | You can use the | |
176 | .I h5ls | |
177 | command (included with hdf5) to find the names of datasets within a file. | |
178 | .SH BUGS | |
179 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
180 | .SH AUTHORS | |
181 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
182 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | * | |
2 | * Permission is hereby granted, free of charge, to any person obtaining | |
3 | * a copy of this software and associated documentation files (the | |
4 | * "Software"), to deal in the Software without restriction, including | |
5 | * without limitation the rights to use, copy, modify, merge, publish, | |
6 | * distribute, sublicense, and/or sell copies of the Software, and to | |
7 | * permit persons to whom the Software is furnished to do so, subject to | |
8 | * the following conditions: | |
9 | * | |
10 | * The above copyright notice and this permission notice shall be | |
11 | * included in all copies or substantial portions of the Software. | |
12 | * | |
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | */ | |
21 | ||
22 | #include <stdlib.h> | |
23 | #include <stdio.h> | |
24 | #include <string.h> | |
25 | #include <math.h> | |
26 | ||
27 | #include <unistd.h> | |
28 | ||
29 | #include "config.h" | |
30 | #include "arrayh5.h" | |
31 | #include "copyright.h" | |
32 | #include "h5utils.h" | |
33 | ||
34 | #define CHECK(cond, msg) { if (!(cond)) { fprintf(stderr, "h5totxt error: %s\n", msg); exit(EXIT_FAILURE); } } | |
35 | ||
36 | void usage(FILE *f) | |
37 | { | |
38 | fprintf(f, "Usage: h5cyl2cart [options] [<filenames>]\n" | |
39 | "Options:\n" | |
40 | " -h : this help message\n" | |
41 | " -V : print version number and copyright\n" | |
42 | " -v : verbose output\n" | |
43 | " -m <m> : for complex data, multiply by exp(i m phi)\n" | |
44 | " -o <file> : output to <file> (first input file only)\n" | |
45 | " -r <r> : radial coordinate starts at <r> (default: 0)\n" | |
46 | " -d <name> : use dataset <name> in the input files (default: first dataset)\n" | |
47 | " -- you can also specify a dataset via <filename>:<name>\n" | |
48 | " -- nonzero <m> implies complex data <name>.[ri]\n" | |
49 | " or alternatively -i can be used\n" | |
50 | " -i <name> : imaginary dataset name\n" | |
51 | ); | |
52 | } | |
53 | ||
54 | void cyl2cart(arrayh5 ar, arrayh5 ai, int m, arrayh5 *cr_, arrayh5 *ci_) | |
55 | { | |
56 | arrayh5 cr, ci; | |
57 | int nx,ny,nz,nr, dims[3], ix,iy,iz; | |
58 | double *dcr, *dci, *dar, *dai; | |
59 | ||
60 | nz = ar.rank < 1 ? 1 : ar.dims[0]; | |
61 | nr = ar.rank < 2 ? 1 : ar.dims[1]; | |
62 | nx = ny = 2*nr - 1; | |
63 | dims[0] = nx; dims[1] = ny; dims[2] = nz; | |
64 | *cr_ = cr = arrayh5_create(3, dims); | |
65 | *ci_ = ci = arrayh5_create(3, dims); | |
66 | dcr = cr.data; dci = ci.data; | |
67 | dar = ar.data; dai = ai.data; | |
68 | ||
69 | for (ix = 0; ix < nx; ++ix) | |
70 | for (iy = 0; iy < ny; ++iy) | |
71 | for (iz = 0; iz < nz; ++iz) { | |
72 | double x = ix - (nr - 1); | |
73 | double y = iy - (nr - 1); | |
74 | double p = atan2(y, x), r = sqrt(x*x + y*y); | |
75 | int ir = (int) r; /* round down */ | |
76 | double cm = cos(m*p), sm = sin(m*p); | |
77 | double re, im; | |
78 | if (ir == nr-1 && r-ir < 1e-8) { | |
79 | re = dar[ir*nz+iz]; | |
80 | im = dai[ir*nz+iz]; | |
81 | } | |
82 | else if (ir >= nr-1) { /* r is outside the a array */ | |
83 | re = im = 0.0; | |
84 | } | |
85 | else { /* linearly interpolate between ir and ir+1 */ | |
86 | double dr = r - ir; | |
87 | re = dar[ir+nr*iz]*(1-dr) + dr*dar[(ir+1)+nr*iz]; | |
88 | im = dai[ir+nr*iz]*(1-dr) + dr*dai[(ir+1)+nr*iz]; | |
89 | } | |
90 | /* (re + i*im) * (cm + i*sm) */ | |
91 | dcr[(ix*ny+iy)*nz+iz] = re*cm - im*sm; | |
92 | dci[(ix*ny+iy)*nz+iz] = re*sm + im*cm; | |
93 | } | |
94 | } | |
95 | ||
96 | ||
97 | int main(int argc, char **argv) | |
98 | { | |
99 | arrayh5 ar, ai, cr, ci; | |
100 | char *out_fname = NULL, *data_name = NULL, *data_name_i = NULL; | |
101 | extern char *optarg; | |
102 | extern int optind; | |
103 | int c; | |
104 | int err; | |
105 | int verbose = 0; | |
106 | int m = 0; | |
107 | int ifile; | |
108 | ||
109 | while ((c = getopt(argc, argv, "hVvm:o:r:d:i:")) != -1) | |
110 | switch (c) { | |
111 | case 'h': | |
112 | usage(stdout); | |
113 | return EXIT_SUCCESS; | |
114 | case 'V': | |
115 | printf("h5cyl2cart " PACKAGE_VERSION | |
116 | " by Steven G. Johnson\n" | |
117 | COPYRIGHT); | |
118 | return EXIT_SUCCESS; | |
119 | case 'v': | |
120 | verbose = 1; | |
121 | break; | |
122 | case 'm': | |
123 | m = atoi(optarg); | |
124 | break; | |
125 | case 'o': | |
126 | free(out_fname); | |
127 | out_fname = my_strdup(optarg); | |
128 | break; | |
129 | case 'd': | |
130 | free(data_name); | |
131 | data_name = my_strdup(optarg); | |
132 | break; | |
133 | case 'i': | |
134 | free(data_name_i); | |
135 | data_name_i = my_strdup(optarg); | |
136 | break; | |
137 | default: | |
138 | fprintf(stderr, "Invalid argument -%c\n", c); | |
139 | usage(stderr); | |
140 | return EXIT_FAILURE; | |
141 | } | |
142 | if (optind == argc) { /* no parameters left */ | |
143 | usage(stderr); | |
144 | return EXIT_FAILURE; | |
145 | } | |
146 | ||
147 | for (ifile = optind; ifile < argc; ++ifile) { | |
148 | short append_data = 0; | |
149 | char *dname, *dnamei, *h5_fname; | |
150 | h5_fname = split_fname(argv[ifile], &dname); | |
151 | if (!dname[0]) dname = data_name; | |
152 | if (dname && !dname[0]) dname = NULL; | |
153 | if (dname && m != 0 && !data_name_i) { /* append ".r" if needed */ | |
154 | size_t len = strlen(dname); | |
155 | if (dname[len-2] != '.' || | |
156 | (dname[len-1] != 'r' && dname[len-1] != 'i')) { | |
157 | char *tmp = (char*) malloc(sizeof(char) * (len+3)); | |
158 | strcpy(tmp, dname); | |
159 | strcat(tmp, ".r"); | |
160 | dname = tmp; | |
161 | } | |
162 | else { | |
163 | dname = my_strdup(dname); | |
164 | if (dname[len-1] == 'i') | |
165 | dname[len-1] = 'r'; /* read real part first */ | |
166 | } | |
167 | } | |
168 | else if (dname) | |
169 | dname = my_strdup(dname); | |
170 | ||
171 | read_ar: | |
172 | if (verbose) | |
173 | printf("reading from %s in \"%s\"\n", dname?dname:"?",h5_fname); | |
174 | ||
175 | err = arrayh5_read(&ar, h5_fname, dname, &dnamei, | |
176 | 0, NULL, NULL, NULL); | |
177 | if (!dname) { | |
178 | dname = strdup(dnamei); | |
179 | if (verbose) printf("found dataset %s\n", dname); | |
180 | if (!data_name_i && m != 0) { | |
181 | size_t len = strlen(dname); | |
182 | if (dname[len-2] == '.' && dname[len-1] == 'i') { | |
183 | dname[len-1] = 'r'; | |
184 | goto read_ar; | |
185 | } | |
186 | } | |
187 | } | |
188 | CHECK(!err, arrayh5_read_strerror[err]); | |
189 | CHECK(ar.rank <= 2, "input data must be < 3 dimensional"); | |
190 | ||
191 | if (m == 0) | |
192 | ai = arrayh5_clone(ar); | |
193 | else { | |
194 | if (data_name_i) { | |
195 | free(dnamei); | |
196 | dnamei = strdup(data_name_i); | |
197 | } | |
198 | else { | |
199 | size_t len = strlen(dnamei); | |
200 | CHECK(len >= 2 && dnamei[len-2] == '.' | |
201 | && dnamei[len-1] == 'r', | |
202 | "require .r and .i datanames for nonzero m"); | |
203 | dnamei[len-1] = 'i'; | |
204 | } | |
205 | ||
206 | if (verbose) | |
207 | printf("reading from %s in \"%s\"\n", dnamei, h5_fname); | |
208 | ||
209 | err = arrayh5_read(&ai, h5_fname, dnamei, NULL, | |
210 | 0, NULL, NULL, NULL); | |
211 | CHECK(!err, arrayh5_read_strerror[err]); | |
212 | CHECK(arrayh5_conformant(ar, ai), | |
213 | "real and imaginary data sets must be the same size"); | |
214 | ||
215 | } | |
216 | ||
217 | if (!out_fname) { | |
218 | char *tmp; | |
219 | out_fname = strdup(h5_fname); | |
220 | append_data = 1; | |
221 | ||
222 | tmp = (char*) malloc(sizeof(char) * (strlen(dname)+6)); | |
223 | strcpy(tmp, "cart-"); strcat(tmp, dname); | |
224 | free(dname); dname = tmp; | |
225 | ||
226 | tmp = (char*) malloc(sizeof(char) * (strlen(dnamei)+6)); | |
227 | strcpy(tmp, "cart-"); strcat(tmp, dnamei); | |
228 | free(dnamei); dnamei = tmp; | |
229 | } | |
230 | ||
231 | cyl2cart(ar, ai, m, &cr, &ci); | |
232 | ||
233 | if (verbose) | |
234 | printf("writing %s from %dx%d input data.\n", | |
235 | out_fname, (cr.dims[0]+1)/2, cr.dims[2]); | |
236 | ||
237 | arrayh5_write(cr, out_fname, dname, append_data); | |
238 | if (m != 0) arrayh5_write(ci, out_fname, dnamei, 1); | |
239 | ||
240 | arrayh5_destroy(ar); | |
241 | arrayh5_destroy(ai); | |
242 | arrayh5_destroy(cr); | |
243 | arrayh5_destroy(ci); | |
244 | free(h5_fname); | |
245 | free(out_fname); out_fname = NULL; | |
246 | free(dname); free(dnamei); | |
247 | } | |
248 | free(data_name); | |
249 | free(data_name_i); | |
250 | ||
251 | return EXIT_SUCCESS; | |
252 | } |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5FROMH4 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5fromh4 \- convert HDF4 scientific datasets to an HDF5 file | |
24 | .SH SYNOPSIS | |
25 | .B h5fromh4 | |
26 | [\fIOPTION\fR]... [\fIHDF4FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5fromh4 takes one or more files in HDF4 format and outputs files in | |
31 | HDF5 format containing the datasets from the HDF4 files. (Currently, | |
32 | only a single dataset per HDF4 file is converted.) | |
33 | ||
34 | HDF4 and HDF5 are free, portable binary formats and supporting libraries | |
35 | developed by the National Center for Supercomputing Applications at | |
36 | the University of Illinois in Urbana-Champaign. | |
37 | ||
38 | A single | |
39 | .I h5 | |
40 | file can contain multiple data sets; by default, | |
41 | .I h5fromh4 | |
42 | creates a dataset called "data", but this can be changed via the | |
43 | .B -d | |
44 | option, or by using the syntax \fIHDF5FILE:DATASET\fR with the | |
45 | .B -o | |
46 | option. The | |
47 | .B -a | |
48 | option can be used to append new datasets to an existing HDF5 file. | |
49 | If the | |
50 | .B -o | |
51 | option is used and multiple HDF4 files are specified, all the HDF4 | |
52 | datasets are output into that HDF5 file with the input filenames | |
53 | (minus the ".hdf" suffix) used as the dataset names. | |
54 | ||
55 | The most basic usage is something like \'h5fromh4 foo.hdf\', which | |
56 | will output a file foo.h5 containing the scientific dataset from | |
57 | foo.hdf. | |
58 | .SH OPTIONS | |
59 | .TP | |
60 | .B -h | |
61 | Display help on the command-line options and usage. | |
62 | .TP | |
63 | .B -V | |
64 | Print the version number and copyright info for h5fromh4. | |
65 | .TP | |
66 | .B -v | |
67 | Verbose output. | |
68 | .TP | |
69 | .B -a | |
70 | If the HDF5 output file already exists, append the data as a new | |
71 | dataset rather than overwriting the file (the default behavior). An | |
72 | existing dataset of the same name within the file is overwritten, | |
73 | however. | |
74 | .TP | |
75 | \fB\-o\fR \fIfile\fR | |
76 | Send HDF5 output to | |
77 | .I file | |
78 | rather than to the input filename with .hdf replaced with .h5 (the | |
79 | default). If multiple input files were specified, this causes all | |
80 | input datasets to be stored in | |
81 | .I file | |
82 | (rather than in separate files), with the input filenames (minus the .hdf | |
83 | suffix) as the dataset names. | |
84 | .TP | |
85 | \fB\-d\fR \fIname\fR | |
86 | Write to dataset | |
87 | .I name | |
88 | in the output; otherwise, the output dataset is called "data" by default. | |
89 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR with the | |
90 | .B -o | |
91 | option. | |
92 | .SH BUGS | |
93 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
94 | .SH AUTHORS | |
95 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
96 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | * | |
2 | * Permission is hereby granted, free of charge, to any person obtaining | |
3 | * a copy of this software and associated documentation files (the | |
4 | * "Software"), to deal in the Software without restriction, including | |
5 | * without limitation the rights to use, copy, modify, merge, publish, | |
6 | * distribute, sublicense, and/or sell copies of the Software, and to | |
7 | * permit persons to whom the Software is furnished to do so, subject to | |
8 | * the following conditions: | |
9 | * | |
10 | * The above copyright notice and this permission notice shall be | |
11 | * included in all copies or substantial portions of the Software. | |
12 | * | |
13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | */ | |
21 | ||
22 | #include <stdlib.h> | |
23 | #include <stdio.h> | |
24 | #include <string.h> | |
25 | #include <math.h> | |
26 | #include <ctype.h> | |
27 | ||
28 | #include <unistd.h> | |
29 | ||
30 | #include "config.h" | |
31 | #include "arrayh5.h" | |
32 | #include "copyright.h" | |
33 | #include "h5utils.h" | |
34 | ||
35 | #define CHECK(cond, msg) { if (!(cond)) { fprintf(stderr, "h5fromtxt error: %s\n", msg); exit(EXIT_FAILURE); } } | |
36 | ||
37 | void usage(FILE *f) | |
38 | { | |
39 | fprintf(f, "Usage: h5fromitxt [options] <hdf5-file>\n" | |
40 | "Options:\n" | |
41 | " -h : this help message\n" | |
42 | " -V : print version number and copyright\n" | |
43 | " -v : verbose output\n" | |
44 | " -a : append to existing hdf5 file\n" | |
45 | " -f <val> : use <val> as missing filler [ default: 0 ]\n" | |
46 | " -n <size> : input array dimensions [ default: guessed ]\n" | |
47 | " -m <size> : input coordinate minimum [ default: guessed ]\n" | |
48 | " -M <size> : input coordinate maximum [ default: guessed ]\n" | |
49 | " -T : transpose the data [default: no]\n" | |
50 | " -d <name> : use dataset <name> in the output file (default: \"data\")\n" | |
51 | " -- you can also specify a dataset via <filename>:<name>\n" | |
52 | ); | |
53 | } | |
54 | ||
55 | #define MAX_RANK 10 | |
56 | ||
57 | int get_size_arg(int size[MAX_RANK], const char *arg) | |
58 | { | |
59 | int pos = 0; | |
60 | int rank = 0; | |
61 | while (isdigit(arg[pos])) { | |
62 | CHECK(rank < MAX_RANK, | |
63 | "Rank too big in -n argument!\n"); | |
64 | size[rank] = 0; | |
65 | while (isdigit(arg[pos])) { | |
66 | size[rank] = size[rank]*10 + arg[pos]-'0'; | |
67 | ++pos; | |
68 | } | |
69 | ++rank; | |
70 | if (arg[pos] == 'x' || arg[pos] == 'X' || arg[pos] == '*') | |
71 | ++pos; | |
72 | } | |
73 | CHECK(rank > 0 && !arg[pos], "Invalid <size> argument; should be e.g. 23x34 or 10x10x10\n"); | |
74 | return rank; | |
75 | } | |
76 | ||
77 | int main(int argc, char **argv) | |
78 | { | |
79 | arrayh5 a; | |
80 | char *dname, *h5_fname; | |
81 | char *data_name = NULL; | |
82 | extern char *optarg; | |
83 | extern int optind; | |
84 | int c; | |
85 | double *data; | |
86 | int idata = 0; | |
87 | int rank = -1, dims[MAX_RANK], N = 1, nrows = 0; | |
88 | int cmin_rank = -1, cmax_rank = -1, coord_min[MAX_RANK], coord_max[MAX_RANK]; | |
89 | double fill_val = 0; | |
90 | int ncols = -1, cur_ncols = 0; | |
91 | int read_newline = 0; | |
92 | int verbose = 0; | |
93 | int transpose = 0; | |
94 | int append = 0; | |
95 | int i, j; | |
96 | ||
97 | while ((c = getopt(argc, argv, "hn:d:vTaVf:m:M:")) != -1) | |
98 | switch (c) { | |
99 | case 'h': | |
100 | usage(stdout); | |
101 | return EXIT_SUCCESS; | |
102 | case 'V': | |
103 | printf("h5fromtxt " PACKAGE_VERSION " by Steven G. Johnson\n" | |
104 | COPYRIGHT); | |
105 | return EXIT_SUCCESS; | |
106 | case 'v': | |
107 | verbose = 1; | |
108 | break; | |
109 | case 'a': | |
110 | append = 1; | |
111 | break; | |
112 | case 'T': | |
113 | transpose = 1; | |
114 | break; | |
115 | case 'f': | |
116 | fill_val = atof(optarg); | |
117 | break; | |
118 | case 'd': | |
119 | free(data_name); | |
120 | data_name = my_strdup(optarg); | |
121 | break; | |
122 | case 'n': | |
123 | rank = get_size_arg(dims, optarg); | |
124 | for (i = 0, N = 1; i < rank; ++i) | |
125 | N *= dims[i]; | |
126 | break; | |
127 | case 'm': | |
128 | cmin_rank = get_size_arg(coord_min, optarg); | |
129 | break; | |
130 | case 'M': | |
131 | cmax_rank = get_size_arg(coord_max, optarg); | |
132 | break; | |
133 | default: | |
134 | fprintf(stderr, "Invalid argument -%c\n", c); | |
135 | usage(stderr); | |
136 | return EXIT_FAILURE; | |
137 | } | |
138 | if (optind + 1 != argc) { /* should be exactly 1 parameter left */ | |
139 | usage(stderr); | |
140 | return EXIT_FAILURE; | |
141 | } | |
142 | ||
143 | h5_fname = split_fname(argv[optind], &dname); | |
144 | if (!dname[0]) | |
145 | dname = data_name; | |
146 | if (!dname) | |
147 | dname = my_strdup("data"); | |
148 | ||
149 | data = (double *) malloc(sizeof(double) * N); | |
150 | CHECK(data, "out of memory"); | |
151 | ||
152 | while (!feof(stdin)) { | |
153 | read_newline = 0; | |
154 | ||
155 | /* eat leading spaces */ | |
156 | while (isspace(c = getc(stdin))); | |
157 | ungetc(c, stdin); | |
158 | if (c == EOF) | |
159 | break; | |
160 | ||
161 | /* increase the size of the data array, if necessary */ | |
162 | if (idata >= N) { | |
163 | CHECK(rank < 0, "more inputs in file than specified by -n"); | |
164 | N *= 2; | |
165 | data = (double *) realloc(data, sizeof(double) * N); | |
166 | CHECK(data, "out of memory"); | |
167 | } | |
168 | ||
169 | CHECK(scanf("%lg", &data[idata++]) == 1, | |
170 | "error reading numeric input"); | |
171 | ||
172 | ++cur_ncols; | |
173 | ||
174 | /* eat characters until the next number: */ | |
175 | do { | |
176 | c = getc(stdin); | |
177 | if (c == '\n') | |
178 | read_newline = 1; | |
179 | } while (!(isdigit(c) || c == '.' || c == '-' || c == '+' | |
180 | || c == EOF)); | |
181 | ungetc(c, stdin); | |
182 | ||
183 | if (read_newline) { | |
184 | ++nrows; | |
185 | CHECK(ncols < 0 || cur_ncols == ncols, | |
186 | "the number of input columns is not constant."); | |
187 | ncols = cur_ncols; | |
188 | cur_ncols = 0; | |
189 | } | |
190 | } | |
191 | ||
192 | if (!read_newline) { /* don't require a newline on the last line */ | |
193 | ++nrows; | |
194 | CHECK(ncols < 0 || cur_ncols == ncols, | |
195 | "the number of input columns is not constant."); | |
196 | } | |
197 | ||
198 | CHECK(idata > 0, "no inputs read"); | |
199 | CHECK(ncols > 1, "need at least one coordinate column"); | |
200 | ||
201 | if (verbose) | |
202 | printf("Read %d numbers in %d rows with rank-%d coordinates.\n", | |
203 | idata, nrows, ncols - 1); | |
204 | ||
205 | CHECK(ncols - 1 <= MAX_RANK, "rank is too large"); | |
206 | ||
207 | if (cmin_rank < 0) { | |
208 | cmin_rank = ncols - 1; | |
209 | CHECK(cmin_rank == ncols - 1, "coordinate minima have wrong rank"); | |
210 | for (j = 0; j < ncols - 1; ++j) { | |
211 | coord_min[j] = floor(data[j]); | |
212 | } | |
213 | for (i = 1; i < nrows; ++i) | |
214 | for (j = 0; j < ncols - 1; ++j) { | |
215 | int ij = i * ncols + j; | |
216 | if (data[ij] < coord_min[j]) | |
217 | coord_min[j] = floor(data[ij]); | |
218 | } | |
219 | } | |
220 | if (cmax_rank < 0) { | |
221 | cmax_rank = ncols - 1; | |
222 | CHECK(cmax_rank == ncols - 1, "coordinate maxima have wrong rank"); | |
223 | for (j = 0; j < ncols - 1; ++j) { | |
224 | coord_max[j] = ceil(data[j]); | |
225 | } | |
226 | for (i = 1; i < nrows; ++i) | |
227 | for (j = 0; j < ncols - 1; ++j) { | |
228 | int ij = i * ncols + j; | |
229 | if (data[ij] > coord_max[j]) | |
230 | coord_max[j] = ceil(data[ij]); | |
231 | } | |
232 | } | |
233 | ||
234 | if (verbose) { | |
235 | printf("Coordinates range from (%d", coord_min[0]); | |
236 | for (j = 1; j < ncols - 1; ++j) | |
237 | printf(",%d", coord_min[j]); | |
238 | printf(") to (%d", coord_max[0]); | |
239 | for (j = 1; j < ncols - 1; ++j) | |
240 | printf(",%d", coord_max[j]); | |
241 | printf(")\n"); | |
242 | } | |
243 | ||
244 | if (rank < 0) { | |
245 | rank = ncols - 1; | |
246 | for (i = 0; i < rank; ++i) | |
247 | dims[i] = coord_max[i] - coord_min[i] + 1; | |
248 | } | |
249 | CHECK(rank == ncols - 1, "number of coordinates does not match rank"); | |
250 | ||
251 | a = arrayh5_create(rank, dims); | |
252 | for (i = 0; i < a.N; ++i) | |
253 | a.data[i] = fill_val; | |
254 | ||
255 | for (i = 0; i < nrows; ++i) { | |
256 | int idx = 0; | |
257 | for (j = 0; j < rank; ++j) { | |
258 | int id = data[i * ncols + j] + 0.5; | |
259 | if (id < coord_min[j] || id > coord_max[j] || | |
260 | id - coord_min[j] >= dims[j]) { | |
261 | idx = -1; | |
262 | break; | |
263 | } | |
264 | idx = idx * dims[j] + id - coord_min[j]; | |
265 | } | |
266 | if (idx >= 0 && idx < a.N) | |
267 | a.data[idx] = data[i * ncols + ncols - 1]; | |
268 | } | |
269 | ||
270 | if (transpose) | |
271 | arrayh5_transpose(&a); | |
272 | ||
273 | if (verbose) { | |
274 | double a_min, a_max; | |
275 | arrayh5_getrange(a, &a_min, &a_max); | |
276 | printf("data ranges from %g to %g.\n", a_min, a_max); | |
277 | } | |
278 | ||
279 | if (verbose) { | |
280 | printf("Writing size %d", a.dims[0]); | |
281 | for (i = 1; i < a.rank; ++i) | |
282 | printf("x%d", a.dims[i]); | |
283 | printf(" data to %s:%s\n", h5_fname, dname); | |
284 | } | |
285 | ||
286 | arrayh5_write(a, h5_fname, dname, append); | |
287 | arrayh5_destroy(a); | |
288 | ||
289 | return EXIT_SUCCESS; | |
290 | } |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5FROMTXT 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5fromtxt \- convert text input to an HDF5 file | |
24 | .SH SYNOPSIS | |
25 | .B h5fromtxt | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR] | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5fromtxt takes a series of numbers from standard input and outputs a | |
31 | multi-dimensional numeric dataset in an HDF5 file. | |
32 | ||
33 | HDF5 is a free, portable binary format and supporting library developed | |
34 | by the National Center for Supercomputing Applications at the University | |
35 | of Illinois in Urbana-Champaign. A single | |
36 | .I h5 | |
37 | file can contain multiple data sets; by default, | |
38 | .I h5fromtxt | |
39 | creates a dataset called "data", but this can be changed via the | |
40 | .B -d | |
41 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. The | |
42 | .B -a | |
43 | option can be used to append new datasets to an existing HDF5 file. | |
44 | ||
45 | All characters besides the numbers (and associated decimal points, | |
46 | etcetera) in the input are ignored. By default, the data is assumed | |
47 | to be a two-dimensional MxN dataset where M is the number of rows | |
48 | (delimited by newlines) and N is the number of columns. In this case, | |
49 | it is an error for the number of columns to vary between rows. If M | |
50 | or N is 1 then the data is written as a one-dimensional dataset. | |
51 | ||
52 | Alternatively, you can specify the dimensions of the data explicitly | |
53 | via the | |
54 | .B -n | |
55 | .I size | |
56 | option, where | |
57 | .I size | |
58 | is e.g. "2x2x2". In this case, newlines are ignored and the data is | |
59 | taken as an array of the given size stored in row-major ("C") order | |
60 | (where the last index varies most quickly as you step through the | |
61 | data). e.g. a 2x2x2 array would be have the elements listed in the | |
62 | order: (0,0,0), (0,0,1), (0,1,0), (0,1,1), (1,0,0), (1,0,1), (1,1,0), | |
63 | (1,1,1). | |
64 | ||
65 | A simple example is: | |
66 | .IP "" 4 | |
67 | h5fromtxt foo.h5 <<EOF | |
68 | .br | |
69 | 1 2 3 4 | |
70 | .br | |
71 | 5 6 7 8 | |
72 | .br | |
73 | EOF | |
74 | .PP | |
75 | which reads in a 2x4 space-delimited array from standard input. | |
76 | .SH OPTIONS | |
77 | .TP | |
78 | .B -h | |
79 | Display help on the command-line options and usage. | |
80 | .TP | |
81 | .B -V | |
82 | Print the version number and copyright info for h5fromtxt. | |
83 | .TP | |
84 | .B -v | |
85 | Verbose output. | |
86 | .TP | |
87 | .B -a | |
88 | If the HDF5 output file already exists, append the data as a new | |
89 | dataset rather than overwriting the file (the default behavior). An | |
90 | existing dataset of the same name within the file is overwritten, | |
91 | however. | |
92 | .TP | |
93 | \fB\-n\fR \fIsize\fR | |
94 | Instead of trying to infer the dimensions of the array from the rows | |
95 | and columns of the input, treat the data as a sequence of numbers in | |
96 | row-major order forming an array of dimensions \fIsize\fR. \fIsize\fR | |
97 | is of the form MxNxLx... (with M, N, L being numbers) and may be of | |
98 | any dimensionality. | |
99 | .TP | |
100 | .B -T | |
101 | Transpose the input when it is written, reversing the dimensions. | |
102 | .TP | |
103 | \fB\-d\fR \fIname\fR | |
104 | Write to dataset | |
105 | .I name | |
106 | in the output; otherwise, the output dataset is called "data" by default. | |
107 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR. | |
108 | .SH BUGS | |
109 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
110 | .SH AUTHORS | |
111 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
112 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5MATH 1 "May 23, 2005" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5math \- combine/create HDF5 files with math expressions | |
24 | .SH SYNOPSIS | |
25 | .B h5math | |
26 | [\fIOPTION\fR]... \fIOUTPUT-HDF5FILE\fR [\fIINPUT-HDF5FILES\fR...] | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5math takes any number of HDF5 files as input, along with a mathematical | |
31 | expression, and combines them to produce a new HDF5 file. | |
32 | ||
33 | HDF5 is a free, portable binary format and supporting library developed | |
34 | by the National Center for Supercomputing Applications at the University | |
35 | of Illinois in Urbana-Champaign. A single | |
36 | .I h5 | |
37 | file can contain multiple data sets; by default, | |
38 | .I h5math | |
39 | creates a dataset called "h5math", but this can be changed via the | |
40 | .B -d | |
41 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. The | |
42 | .B -a | |
43 | option can be used to append new datasets to an existing HDF5 file. | |
44 | The same syntax is used to specify the dataset used in the input | |
45 | file(s); by default, the first dataset (alphabetically) is used. | |
46 | ||
47 | A simple example of h5math's usage is: | |
48 | .IP "" 4 | |
49 | h5math -e "d1 + 2*d2" out.h5 foo.h5 bar.h5:blah | |
50 | .PP | |
51 | which produces a new file, out.h5, by adding the first dataset in | |
52 | foo.h5 with twice the "blah" dataset in bar.h5. In the expression | |
53 | (specified by \fB-e\fR), the first input dataset (from left to right) | |
54 | is referred to as \fId1\fR, the second as \fId2\fR, and so on. | |
55 | ||
56 | In addition to input datasets, you can also use the x/y/z coordinates | |
57 | of each point in the expression, referenced by "x" "y" and "z" | |
58 | variables (for the first three dimensions) as well as a "t" variable | |
59 | that refers to the last dimension. By default, these are integers starting at 0 at the corner of the dataset, but the | |
60 | .B -0 | |
61 | option will change the x/y/z origin to the center of the dataset (t is | |
62 | unaffected), and the | |
63 | .B -r | |
64 | .I res | |
65 | option will specify the "resolution", dividing the x/y/z coordinates | |
66 | by \fIres\fR. | |
67 | ||
68 | All of the input datasets must have the same dimensions, which are | |
69 | also the dimensions of the output. If there are no input files, and | |
70 | you are defining the output purely by a mathematical formula, you can | |
71 | specify the dimensions of the output explicitly via the | |
72 | .B -n | |
73 | .I size | |
74 | option, where | |
75 | .I size | |
76 | is e.g. "2x2x2". | |
77 | ||
78 | Sometimes, however, you want to use only a smaller-dimensional "slice" | |
79 | of multi-dimensional data. To do this, you specify coordinates in one | |
80 | (or more) slice dimension(s), via the | |
81 | .B -xyzt | |
82 | options. | |
83 | .SH OPTIONS | |
84 | .TP | |
85 | .B -h | |
86 | Display help on the command-line options and usage. | |
87 | .TP | |
88 | .B -V | |
89 | Print the version number and copyright info for h5math. | |
90 | .TP | |
91 | .B -v | |
92 | Verbose output. | |
93 | .TP | |
94 | .B -a | |
95 | If the HDF5 output file already exists, append the data as a new | |
96 | dataset rather than overwriting the file (the default behavior). An | |
97 | existing dataset of the same name within the file is overwritten, | |
98 | however. | |
99 | .TP | |
100 | \fB\-e\fR \fIexpression\fR | |
101 | Specify the mathematical expression that is used to construct the | |
102 | output (generally in " quotes to group the expression as one item in | |
103 | the shell), in terms of the variables for the input datasets and | |
104 | the coordinates as described above. | |
105 | ||
106 | Expressions use a C-like infix notation, with most standard operators | |
107 | and mathematical functions (+, sin, etc.) being supported. This | |
108 | functionality is provided (and its features determined) by GNU libmatheval. | |
109 | .TP | |
110 | \fB\-f\fR \fIfilename\fR | |
111 | Name of a text file to read the expression from, if no | |
112 | .B -e | |
113 | expression is specified. Defaults to stdin. | |
114 | .TP | |
115 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
116 | This tells | |
117 | .I h5math | |
118 | to use a particular slice of a multi-dimensional dataset. e.g. | |
119 | .B -x | |
120 | uses the subset (with one less dimension) at an x index of | |
121 | .I ix | |
122 | (where the indices run from zero to one less than the maximum index in | |
123 | that direction). Here, x/y/z correspond to the first/second/third | |
124 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
125 | in the last dimension, whichever that might be. See also the | |
126 | .B -0 | |
127 | option to shift the origin of the x/y/z slice coordinates to the | |
128 | dataset center. | |
129 | .TP | |
130 | .B -0 | |
131 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
132 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
133 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
134 | coordinates are not affected.) | |
135 | ||
136 | This also shifts the origin of the x/y/z variables in the expression so | |
137 | that 0 is the center of the dataset. | |
138 | .TP | |
139 | \fB\-r\fR \fIres\fR | |
140 | Use a resolution | |
141 | .I res | |
142 | for x/y/z (but not t) variables in the expression, so that the data | |
143 | "grid" coordinates are divided by \fIres\fR. The default \fIres\fR is 1. | |
144 | ||
145 | For example, if the x dimension has 21 grid steps, setting a \fIres\fR | |
146 | of 20 will mean that x variables in the expression run from 0.0 to | |
147 | 1.0 (or -0.5 to 0.5 if \fB\-0\fR is specified), instead of 0 to 20. | |
148 | ||
149 | .B -r | |
150 | does not affect the coordinates used for slices, which are always integers. | |
151 | .TP | |
152 | \fB\-n\fR \fIsize\fR | |
153 | The output dataset must be the same size as the input datasets. If | |
154 | there are no input datasets (if you are defining the output purely by | |
155 | a formula), then you must specify the output size manually with this | |
156 | option: \fIsize\fR is of the form MxNxLx... (with M, N, L being | |
157 | integers) and may be of any dimensionality. | |
158 | .TP | |
159 | \fB\-d\fR \fIname\fR | |
160 | Write to dataset | |
161 | .I name | |
162 | in the output; otherwise, the output dataset is called "data" by default. | |
163 | Also use dataset | |
164 | .I name | |
165 | in the input; otherwise, the first input dataset (alphabetically) in a | |
166 | file is used. Alternatively, use the syntax \fIHDF5FILE:DATASET\fR | |
167 | (which overrides the | |
168 | .B -d | |
169 | option). | |
170 | .SH BUGS | |
171 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
172 | .SH AUTHORS | |
173 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
174 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | .\" Copyright (c) 2004 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOPNG 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5topng \- generate PNG images from 2d slices of HDF5 files | |
24 | .SH SYNOPSIS | |
25 | .B h5topng | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5topng is a utility to generate images in PNG (Portable Network Graphics) | |
31 | format from two-dimensional slices of datasets in HDF5 files. It is | |
32 | designed for quick-and-dirty visualization of scientific data, and for | |
33 | batch processing thereof via shell scripts. | |
34 | ||
35 | HDF5 is a free, portable binary format and supporting library developed | |
36 | by the National Center for Supercomputing Applications at the University | |
37 | of Illinois in Urbana-Champaign. A single | |
38 | .I h5 | |
39 | file can contain multiple data sets; by default, | |
40 | .I h5topng | |
41 | takes the first dataset, but this can be changed via the | |
42 | .B -d | |
43 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
44 | ||
45 | For a three- or four-dimensional dataset you must specify coordinates | |
46 | in one or two slice dimensions, respectively, to get a two-dimensional | |
47 | slice, via the | |
48 | .B -xyzt | |
49 | options. Yet more options control things like the colormap and | |
50 | magnification. Still, the most basic usage is something like | |
51 | \'h5topng foo.h5\', which will output a file foo.png containing an | |
52 | image from the two-dimensional data in foo.h5. | |
53 | .SH OPTIONS | |
54 | .TP | |
55 | .B -h | |
56 | Display help on the command-line options and usage. | |
57 | .TP | |
58 | .B -V | |
59 | Print the version number and copyright info for h5topng. | |
60 | .TP | |
61 | .B -v | |
62 | Verbose output. This output includes the minimum and maximum values | |
63 | encountered in the data, which is useful to know for the | |
64 | .B -mM | |
65 | options. | |
66 | .TP | |
67 | \fB\-o\fR \fIfile\fR | |
68 | Send PNG output to | |
69 | .I file | |
70 | rather than to the filename with .h5 replaced with .png (the default). | |
71 | .TP | |
72 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
73 | This tells | |
74 | .I h5topng | |
75 | to use a particular slice of a multi-dimensional dataset. e.g. | |
76 | .B -x | |
77 | causes a yz plane (of a 3d dataset) to be used, at an x index of | |
78 | .I ix | |
79 | (where the indices run from zero to one less than the maximum index in | |
80 | that direction). Here, x/y/z correspond to the first/second/third | |
81 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
82 | in the last dimension, whichever that might be. See also the | |
83 | .B -0 | |
84 | option to shift the origin of the x/y/z slice coordinates to the | |
85 | dataset center. | |
86 | ||
87 | Instead of specifying a single index as an argument to these options, | |
88 | you can also specify a range of indices in a Matlab-like notation: | |
89 | \fIstart\fR:\fIstep\fR:\fIend\fR or \fIstart\fR:\fIend\fR | |
90 | (\fIstep\fR defaults to 1). This loops over that slice index, from | |
91 | \fIstart\fR to \fIend\fR in steps of \fIstep\fR, producing a | |
92 | sequence of output PNG files (with the slice index appended to the | |
93 | filename, before the ".png"). | |
94 | .TP | |
95 | .B -0 | |
96 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
97 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
98 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
99 | coordinates are not affected.) | |
100 | .TP | |
101 | \fB\-X\fR \fIscalex\fR, \fB\-Y\fR \fIscaley\fR, \fB\-S\fR \fIscale\fR | |
102 | Scale the x and y dimensions of the image by | |
103 | .I scalex | |
104 | and | |
105 | .I scaley | |
106 | respectively. The | |
107 | .B -S | |
108 | option scales both x and y. The default is to use scale factors of 1.0; | |
109 | i.e. the image has the same dimensions (in pixels) as the data. Linear | |
110 | interpolation is used to fill in the pixels when the scale factors are | |
111 | not 1.0. | |
112 | .TP | |
113 | \fB\-s\fR \fIskewangle\fR | |
114 | Skew the image by | |
115 | .I skewangle | |
116 | (in degrees) to the left or right. The result is a parallelogram, with | |
117 | the leftover space in the (square) image filled with either black or white | |
118 | pixels, depending upon the color map. | |
119 | .TP | |
120 | .B -T | |
121 | Transpose the data (interchange the image axes). By default, | |
122 | the first (x) coordinate of the data corresponds to the columns, | |
123 | and the second (y) coordinate corresponds to the rows; transposition | |
124 | reverses this convention. | |
125 | .TP | |
126 | .B -c \fIcolormap\fR | |
127 | Use a color map | |
128 | .I colormap | |
129 | rather than the default | |
130 | .B gray | |
131 | color map (a grayscale ramp from white to black). | |
132 | .I colormap | |
133 | is normally the name of one of the color maps provided with | |
134 | .I h5topng | |
135 | (in the @datadir_val@/h5utils/colormaps directory), or can instead be | |
136 | the name of a color-map file. | |
137 | ||
138 | Three useful included color maps are | |
139 | .B hot | |
140 | (black-red-yellow-white, useful for intensity data), | |
141 | .B bluered | |
142 | (blue-white-red, useful for signed data), and | |
143 | .B hsv | |
144 | (a multi-color "rainbow"). If you use the | |
145 | .B bluered | |
146 | color map for signed data, you may also want to use the | |
147 | .B -Z | |
148 | option so that the center of the color scale (white) corresponds to | |
149 | zero. | |
150 | ||
151 | A color-map file is a sequence of whitespace-separated R G B A | |
152 | quadruples, where each value is in the range 0.0 to 1.0 and indicates | |
153 | the fraction of red/green/blue/alpha. (An alpha of 0 is transparent | |
154 | and of 1 is opaque; this is only used for the \fB\-a\fR option, | |
155 | below.) The colors in the color map are linearly interpolated as | |
156 | necessary to provide a continuous color ramp. | |
157 | .TP | |
158 | .B -r | |
159 | Reverse the ordering of the color map. You can also accomplish this | |
160 | by putting a "-" before the colormap name in the | |
161 | .B -c | |
162 | or | |
163 | .B -a | |
164 | option. | |
165 | .TP | |
166 | .B -Z | |
167 | Center the color scale on the value zero in the data. | |
168 | .TP | |
169 | \fB\-m\fR \fImin\fR, \fB\-M\fR \fImax\fR | |
170 | Normally, the bottom and top of the color map correspond to the | |
171 | minimum and maximum values in the data. Using these options, you | |
172 | can make the bottom and top of the color map correspond to | |
173 | .I min | |
174 | and | |
175 | .I max | |
176 | instead. Data values below or above this range will be treated as if | |
177 | they were | |
178 | .I min | |
179 | or | |
180 | .I max | |
181 | respectively. See also the | |
182 | .B -Z | |
183 | and | |
184 | .B -R | |
185 | options. | |
186 | .TP | |
187 | .B -R | |
188 | When multiple files are specified, set the bottom and top of the color | |
189 | maps according to the minimum and maximum over all the data. This is | |
190 | useful to process many files using a consistent color scale, since | |
191 | otherwise the scale is set for each file individually. | |
192 | .TP | |
193 | \fB\-C\fR \fIfile\fR, \fB\-b\fR \fIval\fR | |
194 | Superimpose contour outlines from the first dataset in the | |
195 | .I file | |
196 | HDF5 file on all of the output images. (If the contour dataset does | |
197 | not have the same dimensions as the output data, it is peridically | |
198 | "tiled" over the output.) You can use the syntax | |
199 | .I file:dataset | |
200 | to specify a particular dataset within the file. The contour outlines | |
201 | are around a value of | |
202 | .I val | |
203 | (defaults to middle of value range in \fIfile\fR). | |
204 | .TP | |
205 | \fB\-A\fR \fIfile\fR, \fB\-a\fR \fIcolormap\fR:\fIopacity\fR | |
206 | Translucently overlay the data from the first dataset in the | |
207 | .I file | |
208 | HDF5 file, which should have the same dimensions as the input | |
209 | dataset, on all of the output images, using the colormap | |
210 | .I colormap | |
211 | with opacity (from 0 for completely transparent to 1 for completely opaque) | |
212 | .I opacity | |
213 | multiplied by the opacity (alpha) values in the colormap. (If the | |
214 | overlay dataset does not have the same dimensions as the output data, | |
215 | it is peridically "tiled" over the output.) You can use the syntax | |
216 | .I file:dataset | |
217 | to specify a particular dataset within the file. | |
218 | ||
219 | Some predefined colormaps that work particularly well for this feature | |
220 | are | |
221 | .B yellow | |
222 | (transparent white to opaque yellow) | |
223 | .B gray | |
224 | (transparent white to opaque black), | |
225 | .B yarg | |
226 | (transparent black to opaque white), | |
227 | .B green | |
228 | (transparent white to opaque green), and | |
229 | .B bluered | |
230 | (opaque blue to transparent white to opaque red). You can prepend "-" | |
231 | to the colormap name to reverse the colormap order. (See also | |
232 | \fB\-c\fR, above.) The default for \fB\-a\fR is yellow:0.3 (yellow | |
233 | colormap multiplied by 30% opacity). | |
234 | .TP | |
235 | \fB\-d\fR \fIname\fR | |
236 | Use dataset | |
237 | .I name | |
238 | from the input files; otherwise, the first dataset from each file is used. | |
239 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
240 | to specify a different dataset for each file. | |
241 | You can use the | |
242 | .I h5ls | |
243 | command (included with hdf5) to find the names of datasets within a file. | |
244 | .TP | |
245 | .B -8 | |
246 | Use 8-bit (indexed) color for the PNG output, instead of 24-bit (direct) | |
247 | color (the default). (This shrinks the image size slightly, with some | |
248 | degradation in quality.) Not supported in conjunction with the \fB\-A\fR | |
249 | (translucent overlay) option. | |
250 | .SH BUGS | |
251 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
252 | .SH AUTHORS | |
253 | Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts | |
254 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
6 | 6 | * distribute, sublicense, and/or sell copies of the Software, and to |
7 | 7 | * permit persons to whom the Software is furnished to do so, subject to |
8 | 8 | * the following conditions: |
9 | * | |
9 | * | |
10 | 10 | * The above copyright notice and this permission notice shall be |
11 | 11 | * included in all copies or substantial portions of the Software. |
12 | * | |
12 | * | |
13 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
14 | 14 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
15 | 15 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
87 | 87 | int nalloc = 0; |
88 | 88 | float r,g,b,a; |
89 | 89 | int c; |
90 | ||
90 | ||
91 | 91 | /* read initial comment lines, and echo if verbose */ |
92 | 92 | do { |
93 | 93 | while (isspace(c = fgetc(f))); |
95 | 95 | while (isspace(c = fgetc(f)) && c != '\n' && c != EOF); |
96 | 96 | if (c != EOF) ungetc(c, f); |
97 | 97 | while ('\n' != (c = fgetc(f)) && c != EOF) |
98 | if (verbose) | |
98 | if (verbose) | |
99 | 99 | putchar(c); |
100 | 100 | if (verbose) |
101 | 101 | putchar('\n'); |
138 | 138 | int verbose) |
139 | 139 | { |
140 | 140 | int i; |
141 | colormap_t cmap; | |
141 | colormap_t cmap = {0, NULL}; | |
142 | 142 | FILE *cmap_f = NULL; |
143 | 143 | char *cmap_fname = (char *) malloc(sizeof(char) * |
144 | (strlen(CMAP_DIR) | |
144 | (strlen(CMAP_DIR) | |
145 | 145 | + strlen(colormap) + 1)); |
146 | 146 | CHECK(cmap_fname, "out of memory"); |
147 | 147 | if (colormap[0] == '-') { |
264 | 264 | usage(stdout); |
265 | 265 | return EXIT_SUCCESS; |
266 | 266 | case 'V': |
267 | printf("h5topng " PACKAGE_VERSION " by Steven G. Johnson\n" | |
267 | printf("h5topng " PACKAGE_VERSION " by Steven G. Johnson\n" | |
268 | 268 | COPYRIGHT); |
269 | 269 | return EXIT_SUCCESS; |
270 | 270 | case 'v': |
292 | 292 | case 'd': |
293 | 293 | free(data_name); |
294 | 294 | data_name = my_strdup(optarg); |
295 | break; | |
295 | break; | |
296 | 296 | case 'C': |
297 | 297 | free(contour_fname); |
298 | 298 | contour_fname = my_strdup(optarg); |
380 | 380 | usage(stderr); |
381 | 381 | return EXIT_FAILURE; |
382 | 382 | } |
383 | ||
383 | ||
384 | 384 | contour_data.data = overlay_data.data = NULL; |
385 | 385 | |
386 | 386 | slicedim3 = slicedim[3]; |
396 | 396 | printf("data rank = %d\n", data_rank); |
397 | 397 | } |
398 | 398 | |
399 | process_files: | |
399 | process_files: | |
400 | 400 | |
401 | 401 | num_processed = 0; |
402 | 402 | |
434 | 434 | CHECK(!err, arrayh5_read_strerror[err]); |
435 | 435 | CHECK(contour_data.rank == 1 || contour_data.rank == 2, |
436 | 436 | "contour slice must be one or two dimensional"); |
437 | ||
437 | ||
438 | 438 | cnx = contour_data.dims[0]; |
439 | 439 | cny = contour_data.rank >= 2 ? contour_data.dims[1] : 1; |
440 | ||
440 | ||
441 | 441 | if (!mask_thresh_set) { |
442 | 442 | double c_min, c_max; |
443 | 443 | arrayh5_getrange(contour_data, &c_min, &c_max); |
469 | 469 | CHECK(!err, arrayh5_read_strerror[err]); |
470 | 470 | CHECK(overlay_data.rank == 1 || overlay_data.rank == 2, |
471 | 471 | "overlay slice must be one or two dimensional"); |
472 | ||
472 | ||
473 | 473 | onx = overlay_data.dims[0]; |
474 | 474 | ony = overlay_data.rank >= 2 ? overlay_data.dims[1] : 1; |
475 | 475 | |
500 | 500 | CHECK(!err, arrayh5_read_strerror[err]); |
501 | 501 | CHECK(a.rank >= 1, "data must have at least one dimension"); |
502 | 502 | CHECK(a.rank <= 2, "data can have at most two dimensions (try specifying a slice)"); |
503 | ||
503 | ||
504 | 504 | if (!png_fname) { |
505 | 505 | char dimname[] = "xyzt", suff[1024] = ""; |
506 | 506 | int dim; |
507 | 507 | for (dim = 0; dim < 4; ++dim) |
508 | 508 | if (islice_max[dim] >= islice_min[dim]+islice_step[dim]) { |
509 | 509 | char s[128]; |
510 | sprintf(s, ".%c%0*d", dimname[dim], | |
510 | sprintf(s, ".%c%0*d", dimname[dim], | |
511 | 511 | 1 + ilog10(imax(iabs(islice_min[dim]), |
512 | 512 | iabs(islice_max[dim]))), |
513 | 513 | islice[dim]); |
516 | 516 | strcat(suff, ".png"); |
517 | 517 | png_fname = replace_suffix(h5_fname, ".h5", suff); |
518 | 518 | } |
519 | ||
519 | ||
520 | 520 | { |
521 | 521 | double a_min, a_max; |
522 | 522 | arrayh5_getrange(a, &a_min, &a_max); |
541 | 541 | min = -max; |
542 | 542 | } |
543 | 543 | } |
544 | ||
544 | ||
545 | 545 | if (!collect_range) { |
546 | 546 | nx = a.dims[0]; |
547 | 547 | ny = a.rank < 2 ? 1 : a.dims[1]; |
548 | ||
548 | ||
549 | 549 | if (verbose) |
550 | 550 | printf("writing \"%s\" from %dx%d input data.\n", |
551 | 551 | png_fname, nx, ny); |
552 | ||
552 | ||
553 | 553 | writepng(png_fname, nx, ny, !transpose, skew, |
554 | scaley, scalex, a.data, | |
554 | scaley, scalex, a.data, | |
555 | 555 | contour_fname ? contour_data.data : NULL, mask_thresh, |
556 | 556 | cnx, cny, |
557 | overlay_fname ? overlay_data.data : NULL,overlay_cmap, | |
557 | overlay_fname ? overlay_data.data : NULL,overlay_cmap, | |
558 | 558 | onx, ony, |
559 | 559 | min, max, cmap, eight_bit); |
560 | 560 | } |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOTXT 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5totxt \- generate comma-delimited text from 2d slices of HDF5 files | |
24 | .SH SYNOPSIS | |
25 | .B h5totxt | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5totxt is a utility to generate comma-delimited text (and similar | |
31 | formats) from one-, two-, or more-dimensional slices of numeric | |
32 | datasets in HDF5 files. This way, the data can easily be imported | |
33 | into spreadsheets and similar programs for analysis and visualization. | |
34 | ||
35 | HDF5 is a free, portable binary format and supporting library developed | |
36 | by the National Center for Supercomputing Applications at the University | |
37 | of Illinois in Urbana-Champaign. A single | |
38 | .I h5 | |
39 | file can contain multiple data sets; by default, | |
40 | .I h5totxt | |
41 | takes the first dataset, but this can be changed via the | |
42 | .B -d | |
43 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
44 | ||
45 | By default, the entire dataset is dumped to the output. in row-major | |
46 | order. For 3d datasets, this corresponds to a sequence of yz slices, | |
47 | in order of increasing x, separated by blank lines. If | |
48 | .B -T | |
49 | is specified, outputs in the transposed (column-major) order instead | |
50 | ||
51 | Often, however, you want only a one- or two-dimensional slice of | |
52 | multi-dimensional data. To do this, you specify coordinates in one or | |
53 | more slice dimensions, via the | |
54 | .B -xyzt | |
55 | options. | |
56 | ||
57 | The most basic usage is something like \'h5totxt foo.h5\', which will | |
58 | output comma-delimited text to stdout from the data in foo.h5. | |
59 | .SH OPTIONS | |
60 | .TP | |
61 | .B -h | |
62 | Display help on the command-line options and usage. | |
63 | .TP | |
64 | .B -V | |
65 | Print the version number and copyright info for h5totxt. | |
66 | .TP | |
67 | .B -v | |
68 | Verbose output. | |
69 | .TP | |
70 | \fB\-o\fR \fIfile\fR | |
71 | Send text output to | |
72 | .I file | |
73 | rather than to stdout (the default). | |
74 | .TP | |
75 | \fB\-s\fR \fIsep\fR | |
76 | Use the string | |
77 | .I sep | |
78 | to separate columns of the output rather than a comma (the default). | |
79 | .TP | |
80 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
81 | This tells | |
82 | .I h5totxt | |
83 | to use a particular slice of a multi-dimensional dataset. e.g. | |
84 | .B -x | |
85 | causes a yz plane (of a 3d dataset) to be used, at an x index of | |
86 | .I ix | |
87 | (where the indices run from zero to one less than the maximum index in | |
88 | that direction). Here, x/y/z correspond to the first/second/third | |
89 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
90 | in the last dimension, whichever that might be. See also the | |
91 | .B -0 | |
92 | option to shift the origin of the x/y/z slice coordinates to the | |
93 | dataset center. | |
94 | .TP | |
95 | .B -0 | |
96 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
97 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
98 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
99 | coordinates are not affected.) | |
100 | .TP | |
101 | .B -T | |
102 | Transpose the data (interchange the dimension ordering). By default, no | |
103 | transposition is done. | |
104 | .TP | |
105 | \fB\-.\fR \fInumdigits\fR | |
106 | Output | |
107 | .I numdigits | |
108 | digits after the decimal point (defaults to 16). | |
109 | .TP | |
110 | \fB\-d\fR \fIname\fR | |
111 | Use dataset | |
112 | .I name | |
113 | from the input files; otherwise, the first dataset from each file is used. | |
114 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
115 | to specify a different dataset for each file. | |
116 | You can use the | |
117 | .I h5ls | |
118 | command (included with hdf5) to find the names of datasets within a file. | |
119 | .SH BUGS | |
120 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
121 | .SH AUTHORS | |
122 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
123 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOV5D 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5tov5d \- convert datasets in HDF5 files to Vis5d format | |
24 | .SH SYNOPSIS | |
25 | .B h5tov5d | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5tov5d is a program to generate Vis5d data files from | |
31 | multidimensional datasets in HDF5 files. Vis5d is a free volumetric | |
32 | visualization program capable of displaying 3, 4, or even 5 | |
33 | dimensional datasets (using time for the 4th dimension and different | |
34 | variables for the 5th dimension). | |
35 | ||
36 | HDF5 is a free, portable binary format and supporting library developed | |
37 | by the National Center for Supercomputing Applications at the University | |
38 | of Illinois in Urbana-Champaign. A single | |
39 | .I h5 | |
40 | file can contain multiple data sets; by default, | |
41 | .I h5tov5d | |
42 | takes the first dataset, but this can be changed via the | |
43 | .B -d | |
44 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
45 | ||
46 | 1d/2d/3d datasets are converted into 3d Vis5d datasets. 4d datasets | |
47 | are converted into a time series of 3d datasets, with the first | |
48 | dimension marking the time. 5d datasets are converted into several | |
49 | variables of time series of 3d datasets, with the first dimension as | |
50 | the variable index and the second dimension as the time. Often, | |
51 | however, you want only a three-dimensional "slice" of four (or more) | |
52 | dimensional data. To do this, you specify coordinates in one (or | |
53 | more) slice dimension(s), via the | |
54 | .B -xyzt | |
55 | options. | |
56 | ||
57 | A typical invocation is of the form | |
58 | \'h5tov5d foo.h5\', which will output a Vis5d data file foo.v5d | |
59 | from the data in foo.h5. | |
60 | .SH OPTIONS | |
61 | .TP | |
62 | .B -h | |
63 | Display help on the command-line options and usage. | |
64 | .TP | |
65 | .B -V | |
66 | Print the version number and copyright info for h5tov5d. | |
67 | .TP | |
68 | .B -v | |
69 | Verbose output. | |
70 | .TP | |
71 | .B -T | |
72 | Transpose the output dimensions (reverse their order). | |
73 | .TP | |
74 | \fB\-o\fR \fIfile\fR | |
75 | Save the datasets from all of the input files to a single Vis5d | |
76 | .I file | |
77 | with each dataset being expressed as a separate Vis5d variable. In | |
78 | this way, you can use Vis5d to superimpose and compare the plots from | |
79 | the different datasets. The first two dimensions (or three, for 4d | |
80 | datasets) must be the same for all of the input datasets. | |
81 | ||
82 | Otherwise, the default behavior is to save each dataset to a separate | |
83 | Vis5d file, with the .h5 suffix of the input filename replaced by .v5d | |
84 | in the output filename. | |
85 | .TP | |
86 | \fB\-1\fR, \fB\-2\fR, \fB\-4\fR | |
87 | Use 1 (the default), 2, or 4 bytes to store each data point in the | |
88 | output file. Fewer bytes will cause Vis5d to be faster (as well as | |
89 | requiring less storage and memory), but will decrease the resolution | |
90 | in the values. | |
91 | .B -1 | |
92 | will break up the data values into one of 256 possible values (on a | |
93 | linear scale from the minimum to the maximum value in your data), | |
94 | .B -2 | |
95 | will allow 65536 possible values, and | |
96 | .B -4 | |
97 | will use 4-byte floating-point numbers for an "exact" representation. | |
98 | In most circumstances, | |
99 | .B -1 | |
100 | is more than adequate for data visualization purposes. | |
101 | .TP | |
102 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
103 | This tells | |
104 | .I h5tov5d | |
105 | to use a particular slice of a multi-dimensional dataset. e.g. | |
106 | .B -x | |
107 | uses the subset (with one less dimension) at an x index of | |
108 | .I ix | |
109 | (where the indices run from zero to one less than the maximum index in | |
110 | that direction). Here, x/y/z correspond to the first/second/third | |
111 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
112 | in the last dimension, whichever that might be. See also the | |
113 | .B -0 | |
114 | option to shift the origin of the x/y/z slice coordinates to the | |
115 | dataset center. | |
116 | .TP | |
117 | .B -0 | |
118 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
119 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
120 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
121 | coordinates are not affected.) | |
122 | .TP | |
123 | \fB\-d\fR \fIname\fR | |
124 | Use dataset | |
125 | .I name | |
126 | from the input files; otherwise, the first dataset from each file is used. | |
127 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
128 | to specify a different dataset for each file. | |
129 | You can use the | |
130 | .I h5ls | |
131 | command (included with hdf5) to find the names of datasets within a file. | |
132 | .SH BUGS | |
133 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
134 | .SH AUTHORS | |
135 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
136 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * [ IMPORTANT: Note that the following is DIFFERENT from the license |
3 | 3 | * for the rest of the h5utils package. ] |
305 | 305 | return EXIT_SUCCESS; |
306 | 306 | case 'V': |
307 | 307 | printf("h5tov5d " PACKAGE_VERSION " by Steven G. Johnson\n" |
308 | "Copyright (c) 1999-2009 Massachusetts Institute of Technology\n" | |
308 | "Copyright (c) 1999-2017 Massachusetts Institute of Technology\n" | |
309 | 309 | "\n" |
310 | 310 | "This program is free software; you can redistribute it and/or modify\n" |
311 | 311 | "it under the terms of the GNU General Public License as published by\n" |
0 | .\" Copyright (c) 2002 Massachusetts Institute of Technology | |
1 | .\" | |
2 | .\" Permission is hereby granted, free of charge, to any person obtaining | |
3 | .\" a copy of this software and associated documentation files (the | |
4 | .\" "Software"), to deal in the Software without restriction, including | |
5 | .\" without limitation the rights to use, copy, modify, merge, publish, | |
6 | .\" distribute, sublicense, and/or sell copies of the Software, and to | |
7 | .\" permit persons to whom the Software is furnished to do so, subject to | |
8 | .\" the following conditions: | |
9 | .\" | |
10 | .\" The above copyright notice and this permission notice shall be | |
11 | .\" included in all copies or substantial portions of the Software. | |
12 | .\" | |
13 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
14 | .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
15 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
16 | .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
17 | .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
18 | .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
19 | .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | .\" | |
21 | .TH H5TOVTK 1 "March 9, 2002" "h5utils" "h5utils" | |
22 | .SH NAME | |
23 | h5tovtk \- convert datasets in HDF5 files to VTK format | |
24 | .SH SYNOPSIS | |
25 | .B h5tovtk | |
26 | [\fIOPTION\fR]... [\fIHDF5FILE\fR]... | |
27 | .SH DESCRIPTION | |
28 | .PP | |
29 | ." Add any additional description here | |
30 | h5tovtk is a program to generate VTK data files from multidimensional | |
31 | datasets in HDF5 files. VTK, the Visualization ToolKit, is an | |
32 | open-source, freely available software system for 3D computer | |
33 | graphics, image processing, and visualization. VTK itself is a | |
34 | programming library, but it is also the basis for a number of end-user | |
35 | graphical visualization programs. | |
36 | ||
37 | HDF5 is a free, portable binary format and supporting library developed | |
38 | by the National Center for Supercomputing Applications at the University | |
39 | of Illinois in Urbana-Champaign. A single | |
40 | .I h5 | |
41 | file can contain multiple datasets; by default, | |
42 | .I h5tovtk | |
43 | takes the first dataset, but this can be changed via the | |
44 | .B -d | |
45 | option, or by using the syntax \fIHDF5FILE:DATASET\fR. | |
46 | ||
47 | 1d/2d/3d datasets are converted into 3d VTK \"structured points\" | |
48 | datasets. Normally, a single scalar VTK dataset is output, but | |
49 | vectors and fields can be output via the | |
50 | .B -o | |
51 | option below. | |
52 | ||
53 | A typical invocation is of the form | |
54 | \'h5tovtk foo.h5\', which will output a VTK data file foo.vtk | |
55 | from the data in foo.h5. | |
56 | .SH OPTIONS | |
57 | .TP | |
58 | .B -h | |
59 | Display help on the command-line options and usage. | |
60 | .TP | |
61 | .B -V | |
62 | Print the version number and copyright info for h5tovtk. | |
63 | .TP | |
64 | .B -v | |
65 | Verbose output. | |
66 | .TP | |
67 | \fB\-o\fR \fIfile\fR | |
68 | Save all the input datasets to a single VTK \fIfile\fR. If there is | |
69 | only one dataset, it is output to a VTK scalar dataset; if there are | |
70 | three datasets, they are output as a VTK vector dataset; all other | |
71 | numbers of datasets are combined into a VTK field dataset. | |
72 | ||
73 | Otherwise, the default behavior is to save each dataset to a separate | |
74 | VTK file, with the .h5 suffix of the input filename replaced by .vtk | |
75 | in the output filename. | |
76 | ||
77 | Only three-dimensional datasets may be written to the VTK file. If | |
78 | you have a four (or more) dimensional data set, then you must take a | |
79 | three-dimensional "slice" of the multi-dimensional data. To do this, | |
80 | you specify coordinates in one (or more) slice dimension(s), via the | |
81 | .B -xyzt | |
82 | options. | |
83 | .TP | |
84 | \fB\-1\fR, \fB\-2\fR, \fB\-4\fR | |
85 | Use 1 , 2, or 4 bytes to store each data point in the | |
86 | output file. Fewer bytes require less storage and memory, | |
87 | but will decrease the resolution in the values. | |
88 | .B -1 | |
89 | will break up the data values into one of 256 possible values (on a | |
90 | linear scale from the minimum to the maximum value in your data), | |
91 | .B -2 | |
92 | will allow 65536 possible values, and | |
93 | .B -4 | |
94 | (the default) will use 4-byte floating-point numbers for an "exact" | |
95 | representation. | |
96 | .TP | |
97 | .B -a | |
98 | Output in ASCII format; otherwise, VTK's more compact, but less | |
99 | readable and somewhat less portable binary format is used. | |
100 | .TP | |
101 | .B -n | |
102 | For binary output (see | |
103 | .B -a | |
104 | above), by default the data is written in bigendian byte order, which | |
105 | is normally the order that VTK expects. However, some external tools | |
106 | and a few VTK classes use the native byte ordering instead (which may | |
107 | not be bigendian), and the | |
108 | .B -n | |
109 | option causes | |
110 | .I h5tovtk | |
111 | to output binary data in the native ordering. | |
112 | .TP | |
113 | \fB\-m\fR \fImin\fR, \fB\-M\fR \fImax\fR | |
114 | When | |
115 | .B -1 | |
116 | or | |
117 | .B -2 | |
118 | are used, the input data are converted to a linear integer scale. | |
119 | Normally, the bottom and top of this scale correspond to the | |
120 | minimum and maximum values in the data. Using the | |
121 | .B -m | |
122 | and | |
123 | .B -M | |
124 | options, you | |
125 | can make the bottom and top of the scale correspond to | |
126 | .I min | |
127 | and | |
128 | .I max | |
129 | instead, respectively. Data values below or above this range will be | |
130 | treated as if they were | |
131 | .I min | |
132 | or | |
133 | .I max | |
134 | respectively. See also the | |
135 | .B -Z | |
136 | option. | |
137 | .TP | |
138 | .B -Z | |
139 | For | |
140 | .B -1 | |
141 | or | |
142 | .B -2 | |
143 | output, center the linear integer scale on the value zero in the data. | |
144 | .TP | |
145 | .B -r | |
146 | Invert the output values (map the minimum to the maximum and vice versa). | |
147 | .TP | |
148 | \fB\-x\fR \fIix\fR, \fB\-y\fR \fIiy\fR, \fB\-z\fR \fIiz\fR, \fB\-t\fR \fIit\fR | |
149 | This tells | |
150 | .I h5tovtk | |
151 | to use a particular slice of a multi-dimensional dataset. e.g. | |
152 | .B -x | |
153 | uses the subset (with one less dimension) at an x index of | |
154 | .I ix | |
155 | (where the indices run from zero to one less than the maximum index in | |
156 | that direction). Here, x/y/z correspond to the first/second/third | |
157 | dimensions of the HDF5 dataset. The \fB\-t\fR option specifies a slice | |
158 | in the last dimension, whichever that might be. See also the | |
159 | .B -0 | |
160 | option to shift the origin of the x/y/z slice coordinates to the | |
161 | dataset center. | |
162 | .TP | |
163 | .B -0 | |
164 | Shift the origin of the x/y/z slice coordinates to the dataset center, | |
165 | so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x | |
166 | plane of the dataset instead of the edge x plane. (\fB\-t\fR | |
167 | coordinates are not affected.) | |
168 | .TP | |
169 | \fB\-d\fR \fIname\fR | |
170 | Use dataset | |
171 | .I name | |
172 | from the input files; otherwise, the first dataset from each file is used. | |
173 | Alternatively, use the syntax \fIHDF5FILE:DATASET\fR, which allows you | |
174 | to specify a different dataset for each file. | |
175 | You can use the | |
176 | .I h5ls | |
177 | command (included with hdf5) to find the names of datasets within a file. | |
178 | .SH BUGS | |
179 | Send bug reports to S. G. Johnson, stevenj@alum.mit.edu. | |
180 | .SH AUTHORS | |
181 | Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts | |
182 | Institute of Technology. |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
3 | scriptversion=2013-12-25.23; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
34 | 34 | # FSF changes to this file are in the public domain. |
35 | 35 | # |
36 | 36 | # Calling this script install-sh is preferred over install.sh, to prevent |
37 | # `make' implicit rules from creating a file called install from it | |
37 | # 'make' implicit rules from creating a file called install from it | |
38 | 38 | # when there is no Makefile. |
39 | 39 | # |
40 | 40 | # This script is compatible with the BSD install script, but was written |
41 | 41 | # from scratch. |
42 | 42 | |
43 | tab=' ' | |
43 | 44 | nl=' |
44 | 45 | ' |
45 | IFS=" "" $nl" | |
46 | ||
47 | # set DOITPROG to echo to test this script | |
48 | ||
49 | # Don't use :- since 4.3BSD and earlier shells don't like it. | |
46 | IFS=" $tab$nl" | |
47 | ||
48 | # Set DOITPROG to "echo" to test this script. | |
49 | ||
50 | 50 | doit=${DOITPROG-} |
51 | if test -z "$doit"; then | |
52 | doit_exec=exec | |
53 | else | |
54 | doit_exec=$doit | |
55 | fi | |
51 | doit_exec=${doit:-exec} | |
56 | 52 | |
57 | 53 | # Put in absolute file names if you don't have them in your path; |
58 | 54 | # or use environment vars. |
67 | 63 | rmprog=${RMPROG-rm} |
68 | 64 | stripprog=${STRIPPROG-strip} |
69 | 65 | |
70 | posix_glob='?' | |
71 | initialize_posix_glob=' | |
72 | test "$posix_glob" != "?" || { | |
73 | if (set -f) 2>/dev/null; then | |
74 | posix_glob= | |
75 | else | |
76 | posix_glob=: | |
77 | fi | |
78 | } | |
79 | ' | |
80 | ||
81 | 66 | posix_mkdir= |
82 | 67 | |
83 | 68 | # Desired mode of installed file. |
96 | 81 | dst_arg= |
97 | 82 | |
98 | 83 | copy_on_change=false |
99 | no_target_directory= | |
84 | is_target_a_directory=possibly | |
100 | 85 | |
101 | 86 | usage="\ |
102 | 87 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE |
136 | 121 | -d) dir_arg=true;; |
137 | 122 | |
138 | 123 | -g) chgrpcmd="$chgrpprog $2" |
139 | shift;; | |
124 | shift;; | |
140 | 125 | |
141 | 126 | --help) echo "$usage"; exit $?;; |
142 | 127 | |
143 | 128 | -m) mode=$2 |
144 | case $mode in | |
145 | *' '* | *' '* | *' | |
146 | '* | *'*'* | *'?'* | *'['*) | |
147 | echo "$0: invalid mode: $mode" >&2 | |
148 | exit 1;; | |
149 | esac | |
150 | shift;; | |
129 | case $mode in | |
130 | *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) | |
131 | echo "$0: invalid mode: $mode" >&2 | |
132 | exit 1;; | |
133 | esac | |
134 | shift;; | |
151 | 135 | |
152 | 136 | -o) chowncmd="$chownprog $2" |
153 | shift;; | |
137 | shift;; | |
154 | 138 | |
155 | 139 | -s) stripcmd=$stripprog;; |
156 | 140 | |
157 | -t) dst_arg=$2 | |
158 | shift;; | |
159 | ||
160 | -T) no_target_directory=true;; | |
141 | -t) | |
142 | is_target_a_directory=always | |
143 | dst_arg=$2 | |
144 | # Protect names problematic for 'test' and other utilities. | |
145 | case $dst_arg in | |
146 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
147 | esac | |
148 | shift;; | |
149 | ||
150 | -T) is_target_a_directory=never;; | |
161 | 151 | |
162 | 152 | --version) echo "$0 $scriptversion"; exit $?;; |
163 | 153 | |
164 | --) shift | |
165 | break;; | |
166 | ||
167 | -*) echo "$0: invalid option: $1" >&2 | |
168 | exit 1;; | |
154 | --) shift | |
155 | break;; | |
156 | ||
157 | -*) echo "$0: invalid option: $1" >&2 | |
158 | exit 1;; | |
169 | 159 | |
170 | 160 | *) break;; |
171 | 161 | esac |
172 | 162 | shift |
173 | 163 | done |
164 | ||
165 | # We allow the use of options -d and -T together, by making -d | |
166 | # take the precedence; this is for compatibility with GNU install. | |
167 | ||
168 | if test -n "$dir_arg"; then | |
169 | if test -n "$dst_arg"; then | |
170 | echo "$0: target directory not allowed when installing a directory." >&2 | |
171 | exit 1 | |
172 | fi | |
173 | fi | |
174 | 174 | |
175 | 175 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then |
176 | 176 | # When -d is used, all remaining arguments are directories to create. |
185 | 185 | fi |
186 | 186 | shift # arg |
187 | 187 | dst_arg=$arg |
188 | # Protect names problematic for 'test' and other utilities. | |
189 | case $dst_arg in | |
190 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
191 | esac | |
188 | 192 | done |
189 | 193 | fi |
190 | 194 | |
193 | 197 | echo "$0: no input file specified." >&2 |
194 | 198 | exit 1 |
195 | 199 | fi |
196 | # It's OK to call `install-sh -d' without argument. | |
200 | # It's OK to call 'install-sh -d' without argument. | |
197 | 201 | # This can happen when creating conditional directories. |
198 | 202 | exit 0 |
199 | 203 | fi |
200 | 204 | |
201 | 205 | if test -z "$dir_arg"; then |
202 | trap '(exit $?); exit' 1 2 13 15 | |
206 | if test $# -gt 1 || test "$is_target_a_directory" = always; then | |
207 | if test ! -d "$dst_arg"; then | |
208 | echo "$0: $dst_arg: Is not a directory." >&2 | |
209 | exit 1 | |
210 | fi | |
211 | fi | |
212 | fi | |
213 | ||
214 | if test -z "$dir_arg"; then | |
215 | do_exit='(exit $ret); exit $ret' | |
216 | trap "ret=129; $do_exit" 1 | |
217 | trap "ret=130; $do_exit" 2 | |
218 | trap "ret=141; $do_exit" 13 | |
219 | trap "ret=143; $do_exit" 15 | |
203 | 220 | |
204 | 221 | # Set umask so as not to create temps with too-generous modes. |
205 | 222 | # However, 'strip' requires both read and write access to temps. |
210 | 227 | |
211 | 228 | *[0-7]) |
212 | 229 | if test -z "$stripcmd"; then |
213 | u_plus_rw= | |
230 | u_plus_rw= | |
214 | 231 | else |
215 | u_plus_rw='% 200' | |
232 | u_plus_rw='% 200' | |
216 | 233 | fi |
217 | 234 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; |
218 | 235 | *) |
219 | 236 | if test -z "$stripcmd"; then |
220 | u_plus_rw= | |
237 | u_plus_rw= | |
221 | 238 | else |
222 | u_plus_rw=,u+rw | |
239 | u_plus_rw=,u+rw | |
223 | 240 | fi |
224 | 241 | cp_umask=$mode$u_plus_rw;; |
225 | 242 | esac |
227 | 244 | |
228 | 245 | for src |
229 | 246 | do |
230 | # Protect names starting with `-'. | |
247 | # Protect names problematic for 'test' and other utilities. | |
231 | 248 | case $src in |
232 | -*) src=./$src;; | |
249 | -* | [=\(\)!]) src=./$src;; | |
233 | 250 | esac |
234 | 251 | |
235 | 252 | if test -n "$dir_arg"; then |
251 | 268 | echo "$0: no destination specified." >&2 |
252 | 269 | exit 1 |
253 | 270 | fi |
254 | ||
255 | 271 | dst=$dst_arg |
256 | # Protect names starting with `-'. | |
257 | case $dst in | |
258 | -*) dst=./$dst;; | |
259 | esac | |
260 | 272 | |
261 | 273 | # If destination is a directory, append the input filename; won't work |
262 | 274 | # if double slashes aren't ignored. |
263 | 275 | if test -d "$dst"; then |
264 | if test -n "$no_target_directory"; then | |
265 | echo "$0: $dst_arg: Is a directory" >&2 | |
266 | exit 1 | |
276 | if test "$is_target_a_directory" = never; then | |
277 | echo "$0: $dst_arg: Is a directory" >&2 | |
278 | exit 1 | |
267 | 279 | fi |
268 | 280 | dstdir=$dst |
269 | 281 | dst=$dstdir/`basename "$src"` |
270 | 282 | dstdir_status=0 |
271 | 283 | else |
272 | # Prefer dirname, but fall back on a substitute if dirname fails. | |
273 | dstdir=` | |
274 | (dirname "$dst") 2>/dev/null || | |
275 | expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
276 | X"$dst" : 'X\(//\)[^/]' \| \ | |
277 | X"$dst" : 'X\(//\)$' \| \ | |
278 | X"$dst" : 'X\(/\)' \| . 2>/dev/null || | |
279 | echo X"$dst" | | |
280 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
281 | s//\1/ | |
282 | q | |
283 | } | |
284 | /^X\(\/\/\)[^/].*/{ | |
285 | s//\1/ | |
286 | q | |
287 | } | |
288 | /^X\(\/\/\)$/{ | |
289 | s//\1/ | |
290 | q | |
291 | } | |
292 | /^X\(\/\).*/{ | |
293 | s//\1/ | |
294 | q | |
295 | } | |
296 | s/.*/./; q' | |
297 | ` | |
298 | ||
284 | dstdir=`dirname "$dst"` | |
299 | 285 | test -d "$dstdir" |
300 | 286 | dstdir_status=$? |
301 | 287 | fi |
306 | 292 | if test $dstdir_status != 0; then |
307 | 293 | case $posix_mkdir in |
308 | 294 | '') |
309 | # Create intermediate dirs using mode 755 as modified by the umask. | |
310 | # This is like FreeBSD 'install' as of 1997-10-28. | |
311 | umask=`umask` | |
312 | case $stripcmd.$umask in | |
313 | # Optimize common cases. | |
314 | *[2367][2367]) mkdir_umask=$umask;; | |
315 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
316 | ||
317 | *[0-7]) | |
318 | mkdir_umask=`expr $umask + 22 \ | |
319 | - $umask % 100 % 40 + $umask % 20 \ | |
320 | - $umask % 10 % 4 + $umask % 2 | |
321 | `;; | |
322 | *) mkdir_umask=$umask,go-w;; | |
323 | esac | |
324 | ||
325 | # With -d, create the new directory with the user-specified mode. | |
326 | # Otherwise, rely on $mkdir_umask. | |
327 | if test -n "$dir_arg"; then | |
328 | mkdir_mode=-m$mode | |
329 | else | |
330 | mkdir_mode= | |
331 | fi | |
332 | ||
333 | posix_mkdir=false | |
334 | case $umask in | |
335 | *[123567][0-7][0-7]) | |
336 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
337 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
338 | ;; | |
339 | *) | |
340 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
341 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
342 | ||
343 | if (umask $mkdir_umask && | |
344 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
345 | then | |
346 | if test -z "$dir_arg" || { | |
347 | # Check for POSIX incompatibilities with -m. | |
348 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
349 | # other-writeable bit of parent directory when it shouldn't. | |
350 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
351 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
352 | case $ls_ld_tmpdir in | |
353 | d????-?r-*) different_mode=700;; | |
354 | d????-?--*) different_mode=755;; | |
355 | *) false;; | |
356 | esac && | |
357 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
358 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
359 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
360 | } | |
361 | } | |
362 | then posix_mkdir=: | |
363 | fi | |
364 | rmdir "$tmpdir/d" "$tmpdir" | |
365 | else | |
366 | # Remove any dirs left behind by ancient mkdir implementations. | |
367 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
368 | fi | |
369 | trap '' 0;; | |
370 | esac;; | |
295 | # Create intermediate dirs using mode 755 as modified by the umask. | |
296 | # This is like FreeBSD 'install' as of 1997-10-28. | |
297 | umask=`umask` | |
298 | case $stripcmd.$umask in | |
299 | # Optimize common cases. | |
300 | *[2367][2367]) mkdir_umask=$umask;; | |
301 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
302 | ||
303 | *[0-7]) | |
304 | mkdir_umask=`expr $umask + 22 \ | |
305 | - $umask % 100 % 40 + $umask % 20 \ | |
306 | - $umask % 10 % 4 + $umask % 2 | |
307 | `;; | |
308 | *) mkdir_umask=$umask,go-w;; | |
309 | esac | |
310 | ||
311 | # With -d, create the new directory with the user-specified mode. | |
312 | # Otherwise, rely on $mkdir_umask. | |
313 | if test -n "$dir_arg"; then | |
314 | mkdir_mode=-m$mode | |
315 | else | |
316 | mkdir_mode= | |
317 | fi | |
318 | ||
319 | posix_mkdir=false | |
320 | case $umask in | |
321 | *[123567][0-7][0-7]) | |
322 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
323 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
324 | ;; | |
325 | *) | |
326 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
327 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
328 | ||
329 | if (umask $mkdir_umask && | |
330 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
331 | then | |
332 | if test -z "$dir_arg" || { | |
333 | # Check for POSIX incompatibilities with -m. | |
334 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
335 | # other-writable bit of parent directory when it shouldn't. | |
336 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
337 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
338 | case $ls_ld_tmpdir in | |
339 | d????-?r-*) different_mode=700;; | |
340 | d????-?--*) different_mode=755;; | |
341 | *) false;; | |
342 | esac && | |
343 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
344 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
345 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
346 | } | |
347 | } | |
348 | then posix_mkdir=: | |
349 | fi | |
350 | rmdir "$tmpdir/d" "$tmpdir" | |
351 | else | |
352 | # Remove any dirs left behind by ancient mkdir implementations. | |
353 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
354 | fi | |
355 | trap '' 0;; | |
356 | esac;; | |
371 | 357 | esac |
372 | 358 | |
373 | 359 | if |
374 | 360 | $posix_mkdir && ( |
375 | umask $mkdir_umask && | |
376 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
361 | umask $mkdir_umask && | |
362 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
377 | 363 | ) |
378 | 364 | then : |
379 | 365 | else |
383 | 369 | # directory the slow way, step by step, checking for races as we go. |
384 | 370 | |
385 | 371 | case $dstdir in |
386 | /*) prefix='/';; | |
387 | -*) prefix='./';; | |
388 | *) prefix='';; | |
372 | /*) prefix='/';; | |
373 | [-=\(\)!]*) prefix='./';; | |
374 | *) prefix='';; | |
389 | 375 | esac |
390 | ||
391 | eval "$initialize_posix_glob" | |
392 | 376 | |
393 | 377 | oIFS=$IFS |
394 | 378 | IFS=/ |
395 | $posix_glob set -f | |
379 | set -f | |
396 | 380 | set fnord $dstdir |
397 | 381 | shift |
398 | $posix_glob set +f | |
382 | set +f | |
399 | 383 | IFS=$oIFS |
400 | 384 | |
401 | 385 | prefixes= |
402 | 386 | |
403 | 387 | for d |
404 | 388 | do |
405 | test -z "$d" && continue | |
406 | ||
407 | prefix=$prefix$d | |
408 | if test -d "$prefix"; then | |
409 | prefixes= | |
410 | else | |
411 | if $posix_mkdir; then | |
412 | (umask=$mkdir_umask && | |
413 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
414 | # Don't fail if two instances are running concurrently. | |
415 | test -d "$prefix" || exit 1 | |
416 | else | |
417 | case $prefix in | |
418 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
419 | *) qprefix=$prefix;; | |
420 | esac | |
421 | prefixes="$prefixes '$qprefix'" | |
422 | fi | |
423 | fi | |
424 | prefix=$prefix/ | |
389 | test X"$d" = X && continue | |
390 | ||
391 | prefix=$prefix$d | |
392 | if test -d "$prefix"; then | |
393 | prefixes= | |
394 | else | |
395 | if $posix_mkdir; then | |
396 | (umask=$mkdir_umask && | |
397 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
398 | # Don't fail if two instances are running concurrently. | |
399 | test -d "$prefix" || exit 1 | |
400 | else | |
401 | case $prefix in | |
402 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
403 | *) qprefix=$prefix;; | |
404 | esac | |
405 | prefixes="$prefixes '$qprefix'" | |
406 | fi | |
407 | fi | |
408 | prefix=$prefix/ | |
425 | 409 | done |
426 | 410 | |
427 | 411 | if test -n "$prefixes"; then |
428 | # Don't fail if two instances are running concurrently. | |
429 | (umask $mkdir_umask && | |
430 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
431 | test -d "$dstdir" || exit 1 | |
432 | obsolete_mkdir_used=true | |
412 | # Don't fail if two instances are running concurrently. | |
413 | (umask $mkdir_umask && | |
414 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
415 | test -d "$dstdir" || exit 1 | |
416 | obsolete_mkdir_used=true | |
433 | 417 | fi |
434 | 418 | fi |
435 | 419 | fi |
464 | 448 | |
465 | 449 | # If -C, don't bother to copy if it wouldn't change the file. |
466 | 450 | if $copy_on_change && |
467 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
468 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
469 | ||
470 | eval "$initialize_posix_glob" && | |
471 | $posix_glob set -f && | |
451 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
452 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
453 | set -f && | |
472 | 454 | set X $old && old=:$2:$4:$5:$6 && |
473 | 455 | set X $new && new=:$2:$4:$5:$6 && |
474 | $posix_glob set +f && | |
475 | ||
456 | set +f && | |
476 | 457 | test "$old" = "$new" && |
477 | 458 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 |
478 | 459 | then |
485 | 466 | # to itself, or perhaps because mv is so ancient that it does not |
486 | 467 | # support -f. |
487 | 468 | { |
488 | # Now remove or move aside any old file at destination location. | |
489 | # We try this two ways since rm can't unlink itself on some | |
490 | # systems and the destination file might be busy for other | |
491 | # reasons. In this case, the final cleanup might fail but the new | |
492 | # file should still install successfully. | |
493 | { | |
494 | test ! -f "$dst" || | |
495 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
496 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
497 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
498 | } || | |
499 | { echo "$0: cannot unlink or rename $dst" >&2 | |
500 | (exit 1); exit 1 | |
501 | } | |
502 | } && | |
503 | ||
504 | # Now rename the file to the real destination. | |
505 | $doit $mvcmd "$dsttmp" "$dst" | |
469 | # Now remove or move aside any old file at destination location. | |
470 | # We try this two ways since rm can't unlink itself on some | |
471 | # systems and the destination file might be busy for other | |
472 | # reasons. In this case, the final cleanup might fail but the new | |
473 | # file should still install successfully. | |
474 | { | |
475 | test ! -f "$dst" || | |
476 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
477 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
478 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
479 | } || | |
480 | { echo "$0: cannot unlink or rename $dst" >&2 | |
481 | (exit 1); exit 1 | |
482 | } | |
483 | } && | |
484 | ||
485 | # Now rename the file to the real destination. | |
486 | $doit $mvcmd "$dsttmp" "$dst" | |
506 | 487 | } |
507 | 488 | fi || exit 1 |
508 | 489 |
0 | 0 | #! /bin/sh |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2009-04-28.21; # UTC | |
4 | ||
5 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, | |
6 | # 2008, 2009 Free Software Foundation, Inc. | |
7 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
1 | # Common wrapper for a few potentially missing GNU programs. | |
2 | ||
3 | scriptversion=2013-10-28.13; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
8 | 7 | |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
10 | 9 | # it under the terms of the GNU General Public License as published by |
25 | 24 | # the same distribution terms that you use for the rest of that program. |
26 | 25 | |
27 | 26 | if test $# -eq 0; then |
28 | echo 1>&2 "Try \`$0 --help' for more information" | |
27 | echo 1>&2 "Try '$0 --help' for more information" | |
29 | 28 | exit 1 |
30 | 29 | fi |
31 | 30 | |
32 | run=: | |
33 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
34 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
35 | ||
36 | # In the cases where this matters, `missing' is being run in the | |
37 | # srcdir already. | |
38 | if test -f configure.ac; then | |
39 | configure_ac=configure.ac | |
40 | else | |
41 | configure_ac=configure.in | |
42 | fi | |
43 | ||
44 | msg="missing on your system" | |
45 | ||
46 | 31 | case $1 in |
47 | --run) | |
48 | # Try to run requested program, and just exit if it succeeds. | |
49 | run= | |
50 | shift | |
51 | "$@" && exit 0 | |
52 | # Exit code 63 means version mismatch. This often happens | |
53 | # when the user try to use an ancient version of a tool on | |
54 | # a file that requires a minimum version. In this case we | |
55 | # we should proceed has if the program had been absent, or | |
56 | # if --run hadn't been passed. | |
57 | if test $? = 63; then | |
58 | run=: | |
59 | msg="probably too old" | |
60 | fi | |
61 | ;; | |
32 | ||
33 | --is-lightweight) | |
34 | # Used by our autoconf macros to check whether the available missing | |
35 | # script is modern enough. | |
36 | exit 0 | |
37 | ;; | |
38 | ||
39 | --run) | |
40 | # Back-compat with the calling convention used by older automake. | |
41 | shift | |
42 | ;; | |
62 | 43 | |
63 | 44 | -h|--h|--he|--hel|--help) |
64 | 45 | echo "\ |
65 | 46 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
66 | 47 | |
67 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
68 | error status if there is no known handling for PROGRAM. | |
48 | Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due | |
49 | to PROGRAM being missing or too old. | |
69 | 50 | |
70 | 51 | Options: |
71 | 52 | -h, --help display this help and exit |
72 | 53 | -v, --version output version information and exit |
73 | --run try to run the given command, and emulate it if it fails | |
74 | 54 | |
75 | 55 | Supported PROGRAM values: |
76 | aclocal touch file \`aclocal.m4' | |
77 | autoconf touch file \`configure' | |
78 | autoheader touch file \`config.h.in' | |
79 | autom4te touch the output file, or create a stub one | |
80 | automake touch all \`Makefile.in' files | |
81 | bison create \`y.tab.[ch]', if possible, from existing .[ch] | |
82 | flex create \`lex.yy.c', if possible, from existing .c | |
83 | help2man touch the output file | |
84 | lex create \`lex.yy.c', if possible, from existing .c | |
85 | makeinfo touch the output file | |
86 | tar try tar, gnutar, gtar, then tar without non-portable flags | |
87 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] | |
88 | ||
89 | Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and | |
90 | \`g' are ignored when checking the name. | |
56 | aclocal autoconf autoheader autom4te automake makeinfo | |
57 | bison yacc flex lex help2man | |
58 | ||
59 | Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and | |
60 | 'g' are ignored when checking the name. | |
91 | 61 | |
92 | 62 | Send bug reports to <bug-automake@gnu.org>." |
93 | 63 | exit $? |
99 | 69 | ;; |
100 | 70 | |
101 | 71 | -*) |
102 | echo 1>&2 "$0: Unknown \`$1' option" | |
103 | echo 1>&2 "Try \`$0 --help' for more information" | |
72 | echo 1>&2 "$0: unknown '$1' option" | |
73 | echo 1>&2 "Try '$0 --help' for more information" | |
104 | 74 | exit 1 |
105 | 75 | ;; |
106 | 76 | |
107 | 77 | esac |
108 | 78 | |
109 | # normalize program name to check for. | |
110 | program=`echo "$1" | sed ' | |
111 | s/^gnu-//; t | |
112 | s/^gnu//; t | |
113 | s/^g//; t'` | |
114 | ||
115 | # Now exit if we have it, but it failed. Also exit now if we | |
116 | # don't have it and --version was passed (most likely to detect | |
117 | # the program). This is about non-GNU programs, so use $1 not | |
118 | # $program. | |
119 | case $1 in | |
120 | lex*|yacc*) | |
121 | # Not GNU programs, they don't have --version. | |
122 | ;; | |
123 | ||
124 | tar*) | |
125 | if test -n "$run"; then | |
126 | echo 1>&2 "ERROR: \`tar' requires --run" | |
127 | exit 1 | |
128 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
129 | exit 1 | |
130 | fi | |
131 | ;; | |
132 | ||
133 | *) | |
134 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
135 | # We have it, but it failed. | |
136 | exit 1 | |
137 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
138 | # Could not run --version or --help. This is probably someone | |
139 | # running `$TOOL --version' or `$TOOL --help' to check whether | |
140 | # $TOOL exists and not knowing $TOOL uses missing. | |
141 | exit 1 | |
142 | fi | |
143 | ;; | |
144 | esac | |
145 | ||
146 | # If it does not exist, or fails to run (possibly an outdated version), | |
147 | # try to emulate it. | |
148 | case $program in | |
149 | aclocal*) | |
150 | echo 1>&2 "\ | |
151 | WARNING: \`$1' is $msg. You should only need it if | |
152 | you modified \`acinclude.m4' or \`${configure_ac}'. You might want | |
153 | to install the \`Automake' and \`Perl' packages. Grab them from | |
154 | any GNU archive site." | |
155 | touch aclocal.m4 | |
156 | ;; | |
157 | ||
158 | autoconf*) | |
159 | echo 1>&2 "\ | |
160 | WARNING: \`$1' is $msg. You should only need it if | |
161 | you modified \`${configure_ac}'. You might want to install the | |
162 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU | |
163 | archive site." | |
164 | touch configure | |
165 | ;; | |
166 | ||
167 | autoheader*) | |
168 | echo 1>&2 "\ | |
169 | WARNING: \`$1' is $msg. You should only need it if | |
170 | you modified \`acconfig.h' or \`${configure_ac}'. You might want | |
171 | to install the \`Autoconf' and \`GNU m4' packages. Grab them | |
172 | from any GNU archive site." | |
173 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
174 | test -z "$files" && files="config.h" | |
175 | touch_files= | |
176 | for f in $files; do | |
177 | case $f in | |
178 | *:*) touch_files="$touch_files "`echo "$f" | | |
179 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
180 | *) touch_files="$touch_files $f.in";; | |
181 | esac | |
182 | done | |
183 | touch $touch_files | |
184 | ;; | |
185 | ||
186 | automake*) | |
187 | echo 1>&2 "\ | |
188 | WARNING: \`$1' is $msg. You should only need it if | |
189 | you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | |
190 | You might want to install the \`Automake' and \`Perl' packages. | |
191 | Grab them from any GNU archive site." | |
192 | find . -type f -name Makefile.am -print | | |
193 | sed 's/\.am$/.in/' | | |
194 | while read f; do touch "$f"; done | |
195 | ;; | |
196 | ||
197 | autom4te*) | |
198 | echo 1>&2 "\ | |
199 | WARNING: \`$1' is needed, but is $msg. | |
200 | You might have modified some files without having the | |
201 | proper tools for further handling them. | |
202 | You can get \`$1' as part of \`Autoconf' from any GNU | |
203 | archive site." | |
204 | ||
205 | file=`echo "$*" | sed -n "$sed_output"` | |
206 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
207 | if test -f "$file"; then | |
208 | touch $file | |
209 | else | |
210 | test -z "$file" || exec >$file | |
211 | echo "#! /bin/sh" | |
212 | echo "# Created by GNU Automake missing as a replacement of" | |
213 | echo "# $ $@" | |
214 | echo "exit 0" | |
215 | chmod +x $file | |
216 | exit 1 | |
217 | fi | |
218 | ;; | |
219 | ||
220 | bison*|yacc*) | |
221 | echo 1>&2 "\ | |
222 | WARNING: \`$1' $msg. You should only need it if | |
223 | you modified a \`.y' file. You may need the \`Bison' package | |
224 | in order for those modifications to take effect. You can get | |
225 | \`Bison' from any GNU archive site." | |
226 | rm -f y.tab.c y.tab.h | |
227 | if test $# -ne 1; then | |
228 | eval LASTARG="\${$#}" | |
229 | case $LASTARG in | |
230 | *.y) | |
231 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
232 | if test -f "$SRCFILE"; then | |
233 | cp "$SRCFILE" y.tab.c | |
234 | fi | |
235 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
236 | if test -f "$SRCFILE"; then | |
237 | cp "$SRCFILE" y.tab.h | |
238 | fi | |
239 | ;; | |
240 | esac | |
241 | fi | |
242 | if test ! -f y.tab.h; then | |
243 | echo >y.tab.h | |
244 | fi | |
245 | if test ! -f y.tab.c; then | |
246 | echo 'main() { return 0; }' >y.tab.c | |
247 | fi | |
248 | ;; | |
249 | ||
250 | lex*|flex*) | |
251 | echo 1>&2 "\ | |
252 | WARNING: \`$1' is $msg. You should only need it if | |
253 | you modified a \`.l' file. You may need the \`Flex' package | |
254 | in order for those modifications to take effect. You can get | |
255 | \`Flex' from any GNU archive site." | |
256 | rm -f lex.yy.c | |
257 | if test $# -ne 1; then | |
258 | eval LASTARG="\${$#}" | |
259 | case $LASTARG in | |
260 | *.l) | |
261 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
262 | if test -f "$SRCFILE"; then | |
263 | cp "$SRCFILE" lex.yy.c | |
264 | fi | |
265 | ;; | |
266 | esac | |
267 | fi | |
268 | if test ! -f lex.yy.c; then | |
269 | echo 'main() { return 0; }' >lex.yy.c | |
270 | fi | |
271 | ;; | |
272 | ||
273 | help2man*) | |
274 | echo 1>&2 "\ | |
275 | WARNING: \`$1' is $msg. You should only need it if | |
276 | you modified a dependency of a manual page. You may need the | |
277 | \`Help2man' package in order for those modifications to take | |
278 | effect. You can get \`Help2man' from any GNU archive site." | |
279 | ||
280 | file=`echo "$*" | sed -n "$sed_output"` | |
281 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
282 | if test -f "$file"; then | |
283 | touch $file | |
284 | else | |
285 | test -z "$file" || exec >$file | |
286 | echo ".ab help2man is required to generate this page" | |
287 | exit $? | |
288 | fi | |
289 | ;; | |
290 | ||
291 | makeinfo*) | |
292 | echo 1>&2 "\ | |
293 | WARNING: \`$1' is $msg. You should only need it if | |
294 | you modified a \`.texi' or \`.texinfo' file, or any other file | |
295 | indirectly affecting the aspect of the manual. The spurious | |
296 | call might also be the consequence of using a buggy \`make' (AIX, | |
297 | DU, IRIX). You might want to install the \`Texinfo' package or | |
298 | the \`GNU make' package. Grab either from any GNU archive site." | |
299 | # The file to touch is that specified with -o ... | |
300 | file=`echo "$*" | sed -n "$sed_output"` | |
301 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
302 | if test -z "$file"; then | |
303 | # ... or it is the one specified with @setfilename ... | |
304 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
305 | file=`sed -n ' | |
306 | /^@setfilename/{ | |
307 | s/.* \([^ ]*\) *$/\1/ | |
308 | p | |
309 | q | |
310 | }' $infile` | |
311 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
312 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
313 | fi | |
314 | # If the file does not exist, the user really needs makeinfo; | |
315 | # let's fail without touching anything. | |
316 | test -f $file || exit 1 | |
317 | touch $file | |
318 | ;; | |
319 | ||
320 | tar*) | |
321 | shift | |
322 | ||
323 | # We have already tried tar in the generic part. | |
324 | # Look for gnutar/gtar before invocation to avoid ugly error | |
325 | # messages. | |
326 | if (gnutar --version > /dev/null 2>&1); then | |
327 | gnutar "$@" && exit 0 | |
328 | fi | |
329 | if (gtar --version > /dev/null 2>&1); then | |
330 | gtar "$@" && exit 0 | |
331 | fi | |
332 | firstarg="$1" | |
333 | if shift; then | |
334 | case $firstarg in | |
335 | *o*) | |
336 | firstarg=`echo "$firstarg" | sed s/o//` | |
337 | tar "$firstarg" "$@" && exit 0 | |
338 | ;; | |
339 | esac | |
340 | case $firstarg in | |
341 | *h*) | |
342 | firstarg=`echo "$firstarg" | sed s/h//` | |
343 | tar "$firstarg" "$@" && exit 0 | |
344 | ;; | |
345 | esac | |
346 | fi | |
347 | ||
348 | echo 1>&2 "\ | |
349 | WARNING: I can't seem to be able to run \`tar' with the given arguments. | |
350 | You may want to install GNU tar or Free paxutils, or check the | |
351 | command line arguments." | |
352 | exit 1 | |
353 | ;; | |
354 | ||
355 | *) | |
356 | echo 1>&2 "\ | |
357 | WARNING: \`$1' is needed, and is $msg. | |
358 | You might have modified some files without having the | |
359 | proper tools for further handling them. Check the \`README' file, | |
360 | it often tells you about the needed prerequisites for installing | |
361 | this package. You may also peek at any GNU archive site, in case | |
362 | some other package would contain this missing \`$1' program." | |
363 | exit 1 | |
364 | ;; | |
365 | esac | |
366 | ||
367 | exit 0 | |
79 | # Run the given program, remember its exit status. | |
80 | "$@"; st=$? | |
81 | ||
82 | # If it succeeded, we are done. | |
83 | test $st -eq 0 && exit 0 | |
84 | ||
85 | # Also exit now if we it failed (or wasn't found), and '--version' was | |
86 | # passed; such an option is passed most likely to detect whether the | |
87 | # program is present and works. | |
88 | case $2 in --version|--help) exit $st;; esac | |
89 | ||
90 | # Exit code 63 means version mismatch. This often happens when the user | |
91 | # tries to use an ancient version of a tool on a file that requires a | |
92 | # minimum version. | |
93 | if test $st -eq 63; then | |
94 | msg="probably too old" | |
95 | elif test $st -eq 127; then | |
96 | # Program was missing. | |
97 | msg="missing on your system" | |
98 | else | |
99 | # Program was found and executed, but failed. Give up. | |
100 | exit $st | |
101 | fi | |
102 | ||
103 | perl_URL=http://www.perl.org/ | |
104 | flex_URL=http://flex.sourceforge.net/ | |
105 | gnu_software_URL=http://www.gnu.org/software | |
106 | ||
107 | program_details () | |
108 | { | |
109 | case $1 in | |
110 | aclocal|automake) | |
111 | echo "The '$1' program is part of the GNU Automake package:" | |
112 | echo "<$gnu_software_URL/automake>" | |
113 | echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" | |
114 | echo "<$gnu_software_URL/autoconf>" | |
115 | echo "<$gnu_software_URL/m4/>" | |
116 | echo "<$perl_URL>" | |
117 | ;; | |
118 | autoconf|autom4te|autoheader) | |
119 | echo "The '$1' program is part of the GNU Autoconf package:" | |
120 | echo "<$gnu_software_URL/autoconf/>" | |
121 | echo "It also requires GNU m4 and Perl in order to run:" | |
122 | echo "<$gnu_software_URL/m4/>" | |
123 | echo "<$perl_URL>" | |
124 | ;; | |
125 | esac | |
126 | } | |
127 | ||
128 | give_advice () | |
129 | { | |
130 | # Normalize program name to check for. | |
131 | normalized_program=`echo "$1" | sed ' | |
132 | s/^gnu-//; t | |
133 | s/^gnu//; t | |
134 | s/^g//; t'` | |
135 | ||
136 | printf '%s\n' "'$1' is $msg." | |
137 | ||
138 | configure_deps="'configure.ac' or m4 files included by 'configure.ac'" | |
139 | case $normalized_program in | |
140 | autoconf*) | |
141 | echo "You should only need it if you modified 'configure.ac'," | |
142 | echo "or m4 files included by it." | |
143 | program_details 'autoconf' | |
144 | ;; | |
145 | autoheader*) | |
146 | echo "You should only need it if you modified 'acconfig.h' or" | |
147 | echo "$configure_deps." | |
148 | program_details 'autoheader' | |
149 | ;; | |
150 | automake*) | |
151 | echo "You should only need it if you modified 'Makefile.am' or" | |
152 | echo "$configure_deps." | |
153 | program_details 'automake' | |
154 | ;; | |
155 | aclocal*) | |
156 | echo "You should only need it if you modified 'acinclude.m4' or" | |
157 | echo "$configure_deps." | |
158 | program_details 'aclocal' | |
159 | ;; | |
160 | autom4te*) | |
161 | echo "You might have modified some maintainer files that require" | |
162 | echo "the 'autom4te' program to be rebuilt." | |
163 | program_details 'autom4te' | |
164 | ;; | |
165 | bison*|yacc*) | |
166 | echo "You should only need it if you modified a '.y' file." | |
167 | echo "You may want to install the GNU Bison package:" | |
168 | echo "<$gnu_software_URL/bison/>" | |
169 | ;; | |
170 | lex*|flex*) | |
171 | echo "You should only need it if you modified a '.l' file." | |
172 | echo "You may want to install the Fast Lexical Analyzer package:" | |
173 | echo "<$flex_URL>" | |
174 | ;; | |
175 | help2man*) | |
176 | echo "You should only need it if you modified a dependency" \ | |
177 | "of a man page." | |
178 | echo "You may want to install the GNU Help2man package:" | |
179 | echo "<$gnu_software_URL/help2man/>" | |
180 | ;; | |
181 | makeinfo*) | |
182 | echo "You should only need it if you modified a '.texi' file, or" | |
183 | echo "any other file indirectly affecting the aspect of the manual." | |
184 | echo "You might want to install the Texinfo package:" | |
185 | echo "<$gnu_software_URL/texinfo/>" | |
186 | echo "The spurious makeinfo call might also be the consequence of" | |
187 | echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" | |
188 | echo "want to install GNU make:" | |
189 | echo "<$gnu_software_URL/make/>" | |
190 | ;; | |
191 | *) | |
192 | echo "You might have modified some files without having the proper" | |
193 | echo "tools for further handling them. Check the 'README' file, it" | |
194 | echo "often tells you about the needed prerequisites for installing" | |
195 | echo "this package. You may also peek at any GNU archive site, in" | |
196 | echo "case some other package contains this missing '$1' program." | |
197 | ;; | |
198 | esac | |
199 | } | |
200 | ||
201 | give_advice "$1" | sed -e '1s/^/WARNING: /' \ | |
202 | -e '2,$s/^/ /' >&2 | |
203 | ||
204 | # Propagate the correct exit status (expected to be 127 for a program | |
205 | # not found, 63 for a program that failed due to version mismatch). | |
206 | exit $st | |
368 | 207 | |
369 | 208 | # Local variables: |
370 | 209 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
0 | /* Copyright (c) 1999-2009 Massachusetts Institute of Technology | |
0 | /* Copyright (c) 1999-2017 Massachusetts Institute of Technology | |
1 | 1 | * |
2 | 2 | * Permission is hereby granted, free of charge, to any person obtaining |
3 | 3 | * a copy of this software and associated documentation files (the |
6 | 6 | * distribute, sublicense, and/or sell copies of the Software, and to |
7 | 7 | * permit persons to whom the Software is furnished to do so, subject to |
8 | 8 | * the following conditions: |
9 | * | |
9 | * | |
10 | 10 | * The above copyright notice and this permission notice shall be |
11 | 11 | * included in all copies or substantial portions of the Software. |
12 | * | |
12 | * | |
13 | 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
14 | 14 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
15 | 15 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
55 | 55 | REAL mask_thresh, REAL *mask_prev, int init_mask_prev, |
56 | 56 | png_byte mask_byte, |
57 | 57 | int mny, int mstride, |
58 | int overlay, REAL *olayrow, REAL *olayrow2, | |
58 | int overlay, REAL *olayrow, REAL *olayrow2, | |
59 | 59 | colormap_t olay_cmap, REAL olaymin, REAL olaymax, |
60 | 60 | int ony, int ostride, |
61 | 61 | colormap_t cmap, |
79 | 79 | = row_pointer[3*i + 2] = mask_byte; |
80 | 80 | continue; |
81 | 81 | } |
82 | ||
82 | ||
83 | 83 | if (delta == 0.0) { |
84 | 84 | val = (datarow[n * stride] * weightrow + |
85 | 85 | datarow2[n * stride] * (1 - weightrow)); |
94 | 94 | else { |
95 | 95 | int n2 = PIN(0, n + (delta < 0.0 ? -1 : 1), data_width-1); |
96 | 96 | REAL absdelta = fabs(delta); |
97 | val = | |
97 | val = | |
98 | 98 | (datarow[n * stride] * (1 - absdelta) + |
99 | 99 | datarow[n2 * stride] * absdelta) * weightrow + |
100 | 100 | (datarow2[n * stride] * (1 - absdelta) + |
101 | datarow2[n2 * stride] * absdelta) * | |
101 | datarow2[n2 * stride] * absdelta) * | |
102 | 102 | (1 - weightrow); |
103 | 103 | if (overlay) |
104 | olayval = | |
104 | olayval = | |
105 | 105 | (olayrow[(n%ony) * ostride] * (1 - absdelta) + |
106 | 106 | olayrow[(n2%ony) * ostride] * absdelta) * weightrow + |
107 | 107 | (olayrow2[(n%ony) * ostride] * (1 - absdelta) + |
108 | olayrow2[(n2%ony) * ostride] * absdelta) * | |
108 | olayrow2[(n2%ony) * ostride] * absdelta) * | |
109 | 109 | (1 - weightrow); |
110 | 110 | if (maskrow != NULL) { |
111 | maskval = | |
111 | maskval = | |
112 | 112 | (maskrow[(n%mny) * mstride] * (1 - absdelta) + |
113 | 113 | maskrow[(n2%mny) * mstride] * absdelta) * weightrow + |
114 | 114 | (maskrow2[(n%mny) * mstride] * (1 - absdelta) + |
115 | maskrow2[(n2%mny) * mstride] * absdelta) * | |
115 | maskrow2[(n2%mny) * mstride] * absdelta) * | |
116 | 116 | (1 - weightrow); |
117 | 117 | } |
118 | 118 | } |
122 | 122 | if (init_mask_prev) |
123 | 123 | maskmin = maskmax = maskval; |
124 | 124 | else { |
125 | maskmin = MIN(MIN(maskval, i ? mask_prev[i-1] : maskval), | |
125 | maskmin = MIN(MIN(maskval, i ? mask_prev[i-1] : maskval), | |
126 | 126 | mask_prev[i]); |
127 | maskmax = MAX(MAX(maskval, i ? mask_prev[i-1] : maskval), | |
127 | maskmax = MAX(MAX(maskval, i ? mask_prev[i-1] : maskval), | |
128 | 128 | mask_prev[i]); |
129 | 129 | } |
130 | 130 | mask_prev[i] = maskval; |
137 | 137 | = row_pointer[3*i + 2] = mask_byte; |
138 | 138 | continue; |
139 | 139 | } |
140 | } | |
141 | ||
140 | } | |
141 | ||
142 | 142 | if (val > maxrange) |
143 | 143 | val = maxrange; |
144 | 144 | else if (val < minrange) |
145 | 145 | val = minrange; |
146 | ||
147 | if (eight_bit) | |
146 | ||
147 | if (eight_bit) | |
148 | 148 | row_pointer[i] = (val - minrange) * scale; |
149 | 149 | else if (overlay) { |
150 | 150 | float r, g, b, a, ro, go, bo, ao; |
189 | 189 | } |
190 | 190 | |
191 | 191 | /* set mask color: */ |
192 | palette[255].green = palette[255].blue = palette[255].red = mask_byte; | |
192 | palette[255].green = palette[255].blue = palette[255].red = mask_byte; | |
193 | 193 | } |
194 | 194 | |
195 | 195 | #define USE_ALPHA 0 |
222 | 222 | #endif |
223 | 223 | |
224 | 224 | void writepng(char *filename, |
225 | int nx, int ny, int transpose, | |
225 | int nx, int ny, int transpose, | |
226 | 226 | REAL skew, REAL scalex, REAL scaley, |
227 | 227 | REAL * data, |
228 | 228 | REAL *mask, REAL mask_thresh, |
245 | 245 | eight_bit = 0; |
246 | 246 | |
247 | 247 | /* compute png size from scaled (and possibly transposed) data size, |
248 | * and reverse the meaning of the scale factors; now they are what we | |
248 | * and reverse the meaning of the scale factors; now they are what we | |
249 | 249 | * multiply png coordinates by to get data coordinates: */ |
250 | 250 | |
251 | 251 | if (transpose) { |
308 | 308 | } |
309 | 309 | /* Set error handling. REQUIRED if you aren't supplying your own * |
310 | 310 | * error hadnling functions in the png_create_write_struct() call. */ |
311 | if (setjmp(png_ptr->jmpbuf)) { | |
311 | if (setjmp(png_jmpbuf(png_ptr))) { | |
312 | 312 | /* If we get here, we had a problem reading the file */ |
313 | 313 | fclose(fp); |
314 | 314 | png_destroy_write_struct(&png_ptr, (png_infopp) NULL); |
334 | 334 | PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); |
335 | 335 | else { |
336 | 336 | png_colorp palette; |
337 | ||
338 | 337 | png_set_IHDR(png_ptr, info_ptr, width, height, 8 /* bit_depth */ , |
339 | 338 | PNG_COLOR_TYPE_PALETTE, |
340 | 339 | PNG_INTERLACE_NONE, |
397 | 396 | if (transpose) |
398 | 397 | convert_row(width, data_width, scaley, offset, |
399 | 398 | data + n, data + n2, 1 - fabs(delta), |
400 | data_height, | |
399 | data_height, | |
401 | 400 | mask ? mask + (n%mny) : NULL, |
402 | 401 | mask ? mask + (n3%mny) : NULL, |
403 | 402 | mask_thresh, mask_prev, row == height-1, |
411 | 410 | convert_row(width, data_width, scaley, offset, |
412 | 411 | data + n * data_width, data + n2 * data_width, |
413 | 412 | 1 - fabs(delta), |
414 | 1, | |
413 | 1, | |
415 | 414 | mask ? mask + (n%mnx) * mny : NULL, |
416 | 415 | mask ? mask + (n3%mnx) * mny : NULL, |
417 | 416 | mask_thresh, mask_prev, row == height-1, |
433 | 432 | png_write_end(png_ptr, info_ptr); |
434 | 433 | |
435 | 434 | /* if you malloced the palette, free it here */ |
436 | free(info_ptr->palette); | |
435 | { | |
436 | png_colorp palette; int num_palette; | |
437 | if (0 != png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) | |
438 | png_free(png_ptr, palette); | |
439 | } | |
437 | 440 | |
438 | 441 | /* if you allocated any text comments, free them here */ |
439 | 442 | |
449 | 452 | /* In the following code, we use a heuristic algorithm to compute |
450 | 453 | * the range. The range is set to [-r, r], where r is computed |
451 | 454 | * as follows: |
452 | * | |
455 | * | |
453 | 456 | * 1) for each new data set, compute |
454 | 457 | * r' = sqrt(2.0 * (average of non-zero data[i]^2)) |
455 | * | |
458 | * | |
456 | 459 | * 2) r = max(r', r of previous data set) |
457 | 460 | */ |
458 | 461 | |
459 | 462 | #define WHITE_EPSILON 0.003921568627 /* 1 / 255 */ |
460 | 463 | |
461 | 464 | void writepng_autorange(char *filename, |
462 | int nx, int ny, int transpose, | |
465 | int nx, int ny, int transpose, | |
463 | 466 | REAL skew, REAL scalex,REAL scaley, |
464 | 467 | REAL * data, |
465 | 468 | REAL *mask, REAL mask_thresh, |