Codebase list h5utils / 98e9df1
Imported Upstream version 1.10 Bas Couwenberg 8 years ago
38 changed file(s) with 919 addition(s) and 1377 deletion(s). Raw diff Collapse all Expand all
00 #############################################################################
11
22 The h5utils package is
3 Copyright (c) 1999, 2000, 2001, 2002 by the Massachusetts Institute of Technology
3 Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005
4 by the Massachusetts Institute of Technology
45
56 #############################################################################
67 The following license applies to all files in the
0 2004-08-05 Steven G. Johnson <stevenj@ab-initio>
1
2 * NEWS, configure.ac: version bump
3
4 2004-08-03 Steven G. Johnson <stevenj@ab-initio>
5
6 * h5topng.c: don't mix declarations with code (thanks to Maarten
7 van Reeuwijk for the bug report)
8
9 2004-07-13 Steven G. Johnson <stevenj@ab-initio>
10
11 * NEWS: updated NEWS for 1.9
12
13 * configure.ac, h5math.c: update for latest libmatheval
14
15 2004-06-05 Steven G. Johnson <stevenj@ab-initio>
16
17 * arrayh5.c, arrayh5.h, h5topng.1.in, h5topng.c, writepng.c,
18 writepng.h: support Matlab-like notation for slices, tiling
19 overlay/contour to cover data
20
21 2004-05-24 Steven G. Johnson <stevenj@ab-initio>
22
23 * NEWS, configure.ac: version bump
24
25 * h5math.1, h5math.c: added h5math man page etc.
26
27 * h5tov5d.1: whoops
28
29 * h5math.c: wrapping
30
31 * h5fromh4.1, h5fromtxt.1, h5topng.1.in, h5totxt.1, h5tov5d.1,
32 h5tovtk.1: fixed copyright dates in man pages
33
34 * h5math.c: whoops
35
36 * h5math.c: make "t" variable the same as the last dimension,
37 consistent with slice convention
38
39 * Makefile.am, configure.ac, h5math.c: added h5math utility (still
40 needs man page)
41
42 * h5fromh4.c, h5fromitxt.c, h5fromtxt.c, h5topng.c, h5totxt.c,
43 h5tov5d.c, h5tovtk.c, h5utils.c, h5utils.h: use my_strdup
44 everywhere, get rid of some compiler warnings
45
46 2004-05-22 Steven G. Johnson <stevenj@ab-initio>
47
48 * Makefile.am: vpath build
49
50 * h5topng.1.in: fixed some formatting problems
51
52 * Makefile.am: make sure EXTRA_MANS is distributed
53
54 * NEWS: planned release date
55
56 * h5tovtk.c: whoops, missing '0'
57
58 * NEWS: note more digits
59
60 * arrayh5.c, h5totxt.c: whoops, screwed up slices
61
62 * NEWS: don't know release date yet
63
64 * NEWS, configure.ac: new version
65
66 * mkdist.sh: mkdist script
67
68 * ChangeLog: generate automatically
69
70 * Makefile.am: add latest colormaps
71
72 * h5topng.c: check for -8 with -A
73
74 * h5topng.1.in, h5topng.c, writepng.c, writepng.h: default to
75 24-bit output, -8 for old behavior
76
77 2004-05-21 Steven G. Johnson <stevenj@ab-initio>
78
79 * h5topng.1.in, h5totxt.1, h5tov5d.1, h5tovtk.1: updated man pages
80
81 * arrayh4.c, arrayh5.c, colormaps/bluered, colormaps/gray,
82 colormaps/green, colormaps/yarg, colormaps/yellow, copyright.h,
83 h5fromh4.c, h5fromitxt.c, h5fromtxt.c, h5topng.c, h5totxt.c,
84 h5tov5d.c, h5tovtk.c, h5utils.c, writepng.c, writepng.h: added
85 translucent overlay option
86
87 * h5topng.c: make nx = cols by default in h5topng
88
89 * INSTALL: INSTALL is supplied by automake --add-missing
90
91 * INSTALL, Makefile.am, arrayh5.c, arrayh5.h, configure.ac,
92 h5fromitxt.c, h5read.cc, h5topng.c, h5totxt.c, h5tov5d.c,
93 h5tovtk.c, install-sh: support multiple slice dimensions
94
95 2004-03-02 Steven G. Johnson <stevenj@ab-initio>
96
97 * Makefile.am, h5fromitxt.c: added h5fromitxt
98
99 2002-07-15 Steven G. Johnson <stevenj@ab-initio>
100
101 * NEWS, configure.in: bumped version
102
103 * h5read.cc: C++ fix for g++ 3.x, from Josselin Mouette
104
105 2002-06-14 Steven G. Johnson <stevenj@ab-initio>
106
107 * writepng.c: follow gd lib in initializing alpha before palette
108 (don't know if it matters)
109
110 * h5topng.c: don't use colormap dir for ./<colormap> or
111 /<colormap>
112
113 2002-05-30 Steven G. Johnson <stevenj@ab-initio>
114
115 * h5totxt.1, h5totxt.c: added -a and -. flags
116
117 2002-03-16 Steven G. Johnson <stevenj@ab-initio>
118
119 * NEWS: added 1.7.1 notes
120
121 * Makefile.in: export branch for make dist
122
123 * NEWS, configure.in: bumped version
124
125 * ChangeLog: updated
126
127 * README: added URL
128
129 * writepng.c: fixed array overrun causing floating-point
130 exceptions on Alpha (thanks to Marin Soljacic for the bug report)
131
132 * Makefile.am, configure.ac: fixed h5fromh4 and make dist
133
134 * writepng.c: fixed array overrun causing floating-point
135 exceptions on Alpha (thanks to Marin Soljacic for the bug report)
136
137 2002-03-14 Steven G. Johnson <stevenj@ab-initio>
138
139 * Makefile.am, Makefile.in, configure.ac, configure.in,
140 h5fromh4.c, h5fromtxt.c, h5topng.c, h5totxt.c, h5tov5d.c,
141 h5tovtk.c: use automake
142
143 2002-03-13 Steven G. Johnson <stevenj@ab-initio>
144
145 * Makefile.in: use mandir
146
147 2002-03-11 Steven G. Johnson <stevenj@ab-initio>
148
149 * README: added URL
150
151 2002-03-09 Steven G. Johnson <stevenj@ab-initio>
152
153 * h5topng.c: print warning for -c <h5file>
154
155 * Makefile.in: whoops
156
157 * h5fromh4.1, h5fromtxt.1, h5totxt.1, h5tov5d.1, NEWS,
158 h5topng.1.in, h5tovtk.1: updated dates
159
160 * INSTALL, README, README-h5utils.html: made more GNU-ly correct
161
162 * AUTHORS: added AUTHORS file to be GNU-ly correct
163
164 2002-03-05 Steven G. Johnson <stevenj@ab-initio>
165
166 * Makefile.in, h5fromh4.c, h5fromtxt.c, h5topng.c, h5totxt.c,
167 h5tov5d.c, h5tovtk.c, h5utils.c, h5utils.h: eliminated code
168 duplication
169
170 * NEWS, writepng.c: finally fixed garbage pixels bug in h5topng
171
172 * NEWS, arrayh5.c, arrayh5.h, h5read.cc, h5topng.1.in, h5topng.c,
173 h5totxt.1, h5totxt.c, h5tov5d.c, h5tovtk.c: added -0 option
174
175 * NEWS, h5topng.1.in, h5topng.c: added -R option
176
177 * colormaps/autumn, colormaps/bluered, colormaps/bone,
178 colormaps/colorcube, colormaps/cool, colormaps/copper,
179 colormaps/flag, colormaps/gray, colormaps/hot, colormaps/hsv,
180 colormaps/jet, colormaps/lines, colormaps/pink, colormaps/prism,
181 colormaps/spring, colormaps/summer, colormaps/vga,
182 colormaps/winter, h5topng.1.in, h5topng.c, writepng.c, writepng.h:
183 added alpha channel support to color maps
184
185 * h5topng.c: better error message for -c (catches common mistake)
186
187 * h5topng.1.in: slight improvements
188
189 * h5topng.c: have built-in gray colormap fallback
190
191 2002-03-04 Steven G. Johnson <stevenj@ab-initio>
192
193 * h5topng.1.in: minor improvements; noted hsv
194
195 * h5topng.1.in: linewrapped
196
197 * h5topng.1: whoops
198
199 * h5topng.1: linewrapped
200
201 * NEWS: updated for 1.7
202
203 * ChangeLog: added
204
205 * COPYING, README-h5utils.html, arrayh4.c, arrayh4.h, arrayh5.c,
206 arrayh5.h, copyright.h, h5fromh4.1, h5fromh4.c, h5fromtxt.1,
207 h5fromtxt.c, h5read.cc, h5topng.1.in, h5topng.c, h5totxt.1,
208 h5totxt.c, h5tov5d.1, h5tov5d.c, writepng.c, writepng.h: 2002
209 copyright year update
210
211 * h5tovtk.1, h5tovtk.c: fixed h5tovtk man page
212
213 2002-03-01 Steven G. Johnson <stevenj@ab-initio>
214
215 * h5topng.c: noted location of colormap files
216
217 * Makefile.in, configure.in, h5topng.1, h5topng.1.in, h5topng.c,
218 writepng.c, writepng.h: added variable colormap support
219
220 * h5read.cc: synced with latest arrayh5
221
222 * colormaps/autumn, colormaps/bluered, colormaps/bone,
223 colormaps/colorcube, colormaps/cool, colormaps/copper,
224 colormaps/flag, colormaps/gray, colormaps/hot, colormaps/hsv,
225 colormaps/jet, colormaps/lines, colormaps/pink, colormaps/prism,
226 colormaps/spring, colormaps/summer, colormaps/vga,
227 colormaps/winter: added some color map files
228
229 2002-01-05 Steven G. Johnson <stevenj@ab-initio>
230
231 * Makefile.in, arrayh5.c, arrayh5.h, configure.in, h5topng.c,
232 h5totxt.c, h5tov5d.c, h5tovtk.1, h5tovtk.c: added preliminary
233 h5tovtk
234
235 2001-10-16 Steven G. Johnson <stevenj@ab-initio>
236
237 * Makefile.in: Use CPPFLAGS and LDFLAGS when calling mkoctfile!
238 Thanks to Max Colice for the bug report.
239
240 2001-10-02 Steven G. Johnson <stevenj@ab-initio>
241
242 * h5tov5d.c: whoops, fixed datatype in -T mode
243
244 2001-09-22 Steven G. Johnson <stevenj@ab-initio>
245
246 * h5tov5d.c: slight bug fix in -T (?)
247
248 * NEWS, h5tov5d.1, h5tov5d.c: added -T option to h5tov5d
249
250 2001-03-18 Steven G. Johnson <stevenj@ab-initio>
251
252 * Makefile.in: whoops, fixed problem when --without-h5tov5d and
253 --without-h5fromh4 are used. Thanks to Nikola Ivanov Nikolov for
254 the fix.
255
256 2001-02-14 Steven G. Johnson <stevenj@ab-initio>
257
258 * h5fromtxt.1: minor fix
259
260 2001-01-17 Steven G. Johnson <stevenj@ab-initio>
261
262 * COPYING, NEWS, README-h5utils.html, arrayh4.c, arrayh4.h,
263 arrayh5.c, arrayh5.h, configure.in, copyright.h, h5fromh4.1,
264 h5fromh4.c, h5fromtxt.1, h5fromtxt.c, h5read.cc, h5topng.1,
265 h5topng.c, h5totxt.1, h5totxt.c, h5tov5d.1, h5tov5d.c, writepng.c,
266 writepng.h: Don't build h5fromh4 if h4toh5 is present. Bumped
267 version and copyright year.
268
269 2000-12-09 Steven G. Johnson <stevenj@ab-initio>
270
271 * Makefile.in: 'make dist' should call autoheader
272
273 * NEWS, configure.in: bumped version number
274
275 * Makefile.in, arrayh4.h, config.h.in, configure.in, h5tov5d.c:
276 Support disabling Octave plugin manually, in case of C++
277 craziness. Support Vis5d+ header file locations. Support Debian
278 HDF header file locations. Use autoheader.
279
280 2000-07-28 Steven G. Johnson <stevenj@ab-initio>
281
282 * writepng.c: fixed bug in contour plotting
283
284 2000-07-10 Steven G. Johnson <stevenj@ab-initio>
285
286 * NEWS: updated
287
288 2000-07-09 Steven G. Johnson <stevenj@ab-initio>
289
290 * README-h5utils.html: Note that HDF4 libraries are required for
291 h5fromh4.
292
293 * README-h5utils.html: documented h5fromh4
294
295 2000-05-30 Steven G. Johnson <stevenj@ab-initio>
296
297 * NEWS, h5topng.1, h5topng.c: Added -S <s> option to h5topng as a
298 shortcut for -X <s> -Y <s>.
299
300 2000-05-29 Steven G. Johnson <stevenj@ab-initio>
301
302 * NEWS, configure.in: bumped version
303
304 * h5fromh4.1: slight fixes
305
306 * h5fromh4.1: added h5fromh4 man page
307
308 * Makefile.in, arrayh4.c, arrayh4.h, configure.in, h5fromh4.c:
309 added h5fromh4
310
311 * h5fromtxt.c: got rid of spurious "sep" variable
312
313 2000-05-28 Steven G. Johnson <stevenj@ab-initio>
314
315 * h5fromtxt.c, h5topng.c, h5totxt.c, h5tov5d.c, Makefile.in, NEWS,
316 README-h5utils.html, arrayh5.c, arrayh5.h, configure.in,
317 h5fromtxt.1: added h5fromtxt
318
319 2000-02-01 Steven G. Johnson <stevenj@ab-initio>
320
321 * h5topng.1: slight correction
322
323 * h5topng.c: fix so it works without -C!
324
325 * NEWS, configure.in: bumped version
326
327 * h5topng.c, writepng.c, writepng.h, h5topng.1: improved crude
328 contour feature
329
330 * h5topng.1: Fixed display bug; thanks to Christoph Becher for the
331 correction.
332
333 2000-01-30 Steven G. Johnson <stevenj@ab-initio>
334
335 * NEWS: credited 1.3.3 bug report
336
337 * configure.in: bumped version
338
339 * NEWS, arrayh5.c: got rid of compiler warning
340
341 * writepng.c: bug fix (uninitialized var)
342
343 2000-01-29 Steven G. Johnson <stevenj@ab-initio>
344
345 * NEWS, h5topng.1, h5topng.c: added -Z option
346
347 2000-01-28 Steven G. Johnson <stevenj@ab-initio>
348
349 * h5topng.c: fixed typo
350
351 * configure.in, h5topng.1, h5topng.c, NEWS: now support h5topng -C
352 filename:dataset
353
354 * NEWS, configure.in: bumped version
355
356 * h5tov5d.c: fixed bug in joining hdf5 files
357
358 2000-01-27 Steven G. Johnson <stevenj@ab-initio>
359
360 * h5topng.c, h5totxt.c: fixed handling of -d option so that it
361 doesn't get overriden if only a single file specifies a dataset
362 via fname:dataset.
363
364 2000-01-21 Steven G. Johnson <stevenj@ab-initio>
365
366 * README-h5utils.html, NEWS: documented changes
367
368 * configure.in, h5tov5d.c, Makefile.in, config.h.in: detect -lv5d
369 library
370
371 * h5totxt.1, h5totxt.c, h5tov5d.1, h5tov5d.c, arrayh5.c,
372 arrayh5.h, configure.in, h5topng.1, h5topng.c: added
373 filename:dataset syntax
374
375 * NEWS, configure.in: bumped version
376
377 * h5totxt.c: fixed help message
378
379 2000-01-13 Steven G. Johnson <stevenj@ab-initio>
380
381 * Makefile.in, NEWS, configure.in: use CPPFLAGS when compiling
382
383 2000-01-01 Steven G. Johnson <stevenj@ab-initio>
384
385 * h5topng.1, h5topng.c, h5totxt.1, h5totxt.c, h5tov5d.1,
386 h5tov5d.c, writepng.c, writepng.h, COPYING, NEWS,
387 README-h5utils.html, arrayh5.c, arrayh5.h, configure.in,
388 copyright.h, h5read.cc: h5tov5d -o now joins; bumped copyright
389 year
390
391 * NEWS: noted changes
392
393 * configure.in: bumped version
394
395 * README-h5utils.html: noted man page
396
397 * README-h5utils.html: updated license
398
399 * h5topng.c, h5totxt.c, h5tov5d.1, h5tov5d.c, Makefile.in,
400 README-h5utils.html, configure.in, copyright.h, COPYING: added
401 h5tov5d
402
403 1999-12-31 Steven G. Johnson <stevenj@ab-initio>
404
405 * configure.in: some cleanup
406
407 * README-h5utils.html: Better documentation of (revised)
408 installation.
409
410 * Makefile.in, configure.in: install h5read.oct in right place
411
412 * Makefile.in: fixed install/uninstall rules so that they ignore
413 things that aren't built
414
415 1999-12-06 Steven G. Johnson <stevenj@ab-initio>
416
417 * README-h5utils.html: small fixes
418
419 * configure.in, h5totxt.1, h5totxt.c, Makefile.in, NEWS,
420 README-h5utils.html: added h5totxt
421
422 1999-11-22 Steven G. Johnson <stevenj@ab-initio>
423
424 * Makefile.in: don't strip (-s) man page!!
425
426 * README, README-h5utils.html: changed README to HTML
427
428 * Makefile.in, README, h5topng.1: added man page
429
430 * .png: got rid of garbage file
431
432 * Makefile.in: made sure 'make clean' gets rid of h5read.o
433
434 * configure.in, h5topng.c, config.h.in: various fixes
435
436 * COPYING: comment-ized license
437
438 * writepng.c, writepng.h, arrayh5.h, h5read.cc, h5topng.c,
439 arrayh5.c: added copyright notices
440
441 * Makefile.in: fixed clean targets
442
443 * COPYING: added MIT license
444
445 * configure.in, install-sh, Makefile, Makefile.in, config.h.in:
446 autoconfiscated
447
448 * README.writepng, .indent.pro: deleted extraneous files
449
450 * README: added README
451
452 * .indent.pro, .png, Makefile, README.writepng, arrayh5.c,
453 arrayh5.h, h5read.cc, h5topng.c, writepng.c, writepng.h: New file.
454
455 * .indent.pro, .png, Makefile, README.writepng, arrayh5.c,
456 arrayh5.h, h5read.cc, h5topng.c, writepng.c, writepng.h: created
457 h5utils repository
458
0 Generated by mkdist.sh
0 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
1 Foundation, Inc.
2
3 This file is free documentation; the Free Software Foundation gives
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
47 unlimited permission to copy, distribute and modify it.
58
69 Basic Installation
710 ==================
811
9 These are generic installation instructions.
12 These are generic installation instructions.
1013
1114 The `configure' shell script attempts to guess correct values for
1215 various system-dependent variables used during compilation. It uses
6669 Compilers and Options
6770 =====================
6871
69 Some systems require unusual options for compilation or linking that
70 the `configure' script does not know about. Run `./configure --help'
71 for details on some of the pertinent environment variables.
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
7275
7376 You can give `configure' initial values for configuration parameters
7477 by setting variables in the command line or in the environment. Here
8184 Compiling For Multiple Architectures
8285 ====================================
8386
84 You can compile the package for more than one kind of computer at the
87 You can compile the package for more than one kind of computer at the
8588 same time, by placing the object files for each architecture in their
8689 own directory. To do this, you must use a version of `make' that
8790 supports the `VPATH' variable, such as GNU `make'. `cd' to the
98101 Installation Names
99102 ==================
100103
101 By default, `make install' will install the package's files in
104 By default, `make install' will install the package's files in
102105 `/usr/local/bin', `/usr/local/man', etc. You can specify an
103106 installation prefix other than `/usr/local' by giving `configure' the
104 option `--prefix=PATH'.
107 option `--prefix=PREFIX'.
105108
106109 You can specify separate installation prefixes for
107110 architecture-specific files and architecture-independent files. If you
108 give `configure' the option `--exec-prefix=PATH', the package will use
109 PATH as the prefix for installing programs and libraries.
111 give `configure' the option `--exec-prefix=PREFIX', the package will
112 use PREFIX as the prefix for installing programs and libraries.
110113 Documentation and other data files will still use the regular prefix.
111114
112115 In addition, if you use an unusual directory layout you can give
113 options like `--bindir=PATH' to specify different values for particular
116 options like `--bindir=DIR' to specify different values for particular
114117 kinds of files. Run `configure --help' for a list of the directories
115118 you can set and what kinds of files go in them.
116119
121124 Optional Features
122125 =================
123126
124 Some packages pay attention to `--enable-FEATURE' options to
127 Some packages pay attention to `--enable-FEATURE' options to
125128 `configure', where FEATURE indicates an optional part of the package.
126129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
127130 is something like `gnu-as' or `x' (for the X Window System). The
136139 Specifying the System Type
137140 ==========================
138141
139 There may be some features `configure' cannot figure out
140 automatically, but needs to determine by the type of machine the package
141 will run on. Usually, assuming the package is built to be run on the
142 _same_ architectures, `configure' can figure that out, but if it prints
143 a message saying it cannot guess the machine type, give it the
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
144147 `--build=TYPE' option. TYPE can either be a short name for the system
145148 type, such as `sun4', or a canonical name which has the form:
146149
166169 Sharing Defaults
167170 ================
168171
169 If you want to set default values for `configure' scripts to share,
170 you can create a site shell script called `config.site' that gives
171 default values for variables like `CC', `cache_file', and `prefix'.
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
172175 `configure' looks for `PREFIX/share/config.site' if it exists, then
173176 `PREFIX/etc/config.site' if it exists. Or, you can set the
174177 `CONFIG_SITE' environment variable to the location of the site script.
177180 Defining Variables
178181 ==================
179182
180 Variables not defined in a site shell script can be set in the
183 Variables not defined in a site shell script can be set in the
181184 environment passed to `configure'. However, some packages may run
182185 configure again during the build, and the customized values of these
183186 variables may be lost. In order to avoid this problem, you should set
185188
186189 ./configure CC=/usr/local2/bin/gcc
187190
188 will cause the specified gcc to be used as the C compiler (unless it is
189 overridden in the site shell script).
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
190198
191199 `configure' Invocation
192200 ======================
193201
194 `configure' recognizes the following options to control how it
195 operates.
202 `configure' recognizes the following options to control how it operates.
196203
197204 `--help'
198205 `-h'
22 colormaps/gray colormaps/green colormaps/hot colormaps/hsv \
33 colormaps/jet colormaps/lines colormaps/pink colormaps/prism \
44 colormaps/spring colormaps/summer colormaps/vga colormaps/winter \
5 colormaps/yarg colormaps/yellow
5 colormaps/yarg colormaps/yellow colormaps/dkbluered
66
77 EXTRA_MANS = h5topng.1.in h5tov5d.1 h5fromh4.1 h5math.1
88 EXTRA_DIST = h5read.cc copyright.h $(COLORMAPS) $(EXTRA_MANS)
99
1010 noinst_PROGRAMS = h5fromitxt # quick hack, not really supported
1111 bin_PROGRAMS = h5totxt h5fromtxt h5tovtk @MORE_H5UTILS@
12 EXTRA_PROGRAMS = h5topng h5tov5d h5fromh4 h5math
12 EXTRA_PROGRAMS = h5topng h5tov5d h5fromh4 h4fromh5 h5math
1313
1414 dist_man_MANS = h5totxt.1 h5fromtxt.1 h5tovtk.1 @MORE_H5UTILS_MANS@
1515 nodist_man_MANS = @H5TOPNG_MAN@
3131 h5fromh4_SOURCES = h5fromh4.c arrayh4.c arrayh4.h $(COMMON_SRC)
3232 h5fromh4_LDADD = @H4_LIBS@
3333
34 h4fromh5_SOURCES = h4fromh5.c arrayh4.c arrayh4.h $(COMMON_SRC)
35 h4fromh5_LDADD = @H4_LIBS@
36
3437 h5math_SOURCES = h5math.c $(COMMON_SRC)
3538 h5math_LDADD = -lmatheval
3639
0 # Makefile.in generated by automake 1.8.4 from Makefile.am.
0 # Makefile.in generated by automake 1.9.5 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004 Free Software Foundation, Inc.
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1414 @SET_MAKE@
1515
1616
17 SOURCES = $(h5fromh4_SOURCES) $(h5fromitxt_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) $(h5tovtk_SOURCES)
17 SOURCES = $(h4fromh5_SOURCES) $(h5fromh4_SOURCES) $(h5fromitxt_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) $(h5tovtk_SOURCES)
1818
1919 srcdir = @srcdir@
2020 top_srcdir = @top_srcdir@
4040 bin_PROGRAMS = h5totxt$(EXEEXT) h5fromtxt$(EXEEXT) h5tovtk$(EXEEXT) \
4141 @MORE_H5UTILS@ $(am__empty)
4242 EXTRA_PROGRAMS = h5topng$(EXEEXT) h5tov5d$(EXEEXT) h5fromh4$(EXEEXT) \
43 h5math$(EXEEXT)
43 h4fromh5$(EXEEXT) h5math$(EXEEXT)
4444 subdir = .
4545 DIST_COMMON = README $(am__configure_deps) $(dist_man_MANS) \
4646 $(nobase_dist_pkgdata_DATA) $(srcdir)/Makefile.am \
4747 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
4848 $(srcdir)/h5topng.1.in $(top_srcdir)/configure AUTHORS COPYING \
49 ChangeLog INSTALL NEWS compile depcomp install-sh missing \
50 mkinstalldirs
49 ChangeLog INSTALL NEWS compile depcomp install-sh missing
5150 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
5251 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
5352 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
5453 $(ACLOCAL_M4)
5554 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
5655 configure.lineno configure.status.lineno
57 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
56 mkinstalldirs = $(install_sh) -d
5857 CONFIG_HEADER = config.h
5958 CONFIG_CLEAN_FILES = h5topng.1
60 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(octdir)"
59 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
60 "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(octdir)"
6161 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
6262 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
6363 am__objects_1 = arrayh5.$(OBJEXT) h5utils.$(OBJEXT)
64 am_h4fromh5_OBJECTS = h4fromh5.$(OBJEXT) arrayh4.$(OBJEXT) \
65 $(am__objects_1)
66 h4fromh5_OBJECTS = $(am_h4fromh5_OBJECTS)
67 h4fromh5_DEPENDENCIES =
6468 am_h5fromh4_OBJECTS = h5fromh4.$(OBJEXT) arrayh4.$(OBJEXT) \
6569 $(am__objects_1)
6670 h5fromh4_OBJECTS = $(am_h5fromh4_OBJECTS)
9195 DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
9296 depcomp = $(SHELL) $(top_srcdir)/depcomp
9397 am__depfiles_maybe = depfiles
94 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/arrayh4.Po ./$(DEPDIR)/arrayh5.Po \
95 @AMDEP_TRUE@ ./$(DEPDIR)/h5fromh4.Po ./$(DEPDIR)/h5fromitxt.Po \
96 @AMDEP_TRUE@ ./$(DEPDIR)/h5fromtxt.Po ./$(DEPDIR)/h5math.Po \
97 @AMDEP_TRUE@ ./$(DEPDIR)/h5topng.Po ./$(DEPDIR)/h5totxt.Po \
98 @AMDEP_TRUE@ ./$(DEPDIR)/h5tov5d-arrayh5.Po \
99 @AMDEP_TRUE@ ./$(DEPDIR)/h5tov5d-h5tov5d.Po \
100 @AMDEP_TRUE@ ./$(DEPDIR)/h5tov5d-h5utils.Po \
101 @AMDEP_TRUE@ ./$(DEPDIR)/h5tovtk.Po ./$(DEPDIR)/h5utils.Po \
102 @AMDEP_TRUE@ ./$(DEPDIR)/writepng.Po
10398 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
10499 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
105100 CCLD = $(CC)
106101 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
107 SOURCES = $(h5fromh4_SOURCES) $(h5fromitxt_SOURCES) \
108 $(h5fromtxt_SOURCES) $(h5math_SOURCES) $(h5topng_SOURCES) \
109 $(h5totxt_SOURCES) $(h5tov5d_SOURCES) $(h5tovtk_SOURCES)
110 DIST_SOURCES = $(h5fromh4_SOURCES) $(h5fromitxt_SOURCES) \
111 $(h5fromtxt_SOURCES) $(h5math_SOURCES) $(h5topng_SOURCES) \
112 $(h5totxt_SOURCES) $(h5tov5d_SOURCES) $(h5tovtk_SOURCES)
102 SOURCES = $(h4fromh5_SOURCES) $(h5fromh4_SOURCES) \
103 $(h5fromitxt_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \
104 $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) \
105 $(h5tovtk_SOURCES)
106 DIST_SOURCES = $(h4fromh5_SOURCES) $(h5fromh4_SOURCES) \
107 $(h5fromitxt_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \
108 $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) \
109 $(h5tovtk_SOURCES)
113110 man1dir = $(mandir)/man1
114111 NROFF = nroff
115112 MANS = $(dist_man_MANS) $(nodist_man_MANS)
113 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
114 am__vpath_adj = case $$p in \
115 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
116 *) f=$$p;; \
117 esac;
118 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
116119 nobase_dist_pkgdataDATA_INSTALL = $(install_sh_DATA)
117120 octDATA_INSTALL = $(INSTALL_DATA)
118121 DATA = $(nobase_dist_pkgdata_DATA) $(oct_DATA)
153156 H4TOH5 = @H4TOH5@
154157 H4_LIBS = @H4_LIBS@
155158 H5READ = @H5READ@
159 H5TOH4 = @H5TOH4@
156160 H5TOPNG_MAN = @H5TOPNG_MAN@
157161 INSTALL_DATA = @INSTALL_DATA@
158162 INSTALL_PROGRAM = @INSTALL_PROGRAM@
193197 am__include = @am__include@
194198 am__leading_dot = @am__leading_dot@
195199 am__quote = @am__quote@
200 am__tar = @am__tar@
201 am__untar = @am__untar@
196202 bindir = @bindir@
197203 build_alias = @build_alias@
198204 datadir = @datadir@
219225 colormaps/gray colormaps/green colormaps/hot colormaps/hsv \
220226 colormaps/jet colormaps/lines colormaps/pink colormaps/prism \
221227 colormaps/spring colormaps/summer colormaps/vga colormaps/winter \
222 colormaps/yarg colormaps/yellow
228 colormaps/yarg colormaps/yellow colormaps/dkbluered
223229
224230 EXTRA_MANS = h5topng.1.in h5tov5d.1 h5fromh4.1 h5math.1
225231 EXTRA_DIST = h5read.cc copyright.h $(COLORMAPS) $(EXTRA_MANS)
237243 h5tov5d_LDADD = @V5D_FILES@
238244 h5fromh4_SOURCES = h5fromh4.c arrayh4.c arrayh4.h $(COMMON_SRC)
239245 h5fromh4_LDADD = @H4_LIBS@
246 h4fromh5_SOURCES = h4fromh5.c arrayh4.c arrayh4.h $(COMMON_SRC)
247 h4fromh5_LDADD = @H4_LIBS@
240248 h5math_SOURCES = h5math.c $(COMMON_SRC)
241249 h5math_LDADD = -lmatheval
242250 octdir = @OCT_INSTALL_DIR@
325333
326334 clean-noinstPROGRAMS:
327335 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
336 h4fromh5$(EXEEXT): $(h4fromh5_OBJECTS) $(h4fromh5_DEPENDENCIES)
337 @rm -f h4fromh5$(EXEEXT)
338 $(LINK) $(h4fromh5_LDFLAGS) $(h4fromh5_OBJECTS) $(h4fromh5_LDADD) $(LIBS)
328339 h5fromh4$(EXEEXT): $(h5fromh4_OBJECTS) $(h5fromh4_DEPENDENCIES)
329340 @rm -f h5fromh4$(EXEEXT)
330341 $(LINK) $(h5fromh4_LDFLAGS) $(h5fromh4_OBJECTS) $(h5fromh4_LDADD) $(LIBS)
358369
359370 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrayh4.Po@am__quote@
360371 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrayh5.Po@am__quote@
372 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h4fromh5.Po@am__quote@
361373 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromh4.Po@am__quote@
362374 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromitxt.Po@am__quote@
363375 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromtxt.Po@am__quote@
375387 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
376388 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
377389 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
378 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
379 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380391 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
381392
382393 .c.obj:
383394 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
384395 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
385396 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
386 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
387 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
388398 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
389399
390400 h5tov5d-h5tov5d.o: h5tov5d.c
391401 @am__fastdepCC_TRUE@ if $(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; \
392402 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/h5tov5d-h5tov5d.Tpo" "$(DEPDIR)/h5tov5d-h5tov5d.Po"; else rm -f "$(DEPDIR)/h5tov5d-h5tov5d.Tpo"; exit 1; fi
393403 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5tov5d.c' object='h5tov5d-h5tov5d.o' libtool=no @AMDEPBACKSLASH@
394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/h5tov5d-h5tov5d.Po' tmpdepfile='$(DEPDIR)/h5tov5d-h5tov5d.TPo' @AMDEPBACKSLASH@
395 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
404 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
396405 @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
397406
398407 h5tov5d-h5tov5d.obj: h5tov5d.c
399408 @am__fastdepCC_TRUE@ if $(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`; \
400409 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/h5tov5d-h5tov5d.Tpo" "$(DEPDIR)/h5tov5d-h5tov5d.Po"; else rm -f "$(DEPDIR)/h5tov5d-h5tov5d.Tpo"; exit 1; fi
401410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5tov5d.c' object='h5tov5d-h5tov5d.obj' libtool=no @AMDEPBACKSLASH@
402 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/h5tov5d-h5tov5d.Po' tmpdepfile='$(DEPDIR)/h5tov5d-h5tov5d.TPo' @AMDEPBACKSLASH@
403 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
411 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
404412 @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`
405413
406414 h5tov5d-arrayh5.o: arrayh5.c
407415 @am__fastdepCC_TRUE@ if $(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; \
408416 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/h5tov5d-arrayh5.Tpo" "$(DEPDIR)/h5tov5d-arrayh5.Po"; else rm -f "$(DEPDIR)/h5tov5d-arrayh5.Tpo"; exit 1; fi
409417 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arrayh5.c' object='h5tov5d-arrayh5.o' libtool=no @AMDEPBACKSLASH@
410 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/h5tov5d-arrayh5.Po' tmpdepfile='$(DEPDIR)/h5tov5d-arrayh5.TPo' @AMDEPBACKSLASH@
411 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
418 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
412419 @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
413420
414421 h5tov5d-arrayh5.obj: arrayh5.c
415422 @am__fastdepCC_TRUE@ if $(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`; \
416423 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/h5tov5d-arrayh5.Tpo" "$(DEPDIR)/h5tov5d-arrayh5.Po"; else rm -f "$(DEPDIR)/h5tov5d-arrayh5.Tpo"; exit 1; fi
417424 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arrayh5.c' object='h5tov5d-arrayh5.obj' libtool=no @AMDEPBACKSLASH@
418 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/h5tov5d-arrayh5.Po' tmpdepfile='$(DEPDIR)/h5tov5d-arrayh5.TPo' @AMDEPBACKSLASH@
419 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
425 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
420426 @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`
421427
422428 h5tov5d-h5utils.o: h5utils.c
423429 @am__fastdepCC_TRUE@ if $(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; \
424430 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/h5tov5d-h5utils.Tpo" "$(DEPDIR)/h5tov5d-h5utils.Po"; else rm -f "$(DEPDIR)/h5tov5d-h5utils.Tpo"; exit 1; fi
425431 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5utils.c' object='h5tov5d-h5utils.o' libtool=no @AMDEPBACKSLASH@
426 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/h5tov5d-h5utils.Po' tmpdepfile='$(DEPDIR)/h5tov5d-h5utils.TPo' @AMDEPBACKSLASH@
427 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
432 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428433 @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
429434
430435 h5tov5d-h5utils.obj: h5utils.c
431436 @am__fastdepCC_TRUE@ if $(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`; \
432437 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/h5tov5d-h5utils.Tpo" "$(DEPDIR)/h5tov5d-h5utils.Po"; else rm -f "$(DEPDIR)/h5tov5d-h5utils.Tpo"; exit 1; fi
433438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='h5utils.c' object='h5tov5d-h5utils.obj' libtool=no @AMDEPBACKSLASH@
434 @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/h5tov5d-h5utils.Po' tmpdepfile='$(DEPDIR)/h5tov5d-h5utils.TPo' @AMDEPBACKSLASH@
435 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
439 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
436440 @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`
437441 uninstall-info-am:
438442 install-man1: $(man1_MANS) $(man_MANS)
483487 install-nobase_dist_pkgdataDATA: $(nobase_dist_pkgdata_DATA)
484488 @$(NORMAL_INSTALL)
485489 test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
486 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
490 @$(am__vpath_adj_setup) \
487491 list='$(nobase_dist_pkgdata_DATA)'; for p in $$list; do \
488492 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
489 case $$p in \
490 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
491 *) f=$$p;; \
492 esac; \
493 $(am__vpath_adj) \
493494 echo " $(nobase_dist_pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \
494495 $(nobase_dist_pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
495496 done
496497
497498 uninstall-nobase_dist_pkgdataDATA:
498499 @$(NORMAL_UNINSTALL)
499 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
500 @$(am__vpath_adj_setup) \
500501 list='$(nobase_dist_pkgdata_DATA)'; for p in $$list; do \
501 case $$p in \
502 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
503 *) f=$$p;; \
504 esac; \
502 $(am__vpath_adj) \
505503 echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \
506504 rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \
507505 done
510508 test -z "$(octdir)" || $(mkdir_p) "$(DESTDIR)$(octdir)"
511509 @list='$(oct_DATA)'; for p in $$list; do \
512510 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
513 f="`echo $$p | sed -e 's|^.*/||'`"; \
511 f=$(am__strip_dir) \
514512 echo " $(octDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(octdir)/$$f'"; \
515513 $(octDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(octdir)/$$f"; \
516514 done
518516 uninstall-octDATA:
519517 @$(NORMAL_UNINSTALL)
520518 @list='$(oct_DATA)'; for p in $$list; do \
521 f="`echo $$p | sed -e 's|^.*/||'`"; \
519 f=$(am__strip_dir) \
522520 echo " rm -f '$(DESTDIR)$(octdir)/$$f'"; \
523521 rm -f "$(DESTDIR)$(octdir)/$$f"; \
524522 done
544542 $(AWK) ' { files[$$0] = 1; } \
545543 END { for (i in files) print i; }'`; \
546544 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
547 test -z "$$unique" && unique=$$empty_fix; \
545 test -n "$$unique" || unique=$$empty_fix; \
548546 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
549547 $$tags $$unique; \
550548 fi
607605 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
608606 || chmod -R a+r $(distdir)
609607 dist-gzip: distdir
610 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
608 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
611609 $(am__remove_distdir)
612610
613611 dist-bzip2: distdir
614 $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
612 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
615613 $(am__remove_distdir)
616614
617615 dist-tarZ: distdir
618 $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
616 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
619617 $(am__remove_distdir)
620618
621619 dist-shar: distdir
628626 $(am__remove_distdir)
629627
630628 dist dist-all: distdir
631 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
629 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
632630 $(am__remove_distdir)
633631
634632 # This target untars the dist file and tries a VPATH configuration. Then
637635 distcheck: dist
638636 case '$(DIST_ARCHIVES)' in \
639637 *.tar.gz*) \
640 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
638 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
641639 *.tar.bz2*) \
642 bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
640 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
643641 *.tar.Z*) \
644 uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
642 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
645643 *.shar.gz*) \
646644 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
647645 *.zip*) \
724722 clean-generic:
725723
726724 distclean-generic:
727 -rm -f $(CONFIG_CLEAN_FILES)
725 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
728726
729727 maintainer-clean-generic:
730728 @echo "This command is intended for maintainers to use"
0 h5utils 1.10 (9/2/05)
1
2 * Added h4fromh5 utility. (NCSA seems to be no longer shipping
3 the HDF5/HDF4 conversion tools with the latest HDF5 release.)
4
5 * Added dkbluered color map, which is similar to bluered but
6 uses a somewhat wider range of colors.
7
08 h5utils 1.9.1 (8/5/04)
19
210 * Fix h5topng compilation failure with some non-C99 compilers;
0 # generated automatically by aclocal 1.8.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 # Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.9.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 # -*- Autoconf -*-
14 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
15 # Generated from amversion.in; do not edit by hand.
16
17 # This program is free software; you can redistribute it and/or modify
18 # it under the terms of the GNU General Public License as published by
19 # the Free Software Foundation; either version 2, or (at your option)
20 # any later version.
21
22 # This program is distributed in the hope that it will be useful,
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 # GNU General Public License for more details.
26
27 # You should have received a copy of the GNU General Public License
28 # along with this program; if not, write to the Free Software
29 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
13 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14 #
15 # This file is free software; the Free Software Foundation
16 # gives unlimited permission to copy and/or distribute it,
17 # with or without modifications, as long as this notice is preserved.
3018
3119 # AM_AUTOMAKE_VERSION(VERSION)
3220 # ----------------------------
3321 # Automake X.Y traces this macro to ensure aclocal.m4 has been
3422 # generated from the m4 files accompanying Automake X.Y.
35 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
23 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
3624
3725 # AM_SET_CURRENT_AUTOMAKE_VERSION
3826 # -------------------------------
3927 # Call AM_AUTOMAKE_VERSION so it can be traced.
4028 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
4129 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
42 [AM_AUTOMAKE_VERSION([1.8.4])])
43
44 # AM_AUX_DIR_EXPAND
45
46 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
47
48 # This program is free software; you can redistribute it and/or modify
49 # it under the terms of the GNU General Public License as published by
50 # the Free Software Foundation; either version 2, or (at your option)
51 # any later version.
52
53 # This program is distributed in the hope that it will be useful,
54 # but WITHOUT ANY WARRANTY; without even the implied warranty of
55 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 # GNU General Public License for more details.
57
58 # You should have received a copy of the GNU General Public License
59 # along with this program; if not, write to the Free Software
60 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
61 # 02111-1307, USA.
30 [AM_AUTOMAKE_VERSION([1.9.5])])
31
32 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
33
34 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
35 #
36 # This file is free software; the Free Software Foundation
37 # gives unlimited permission to copy and/or distribute it,
38 # with or without modifications, as long as this notice is preserved.
6239
6340 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6441 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
10582 am_aux_dir=`cd $ac_aux_dir && pwd`
10683 ])
10784
108 # AM_CONDITIONAL -*- Autoconf -*-
109
110 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
111
112 # This program is free software; you can redistribute it and/or modify
113 # it under the terms of the GNU General Public License as published by
114 # the Free Software Foundation; either version 2, or (at your option)
115 # any later version.
116
117 # This program is distributed in the hope that it will be useful,
118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
120 # GNU General Public License for more details.
121
122 # You should have received a copy of the GNU General Public License
123 # along with this program; if not, write to the Free Software
124 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
125 # 02111-1307, USA.
126
127 # serial 6
85 # AM_CONDITIONAL -*- Autoconf -*-
86
87 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
88 # Free Software Foundation, Inc.
89 #
90 # This file is free software; the Free Software Foundation
91 # gives unlimited permission to copy and/or distribute it,
92 # with or without modifications, as long as this notice is preserved.
93
94 # serial 7
12895
12996 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
13097 # -------------------------------------
144111 fi
145112 AC_CONFIG_COMMANDS_PRE(
146113 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
147 AC_MSG_ERROR([conditional "$1" was never defined.
148 Usually this means the macro was only invoked conditionally.])
114 AC_MSG_ERROR([[conditional "$1" was never defined.
115 Usually this means the macro was only invoked conditionally.]])
149116 fi])])
150117
151 # serial 7 -*- Autoconf -*-
152
153 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
118
119 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
154120 # Free Software Foundation, Inc.
155
156 # This program is free software; you can redistribute it and/or modify
157 # it under the terms of the GNU General Public License as published by
158 # the Free Software Foundation; either version 2, or (at your option)
159 # any later version.
160
161 # This program is distributed in the hope that it will be useful,
162 # but WITHOUT ANY WARRANTY; without even the implied warranty of
163 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
164 # GNU General Public License for more details.
165
166 # You should have received a copy of the GNU General Public License
167 # along with this program; if not, write to the Free Software
168 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
169 # 02111-1307, USA.
170
121 #
122 # This file is free software; the Free Software Foundation
123 # gives unlimited permission to copy and/or distribute it,
124 # with or without modifications, as long as this notice is preserved.
125
126 # serial 8
171127
172128 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
173129 # written in clear, in which case automake, when reading aclocal.m4,
174130 # will think it sees a *use*, and therefore will trigger all it's
175131 # C support machinery. Also note that it means that autoscan, seeing
176132 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
177
178133
179134
180135 # _AM_DEPENDENCIES(NAME)
316271 AC_SUBST([AMDEPBACKSLASH])
317272 ])
318273
319 # Generate code to set up dependency tracking. -*- Autoconf -*-
320
321 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
322
323 # This program is free software; you can redistribute it and/or modify
324 # it under the terms of the GNU General Public License as published by
325 # the Free Software Foundation; either version 2, or (at your option)
326 # any later version.
327
328 # This program is distributed in the hope that it will be useful,
329 # but WITHOUT ANY WARRANTY; without even the implied warranty of
330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
331 # GNU General Public License for more details.
332
333 # You should have received a copy of the GNU General Public License
334 # along with this program; if not, write to the Free Software
335 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
336 # 02111-1307, USA.
337
338 #serial 2
274 # Generate code to set up dependency tracking. -*- Autoconf -*-
275
276 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
277 # Free Software Foundation, Inc.
278 #
279 # This file is free software; the Free Software Foundation
280 # gives unlimited permission to copy and/or distribute it,
281 # with or without modifications, as long as this notice is preserved.
282
283 #serial 3
339284
340285 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341286 # ------------------------------
354299 else
355300 continue
356301 fi
357 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
358 # Extract the definition of DEP_FILES from the Makefile without
359 # running `make'.
302 # Extract the definition of DEPDIR, am__include, and am__quote
303 # from the Makefile without running `make'.
360304 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
361305 test -z "$DEPDIR" && continue
306 am__include=`sed -n 's/^am__include = //p' < "$mf"`
307 test -z "am__include" && continue
308 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
362309 # When using ansi2knr, U may be empty or an underscore; expand it
363310 U=`sed -n 's/^U = //p' < "$mf"`
364 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
365 # We invoke sed twice because it is the simplest approach to
366 # changing $(DEPDIR) to its actual value in the expansion.
367 for file in `sed -n '
368 /^DEP_FILES = .*\\\\$/ {
369 s/^DEP_FILES = //
370 :loop
371 s/\\\\$//
372 p
373 n
374 /\\\\$/ b loop
375 p
376 }
377 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
311 # Find all dependency output files, they are included files with
312 # $(DEPDIR) in their names. We invoke sed twice because it is the
313 # simplest approach to changing $(DEPDIR) to its actual value in the
314 # expansion.
315 for file in `sed -n "
316 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
378317 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
379318 # Make sure the directory exists.
380319 test -f "$dirpart/$file" && continue
400339 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
401340 ])
402341
403 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
404
405 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
406
407 # This program is free software; you can redistribute it and/or modify
408 # it under the terms of the GNU General Public License as published by
409 # the Free Software Foundation; either version 2, or (at your option)
410 # any later version.
411
412 # This program is distributed in the hope that it will be useful,
413 # but WITHOUT ANY WARRANTY; without even the implied warranty of
414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
415 # GNU General Public License for more details.
416
417 # You should have received a copy of the GNU General Public License
418 # along with this program; if not, write to the Free Software
419 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
420 # 02111-1307, USA.
421
422 # serial 7
342 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
343 # Free Software Foundation, Inc.
344 #
345 # This file is free software; the Free Software Foundation
346 # gives unlimited permission to copy and/or distribute it,
347 # with or without modifications, as long as this notice is preserved.
348
349 # serial 8
423350
424351 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
425352 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
426353
427 # Do all the work for Automake. -*- Autoconf -*-
428
429 # This macro actually does too much some checks are only needed if
354 # Do all the work for Automake. -*- Autoconf -*-
355
356 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
357 # Free Software Foundation, Inc.
358 #
359 # This file is free software; the Free Software Foundation
360 # gives unlimited permission to copy and/or distribute it,
361 # with or without modifications, as long as this notice is preserved.
362
363 # serial 12
364
365 # This macro actually does too much. Some checks are only needed if
430366 # your package does certain things. But this isn't really a big deal.
431
432 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
433 # Free Software Foundation, Inc.
434
435 # This program is free software; you can redistribute it and/or modify
436 # it under the terms of the GNU General Public License as published by
437 # the Free Software Foundation; either version 2, or (at your option)
438 # any later version.
439
440 # This program is distributed in the hope that it will be useful,
441 # but WITHOUT ANY WARRANTY; without even the implied warranty of
442 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
443 # GNU General Public License for more details.
444
445 # You should have received a copy of the GNU General Public License
446 # along with this program; if not, write to the Free Software
447 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
448 # 02111-1307, USA.
449
450 # serial 11
451367
452368 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
453369 # AM_INIT_AUTOMAKE([OPTIONS])
505421 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
506422 AM_MISSING_PROG(AUTOHEADER, autoheader)
507423 AM_MISSING_PROG(MAKEINFO, makeinfo)
508 AM_MISSING_PROG(AMTAR, tar)
509424 AM_PROG_INSTALL_SH
510425 AM_PROG_INSTALL_STRIP
511426 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
514429 AC_REQUIRE([AC_PROG_AWK])dnl
515430 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
516431 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
517
432 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
433 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
434 [_AM_PROG_TAR([v7])])])
518435 _AM_IF_OPTION([no-dependencies],,
519436 [AC_PROVIDE_IFELSE([AC_PROG_CC],
520437 [_AM_DEPENDENCIES(CC)],
548465 done
549466 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
550467
468 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
469 #
470 # This file is free software; the Free Software Foundation
471 # gives unlimited permission to copy and/or distribute it,
472 # with or without modifications, as long as this notice is preserved.
473
551474 # AM_PROG_INSTALL_SH
552475 # ------------------
553476 # Define $install_sh.
554
555 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
556
557 # This program is free software; you can redistribute it and/or modify
558 # it under the terms of the GNU General Public License as published by
559 # the Free Software Foundation; either version 2, or (at your option)
560 # any later version.
561
562 # This program is distributed in the hope that it will be useful,
563 # but WITHOUT ANY WARRANTY; without even the implied warranty of
564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
565 # GNU General Public License for more details.
566
567 # You should have received a copy of the GNU General Public License
568 # along with this program; if not, write to the Free Software
569 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
570 # 02111-1307, USA.
571
572477 AC_DEFUN([AM_PROG_INSTALL_SH],
573478 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
574479 install_sh=${install_sh-"$am_aux_dir/install-sh"}
575480 AC_SUBST(install_sh)])
576481
577 # -*- Autoconf -*-
578 # Copyright (C) 2003 Free Software Foundation, Inc.
579
580 # This program is free software; you can redistribute it and/or modify
581 # it under the terms of the GNU General Public License as published by
582 # the Free Software Foundation; either version 2, or (at your option)
583 # any later version.
584
585 # This program is distributed in the hope that it will be useful,
586 # but WITHOUT ANY WARRANTY; without even the implied warranty of
587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
588 # GNU General Public License for more details.
589
590 # You should have received a copy of the GNU General Public License
591 # along with this program; if not, write to the Free Software
592 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
593 # 02111-1307, USA.
594
595 # serial 1
482 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
483 #
484 # This file is free software; the Free Software Foundation
485 # gives unlimited permission to copy and/or distribute it,
486 # with or without modifications, as long as this notice is preserved.
487
488 # serial 2
596489
597490 # Check whether the underlying file-system supports filenames
598491 # with a leading dot. For instance MS-DOS doesn't.
607500 rmdir .tst 2>/dev/null
608501 AC_SUBST([am__leading_dot])])
609502
610 # Add --enable-maintainer-mode option to configure.
503 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
611504 # From Jim Meyering
612505
613 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
506 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
614507 # Free Software Foundation, Inc.
615
616 # This program is free software; you can redistribute it and/or modify
617 # it under the terms of the GNU General Public License as published by
618 # the Free Software Foundation; either version 2, or (at your option)
619 # any later version.
620
621 # This program is distributed in the hope that it will be useful,
622 # but WITHOUT ANY WARRANTY; without even the implied warranty of
623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
624 # GNU General Public License for more details.
625
626 # You should have received a copy of the GNU General Public License
627 # along with this program; if not, write to the Free Software
628 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
629 # 02111-1307, USA.
630
631 # serial 3
508 #
509 # This file is free software; the Free Software Foundation
510 # gives unlimited permission to copy and/or distribute it,
511 # with or without modifications, as long as this notice is preserved.
512
513 # serial 4
632514
633515 AC_DEFUN([AM_MAINTAINER_MODE],
634516 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
647529
648530 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
649531
650 # Check to see how 'make' treats includes. -*- Autoconf -*-
651
652 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
653
654 # This program is free software; you can redistribute it and/or modify
655 # it under the terms of the GNU General Public License as published by
656 # the Free Software Foundation; either version 2, or (at your option)
657 # any later version.
658
659 # This program is distributed in the hope that it will be useful,
660 # but WITHOUT ANY WARRANTY; without even the implied warranty of
661 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
662 # GNU General Public License for more details.
663
664 # You should have received a copy of the GNU General Public License
665 # along with this program; if not, write to the Free Software
666 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
667 # 02111-1307, USA.
668
669 # serial 2
532 # Check to see how 'make' treats includes. -*- Autoconf -*-
533
534 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
535 #
536 # This file is free software; the Free Software Foundation
537 # gives unlimited permission to copy and/or distribute it,
538 # with or without modifications, as long as this notice is preserved.
539
540 # serial 3
670541
671542 # AM_MAKE_INCLUDE()
672543 # -----------------
710581 rm -f confinc confmf
711582 ])
712583
713 # -*- Autoconf -*-
714
715
716 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
717
718 # This program is free software; you can redistribute it and/or modify
719 # it under the terms of the GNU General Public License as published by
720 # the Free Software Foundation; either version 2, or (at your option)
721 # any later version.
722
723 # This program is distributed in the hope that it will be useful,
724 # but WITHOUT ANY WARRANTY; without even the implied warranty of
725 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
726 # GNU General Public License for more details.
727
728 # You should have received a copy of the GNU General Public License
729 # along with this program; if not, write to the Free Software
730 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
731 # 02111-1307, USA.
732
733 # serial 3
584 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
585
586 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
587 # Free Software Foundation, Inc.
588 #
589 # This file is free software; the Free Software Foundation
590 # gives unlimited permission to copy and/or distribute it,
591 # with or without modifications, as long as this notice is preserved.
592
593 # serial 4
734594
735595 # AM_MISSING_PROG(NAME, PROGRAM)
736596 # ------------------------------
756616 fi
757617 ])
758618
619 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
620 #
621 # This file is free software; the Free Software Foundation
622 # gives unlimited permission to copy and/or distribute it,
623 # with or without modifications, as long as this notice is preserved.
624
759625 # AM_PROG_MKDIR_P
760626 # ---------------
761627 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
762
763 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
764
765 # This program is free software; you can redistribute it and/or modify
766 # it under the terms of the GNU General Public License as published by
767 # the Free Software Foundation; either version 2, or (at your option)
768 # any later version.
769
770 # This program is distributed in the hope that it will be useful,
771 # but WITHOUT ANY WARRANTY; without even the implied warranty of
772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
773 # GNU General Public License for more details.
774
775 # You should have received a copy of the GNU General Public License
776 # along with this program; if not, write to the Free Software
777 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
778 # 02111-1307, USA.
779
628 #
780629 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
781630 # created by `make install' are always world readable, even if the
782631 # installer happens to have an overly restrictive umask (e.g. 077).
797646 # this.)
798647 AC_DEFUN([AM_PROG_MKDIR_P],
799648 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
800 # Keeping the `.' argument allows $(mkdir_p) to be used without
801 # argument. Indeed, we sometimes output rules like
649 # We used to keeping the `.' as first argument, in order to
650 # allow $(mkdir_p) to be used without argument. As in
802651 # $(mkdir_p) $(somedir)
803 # where $(somedir) is conditionally defined.
804 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
805 # expensive solution, as it forces Make to start a sub-shell.)
806 mkdir_p='mkdir -p -- .'
652 # where $(somedir) is conditionally defined. However this is wrong
653 # for two reasons:
654 # 1. if the package is installed by a user who cannot write `.'
655 # make install will fail,
656 # 2. the above comment should most certainly read
657 # $(mkdir_p) $(DESTDIR)$(somedir)
658 # so it does not work when $(somedir) is undefined and
659 # $(DESTDIR) is not.
660 # To support the latter case, we have to write
661 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
662 # so the `.' trick is pointless.
663 mkdir_p='mkdir -p --'
807664 else
808665 # On NextStep and OpenStep, the `mkdir' command does not
809666 # recognize any option. It will interpret all options as
822679 fi
823680 AC_SUBST([mkdir_p])])
824681
825 # Helper functions for option handling. -*- Autoconf -*-
826
827 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
828
829 # This program is free software; you can redistribute it and/or modify
830 # it under the terms of the GNU General Public License as published by
831 # the Free Software Foundation; either version 2, or (at your option)
832 # any later version.
833
834 # This program is distributed in the hope that it will be useful,
835 # but WITHOUT ANY WARRANTY; without even the implied warranty of
836 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
837 # GNU General Public License for more details.
838
839 # You should have received a copy of the GNU General Public License
840 # along with this program; if not, write to the Free Software
841 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
842 # 02111-1307, USA.
843
844 # serial 2
682 # Helper functions for option handling. -*- Autoconf -*-
683
684 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
685 #
686 # This file is free software; the Free Software Foundation
687 # gives unlimited permission to copy and/or distribute it,
688 # with or without modifications, as long as this notice is preserved.
689
690 # serial 3
845691
846692 # _AM_MANGLE_OPTION(NAME)
847693 # -----------------------
866712 AC_DEFUN([_AM_IF_OPTION],
867713 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
868714
869 #
870 # Check to make sure that the build environment is sane.
871 #
872
873 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
874
875 # This program is free software; you can redistribute it and/or modify
876 # it under the terms of the GNU General Public License as published by
877 # the Free Software Foundation; either version 2, or (at your option)
878 # any later version.
879
880 # This program is distributed in the hope that it will be useful,
881 # but WITHOUT ANY WARRANTY; without even the implied warranty of
882 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
883 # GNU General Public License for more details.
884
885 # You should have received a copy of the GNU General Public License
886 # along with this program; if not, write to the Free Software
887 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
888 # 02111-1307, USA.
889
890 # serial 3
715 # Check to make sure that the build environment is sane. -*- Autoconf -*-
716
717 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
718 # Free Software Foundation, Inc.
719 #
720 # This file is free software; the Free Software Foundation
721 # gives unlimited permission to copy and/or distribute it,
722 # with or without modifications, as long as this notice is preserved.
723
724 # serial 4
891725
892726 # AM_SANITY_CHECK
893727 # ---------------
930764 fi
931765 AC_MSG_RESULT(yes)])
932766
767 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
768 #
769 # This file is free software; the Free Software Foundation
770 # gives unlimited permission to copy and/or distribute it,
771 # with or without modifications, as long as this notice is preserved.
772
933773 # AM_PROG_INSTALL_STRIP
934
935 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
936
937 # This program is free software; you can redistribute it and/or modify
938 # it under the terms of the GNU General Public License as published by
939 # the Free Software Foundation; either version 2, or (at your option)
940 # any later version.
941
942 # This program is distributed in the hope that it will be useful,
943 # but WITHOUT ANY WARRANTY; without even the implied warranty of
944 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
945 # GNU General Public License for more details.
946
947 # You should have received a copy of the GNU General Public License
948 # along with this program; if not, write to the Free Software
949 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
950 # 02111-1307, USA.
951
774 # ---------------------
952775 # One issue with vendor `install' (even GNU) is that you can't
953776 # specify the program used to strip binaries. This is especially
954777 # annoying in cross-compiling environments, where the build's strip
969792 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
970793 AC_SUBST([INSTALL_STRIP_PROGRAM])])
971794
795 # Check how to create a tarball. -*- Autoconf -*-
796
797 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
798 #
799 # This file is free software; the Free Software Foundation
800 # gives unlimited permission to copy and/or distribute it,
801 # with or without modifications, as long as this notice is preserved.
802
803 # serial 2
804
805 # _AM_PROG_TAR(FORMAT)
806 # --------------------
807 # Check how to create a tarball in format FORMAT.
808 # FORMAT should be one of `v7', `ustar', or `pax'.
809 #
810 # Substitute a variable $(am__tar) that is a command
811 # writing to stdout a FORMAT-tarball containing the directory
812 # $tardir.
813 # tardir=directory && $(am__tar) > result.tar
814 #
815 # Substitute a variable $(am__untar) that extract such
816 # a tarball read from stdin.
817 # $(am__untar) < result.tar
818 AC_DEFUN([_AM_PROG_TAR],
819 [# Always define AMTAR for backward compatibility.
820 AM_MISSING_PROG([AMTAR], [tar])
821 m4_if([$1], [v7],
822 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
823 [m4_case([$1], [ustar],, [pax],,
824 [m4_fatal([Unknown tar format])])
825 AC_MSG_CHECKING([how to create a $1 tar archive])
826 # Loop over all known methods to create a tar archive until one works.
827 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
828 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
829 # Do not fold the above two line into one, because Tru64 sh and
830 # Solaris sh will not grok spaces in the rhs of `-'.
831 for _am_tool in $_am_tools
832 do
833 case $_am_tool in
834 gnutar)
835 for _am_tar in tar gnutar gtar;
836 do
837 AM_RUN_LOG([$_am_tar --version]) && break
838 done
839 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
840 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
841 am__untar="$_am_tar -xf -"
842 ;;
843 plaintar)
844 # Must skip GNU tar: if it does not support --format= it doesn't create
845 # ustar tarball either.
846 (tar --version) >/dev/null 2>&1 && continue
847 am__tar='tar chf - "$$tardir"'
848 am__tar_='tar chf - "$tardir"'
849 am__untar='tar xf -'
850 ;;
851 pax)
852 am__tar='pax -L -x $1 -w "$$tardir"'
853 am__tar_='pax -L -x $1 -w "$tardir"'
854 am__untar='pax -r'
855 ;;
856 cpio)
857 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
858 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
859 am__untar='cpio -i -H $1 -d'
860 ;;
861 none)
862 am__tar=false
863 am__tar_=false
864 am__untar=false
865 ;;
866 esac
867
868 # If the value was cached, stop now. We just wanted to have am__tar
869 # and am__untar set.
870 test -n "${am_cv_prog_tar_$1}" && break
871
872 # tar/untar a dummy directory, and stop if the command works
873 rm -rf conftest.dir
874 mkdir conftest.dir
875 echo GrepMe > conftest.dir/file
876 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
877 rm -rf conftest.dir
878 if test -s conftest.tar; then
879 AM_RUN_LOG([$am__untar <conftest.tar])
880 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
881 fi
882 done
883 rm -rf conftest.dir
884
885 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
886 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
887 AC_SUBST([am__tar])
888 AC_SUBST([am__untar])
889 ]) # _AM_PROG_TAR
890
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 # red-yellow color map (from Matlab)
0 # red-yellow color map (based on Matlab colormap)
11 1.0000000e+00 0.0000000e+00 0.0000000e+00 1
2 1.0000000e+00 6.6666667e-02 0.0000000e+00 1
3 1.0000000e+00 1.3333333e-01 0.0000000e+00 1
4 1.0000000e+00 2.0000000e-01 0.0000000e+00 1
5 1.0000000e+00 2.6666667e-01 0.0000000e+00 1
6 1.0000000e+00 3.3333333e-01 0.0000000e+00 1
7 1.0000000e+00 4.0000000e-01 0.0000000e+00 1
8 1.0000000e+00 4.6666667e-01 0.0000000e+00 1
9 1.0000000e+00 5.3333333e-01 0.0000000e+00 1
10 1.0000000e+00 6.0000000e-01 0.0000000e+00 1
11 1.0000000e+00 6.6666667e-01 0.0000000e+00 1
12 1.0000000e+00 7.3333333e-01 0.0000000e+00 1
13 1.0000000e+00 8.0000000e-01 0.0000000e+00 1
14 1.0000000e+00 8.6666667e-01 0.0000000e+00 1
15 1.0000000e+00 9.3333333e-01 0.0000000e+00 1
162 1.0000000e+00 1.0000000e+00 0.0000000e+00 1
0 # cyan-magenta color map (from Matlab)
0 # cyan-magenta color map (based on Matlab colormap)
11 0.0000000e+00 1.0000000e+00 1.0000000e+00 1
2 6.6666667e-02 9.3333333e-01 1.0000000e+00 1
3 1.3333333e-01 8.6666667e-01 1.0000000e+00 1
4 2.0000000e-01 8.0000000e-01 1.0000000e+00 1
5 2.6666667e-01 7.3333333e-01 1.0000000e+00 1
6 3.3333333e-01 6.6666667e-01 1.0000000e+00 1
7 4.0000000e-01 6.0000000e-01 1.0000000e+00 1
8 4.6666667e-01 5.3333333e-01 1.0000000e+00 1
9 5.3333333e-01 4.6666667e-01 1.0000000e+00 1
10 6.0000000e-01 4.0000000e-01 1.0000000e+00 1
11 6.6666667e-01 3.3333333e-01 1.0000000e+00 1
12 7.3333333e-01 2.6666667e-01 1.0000000e+00 1
13 8.0000000e-01 2.0000000e-01 1.0000000e+00 1
14 8.6666667e-01 1.3333333e-01 1.0000000e+00 1
15 9.3333333e-01 6.6666667e-02 1.0000000e+00 1
162 1.0000000e+00 0.0000000e+00 1.0000000e+00 1
0 # darkblue-blue-white-red-darkred color map, based loosely on "Seismic"
1 # color table from Spyglass Transform
2 0.03 0.00 0.20 1
3 0.07 0.00 0.31 1
4 0.10 0.00 0.42 1
5 0.11 0.00 0.53 1
6 0.10 0.00 0.64 1
7 0.09 0.00 0.75 1
8 0.06 0.00 0.86 1
9 0.01 0.00 0.97 1
10 0.08 0.13 1.00 1
11 0.22 0.30 1.00 1
12 0.35 0.46 1.00 1
13 0.48 0.60 1.00 1
14 0.61 0.73 1.00 1
15 0.75 0.83 1.00 1
16 0.88 0.93 1.00 1
17 1.00 1.00 1.00 1
18 1.00 0.93 0.88 1
19 1.00 0.83 0.75 1
20 1.00 0.73 0.61 1
21 1.00 0.60 0.48 1
22 1.00 0.46 0.35 1
23 1.00 0.30 0.22 1
24 1.00 0.13 0.08 1
25 0.97 0.00 0.01 1
26 0.86 0.00 0.06 1
27 0.75 0.00 0.09 1
28 0.64 0.00 0.10 1
29 0.53 0.00 0.11 1
30 0.42 0.00 0.10 1
31 0.31 0.00 0.07 1
32 0.21 0.00 0.03 1
0 # blue-green color map (from Matlab)
0 # blue-green color map (based on Matlab colormap)
11 0.0000000e+00 0.0000000e+00 1.0000000e+00 1
2 0.0000000e+00 6.6666667e-02 9.6666667e-01 1
3 0.0000000e+00 1.3333333e-01 9.3333333e-01 1
4 0.0000000e+00 2.0000000e-01 9.0000000e-01 1
5 0.0000000e+00 2.6666667e-01 8.6666667e-01 1
6 0.0000000e+00 3.3333333e-01 8.3333333e-01 1
7 0.0000000e+00 4.0000000e-01 8.0000000e-01 1
8 0.0000000e+00 4.6666667e-01 7.6666667e-01 1
9 0.0000000e+00 5.3333333e-01 7.3333333e-01 1
10 0.0000000e+00 6.0000000e-01 7.0000000e-01 1
11 0.0000000e+00 6.6666667e-01 6.6666667e-01 1
12 0.0000000e+00 7.3333333e-01 6.3333333e-01 1
13 0.0000000e+00 8.0000000e-01 6.0000000e-01 1
14 0.0000000e+00 8.6666667e-01 5.6666667e-01 1
15 0.0000000e+00 9.3333333e-01 5.3333333e-01 1
162 0.0000000e+00 1.0000000e+00 5.0000000e-01 1
00 #! /bin/sh
11 # Wrapper for compilers which do not understand `-c -o'.
22
3 scriptversion=2003-11-09.00
3 scriptversion=2005-02-03.08
44
5 # Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
4646
4747 Report bugs to <bug-automake@gnu.org>.
4848 EOF
49 exit 0
49 exit $?
5050 ;;
5151 -v | --v*)
5252 echo "compile $scriptversion"
53 exit 0
53 exit $?
5454 ;;
5555 esac
5656
57
58 prog=$1
59 shift
60
6157 ofile=
6258 cfile=
63 args=
64 while test $# -gt 0; do
65 case "$1" in
66 -o)
67 # configure might choose to run compile as `compile cc -o foo foo.c'.
68 # So we do something ugly here.
69 ofile=$2
70 shift
71 case "$ofile" in
72 *.o | *.obj)
73 ;;
74 *)
75 args="$args -o $ofile"
76 ofile=
77 ;;
78 esac
79 ;;
80 *.c)
81 cfile=$1
82 args="$args $1"
83 ;;
84 *)
85 args="$args $1"
86 ;;
87 esac
59 eat=
60
61 for arg
62 do
63 if test -n "$eat"; then
64 eat=
65 else
66 case $1 in
67 -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.
70 eat=1
71 case $2 in
72 *.o | *.obj)
73 ofile=$2
74 ;;
75 *)
76 set x "$@" -o "$2"
77 shift
78 ;;
79 esac
80 ;;
81 *.c)
82 cfile=$1
83 set x "$@" "$1"
84 shift
85 ;;
86 *)
87 set x "$@" "$1"
88 shift
89 ;;
90 esac
91 fi
8892 shift
8993 done
9094
9498 # normal compilation that the losing compiler can handle. If no
9599 # `.c' file was seen then we are probably linking. That is also
96100 # ok.
97 exec "$prog" $args
101 exec "$@"
98102 fi
99103
100104 # Name of file we expect compiler to create.
101 cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
105 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
102106
103107 # Create the lock directory.
104108 # Note: use `[/.-]' here to ensure that we don't use the same name
105109 # that we are using for the .o file. Also, base the name on the expected
106110 # object file name, since that is what matters with a parallel build.
107 lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
111 lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
108112 while true; do
109 if mkdir $lockdir > /dev/null 2>&1; then
113 if mkdir "$lockdir" >/dev/null 2>&1; then
110114 break
111115 fi
112116 sleep 1
113117 done
114118 # FIXME: race condition here if user kills between mkdir and trap.
115 trap "rmdir $lockdir; exit 1" 1 2 15
119 trap "rmdir '$lockdir'; exit 1" 1 2 15
116120
117121 # Run the compile.
118 "$prog" $args
119 status=$?
122 "$@"
123 ret=$?
120124
121125 if test -f "$cofile"; then
122126 mv "$cofile" "$ofile"
127 elif test -f "${cofile}bj"; then
128 mv "${cofile}bj" "$ofile"
123129 fi
124130
125 rmdir $lockdir
126 exit $status
131 rmdir "$lockdir"
132 exit $ret
127133
128134 # Local Variables:
129135 # mode: shell-script
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for h5utils 1.9.1.
2 # Generated by GNU Autoconf 2.59 for h5utils 1.10.
33 #
44 # Report bugs to <stevenj@alum.mit.edu>.
55 #
268268 # Identity of this package.
269269 PACKAGE_NAME='h5utils'
270270 PACKAGE_TARNAME='h5utils'
271 PACKAGE_VERSION='1.9.1'
272 PACKAGE_STRING='h5utils 1.9.1'
271 PACKAGE_VERSION='1.10'
272 PACKAGE_STRING='h5utils 1.10'
273273 PACKAGE_BUGREPORT='stevenj@alum.mit.edu'
274274
275275 ac_unique_file="h5topng.c"
310310 # include <unistd.h>
311311 #endif"
312312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP H5TOPNG_MAN PNG_LIBS H4TOH5 H4_LIBS MKOCTFILE OCTAVE H5READ OCT_INSTALL_DIR V5D_FILES V5D_INCLUDES datadir_val MORE_H5UTILS MORE_H5UTILS_MANS LIBOBJS LTLIBOBJS'
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP H5TOPNG_MAN PNG_LIBS H4TOH5 H5TOH4 H4_LIBS MKOCTFILE OCTAVE H5READ OCT_INSTALL_DIR V5D_FILES V5D_INCLUDES datadir_val MORE_H5UTILS MORE_H5UTILS_MANS LIBOBJS LTLIBOBJS'
314314 ac_subst_files=''
315315
316316 # Initialize some variables set by options.
779779 # Omit some internal or obsolete options to make the list less imposing.
780780 # This message is too long to be a string in the A/UX 3.1 sh.
781781 cat <<_ACEOF
782 \`configure' configures h5utils 1.9.1 to adapt to many kinds of systems.
782 \`configure' configures h5utils 1.10 to adapt to many kinds of systems.
783783
784784 Usage: $0 [OPTION]... [VAR=VALUE]...
785785
841841
842842 if test -n "$ac_init_help"; then
843843 case $ac_init_help in
844 short | recursive ) echo "Configuration of h5utils 1.9.1:";;
844 short | recursive ) echo "Configuration of h5utils 1.10:";;
845845 esac
846846 cat <<\_ACEOF
847847
856856 Optional Packages:
857857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
859 --without-h5fromh4 don't compile h5fromh4
859 --with-hdf4 build hdf4 utils even if h4toh5 and h5toh4 are
860 present
860861 --without-octave don't compile h5read Octave plugin
861862 --with-v5d=<dir> use Vis5d in <dir> for h5tov5d
862863
968969 test -n "$ac_init_help" && exit 0
969970 if $ac_init_version; then
970971 cat <<\_ACEOF
971 h5utils configure 1.9.1
972 h5utils configure 1.10
972973 generated by GNU Autoconf 2.59
973974
974975 Copyright (C) 2003 Free Software Foundation, Inc.
982983 This file contains any messages produced by compilers while
983984 running configure, to aid debugging if configure makes a mistake.
984985
985 It was created by h5utils $as_me 1.9.1, which was
986 It was created by h5utils $as_me 1.10, which was
986987 generated by GNU Autoconf 2.59. Invocation command line was
987988
988989 $ $0 $@
13181319
13191320
13201321
1321 am__api_version="1.8"
1322 am__api_version="1.9"
13221323 ac_aux_dir=
13231324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
13241325 if test -f $ac_dir/install-sh; then
14951496 fi
14961497
14971498 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1498 # Keeping the `.' argument allows $(mkdir_p) to be used without
1499 # argument. Indeed, we sometimes output rules like
1499 # We used to keeping the `.' as first argument, in order to
1500 # allow $(mkdir_p) to be used without argument. As in
15001501 # $(mkdir_p) $(somedir)
1501 # where $(somedir) is conditionally defined.
1502 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1503 # expensive solution, as it forces Make to start a sub-shell.)
1504 mkdir_p='mkdir -p -- .'
1502 # where $(somedir) is conditionally defined. However this is wrong
1503 # for two reasons:
1504 # 1. if the package is installed by a user who cannot write `.'
1505 # make install will fail,
1506 # 2. the above comment should most certainly read
1507 # $(mkdir_p) $(DESTDIR)$(somedir)
1508 # so it does not work when $(somedir) is undefined and
1509 # $(DESTDIR) is not.
1510 # To support the latter case, we have to write
1511 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1512 # so the `.' trick is pointless.
1513 mkdir_p='mkdir -p --'
15051514 else
15061515 # On NextStep and OpenStep, the `mkdir' command does not
15071516 # recognize any option. It will interpret all options as
16171626
16181627 # Define the identity of the package.
16191628 PACKAGE='h5utils'
1620 VERSION='1.9.1'
1629 VERSION='1.10'
16211630
16221631
16231632 cat >>confdefs.h <<_ACEOF
16441653
16451654
16461655 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1647
1648
1649 AMTAR=${AMTAR-"${am_missing_run}tar"}
16501656
16511657 install_sh=${install_sh-"$am_aux_dir/install-sh"}
16521658
17401746
17411747 # We need awk for the "check" target. The system "awk" is bad on
17421748 # some platforms.
1749 # Always define AMTAR for backward compatibility.
1750
1751 AMTAR=${AMTAR-"${am_missing_run}tar"}
1752
1753 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1754
1755
17431756
17441757
17451758
37413754 ###########################################################################
37423755
37433756 # Only build h5fromh4 if we are using a version of HDF5 prior to 1.4, and
3744 # thus don't have the superior h4toh5 utility.
3757 # thus don't have the superior h4toh5 utility. Similarly for h5toh4.
37453758 # Extract the first word of "h4toh5", so it can be a program name with args.
37463759 set dummy h4toh5; ac_word=$2
37473760 echo "$as_me:$LINENO: checking for $ac_word" >&5
37773790 echo "${ECHO_T}no" >&6
37783791 fi
37793792
3780
3781
3782 # Check whether --with-h5fromh4 or --without-h5fromh4 was given.
3783 if test "${with_h5fromh4+set}" = set; then
3784 withval="$with_h5fromh4"
3793 # Extract the first word of "h5toh4", so it can be a program name with args.
3794 set dummy h5toh4; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_H5TOH4+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 if test -n "$H5TOH4"; then
3801 ac_cv_prog_H5TOH4="$H5TOH4" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_H5TOH4="h5toh4"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816
3817 fi
3818 fi
3819 H5TOH4=$ac_cv_prog_H5TOH4
3820 if test -n "$H5TOH4"; then
3821 echo "$as_me:$LINENO: result: $H5TOH4" >&5
3822 echo "${ECHO_T}$H5TOH4" >&6
3823 else
3824 echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3826 fi
3827
3828
3829
3830 # Check whether --with-hdf4 or --without-hdf4 was given.
3831 if test "${with_hdf4+set}" = set; then
3832 withval="$with_hdf4"
37853833 ok=$withval
37863834 else
37873835 ok=maybe
37883836 fi;
37893837 if test "x$ok" = xyes; then
37903838 H4TOH5=""
3839 H5TOH4=""
37913840 elif test "x$ok" = xno; then
37923841 H4TOH5="h4toh5"
3793 fi
3794
3795 H5FROMH4=no
3796 if test "x$H4TOH5" != xh4toh5; then
3842 H5TOH4="h5toh4"
3843 fi
3844
3845 HDF4=no
3846 if test "x$H4TOH5" != xh4toh5 -o "x$H5TOH4" != xh5toh4; then
37973847 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
37983848 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
37993849 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
39243974 echo "$as_me:$LINENO: result: $ac_cv_lib_df_DFSDgetdata" >&5
39253975 echo "${ECHO_T}$ac_cv_lib_df_DFSDgetdata" >&6
39263976 if test $ac_cv_lib_df_DFSDgetdata = yes; then
3927 H4_LIBS="-ldf -ljpeg"; H5FROMH4=yes
3928 else
3929 { echo "$as_me:$LINENO: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4" >&5
3930 echo "$as_me: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4" >&2;}
3931 fi
3932
3933 else
3934 { echo "$as_me:$LINENO: WARNING: can't find libjpeg: won't be able to compile h5fromh4" >&5
3935 echo "$as_me: WARNING: can't find libjpeg: won't be able to compile h5fromh4" >&2;}
3936 fi
3937
3938
3939 if test $H5FROMH4 = yes; then
3940 MORE_H5UTILS="h5fromh4 $MORE_H5UTILS"
3941 MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
3977 H4_LIBS="-ldf -ljpeg"; HDF4=yes
3978 else
3979 { echo "$as_me:$LINENO: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&5
3980 echo "$as_me: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&2;}
3981 fi
3982
3983 else
3984 { echo "$as_me:$LINENO: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&5
3985 echo "$as_me: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&2;}
3986 fi
3987
3988
3989 if test $HDF4 = yes; then
3990 if test "x$H4TOH5" != xh4toh5; then
3991 MORE_H5UTILS="h5fromh4 $MORE_H5UTILS"
3992 MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
3993 fi
3994 if test "x$H5TOH4" != xh5toh4; then
3995 MORE_H5UTILS="h4fromh5 $MORE_H5UTILS"
3996 # MORE_H5UTILS_MANS="h4fromh5.1 $MORE_H5UTILS_MANS"
3997 fi
39423998 fi
39433999 fi
39444000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
65106566 } >&5
65116567 cat >&5 <<_CSEOF
65126568
6513 This file was extended by h5utils $as_me 1.9.1, which was
6569 This file was extended by h5utils $as_me 1.10, which was
65146570 generated by GNU Autoconf 2.59. Invocation command line was
65156571
65166572 CONFIG_FILES = $CONFIG_FILES
65736629
65746630 cat >>$CONFIG_STATUS <<_ACEOF
65756631 ac_cs_version="\\
6576 h5utils config.status 1.9.1
6632 h5utils config.status 1.10
65776633 configured by $0, generated by GNU Autoconf 2.59,
65786634 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
65796635
67836839 s,@AUTOMAKE@,$AUTOMAKE,;t t
67846840 s,@AUTOHEADER@,$AUTOHEADER,;t t
67856841 s,@MAKEINFO@,$MAKEINFO,;t t
6786 s,@AMTAR@,$AMTAR,;t t
67876842 s,@install_sh@,$install_sh,;t t
67886843 s,@STRIP@,$STRIP,;t t
67896844 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
67926847 s,@AWK@,$AWK,;t t
67936848 s,@SET_MAKE@,$SET_MAKE,;t t
67946849 s,@am__leading_dot@,$am__leading_dot,;t t
6850 s,@AMTAR@,$AMTAR,;t t
6851 s,@am__tar@,$am__tar,;t t
6852 s,@am__untar@,$am__untar,;t t
67956853 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
67966854 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
67976855 s,@MAINT@,$MAINT,;t t
68166874 s,@H5TOPNG_MAN@,$H5TOPNG_MAN,;t t
68176875 s,@PNG_LIBS@,$PNG_LIBS,;t t
68186876 s,@H4TOH5@,$H4TOH5,;t t
6877 s,@H5TOH4@,$H5TOH4,;t t
68196878 s,@H4_LIBS@,$H4_LIBS,;t t
68206879 s,@MKOCTFILE@,$MKOCTFILE,;t t
68216880 s,@OCTAVE@,$OCTAVE,;t t
74507509 else
74517510 continue
74527511 fi
7453 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7454 # Extract the definition of DEP_FILES from the Makefile without
7455 # running `make'.
7512 # Extract the definition of DEPDIR, am__include, and am__quote
7513 # from the Makefile without running `make'.
74567514 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
74577515 test -z "$DEPDIR" && continue
7516 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7517 test -z "am__include" && continue
7518 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
74587519 # When using ansi2knr, U may be empty or an underscore; expand it
74597520 U=`sed -n 's/^U = //p' < "$mf"`
7460 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7461 # We invoke sed twice because it is the simplest approach to
7462 # changing $(DEPDIR) to its actual value in the expansion.
7463 for file in `sed -n '
7464 /^DEP_FILES = .*\\\\$/ {
7465 s/^DEP_FILES = //
7466 :loop
7467 s/\\\\$//
7468 p
7469 n
7470 /\\\\$/ b loop
7471 p
7472 }
7473 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7521 # Find all dependency output files, they are included files with
7522 # $(DEPDIR) in their names. We invoke sed twice because it is the
7523 # simplest approach to changing $(DEPDIR) to its actual value in the
7524 # expansion.
7525 for file in `sed -n "
7526 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
74747527 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
74757528 # Make sure the directory exists.
74767529 test -f "$dirpart/$file" && continue
00 # Process this file with autoconf to produce a configure script.
1 AC_INIT(h5utils, 1.9.1, stevenj@alum.mit.edu)
1 AC_INIT(h5utils, 1.10, stevenj@alum.mit.edu)
22 AM_INIT_AUTOMAKE(1.6)
33 AC_CONFIG_SRCDIR([h5topng.c])
44 AM_CONFIG_HEADER(config.h)
7373 ###########################################################################
7474
7575 # Only build h5fromh4 if we are using a version of HDF5 prior to 1.4, and
76 # thus don't have the superior h4toh5 utility.
76 # thus don't have the superior h4toh5 utility. Similarly for h5toh4.
7777 AC_CHECK_PROG(H4TOH5, h4toh5, h4toh5)
78
79 AC_ARG_WITH(h5fromh4,
80 [AC_HELP_STRING([--without-h5fromh4], [don't compile h5fromh4])],
78 AC_CHECK_PROG(H5TOH4, h5toh4, h5toh4)
79
80 AC_ARG_WITH(hdf4,
81 [AC_HELP_STRING([--with-hdf4], [build hdf4 utils even if h4toh5 and h5toh4 are present])],
8182 ok=$withval, ok=maybe)
8283 if test "x$ok" = xyes; then
8384 H4TOH5=""
85 H5TOH4=""
8486 elif test "x$ok" = xno; then
8587 H4TOH5="h4toh5"
86 fi
87
88 H5FROMH4=no
89 if test "x$H4TOH5" != xh4toh5; then
88 H5TOH4="h5toh4"
89 fi
90
91 HDF4=no
92 if test "x$H4TOH5" != xh4toh5 -o "x$H5TOH4" != xh5toh4; then
9093 AC_CHECK_LIB(jpeg, jpeg_start_compress,
9194 [AC_CHECK_LIB(df, DFSDgetdata,
92 [H4_LIBS="-ldf -ljpeg"; H5FROMH4=yes],
93 [AC_MSG_WARN([can't find libdf (HDF4): won't be able to compile h5fromh4])], -ljpeg)],
94 [AC_MSG_WARN([can't find libjpeg: won't be able to compile h5fromh4])])
95
96 if test $H5FROMH4 = yes; then
97 MORE_H5UTILS="h5fromh4 $MORE_H5UTILS"
98 MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
95 [H4_LIBS="-ldf -ljpeg"; HDF4=yes],
96 [AC_MSG_WARN([can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5])], -ljpeg)],
97 [AC_MSG_WARN([can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5])])
98
99 if test $HDF4 = yes; then
100 if test "x$H4TOH5" != xh4toh5; then
101 MORE_H5UTILS="h5fromh4 $MORE_H5UTILS"
102 MORE_H5UTILS_MANS="h5fromh4.1 $MORE_H5UTILS_MANS"
103 fi
104 if test "x$H5TOH4" != xh5toh4; then
105 MORE_H5UTILS="h4fromh5 $MORE_H5UTILS"
106 # MORE_H5UTILS_MANS="h4fromh5.1 $MORE_H5UTILS_MANS"
107 fi
99108 fi
100109 fi
101110 AC_CHECK_HEADERS(hdf.h hdf/hdf.h)
33 /* License and copyright string for inclusion in program output: */
44
55 #define COPYRIGHT \
6 "Copyright (c) 2004 Massachusetts Institute of Technology\n"\
6 "Copyright (c) 2005 Massachusetts Institute of Technology\n"\
77 "\n"\
88 "Permission is hereby granted, free of charge, to any person obtaining\n"\
99 "a copy of this software and associated documentation files (the\n"\
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2004-04-25.13
4
5 # Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
3 scriptversion=2005-02-09.22
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
4242 depmode Dependency tracking mode.
4343 source Source file read by `PROGRAMS ARGS'.
4444 object Object file output by `PROGRAMS ARGS'.
45 DEPDIR directory where to store dependencies.
4546 depfile Dependency file to output.
4647 tmpdepfile Temporary file to use when outputing dependencies.
4748 libtool Whether libtool is used (yes/no).
4849
4950 Report bugs to <bug-automake@gnu.org>.
5051 EOF
51 exit 0
52 exit $?
5253 ;;
5354 -v | --v*)
5455 echo "depcomp $scriptversion"
55 exit 0
56 exit $?
5657 ;;
5758 esac
5859
6061 echo "depcomp: Variables source, object and depmode must be set" 1>&2
6162 exit 1
6263 fi
63 # `libtool' can also be set to `yes' or `no'.
64
65 if test -z "$depfile"; then
66 base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
67 dir=`echo "$object" | sed 's,/.*$,/,'`
68 if test "$dir" = "$object"; then
69 dir=
70 fi
71 # FIXME: should be _deps on DOS.
72 depfile="$dir.deps/$base"
73 fi
74
64
65 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66 depfile=${depfile-`echo "$object" |
67 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
7568 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
7669
7770 rm -f "$tmpdepfile"
293286 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
294287
295288 if test "$libtool" = yes; then
296 # Dependencies are output in .lo.d with libtool 1.4.
297 # They are output in .o.d with libtool 1.5.
298 tmpdepfile1="$dir.libs/$base.lo.d"
299 tmpdepfile2="$dir.libs/$base.o.d"
300 tmpdepfile3="$dir.libs/$base.d"
289 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
291 # handle both shared and static libraries in a single compilation.
292 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293 #
294 # With libtool 1.5 this exception was removed, and libtool now
295 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
297 # in $dir$base.o.d. We have to check for both files, because
298 # one of the two compilations can be disabled. We should prefer
299 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
300 # automatically cleaned when .libs/ is deleted, while ignoring
301 # the former would cause a distcleancheck panic.
302 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
303 tmpdepfile2=$dir$base.o.d # libtool 1.5
304 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
305 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
301306 "$@" -Wc,-MD
302307 else
303 tmpdepfile1="$dir$base.o.d"
304 tmpdepfile2="$dir$base.d"
305 tmpdepfile3="$dir$base.d"
308 tmpdepfile1=$dir$base.o.d
309 tmpdepfile2=$dir$base.d
310 tmpdepfile3=$dir$base.d
311 tmpdepfile4=$dir$base.d
306312 "$@" -MD
307313 fi
308314
309315 stat=$?
310316 if test $stat -eq 0; then :
311317 else
312 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
318 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
313319 exit $stat
314320 fi
315321
316 if test -f "$tmpdepfile1"; then
317 tmpdepfile="$tmpdepfile1"
318 elif test -f "$tmpdepfile2"; then
319 tmpdepfile="$tmpdepfile2"
320 else
321 tmpdepfile="$tmpdepfile3"
322 fi
322 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
323 do
324 test -f "$tmpdepfile" && break
325 done
323326 if test -f "$tmpdepfile"; then
324327 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
325328 # That's a tab and a space in the [].
0 /* Copyright (c) 2005 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
26 #include <unistd.h>
27
28 #include "config.h"
29 #include "arrayh5.h"
30 #include "arrayh4.h"
31 #include "copyright.h"
32 #include "h5utils.h"
33
34 #define CHECK(cond, msg) { if (!(cond)) { fprintf(stderr, "h4fromh5 error: %s\n", msg); exit(EXIT_FAILURE); } }
35
36 void usage(FILE *f)
37 {
38 fprintf(f, "Usage: h4fromh5 [options] [<hdf4-files>]\n"
39 "Options:\n"
40 " -h : this help message\n"
41 " -V : print version number and copyright\n"
42 " -v : verbose output\n"
43 " -T : transposed output\n"
44 " -o <file> : output to HDF4 file <file>\n"
45 " -d <name> : use dataset <name> in the input file\n"
46 " -- you can also specify a dataset via <file>:<name>\n"
47 );
48 }
49
50 int main(int argc, char **argv)
51 {
52 char *h4_fname = NULL;
53 char *data_name = NULL;
54 extern char *optarg;
55 extern int optind;
56 int c;
57 int ifile;
58 int verbose = 0, transpose = 0;
59
60 while ((c = getopt(argc, argv, "hd:vTo:V")) != -1)
61 switch (c) {
62 case 'h':
63 usage(stdout);
64 return EXIT_SUCCESS;
65 case 'V':
66 printf("h4fromh5 " PACKAGE_VERSION " by Steven G. Johnson\n"
67 COPYRIGHT);
68 return EXIT_SUCCESS;
69 case 'v':
70 verbose = 1;
71 break;
72 case 'T':
73 transpose = 1;
74 break;
75 case 'd':
76 free(data_name);
77 data_name = my_strdup(optarg);
78 break;
79 case 'o':
80 free(h4_fname);
81 h4_fname = my_strdup(optarg);
82 break;
83 default:
84 fprintf(stderr, "Invalid argument -%c\n", c);
85 usage(stderr);
86 return EXIT_FAILURE;
87 }
88 if (optind == argc) { /* no parameters left */
89 usage(stderr);
90 return EXIT_FAILURE;
91 }
92
93 if (h4_fname && optind + 1 < argc) {
94 fprintf(stderr, "h4fromh5: only one .h5 file can be used with -o\n");
95 return EXIT_FAILURE;
96 }
97
98 for (ifile = optind; ifile < argc; ++ifile) {
99 char *h5_fname, *dname;
100 arrayh4 a4;
101 int i, err;
102 int32 dims_copy[ARRAYH4_MAX_RANK];
103 char *cur_h4_fname = h4_fname;
104 arrayh5 a;
105
106 h5_fname = split_fname(argv[ifile], &dname);
107 if (!dname[0])
108 dname = data_name;
109
110 if (!cur_h4_fname)
111 cur_h4_fname = replace_suffix(h5_fname, ".h5", ".hdf");
112
113 if (verbose)
114 printf("Reading HDF5 input file \"%s\"...\n", h5_fname);
115 err = arrayh5_read(&a, h5_fname, dname, NULL, 0, 0, 0, 0);
116 CHECK(!err, arrayh5_read_strerror[err]);
117
118 if (transpose)
119 arrayh5_transpose(&a);
120
121 CHECK(a.rank <= ARRAYH4_MAX_RANK, "HDF5 rank is too big");
122 for (i = 0; i < a.rank; ++i)
123 dims_copy[i] = a.dims[i];
124
125 CHECK(arrayh4_create(&a4, DFNT_FLOAT64, a.rank, dims_copy),
126 "error allocating HDF4 data");
127
128 for (i = 0; i < a.N; ++i)
129 a4.p.d[i] = a.data[i];
130
131 if (verbose) {
132 double a_min, a_max;
133 arrayh5_getrange(a, &a_min, &a_max);
134 printf("data ranges from %g to %g.\n", a_min, a_max);
135 }
136
137 if (verbose) {
138 int i;
139 printf("Writing size %d", a.dims[0]);
140 for (i = 1; i < a.rank; ++i)
141 printf("x%d", a.dims[i]);
142 printf(" data to %s\n", cur_h4_fname);
143 }
144
145 arrayh5_destroy(a);
146
147 arrayh4_write(cur_h4_fname, a4);
148 arrayh4_destroy(a4);
149
150 if (h4_fname != cur_h4_fname)
151 free(cur_h4_fname);
152 free(h5_fname);
153 }
154
155 return EXIT_SUCCESS;
156 }
0 .\" Copyright (c) 2004 Massachusetts Institute of Technology
0 .\" Copyright (c) 2005 Massachusetts Institute of Technology
11 .\"
22 .\" Permission is hereby granted, free of charge, to any person obtaining
33 .\" a copy of this software and associated documentation files (the
9292 .SH BUGS
9393 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
9494 .SH AUTHORS
95 Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts
95 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
9696 Institute of Technology.
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 .\" Copyright (c) 2004 Massachusetts Institute of Technology
0 .\" Copyright (c) 2005 Massachusetts Institute of Technology
11 .\"
22 .\" Permission is hereby granted, free of charge, to any person obtaining
33 .\" a copy of this software and associated documentation files (the
108108 .SH BUGS
109109 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
110110 .SH AUTHORS
111 Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts
111 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
112112 Institute of Technology.
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 .\" Copyright (c) 2004 Massachusetts Institute of Technology
0 .\" Copyright (c) 2005 Massachusetts Institute of Technology
11 .\"
22 .\" Permission is hereby granted, free of charge, to any person obtaining
33 .\" a copy of this software and associated documentation files (the
1818 .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1919 .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020 .\"
21 .TH H5MATH 1 "May 23, 2004" "h5utils" "h5utils"
21 .TH H5MATH 1 "May 23, 2005" "h5utils" "h5utils"
2222 .SH NAME
2323 h5math \- combine/create HDF5 files with math expressions
2424 .SH SYNOPSIS
170170 .SH BUGS
171171 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
172172 .SH AUTHORS
173 Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts
173 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
174174 Institute of Technology.
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 .\" Copyright (c) 2004 Massachusetts Institute of Technology
0 .\" Copyright (c) 2005 Massachusetts Institute of Technology
11 .\"
22 .\" Permission is hereby granted, free of charge, to any person obtaining
33 .\" a copy of this software and associated documentation files (the
119119 .SH BUGS
120120 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
121121 .SH AUTHORS
122 Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts
122 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
123123 Institute of Technology.
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 .\" Copyright (c) 2004 Massachusetts Institute of Technology
0 .\" Copyright (c) 2005 Massachusetts Institute of Technology
11 .\"
22 .\" Permission is hereby granted, free of charge, to any person obtaining
33 .\" a copy of this software and associated documentation files (the
132132 .SH BUGS
133133 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
134134 .SH AUTHORS
135 Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts
135 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
136136 Institute of Technology.
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * [ IMPORTANT: Note that the following is DIFFERENT from the license
33 * for the rest of the h5utils package. ]
305305 return EXIT_SUCCESS;
306306 case 'V':
307307 printf("h5tov5d " PACKAGE_VERSION " by Steven G. Johnson\n"
308 "Copyright (c) 2004 Massachusetts Institute of Technology\n"
308 "Copyright (c) 2005 Massachusetts Institute of Technology\n"
309309 "\n"
310310 "This program is free software; you can redistribute it and/or modify\n"
311311 "it under the terms of the GNU General Public License as published by\n"
179179 .SH BUGS
180180 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
181181 .SH AUTHORS
182 Written by Steven G. Johnson. Copyright (c) 2004 by the Massachusetts
182 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
183183 Institute of Technology.
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2004-04-01.17
3 scriptversion=2005-02-02.21
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
5757 rmprog="${RMPROG-rm}"
5858 mkdirprog="${MKDIRPROG-mkdir}"
5959
60 transformbasename=
61 transform_arg=
62 instcmd="$mvprog"
6360 chmodcmd="$chmodprog 0755"
6461 chowncmd=
6562 chgrpcmd=
6966 src=
7067 dst=
7168 dir_arg=
72
73 usage="Usage: $0 [OPTION]... SRCFILE DSTFILE
69 dstarg=
70 no_target_directory=
71
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
7473 or: $0 [OPTION]... SRCFILES... DIRECTORY
75 or: $0 -d DIRECTORIES...
76
77 In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default.
78 In the second, create the directory path DIR.
74 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75 or: $0 [OPTION]... -d DIRECTORIES...
76
77 In the 1st form, copy SRCFILE to DSTFILE.
78 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
79 In the 4th, create DIRECTORIES.
7980
8081 Options:
81 -b=TRANSFORMBASENAME
82 -c copy source (using $cpprog) instead of moving (using $mvprog).
82 -c (ignored)
8383 -d create directories instead of installing files.
84 -g GROUP $chgrp installed files to GROUP.
85 -m MODE $chmod installed files to MODE.
86 -o USER $chown installed files to USER.
87 -s strip installed files (using $stripprog).
88 -t=TRANSFORM
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
8990 --help display this help and exit.
9091 --version display version info and exit.
9192
9596
9697 while test -n "$1"; do
9798 case $1 in
98 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
99 shift
100 continue;;
101
102 -c) instcmd=$cpprog
103 shift
99 -c) shift
104100 continue;;
105101
106102 -d) dir_arg=true
112108 shift
113109 continue;;
114110
115 --help) echo "$usage"; exit 0;;
111 --help) echo "$usage"; exit $?;;
116112
117113 -m) chmodcmd="$chmodprog $2"
118114 shift
128124 shift
129125 continue;;
130126
131 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
132 shift
133 continue;;
134
135 --version) echo "$0 $scriptversion"; exit 0;;
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
135
136 --version) echo "$0 $scriptversion"; exit $?;;
136137
137138 *) # When -d is used, all remaining arguments are directories to create.
138 test -n "$dir_arg" && break
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
139141 # Otherwise, the last argument is the destination. Remove it from $@.
140142 for arg
141143 do
173175 src=
174176
175177 if test -d "$dst"; then
176 instcmd=:
178 mkdircmd=:
177179 chmodcmd=
178180 else
179 instcmd=$mkdirprog
181 mkdircmd=$mkdirprog
180182 fi
181183 else
182 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
184 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
183185 # might cause directories to be created, which would be especially bad
184186 # if $src (and thus $dsttmp) contains '*'.
185187 if test ! -f "$src" && test ! -d "$src"; then
201203 # If destination is a directory, append the input filename; won't work
202204 # if double slashes aren't ignored.
203205 if test -d "$dst"; then
206 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
208 exit 1
209 fi
204210 dst=$dst/`basename "$src"`
205211 fi
206212 fi
207213
208214 # This sed command emulates the dirname command.
209 dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
210216
211217 # Make sure that the destination directory exists.
212218
219225 oIFS=$IFS
220226 # Some sh's can't handle IFS=/ for some reason.
221227 IFS='%'
222 set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
223230 IFS=$oIFS
224231
225232 pathcomp=
228235 pathcomp=$pathcomp$1
229236 shift
230237 if test ! -d "$pathcomp"; then
231 $mkdirprog "$pathcomp" || lasterr=$?
238 $mkdirprog "$pathcomp"
232239 # mkdir can fail with a `File exist' error in case several
233240 # install-sh are creating the directory concurrently. This
234241 # is OK.
235 test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; }
242 test -d "$pathcomp" || exit
236243 fi
237244 pathcomp=$pathcomp/
238245 done
239246 fi
240247
241248 if test -n "$dir_arg"; then
242 $doit $instcmd "$dst" \
249 $doit $mkdircmd "$dst" \
243250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
244251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
245252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
246253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
247254
248255 else
249 # If we're going to rename the final executable, determine the name now.
250 if test -z "$transformarg"; then
251 dstfile=`basename "$dst"`
252 else
253 dstfile=`basename "$dst" $transformbasename \
254 | sed $transformarg`$transformbasename
255 fi
256
257 # don't allow the sed command to completely eliminate the filename.
258 test -z "$dstfile" && dstfile=`basename "$dst"`
256 dstfile=`basename "$dst"`
259257
260258 # Make a couple of temp file names in the proper directory.
261259 dsttmp=$dstdir/_inst.$$_
262260 rmtmp=$dstdir/_rm.$$_
263261
264262 # Trap to clean up those temp files at exit.
265 trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
263 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
266264 trap '(exit $?); exit' 1 2 13 15
267265
268 # Move or copy the file name to the temp name
269 $doit $instcmd "$src" "$dsttmp" &&
266 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
270268
271269 # and set any options; do chmod last to preserve setuid bits.
272270 #
273271 # If any of these fail, we abort the whole thing. If we want to
274272 # ignore errors from any of these, just make sure not to ignore
275 # errors from the above "$doit $instcmd $src $dsttmp" command.
273 # errors from the above "$doit $cpprog $src $dsttmp" command.
276274 #
277275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
278276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
297295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
298296 || {
299297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
300 (exit 1); exit
298 (exit 1); exit 1
301299 }
302300 else
303301 :
308306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
309307 }
310308 }
311 fi || { (exit 1); exit; }
309 fi || { (exit 1); exit 1; }
312310 done
313311
314312 # The final little trick to "correctly" pass the exit status to the exit trap.
315313 {
316 (exit 0); exit
314 (exit 0); exit 0
317315 }
318316
319317 # Local variables:
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2003-09-02.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003
3 scriptversion=2005-02-08.22
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
66 # Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
5959 msg="probably too old"
6060 fi
6161 ;;
62 esac
63
64 # If it does not exist, or fails to run (possibly an outdated version),
65 # try to emulate it.
66 case "$1" in
6762
6863 -h|--h|--he|--hel|--help)
6964 echo "\
9186 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
9287
9388 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
9490 ;;
9591
9692 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
9793 echo "missing $scriptversion (GNU Automake)"
94 exit $?
9895 ;;
9996
10097 -*)
103100 exit 1
104101 ;;
105102
106 aclocal*)
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
107123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
108124 # We have it, but it failed.
109125 exit 1
110 fi
111
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
112139 echo 1>&2 "\
113140 WARNING: \`$1' is $msg. You should only need it if
114141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
118145 ;;
119146
120147 autoconf)
121 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
122 # We have it, but it failed.
123 exit 1
124 fi
125
126148 echo 1>&2 "\
127149 WARNING: \`$1' is $msg. You should only need it if
128150 you modified \`${configure_ac}'. You might want to install the
132154 ;;
133155
134156 autoheader)
135 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
136 # We have it, but it failed.
137 exit 1
138 fi
139
140157 echo 1>&2 "\
141158 WARNING: \`$1' is $msg. You should only need it if
142159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
156173 ;;
157174
158175 automake*)
159 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
160 # We have it, but it failed.
161 exit 1
162 fi
163
164176 echo 1>&2 "\
165177 WARNING: \`$1' is $msg. You should only need it if
166178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
172184 ;;
173185
174186 autom4te)
175 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
176 # We have it, but it failed.
177 exit 1
178 fi
179
180187 echo 1>&2 "\
181188 WARNING: \`$1' is needed, but is $msg.
182189 You might have modified some files without having the
253260 ;;
254261
255262 help2man)
256 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
257 # We have it, but it failed.
258 exit 1
259 fi
260
261263 echo 1>&2 "\
262264 WARNING: \`$1' is $msg. You should only need it if
263265 you modified a dependency of a manual page. You may need the
278280 ;;
279281
280282 makeinfo)
281 if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
282 # We have makeinfo, but it failed.
283 exit 1
284 fi
285
286283 echo 1>&2 "\
287284 WARNING: \`$1' is $msg. You should only need it if
288285 you modified a \`.texi' or \`.texinfo' file, or any other file
290287 call might also be the consequence of using a buggy \`make' (AIX,
291288 DU, IRIX). You might want to install the \`Texinfo' package or
292289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
293291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
294292 if test -z "$file"; then
295 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
296 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
297298 fi
298299 touch $file
299300 ;;
300301
301302 tar)
302303 shift
303 if test -n "$run"; then
304 echo 1>&2 "ERROR: \`tar' requires --run"
305 exit 1
306 fi
307304
308305 # We have already tried tar in the generic part.
309306 # Look for gnutar/gtar before invocation to avoid ugly error
+0
-150
mkinstalldirs less more
0 #! /bin/sh
1 # mkinstalldirs --- make directory hierarchy
2
3 scriptversion=2004-02-15.20
4
5 # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
6 # Created: 1993-05-16
7 # Public domain.
8 #
9 # This file is maintained in Automake, please report
10 # bugs to <bug-automake@gnu.org> or send patches to
11 # <automake-patches@gnu.org>.
12
13 errstatus=0
14 dirmode=""
15
16 usage="\
17 Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
18
19 Create each directory DIR (with mode MODE, if specified), including all
20 leading file name components.
21
22 Report bugs to <bug-automake@gnu.org>."
23
24 # process command line arguments
25 while test $# -gt 0 ; do
26 case $1 in
27 -h | --help | --h*) # -h for help
28 echo "$usage"
29 exit 0
30 ;;
31 -m) # -m PERM arg
32 shift
33 test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
34 dirmode=$1
35 shift
36 ;;
37 --version)
38 echo "$0 $scriptversion"
39 exit 0
40 ;;
41 --) # stop option processing
42 shift
43 break
44 ;;
45 -*) # unknown option
46 echo "$usage" 1>&2
47 exit 1
48 ;;
49 *) # first non-opt arg
50 break
51 ;;
52 esac
53 done
54
55 for file
56 do
57 if test -d "$file"; then
58 shift
59 else
60 break
61 fi
62 done
63
64 case $# in
65 0) exit 0 ;;
66 esac
67
68 # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
69 # mkdir -p a/c at the same time, both will detect that a is missing,
70 # one will create a, then the other will try to create a and die with
71 # a "File exists" error. This is a problem when calling mkinstalldirs
72 # from a parallel make. We use --version in the probe to restrict
73 # ourselves to GNU mkdir, which is thread-safe.
74 case $dirmode in
75 '')
76 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
77 echo "mkdir -p -- $*"
78 exec mkdir -p -- "$@"
79 else
80 # On NextStep and OpenStep, the `mkdir' command does not
81 # recognize any option. It will interpret all options as
82 # directories to create, and then abort because `.' already
83 # exists.
84 test -d ./-p && rmdir ./-p
85 test -d ./--version && rmdir ./--version
86 fi
87 ;;
88 *)
89 if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
90 test ! -d ./--version; then
91 echo "mkdir -m $dirmode -p -- $*"
92 exec mkdir -m "$dirmode" -p -- "$@"
93 else
94 # Clean up after NextStep and OpenStep mkdir.
95 for d in ./-m ./-p ./--version "./$dirmode";
96 do
97 test -d $d && rmdir $d
98 done
99 fi
100 ;;
101 esac
102
103 for file
104 do
105 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
106 shift
107
108 pathcomp=
109 for d
110 do
111 pathcomp="$pathcomp$d"
112 case $pathcomp in
113 -*) pathcomp=./$pathcomp ;;
114 esac
115
116 if test ! -d "$pathcomp"; then
117 echo "mkdir $pathcomp"
118
119 mkdir "$pathcomp" || lasterr=$?
120
121 if test ! -d "$pathcomp"; then
122 errstatus=$lasterr
123 else
124 if test ! -z "$dirmode"; then
125 echo "chmod $dirmode $pathcomp"
126 lasterr=""
127 chmod "$dirmode" "$pathcomp" || lasterr=$?
128
129 if test ! -z "$lasterr"; then
130 errstatus=$lasterr
131 fi
132 fi
133 fi
134 fi
135
136 pathcomp="$pathcomp/"
137 done
138 done
139
140 exit $errstatus
141
142 # Local Variables:
143 # mode: shell-script
144 # sh-indentation: 2
145 # eval: (add-hook 'write-file-hooks 'time-stamp)
146 # time-stamp-start: "scriptversion="
147 # time-stamp-format: "%:y-%02m-%02d.%02H"
148 # time-stamp-end: "$"
149 # End:
0 /* Copyright (c) 2004 Massachusetts Institute of Technology
0 /* Copyright (c) 2005 Massachusetts Institute of Technology
11 *
22 * Permission is hereby granted, free of charge, to any person obtaining
33 * a copy of this software and associated documentation files (the