Codebase list h5utils / 3cdcdf3
Import upstream version 1.13.1+git20190111.72d001d, md5 eb2100aed7c031eef706ba0f60d6dbac Debian Janitor 4 years ago
50 changed file(s) with 928 addition(s) and 11391 deletion(s). Raw diff Collapse all Expand all
0 *.tar.gz
1 *.exe
2 *.dll
3 *.do
4 *.o
5 *.lo
6 *.a
7 *.la
8 *.dylib
9 *.dSYM
10 *.zip
11 *.native
12 _build
13
14 # autotools stuff
15 Makefile
16 Makefile.in
17 .deps
18 .libs
19 stamp-h*
20 install-sh
21 libtool
22 ltmain.sh
23 m4/libtool.m4
24 m4/ltoptions.m4
25 m4/ltsugar.m4
26 m4/ltversion.m4
27 m4/lt~obsolete.m4
28 configure
29 config.*
30 autom4te.cache
31 INSTALL
32 aclocal.m4
33 depcomp
34 missing
35 py-compile
36 compile
37 test-driver
38
39 # programs
40 h5totxt
41 h5fromtxt
42 h5topng
43 h5tov5d
44 h5tovtk
45 h5math
46 h5read.oct
47 h4fromh5
48 h5fromh4
49 h5cyl2cart
50 h5fromitxt
51
52 # other generated files
53 h5topng.1
0 See https://github.com/stevengj/h5utils for the complete git
0 See https://github.com/NanoComp/h5utils for the complete git
11 history of h5utils.
+0
-1068
Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 VPATH = @srcdir@
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
29 am__make_running_with_option = \
30 case $${target_option-} in \
31 ?) ;; \
32 *) echo "am__make_running_with_option: internal error: invalid" \
33 "target option '$${target_option-}' specified" >&2; \
34 exit 1;; \
35 esac; \
36 has_opt=no; \
37 sane_makeflags=$$MAKEFLAGS; \
38 if $(am__is_gnu_make); then \
39 sane_makeflags=$$MFLAGS; \
40 else \
41 case $$MAKEFLAGS in \
42 *\\[\ \ ]*) \
43 bs=\\; \
44 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
46 esac; \
47 fi; \
48 skip_next=no; \
49 strip_trailopt () \
50 { \
51 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52 }; \
53 for flg in $$sane_makeflags; do \
54 test $$skip_next = yes && { skip_next=no; continue; }; \
55 case $$flg in \
56 *=*|--*) continue;; \
57 -*I) strip_trailopt 'I'; skip_next=yes;; \
58 -*I?*) strip_trailopt 'I';; \
59 -*O) strip_trailopt 'O'; skip_next=yes;; \
60 -*O?*) strip_trailopt 'O';; \
61 -*l) strip_trailopt 'l'; skip_next=yes;; \
62 -*l?*) strip_trailopt 'l';; \
63 -[dEDm]) skip_next=yes;; \
64 -[JT]) skip_next=yes;; \
65 esac; \
66 case $$flg in \
67 *$$target_option*) has_opt=yes; break;; \
68 esac; \
69 done; \
70 test $$has_opt = yes
71 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73 pkgdatadir = $(datadir)/@PACKAGE@
74 pkgincludedir = $(includedir)/@PACKAGE@
75 pkglibdir = $(libdir)/@PACKAGE@
76 pkglibexecdir = $(libexecdir)/@PACKAGE@
77 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78 install_sh_DATA = $(install_sh) -c -m 644
79 install_sh_PROGRAM = $(install_sh) -c
80 install_sh_SCRIPT = $(install_sh) -c
81 INSTALL_HEADER = $(INSTALL_DATA)
82 transform = $(program_transform_name)
83 NORMAL_INSTALL = :
84 PRE_INSTALL = :
85 POST_INSTALL = :
86 NORMAL_UNINSTALL = :
87 PRE_UNINSTALL = :
88 POST_UNINSTALL = :
89 noinst_PROGRAMS = h5cyl2cart$(EXEEXT)
90 bin_PROGRAMS = h5totxt$(EXEEXT) h5fromtxt$(EXEEXT) h5tovtk$(EXEEXT) \
91 @MORE_H5UTILS@ $(am__empty)
92 EXTRA_PROGRAMS = h5topng$(EXEEXT) h5tov5d$(EXEEXT) h5fromh4$(EXEEXT) \
93 h4fromh5$(EXEEXT) h5math$(EXEEXT)
94 subdir = .
95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
96 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
97 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
98 $(ACLOCAL_M4)
99 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
100 $(am__configure_deps) $(nobase_dist_pkgdata_DATA) \
101 $(am__DIST_COMMON)
102 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
103 configure.lineno config.status.lineno
104 mkinstalldirs = $(install_sh) -d
105 CONFIG_HEADER = config.h
106 CONFIG_CLEAN_FILES = doc/man/h5topng.1
107 CONFIG_CLEAN_VPATH_FILES =
108 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
109 "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(octdir)"
110 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
111 am__objects_1 = arrayh5.$(OBJEXT) h5utils.$(OBJEXT)
112 am_h4fromh5_OBJECTS = h4fromh5.$(OBJEXT) arrayh4.$(OBJEXT) \
113 $(am__objects_1)
114 h4fromh5_OBJECTS = $(am_h4fromh5_OBJECTS)
115 h4fromh5_DEPENDENCIES =
116 am_h5cyl2cart_OBJECTS = h5cyl2cart.$(OBJEXT) $(am__objects_1)
117 h5cyl2cart_OBJECTS = $(am_h5cyl2cart_OBJECTS)
118 h5cyl2cart_LDADD = $(LDADD)
119 am_h5fromh4_OBJECTS = h5fromh4.$(OBJEXT) arrayh4.$(OBJEXT) \
120 $(am__objects_1)
121 h5fromh4_OBJECTS = $(am_h5fromh4_OBJECTS)
122 h5fromh4_DEPENDENCIES =
123 am_h5fromtxt_OBJECTS = h5fromtxt.$(OBJEXT) $(am__objects_1)
124 h5fromtxt_OBJECTS = $(am_h5fromtxt_OBJECTS)
125 h5fromtxt_LDADD = $(LDADD)
126 am_h5math_OBJECTS = h5math.$(OBJEXT) $(am__objects_1)
127 h5math_OBJECTS = $(am_h5math_OBJECTS)
128 h5math_DEPENDENCIES =
129 am_h5topng_OBJECTS = h5topng.$(OBJEXT) writepng.$(OBJEXT) \
130 $(am__objects_1)
131 h5topng_OBJECTS = $(am_h5topng_OBJECTS)
132 h5topng_DEPENDENCIES =
133 am_h5totxt_OBJECTS = h5totxt.$(OBJEXT) $(am__objects_1)
134 h5totxt_OBJECTS = $(am_h5totxt_OBJECTS)
135 h5totxt_LDADD = $(LDADD)
136 am__objects_2 = h5tov5d-arrayh5.$(OBJEXT) h5tov5d-h5utils.$(OBJEXT)
137 am_h5tov5d_OBJECTS = h5tov5d-h5tov5d.$(OBJEXT) $(am__objects_2)
138 h5tov5d_OBJECTS = $(am_h5tov5d_OBJECTS)
139 h5tov5d_DEPENDENCIES =
140 am_h5tovtk_OBJECTS = h5tovtk.$(OBJEXT) $(am__objects_1)
141 h5tovtk_OBJECTS = $(am_h5tovtk_OBJECTS)
142 h5tovtk_LDADD = $(LDADD)
143 AM_V_P = $(am__v_P_@AM_V@)
144 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
145 am__v_P_0 = false
146 am__v_P_1 = :
147 AM_V_GEN = $(am__v_GEN_@AM_V@)
148 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
149 am__v_GEN_0 = @echo " GEN " $@;
150 am__v_GEN_1 =
151 AM_V_at = $(am__v_at_@AM_V@)
152 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
153 am__v_at_0 = @
154 am__v_at_1 =
155 DEFAULT_INCLUDES = -I.@am__isrc@
156 depcomp = $(SHELL) $(top_srcdir)/depcomp
157 am__depfiles_maybe = depfiles
158 am__mv = mv -f
159 AM_V_lt = $(am__v_lt_@AM_V@)
160 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
161 am__v_lt_0 = --silent
162 am__v_lt_1 =
163 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
164 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
165 AM_V_CC = $(am__v_CC_@AM_V@)
166 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
167 am__v_CC_0 = @echo " CC " $@;
168 am__v_CC_1 =
169 CCLD = $(CC)
170 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
171 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
172 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
173 am__v_CCLD_0 = @echo " CCLD " $@;
174 am__v_CCLD_1 =
175 SOURCES = $(h4fromh5_SOURCES) $(h5cyl2cart_SOURCES) \
176 $(h5fromh4_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \
177 $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) \
178 $(h5tovtk_SOURCES)
179 DIST_SOURCES = $(h4fromh5_SOURCES) $(h5cyl2cart_SOURCES) \
180 $(h5fromh4_SOURCES) $(h5fromtxt_SOURCES) $(h5math_SOURCES) \
181 $(h5topng_SOURCES) $(h5totxt_SOURCES) $(h5tov5d_SOURCES) \
182 $(h5tovtk_SOURCES)
183 am__can_run_installinfo = \
184 case $$AM_UPDATE_INFO_DIR in \
185 n|no|NO) false;; \
186 *) (install-info --version) >/dev/null 2>&1;; \
187 esac
188 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
189 am__vpath_adj = case $$p in \
190 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
191 *) f=$$p;; \
192 esac;
193 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
194 am__install_max = 40
195 am__nobase_strip_setup = \
196 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
197 am__nobase_strip = \
198 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
199 am__nobase_list = $(am__nobase_strip_setup); \
200 for p in $$list; do echo "$$p $$p"; done | \
201 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
202 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
203 if (++n[$$2] == $(am__install_max)) \
204 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
205 END { for (dir in files) print dir, files[dir] }'
206 am__base_list = \
207 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
208 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
209 am__uninstall_files_from_dir = { \
210 test -z "$$files" \
211 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
212 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
213 $(am__cd) "$$dir" && rm -f $$files; }; \
214 }
215 man1dir = $(mandir)/man1
216 NROFF = nroff
217 MANS = $(dist_man_MANS) $(nodist_man_MANS)
218 DATA = $(nobase_dist_pkgdata_DATA) $(oct_DATA)
219 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
220 $(LISP)config.h.in
221 # Read a list of newline-separated strings from the standard input,
222 # and print each of them once, without duplicates. Input order is
223 # *not* preserved.
224 am__uniquify_input = $(AWK) '\
225 BEGIN { nonempty = 0; } \
226 { items[$$0] = 1; nonempty = 1; } \
227 END { if (nonempty) { for (i in items) print i; }; } \
228 '
229 # Make sure the list of sources is unique. This is necessary because,
230 # e.g., the same source file might be shared among _SOURCES variables
231 # for different programs/libraries.
232 am__define_uniq_tagged_files = \
233 list='$(am__tagged_files)'; \
234 unique=`for i in $$list; do \
235 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
236 done | $(am__uniquify_input)`
237 ETAGS = etags
238 CTAGS = ctags
239 CSCOPE = cscope
240 AM_RECURSIVE_TARGETS = cscope
241 am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in \
242 $(srcdir)/config.h.in $(top_srcdir)/doc/man/h5topng.1.in \
243 AUTHORS COPYING ChangeLog compile depcomp install-sh missing
244 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
245 distdir = $(PACKAGE)-$(VERSION)
246 top_distdir = $(distdir)
247 am__remove_distdir = \
248 if test -d "$(distdir)"; then \
249 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
250 && rm -rf "$(distdir)" \
251 || { sleep 5 && rm -rf "$(distdir)"; }; \
252 else :; fi
253 am__post_remove_distdir = $(am__remove_distdir)
254 DIST_ARCHIVES = $(distdir).tar.gz
255 GZIP_ENV = --best
256 DIST_TARGETS = dist-gzip
257 distuninstallcheck_listfiles = find . -type f -print
258 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
259 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
260 distcleancheck_listfiles = find . -type f -print
261 ACLOCAL = @ACLOCAL@
262 AMTAR = @AMTAR@
263 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
264 AUTOCONF = @AUTOCONF@
265 AUTOHEADER = @AUTOHEADER@
266 AUTOMAKE = @AUTOMAKE@
267 AWK = @AWK@
268 CC = @CC@
269 CCDEPMODE = @CCDEPMODE@
270 CFLAGS = @CFLAGS@
271 CPP = @CPP@
272 CPPFLAGS = @CPPFLAGS@
273 CYGPATH_W = @CYGPATH_W@
274 DEFS = @DEFS@
275 DEPDIR = @DEPDIR@
276 ECHO_C = @ECHO_C@
277 ECHO_N = @ECHO_N@
278 ECHO_T = @ECHO_T@
279 EGREP = @EGREP@
280 EXEEXT = @EXEEXT@
281 GREP = @GREP@
282 H4TOH5 = @H4TOH5@
283 H4_LIBS = @H4_LIBS@
284 H5READ = @H5READ@
285 H5TOH4 = @H5TOH4@
286 H5TOPNG_MAN = @H5TOPNG_MAN@
287 INSTALL = @INSTALL@
288 INSTALL_DATA = @INSTALL_DATA@
289 INSTALL_PROGRAM = @INSTALL_PROGRAM@
290 INSTALL_SCRIPT = @INSTALL_SCRIPT@
291 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
292 LDFLAGS = @LDFLAGS@
293 LIBOBJS = @LIBOBJS@
294 LIBS = @LIBS@
295 LTLIBOBJS = @LTLIBOBJS@
296 MAINT = @MAINT@
297 MAKEINFO = @MAKEINFO@
298 MKDIR_P = @MKDIR_P@
299 MKOCTFILE = @MKOCTFILE@
300 MORE_H5UTILS = @MORE_H5UTILS@
301 MORE_H5UTILS_MANS = @MORE_H5UTILS_MANS@
302 OBJEXT = @OBJEXT@
303 OCTAVE = @OCTAVE@
304 OCTAVE_CONFIG = @OCTAVE_CONFIG@
305 OCT_INSTALL_DIR = @OCT_INSTALL_DIR@
306 PACKAGE = @PACKAGE@
307 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
308 PACKAGE_NAME = @PACKAGE_NAME@
309 PACKAGE_STRING = @PACKAGE_STRING@
310 PACKAGE_TARNAME = @PACKAGE_TARNAME@
311 PACKAGE_URL = @PACKAGE_URL@
312 PACKAGE_VERSION = @PACKAGE_VERSION@
313 PATH_SEPARATOR = @PATH_SEPARATOR@
314 PNG_LIBS = @PNG_LIBS@
315 SET_MAKE = @SET_MAKE@
316 SHELL = @SHELL@
317 STRIP = @STRIP@
318 V5D_FILES = @V5D_FILES@
319 V5D_INCLUDES = @V5D_INCLUDES@
320 VERSION = @VERSION@
321 abs_builddir = @abs_builddir@
322 abs_srcdir = @abs_srcdir@
323 abs_top_builddir = @abs_top_builddir@
324 abs_top_srcdir = @abs_top_srcdir@
325 ac_ct_CC = @ac_ct_CC@
326 am__include = @am__include@
327 am__leading_dot = @am__leading_dot@
328 am__quote = @am__quote@
329 am__tar = @am__tar@
330 am__untar = @am__untar@
331 bindir = @bindir@
332 build_alias = @build_alias@
333 builddir = @builddir@
334 datadir = @datadir@
335 datadir_val = @datadir_val@
336 datarootdir = @datarootdir@
337 docdir = @docdir@
338 dvidir = @dvidir@
339 exec_prefix = @exec_prefix@
340 host_alias = @host_alias@
341 htmldir = @htmldir@
342 includedir = @includedir@
343 infodir = @infodir@
344 install_sh = @install_sh@
345 libdir = @libdir@
346 libexecdir = @libexecdir@
347 localedir = @localedir@
348 localstatedir = @localstatedir@
349 mandir = @mandir@
350 mkdir_p = @mkdir_p@
351 oldincludedir = @oldincludedir@
352 pdfdir = @pdfdir@
353 prefix = @prefix@
354 program_transform_name = @program_transform_name@
355 psdir = @psdir@
356 sbindir = @sbindir@
357 sharedstatedir = @sharedstatedir@
358 srcdir = @srcdir@
359 sysconfdir = @sysconfdir@
360 target_alias = @target_alias@
361 top_build_prefix = @top_build_prefix@
362 top_builddir = @top_builddir@
363 top_srcdir = @top_srcdir@
364 COLORMAPS = colormaps/autumn colormaps/bluered colormaps/bone \
365 colormaps/colorcube colormaps/cool colormaps/copper colormaps/flag \
366 colormaps/gray colormaps/green colormaps/hot colormaps/hsv \
367 colormaps/jet colormaps/lines colormaps/pink colormaps/prism \
368 colormaps/spring colormaps/summer colormaps/vga colormaps/winter \
369 colormaps/yarg colormaps/yellow colormaps/dkbluered \
370 colormaps/viridis colormaps/inferno colormaps/RdBu colormaps/BrBG
371
372 EXTRA_MANS = doc/man/h5topng.1.in doc/man/h5tov5d.1 doc/man/h5fromh4.1 doc/man/h5math.1
373 EXTRA_DIST = h5read.cc copyright.h $(COLORMAPS) $(EXTRA_MANS)
374 dist_man_MANS = doc/man/h5totxt.1 doc/man/h5fromtxt.1 doc/man/h5tovtk.1 @MORE_H5UTILS_MANS@
375 nodist_man_MANS = @H5TOPNG_MAN@
376 COMMON_SRC = arrayh5.c arrayh5.h h5utils.c h5utils.h
377 h5totxt_SOURCES = h5totxt.c $(COMMON_SRC)
378 h5fromtxt_SOURCES = h5fromtxt.c $(COMMON_SRC)
379 h5tovtk_SOURCES = h5tovtk.c $(COMMON_SRC)
380 h5topng_SOURCES = h5topng.c writepng.c writepng.h $(COMMON_SRC)
381 h5topng_LDADD = @PNG_LIBS@
382 h5tov5d_SOURCES = h5tov5d.c $(COMMON_SRC)
383 h5tov5d_CPPFLAGS = $(AM_CPPFLAGS) @V5D_INCLUDES@
384 h5tov5d_LDADD = @V5D_FILES@
385 h5fromh4_SOURCES = h5fromh4.c arrayh4.c arrayh4.h $(COMMON_SRC)
386 h5fromh4_LDADD = @H4_LIBS@
387 h4fromh5_SOURCES = h4fromh5.c arrayh4.c arrayh4.h $(COMMON_SRC)
388 h4fromh5_LDADD = @H4_LIBS@
389 h5math_SOURCES = h5math.c $(COMMON_SRC)
390 h5math_LDADD = -lmatheval
391 h5cyl2cart_SOURCES = h5cyl2cart.c $(COMMON_SRC)
392 octdir = @OCT_INSTALL_DIR@
393 oct_DATA = @H5READ@
394 nobase_dist_pkgdata_DATA = $(COLORMAPS)
395 all: config.h
396 $(MAKE) $(AM_MAKEFLAGS) all-am
397
398 .SUFFIXES:
399 .SUFFIXES: .c .o .obj
400 am--refresh: Makefile
401 @:
402 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
403 @for dep in $?; do \
404 case '$(am__configure_deps)' in \
405 *$$dep*) \
406 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
407 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
408 && exit 0; \
409 exit 1;; \
410 esac; \
411 done; \
412 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
413 $(am__cd) $(top_srcdir) && \
414 $(AUTOMAKE) --foreign Makefile
415 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
416 @case '$?' in \
417 *config.status*) \
418 echo ' $(SHELL) ./config.status'; \
419 $(SHELL) ./config.status;; \
420 *) \
421 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
422 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
423 esac;
424
425 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
426 $(SHELL) ./config.status --recheck
427
428 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
429 $(am__cd) $(srcdir) && $(AUTOCONF)
430 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
431 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
432 $(am__aclocal_m4_deps):
433
434 config.h: stamp-h1
435 @test -f $@ || rm -f stamp-h1
436 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
437
438 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
439 @rm -f stamp-h1
440 cd $(top_builddir) && $(SHELL) ./config.status config.h
441 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
442 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
443 rm -f stamp-h1
444 touch $@
445
446 distclean-hdr:
447 -rm -f config.h stamp-h1
448 doc/man/h5topng.1: $(top_builddir)/config.status $(top_srcdir)/doc/man/h5topng.1.in
449 cd $(top_builddir) && $(SHELL) ./config.status $@
450 install-binPROGRAMS: $(bin_PROGRAMS)
451 @$(NORMAL_INSTALL)
452 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
453 if test -n "$$list"; then \
454 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
455 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
456 fi; \
457 for p in $$list; do echo "$$p $$p"; done | \
458 sed 's/$(EXEEXT)$$//' | \
459 while read p p1; do if test -f $$p \
460 ; then echo "$$p"; echo "$$p"; else :; fi; \
461 done | \
462 sed -e 'p;s,.*/,,;n;h' \
463 -e 's|.*|.|' \
464 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
465 sed 'N;N;N;s,\n, ,g' | \
466 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
467 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
468 if ($$2 == $$4) files[d] = files[d] " " $$1; \
469 else { print "f", $$3 "/" $$4, $$1; } } \
470 END { for (d in files) print "f", d, files[d] }' | \
471 while read type dir files; do \
472 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
473 test -z "$$files" || { \
474 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
475 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
476 } \
477 ; done
478
479 uninstall-binPROGRAMS:
480 @$(NORMAL_UNINSTALL)
481 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
482 files=`for p in $$list; do echo "$$p"; done | \
483 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
484 -e 's/$$/$(EXEEXT)/' \
485 `; \
486 test -n "$$list" || exit 0; \
487 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
488 cd "$(DESTDIR)$(bindir)" && rm -f $$files
489
490 clean-binPROGRAMS:
491 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
492
493 clean-noinstPROGRAMS:
494 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
495
496 h4fromh5$(EXEEXT): $(h4fromh5_OBJECTS) $(h4fromh5_DEPENDENCIES) $(EXTRA_h4fromh5_DEPENDENCIES)
497 @rm -f h4fromh5$(EXEEXT)
498 $(AM_V_CCLD)$(LINK) $(h4fromh5_OBJECTS) $(h4fromh5_LDADD) $(LIBS)
499
500 h5cyl2cart$(EXEEXT): $(h5cyl2cart_OBJECTS) $(h5cyl2cart_DEPENDENCIES) $(EXTRA_h5cyl2cart_DEPENDENCIES)
501 @rm -f h5cyl2cart$(EXEEXT)
502 $(AM_V_CCLD)$(LINK) $(h5cyl2cart_OBJECTS) $(h5cyl2cart_LDADD) $(LIBS)
503
504 h5fromh4$(EXEEXT): $(h5fromh4_OBJECTS) $(h5fromh4_DEPENDENCIES) $(EXTRA_h5fromh4_DEPENDENCIES)
505 @rm -f h5fromh4$(EXEEXT)
506 $(AM_V_CCLD)$(LINK) $(h5fromh4_OBJECTS) $(h5fromh4_LDADD) $(LIBS)
507
508 h5fromtxt$(EXEEXT): $(h5fromtxt_OBJECTS) $(h5fromtxt_DEPENDENCIES) $(EXTRA_h5fromtxt_DEPENDENCIES)
509 @rm -f h5fromtxt$(EXEEXT)
510 $(AM_V_CCLD)$(LINK) $(h5fromtxt_OBJECTS) $(h5fromtxt_LDADD) $(LIBS)
511
512 h5math$(EXEEXT): $(h5math_OBJECTS) $(h5math_DEPENDENCIES) $(EXTRA_h5math_DEPENDENCIES)
513 @rm -f h5math$(EXEEXT)
514 $(AM_V_CCLD)$(LINK) $(h5math_OBJECTS) $(h5math_LDADD) $(LIBS)
515
516 h5topng$(EXEEXT): $(h5topng_OBJECTS) $(h5topng_DEPENDENCIES) $(EXTRA_h5topng_DEPENDENCIES)
517 @rm -f h5topng$(EXEEXT)
518 $(AM_V_CCLD)$(LINK) $(h5topng_OBJECTS) $(h5topng_LDADD) $(LIBS)
519
520 h5totxt$(EXEEXT): $(h5totxt_OBJECTS) $(h5totxt_DEPENDENCIES) $(EXTRA_h5totxt_DEPENDENCIES)
521 @rm -f h5totxt$(EXEEXT)
522 $(AM_V_CCLD)$(LINK) $(h5totxt_OBJECTS) $(h5totxt_LDADD) $(LIBS)
523
524 h5tov5d$(EXEEXT): $(h5tov5d_OBJECTS) $(h5tov5d_DEPENDENCIES) $(EXTRA_h5tov5d_DEPENDENCIES)
525 @rm -f h5tov5d$(EXEEXT)
526 $(AM_V_CCLD)$(LINK) $(h5tov5d_OBJECTS) $(h5tov5d_LDADD) $(LIBS)
527
528 h5tovtk$(EXEEXT): $(h5tovtk_OBJECTS) $(h5tovtk_DEPENDENCIES) $(EXTRA_h5tovtk_DEPENDENCIES)
529 @rm -f h5tovtk$(EXEEXT)
530 $(AM_V_CCLD)$(LINK) $(h5tovtk_OBJECTS) $(h5tovtk_LDADD) $(LIBS)
531
532 mostlyclean-compile:
533 -rm -f *.$(OBJEXT)
534
535 distclean-compile:
536 -rm -f *.tab.c
537
538 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrayh4.Po@am__quote@
539 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arrayh5.Po@am__quote@
540 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h4fromh5.Po@am__quote@
541 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5cyl2cart.Po@am__quote@
542 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromh4.Po@am__quote@
543 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5fromtxt.Po@am__quote@
544 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5math.Po@am__quote@
545 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5topng.Po@am__quote@
546 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5totxt.Po@am__quote@
547 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5tov5d-arrayh5.Po@am__quote@
548 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5tov5d-h5tov5d.Po@am__quote@
549 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5tov5d-h5utils.Po@am__quote@
550 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5tovtk.Po@am__quote@
551 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/h5utils.Po@am__quote@
552 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/writepng.Po@am__quote@
553
554 .c.o:
555 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
556 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
557 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
558 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
559 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
560
561 .c.obj:
562 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
563 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
564 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
565 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
566 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
567
568 h5tov5d-h5tov5d.o: h5tov5d.c
569 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5tov5d.o -MD -MP -MF $(DEPDIR)/h5tov5d-h5tov5d.Tpo -c -o h5tov5d-h5tov5d.o `test -f 'h5tov5d.c' || echo '$(srcdir)/'`h5tov5d.c
570 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5tov5d.Tpo $(DEPDIR)/h5tov5d-h5tov5d.Po
571 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5tov5d.c' object='h5tov5d-h5tov5d.o' libtool=no @AMDEPBACKSLASH@
572 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
573 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5tov5d.o `test -f 'h5tov5d.c' || echo '$(srcdir)/'`h5tov5d.c
574
575 h5tov5d-h5tov5d.obj: h5tov5d.c
576 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5tov5d.obj -MD -MP -MF $(DEPDIR)/h5tov5d-h5tov5d.Tpo -c -o h5tov5d-h5tov5d.obj `if test -f 'h5tov5d.c'; then $(CYGPATH_W) 'h5tov5d.c'; else $(CYGPATH_W) '$(srcdir)/h5tov5d.c'; fi`
577 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5tov5d.Tpo $(DEPDIR)/h5tov5d-h5tov5d.Po
578 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5tov5d.c' object='h5tov5d-h5tov5d.obj' libtool=no @AMDEPBACKSLASH@
579 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
580 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5tov5d.obj `if test -f 'h5tov5d.c'; then $(CYGPATH_W) 'h5tov5d.c'; else $(CYGPATH_W) '$(srcdir)/h5tov5d.c'; fi`
581
582 h5tov5d-arrayh5.o: arrayh5.c
583 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-arrayh5.o -MD -MP -MF $(DEPDIR)/h5tov5d-arrayh5.Tpo -c -o h5tov5d-arrayh5.o `test -f 'arrayh5.c' || echo '$(srcdir)/'`arrayh5.c
584 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-arrayh5.Tpo $(DEPDIR)/h5tov5d-arrayh5.Po
585 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arrayh5.c' object='h5tov5d-arrayh5.o' libtool=no @AMDEPBACKSLASH@
586 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
587 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-arrayh5.o `test -f 'arrayh5.c' || echo '$(srcdir)/'`arrayh5.c
588
589 h5tov5d-arrayh5.obj: arrayh5.c
590 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-arrayh5.obj -MD -MP -MF $(DEPDIR)/h5tov5d-arrayh5.Tpo -c -o h5tov5d-arrayh5.obj `if test -f 'arrayh5.c'; then $(CYGPATH_W) 'arrayh5.c'; else $(CYGPATH_W) '$(srcdir)/arrayh5.c'; fi`
591 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-arrayh5.Tpo $(DEPDIR)/h5tov5d-arrayh5.Po
592 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arrayh5.c' object='h5tov5d-arrayh5.obj' libtool=no @AMDEPBACKSLASH@
593 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
594 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-arrayh5.obj `if test -f 'arrayh5.c'; then $(CYGPATH_W) 'arrayh5.c'; else $(CYGPATH_W) '$(srcdir)/arrayh5.c'; fi`
595
596 h5tov5d-h5utils.o: h5utils.c
597 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5utils.o -MD -MP -MF $(DEPDIR)/h5tov5d-h5utils.Tpo -c -o h5tov5d-h5utils.o `test -f 'h5utils.c' || echo '$(srcdir)/'`h5utils.c
598 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5utils.Tpo $(DEPDIR)/h5tov5d-h5utils.Po
599 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5utils.c' object='h5tov5d-h5utils.o' libtool=no @AMDEPBACKSLASH@
600 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
601 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5utils.o `test -f 'h5utils.c' || echo '$(srcdir)/'`h5utils.c
602
603 h5tov5d-h5utils.obj: h5utils.c
604 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT h5tov5d-h5utils.obj -MD -MP -MF $(DEPDIR)/h5tov5d-h5utils.Tpo -c -o h5tov5d-h5utils.obj `if test -f 'h5utils.c'; then $(CYGPATH_W) 'h5utils.c'; else $(CYGPATH_W) '$(srcdir)/h5utils.c'; fi`
605 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/h5tov5d-h5utils.Tpo $(DEPDIR)/h5tov5d-h5utils.Po
606 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='h5utils.c' object='h5tov5d-h5utils.obj' libtool=no @AMDEPBACKSLASH@
607 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
608 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(h5tov5d_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o h5tov5d-h5utils.obj `if test -f 'h5utils.c'; then $(CYGPATH_W) 'h5utils.c'; else $(CYGPATH_W) '$(srcdir)/h5utils.c'; fi`
609 install-man1: $(dist_man_MANS) $(nodist_man_MANS)
610 @$(NORMAL_INSTALL)
611 @list1=''; \
612 list2='$(dist_man_MANS) $(nodist_man_MANS)'; \
613 test -n "$(man1dir)" \
614 && test -n "`echo $$list1$$list2`" \
615 || exit 0; \
616 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
617 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
618 { for i in $$list1; do echo "$$i"; done; \
619 if test -n "$$list2"; then \
620 for i in $$list2; do echo "$$i"; done \
621 | sed -n '/\.1[a-z]*$$/p'; \
622 fi; \
623 } | while read p; do \
624 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
625 echo "$$d$$p"; echo "$$p"; \
626 done | \
627 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
628 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
629 sed 'N;N;s,\n, ,g' | { \
630 list=; while read file base inst; do \
631 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
632 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
633 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
634 fi; \
635 done; \
636 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
637 while read files; do \
638 test -z "$$files" || { \
639 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
640 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
641 done; }
642
643 uninstall-man1:
644 @$(NORMAL_UNINSTALL)
645 @list=''; test -n "$(man1dir)" || exit 0; \
646 files=`{ for i in $$list; do echo "$$i"; done; \
647 l2='$(dist_man_MANS) $(nodist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
648 sed -n '/\.1[a-z]*$$/p'; \
649 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
650 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
651 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
652 install-nobase_dist_pkgdataDATA: $(nobase_dist_pkgdata_DATA)
653 @$(NORMAL_INSTALL)
654 @list='$(nobase_dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
655 if test -n "$$list"; then \
656 echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
657 $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
658 fi; \
659 $(am__nobase_list) | while read dir files; do \
660 xfiles=; for file in $$files; do \
661 if test -f "$$file"; then xfiles="$$xfiles $$file"; \
662 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
663 test -z "$$xfiles" || { \
664 test "x$$dir" = x. || { \
665 echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)/$$dir'"; \
666 $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)/$$dir"; }; \
667 echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(pkgdatadir)/$$dir'"; \
668 $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(pkgdatadir)/$$dir" || exit $$?; }; \
669 done
670
671 uninstall-nobase_dist_pkgdataDATA:
672 @$(NORMAL_UNINSTALL)
673 @list='$(nobase_dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
674 $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
675 dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir)
676 install-octDATA: $(oct_DATA)
677 @$(NORMAL_INSTALL)
678 @list='$(oct_DATA)'; test -n "$(octdir)" || list=; \
679 if test -n "$$list"; then \
680 echo " $(MKDIR_P) '$(DESTDIR)$(octdir)'"; \
681 $(MKDIR_P) "$(DESTDIR)$(octdir)" || exit 1; \
682 fi; \
683 for p in $$list; do \
684 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
685 echo "$$d$$p"; \
686 done | $(am__base_list) | \
687 while read files; do \
688 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(octdir)'"; \
689 $(INSTALL_DATA) $$files "$(DESTDIR)$(octdir)" || exit $$?; \
690 done
691
692 uninstall-octDATA:
693 @$(NORMAL_UNINSTALL)
694 @list='$(oct_DATA)'; test -n "$(octdir)" || list=; \
695 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
696 dir='$(DESTDIR)$(octdir)'; $(am__uninstall_files_from_dir)
697
698 ID: $(am__tagged_files)
699 $(am__define_uniq_tagged_files); mkid -fID $$unique
700 tags: tags-am
701 TAGS: tags
702
703 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
704 set x; \
705 here=`pwd`; \
706 $(am__define_uniq_tagged_files); \
707 shift; \
708 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
709 test -n "$$unique" || unique=$$empty_fix; \
710 if test $$# -gt 0; then \
711 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
712 "$$@" $$unique; \
713 else \
714 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
715 $$unique; \
716 fi; \
717 fi
718 ctags: ctags-am
719
720 CTAGS: ctags
721 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
722 $(am__define_uniq_tagged_files); \
723 test -z "$(CTAGS_ARGS)$$unique" \
724 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
725 $$unique
726
727 GTAGS:
728 here=`$(am__cd) $(top_builddir) && pwd` \
729 && $(am__cd) $(top_srcdir) \
730 && gtags -i $(GTAGS_ARGS) "$$here"
731 cscope: cscope.files
732 test ! -s cscope.files \
733 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
734 clean-cscope:
735 -rm -f cscope.files
736 cscope.files: clean-cscope cscopelist
737 cscopelist: cscopelist-am
738
739 cscopelist-am: $(am__tagged_files)
740 list='$(am__tagged_files)'; \
741 case "$(srcdir)" in \
742 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
743 *) sdir=$(subdir)/$(srcdir) ;; \
744 esac; \
745 for i in $$list; do \
746 if test -f "$$i"; then \
747 echo "$(subdir)/$$i"; \
748 else \
749 echo "$$sdir/$$i"; \
750 fi; \
751 done >> $(top_builddir)/cscope.files
752
753 distclean-tags:
754 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
755 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
756
757 distdir: $(DISTFILES)
758 $(am__remove_distdir)
759 test -d "$(distdir)" || mkdir "$(distdir)"
760 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
761 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
762 list='$(DISTFILES)'; \
763 dist_files=`for file in $$list; do echo $$file; done | \
764 sed -e "s|^$$srcdirstrip/||;t" \
765 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
766 case $$dist_files in \
767 */*) $(MKDIR_P) `echo "$$dist_files" | \
768 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
769 sort -u` ;; \
770 esac; \
771 for file in $$dist_files; do \
772 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
773 if test -d $$d/$$file; then \
774 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
775 if test -d "$(distdir)/$$file"; then \
776 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
777 fi; \
778 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
779 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
780 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
781 fi; \
782 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
783 else \
784 test -f "$(distdir)/$$file" \
785 || cp -p $$d/$$file "$(distdir)/$$file" \
786 || exit 1; \
787 fi; \
788 done
789 -test -n "$(am__skip_mode_fix)" \
790 || find "$(distdir)" -type d ! -perm -755 \
791 -exec chmod u+rwx,go+rx {} \; -o \
792 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
793 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
794 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
795 || chmod -R a+r "$(distdir)"
796 dist-gzip: distdir
797 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
798 $(am__post_remove_distdir)
799
800 dist-bzip2: distdir
801 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
802 $(am__post_remove_distdir)
803
804 dist-lzip: distdir
805 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
806 $(am__post_remove_distdir)
807
808 dist-xz: distdir
809 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
810 $(am__post_remove_distdir)
811
812 dist-tarZ: distdir
813 @echo WARNING: "Support for distribution archives compressed with" \
814 "legacy program 'compress' is deprecated." >&2
815 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
816 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
817 $(am__post_remove_distdir)
818
819 dist-shar: distdir
820 @echo WARNING: "Support for shar distribution archives is" \
821 "deprecated." >&2
822 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
823 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
824 $(am__post_remove_distdir)
825
826 dist-zip: distdir
827 -rm -f $(distdir).zip
828 zip -rq $(distdir).zip $(distdir)
829 $(am__post_remove_distdir)
830
831 dist dist-all:
832 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
833 $(am__post_remove_distdir)
834
835 # This target untars the dist file and tries a VPATH configuration. Then
836 # it guarantees that the distribution is self-contained by making another
837 # tarfile.
838 distcheck: dist
839 case '$(DIST_ARCHIVES)' in \
840 *.tar.gz*) \
841 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
842 *.tar.bz2*) \
843 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
844 *.tar.lz*) \
845 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
846 *.tar.xz*) \
847 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
848 *.tar.Z*) \
849 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
850 *.shar.gz*) \
851 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
852 *.zip*) \
853 unzip $(distdir).zip ;;\
854 esac
855 chmod -R a-w $(distdir)
856 chmod u+w $(distdir)
857 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
858 chmod a-w $(distdir)
859 test -d $(distdir)/_build || exit 0; \
860 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
861 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
862 && am__cwd=`pwd` \
863 && $(am__cd) $(distdir)/_build/sub \
864 && ../../configure \
865 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
866 $(DISTCHECK_CONFIGURE_FLAGS) \
867 --srcdir=../.. --prefix="$$dc_install_base" \
868 && $(MAKE) $(AM_MAKEFLAGS) \
869 && $(MAKE) $(AM_MAKEFLAGS) dvi \
870 && $(MAKE) $(AM_MAKEFLAGS) check \
871 && $(MAKE) $(AM_MAKEFLAGS) install \
872 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
873 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
874 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
875 distuninstallcheck \
876 && chmod -R a-w "$$dc_install_base" \
877 && ({ \
878 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
879 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
880 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
881 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
882 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
883 } || { rm -rf "$$dc_destdir"; exit 1; }) \
884 && rm -rf "$$dc_destdir" \
885 && $(MAKE) $(AM_MAKEFLAGS) dist \
886 && rm -rf $(DIST_ARCHIVES) \
887 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
888 && cd "$$am__cwd" \
889 || exit 1
890 $(am__post_remove_distdir)
891 @(echo "$(distdir) archives ready for distribution: "; \
892 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
893 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
894 distuninstallcheck:
895 @test -n '$(distuninstallcheck_dir)' || { \
896 echo 'ERROR: trying to run $@ with an empty' \
897 '$$(distuninstallcheck_dir)' >&2; \
898 exit 1; \
899 }; \
900 $(am__cd) '$(distuninstallcheck_dir)' || { \
901 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
902 exit 1; \
903 }; \
904 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
905 || { echo "ERROR: files left after uninstall:" ; \
906 if test -n "$(DESTDIR)"; then \
907 echo " (check DESTDIR support)"; \
908 fi ; \
909 $(distuninstallcheck_listfiles) ; \
910 exit 1; } >&2
911 distcleancheck: distclean
912 @if test '$(srcdir)' = . ; then \
913 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
914 exit 1 ; \
915 fi
916 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
917 || { echo "ERROR: files left in build directory after distclean:" ; \
918 $(distcleancheck_listfiles) ; \
919 exit 1; } >&2
920 check-am: all-am
921 check: check-am
922 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h
923 installdirs:
924 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(octdir)"; do \
925 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
926 done
927 install: install-am
928 install-exec: install-exec-am
929 install-data: install-data-am
930 uninstall: uninstall-am
931
932 install-am: all-am
933 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
934
935 installcheck: installcheck-am
936 install-strip:
937 if test -z '$(STRIP)'; then \
938 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
939 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
940 install; \
941 else \
942 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
943 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
944 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
945 fi
946 mostlyclean-generic:
947
948 clean-generic:
949
950 distclean-generic:
951 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
952 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
953
954 maintainer-clean-generic:
955 @echo "This command is intended for maintainers to use"
956 @echo "it deletes files that may require special tools to rebuild."
957 clean: clean-am
958
959 clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \
960 mostlyclean-am
961
962 distclean: distclean-am
963 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
964 -rm -rf ./$(DEPDIR)
965 -rm -f Makefile
966 distclean-am: clean-am distclean-compile distclean-generic \
967 distclean-hdr distclean-tags
968
969 dvi: dvi-am
970
971 dvi-am:
972
973 html: html-am
974
975 html-am:
976
977 info: info-am
978
979 info-am:
980
981 install-data-am: install-man install-nobase_dist_pkgdataDATA \
982 install-octDATA
983
984 install-dvi: install-dvi-am
985
986 install-dvi-am:
987
988 install-exec-am: install-binPROGRAMS
989
990 install-html: install-html-am
991
992 install-html-am:
993
994 install-info: install-info-am
995
996 install-info-am:
997
998 install-man: install-man1
999
1000 install-pdf: install-pdf-am
1001
1002 install-pdf-am:
1003
1004 install-ps: install-ps-am
1005
1006 install-ps-am:
1007
1008 installcheck-am:
1009
1010 maintainer-clean: maintainer-clean-am
1011 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1012 -rm -rf $(top_srcdir)/autom4te.cache
1013 -rm -rf ./$(DEPDIR)
1014 -rm -f Makefile
1015 maintainer-clean-am: distclean-am maintainer-clean-generic
1016
1017 mostlyclean: mostlyclean-am
1018
1019 mostlyclean-am: mostlyclean-compile mostlyclean-generic
1020
1021 pdf: pdf-am
1022
1023 pdf-am:
1024
1025 ps: ps-am
1026
1027 ps-am:
1028
1029 uninstall-am: uninstall-binPROGRAMS uninstall-man \
1030 uninstall-nobase_dist_pkgdataDATA uninstall-octDATA
1031
1032 uninstall-man: uninstall-man1
1033
1034 .MAKE: all install-am install-strip
1035
1036 .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
1037 clean-binPROGRAMS clean-cscope clean-generic \
1038 clean-noinstPROGRAMS cscope cscopelist-am ctags ctags-am dist \
1039 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
1040 dist-xz dist-zip distcheck distclean distclean-compile \
1041 distclean-generic distclean-hdr distclean-tags distcleancheck \
1042 distdir distuninstallcheck dvi dvi-am html html-am info \
1043 info-am install install-am install-binPROGRAMS install-data \
1044 install-data-am install-dvi install-dvi-am install-exec \
1045 install-exec-am install-html install-html-am install-info \
1046 install-info-am install-man install-man1 \
1047 install-nobase_dist_pkgdataDATA install-octDATA install-pdf \
1048 install-pdf-am install-ps install-ps-am install-strip \
1049 installcheck installcheck-am installdirs maintainer-clean \
1050 maintainer-clean-generic mostlyclean mostlyclean-compile \
1051 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
1052 uninstall-am uninstall-binPROGRAMS uninstall-man \
1053 uninstall-man1 uninstall-nobase_dist_pkgdataDATA \
1054 uninstall-octDATA
1055
1056 .PRECIOUS: Makefile
1057
1058
1059 h5read.oct: h5read.cc arrayh5.h arrayh5.o
1060 mkoctfile $(DEFS) $(CPPFLAGS) $(srcdir)/h5read.cc $(srcdir)/arrayh5.c $(LDFLAGS) $(LIBS)
1061
1062 clean-hook:
1063 rm -f h5read.oct
1064
1065 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1066 # Otherwise a system limit (for SysV at least) may be exceeded.
1067 .NOEXPORT:
0 # Harminv Release Notes
1
2 Here, we describe what has changed between releases of the [h5utils](README.md) package.
3
4 ## h5utils-1.13.1 ##
5
6 *3/19/18*
7
8 * Fixed man page problems (#2 and #3), thanks to Bas Couwenberg.
9
10 ## h5utils-1.13 ##
11
12 *7/18/17*
13
14 * Fixed `h5topng` compilation for modern libpng versions. Thanks to
15 Daisuke Fujimura (@fd00 on github) for posting patches.
16
17 * Moved hosting to Github and translated documentation to Markdown.
18
19 ## h5utils 1.12.1 ##
20
21 *6/24/09*
22
23 * Use `octave-config`, if available, to detect octave-plugin installation path (thanks to Debian bug report #516453 for suggestion).
24
25 ## h5utils 1.12 ##
26
27 *6/12/09*
28
29 * The vertical axis in `h5topng` is now reversed to correspond to what most people seem to expect: increasing coordinates correspond to "up" and "right" in the image, rather than "down" and "right" in the image as in previous versions.
30 * Fixed failure in `h5tovtk -2`; thanks to Karen Lee for the bug report.
31 * Fixed installation of `h5read.oct` for Octave 3.x.
32
33 ## h5utils 1.11.1 ##
34
35 *4/28/08*
36
37 * Fixed failure to find colormap files in h5topng 1.11 (due to changes in autoconf 2.60); thanks to bug report from Jiangjun Zheng.
38
39 ## h5utils 1.11 ##
40
41 *4/24/08*
42
43 * h5tovtk no longer reverses the dimensions; thanks to Andreas Wilde for the suggestion.
44 * Fix compilation failure with HDF5 1.8.
45
46 ## h5utils 1.10.1 ##
47
48 *9/20/06*
49
50 * Fixed build problem on Cygwin due to missing "`.exe`" extension. Thanks to Ken Hill for the bug report.
51
52 ## h5utils 1.10 ##
53
54 *9/2/05*
55
56 * Added `h4fromh5` utility. (NCSA seems to be no longer shipping the HDF5/HDF4 conversion tools with the latest HDF5 release.)
57 * Added `dkbluered` color map, which is similar to `bluered` but uses a somewhat wider range of colors.
58
59 ## h5utils 1.9.1 ##
60
61 *8/5/04*
62
63 * Fix `h5topng` compilation failure with some non-C99 compilers; thanks to Maarten van Reeuwijk for the bug report.
64
65 ## h5utils 1.9 ##
66
67 *7/12/04*
68
69 * Added new `h5math` utility, which creates and combines HDF5 datasets using a user-specified mathematical expression. (Requires [GNU libmatheval](http://www.gnu.org/software/libmatheval/) to be installed.)
70 * `h5topng`: Matlab-like `start:end` or `start:step:end` notation for slice indices, to allow a whole sequence of slices to be output as a sequence of PNG images.
71 * `h5topng`: if contour/overlay dataset does not have same dimensions as output data, it is periodically "tiled" over the output.
72
73 ## h5utils 1.8 ##
74
75 *5/22/04*
76
77 * New `-A` and `-a` options for `h5topng` to allow translucent overlays from one file onto another (an alternative or complement to the `-C` contour-overlay option).
78 * `h5topng` uses 24-bit direct color by default (use `-8` option for old 8-bit behavior).
79 * `h5topng` uses columns/rows for x/y by default (use `-T` to swap), the opposite of the old behavior.
80 * There is no default `-z 0` slice dimension in `h5topng`/`h5totxt` any more. You must specify a slice for 3+ dimensional data in `h5topng`. `h5totxt` dumps the whole data file by default unless one or more slices are specified.
81 * Support specifying multiple slice dimensions for 4+ dimensional datasets, with new `-t` option to indicate final dimension.
82 * Slices are also supported now in `h5tovtk` and `h5tov5d`.
83 * New `-.` option in `h5totxt` to specify number of significant digits; output 16 digits by default instead of 6, previously.
84
85 ## h5utils 1.7.2 ##
86
87 *7/15/02*
88
89 * Fixed C++ compilation problem for `g++` 3.x in `h5read` Octave plugin; thanks to Josselin Mouette for the patch.
90
91 ## h5utils 1.7.1 ##
92
93 *3/16/02*
94
95 * Fixed array overrun in `h5topng` that caused a floating-point exception on Alphas; thanks to Marin Soljacic for the bug report.
96
97 ## h5utils 1.7 ##
98
99 *3/9/02*
100
101 * `h5topng` now supports multiple, user-definable color tables, a number of which are provided. '''Incompatible change''': the `-c` option now has the syntax: `-c ''colortable''`. The old behavior corresponds to the included "`bluered`" colortable, invoked via: `-c bluered`.
102 * New `-R` option for `h5topng` to use a consistent color scale for all specified files.
103 * New `-0` option for `h5topng` and `h5totxt` that shifts the origin of the slice coordinates to the dataset center.
104 * Added `h5tovtk` program to output VTK (Visualization ToolKit) data files.
105 * Support `-T` (transpose dimensions) option in `h5tov5d`.
106 * Fixed bug in `h5topng` that caused extra rows/columns of garbage pixels to be written at the edges of images when scaling was used.
107 * When compiling the h5read Octave plugin, respect the `CPPFLAGS` and `LDFLAGS` environment variables. Thanks to Max Colice for the bug report.
108 * Fixed problem when `--without-h5tov5d` and `--without-h5fromh4` are used. Thanks to Nikola Ivanov Nikolov for the fix.
109
110 ## h5utils 1.6 ##
111
112 *1/17/01*
113
114 * Don't build `h5fromh4` if the superior `h4toh5` tool (from HDF5 1.4) is present. Also added `--{with,without}-h5fromh4` option to configure to force whether `h5fromh4` is built.
115
116 ## h5utils 1.5.1 ##
117
118 *12/9/00*
119
120 * Support manually disabling Octave plugin support (`configure --without-octave`) in case of C++ problems.
121 * Support Vis5d+ and Debian HDF header file locations.
122
123 ## h5utils 1.5 ##
124
125 *7/9/00*
126
127 * Added `h5fromh4` program to convert HDF4 datasets to HDF5 format.
128 * Added `-S ''s''` option to `h5topng` as a shortcut for `-X ''s'' -Y ''s''`.
129
130 ## h5utils 1.4 ##
131
132 *5/28/00*
133
134 * Added `h5fromtxt` program to convert text input to an HDF5 dataset.
135
136 ## h5utils 1.3.4 ##
137
138 *1/31/00*
139
140 * Improved -C contour plotting in h5topng.
141 * Fix in `h5topng` man page (thanks to Christoph Becher).
142
143 ## h5utils 1.3.3 ##
144
145 *1/30/00*
146
147 * Bug fix in `h5topng` (would sometimes output solid black images). Thanks to Karl Koch for the bug report.
148
149 ## h5utils 1.3.2 ##
150
151 *1/28/00*
152
153 * Added `h5topng -Z` option to center color scale on zero.
154 * Now support `h5topng -C ''filename:dataset''`.
155
156 ## h5utils 1.3.1 ##
157
158 *1/27/00*
159
160 * Bug fixes in dataset name-handling, especially when using `h5tov5d` to join multiple datasets into one output file.
161
162 ## h5utils 1.3 ##
163
164 *1/21/00*
165
166 * You can now specify individual datasets within a file by using ''filename'':''dataset'' instead of just ''filename'' with `h5topng`, `h5totxt`, and `h5tov5d`.
167
168 ## h5utils 1.2.3 ##
169
170 *1/20/00*
171
172 * Fixed minor bug in '`h5totxt -h`'.
173
174 ## h5utils 1.2.2 ##
175
176 *1/12/00*
177
178 * `Makefile` now includes `CPPFLAGS` in the compiler flags, making it easier to use header files in non-standard locations. (`CPPFLAGS` is the proper place to put `-I` flags for the configure script.)
179
180 ## h5utils 1.2.1 ##
181
182 *1/1/00*
183
184 * Modified `-o` option of `h5tov5d` to join datasets into a single Vis5d file.
185
186 ## h5utils 1.2 ##
187
188 *12/31/99*
189
190 * Added h5tov5d program for converting to Vis5d format.
191 * Improved installation; `h5read.oct` now goes into the sitewide Octave plugins directory, and things work correctly when only some of the utilities are compiled.
192
193 ## h5utils 1.1 ##
194
195 *12/6/99*
196
197 * Added `h5totxt` program for exporting 2d slices of HDF5 files to text suitable for importing into a spreadsheet.
198
199 ## h5utils 1.0 ##
200
201 *11/22/99*
202
203 * Initial release.
0 ![logo](doc/images/H5utils-logo.png)
1
2 # H5utils
3
4 **h5utils** is a set of utilities for visualization and conversion of scientific data in the free, portable [HDF5 format](http://www.hdfgroup.org/HDF5/).
5
6 Besides providing a simple tool for batch visualization as [PNG](https://en.wikipedia.org/wiki/Portable_Network_Graphics) images, h5utils also includes programs to convert HDF5 datasets into the formats required by other free visualization software (e.g. plain text, [Vis5d](http://www.ssec.wisc.edu/~billh/vis5d.html), and [VTK](http://public.kitware.com/VTK/)).
7
8 This package is developed by [Steven G. Johnson](http://math.mit.edu/~stevenj/), and is [free software](http://www.gnu.org/philosophy/free-sw.html) that should easily install under any Unix-like operating system (*e.g.* GNU/Linux).
9
10 # Download and Install
11
12 The latest version is h5utils 1.13.1, which can be downloaded in source-code form at:
13
14 * https://github.com/NanoComp/h5utils/releases/download/1.13.1/h5utils-1.13.1.tar.gz
15
16 (Download this `.tar.gz` file rather than cloning the [git repo](https://github.com/NanoComp/h5utils)
17 unless you are a developer, since the git repo requires additional tools to build as described below.)
18
19 What's new in each version is described in the [release notes](NEWS.md) file.
20
21 h5utils is free software (a.k.a. [open source](http://www.opensource.org/)); see below for the license and copyright.
22
23 ## Installation
24
25 h5utils is designed for Unix-like operating systems (*e.g.* GNU/Linux). We do not support Windows directly, although you may be able to install there too using free packages like [Cygwin](http://cygwin.com/).
26
27 You must first download and install [HDF5](http://www.hdfgroup.org/HDF5/), if it is not already on your system. Also, the programs to convert (see below) to/from [PNG](http://www.libpng.org/pub/png/), [Vis5d](http://www.ssec.wisc.edu/~billh/vis5d.html), [GNU Octave](http://www.octave.org/), and [HDF(4)](http://www.hdfgroup.org/products/hdf4/) will only be built if the corresponding libraries/programs are installed. `h5math` will only be built if [GNU libmatheval](http://www.gnu.org/software/libmatheval/) is installed.
28
29 To compile and install the package, you then just type the usual GNU build commands:
30 ```
31 ./configure
32 make
33 make install
34 ```
35 See `./configure --help` for more options. You can use `make uninstall` to get rid of all the installed files.
36
37 **Github**: If you are using the source [on github](https://github.com/NanoComp/h5utils) (via `git clone https://github.com/NanoComp/h5utils`), then you will also need to have [GNU autoconf, automake, and libtool](https://en.wikipedia.org/wiki/GNU_Build_System) installed, and run `sh autogen.sh` (in a Unix shell) to set up things before running `make` above (`autogen.sh` runs `./configure` for you).
38
39 **Note:** if you get a message like `cannot compute sizeof (unsigned long)` when running `./configure`, it probably means you didn't install the HDF5 library properly: you need to tell the runtime linker where to find it. On GNU/Linux, make sure there is a line `/usr/local/lib` in `/etc/ld.so.conf` and run `/sbin/ldconfig` (assuming you installed HDF5 in the default location).
40
41 *Note:* if you installed the [MPI](https://en.wikipedia.org/wiki/Message_Passing_Interface) (parallel) version of HDF5, you may get an error like `/usr/include/H5public.h:53:20: error: mpi.h: No such file or directory`. This can be fixed by telling the compiler where to find the MPI header files, e.g. via: `./configure CC=mpicc`.
42
43 # h5utils Programs
44
45 The included utilities are:
46
47 * **h5totxt** and **h5fromtxt**: convert HDF5 datasets to/from ASCII text (e.g. comma- or tab-delimited). See the manual pages of [h5totxt](doc/h5totxt-man.md) and [h5fromtxt](doc/h5fromtxt-man.md) for more information.
48 * **h5topng**: convert 2d slices of HDF5 datasets to PNG images, with a variety of color tables and other options. See the [h5topng manual page](doc/h5topng-man.md) for more information. See [Color tables in h5topng](doc/h5topng-colors.md) for information on the color tables.
49 * **h5tov5d**: convert HDF5 datasets to the format used by the free 3d+ visualization tool [Vis5d](http://www.ssec.wisc.edu/~billh/vis5d.html). See the [manual page](doc/h5tov5d-man.md) for more information. **Note**: to install h5tov5d you must have first compiled Vis5d, and you must specify `--with-v5d=dir` to the h5utils `configure` script to specify the location `dir` of the Vis5d source directory.
50 * **h5tovtk**: convert HDF5 datasets to VTK format for use by the free [Visualization ToolKit](http://public.kitware.com/VTK/) (along with supporting programs like [MayaVi](http://mayavi.sourceforge.net/)). See the [manual page](doc/h5tovtk-man.md) for more information.
51 * **h5math**: create and combine HDF5 datasets with simple (pointwise) mathematical expressions. (Requires [GNU libmatheval](http://www.gnu.org/software/libmatheval/) to be installed.) See the [manual page](doc/h5math-man.md) for more information.
52 * **h5read.oct**: a plug-in for [GNU Octave](http://www.octave.org/) (a Matlab-like program) to read 2d slices of HDF5 datasets. (Recent versions of Octave also include native support for HDF5, although it can't read slices like the `h5read` plug-in.)
53 * **h5fromh4** and **h4fromh5**: convert HDF (version 4) datasets to and from HDF5. These utilities are nowadays somewhat redundant with the [h4toh5](http://hdfgroup.com/h4toh5/) and `h5toh4` programs provided by NCSA and the HDF Group (which are no longer bundled with HDF5, however). See the [h5fromh4](doc/h5fromh4-man.md) and [h4fromh5](doc/h4fromh5-man.md) manual pages for more information.
54
55 To convert HDF5 to [CDF](http://nssdc.gsfc.nasa.gov/cdf/cdf_home.html) format, see the [hdf5-to-cdf](http://nssdc.gsfc.nasa.gov/cdf/html/FAQ.html#hdf5tocdf) program.
56
57 # License and Copyright
58
59 h5utils is Copyright © 1999–2017 Massachusetts Institute of Technology.
60
61 *The following [MIT/expat license](https://opensource.org/licenses/MIT) governs the entire contents of h5utils except for the `h5tov5d.c` file. See below.*
62
63 > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
64 >
65 >The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66 >
67 >THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
68
69 *The file `h5tov5d.c` and the resulting `h5tov5d` binary are under the following different license, the [GNU GPL](http://www.gnu.org/copyleft/gpl.html) since they link with files from the GPL-covered Vis5d:*
70
71 >This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
72 >
73 >This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
74 >
75 >You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. You can also find it on the GNU web site: http://www.gnu.org/copyleft/gpl.html
+0
-1217
aclocal.m4 less more
0 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
23 #
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
27
28 # AM_AUTOMAKE_VERSION(VERSION)
29 # ----------------------------
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been
31 # generated from the m4 files accompanying Automake X.Y.
32 # (This private macro should not be called outside this file.)
33 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.15'
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.15.1], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39 ])
40
41 # _AM_AUTOCONF_VERSION(VERSION)
42 # -----------------------------
43 # aclocal traces this macro to find the Autoconf version.
44 # This is a private macro too. Using m4_define simplifies
45 # the logic in aclocal, which can simply ignore this definition.
46 m4_define([_AM_AUTOCONF_VERSION], [])
47
48 # AM_SET_CURRENT_AUTOMAKE_VERSION
49 # -------------------------------
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.15.1])dnl
54 m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
59
60 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
61 #
62 # This file is free software; the Free Software Foundation
63 # gives unlimited permission to copy and/or distribute it,
64 # with or without modifications, as long as this notice is preserved.
65
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
68 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
69 #
70 # Of course, Automake must honor this variable whenever it calls a
71 # tool from the auxiliary directory. The problem is that $srcdir (and
72 # therefore $ac_aux_dir as well) can be either absolute or relative,
73 # depending on how configure is run. This is pretty annoying, since
74 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
75 # source directory, any form will work fine, but in subdirectories a
76 # relative path needs to be adjusted first.
77 #
78 # $ac_aux_dir/missing
79 # fails when called from a subdirectory if $ac_aux_dir is relative
80 # $top_srcdir/$ac_aux_dir/missing
81 # fails if $ac_aux_dir is absolute,
82 # fails when called from a subdirectory in a VPATH build with
83 # a relative $ac_aux_dir
84 #
85 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86 # are both prefixed by $srcdir. In an in-source build this is usually
87 # harmless because $srcdir is '.', but things will broke when you
88 # start a VPATH build or use an absolute $srcdir.
89 #
90 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93 # and then we would define $MISSING as
94 # MISSING="\${SHELL} $am_aux_dir/missing"
95 # This will work as long as MISSING is not called from configure, because
96 # unfortunately $(top_srcdir) has no meaning in configure.
97 # However there are other variables, like CC, which are often used in
98 # configure, and could therefore not use this "fixed" $ac_aux_dir.
99 #
100 # Another solution, used here, is to always expand $ac_aux_dir to an
101 # absolute PATH. The drawback is that using absolute paths prevent a
102 # configured tree to be moved without reconfiguration.
103
104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
106 # Expand $ac_aux_dir to an absolute path.
107 am_aux_dir=`cd "$ac_aux_dir" && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
113 #
114 # This file is free software; the Free Software Foundation
115 # gives unlimited permission to copy and/or distribute it,
116 # with or without modifications, as long as this notice is preserved.
117
118 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
119 # -------------------------------------
120 # Define a conditional.
121 AC_DEFUN([AM_CONDITIONAL],
122 [AC_PREREQ([2.52])dnl
123 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
124 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
125 AC_SUBST([$1_TRUE])dnl
126 AC_SUBST([$1_FALSE])dnl
127 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
128 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
129 m4_define([_AM_COND_VALUE_$1], [$2])dnl
130 if $2; then
131 $1_TRUE=
132 $1_FALSE='#'
133 else
134 $1_TRUE='#'
135 $1_FALSE=
136 fi
137 AC_CONFIG_COMMANDS_PRE(
138 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
139 AC_MSG_ERROR([[conditional "$1" was never defined.
140 Usually this means the macro was only invoked conditionally.]])
141 fi])])
142
143 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
144 #
145 # This file is free software; the Free Software Foundation
146 # gives unlimited permission to copy and/or distribute it,
147 # with or without modifications, as long as this notice is preserved.
148
149
150 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
151 # written in clear, in which case automake, when reading aclocal.m4,
152 # will think it sees a *use*, and therefore will trigger all it's
153 # C support machinery. Also note that it means that autoscan, seeing
154 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
155
156
157 # _AM_DEPENDENCIES(NAME)
158 # ----------------------
159 # See how the compiler implements dependency checking.
160 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
161 # We try a few techniques and use that to set a single cache variable.
162 #
163 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
164 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
165 # dependency, and given that the user is not expected to run this macro,
166 # just rely on AC_PROG_CC.
167 AC_DEFUN([_AM_DEPENDENCIES],
168 [AC_REQUIRE([AM_SET_DEPDIR])dnl
169 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
170 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
171 AC_REQUIRE([AM_DEP_TRACK])dnl
172
173 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
174 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
175 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
177 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
178 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
179 [depcc="$$1" am_compiler_list=])
180
181 AC_CACHE_CHECK([dependency style of $depcc],
182 [am_cv_$1_dependencies_compiler_type],
183 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
184 # We make a subdir and do the tests there. Otherwise we can end up
185 # making bogus files that we don't know about and never remove. For
186 # instance it was reported that on HP-UX the gcc test will end up
187 # making a dummy file named 'D' -- because '-MD' means "put the output
188 # in D".
189 rm -rf conftest.dir
190 mkdir conftest.dir
191 # Copy depcomp to subdir because otherwise we won't find it if we're
192 # using a relative directory.
193 cp "$am_depcomp" conftest.dir
194 cd conftest.dir
195 # We will build objects and dependencies in a subdirectory because
196 # it helps to detect inapplicable dependency modes. For instance
197 # both Tru64's cc and ICC support -MD to output dependencies as a
198 # side effect of compilation, but ICC will put the dependencies in
199 # the current directory while Tru64 will put them in the object
200 # directory.
201 mkdir sub
202
203 am_cv_$1_dependencies_compiler_type=none
204 if test "$am_compiler_list" = ""; then
205 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
206 fi
207 am__universal=false
208 m4_case([$1], [CC],
209 [case " $depcc " in #(
210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
211 esac],
212 [CXX],
213 [case " $depcc " in #(
214 *\ -arch\ *\ -arch\ *) am__universal=true ;;
215 esac])
216
217 for depmode in $am_compiler_list; do
218 # Setup a source with many dependencies, because some compilers
219 # like to wrap large dependency lists on column 80 (with \), and
220 # we should not choose a depcomp mode which is confused by this.
221 #
222 # We need to recreate these files for each test, as the compiler may
223 # overwrite some of them when testing with obscure command lines.
224 # This happens at least with the AIX C compiler.
225 : > sub/conftest.c
226 for i in 1 2 3 4 5 6; do
227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
228 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
229 # Solaris 10 /bin/sh.
230 echo '/* dummy */' > sub/conftst$i.h
231 done
232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
233
234 # We check with '-c' and '-o' for the sake of the "dashmstdout"
235 # mode. It turns out that the SunPro C++ compiler does not properly
236 # handle '-M -o', and we need to detect this. Also, some Intel
237 # versions had trouble with output in subdirs.
238 am__obj=sub/conftest.${OBJEXT-o}
239 am__minus_obj="-o $am__obj"
240 case $depmode in
241 gcc)
242 # This depmode causes a compiler race in universal mode.
243 test "$am__universal" = false || continue
244 ;;
245 nosideeffect)
246 # After this tag, mechanisms are not by side-effect, so they'll
247 # only be used when explicitly requested.
248 if test "x$enable_dependency_tracking" = xyes; then
249 continue
250 else
251 break
252 fi
253 ;;
254 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
255 # This compiler won't grok '-c -o', but also, the minuso test has
256 # not run yet. These depmodes are late enough in the game, and
257 # so weak that their functioning should not be impacted.
258 am__obj=conftest.${OBJEXT-o}
259 am__minus_obj=
260 ;;
261 none) break ;;
262 esac
263 if depmode=$depmode \
264 source=sub/conftest.c object=$am__obj \
265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
266 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
267 >/dev/null 2>conftest.err &&
268 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
270 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
272 # icc doesn't choke on unknown options, it will just issue warnings
273 # or remarks (even with -Werror). So we grep stderr for any message
274 # that says an option was ignored or not supported.
275 # When given -MP, icc 7.0 and 7.1 complain thusly:
276 # icc: Command line warning: ignoring option '-M'; no argument required
277 # The diagnosis changed in icc 8.0:
278 # icc: Command line remark: option '-MP' not supported
279 if (grep 'ignoring option' conftest.err ||
280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
281 am_cv_$1_dependencies_compiler_type=$depmode
282 break
283 fi
284 fi
285 done
286
287 cd ..
288 rm -rf conftest.dir
289 else
290 am_cv_$1_dependencies_compiler_type=none
291 fi
292 ])
293 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
294 AM_CONDITIONAL([am__fastdep$1], [
295 test "x$enable_dependency_tracking" != xno \
296 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
297 ])
298
299
300 # AM_SET_DEPDIR
301 # -------------
302 # Choose a directory name for dependency files.
303 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
304 AC_DEFUN([AM_SET_DEPDIR],
305 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
306 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
307 ])
308
309
310 # AM_DEP_TRACK
311 # ------------
312 AC_DEFUN([AM_DEP_TRACK],
313 [AC_ARG_ENABLE([dependency-tracking], [dnl
314 AS_HELP_STRING(
315 [--enable-dependency-tracking],
316 [do not reject slow dependency extractors])
317 AS_HELP_STRING(
318 [--disable-dependency-tracking],
319 [speeds up one-time build])])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
322 AMDEPBACKSLASH='\'
323 am__nodep='_no'
324 fi
325 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
326 AC_SUBST([AMDEPBACKSLASH])dnl
327 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
328 AC_SUBST([am__nodep])dnl
329 _AM_SUBST_NOTMAKE([am__nodep])dnl
330 ])
331
332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333
334 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
339
340
341 # _AM_OUTPUT_DEPENDENCY_COMMANDS
342 # ------------------------------
343 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344 [{
345 # Older Autoconf quotes --file arguments for eval, but not when files
346 # are listed without --file. Let's play safe and only enable the eval
347 # if we detect the quoting.
348 case $CONFIG_FILES in
349 *\'*) eval set x "$CONFIG_FILES" ;;
350 *) set x $CONFIG_FILES ;;
351 esac
352 shift
353 for mf
354 do
355 # Strip MF so we end up with the name of the file.
356 mf=`echo "$mf" | sed -e 's/:.*$//'`
357 # Check whether this is an Automake generated Makefile or not.
358 # We used to match only the files named 'Makefile.in', but
359 # some people rename them; so instead we look at the file content.
360 # Grep'ing the first line is not enough: some people post-process
361 # each Makefile.in and add a new line on top of each file to say so.
362 # Grep'ing the whole file is not good either: AIX grep has a line
363 # limit of 2048, but all sed's we know have understand at least 4000.
364 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
365 dirpart=`AS_DIRNAME("$mf")`
366 else
367 continue
368 fi
369 # Extract the definition of DEPDIR, am__include, and am__quote
370 # from the Makefile without running 'make'.
371 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
372 test -z "$DEPDIR" && continue
373 am__include=`sed -n 's/^am__include = //p' < "$mf"`
374 test -z "$am__include" && continue
375 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
376 # Find all dependency output files, they are included files with
377 # $(DEPDIR) in their names. We invoke sed twice because it is the
378 # simplest approach to changing $(DEPDIR) to its actual value in the
379 # expansion.
380 for file in `sed -n "
381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
383 # Make sure the directory exists.
384 test -f "$dirpart/$file" && continue
385 fdir=`AS_DIRNAME(["$file"])`
386 AS_MKDIR_P([$dirpart/$fdir])
387 # echo "creating $dirpart/$file"
388 echo '# dummy' > "$dirpart/$file"
389 done
390 done
391 }
392 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
393
394
395 # AM_OUTPUT_DEPENDENCY_COMMANDS
396 # -----------------------------
397 # This macro should only be invoked once -- use via AC_REQUIRE.
398 #
399 # This code is only required when automatic dependency tracking
400 # is enabled. FIXME. This creates each '.P' file that we will
401 # need in order to bootstrap the dependency handling code.
402 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
403 [AC_CONFIG_COMMANDS([depfiles],
404 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
405 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406 ])
407
408 # Do all the work for Automake. -*- Autoconf -*-
409
410 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
411 #
412 # This file is free software; the Free Software Foundation
413 # gives unlimited permission to copy and/or distribute it,
414 # with or without modifications, as long as this notice is preserved.
415
416 # This macro actually does too much. Some checks are only needed if
417 # your package does certain things. But this isn't really a big deal.
418
419 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
420 m4_define([AC_PROG_CC],
421 m4_defn([AC_PROG_CC])
422 [_AM_PROG_CC_C_O
423 ])
424
425 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
426 # AM_INIT_AUTOMAKE([OPTIONS])
427 # -----------------------------------------------
428 # The call with PACKAGE and VERSION arguments is the old style
429 # call (pre autoconf-2.50), which is being phased out. PACKAGE
430 # and VERSION should now be passed to AC_INIT and removed from
431 # the call to AM_INIT_AUTOMAKE.
432 # We support both call styles for the transition. After
433 # the next Automake release, Autoconf can make the AC_INIT
434 # arguments mandatory, and then we can depend on a new Autoconf
435 # release and drop the old call support.
436 AC_DEFUN([AM_INIT_AUTOMAKE],
437 [AC_PREREQ([2.65])dnl
438 dnl Autoconf wants to disallow AM_ names. We explicitly allow
439 dnl the ones we care about.
440 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
441 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
442 AC_REQUIRE([AC_PROG_INSTALL])dnl
443 if test "`cd $srcdir && pwd`" != "`pwd`"; then
444 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
445 # is not polluted with repeated "-I."
446 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
447 # test to see if srcdir already configured
448 if test -f $srcdir/config.status; then
449 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
450 fi
451 fi
452
453 # test whether we have cygpath
454 if test -z "$CYGPATH_W"; then
455 if (cygpath --version) >/dev/null 2>/dev/null; then
456 CYGPATH_W='cygpath -w'
457 else
458 CYGPATH_W=echo
459 fi
460 fi
461 AC_SUBST([CYGPATH_W])
462
463 # Define the identity of the package.
464 dnl Distinguish between old-style and new-style calls.
465 m4_ifval([$2],
466 [AC_DIAGNOSE([obsolete],
467 [$0: two- and three-arguments forms are deprecated.])
468 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
469 AC_SUBST([PACKAGE], [$1])dnl
470 AC_SUBST([VERSION], [$2])],
471 [_AM_SET_OPTIONS([$1])dnl
472 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
473 m4_if(
474 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
475 [ok:ok],,
476 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
477 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
478 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
479
480 _AM_IF_OPTION([no-define],,
481 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
482 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
483
484 # Some tools Automake needs.
485 AC_REQUIRE([AM_SANITY_CHECK])dnl
486 AC_REQUIRE([AC_ARG_PROGRAM])dnl
487 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
488 AM_MISSING_PROG([AUTOCONF], [autoconf])
489 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
490 AM_MISSING_PROG([AUTOHEADER], [autoheader])
491 AM_MISSING_PROG([MAKEINFO], [makeinfo])
492 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
493 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
494 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
495 # For better backward compatibility. To be removed once Automake 1.9.x
496 # dies out for good. For more background, see:
497 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
499 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
500 # We need awk for the "check" target (and possibly the TAP driver). The
501 # system "awk" is bad on some platforms.
502 AC_REQUIRE([AC_PROG_AWK])dnl
503 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
504 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
505 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
506 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
507 [_AM_PROG_TAR([v7])])])
508 _AM_IF_OPTION([no-dependencies],,
509 [AC_PROVIDE_IFELSE([AC_PROG_CC],
510 [_AM_DEPENDENCIES([CC])],
511 [m4_define([AC_PROG_CC],
512 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
513 AC_PROVIDE_IFELSE([AC_PROG_CXX],
514 [_AM_DEPENDENCIES([CXX])],
515 [m4_define([AC_PROG_CXX],
516 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
517 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
518 [_AM_DEPENDENCIES([OBJC])],
519 [m4_define([AC_PROG_OBJC],
520 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
521 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
522 [_AM_DEPENDENCIES([OBJCXX])],
523 [m4_define([AC_PROG_OBJCXX],
524 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
525 ])
526 AC_REQUIRE([AM_SILENT_RULES])dnl
527 dnl The testsuite driver may need to know about EXEEXT, so add the
528 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
529 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
530 AC_CONFIG_COMMANDS_PRE(dnl
531 [m4_provide_if([_AM_COMPILER_EXEEXT],
532 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
533
534 # POSIX will say in a future version that running "rm -f" with no argument
535 # is OK; and we want to be able to make that assumption in our Makefile
536 # recipes. So use an aggressive probe to check that the usage we want is
537 # actually supported "in the wild" to an acceptable degree.
538 # See automake bug#10828.
539 # To make any issue more visible, cause the running configure to be aborted
540 # by default if the 'rm' program in use doesn't match our expectations; the
541 # user can still override this though.
542 if rm -f && rm -fr && rm -rf; then : OK; else
543 cat >&2 <<'END'
544 Oops!
545
546 Your 'rm' program seems unable to run without file operands specified
547 on the command line, even when the '-f' option is present. This is contrary
548 to the behaviour of most rm programs out there, and not conforming with
549 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
550
551 Please tell bug-automake@gnu.org about your system, including the value
552 of your $PATH and any error possibly output before this message. This
553 can help us improve future automake versions.
554
555 END
556 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
557 echo 'Configuration will proceed anyway, since you have set the' >&2
558 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
559 echo >&2
560 else
561 cat >&2 <<'END'
562 Aborting the configuration process, to ensure you take notice of the issue.
563
564 You can download and install GNU coreutils to get an 'rm' implementation
565 that behaves properly: <http://www.gnu.org/software/coreutils/>.
566
567 If you want to complete the configuration process using your problematic
568 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
569 to "yes", and re-run configure.
570
571 END
572 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
573 fi
574 fi
575 dnl The trailing newline in this macro's definition is deliberate, for
576 dnl backward compatibility and to allow trailing 'dnl'-style comments
577 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
578 ])
579
580 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
581 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
582 dnl mangled by Autoconf and run in a shell conditional statement.
583 m4_define([_AC_COMPILER_EXEEXT],
584 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
585
586 # When config.status generates a header, we must update the stamp-h file.
587 # This file resides in the same directory as the config header
588 # that is generated. The stamp files are numbered to have different names.
589
590 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
591 # loop where config.status creates the headers, so we can generate
592 # our stamp files there.
593 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
594 [# Compute $1's index in $config_headers.
595 _am_arg=$1
596 _am_stamp_count=1
597 for _am_header in $config_headers :; do
598 case $_am_header in
599 $_am_arg | $_am_arg:* )
600 break ;;
601 * )
602 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
603 esac
604 done
605 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
606
607 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
608 #
609 # This file is free software; the Free Software Foundation
610 # gives unlimited permission to copy and/or distribute it,
611 # with or without modifications, as long as this notice is preserved.
612
613 # AM_PROG_INSTALL_SH
614 # ------------------
615 # Define $install_sh.
616 AC_DEFUN([AM_PROG_INSTALL_SH],
617 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
618 if test x"${install_sh+set}" != xset; then
619 case $am_aux_dir in
620 *\ * | *\ *)
621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
622 *)
623 install_sh="\${SHELL} $am_aux_dir/install-sh"
624 esac
625 fi
626 AC_SUBST([install_sh])])
627
628 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
629 #
630 # This file is free software; the Free Software Foundation
631 # gives unlimited permission to copy and/or distribute it,
632 # with or without modifications, as long as this notice is preserved.
633
634 # Check whether the underlying file-system supports filenames
635 # with a leading dot. For instance MS-DOS doesn't.
636 AC_DEFUN([AM_SET_LEADING_DOT],
637 [rm -rf .tst 2>/dev/null
638 mkdir .tst 2>/dev/null
639 if test -d .tst; then
640 am__leading_dot=.
641 else
642 am__leading_dot=_
643 fi
644 rmdir .tst 2>/dev/null
645 AC_SUBST([am__leading_dot])])
646
647 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
648 # From Jim Meyering
649
650 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
651 #
652 # This file is free software; the Free Software Foundation
653 # gives unlimited permission to copy and/or distribute it,
654 # with or without modifications, as long as this notice is preserved.
655
656 # AM_MAINTAINER_MODE([DEFAULT-MODE])
657 # ----------------------------------
658 # Control maintainer-specific portions of Makefiles.
659 # Default is to disable them, unless 'enable' is passed literally.
660 # For symmetry, 'disable' may be passed as well. Anyway, the user
661 # can override the default with the --enable/--disable switch.
662 AC_DEFUN([AM_MAINTAINER_MODE],
663 [m4_case(m4_default([$1], [disable]),
664 [enable], [m4_define([am_maintainer_other], [disable])],
665 [disable], [m4_define([am_maintainer_other], [enable])],
666 [m4_define([am_maintainer_other], [enable])
667 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
668 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
669 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
670 AC_ARG_ENABLE([maintainer-mode],
671 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
672 am_maintainer_other[ make rules and dependencies not useful
673 (and sometimes confusing) to the casual installer])],
674 [USE_MAINTAINER_MODE=$enableval],
675 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
676 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
677 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
678 MAINT=$MAINTAINER_MODE_TRUE
679 AC_SUBST([MAINT])dnl
680 ]
681 )
682
683 # Check to see how 'make' treats includes. -*- Autoconf -*-
684
685 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
686 #
687 # This file is free software; the Free Software Foundation
688 # gives unlimited permission to copy and/or distribute it,
689 # with or without modifications, as long as this notice is preserved.
690
691 # AM_MAKE_INCLUDE()
692 # -----------------
693 # Check to see how make treats includes.
694 AC_DEFUN([AM_MAKE_INCLUDE],
695 [am_make=${MAKE-make}
696 cat > confinc << 'END'
697 am__doit:
698 @echo this is the am__doit target
699 .PHONY: am__doit
700 END
701 # If we don't find an include directive, just comment out the code.
702 AC_MSG_CHECKING([for style of include used by $am_make])
703 am__include="#"
704 am__quote=
705 _am_result=none
706 # First try GNU make style include.
707 echo "include confinc" > confmf
708 # Ignore all kinds of additional output from 'make'.
709 case `$am_make -s -f confmf 2> /dev/null` in #(
710 *the\ am__doit\ target*)
711 am__include=include
712 am__quote=
713 _am_result=GNU
714 ;;
715 esac
716 # Now try BSD make style include.
717 if test "$am__include" = "#"; then
718 echo '.include "confinc"' > confmf
719 case `$am_make -s -f confmf 2> /dev/null` in #(
720 *the\ am__doit\ target*)
721 am__include=.include
722 am__quote="\""
723 _am_result=BSD
724 ;;
725 esac
726 fi
727 AC_SUBST([am__include])
728 AC_SUBST([am__quote])
729 AC_MSG_RESULT([$_am_result])
730 rm -f confinc confmf
731 ])
732
733 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
734
735 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
736 #
737 # This file is free software; the Free Software Foundation
738 # gives unlimited permission to copy and/or distribute it,
739 # with or without modifications, as long as this notice is preserved.
740
741 # AM_MISSING_PROG(NAME, PROGRAM)
742 # ------------------------------
743 AC_DEFUN([AM_MISSING_PROG],
744 [AC_REQUIRE([AM_MISSING_HAS_RUN])
745 $1=${$1-"${am_missing_run}$2"}
746 AC_SUBST($1)])
747
748 # AM_MISSING_HAS_RUN
749 # ------------------
750 # Define MISSING if not defined so far and test if it is modern enough.
751 # If it is, set am_missing_run to use it, otherwise, to nothing.
752 AC_DEFUN([AM_MISSING_HAS_RUN],
753 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
754 AC_REQUIRE_AUX_FILE([missing])dnl
755 if test x"${MISSING+set}" != xset; then
756 case $am_aux_dir in
757 *\ * | *\ *)
758 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
759 *)
760 MISSING="\${SHELL} $am_aux_dir/missing" ;;
761 esac
762 fi
763 # Use eval to expand $SHELL
764 if eval "$MISSING --is-lightweight"; then
765 am_missing_run="$MISSING "
766 else
767 am_missing_run=
768 AC_MSG_WARN(['missing' script is too old or missing])
769 fi
770 ])
771
772 # -*- Autoconf -*-
773 # Obsolete and "removed" macros, that must however still report explicit
774 # error messages when used, to smooth transition.
775 #
776 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
777 #
778 # This file is free software; the Free Software Foundation
779 # gives unlimited permission to copy and/or distribute it,
780 # with or without modifications, as long as this notice is preserved.
781
782 AC_DEFUN([AM_CONFIG_HEADER],
783 [AC_DIAGNOSE([obsolete],
784 ['$0': this macro is obsolete.
785 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
786 AC_CONFIG_HEADERS($@)])
787
788 AC_DEFUN([AM_PROG_CC_STDC],
789 [AC_PROG_CC
790 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
791 AC_DIAGNOSE([obsolete],
792 ['$0': this macro is obsolete.
793 You should simply use the 'AC][_PROG_CC' macro instead.
794 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
795 but upon 'ac_cv_prog_cc_stdc'.])])
796
797 AC_DEFUN([AM_C_PROTOTYPES],
798 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
799 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
800
801 # Helper functions for option handling. -*- Autoconf -*-
802
803 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # _AM_MANGLE_OPTION(NAME)
810 # -----------------------
811 AC_DEFUN([_AM_MANGLE_OPTION],
812 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
813
814 # _AM_SET_OPTION(NAME)
815 # --------------------
816 # Set option NAME. Presently that only means defining a flag for this option.
817 AC_DEFUN([_AM_SET_OPTION],
818 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
819
820 # _AM_SET_OPTIONS(OPTIONS)
821 # ------------------------
822 # OPTIONS is a space-separated list of Automake options.
823 AC_DEFUN([_AM_SET_OPTIONS],
824 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
825
826 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
827 # -------------------------------------------
828 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
829 AC_DEFUN([_AM_IF_OPTION],
830 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
831
832 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
833 #
834 # This file is free software; the Free Software Foundation
835 # gives unlimited permission to copy and/or distribute it,
836 # with or without modifications, as long as this notice is preserved.
837
838 # _AM_PROG_CC_C_O
839 # ---------------
840 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
841 # to automatically call this.
842 AC_DEFUN([_AM_PROG_CC_C_O],
843 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
844 AC_REQUIRE_AUX_FILE([compile])dnl
845 AC_LANG_PUSH([C])dnl
846 AC_CACHE_CHECK(
847 [whether $CC understands -c and -o together],
848 [am_cv_prog_cc_c_o],
849 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
850 # Make sure it works both with $CC and with simple cc.
851 # Following AC_PROG_CC_C_O, we do the test twice because some
852 # compilers refuse to overwrite an existing .o file with -o,
853 # though they will create one.
854 am_cv_prog_cc_c_o=yes
855 for am_i in 1 2; do
856 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
857 && test -f conftest2.$ac_objext; then
858 : OK
859 else
860 am_cv_prog_cc_c_o=no
861 break
862 fi
863 done
864 rm -f core conftest*
865 unset am_i])
866 if test "$am_cv_prog_cc_c_o" != yes; then
867 # Losing compiler, so override with the script.
868 # FIXME: It is wrong to rewrite CC.
869 # But if we don't then we get into trouble of one sort or another.
870 # A longer-term fix would be to have automake use am__CC in this case,
871 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
872 CC="$am_aux_dir/compile $CC"
873 fi
874 AC_LANG_POP([C])])
875
876 # For backward compatibility.
877 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
878
879 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
880 #
881 # This file is free software; the Free Software Foundation
882 # gives unlimited permission to copy and/or distribute it,
883 # with or without modifications, as long as this notice is preserved.
884
885 # AM_RUN_LOG(COMMAND)
886 # -------------------
887 # Run COMMAND, save the exit status in ac_status, and log it.
888 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
889 AC_DEFUN([AM_RUN_LOG],
890 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
891 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
892 ac_status=$?
893 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
894 (exit $ac_status); }])
895
896 # Check to make sure that the build environment is sane. -*- Autoconf -*-
897
898 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
899 #
900 # This file is free software; the Free Software Foundation
901 # gives unlimited permission to copy and/or distribute it,
902 # with or without modifications, as long as this notice is preserved.
903
904 # AM_SANITY_CHECK
905 # ---------------
906 AC_DEFUN([AM_SANITY_CHECK],
907 [AC_MSG_CHECKING([whether build environment is sane])
908 # Reject unsafe characters in $srcdir or the absolute working directory
909 # name. Accept space and tab only in the latter.
910 am_lf='
911 '
912 case `pwd` in
913 *[[\\\"\#\$\&\'\`$am_lf]]*)
914 AC_MSG_ERROR([unsafe absolute working directory name]);;
915 esac
916 case $srcdir in
917 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
918 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
919 esac
920
921 # Do 'set' in a subshell so we don't clobber the current shell's
922 # arguments. Must try -L first in case configure is actually a
923 # symlink; some systems play weird games with the mod time of symlinks
924 # (eg FreeBSD returns the mod time of the symlink's containing
925 # directory).
926 if (
927 am_has_slept=no
928 for am_try in 1 2; do
929 echo "timestamp, slept: $am_has_slept" > conftest.file
930 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
931 if test "$[*]" = "X"; then
932 # -L didn't work.
933 set X `ls -t "$srcdir/configure" conftest.file`
934 fi
935 if test "$[*]" != "X $srcdir/configure conftest.file" \
936 && test "$[*]" != "X conftest.file $srcdir/configure"; then
937
938 # If neither matched, then we have a broken ls. This can happen
939 # if, for instance, CONFIG_SHELL is bash and it inherits a
940 # broken ls alias from the environment. This has actually
941 # happened. Such a system could not be considered "sane".
942 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
943 alias in your environment])
944 fi
945 if test "$[2]" = conftest.file || test $am_try -eq 2; then
946 break
947 fi
948 # Just in case.
949 sleep 1
950 am_has_slept=yes
951 done
952 test "$[2]" = conftest.file
953 )
954 then
955 # Ok.
956 :
957 else
958 AC_MSG_ERROR([newly created file is older than distributed files!
959 Check your system clock])
960 fi
961 AC_MSG_RESULT([yes])
962 # If we didn't sleep, we still need to ensure time stamps of config.status and
963 # generated files are strictly newer.
964 am_sleep_pid=
965 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
966 ( sleep 1 ) &
967 am_sleep_pid=$!
968 fi
969 AC_CONFIG_COMMANDS_PRE(
970 [AC_MSG_CHECKING([that generated files are newer than configure])
971 if test -n "$am_sleep_pid"; then
972 # Hide warnings about reused PIDs.
973 wait $am_sleep_pid 2>/dev/null
974 fi
975 AC_MSG_RESULT([done])])
976 rm -f conftest.file
977 ])
978
979 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
980 #
981 # This file is free software; the Free Software Foundation
982 # gives unlimited permission to copy and/or distribute it,
983 # with or without modifications, as long as this notice is preserved.
984
985 # AM_SILENT_RULES([DEFAULT])
986 # --------------------------
987 # Enable less verbose build rules; with the default set to DEFAULT
988 # ("yes" being less verbose, "no" or empty being verbose).
989 AC_DEFUN([AM_SILENT_RULES],
990 [AC_ARG_ENABLE([silent-rules], [dnl
991 AS_HELP_STRING(
992 [--enable-silent-rules],
993 [less verbose build output (undo: "make V=1")])
994 AS_HELP_STRING(
995 [--disable-silent-rules],
996 [verbose build output (undo: "make V=0")])dnl
997 ])
998 case $enable_silent_rules in @%:@ (((
999 yes) AM_DEFAULT_VERBOSITY=0;;
1000 no) AM_DEFAULT_VERBOSITY=1;;
1001 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1002 esac
1003 dnl
1004 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1005 dnl do not support nested variable expansions.
1006 dnl See automake bug#9928 and bug#10237.
1007 am_make=${MAKE-make}
1008 AC_CACHE_CHECK([whether $am_make supports nested variables],
1009 [am_cv_make_support_nested_variables],
1010 [if AS_ECHO([['TRUE=$(BAR$(V))
1011 BAR0=false
1012 BAR1=true
1013 V=1
1014 am__doit:
1015 @$(TRUE)
1016 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1017 am_cv_make_support_nested_variables=yes
1018 else
1019 am_cv_make_support_nested_variables=no
1020 fi])
1021 if test $am_cv_make_support_nested_variables = yes; then
1022 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1023 AM_V='$(V)'
1024 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1025 else
1026 AM_V=$AM_DEFAULT_VERBOSITY
1027 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1028 fi
1029 AC_SUBST([AM_V])dnl
1030 AM_SUBST_NOTMAKE([AM_V])dnl
1031 AC_SUBST([AM_DEFAULT_V])dnl
1032 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1033 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1034 AM_BACKSLASH='\'
1035 AC_SUBST([AM_BACKSLASH])dnl
1036 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1037 ])
1038
1039 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1040 #
1041 # This file is free software; the Free Software Foundation
1042 # gives unlimited permission to copy and/or distribute it,
1043 # with or without modifications, as long as this notice is preserved.
1044
1045 # AM_PROG_INSTALL_STRIP
1046 # ---------------------
1047 # One issue with vendor 'install' (even GNU) is that you can't
1048 # specify the program used to strip binaries. This is especially
1049 # annoying in cross-compiling environments, where the build's strip
1050 # is unlikely to handle the host's binaries.
1051 # Fortunately install-sh will honor a STRIPPROG variable, so we
1052 # always use install-sh in "make install-strip", and initialize
1053 # STRIPPROG with the value of the STRIP variable (set by the user).
1054 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1055 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1056 # Installed binaries are usually stripped using 'strip' when the user
1057 # run "make install-strip". However 'strip' might not be the right
1058 # tool to use in cross-compilation environments, therefore Automake
1059 # will honor the 'STRIP' environment variable to overrule this program.
1060 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1061 if test "$cross_compiling" != no; then
1062 AC_CHECK_TOOL([STRIP], [strip], :)
1063 fi
1064 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1065 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1066
1067 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
1068 #
1069 # This file is free software; the Free Software Foundation
1070 # gives unlimited permission to copy and/or distribute it,
1071 # with or without modifications, as long as this notice is preserved.
1072
1073 # _AM_SUBST_NOTMAKE(VARIABLE)
1074 # ---------------------------
1075 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1076 # This macro is traced by Automake.
1077 AC_DEFUN([_AM_SUBST_NOTMAKE])
1078
1079 # AM_SUBST_NOTMAKE(VARIABLE)
1080 # --------------------------
1081 # Public sister of _AM_SUBST_NOTMAKE.
1082 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1083
1084 # Check how to create a tarball. -*- Autoconf -*-
1085
1086 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
1087 #
1088 # This file is free software; the Free Software Foundation
1089 # gives unlimited permission to copy and/or distribute it,
1090 # with or without modifications, as long as this notice is preserved.
1091
1092 # _AM_PROG_TAR(FORMAT)
1093 # --------------------
1094 # Check how to create a tarball in format FORMAT.
1095 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1096 #
1097 # Substitute a variable $(am__tar) that is a command
1098 # writing to stdout a FORMAT-tarball containing the directory
1099 # $tardir.
1100 # tardir=directory && $(am__tar) > result.tar
1101 #
1102 # Substitute a variable $(am__untar) that extract such
1103 # a tarball read from stdin.
1104 # $(am__untar) < result.tar
1105 #
1106 AC_DEFUN([_AM_PROG_TAR],
1107 [# Always define AMTAR for backward compatibility. Yes, it's still used
1108 # in the wild :-( We should find a proper way to deprecate it ...
1109 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1110
1111 # We'll loop over all known methods to create a tar archive until one works.
1112 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1113
1114 m4_if([$1], [v7],
1115 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1116
1117 [m4_case([$1],
1118 [ustar],
1119 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1120 # There is notably a 21 bits limit for the UID and the GID. In fact,
1121 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1122 # and bug#13588).
1123 am_max_uid=2097151 # 2^21 - 1
1124 am_max_gid=$am_max_uid
1125 # The $UID and $GID variables are not portable, so we need to resort
1126 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1127 # below are definitely unexpected, so allow the users to see them
1128 # (that is, avoid stderr redirection).
1129 am_uid=`id -u || echo unknown`
1130 am_gid=`id -g || echo unknown`
1131 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1132 if test $am_uid -le $am_max_uid; then
1133 AC_MSG_RESULT([yes])
1134 else
1135 AC_MSG_RESULT([no])
1136 _am_tools=none
1137 fi
1138 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1139 if test $am_gid -le $am_max_gid; then
1140 AC_MSG_RESULT([yes])
1141 else
1142 AC_MSG_RESULT([no])
1143 _am_tools=none
1144 fi],
1145
1146 [pax],
1147 [],
1148
1149 [m4_fatal([Unknown tar format])])
1150
1151 AC_MSG_CHECKING([how to create a $1 tar archive])
1152
1153 # Go ahead even if we have the value already cached. We do so because we
1154 # need to set the values for the 'am__tar' and 'am__untar' variables.
1155 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1156
1157 for _am_tool in $_am_tools; do
1158 case $_am_tool in
1159 gnutar)
1160 for _am_tar in tar gnutar gtar; do
1161 AM_RUN_LOG([$_am_tar --version]) && break
1162 done
1163 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1164 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1165 am__untar="$_am_tar -xf -"
1166 ;;
1167 plaintar)
1168 # Must skip GNU tar: if it does not support --format= it doesn't create
1169 # ustar tarball either.
1170 (tar --version) >/dev/null 2>&1 && continue
1171 am__tar='tar chf - "$$tardir"'
1172 am__tar_='tar chf - "$tardir"'
1173 am__untar='tar xf -'
1174 ;;
1175 pax)
1176 am__tar='pax -L -x $1 -w "$$tardir"'
1177 am__tar_='pax -L -x $1 -w "$tardir"'
1178 am__untar='pax -r'
1179 ;;
1180 cpio)
1181 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1182 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1183 am__untar='cpio -i -H $1 -d'
1184 ;;
1185 none)
1186 am__tar=false
1187 am__tar_=false
1188 am__untar=false
1189 ;;
1190 esac
1191
1192 # If the value was cached, stop now. We just wanted to have am__tar
1193 # and am__untar set.
1194 test -n "${am_cv_prog_tar_$1}" && break
1195
1196 # tar/untar a dummy directory, and stop if the command works.
1197 rm -rf conftest.dir
1198 mkdir conftest.dir
1199 echo GrepMe > conftest.dir/file
1200 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1201 rm -rf conftest.dir
1202 if test -s conftest.tar; then
1203 AM_RUN_LOG([$am__untar <conftest.tar])
1204 AM_RUN_LOG([cat conftest.dir/file])
1205 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1206 fi
1207 done
1208 rm -rf conftest.dir
1209
1210 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1211 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1212
1213 AC_SUBST([am__tar])
1214 AC_SUBST([am__untar])
1215 ]) # _AM_PROG_TAR
1216
0 #!/bin/sh
1
2 # paranoia: sometimes autoconf doesn't get things right the first time
3 autoreconf --verbose --install --symlink --force
4 autoreconf --verbose --install --symlink --force
5 autoreconf --verbose --install --symlink --force
6
7 ./configure --with-hdf4 --enable-maintainer-mode "$@"
+0
-347
compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
+0
-112
config.h.in less more
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define if building universal (internal helper macro) */
3 #undef AC_APPLE_UNIVERSAL_BUILD
4
5 /* datadir installation prefix */
6 #undef DATADIR
7
8 /* Define to 1 if you have the <arpa/inet.h> header file. */
9 #undef HAVE_ARPA_INET_H
10
11 /* Define to 1 if you have the <hdf.h> header file. */
12 #undef HAVE_HDF_H
13
14 /* Define to 1 if you have the <hdf/hdf.h> header file. */
15 #undef HAVE_HDF_HDF_H
16
17 /* Define if you have htonl. */
18 #undef HAVE_HTONL
19
20 /* Define if you have htons. */
21 #undef HAVE_HTONS
22
23 /* Define to 1 if you have the <inttypes.h> header file. */
24 #undef HAVE_INTTYPES_H
25
26 /* Define to 1 if you have the `m' library (-lm). */
27 #undef HAVE_LIBM
28
29 /* Define to 1 if you have the <memory.h> header file. */
30 #undef HAVE_MEMORY_H
31
32 /* Define to 1 if you have the <netinet/in.h> header file. */
33 #undef HAVE_NETINET_IN_H
34
35 /* Define to 1 if you have the `snprintf' function. */
36 #undef HAVE_SNPRINTF
37
38 /* Define to 1 if you have the <stdint.h> header file. */
39 #undef HAVE_STDINT_H
40
41 /* Define to 1 if you have the <stdlib.h> header file. */
42 #undef HAVE_STDLIB_H
43
44 /* Define to 1 if you have the <strings.h> header file. */
45 #undef HAVE_STRINGS_H
46
47 /* Define to 1 if you have the <string.h> header file. */
48 #undef HAVE_STRING_H
49
50 /* Define to 1 if you have the <sys/stat.h> header file. */
51 #undef HAVE_SYS_STAT_H
52
53 /* Define to 1 if you have the <sys/types.h> header file. */
54 #undef HAVE_SYS_TYPES_H
55
56 /* Define to 1 if the system has the type `uint16_t'. */
57 #undef HAVE_UINT16_T
58
59 /* Define to 1 if the system has the type `uint32_t'. */
60 #undef HAVE_UINT32_T
61
62 /* Define to 1 if you have the <unistd.h> header file. */
63 #undef HAVE_UNISTD_H
64
65 /* Define to 1 if you have the <vis5d/v5d.h> header file. */
66 #undef HAVE_VIS5D_V5D_H
67
68 /* [Define if you have the <vis5d+/v5d.h> header file.] */
69 #undef HAVE_VIS5Dp_V5D_H
70
71 /* Name of package */
72 #undef PACKAGE
73
74 /* Define to the address where bug reports for this package should be sent. */
75 #undef PACKAGE_BUGREPORT
76
77 /* Define to the full name of this package. */
78 #undef PACKAGE_NAME
79
80 /* Define to the full name and version of this package. */
81 #undef PACKAGE_STRING
82
83 /* Define to the one symbol short name of this package. */
84 #undef PACKAGE_TARNAME
85
86 /* Define to the home page for this package. */
87 #undef PACKAGE_URL
88
89 /* Define to the version of this package. */
90 #undef PACKAGE_VERSION
91
92 /* The size of `float', as computed by sizeof. */
93 #undef SIZEOF_FLOAT
94
95 /* Define to 1 if you have the ANSI C header files. */
96 #undef STDC_HEADERS
97
98 /* Version number of package */
99 #undef VERSION
100
101 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
102 significant byte first (like Motorola and SPARC, unlike Intel). */
103 #if defined AC_APPLE_UNIVERSAL_BUILD
104 # if defined __BIG_ENDIAN__
105 # define WORDS_BIGENDIAN 1
106 # endif
107 #else
108 # ifndef WORDS_BIGENDIAN
109 # undef WORDS_BIGENDIAN
110 # endif
111 #endif
+0
-7139
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for h5utils 1.13.1.
3 #
4 # Report bugs to <stevenj@alum.mit.edu>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: stevenj@alum.mit.edu about your system, including any
270 $0: error possibly output before this message. Then install
271 $0: a modern shell, or manually run the script under such a
272 $0: shell if you do have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360 } # as_fn_mkdir_p
361
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380 else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385 fi # as_fn_append
386
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397 else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402 fi # as_fn_arith
403
404
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
411 {
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
420
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
432 fi
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
438 fi
439
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500 }
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511 *)
512 ECHO_N='-n';;
513 esac
514
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521 fi
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536 else
537 as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
561
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567 #
568 # Initializations.
569 #
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
578
579 # Identity of this package.
580 PACKAGE_NAME='h5utils'
581 PACKAGE_TARNAME='h5utils'
582 PACKAGE_VERSION='1.13.1'
583 PACKAGE_STRING='h5utils 1.13.1'
584 PACKAGE_BUGREPORT='stevenj@alum.mit.edu'
585 PACKAGE_URL=''
586
587 ac_unique_file="h5topng.c"
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 MORE_H5UTILS_MANS
629 MORE_H5UTILS
630 datadir_val
631 V5D_INCLUDES
632 V5D_FILES
633 OCT_INSTALL_DIR
634 H5READ
635 OCTAVE_CONFIG
636 OCTAVE
637 MKOCTFILE
638 H4_LIBS
639 H5TOH4
640 H4TOH5
641 PNG_LIBS
642 H5TOPNG_MAN
643 EGREP
644 GREP
645 CPP
646 am__fastdepCC_FALSE
647 am__fastdepCC_TRUE
648 CCDEPMODE
649 am__nodep
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 AM_BACKSLASH
667 AM_DEFAULT_VERBOSITY
668 AM_DEFAULT_V
669 AM_V
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 enable_silent_rules
735 enable_maintainer_mode
736 enable_dependency_tracking
737 with_hdf4
738 with_octave
739 with_v5d
740 '
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
744 CC
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
773
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
799
800 ac_prev=
801 ac_dashdash=
802 for ac_option
803 do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
809 fi
810
811 case $ac_option in
812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *=) ac_optarg= ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
863 *"
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=no ;;
870
871 -docdir | --docdir | --docdi | --doc | --do)
872 ac_prev=docdir ;;
873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874 docdir=$ac_optarg ;;
875
876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 ac_prev=dvidir ;;
878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879 dvidir=$ac_optarg ;;
880
881 -enable-* | --enable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=\$ac_optarg ;;
896
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
905
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
908 with_gas=yes ;;
909
910 -help | --help | --hel | --he | -h)
911 ac_init_help=long ;;
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
916
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
921
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 ac_prev=htmldir ;;
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 | --ht=*)
926 htmldir=$ac_optarg ;;
927
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
934
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 ac_prev=infodir ;;
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
939
940 -libdir | --libdir | --libdi | --libd)
941 ac_prev=libdir ;;
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
943 libdir=$ac_optarg ;;
944
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
951
952 -localedir | --localedir | --localedi | --localed | --locale)
953 ac_prev=localedir ;;
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
956
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
963
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 ac_prev=mandir ;;
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 mandir=$ac_optarg ;;
968
969 -nfp | --nfp | --nf)
970 # Obsolete; use --without-fp.
971 with_fp=no ;;
972
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
975 no_create=yes ;;
976
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979 no_recursion=yes ;;
980
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
989
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 ac_prev=prefix ;;
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993 prefix=$ac_optarg ;;
994
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1001
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1008
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1025
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 ac_prev=pdfdir ;;
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1030
1031 -psdir | --psdir | --psdi | --psd | --ps)
1032 ac_prev=psdir ;;
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034 psdir=$ac_optarg ;;
1035
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 silent=yes ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155 ;;
1156
1157 esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1178 do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures h5utils 1.13.1 to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/h5utils]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1344
1345 cat <<\_ACEOF
1346
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 _ACEOF
1352 fi
1353
1354 if test -n "$ac_init_help"; then
1355 case $ac_init_help in
1356 short | recursive ) echo "Configuration of h5utils 1.13.1:";;
1357 esac
1358 cat <<\_ACEOF
1359
1360 Optional Features:
1361 --disable-option-checking ignore unrecognized --enable/--with options
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --enable-silent-rules less verbose build output (undo: "make V=1")
1365 --disable-silent-rules verbose build output (undo: "make V=0")
1366 --enable-maintainer-mode
1367 enable make rules and dependencies not useful (and
1368 sometimes confusing) to the casual installer
1369 --enable-dependency-tracking
1370 do not reject slow dependency extractors
1371 --disable-dependency-tracking
1372 speeds up one-time build
1373
1374 Optional Packages:
1375 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1376 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1377 --with-hdf4 build hdf4 utils even if h4toh5 and h5toh4 are
1378 present
1379 --without-octave don't compile h5read Octave plugin
1380 --with-v5d=<dir> use Vis5d in <dir> for h5tov5d
1381
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 CPP C preprocessor
1391
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1394
1395 Report bugs to <stevenj@alum.mit.edu>.
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 continue
1406 ac_builddir=.
1407
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *)
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1423
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1453 fi
1454
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 h5utils configure 1.13.1
1459 generated by GNU Autoconf 2.69
1460
1461 Copyright (C) 2012 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465 exit
1466 fi
1467
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1471
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1476 {
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1487 ac_status=$?
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1492 fi
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.$ac_objext; then :
1498 ac_retval=0
1499 else
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1502
1503 ac_retval=1
1504 fi
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1507
1508 } # ac_fn_c_try_compile
1509
1510 # ac_fn_c_try_cpp LINENO
1511 # ----------------------
1512 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_cpp ()
1514 {
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { { ac_try="$ac_cpp conftest.$ac_ext"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } > conftest.i && {
1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 }; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541 fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_cpp
1546
1547 # ac_fn_c_try_run LINENO
1548 # ----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1550 # that executables *can* be run.
1551 ac_fn_c_try_run ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 if { { ac_try="$ac_link"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>&5
1562 ac_status=$?
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1565 { { case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_try") 2>&5
1572 ac_status=$?
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; }; }; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: program exited with status $ac_status" >&5
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=$ac_status
1582 fi
1583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_run
1588
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_link ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 test -x conftest$ac_exeext
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627 # interfere with the next link command; also delete a directory that is
1628 # left behind by Apple's compiler. We do this before executing the actions.
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_link
1634
1635 # ac_fn_c_check_func LINENO FUNC VAR
1636 # ----------------------------------
1637 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1638 ac_fn_c_check_func ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1650 #define $2 innocuous_$2
1651
1652 /* System header to define __stub macros and hopefully few prototypes,
1653 which can conflict with char $2 (); below.
1654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1655 <limits.h> exists even on freestanding compilers. */
1656
1657 #ifdef __STDC__
1658 # include <limits.h>
1659 #else
1660 # include <assert.h>
1661 #endif
1662
1663 #undef $2
1664
1665 /* Override any GCC internal prototype to avoid an error.
1666 Use char because int might match the return type of a GCC
1667 builtin and then its argument prototype would still apply. */
1668 #ifdef __cplusplus
1669 extern "C"
1670 #endif
1671 char $2 ();
1672 /* The GNU C library defines this for functions which it implements
1673 to always fail with ENOSYS. Some functions are actually named
1674 something starting with __ and the normal name is an alias. */
1675 #if defined __stub_$2 || defined __stub___$2
1676 choke me
1677 #endif
1678
1679 int
1680 main ()
1681 {
1682 return $2 ();
1683 ;
1684 return 0;
1685 }
1686 _ACEOF
1687 if ac_fn_c_try_link "$LINENO"; then :
1688 eval "$3=yes"
1689 else
1690 eval "$3=no"
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext \
1693 conftest$ac_exeext conftest.$ac_ext
1694 fi
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700 } # ac_fn_c_check_func
1701
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1706 # accordingly.
1707 ac_fn_c_check_header_mongrel ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if eval \${$3+:} false; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 fi
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 else
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_header_compiler=yes
1730 else
1731 ac_header_compiler=no
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1736
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_cpp "$LINENO"; then :
1745 ac_header_preproc=yes
1746 else
1747 ac_header_preproc=no
1748 fi
1749 rm -f conftest.err conftest.i conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1752
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 yes:no: )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 ;;
1761 no:yes:* )
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ( $as_echo "## ----------------------------------- ##
1773 ## Report this to stevenj@alum.mit.edu ##
1774 ## ----------------------------------- ##"
1775 ) | sed "s/^/$as_me: WARNING: /" >&2
1776 ;;
1777 esac
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 eval "$3=\$ac_header_compiler"
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 fi
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_mongrel
1792
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1825 # -------------------------------------------
1826 # Tests whether TYPE exists after having included INCLUDES, setting cache
1827 # variable VAR accordingly.
1828 ac_fn_c_check_type ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 eval "$3=no"
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $4
1840 int
1841 main ()
1842 {
1843 if (sizeof ($2))
1844 return 0;
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 $4
1853 int
1854 main ()
1855 {
1856 if (sizeof (($2)))
1857 return 0;
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863
1864 else
1865 eval "$3=yes"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_type
1877
1878 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1879 # --------------------------------------------
1880 # Tries to find the compile-time value of EXPR in a program that includes
1881 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1882 # computed
1883 ac_fn_c_compute_int ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if test "$cross_compiling" = yes; then
1887 # Depending upon the size, compute the lo and hi bounds.
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main ()
1893 {
1894 static int test_array [1 - 2 * !(($2) >= 0)];
1895 test_array [0] = 0;
1896 return test_array [0];
1897
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 ac_lo=0 ac_mid=0
1904 while :; do
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1912 test_array [0] = 0;
1913 return test_array [0];
1914
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_hi=$ac_mid; break
1921 else
1922 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923 if test $ac_lo -le $ac_mid; then
1924 ac_lo= ac_hi=
1925 break
1926 fi
1927 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 done
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 static int test_array [1 - 2 * !(($2) < 0)];
1939 test_array [0] = 0;
1940 return test_array [0];
1941
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_hi=-1 ac_mid=-1
1948 while :; do
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 int
1953 main ()
1954 {
1955 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1956 test_array [0] = 0;
1957 return test_array [0];
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_lo=$ac_mid; break
1965 else
1966 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1967 if test $ac_mid -le $ac_hi; then
1968 ac_lo= ac_hi=
1969 break
1970 fi
1971 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 done
1975 else
1976 ac_lo= ac_hi=
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 # Binary search between lo and hi bounds.
1982 while test "x$ac_lo" != "x$ac_hi"; do
1983 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0;
1992 return test_array [0];
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_hi=$ac_mid
2000 else
2001 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 done
2005 case $ac_lo in #((
2006 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2007 '') ac_retval=1 ;;
2008 esac
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 static long int longval () { return $2; }
2014 static unsigned long int ulongval () { return $2; }
2015 #include <stdio.h>
2016 #include <stdlib.h>
2017 int
2018 main ()
2019 {
2020
2021 FILE *f = fopen ("conftest.val", "w");
2022 if (! f)
2023 return 1;
2024 if (($2) < 0)
2025 {
2026 long int i = longval ();
2027 if (i != ($2))
2028 return 1;
2029 fprintf (f, "%ld", i);
2030 }
2031 else
2032 {
2033 unsigned long int i = ulongval ();
2034 if (i != ($2))
2035 return 1;
2036 fprintf (f, "%lu", i);
2037 }
2038 /* Do not output a trailing newline, as this causes \r\n confusion
2039 on some platforms. */
2040 return ferror (f) || fclose (f) != 0;
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_run "$LINENO"; then :
2047 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2048 else
2049 ac_retval=1
2050 fi
2051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2052 conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 rm -f conftest.val
2054
2055 fi
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status $ac_retval
2058
2059 } # ac_fn_c_compute_int
2060 cat >config.log <<_ACEOF
2061 This file contains any messages produced by compilers while
2062 running configure, to aid debugging if configure makes a mistake.
2063
2064 It was created by h5utils $as_me 1.13.1, which was
2065 generated by GNU Autoconf 2.69. Invocation command line was
2066
2067 $ $0 $@
2068
2069 _ACEOF
2070 exec 5>>config.log
2071 {
2072 cat <<_ASUNAME
2073 ## --------- ##
2074 ## Platform. ##
2075 ## --------- ##
2076
2077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085
2086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093
2094 _ASUNAME
2095
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 $as_echo "PATH: $as_dir"
2102 done
2103 IFS=$as_save_IFS
2104
2105 } >&5
2106
2107 cat >&5 <<_ACEOF
2108
2109
2110 ## ----------- ##
2111 ## Core tests. ##
2112 ## ----------- ##
2113
2114 _ACEOF
2115
2116
2117 # Keep a trace of the command line.
2118 # Strip out --no-create and --no-recursion so they do not pile up.
2119 # Strip out --silent because we don't want to record it for future runs.
2120 # Also quote any args containing shell meta-characters.
2121 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_configure_args=
2123 ac_configure_args0=
2124 ac_configure_args1=
2125 ac_must_keep_next=false
2126 for ac_pass in 1 2
2127 do
2128 for ac_arg
2129 do
2130 case $ac_arg in
2131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2133 | -silent | --silent | --silen | --sile | --sil)
2134 continue ;;
2135 *\'*)
2136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 esac
2138 case $ac_pass in
2139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 2)
2141 as_fn_append ac_configure_args1 " '$ac_arg'"
2142 if test $ac_must_keep_next = true; then
2143 ac_must_keep_next=false # Got value, back to normal.
2144 else
2145 case $ac_arg in
2146 *=* | --config-cache | -C | -disable-* | --disable-* \
2147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2149 | -with-* | --with-* | -without-* | --without-* | --x)
2150 case "$ac_configure_args0 " in
2151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2152 esac
2153 ;;
2154 -* ) ac_must_keep_next=true ;;
2155 esac
2156 fi
2157 as_fn_append ac_configure_args " '$ac_arg'"
2158 ;;
2159 esac
2160 done
2161 done
2162 { ac_configure_args0=; unset ac_configure_args0;}
2163 { ac_configure_args1=; unset ac_configure_args1;}
2164
2165 # When interrupted or exit'd, cleanup temporary files, and complete
2166 # config.log. We remove comments because anyway the quotes in there
2167 # would cause problems or look ugly.
2168 # WARNING: Use '\'' to represent an apostrophe within the trap.
2169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2170 trap 'exit_status=$?
2171 # Save into config.log some information that might help in debugging.
2172 {
2173 echo
2174
2175 $as_echo "## ---------------- ##
2176 ## Cache variables. ##
2177 ## ---------------- ##"
2178 echo
2179 # The following way of writing the cache mishandles newlines in values,
2180 (
2181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2182 eval ac_val=\$$ac_var
2183 case $ac_val in #(
2184 *${as_nl}*)
2185 case $ac_var in #(
2186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2188 esac
2189 case $ac_var in #(
2190 _ | IFS | as_nl) ;; #(
2191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2192 *) { eval $ac_var=; unset $ac_var;} ;;
2193 esac ;;
2194 esac
2195 done
2196 (set) 2>&1 |
2197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2198 *${as_nl}ac_space=\ *)
2199 sed -n \
2200 "s/'\''/'\''\\\\'\'''\''/g;
2201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2202 ;; #(
2203 *)
2204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2205 ;;
2206 esac |
2207 sort
2208 )
2209 echo
2210
2211 $as_echo "## ----------------- ##
2212 ## Output variables. ##
2213 ## ----------------- ##"
2214 echo
2215 for ac_var in $ac_subst_vars
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 $as_echo "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224
2225 if test -n "$ac_subst_files"; then
2226 $as_echo "## ------------------- ##
2227 ## File substitutions. ##
2228 ## ------------------- ##"
2229 echo
2230 for ac_var in $ac_subst_files
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239 fi
2240
2241 if test -s confdefs.h; then
2242 $as_echo "## ----------- ##
2243 ## confdefs.h. ##
2244 ## ----------- ##"
2245 echo
2246 cat confdefs.h
2247 echo
2248 fi
2249 test "$ac_signal" != 0 &&
2250 $as_echo "$as_me: caught signal $ac_signal"
2251 $as_echo "$as_me: exit $exit_status"
2252 } >&5
2253 rm -f core *.core core.conftest.* &&
2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2255 exit $exit_status
2256 ' 0
2257 for ac_signal in 1 2 13 15; do
2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 done
2260 ac_signal=0
2261
2262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2263 rm -f -r conftest* confdefs.h
2264
2265 $as_echo "/* confdefs.h */" > confdefs.h
2266
2267 # Predefined preprocessor variables.
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_NAME "$PACKAGE_NAME"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_STRING "$PACKAGE_STRING"
2283 _ACEOF
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2287 _ACEOF
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_URL "$PACKAGE_URL"
2291 _ACEOF
2292
2293
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2296 ac_site_file1=NONE
2297 ac_site_file2=NONE
2298 if test -n "$CONFIG_SITE"; then
2299 # We do not want a PATH search for config.site.
2300 case $CONFIG_SITE in #((
2301 -*) ac_site_file1=./$CONFIG_SITE;;
2302 */*) ac_site_file1=$CONFIG_SITE;;
2303 *) ac_site_file1=./$CONFIG_SITE;;
2304 esac
2305 elif test "x$prefix" != xNONE; then
2306 ac_site_file1=$prefix/share/config.site
2307 ac_site_file2=$prefix/etc/config.site
2308 else
2309 ac_site_file1=$ac_default_prefix/share/config.site
2310 ac_site_file2=$ac_default_prefix/etc/config.site
2311 fi
2312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 do
2314 test "x$ac_site_file" = xNONE && continue
2315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2318 sed 's/^/| /' "$ac_site_file" >&5
2319 . "$ac_site_file" \
2320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error $? "failed to load site script $ac_site_file
2323 See \`config.log' for more details" "$LINENO" 5; }
2324 fi
2325 done
2326
2327 if test -r "$cache_file"; then
2328 # Some versions of bash will fail to source /dev/null (special files
2329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2332 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 case $cache_file in
2334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2335 *) . "./$cache_file";;
2336 esac
2337 fi
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2340 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341 >$cache_file
2342 fi
2343
2344 # Check that the precious variables saved in the cache have kept the same
2345 # value.
2346 ac_cache_corrupted=false
2347 for ac_var in $ac_precious_vars; do
2348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2349 eval ac_new_set=\$ac_env_${ac_var}_set
2350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2351 eval ac_new_val=\$ac_env_${ac_var}_value
2352 case $ac_old_set,$ac_new_set in
2353 set,)
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2355 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2356 ac_cache_corrupted=: ;;
2357 ,set)
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2359 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2360 ac_cache_corrupted=: ;;
2361 ,);;
2362 *)
2363 if test "x$ac_old_val" != "x$ac_new_val"; then
2364 # differences in whitespace do not lead to failure.
2365 ac_old_val_w=`echo x $ac_old_val`
2366 ac_new_val_w=`echo x $ac_new_val`
2367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2369 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2370 ac_cache_corrupted=:
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2373 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2374 eval $ac_var=\$ac_old_val
2375 fi
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2377 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2379 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2380 fi;;
2381 esac
2382 # Pass precious variables to config.status.
2383 if test "$ac_new_set" = set; then
2384 case $ac_new_val in
2385 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2386 *) ac_arg=$ac_var=$ac_new_val ;;
2387 esac
2388 case " $ac_configure_args " in
2389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391 esac
2392 fi
2393 done
2394 if $ac_cache_corrupted; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2398 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2399 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 fi
2401 ## -------------------- ##
2402 ## Main body of script. ##
2403 ## -------------------- ##
2404
2405 ac_ext=c
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410
2411
2412 am__api_version='1.15'
2413
2414 ac_aux_dir=
2415 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2416 if test -f "$ac_dir/install-sh"; then
2417 ac_aux_dir=$ac_dir
2418 ac_install_sh="$ac_aux_dir/install-sh -c"
2419 break
2420 elif test -f "$ac_dir/install.sh"; then
2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/install.sh -c"
2423 break
2424 elif test -f "$ac_dir/shtool"; then
2425 ac_aux_dir=$ac_dir
2426 ac_install_sh="$ac_aux_dir/shtool install -c"
2427 break
2428 fi
2429 done
2430 if test -z "$ac_aux_dir"; then
2431 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2432 fi
2433
2434 # These three variables are undocumented and unsupported,
2435 # and are intended to be withdrawn in a future Autoconf release.
2436 # They can cause serious problems if a builder's source tree is in a directory
2437 # whose full name contains unusual characters.
2438 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2439 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2440 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2441
2442
2443 # Find a good install program. We prefer a C program (faster),
2444 # so one script is as good as another. But avoid the broken or
2445 # incompatible versions:
2446 # SysV /etc/install, /usr/sbin/install
2447 # SunOS /usr/etc/install
2448 # IRIX /sbin/install
2449 # AIX /bin/install
2450 # AmigaOS /C/install, which installs bootblocks on floppy discs
2451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2454 # OS/2's system install, which has a completely different semantic
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 # Reject install programs that cannot install multiple files.
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2459 if test -z "$INSTALL"; then
2460 if ${ac_cv_path_install+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2469 case $as_dir/ in #((
2470 ./ | .// | /[cC]/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2473 /usr/ucb/* ) ;;
2474 *)
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2477 # by default.
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2484 :
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2488 :
2489 else
2490 rm -rf conftest.one conftest.two conftest.dir
2491 echo one > conftest.one
2492 echo two > conftest.two
2493 mkdir conftest.dir
2494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2495 test -s conftest.one && test -s conftest.two &&
2496 test -s conftest.dir/conftest.one &&
2497 test -s conftest.dir/conftest.two
2498 then
2499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2500 break 3
2501 fi
2502 fi
2503 fi
2504 done
2505 done
2506 ;;
2507 esac
2508
2509 done
2510 IFS=$as_save_IFS
2511
2512 rm -rf conftest.one conftest.two conftest.dir
2513
2514 fi
2515 if test "${ac_cv_path_install+set}" = set; then
2516 INSTALL=$ac_cv_path_install
2517 else
2518 # As a last resort, use the slow shell script. Don't cache a
2519 # value for INSTALL within a source directory, because that will
2520 # break other packages using the cache if that directory is
2521 # removed, or if the value is a relative name.
2522 INSTALL=$ac_install_sh
2523 fi
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2526 $as_echo "$INSTALL" >&6; }
2527
2528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2529 # It thinks the first close brace ends the variable substitution.
2530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2531
2532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2533
2534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2535
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2537 $as_echo_n "checking whether build environment is sane... " >&6; }
2538 # Reject unsafe characters in $srcdir or the absolute working directory
2539 # name. Accept space and tab only in the latter.
2540 am_lf='
2541 '
2542 case `pwd` in
2543 *[\\\"\#\$\&\'\`$am_lf]*)
2544 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2545 esac
2546 case $srcdir in
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2548 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2549 esac
2550
2551 # Do 'set' in a subshell so we don't clobber the current shell's
2552 # arguments. Must try -L first in case configure is actually a
2553 # symlink; some systems play weird games with the mod time of symlinks
2554 # (eg FreeBSD returns the mod time of the symlink's containing
2555 # directory).
2556 if (
2557 am_has_slept=no
2558 for am_try in 1 2; do
2559 echo "timestamp, slept: $am_has_slept" > conftest.file
2560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2561 if test "$*" = "X"; then
2562 # -L didn't work.
2563 set X `ls -t "$srcdir/configure" conftest.file`
2564 fi
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
2572 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2573 alias in your environment" "$LINENO" 5
2574 fi
2575 if test "$2" = conftest.file || test $am_try -eq 2; then
2576 break
2577 fi
2578 # Just in case.
2579 sleep 1
2580 am_has_slept=yes
2581 done
2582 test "$2" = conftest.file
2583 )
2584 then
2585 # Ok.
2586 :
2587 else
2588 as_fn_error $? "newly created file is older than distributed files!
2589 Check your system clock" "$LINENO" 5
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2592 $as_echo "yes" >&6; }
2593 # If we didn't sleep, we still need to ensure time stamps of config.status and
2594 # generated files are strictly newer.
2595 am_sleep_pid=
2596 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2597 ( sleep 1 ) &
2598 am_sleep_pid=$!
2599 fi
2600
2601 rm -f conftest.file
2602
2603 test "$program_prefix" != NONE &&
2604 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2605 # Use a double $ so make ignores it.
2606 test "$program_suffix" != NONE &&
2607 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2608 # Double any \ or $.
2609 # By default was `s,x,x', remove it if useless.
2610 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2611 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2612
2613 # Expand $ac_aux_dir to an absolute path.
2614 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2615
2616 if test x"${MISSING+set}" != xset; then
2617 case $am_aux_dir in
2618 *\ * | *\ *)
2619 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2620 *)
2621 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2622 esac
2623 fi
2624 # Use eval to expand $SHELL
2625 if eval "$MISSING --is-lightweight"; then
2626 am_missing_run="$MISSING "
2627 else
2628 am_missing_run=
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2630 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2631 fi
2632
2633 if test x"${install_sh+set}" != xset; then
2634 case $am_aux_dir in
2635 *\ * | *\ *)
2636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2637 *)
2638 install_sh="\${SHELL} $am_aux_dir/install-sh"
2639 esac
2640 fi
2641
2642 # Installed binaries are usually stripped using 'strip' when the user
2643 # run "make install-strip". However 'strip' might not be the right
2644 # tool to use in cross-compilation environments, therefore Automake
2645 # will honor the 'STRIP' environment variable to overrule this program.
2646 if test "$cross_compiling" != no; then
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}strip; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_STRIP+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$STRIP"; then
2656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 STRIP=$ac_cv_prog_STRIP
2676 if test -n "$STRIP"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2678 $as_echo "$STRIP" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685 fi
2686 if test -z "$ac_cv_prog_STRIP"; then
2687 ac_ct_STRIP=$STRIP
2688 # Extract the first word of "strip", so it can be a program name with args.
2689 set dummy strip; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$ac_ct_STRIP"; then
2696 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_ac_ct_STRIP="strip"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2708 fi
2709 done
2710 done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2716 if test -n "$ac_ct_STRIP"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2718 $as_echo "$ac_ct_STRIP" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724 if test "x$ac_ct_STRIP" = x; then
2725 STRIP=":"
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733 STRIP=$ac_ct_STRIP
2734 fi
2735 else
2736 STRIP="$ac_cv_prog_STRIP"
2737 fi
2738
2739 fi
2740 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2743 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2744 if test -z "$MKDIR_P"; then
2745 if ${ac_cv_path_mkdir+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_prog in mkdir gmkdir; do
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2756 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2757 'mkdir (GNU coreutils) '* | \
2758 'mkdir (coreutils) '* | \
2759 'mkdir (fileutils) '4.1*)
2760 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761 break 3;;
2762 esac
2763 done
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769
2770 test -d ./--version && rmdir ./--version
2771 if test "${ac_cv_path_mkdir+set}" = set; then
2772 MKDIR_P="$ac_cv_path_mkdir -p"
2773 else
2774 # As a last resort, use the slow shell script. Don't cache a
2775 # value for MKDIR_P within a source directory, because that will
2776 # break other packages using the cache if that directory is
2777 # removed, or if the value is a relative name.
2778 MKDIR_P="$ac_install_sh -d"
2779 fi
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2782 $as_echo "$MKDIR_P" >&6; }
2783
2784 for ac_prog in gawk mawk nawk awk
2785 do
2786 # Extract the first word of "$ac_prog", so it can be a program name with args.
2787 set dummy $ac_prog; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_AWK+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$AWK"; then
2794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_AWK="$ac_prog"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 AWK=$ac_cv_prog_AWK
2814 if test -n "$AWK"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2816 $as_echo "$AWK" >&6; }
2817 else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 fi
2821
2822
2823 test -n "$AWK" && break
2824 done
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2828 set x ${MAKE-make}
2829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2830 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat >conftest.make <<\_ACEOF
2834 SHELL = /bin/sh
2835 all:
2836 @echo '@@@%%%=$(MAKE)=@@@%%%'
2837 _ACEOF
2838 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2840 *@@@%%%=?*=@@@%%%*)
2841 eval ac_cv_prog_make_${ac_make}_set=yes;;
2842 *)
2843 eval ac_cv_prog_make_${ac_make}_set=no;;
2844 esac
2845 rm -f conftest.make
2846 fi
2847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849 $as_echo "yes" >&6; }
2850 SET_MAKE=
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 SET_MAKE="MAKE=${MAKE-make}"
2855 fi
2856
2857 rm -rf .tst 2>/dev/null
2858 mkdir .tst 2>/dev/null
2859 if test -d .tst; then
2860 am__leading_dot=.
2861 else
2862 am__leading_dot=_
2863 fi
2864 rmdir .tst 2>/dev/null
2865
2866 # Check whether --enable-silent-rules was given.
2867 if test "${enable_silent_rules+set}" = set; then :
2868 enableval=$enable_silent_rules;
2869 fi
2870
2871 case $enable_silent_rules in # (((
2872 yes) AM_DEFAULT_VERBOSITY=0;;
2873 no) AM_DEFAULT_VERBOSITY=1;;
2874 *) AM_DEFAULT_VERBOSITY=1;;
2875 esac
2876 am_make=${MAKE-make}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2878 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2879 if ${am_cv_make_support_nested_variables+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if $as_echo 'TRUE=$(BAR$(V))
2883 BAR0=false
2884 BAR1=true
2885 V=1
2886 am__doit:
2887 @$(TRUE)
2888 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2889 am_cv_make_support_nested_variables=yes
2890 else
2891 am_cv_make_support_nested_variables=no
2892 fi
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2895 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2896 if test $am_cv_make_support_nested_variables = yes; then
2897 AM_V='$(V)'
2898 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2899 else
2900 AM_V=$AM_DEFAULT_VERBOSITY
2901 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2902 fi
2903 AM_BACKSLASH='\'
2904
2905 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2907 # is not polluted with repeated "-I."
2908 am__isrc=' -I$(srcdir)'
2909 # test to see if srcdir already configured
2910 if test -f $srcdir/config.status; then
2911 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2912 fi
2913 fi
2914
2915 # test whether we have cygpath
2916 if test -z "$CYGPATH_W"; then
2917 if (cygpath --version) >/dev/null 2>/dev/null; then
2918 CYGPATH_W='cygpath -w'
2919 else
2920 CYGPATH_W=echo
2921 fi
2922 fi
2923
2924
2925 # Define the identity of the package.
2926 PACKAGE='h5utils'
2927 VERSION='1.13.1'
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE "$PACKAGE"
2932 _ACEOF
2933
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define VERSION "$VERSION"
2937 _ACEOF
2938
2939 # Some tools Automake needs.
2940
2941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2942
2943
2944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2945
2946
2947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2948
2949
2950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2951
2952
2953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2954
2955 # For better backward compatibility. To be removed once Automake 1.9.x
2956 # dies out for good. For more background, see:
2957 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2958 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2959 mkdir_p='$(MKDIR_P)'
2960
2961 # We need awk for the "check" target (and possibly the TAP driver). The
2962 # system "awk" is bad on some platforms.
2963 # Always define AMTAR for backward compatibility. Yes, it's still used
2964 # in the wild :-( We should find a proper way to deprecate it ...
2965 AMTAR='$${TAR-tar}'
2966
2967
2968 # We'll loop over all known methods to create a tar archive until one works.
2969 _am_tools='gnutar pax cpio none'
2970
2971 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2972
2973
2974
2975
2976
2977
2978 # POSIX will say in a future version that running "rm -f" with no argument
2979 # is OK; and we want to be able to make that assumption in our Makefile
2980 # recipes. So use an aggressive probe to check that the usage we want is
2981 # actually supported "in the wild" to an acceptable degree.
2982 # See automake bug#10828.
2983 # To make any issue more visible, cause the running configure to be aborted
2984 # by default if the 'rm' program in use doesn't match our expectations; the
2985 # user can still override this though.
2986 if rm -f && rm -fr && rm -rf; then : OK; else
2987 cat >&2 <<'END'
2988 Oops!
2989
2990 Your 'rm' program seems unable to run without file operands specified
2991 on the command line, even when the '-f' option is present. This is contrary
2992 to the behaviour of most rm programs out there, and not conforming with
2993 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2994
2995 Please tell bug-automake@gnu.org about your system, including the value
2996 of your $PATH and any error possibly output before this message. This
2997 can help us improve future automake versions.
2998
2999 END
3000 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3001 echo 'Configuration will proceed anyway, since you have set the' >&2
3002 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3003 echo >&2
3004 else
3005 cat >&2 <<'END'
3006 Aborting the configuration process, to ensure you take notice of the issue.
3007
3008 You can download and install GNU coreutils to get an 'rm' implementation
3009 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3010
3011 If you want to complete the configuration process using your problematic
3012 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3013 to "yes", and re-run configure.
3014
3015 END
3016 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3017 fi
3018 fi
3019
3020 # Check whether --enable-silent-rules was given.
3021 if test "${enable_silent_rules+set}" = set; then :
3022 enableval=$enable_silent_rules;
3023 fi
3024
3025 case $enable_silent_rules in # (((
3026 yes) AM_DEFAULT_VERBOSITY=0;;
3027 no) AM_DEFAULT_VERBOSITY=1;;
3028 *) AM_DEFAULT_VERBOSITY=0;;
3029 esac
3030 am_make=${MAKE-make}
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3033 if ${am_cv_make_support_nested_variables+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if $as_echo 'TRUE=$(BAR$(V))
3037 BAR0=false
3038 BAR1=true
3039 V=1
3040 am__doit:
3041 @$(TRUE)
3042 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3043 am_cv_make_support_nested_variables=yes
3044 else
3045 am_cv_make_support_nested_variables=no
3046 fi
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3049 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3050 if test $am_cv_make_support_nested_variables = yes; then
3051 AM_V='$(V)'
3052 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3053 else
3054 AM_V=$AM_DEFAULT_VERBOSITY
3055 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3056 fi
3057 AM_BACKSLASH='\'
3058
3059
3060 ac_config_headers="$ac_config_headers config.h"
3061
3062
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3064 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3065 # Check whether --enable-maintainer-mode was given.
3066 if test "${enable_maintainer_mode+set}" = set; then :
3067 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3068 else
3069 USE_MAINTAINER_MODE=no
3070 fi
3071
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3073 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3074 if test $USE_MAINTAINER_MODE = yes; then
3075 MAINTAINER_MODE_TRUE=
3076 MAINTAINER_MODE_FALSE='#'
3077 else
3078 MAINTAINER_MODE_TRUE='#'
3079 MAINTAINER_MODE_FALSE=
3080 fi
3081
3082 MAINT=$MAINTAINER_MODE_TRUE
3083
3084
3085
3086 # Checks for programs.
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$ac_cv_prog_CC"; then
3132 ac_ct_CC=$CC
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169 if test "x$ac_ct_CC" = x; then
3170 CC=""
3171 else
3172 case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178 CC=$ac_ct_CC
3179 fi
3180 else
3181 CC="$ac_cv_prog_CC"
3182 fi
3183
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222
3223 fi
3224 fi
3225 if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 ac_prog_rejected=no
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected=yes
3246 continue
3247 fi
3248 ac_cv_prog_CC="cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy $ac_cv_prog_CC
3259 shift
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3264 shift
3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266 fi
3267 fi
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in cl.exe
3284 do
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322 test -n "$CC" && break
3323 done
3324 fi
3325 if test -z "$CC"; then
3326 ac_ct_CC=$CC
3327 for ac_prog in cl.exe
3328 do
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 test -n "$ac_ct_CC" && break
3367 done
3368
3369 if test "x$ac_ct_CC" = x; then
3370 CC=""
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378 CC=$ac_ct_CC
3379 fi
3380 fi
3381
3382 fi
3383
3384
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details" "$LINENO" 5; }
3389
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403 ac_status=$?
3404 if test -s conftest.err; then
3405 sed '10a\
3406 ... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3409 fi
3410 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 done
3414
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432 $as_echo_n "checking whether the C compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3440 do
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444 esac
3445 done
3446 rm -f $ac_rmfiles
3447
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3465 do
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469 ;;
3470 [ab].out )
3471 # We found the default executable, but exeext='' is most
3472 # certainly right.
3473 break;;
3474 *.* )
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476 then :; else
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 fi
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3483 # actually working.
3484 break;;
3485 * )
3486 break;;
3487 esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491 else
3492 ac_file=''
3493 fi
3494 if test -z "$ac_file"; then :
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3513
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3532 # `rm'.
3533 for ac_file in conftest.exe conftest conftest.*; do
3534 test -f "$ac_file" || continue
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 break;;
3539 * ) break;;
3540 esac
3541 done
3542 else
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3551
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3554 ac_exeext=$EXEEXT
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <stdio.h>
3558 int
3559 main ()
3560 {
3561 FILE *f = fopen ("conftest.out", "w");
3562 return ferror (f) || fclose (f) != 0;
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574 { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 if { ac_try='./conftest$ac_cv_exeext'
3586 { { case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; }; then
3596 cross_compiling=no
3597 else
3598 if test "$cross_compiling" = maybe; then
3599 cross_compiling=yes
3600 else
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3611
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 int
3623 main ()
3624 {
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compile") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 for ac_file in conftest.o conftest.obj conftest.*; do
3643 test -f "$ac_file" || continue;
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647 break;;
3648 esac
3649 done
3650 else
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3658 fi
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3664 ac_objext=$OBJEXT
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676 #ifndef __GNUC__
3677 choke me
3678 #endif
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_compiler_gnu=yes
3686 else
3687 ac_compiler_gnu=no
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696 GCC=yes
3697 else
3698 GCC=
3699 fi
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3709 ac_cv_prog_cc_g=no
3710 CFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_g=yes
3724 else
3725 CFLAGS=""
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738
3739 else
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3769 CFLAGS="-g -O2"
3770 else
3771 CFLAGS="-g"
3772 fi
3773 else
3774 if test "$GCC" = yes; then
3775 CFLAGS="-O2"
3776 else
3777 CFLAGS=
3778 fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_cv_prog_cc_c89=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 struct stat;
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3796 char **p;
3797 int i;
3798 {
3799 return p[i];
3800 }
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3802 {
3803 char *s;
3804 va_list v;
3805 va_start (v,p);
3806 s = g (p, va_arg (v,int));
3807 va_end (v);
3808 return s;
3809 }
3810
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3822 #define FOO(x) 'x'
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829 int argc;
3830 char **argv;
3831 int
3832 main ()
3833 {
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 do
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3855 x)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858 xno)
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3861 *)
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3867
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883 if ${am_cv_prog_cc_c_o+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 # Make sure it works both with $CC and with simple cc.
3898 # Following AC_PROG_CC_C_O, we do the test twice because some
3899 # compilers refuse to overwrite an existing .o file with -o,
3900 # though they will create one.
3901 am_cv_prog_cc_c_o=yes
3902 for am_i in 1 2; do
3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } \
3908 && test -f conftest2.$ac_objext; then
3909 : OK
3910 else
3911 am_cv_prog_cc_c_o=no
3912 break
3913 fi
3914 done
3915 rm -f core conftest*
3916 unset am_i
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3920 if test "$am_cv_prog_cc_c_o" != yes; then
3921 # Losing compiler, so override with the script.
3922 # FIXME: It is wrong to rewrite CC.
3923 # But if we don't then we get into trouble of one sort or another.
3924 # A longer-term fix would be to have automake use am__CC in this case,
3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926 CC="$am_aux_dir/compile $CC"
3927 fi
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934 DEPDIR="${am__leading_dot}deps"
3935
3936 ac_config_commands="$ac_config_commands depfiles"
3937
3938
3939 am_make=${MAKE-make}
3940 cat > confinc << 'END'
3941 am__doit:
3942 @echo this is the am__doit target
3943 .PHONY: am__doit
3944 END
3945 # If we don't find an include directive, just comment out the code.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3948 am__include="#"
3949 am__quote=
3950 _am_result=none
3951 # First try GNU make style include.
3952 echo "include confinc" > confmf
3953 # Ignore all kinds of additional output from 'make'.
3954 case `$am_make -s -f confmf 2> /dev/null` in #(
3955 *the\ am__doit\ target*)
3956 am__include=include
3957 am__quote=
3958 _am_result=GNU
3959 ;;
3960 esac
3961 # Now try BSD make style include.
3962 if test "$am__include" = "#"; then
3963 echo '.include "confinc"' > confmf
3964 case `$am_make -s -f confmf 2> /dev/null` in #(
3965 *the\ am__doit\ target*)
3966 am__include=.include
3967 am__quote="\""
3968 _am_result=BSD
3969 ;;
3970 esac
3971 fi
3972
3973
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3975 $as_echo "$_am_result" >&6; }
3976 rm -f confinc confmf
3977
3978 # Check whether --enable-dependency-tracking was given.
3979 if test "${enable_dependency_tracking+set}" = set; then :
3980 enableval=$enable_dependency_tracking;
3981 fi
3982
3983 if test "x$enable_dependency_tracking" != xno; then
3984 am_depcomp="$ac_aux_dir/depcomp"
3985 AMDEPBACKSLASH='\'
3986 am__nodep='_no'
3987 fi
3988 if test "x$enable_dependency_tracking" != xno; then
3989 AMDEP_TRUE=
3990 AMDEP_FALSE='#'
3991 else
3992 AMDEP_TRUE='#'
3993 AMDEP_FALSE=
3994 fi
3995
3996
3997
3998 depcc="$CC" am_compiler_list=
3999
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4001 $as_echo_n "checking dependency style of $depcc... " >&6; }
4002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006 # We make a subdir and do the tests there. Otherwise we can end up
4007 # making bogus files that we don't know about and never remove. For
4008 # instance it was reported that on HP-UX the gcc test will end up
4009 # making a dummy file named 'D' -- because '-MD' means "put the output
4010 # in D".
4011 rm -rf conftest.dir
4012 mkdir conftest.dir
4013 # Copy depcomp to subdir because otherwise we won't find it if we're
4014 # using a relative directory.
4015 cp "$am_depcomp" conftest.dir
4016 cd conftest.dir
4017 # We will build objects and dependencies in a subdirectory because
4018 # it helps to detect inapplicable dependency modes. For instance
4019 # both Tru64's cc and ICC support -MD to output dependencies as a
4020 # side effect of compilation, but ICC will put the dependencies in
4021 # the current directory while Tru64 will put them in the object
4022 # directory.
4023 mkdir sub
4024
4025 am_cv_CC_dependencies_compiler_type=none
4026 if test "$am_compiler_list" = ""; then
4027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028 fi
4029 am__universal=false
4030 case " $depcc " in #(
4031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4032 esac
4033
4034 for depmode in $am_compiler_list; do
4035 # Setup a source with many dependencies, because some compilers
4036 # like to wrap large dependency lists on column 80 (with \), and
4037 # we should not choose a depcomp mode which is confused by this.
4038 #
4039 # We need to recreate these files for each test, as the compiler may
4040 # overwrite some of them when testing with obscure command lines.
4041 # This happens at least with the AIX C compiler.
4042 : > sub/conftest.c
4043 for i in 1 2 3 4 5 6; do
4044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4045 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4046 # Solaris 10 /bin/sh.
4047 echo '/* dummy */' > sub/conftst$i.h
4048 done
4049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4050
4051 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4052 # mode. It turns out that the SunPro C++ compiler does not properly
4053 # handle '-M -o', and we need to detect this. Also, some Intel
4054 # versions had trouble with output in subdirs.
4055 am__obj=sub/conftest.${OBJEXT-o}
4056 am__minus_obj="-o $am__obj"
4057 case $depmode in
4058 gcc)
4059 # This depmode causes a compiler race in universal mode.
4060 test "$am__universal" = false || continue
4061 ;;
4062 nosideeffect)
4063 # After this tag, mechanisms are not by side-effect, so they'll
4064 # only be used when explicitly requested.
4065 if test "x$enable_dependency_tracking" = xyes; then
4066 continue
4067 else
4068 break
4069 fi
4070 ;;
4071 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4072 # This compiler won't grok '-c -o', but also, the minuso test has
4073 # not run yet. These depmodes are late enough in the game, and
4074 # so weak that their functioning should not be impacted.
4075 am__obj=conftest.${OBJEXT-o}
4076 am__minus_obj=
4077 ;;
4078 none) break ;;
4079 esac
4080 if depmode=$depmode \
4081 source=sub/conftest.c object=$am__obj \
4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4084 >/dev/null 2>conftest.err &&
4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089 # icc doesn't choke on unknown options, it will just issue warnings
4090 # or remarks (even with -Werror). So we grep stderr for any message
4091 # that says an option was ignored or not supported.
4092 # When given -MP, icc 7.0 and 7.1 complain thusly:
4093 # icc: Command line warning: ignoring option '-M'; no argument required
4094 # The diagnosis changed in icc 8.0:
4095 # icc: Command line remark: option '-MP' not supported
4096 if (grep 'ignoring option' conftest.err ||
4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098 am_cv_CC_dependencies_compiler_type=$depmode
4099 break
4100 fi
4101 fi
4102 done
4103
4104 cd ..
4105 rm -rf conftest.dir
4106 else
4107 am_cv_CC_dependencies_compiler_type=none
4108 fi
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114
4115 if
4116 test "x$enable_dependency_tracking" != xno \
4117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4118 am__fastdepCC_TRUE=
4119 am__fastdepCC_FALSE='#'
4120 else
4121 am__fastdepCC_TRUE='#'
4122 am__fastdepCC_FALSE=
4123 fi
4124
4125
4126
4127
4128 # Checks for header files.
4129
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4136 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4137 # On Suns, sometimes $CPP names a directory.
4138 if test -n "$CPP" && test -d "$CPP"; then
4139 CPP=
4140 fi
4141 if test -z "$CPP"; then
4142 if ${ac_cv_prog_CPP+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 # Double quotes because CPP needs to be expanded
4146 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4147 do
4148 ac_preproc_ok=false
4149 for ac_c_preproc_warn_flag in '' yes
4150 do
4151 # Use a header file that comes with gcc, so configuring glibc
4152 # with a fresh cross-compiler works.
4153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154 # <limits.h> exists even on freestanding compilers.
4155 # On the NeXT, cc -E runs the code through the compiler's parser,
4156 # not just through cpp. "Syntax error" is here to catch this case.
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #ifdef __STDC__
4160 # include <limits.h>
4161 #else
4162 # include <assert.h>
4163 #endif
4164 Syntax error
4165 _ACEOF
4166 if ac_fn_c_try_cpp "$LINENO"; then :
4167
4168 else
4169 # Broken: fails on valid input.
4170 continue
4171 fi
4172 rm -f conftest.err conftest.i conftest.$ac_ext
4173
4174 # OK, works on sane cases. Now check whether nonexistent headers
4175 # can be detected and how.
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4179 _ACEOF
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4181 # Broken: success on invalid input.
4182 continue
4183 else
4184 # Passes both tests.
4185 ac_preproc_ok=:
4186 break
4187 fi
4188 rm -f conftest.err conftest.i conftest.$ac_ext
4189
4190 done
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.i conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then :
4194 break
4195 fi
4196
4197 done
4198 ac_cv_prog_CPP=$CPP
4199
4200 fi
4201 CPP=$ac_cv_prog_CPP
4202 else
4203 ac_cv_prog_CPP=$CPP
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4206 $as_echo "$CPP" >&6; }
4207 ac_preproc_ok=false
4208 for ac_c_preproc_warn_flag in '' yes
4209 do
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 #ifdef __STDC__
4219 # include <limits.h>
4220 #else
4221 # include <assert.h>
4222 #endif
4223 Syntax error
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226
4227 else
4228 # Broken: fails on valid input.
4229 continue
4230 fi
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4232
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <ac_nonexistent.h>
4238 _ACEOF
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: success on invalid input.
4241 continue
4242 else
4243 # Passes both tests.
4244 ac_preproc_ok=:
4245 break
4246 fi
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4248
4249 done
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.i conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4253
4254 else
4255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details" "$LINENO" 5; }
4259 fi
4260
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4269 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4270 if ${ac_cv_path_GREP+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -z "$GREP"; then
4274 ac_path_GREP_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_prog in grep ggrep; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4284 as_fn_executable_p "$ac_path_GREP" || continue
4285 # Check for GNU ac_path_GREP and select it if it is found.
4286 # Check for GNU $ac_path_GREP
4287 case `"$ac_path_GREP" --version 2>&1` in
4288 *GNU*)
4289 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4290 *)
4291 ac_count=0
4292 $as_echo_n 0123456789 >"conftest.in"
4293 while :
4294 do
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo 'GREP' >> "conftest.nl"
4299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301 as_fn_arith $ac_count + 1 && ac_count=$as_val
4302 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_GREP="$ac_path_GREP"
4305 ac_path_GREP_max=$ac_count
4306 fi
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4309 done
4310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311 esac
4312
4313 $ac_path_GREP_found && break 3
4314 done
4315 done
4316 done
4317 IFS=$as_save_IFS
4318 if test -z "$ac_cv_path_GREP"; then
4319 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320 fi
4321 else
4322 ac_cv_path_GREP=$GREP
4323 fi
4324
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4327 $as_echo "$ac_cv_path_GREP" >&6; }
4328 GREP="$ac_cv_path_GREP"
4329
4330
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4332 $as_echo_n "checking for egrep... " >&6; }
4333 if ${ac_cv_path_EGREP+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4337 then ac_cv_path_EGREP="$GREP -E"
4338 else
4339 if test -z "$EGREP"; then
4340 ac_path_EGREP_found=false
4341 # Loop through the user's path and test for each of PROGNAME-LIST
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_prog in egrep; do
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4350 as_fn_executable_p "$ac_path_EGREP" || continue
4351 # Check for GNU ac_path_EGREP and select it if it is found.
4352 # Check for GNU $ac_path_EGREP
4353 case `"$ac_path_EGREP" --version 2>&1` in
4354 *GNU*)
4355 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4356 *)
4357 ac_count=0
4358 $as_echo_n 0123456789 >"conftest.in"
4359 while :
4360 do
4361 cat "conftest.in" "conftest.in" >"conftest.tmp"
4362 mv "conftest.tmp" "conftest.in"
4363 cp "conftest.in" "conftest.nl"
4364 $as_echo 'EGREP' >> "conftest.nl"
4365 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4367 as_fn_arith $ac_count + 1 && ac_count=$as_val
4368 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4369 # Best one so far, save it but keep looking for a better one
4370 ac_cv_path_EGREP="$ac_path_EGREP"
4371 ac_path_EGREP_max=$ac_count
4372 fi
4373 # 10*(2^10) chars as input seems more than enough
4374 test $ac_count -gt 10 && break
4375 done
4376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4377 esac
4378
4379 $ac_path_EGREP_found && break 3
4380 done
4381 done
4382 done
4383 IFS=$as_save_IFS
4384 if test -z "$ac_cv_path_EGREP"; then
4385 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386 fi
4387 else
4388 ac_cv_path_EGREP=$EGREP
4389 fi
4390
4391 fi
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4394 $as_echo "$ac_cv_path_EGREP" >&6; }
4395 EGREP="$ac_cv_path_EGREP"
4396
4397
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4399 $as_echo_n "checking for ANSI C header files... " >&6; }
4400 if ${ac_cv_header_stdc+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <stdlib.h>
4406 #include <stdarg.h>
4407 #include <string.h>
4408 #include <float.h>
4409
4410 int
4411 main ()
4412 {
4413
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 ac_cv_header_stdc=yes
4420 else
4421 ac_cv_header_stdc=no
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424
4425 if test $ac_cv_header_stdc = yes; then
4426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <string.h>
4430
4431 _ACEOF
4432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4433 $EGREP "memchr" >/dev/null 2>&1; then :
4434
4435 else
4436 ac_cv_header_stdc=no
4437 fi
4438 rm -f conftest*
4439
4440 fi
4441
4442 if test $ac_cv_header_stdc = yes; then
4443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdlib.h>
4447
4448 _ACEOF
4449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4450 $EGREP "free" >/dev/null 2>&1; then :
4451
4452 else
4453 ac_cv_header_stdc=no
4454 fi
4455 rm -f conftest*
4456
4457 fi
4458
4459 if test $ac_cv_header_stdc = yes; then
4460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4461 if test "$cross_compiling" = yes; then :
4462 :
4463 else
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <ctype.h>
4467 #include <stdlib.h>
4468 #if ((' ' & 0x0FF) == 0x020)
4469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4471 #else
4472 # define ISLOWER(c) \
4473 (('a' <= (c) && (c) <= 'i') \
4474 || ('j' <= (c) && (c) <= 'r') \
4475 || ('s' <= (c) && (c) <= 'z'))
4476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4477 #endif
4478
4479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4480 int
4481 main ()
4482 {
4483 int i;
4484 for (i = 0; i < 256; i++)
4485 if (XOR (islower (i), ISLOWER (i))
4486 || toupper (i) != TOUPPER (i))
4487 return 2;
4488 return 0;
4489 }
4490 _ACEOF
4491 if ac_fn_c_try_run "$LINENO"; then :
4492
4493 else
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4497 conftest.$ac_objext conftest.beam conftest.$ac_ext
4498 fi
4499
4500 fi
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4503 $as_echo "$ac_cv_header_stdc" >&6; }
4504 if test $ac_cv_header_stdc = yes; then
4505
4506 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4507
4508 fi
4509
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4512 $as_echo_n "checking for sin in -lm... " >&6; }
4513 if ${ac_cv_lib_m_sin+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 ac_check_lib_save_LIBS=$LIBS
4517 LIBS="-lm $LIBS"
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 /* Override any GCC internal prototype to avoid an error.
4522 Use char because int might match the return type of a GCC
4523 builtin and then its argument prototype would still apply. */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 char sin ();
4528 int
4529 main ()
4530 {
4531 return sin ();
4532 ;
4533 return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_link "$LINENO"; then :
4537 ac_cv_lib_m_sin=yes
4538 else
4539 ac_cv_lib_m_sin=no
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext conftest.$ac_ext
4543 LIBS=$ac_check_lib_save_LIBS
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4546 $as_echo "$ac_cv_lib_m_sin" >&6; }
4547 if test "x$ac_cv_lib_m_sin" = xyes; then :
4548 cat >>confdefs.h <<_ACEOF
4549 #define HAVE_LIBM 1
4550 _ACEOF
4551
4552 LIBS="-lm $LIBS"
4553
4554 fi
4555
4556 for ac_func in snprintf
4557 do :
4558 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
4559 if test "x$ac_cv_func_snprintf" = xyes; then :
4560 cat >>confdefs.h <<_ACEOF
4561 #define HAVE_SNPRINTF 1
4562 _ACEOF
4563
4564 fi
4565 done
4566
4567
4568 MORE_H5UTILS=""
4569 MORE_H5UTILS_MANS=""
4570
4571 ###########################################################################
4572
4573 if test "${enable_debug}" = "yes"; then
4574 CFLAGS="-g"
4575 fi
4576
4577 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
4578 if test $ac_cv_c_compiler_gnu = yes; then
4579 CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations
4580 fi
4581 fi
4582
4583 ###########################################################################
4584
4585 H5TOPNG=yes
4586 PNG_LIBS=""
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
4589 $as_echo_n "checking for inflate in -lz... " >&6; }
4590 if ${ac_cv_lib_z_inflate+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 ac_check_lib_save_LIBS=$LIBS
4594 LIBS="-lz $LIBS"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 /* Override any GCC internal prototype to avoid an error.
4599 Use char because int might match the return type of a GCC
4600 builtin and then its argument prototype would still apply. */
4601 #ifdef __cplusplus
4602 extern "C"
4603 #endif
4604 char inflate ();
4605 int
4606 main ()
4607 {
4608 return inflate ();
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_link "$LINENO"; then :
4614 ac_cv_lib_z_inflate=yes
4615 else
4616 ac_cv_lib_z_inflate=no
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext \
4619 conftest$ac_exeext conftest.$ac_ext
4620 LIBS=$ac_check_lib_save_LIBS
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
4623 $as_echo "$ac_cv_lib_z_inflate" >&6; }
4624 if test "x$ac_cv_lib_z_inflate" = xyes; then :
4625 ok=yes
4626 else
4627 ok=no
4628 fi
4629
4630 if test "$ok" = "yes"; then
4631 LIBS="-lz $LIBS"
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5
4634 $as_echo_n "checking for png_create_write_struct in -lpng... " >&6; }
4635 if ${ac_cv_lib_png_png_create_write_struct+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-lpng $LIBS"
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642
4643 /* Override any GCC internal prototype to avoid an error.
4644 Use char because int might match the return type of a GCC
4645 builtin and then its argument prototype would still apply. */
4646 #ifdef __cplusplus
4647 extern "C"
4648 #endif
4649 char png_create_write_struct ();
4650 int
4651 main ()
4652 {
4653 return png_create_write_struct ();
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_link "$LINENO"; then :
4659 ac_cv_lib_png_png_create_write_struct=yes
4660 else
4661 ac_cv_lib_png_png_create_write_struct=no
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext conftest.$ac_ext
4665 LIBS=$ac_check_lib_save_LIBS
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5
4668 $as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; }
4669 if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then :
4670 ok=yes
4671 else
4672 ok=no
4673 fi
4674
4675 if test "$ok" = "yes"; then
4676 PNG_LIBS="-lpng"
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libpng: won't be able to compile h5topng" >&5
4679 $as_echo "$as_me: WARNING: can't find libpng: won't be able to compile h5topng" >&2;}
4680 H5TOPNG=no
4681 fi
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libz: won't be able to compile h5topng" >&5
4684 $as_echo "$as_me: WARNING: can't find libz: won't be able to compile h5topng" >&2;}
4685 H5TOPNG=no
4686 fi
4687
4688 if test $H5TOPNG = yes; then
4689 MORE_H5UTILS="h5topng\$(EXEEXT) $MORE_H5UTILS"
4690 H5TOPNG_MAN=doc/man/h5topng.1
4691 fi
4692
4693
4694
4695
4696 ###########################################################################
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evaluator_get_variables in -lmatheval" >&5
4699 $as_echo_n "checking for evaluator_get_variables in -lmatheval... " >&6; }
4700 if ${ac_cv_lib_matheval_evaluator_get_variables+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_check_lib_save_LIBS=$LIBS
4704 LIBS="-lmatheval $LIBS"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707
4708 /* Override any GCC internal prototype to avoid an error.
4709 Use char because int might match the return type of a GCC
4710 builtin and then its argument prototype would still apply. */
4711 #ifdef __cplusplus
4712 extern "C"
4713 #endif
4714 char evaluator_get_variables ();
4715 int
4716 main ()
4717 {
4718 return evaluator_get_variables ();
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_link "$LINENO"; then :
4724 ac_cv_lib_matheval_evaluator_get_variables=yes
4725 else
4726 ac_cv_lib_matheval_evaluator_get_variables=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext \
4729 conftest$ac_exeext conftest.$ac_ext
4730 LIBS=$ac_check_lib_save_LIBS
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_matheval_evaluator_get_variables" >&5
4733 $as_echo "$ac_cv_lib_matheval_evaluator_get_variables" >&6; }
4734 if test "x$ac_cv_lib_matheval_evaluator_get_variables" = xyes; then :
4735 H5MATH=yes
4736 else
4737 H5MATH=no
4738 fi
4739
4740
4741 if test $H5MATH = yes; then
4742 MORE_H5UTILS="h5math\$(EXEEXT) $MORE_H5UTILS"
4743 MORE_H5UTILS_MANS="doc/man/h5math.1 $MORE_H5UTILS_MANS"
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libmatheval: won't be able to compile h5math" >&5
4746 $as_echo "$as_me: WARNING: can't find libmatheval: won't be able to compile h5math" >&2;}
4747 fi
4748
4749 ###########################################################################
4750
4751 # Only build h5fromh4 if we are using a version of HDF5 prior to 1.4, and
4752 # thus don't have the superior h4toh5 utility. Similarly for h5toh4.
4753 # Extract the first word of "h4toh5", so it can be a program name with args.
4754 set dummy h4toh5; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_H4TOH5+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$H4TOH5"; then
4761 ac_cv_prog_H4TOH5="$H4TOH5" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_H4TOH5="h4toh5"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 H4TOH5=$ac_cv_prog_H4TOH5
4781 if test -n "$H4TOH5"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $H4TOH5" >&5
4783 $as_echo "$H4TOH5" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 # Extract the first word of "h5toh4", so it can be a program name with args.
4791 set dummy h5toh4; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_H5TOH4+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$H5TOH4"; then
4798 ac_cv_prog_H5TOH4="$H5TOH4" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_H5TOH4="h5toh4"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 H5TOH4=$ac_cv_prog_H5TOH4
4818 if test -n "$H5TOH4"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $H5TOH4" >&5
4820 $as_echo "$H5TOH4" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827
4828
4829 # Check whether --with-hdf4 was given.
4830 if test "${with_hdf4+set}" = set; then :
4831 withval=$with_hdf4; ok=$withval
4832 else
4833 ok=maybe
4834 fi
4835
4836 if test "x$ok" = xyes; then
4837 H4TOH5=""
4838 H5TOH4=""
4839 elif test "x$ok" = xno; then
4840 H4TOH5="h4toh5"
4841 H5TOH4="h5toh4"
4842 fi
4843
4844 HDF4=no
4845 if test "x$H4TOH5" != xh4toh5 -o "x$H5TOH4" != xh5toh4; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
4847 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
4848 if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 ac_check_lib_save_LIBS=$LIBS
4852 LIBS="-ljpeg $LIBS"
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855
4856 /* Override any GCC internal prototype to avoid an error.
4857 Use char because int might match the return type of a GCC
4858 builtin and then its argument prototype would still apply. */
4859 #ifdef __cplusplus
4860 extern "C"
4861 #endif
4862 char jpeg_start_compress ();
4863 int
4864 main ()
4865 {
4866 return jpeg_start_compress ();
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_c_try_link "$LINENO"; then :
4872 ac_cv_lib_jpeg_jpeg_start_compress=yes
4873 else
4874 ac_cv_lib_jpeg_jpeg_start_compress=no
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext \
4877 conftest$ac_exeext conftest.$ac_ext
4878 LIBS=$ac_check_lib_save_LIBS
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
4881 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
4882 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DFSDgetdata in -ldf" >&5
4884 $as_echo_n "checking for DFSDgetdata in -ldf... " >&6; }
4885 if ${ac_cv_lib_df_DFSDgetdata+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 ac_check_lib_save_LIBS=$LIBS
4889 LIBS="-ldf -ljpeg $LIBS"
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892
4893 /* Override any GCC internal prototype to avoid an error.
4894 Use char because int might match the return type of a GCC
4895 builtin and then its argument prototype would still apply. */
4896 #ifdef __cplusplus
4897 extern "C"
4898 #endif
4899 char DFSDgetdata ();
4900 int
4901 main ()
4902 {
4903 return DFSDgetdata ();
4904 ;
4905 return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_link "$LINENO"; then :
4909 ac_cv_lib_df_DFSDgetdata=yes
4910 else
4911 ac_cv_lib_df_DFSDgetdata=no
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_df_DFSDgetdata" >&5
4918 $as_echo "$ac_cv_lib_df_DFSDgetdata" >&6; }
4919 if test "x$ac_cv_lib_df_DFSDgetdata" = xyes; then :
4920 H4_LIBS="-ldf -ljpeg"; HDF4=yes
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&5
4923 $as_echo "$as_me: WARNING: can't find libdf (HDF4): won't be able to compile h5fromh4 or h4fromh5" >&2;}
4924 fi
4925
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&5
4928 $as_echo "$as_me: WARNING: can't find libjpeg: won't be able to compile h5fromh4 or h4fromh5" >&2;}
4929 fi
4930
4931
4932 if test $HDF4 = yes; then
4933 if test "x$H4TOH5" != xh4toh5; then
4934 MORE_H5UTILS="h5fromh4\$(EXEEXT) $MORE_H5UTILS"
4935 MORE_H5UTILS_MANS="doc/man/h5fromh4.1 $MORE_H5UTILS_MANS"
4936 fi
4937 if test "x$H5TOH4" != xh5toh4; then
4938 MORE_H5UTILS="h4fromh5\$(EXEEXT) $MORE_H5UTILS"
4939 # MORE_H5UTILS_MANS="doc/man/h4fromh5.1 $MORE_H5UTILS_MANS"
4940 fi
4941 fi
4942 fi
4943 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4944 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4945 inttypes.h stdint.h unistd.h
4946 do :
4947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4949 "
4950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4951 cat >>confdefs.h <<_ACEOF
4952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953 _ACEOF
4954
4955 fi
4956
4957 done
4958
4959
4960 for ac_header in hdf.h hdf/hdf.h
4961 do :
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4965 cat >>confdefs.h <<_ACEOF
4966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970
4971 done
4972
4973
4974
4975
4976 ###########################################################################
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
4979 $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
4980 if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 ac_check_lib_save_LIBS=$LIBS
4984 LIBS="-lhdf5 $LIBS"
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987
4988 /* Override any GCC internal prototype to avoid an error.
4989 Use char because int might match the return type of a GCC
4990 builtin and then its argument prototype would still apply. */
4991 #ifdef __cplusplus
4992 extern "C"
4993 #endif
4994 char H5Fopen ();
4995 int
4996 main ()
4997 {
4998 return H5Fopen ();
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_link "$LINENO"; then :
5004 ac_cv_lib_hdf5_H5Fopen=yes
5005 else
5006 ac_cv_lib_hdf5_H5Fopen=no
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext \
5009 conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
5013 $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
5014 if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
5015 LIBS="-lhdf5 $LIBS"
5016 else
5017 as_fn_error $? "hdf5 libraries are required for compilation" "$LINENO" 5
5018 fi
5019
5020
5021 ###########################################################################
5022
5023
5024 # Check whether --with-octave was given.
5025 if test "${with_octave+set}" = set; then :
5026 withval=$with_octave; ok=$withval
5027 else
5028 ok=yes
5029 fi
5030
5031
5032 H5READ=""
5033 OCT_INSTALL_DIR=""
5034
5035 if test "x$ok" = xyes; then
5036 for ac_prog in mkoctfile
5037 do
5038 # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy $ac_prog; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_MKOCTFILE+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$MKOCTFILE"; then
5046 ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_MKOCTFILE="$ac_prog"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059 done
5060 done
5061 IFS=$as_save_IFS
5062
5063 fi
5064 fi
5065 MKOCTFILE=$ac_cv_prog_MKOCTFILE
5066 if test -n "$MKOCTFILE"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
5068 $as_echo "$MKOCTFILE" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075 test -n "$MKOCTFILE" && break
5076 done
5077 test -n "$MKOCTFILE" || MKOCTFILE="echo"
5078
5079 if test "$MKOCTFILE" = "echo"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mkoctfile: won't be able to compile h5read.oct" >&5
5081 $as_echo "$as_me: WARNING: can't find mkoctfile: won't be able to compile h5read.oct" >&2;}
5082 else
5083 # try to find installation directory
5084 for ac_prog in octave
5085 do
5086 # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_OCTAVE+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$OCTAVE"; then
5094 ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_OCTAVE="$ac_prog"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 OCTAVE=$ac_cv_prog_OCTAVE
5114 if test -n "$OCTAVE"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
5116 $as_echo "$OCTAVE" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 test -n "$OCTAVE" && break
5124 done
5125 test -n "$OCTAVE" || OCTAVE="echo"
5126
5127 for ac_prog in octave-config
5128 do
5129 # Extract the first word of "$ac_prog", so it can be a program name with args.
5130 set dummy $ac_prog; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$OCTAVE_CONFIG"; then
5137 ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_OCTAVE_CONFIG="$ac_prog"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
5157 if test -n "$OCTAVE_CONFIG"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
5159 $as_echo "$OCTAVE_CONFIG" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5163 fi
5164
5165
5166 test -n "$OCTAVE_CONFIG" && break
5167 done
5168 test -n "$OCTAVE_CONFIG" || OCTAVE_CONFIG="echo"
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where octave plugins go" >&5
5171 $as_echo_n "checking where octave plugins go... " >&6; }
5172 OCT_INSTALL_DIR=`octave-config --oct-site-dir 2> /dev/null | grep '/'`
5173 if test -z "$OCT_INSTALL_DIR"; then
5174 OCT_INSTALL_DIR=`octave-config --print OCTFILEDIR 2> /dev/null | grep '/'`
5175 fi
5176 if test -z "$OCT_INSTALL_DIR"; then
5177 OCT_INSTALL_DIR=`echo "path" | $OCTAVE -q 2> /dev/null | grep "/oct/" | head -1`
5178 fi
5179 if test -z "$OCT_INSTALL_DIR"; then
5180 OCT_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q 2> /dev/null | tr ':' '\n' | grep "site/oct" | head -1`
5181 fi
5182 if test -n "$OCT_INSTALL_DIR"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCT_INSTALL_DIR" >&5
5184 $as_echo "$OCT_INSTALL_DIR" >&6; }
5185 H5READ=h5read.oct
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
5188 $as_echo "unknown" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find where to install octave plugins: won't be able to compile h5read.oct" >&5
5190 $as_echo "$as_me: WARNING: can't find where to install octave plugins: won't be able to compile h5read.oct" >&2;}
5191 fi
5192 fi
5193 fi
5194
5195
5196
5197
5198 ###########################################################################
5199
5200
5201 # Check whether --with-v5d was given.
5202 if test "${with_v5d+set}" = set; then :
5203 withval=$with_v5d; ok=$withval
5204 else
5205 ok=yes
5206 fi
5207
5208 H5TOV5D=no
5209 V5D_FILES=""
5210 V5D_INCLUDES=""
5211 if test "$ok" = "yes"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v5dCreate in -lv5d" >&5
5213 $as_echo_n "checking for v5dCreate in -lv5d... " >&6; }
5214 if ${ac_cv_lib_v5d_v5dCreate+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 ac_check_lib_save_LIBS=$LIBS
5218 LIBS="-lv5d $LIBS"
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221
5222 /* Override any GCC internal prototype to avoid an error.
5223 Use char because int might match the return type of a GCC
5224 builtin and then its argument prototype would still apply. */
5225 #ifdef __cplusplus
5226 extern "C"
5227 #endif
5228 char v5dCreate ();
5229 int
5230 main ()
5231 {
5232 return v5dCreate ();
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_link "$LINENO"; then :
5238 ac_cv_lib_v5d_v5dCreate=yes
5239 else
5240 ac_cv_lib_v5d_v5dCreate=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext \
5243 conftest$ac_exeext conftest.$ac_ext
5244 LIBS=$ac_check_lib_save_LIBS
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v5d_v5dCreate" >&5
5247 $as_echo "$ac_cv_lib_v5d_v5dCreate" >&6; }
5248 if test "x$ac_cv_lib_v5d_v5dCreate" = xyes; then :
5249 V5D_FILES="-lv5d"; H5TOV5D=yes
5250 fi
5251
5252 for ac_header in vis5d/v5d.h
5253 do :
5254 ac_fn_c_check_header_mongrel "$LINENO" "vis5d/v5d.h" "ac_cv_header_vis5d_v5d_h" "$ac_includes_default"
5255 if test "x$ac_cv_header_vis5d_v5d_h" = xyes; then :
5256 cat >>confdefs.h <<_ACEOF
5257 #define HAVE_VIS5D_V5D_H 1
5258 _ACEOF
5259
5260 fi
5261
5262 done
5263
5264 ac_fn_c_check_header_mongrel "$LINENO" "vis5d+/v5d.h" "ac_cv_header_vis5dp_v5d_h" "$ac_includes_default"
5265 if test "x$ac_cv_header_vis5dp_v5d_h" = xyes; then :
5266
5267 $as_echo "#define HAVE_VIS5Dp_V5D_H 1" >>confdefs.h
5268
5269 fi
5270
5271
5272 elif test "$ok" != "no"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vis5d object files and headers" >&5
5274 $as_echo_n "checking for Vis5d object files and headers... " >&6; }
5275 if test -r "$ok/src/v5d.o" -a -r "$ok/src/binio.o" -a -r "$ok/src/v5d.h" -a -r "$ok/src/binio.h"; then
5276 V5D_FILES="$ok/src/v5d.o $ok/src/binio.o"
5277 V5D_INCLUDES="-I$ok/src"
5278 elif test -r "$ok/v5d.o" -a -r "$ok/binio.o" -a -r "$ok/v5d.h" -a -r "$ok/binio.h"; then
5279 V5D_FILES="$ok/v5d.o $ok/binio.o"
5280 V5D_INCLUDES="-I$ok"
5281 fi
5282 if test -z "$V5D_FILES"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5284 $as_echo "not found" >&6; }
5285 as_fn_error $? "couldn't read Vis5D object files in $ok" "$LINENO" 5
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
5288 $as_echo "found" >&6; }
5289 fi
5290 H5TOV5D=yes
5291 fi
5292 if test $H5TOV5D = yes; then
5293 MORE_H5UTILS="h5tov5d\$(EXEEXT) $MORE_H5UTILS"
5294 MORE_H5UTILS_MANS="doc/man/h5tov5d.1 $MORE_H5UTILS_MANS"
5295 fi
5296
5297
5298
5299 ###########################################################################
5300
5301 for ac_header in arpa/inet.h netinet/in.h stdint.h inttypes.h
5302 do :
5303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5306 cat >>confdefs.h <<_ACEOF
5307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5308 _ACEOF
5309
5310 fi
5311
5312 done
5313
5314 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5315 if test "x$ac_cv_type_uint16_t" = xyes; then :
5316
5317 cat >>confdefs.h <<_ACEOF
5318 #define HAVE_UINT16_T 1
5319 _ACEOF
5320
5321
5322 fi
5323 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5324 if test "x$ac_cv_type_uint32_t" = xyes; then :
5325
5326 cat >>confdefs.h <<_ACEOF
5327 #define HAVE_UINT32_T 1
5328 _ACEOF
5329
5330
5331 fi
5332
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htons" >&5
5335 $as_echo_n "checking for htons... " >&6; }
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 #if defined(HAVE_ARPA_INET_H)
5339 #include <arpa/inet.h>
5340 #elif defined(HAVE_NETINET_IN_H)
5341 #include <netinet/in.h>
5342 #endif
5343 int
5344 main ()
5345 {
5346 unsigned short i; htons(i);
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_link "$LINENO"; then :
5352 htons=yes
5353
5354 $as_echo "#define HAVE_HTONS 1" >>confdefs.h
5355
5356 else
5357 htons=no
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $htons" >&5
5362 $as_echo "$htons" >&6; }
5363
5364 # The cast to long int works around a bug in the HP C Compiler
5365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5367 # This bug is HP SR number 8606223364.
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5369 $as_echo_n "checking size of float... " >&6; }
5370 if ${ac_cv_sizeof_float+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5374
5375 else
5376 if test "$ac_cv_type_float" = yes; then
5377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5379 as_fn_error 77 "cannot compute sizeof (float)
5380 See \`config.log' for more details" "$LINENO" 5; }
5381 else
5382 ac_cv_sizeof_float=0
5383 fi
5384 fi
5385
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5388 $as_echo "$ac_cv_sizeof_float" >&6; }
5389
5390
5391
5392 cat >>confdefs.h <<_ACEOF
5393 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5394 _ACEOF
5395
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl" >&5
5399 $as_echo_n "checking for htonl... " >&6; }
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #if defined(HAVE_ARPA_INET_H)
5403 #include <arpa/inet.h>
5404 #elif defined(HAVE_NETINET_IN_H)
5405 #include <netinet/in.h>
5406 #endif
5407 int
5408 main ()
5409 {
5410 unsigned long i; htonl(i);
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_link "$LINENO"; then :
5416 htonl=yes
5417
5418 $as_echo "#define HAVE_HTONL 1" >>confdefs.h
5419
5420 else
5421 htonl=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $htonl" >&5
5426 $as_echo "$htonl" >&6; }
5427
5428 if test "x$htons" != xyes -o "x$htonl" != xyes; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5430 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5431 if ${ac_cv_c_bigendian+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 ac_cv_c_bigendian=unknown
5435 # See if we're dealing with a universal compiler.
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #ifndef __APPLE_CC__
5439 not a universal capable compiler
5440 #endif
5441 typedef int dummy;
5442
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445
5446 # Check for potential -arch flags. It is not universal unless
5447 # there are at least two -arch flags with different values.
5448 ac_arch=
5449 ac_prev=
5450 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5451 if test -n "$ac_prev"; then
5452 case $ac_word in
5453 i?86 | x86_64 | ppc | ppc64)
5454 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5455 ac_arch=$ac_word
5456 else
5457 ac_cv_c_bigendian=universal
5458 break
5459 fi
5460 ;;
5461 esac
5462 ac_prev=
5463 elif test "x$ac_word" = "x-arch"; then
5464 ac_prev=arch
5465 fi
5466 done
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 if test $ac_cv_c_bigendian = unknown; then
5470 # See if sys/param.h defines the BYTE_ORDER macro.
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 #include <sys/types.h>
5474 #include <sys/param.h>
5475
5476 int
5477 main ()
5478 {
5479 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5480 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5481 && LITTLE_ENDIAN)
5482 bogus endian macros
5483 #endif
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_c_try_compile "$LINENO"; then :
5490 # It does; now see whether it defined to BIG_ENDIAN or not.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #include <sys/types.h>
5494 #include <sys/param.h>
5495
5496 int
5497 main ()
5498 {
5499 #if BYTE_ORDER != BIG_ENDIAN
5500 not big endian
5501 #endif
5502
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_c_bigendian=yes
5509 else
5510 ac_cv_c_bigendian=no
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 fi
5516 if test $ac_cv_c_bigendian = unknown; then
5517 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #include <limits.h>
5521
5522 int
5523 main ()
5524 {
5525 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5526 bogus endian macros
5527 #endif
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 # It does; now see whether it defined to _BIG_ENDIAN or not.
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <limits.h>
5538
5539 int
5540 main ()
5541 {
5542 #ifndef _BIG_ENDIAN
5543 not big endian
5544 #endif
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_c_bigendian=yes
5552 else
5553 ac_cv_c_bigendian=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 if test $ac_cv_c_bigendian = unknown; then
5560 # Compile a test program.
5561 if test "$cross_compiling" = yes; then :
5562 # Try to guess by grepping values from an object file.
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 short int ascii_mm[] =
5566 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5567 short int ascii_ii[] =
5568 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5569 int use_ascii (int i) {
5570 return ascii_mm[i] + ascii_ii[i];
5571 }
5572 short int ebcdic_ii[] =
5573 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5574 short int ebcdic_mm[] =
5575 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5576 int use_ebcdic (int i) {
5577 return ebcdic_mm[i] + ebcdic_ii[i];
5578 }
5579 extern int foo;
5580
5581 int
5582 main ()
5583 {
5584 return use_ascii (foo) == use_ebcdic (foo);
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5591 ac_cv_c_bigendian=yes
5592 fi
5593 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5594 if test "$ac_cv_c_bigendian" = unknown; then
5595 ac_cv_c_bigendian=no
5596 else
5597 # finding both strings is unlikely to happen, but who knows?
5598 ac_cv_c_bigendian=unknown
5599 fi
5600 fi
5601 fi
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 int
5608 main ()
5609 {
5610
5611 /* Are we little or big endian? From Harbison&Steele. */
5612 union
5613 {
5614 long int l;
5615 char c[sizeof (long int)];
5616 } u;
5617 u.l = 1;
5618 return u.c[sizeof (long int) - 1] == 1;
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 if ac_fn_c_try_run "$LINENO"; then :
5625 ac_cv_c_bigendian=no
5626 else
5627 ac_cv_c_bigendian=yes
5628 fi
5629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5630 conftest.$ac_objext conftest.beam conftest.$ac_ext
5631 fi
5632
5633 fi
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5636 $as_echo "$ac_cv_c_bigendian" >&6; }
5637 case $ac_cv_c_bigendian in #(
5638 yes)
5639 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5640 ;; #(
5641 no)
5642 ;; #(
5643 universal)
5644
5645 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5646
5647 ;; #(
5648 *)
5649 as_fn_error $? "unknown endianness
5650 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5651 esac
5652
5653 fi
5654
5655 ###########################################################################
5656
5657 # Store datadir (e.g. /usr/local/share) in DATADIR #define.
5658
5659 # Requires some hackery to actually get this value...
5660 save_prefix=$prefix
5661 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5662 eval datadir_val=$datadir
5663 eval datadir_val=$datadir_val
5664 prefix=$save_prefix
5665
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define DATADIR "$datadir_val"
5669 _ACEOF
5670
5671
5672
5673 ###########################################################################
5674
5675
5676 ###########################################################################
5677
5678 ac_config_files="$ac_config_files Makefile doc/man/h5topng.1"
5679
5680 cat >confcache <<\_ACEOF
5681 # This file is a shell script that caches the results of configure
5682 # tests run on this system so they can be shared between configure
5683 # scripts and configure runs, see configure's option --config-cache.
5684 # It is not useful on other systems. If it contains results you don't
5685 # want to keep, you may remove or edit it.
5686 #
5687 # config.status only pays attention to the cache file if you give it
5688 # the --recheck option to rerun configure.
5689 #
5690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5692 # following values.
5693
5694 _ACEOF
5695
5696 # The following way of writing the cache mishandles newlines in values,
5697 # but we know of no workaround that is simple, portable, and efficient.
5698 # So, we kill variables containing newlines.
5699 # Ultrix sh set writes to stderr and can't be redirected directly,
5700 # and sets the high bit in the cache file unless we assign to the vars.
5701 (
5702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5703 eval ac_val=\$$ac_var
5704 case $ac_val in #(
5705 *${as_nl}*)
5706 case $ac_var in #(
5707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5709 esac
5710 case $ac_var in #(
5711 _ | IFS | as_nl) ;; #(
5712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5713 *) { eval $ac_var=; unset $ac_var;} ;;
5714 esac ;;
5715 esac
5716 done
5717
5718 (set) 2>&1 |
5719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5720 *${as_nl}ac_space=\ *)
5721 # `set' does not quote correctly, so add quotes: double-quote
5722 # substitution turns \\\\ into \\, and sed turns \\ into \.
5723 sed -n \
5724 "s/'/'\\\\''/g;
5725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5726 ;; #(
5727 *)
5728 # `set' quotes correctly as required by POSIX, so do not add quotes.
5729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5730 ;;
5731 esac |
5732 sort
5733 ) |
5734 sed '
5735 /^ac_cv_env_/b end
5736 t clear
5737 :clear
5738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5739 t end
5740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5741 :end' >>confcache
5742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5743 if test -w "$cache_file"; then
5744 if test "x$cache_file" != "x/dev/null"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5746 $as_echo "$as_me: updating cache $cache_file" >&6;}
5747 if test ! -f "$cache_file" || test -h "$cache_file"; then
5748 cat confcache >"$cache_file"
5749 else
5750 case $cache_file in #(
5751 */* | ?:*)
5752 mv -f confcache "$cache_file"$$ &&
5753 mv -f "$cache_file"$$ "$cache_file" ;; #(
5754 *)
5755 mv -f confcache "$cache_file" ;;
5756 esac
5757 fi
5758 fi
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5762 fi
5763 fi
5764 rm -f confcache
5765
5766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5767 # Let make expand exec_prefix.
5768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5769
5770 DEFS=-DHAVE_CONFIG_H
5771
5772 ac_libobjs=
5773 ac_ltlibobjs=
5774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5775 # 1. Remove the extension, and $U if already installed.
5776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5779 # will be set to the directory where LIBOBJS objects are built.
5780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5782 done
5783 LIBOBJS=$ac_libobjs
5784
5785 LTLIBOBJS=$ac_ltlibobjs
5786
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5789 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5790 if test -n "$am_sleep_pid"; then
5791 # Hide warnings about reused PIDs.
5792 wait $am_sleep_pid 2>/dev/null
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5795 $as_echo "done" >&6; }
5796 if test -n "$EXEEXT"; then
5797 am__EXEEXT_TRUE=
5798 am__EXEEXT_FALSE='#'
5799 else
5800 am__EXEEXT_TRUE='#'
5801 am__EXEEXT_FALSE=
5802 fi
5803
5804 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5805 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5807 fi
5808 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5809 as_fn_error $? "conditional \"AMDEP\" was never defined.
5810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5811 fi
5812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5813 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5815 fi
5816
5817
5818 : "${CONFIG_STATUS=./config.status}"
5819 ac_write_fail=0
5820 ac_clean_files_save=$ac_clean_files
5821 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5823 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5824 as_write_fail=0
5825 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5826 #! $SHELL
5827 # Generated by $as_me.
5828 # Run this file to recreate the current configuration.
5829 # Compiler output produced by configure, useful for debugging
5830 # configure, is in config.log if it exists.
5831
5832 debug=false
5833 ac_cs_recheck=false
5834 ac_cs_silent=false
5835
5836 SHELL=\${CONFIG_SHELL-$SHELL}
5837 export SHELL
5838 _ASEOF
5839 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5840 ## -------------------- ##
5841 ## M4sh Initialization. ##
5842 ## -------------------- ##
5843
5844 # Be more Bourne compatible
5845 DUALCASE=1; export DUALCASE # for MKS sh
5846 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5847 emulate sh
5848 NULLCMD=:
5849 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5850 # is contrary to our usage. Disable this feature.
5851 alias -g '${1+"$@"}'='"$@"'
5852 setopt NO_GLOB_SUBST
5853 else
5854 case `(set -o) 2>/dev/null` in #(
5855 *posix*) :
5856 set -o posix ;; #(
5857 *) :
5858 ;;
5859 esac
5860 fi
5861
5862
5863 as_nl='
5864 '
5865 export as_nl
5866 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5867 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5868 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5870 # Prefer a ksh shell builtin over an external printf program on Solaris,
5871 # but without wasting forks for bash or zsh.
5872 if test -z "$BASH_VERSION$ZSH_VERSION" \
5873 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5874 as_echo='print -r --'
5875 as_echo_n='print -rn --'
5876 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5877 as_echo='printf %s\n'
5878 as_echo_n='printf %s'
5879 else
5880 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5881 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5882 as_echo_n='/usr/ucb/echo -n'
5883 else
5884 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5885 as_echo_n_body='eval
5886 arg=$1;
5887 case $arg in #(
5888 *"$as_nl"*)
5889 expr "X$arg" : "X\\(.*\\)$as_nl";
5890 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5891 esac;
5892 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5893 '
5894 export as_echo_n_body
5895 as_echo_n='sh -c $as_echo_n_body as_echo'
5896 fi
5897 export as_echo_body
5898 as_echo='sh -c $as_echo_body as_echo'
5899 fi
5900
5901 # The user is always right.
5902 if test "${PATH_SEPARATOR+set}" != set; then
5903 PATH_SEPARATOR=:
5904 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5905 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5906 PATH_SEPARATOR=';'
5907 }
5908 fi
5909
5910
5911 # IFS
5912 # We need space, tab and new line, in precisely that order. Quoting is
5913 # there to prevent editors from complaining about space-tab.
5914 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5915 # splitting by setting IFS to empty value.)
5916 IFS=" "" $as_nl"
5917
5918 # Find who we are. Look in the path if we contain no directory separator.
5919 as_myself=
5920 case $0 in #((
5921 *[\\/]* ) as_myself=$0 ;;
5922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5928 done
5929 IFS=$as_save_IFS
5930
5931 ;;
5932 esac
5933 # We did not find ourselves, most probably we were run as `sh COMMAND'
5934 # in which case we are not to be found in the path.
5935 if test "x$as_myself" = x; then
5936 as_myself=$0
5937 fi
5938 if test ! -f "$as_myself"; then
5939 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5940 exit 1
5941 fi
5942
5943 # Unset variables that we do not need and which cause bugs (e.g. in
5944 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5945 # suppresses any "Segmentation fault" message there. '((' could
5946 # trigger a bug in pdksh 5.2.14.
5947 for as_var in BASH_ENV ENV MAIL MAILPATH
5948 do eval test x\${$as_var+set} = xset \
5949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5950 done
5951 PS1='$ '
5952 PS2='> '
5953 PS4='+ '
5954
5955 # NLS nuisances.
5956 LC_ALL=C
5957 export LC_ALL
5958 LANGUAGE=C
5959 export LANGUAGE
5960
5961 # CDPATH.
5962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5963
5964
5965 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5966 # ----------------------------------------
5967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5969 # script with STATUS, using 1 if that was 0.
5970 as_fn_error ()
5971 {
5972 as_status=$1; test $as_status -eq 0 && as_status=1
5973 if test "$4"; then
5974 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5975 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5976 fi
5977 $as_echo "$as_me: error: $2" >&2
5978 as_fn_exit $as_status
5979 } # as_fn_error
5980
5981
5982 # as_fn_set_status STATUS
5983 # -----------------------
5984 # Set $? to STATUS, without forking.
5985 as_fn_set_status ()
5986 {
5987 return $1
5988 } # as_fn_set_status
5989
5990 # as_fn_exit STATUS
5991 # -----------------
5992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5993 as_fn_exit ()
5994 {
5995 set +e
5996 as_fn_set_status $1
5997 exit $1
5998 } # as_fn_exit
5999
6000 # as_fn_unset VAR
6001 # ---------------
6002 # Portably unset VAR.
6003 as_fn_unset ()
6004 {
6005 { eval $1=; unset $1;}
6006 }
6007 as_unset=as_fn_unset
6008 # as_fn_append VAR VALUE
6009 # ----------------------
6010 # Append the text in VALUE to the end of the definition contained in VAR. Take
6011 # advantage of any shell optimizations that allow amortized linear growth over
6012 # repeated appends, instead of the typical quadratic growth present in naive
6013 # implementations.
6014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6015 eval 'as_fn_append ()
6016 {
6017 eval $1+=\$2
6018 }'
6019 else
6020 as_fn_append ()
6021 {
6022 eval $1=\$$1\$2
6023 }
6024 fi # as_fn_append
6025
6026 # as_fn_arith ARG...
6027 # ------------------
6028 # Perform arithmetic evaluation on the ARGs, and store the result in the
6029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6030 # must be portable across $(()) and expr.
6031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6032 eval 'as_fn_arith ()
6033 {
6034 as_val=$(( $* ))
6035 }'
6036 else
6037 as_fn_arith ()
6038 {
6039 as_val=`expr "$@" || test $? -eq 1`
6040 }
6041 fi # as_fn_arith
6042
6043
6044 if expr a : '\(a\)' >/dev/null 2>&1 &&
6045 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6046 as_expr=expr
6047 else
6048 as_expr=false
6049 fi
6050
6051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6052 as_basename=basename
6053 else
6054 as_basename=false
6055 fi
6056
6057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6058 as_dirname=dirname
6059 else
6060 as_dirname=false
6061 fi
6062
6063 as_me=`$as_basename -- "$0" ||
6064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6065 X"$0" : 'X\(//\)$' \| \
6066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6067 $as_echo X/"$0" |
6068 sed '/^.*\/\([^/][^/]*\)\/*$/{
6069 s//\1/
6070 q
6071 }
6072 /^X\/\(\/\/\)$/{
6073 s//\1/
6074 q
6075 }
6076 /^X\/\(\/\).*/{
6077 s//\1/
6078 q
6079 }
6080 s/.*/./; q'`
6081
6082 # Avoid depending upon Character Ranges.
6083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6086 as_cr_digits='0123456789'
6087 as_cr_alnum=$as_cr_Letters$as_cr_digits
6088
6089 ECHO_C= ECHO_N= ECHO_T=
6090 case `echo -n x` in #(((((
6091 -n*)
6092 case `echo 'xy\c'` in
6093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6094 xy) ECHO_C='\c';;
6095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6096 ECHO_T=' ';;
6097 esac;;
6098 *)
6099 ECHO_N='-n';;
6100 esac
6101
6102 rm -f conf$$ conf$$.exe conf$$.file
6103 if test -d conf$$.dir; then
6104 rm -f conf$$.dir/conf$$.file
6105 else
6106 rm -f conf$$.dir
6107 mkdir conf$$.dir 2>/dev/null
6108 fi
6109 if (echo >conf$$.file) 2>/dev/null; then
6110 if ln -s conf$$.file conf$$ 2>/dev/null; then
6111 as_ln_s='ln -s'
6112 # ... but there are two gotchas:
6113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6115 # In both cases, we have to default to `cp -pR'.
6116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6117 as_ln_s='cp -pR'
6118 elif ln conf$$.file conf$$ 2>/dev/null; then
6119 as_ln_s=ln
6120 else
6121 as_ln_s='cp -pR'
6122 fi
6123 else
6124 as_ln_s='cp -pR'
6125 fi
6126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6127 rmdir conf$$.dir 2>/dev/null
6128
6129
6130 # as_fn_mkdir_p
6131 # -------------
6132 # Create "$as_dir" as a directory, including parents if necessary.
6133 as_fn_mkdir_p ()
6134 {
6135
6136 case $as_dir in #(
6137 -*) as_dir=./$as_dir;;
6138 esac
6139 test -d "$as_dir" || eval $as_mkdir_p || {
6140 as_dirs=
6141 while :; do
6142 case $as_dir in #(
6143 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6144 *) as_qdir=$as_dir;;
6145 esac
6146 as_dirs="'$as_qdir' $as_dirs"
6147 as_dir=`$as_dirname -- "$as_dir" ||
6148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6149 X"$as_dir" : 'X\(//\)[^/]' \| \
6150 X"$as_dir" : 'X\(//\)$' \| \
6151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6152 $as_echo X"$as_dir" |
6153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6154 s//\1/
6155 q
6156 }
6157 /^X\(\/\/\)[^/].*/{
6158 s//\1/
6159 q
6160 }
6161 /^X\(\/\/\)$/{
6162 s//\1/
6163 q
6164 }
6165 /^X\(\/\).*/{
6166 s//\1/
6167 q
6168 }
6169 s/.*/./; q'`
6170 test -d "$as_dir" && break
6171 done
6172 test -z "$as_dirs" || eval "mkdir $as_dirs"
6173 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6174
6175
6176 } # as_fn_mkdir_p
6177 if mkdir -p . 2>/dev/null; then
6178 as_mkdir_p='mkdir -p "$as_dir"'
6179 else
6180 test -d ./-p && rmdir ./-p
6181 as_mkdir_p=false
6182 fi
6183
6184
6185 # as_fn_executable_p FILE
6186 # -----------------------
6187 # Test if FILE is an executable regular file.
6188 as_fn_executable_p ()
6189 {
6190 test -f "$1" && test -x "$1"
6191 } # as_fn_executable_p
6192 as_test_x='test -x'
6193 as_executable_p=as_fn_executable_p
6194
6195 # Sed expression to map a string onto a valid CPP name.
6196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6197
6198 # Sed expression to map a string onto a valid variable name.
6199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6200
6201
6202 exec 6>&1
6203 ## ----------------------------------- ##
6204 ## Main body of $CONFIG_STATUS script. ##
6205 ## ----------------------------------- ##
6206 _ASEOF
6207 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6208
6209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6210 # Save the log message, to keep $0 and so on meaningful, and to
6211 # report actual input values of CONFIG_FILES etc. instead of their
6212 # values after options handling.
6213 ac_log="
6214 This file was extended by h5utils $as_me 1.13.1, which was
6215 generated by GNU Autoconf 2.69. Invocation command line was
6216
6217 CONFIG_FILES = $CONFIG_FILES
6218 CONFIG_HEADERS = $CONFIG_HEADERS
6219 CONFIG_LINKS = $CONFIG_LINKS
6220 CONFIG_COMMANDS = $CONFIG_COMMANDS
6221 $ $0 $@
6222
6223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6224 "
6225
6226 _ACEOF
6227
6228 case $ac_config_files in *"
6229 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6230 esac
6231
6232 case $ac_config_headers in *"
6233 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6234 esac
6235
6236
6237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6238 # Files that config.status was made for.
6239 config_files="$ac_config_files"
6240 config_headers="$ac_config_headers"
6241 config_commands="$ac_config_commands"
6242
6243 _ACEOF
6244
6245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6246 ac_cs_usage="\
6247 \`$as_me' instantiates files and other configuration actions
6248 from templates according to the current configuration. Unless the files
6249 and actions are specified as TAGs, all are instantiated by default.
6250
6251 Usage: $0 [OPTION]... [TAG]...
6252
6253 -h, --help print this help, then exit
6254 -V, --version print version number and configuration settings, then exit
6255 --config print configuration, then exit
6256 -q, --quiet, --silent
6257 do not print progress messages
6258 -d, --debug don't remove temporary files
6259 --recheck update $as_me by reconfiguring in the same conditions
6260 --file=FILE[:TEMPLATE]
6261 instantiate the configuration file FILE
6262 --header=FILE[:TEMPLATE]
6263 instantiate the configuration header FILE
6264
6265 Configuration files:
6266 $config_files
6267
6268 Configuration headers:
6269 $config_headers
6270
6271 Configuration commands:
6272 $config_commands
6273
6274 Report bugs to <stevenj@alum.mit.edu>."
6275
6276 _ACEOF
6277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6278 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6279 ac_cs_version="\\
6280 h5utils config.status 1.13.1
6281 configured by $0, generated by GNU Autoconf 2.69,
6282 with options \\"\$ac_cs_config\\"
6283
6284 Copyright (C) 2012 Free Software Foundation, Inc.
6285 This config.status script is free software; the Free Software Foundation
6286 gives unlimited permission to copy, distribute and modify it."
6287
6288 ac_pwd='$ac_pwd'
6289 srcdir='$srcdir'
6290 INSTALL='$INSTALL'
6291 MKDIR_P='$MKDIR_P'
6292 AWK='$AWK'
6293 test -n "\$AWK" || AWK=awk
6294 _ACEOF
6295
6296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6297 # The default lists apply if the user does not specify any file.
6298 ac_need_defaults=:
6299 while test $# != 0
6300 do
6301 case $1 in
6302 --*=?*)
6303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6305 ac_shift=:
6306 ;;
6307 --*=)
6308 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6309 ac_optarg=
6310 ac_shift=:
6311 ;;
6312 *)
6313 ac_option=$1
6314 ac_optarg=$2
6315 ac_shift=shift
6316 ;;
6317 esac
6318
6319 case $ac_option in
6320 # Handling of the options.
6321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6322 ac_cs_recheck=: ;;
6323 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6324 $as_echo "$ac_cs_version"; exit ;;
6325 --config | --confi | --conf | --con | --co | --c )
6326 $as_echo "$ac_cs_config"; exit ;;
6327 --debug | --debu | --deb | --de | --d | -d )
6328 debug=: ;;
6329 --file | --fil | --fi | --f )
6330 $ac_shift
6331 case $ac_optarg in
6332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6333 '') as_fn_error $? "missing file argument" ;;
6334 esac
6335 as_fn_append CONFIG_FILES " '$ac_optarg'"
6336 ac_need_defaults=false;;
6337 --header | --heade | --head | --hea )
6338 $ac_shift
6339 case $ac_optarg in
6340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6341 esac
6342 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6343 ac_need_defaults=false;;
6344 --he | --h)
6345 # Conflict between --help and --header
6346 as_fn_error $? "ambiguous option: \`$1'
6347 Try \`$0 --help' for more information.";;
6348 --help | --hel | -h )
6349 $as_echo "$ac_cs_usage"; exit ;;
6350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6352 ac_cs_silent=: ;;
6353
6354 # This is an error.
6355 -*) as_fn_error $? "unrecognized option: \`$1'
6356 Try \`$0 --help' for more information." ;;
6357
6358 *) as_fn_append ac_config_targets " $1"
6359 ac_need_defaults=false ;;
6360
6361 esac
6362 shift
6363 done
6364
6365 ac_configure_extra_args=
6366
6367 if $ac_cs_silent; then
6368 exec 6>/dev/null
6369 ac_configure_extra_args="$ac_configure_extra_args --silent"
6370 fi
6371
6372 _ACEOF
6373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6374 if \$ac_cs_recheck; then
6375 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6376 shift
6377 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6378 CONFIG_SHELL='$SHELL'
6379 export CONFIG_SHELL
6380 exec "\$@"
6381 fi
6382
6383 _ACEOF
6384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6385 exec 5>>config.log
6386 {
6387 echo
6388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6389 ## Running $as_me. ##
6390 _ASBOX
6391 $as_echo "$ac_log"
6392 } >&5
6393
6394 _ACEOF
6395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6396 #
6397 # INIT-COMMANDS
6398 #
6399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6400
6401 _ACEOF
6402
6403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6404
6405 # Handling of arguments.
6406 for ac_config_target in $ac_config_targets
6407 do
6408 case $ac_config_target in
6409 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6410 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6411 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6412 "doc/man/h5topng.1") CONFIG_FILES="$CONFIG_FILES doc/man/h5topng.1" ;;
6413
6414 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6415 esac
6416 done
6417
6418
6419 # If the user did not use the arguments to specify the items to instantiate,
6420 # then the envvar interface is used. Set only those that are not.
6421 # We use the long form for the default assignment because of an extremely
6422 # bizarre bug on SunOS 4.1.3.
6423 if $ac_need_defaults; then
6424 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6425 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6426 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6427 fi
6428
6429 # Have a temporary directory for convenience. Make it in the build tree
6430 # simply because there is no reason against having it here, and in addition,
6431 # creating and moving files from /tmp can sometimes cause problems.
6432 # Hook for its removal unless debugging.
6433 # Note that there is a small window in which the directory will not be cleaned:
6434 # after its creation but before its name has been assigned to `$tmp'.
6435 $debug ||
6436 {
6437 tmp= ac_tmp=
6438 trap 'exit_status=$?
6439 : "${ac_tmp:=$tmp}"
6440 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6441 ' 0
6442 trap 'as_fn_exit 1' 1 2 13 15
6443 }
6444 # Create a (secure) tmp directory for tmp files.
6445
6446 {
6447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6448 test -d "$tmp"
6449 } ||
6450 {
6451 tmp=./conf$$-$RANDOM
6452 (umask 077 && mkdir "$tmp")
6453 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6454 ac_tmp=$tmp
6455
6456 # Set up the scripts for CONFIG_FILES section.
6457 # No need to generate them if there are no CONFIG_FILES.
6458 # This happens for instance with `./config.status config.h'.
6459 if test -n "$CONFIG_FILES"; then
6460
6461
6462 ac_cr=`echo X | tr X '\015'`
6463 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6464 # But we know of no other shell where ac_cr would be empty at this
6465 # point, so we can use a bashism as a fallback.
6466 if test "x$ac_cr" = x; then
6467 eval ac_cr=\$\'\\r\'
6468 fi
6469 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6470 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6471 ac_cs_awk_cr='\\r'
6472 else
6473 ac_cs_awk_cr=$ac_cr
6474 fi
6475
6476 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6477 _ACEOF
6478
6479
6480 {
6481 echo "cat >conf$$subs.awk <<_ACEOF" &&
6482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6483 echo "_ACEOF"
6484 } >conf$$subs.sh ||
6485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6487 ac_delim='%!_!# '
6488 for ac_last_try in false false false false false :; do
6489 . ./conf$$subs.sh ||
6490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6491
6492 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6493 if test $ac_delim_n = $ac_delim_num; then
6494 break
6495 elif $ac_last_try; then
6496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6497 else
6498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6499 fi
6500 done
6501 rm -f conf$$subs.sh
6502
6503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6504 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6505 _ACEOF
6506 sed -n '
6507 h
6508 s/^/S["/; s/!.*/"]=/
6509 p
6510 g
6511 s/^[^!]*!//
6512 :repl
6513 t repl
6514 s/'"$ac_delim"'$//
6515 t delim
6516 :nl
6517 h
6518 s/\(.\{148\}\)..*/\1/
6519 t more1
6520 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6521 p
6522 n
6523 b repl
6524 :more1
6525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6526 p
6527 g
6528 s/.\{148\}//
6529 t nl
6530 :delim
6531 h
6532 s/\(.\{148\}\)..*/\1/
6533 t more2
6534 s/["\\]/\\&/g; s/^/"/; s/$/"/
6535 p
6536 b
6537 :more2
6538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6539 p
6540 g
6541 s/.\{148\}//
6542 t delim
6543 ' <conf$$subs.awk | sed '
6544 /^[^""]/{
6545 N
6546 s/\n//
6547 }
6548 ' >>$CONFIG_STATUS || ac_write_fail=1
6549 rm -f conf$$subs.awk
6550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6551 _ACAWK
6552 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6553 for (key in S) S_is_set[key] = 1
6554 FS = ""
6555
6556 }
6557 {
6558 line = $ 0
6559 nfields = split(line, field, "@")
6560 substed = 0
6561 len = length(field[1])
6562 for (i = 2; i < nfields; i++) {
6563 key = field[i]
6564 keylen = length(key)
6565 if (S_is_set[key]) {
6566 value = S[key]
6567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6568 len += length(value) + length(field[++i])
6569 substed = 1
6570 } else
6571 len += 1 + keylen
6572 }
6573
6574 print line
6575 }
6576
6577 _ACAWK
6578 _ACEOF
6579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6580 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6582 else
6583 cat
6584 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6585 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6586 _ACEOF
6587
6588 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6589 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6590 # trailing colons and then remove the whole line if VPATH becomes empty
6591 # (actually we leave an empty line to preserve line numbers).
6592 if test "x$srcdir" = x.; then
6593 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6594 h
6595 s///
6596 s/^/:/
6597 s/[ ]*$/:/
6598 s/:\$(srcdir):/:/g
6599 s/:\${srcdir}:/:/g
6600 s/:@srcdir@:/:/g
6601 s/^:*//
6602 s/:*$//
6603 x
6604 s/\(=[ ]*\).*/\1/
6605 G
6606 s/\n//
6607 s/^[^=]*=[ ]*$//
6608 }'
6609 fi
6610
6611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6612 fi # test -n "$CONFIG_FILES"
6613
6614 # Set up the scripts for CONFIG_HEADERS section.
6615 # No need to generate them if there are no CONFIG_HEADERS.
6616 # This happens for instance with `./config.status Makefile'.
6617 if test -n "$CONFIG_HEADERS"; then
6618 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6619 BEGIN {
6620 _ACEOF
6621
6622 # Transform confdefs.h into an awk script `defines.awk', embedded as
6623 # here-document in config.status, that substitutes the proper values into
6624 # config.h.in to produce config.h.
6625
6626 # Create a delimiter string that does not exist in confdefs.h, to ease
6627 # handling of long lines.
6628 ac_delim='%!_!# '
6629 for ac_last_try in false false :; do
6630 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6631 if test -z "$ac_tt"; then
6632 break
6633 elif $ac_last_try; then
6634 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6635 else
6636 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6637 fi
6638 done
6639
6640 # For the awk script, D is an array of macro values keyed by name,
6641 # likewise P contains macro parameters if any. Preserve backslash
6642 # newline sequences.
6643
6644 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6645 sed -n '
6646 s/.\{148\}/&'"$ac_delim"'/g
6647 t rset
6648 :rset
6649 s/^[ ]*#[ ]*define[ ][ ]*/ /
6650 t def
6651 d
6652 :def
6653 s/\\$//
6654 t bsnl
6655 s/["\\]/\\&/g
6656 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6657 D["\1"]=" \3"/p
6658 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6659 d
6660 :bsnl
6661 s/["\\]/\\&/g
6662 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6663 D["\1"]=" \3\\\\\\n"\\/p
6664 t cont
6665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6666 t cont
6667 d
6668 :cont
6669 n
6670 s/.\{148\}/&'"$ac_delim"'/g
6671 t clear
6672 :clear
6673 s/\\$//
6674 t bsnlc
6675 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6676 d
6677 :bsnlc
6678 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6679 b cont
6680 ' <confdefs.h | sed '
6681 s/'"$ac_delim"'/"\\\
6682 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6683
6684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6685 for (key in D) D_is_set[key] = 1
6686 FS = ""
6687 }
6688 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6689 line = \$ 0
6690 split(line, arg, " ")
6691 if (arg[1] == "#") {
6692 defundef = arg[2]
6693 mac1 = arg[3]
6694 } else {
6695 defundef = substr(arg[1], 2)
6696 mac1 = arg[2]
6697 }
6698 split(mac1, mac2, "(") #)
6699 macro = mac2[1]
6700 prefix = substr(line, 1, index(line, defundef) - 1)
6701 if (D_is_set[macro]) {
6702 # Preserve the white space surrounding the "#".
6703 print prefix "define", macro P[macro] D[macro]
6704 next
6705 } else {
6706 # Replace #undef with comments. This is necessary, for example,
6707 # in the case of _POSIX_SOURCE, which is predefined and required
6708 # on some systems where configure will not decide to define it.
6709 if (defundef == "undef") {
6710 print "/*", prefix defundef, macro, "*/"
6711 next
6712 }
6713 }
6714 }
6715 { print }
6716 _ACAWK
6717 _ACEOF
6718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6719 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6720 fi # test -n "$CONFIG_HEADERS"
6721
6722
6723 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6724 shift
6725 for ac_tag
6726 do
6727 case $ac_tag in
6728 :[FHLC]) ac_mode=$ac_tag; continue;;
6729 esac
6730 case $ac_mode$ac_tag in
6731 :[FHL]*:*);;
6732 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6733 :[FH]-) ac_tag=-:-;;
6734 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6735 esac
6736 ac_save_IFS=$IFS
6737 IFS=:
6738 set x $ac_tag
6739 IFS=$ac_save_IFS
6740 shift
6741 ac_file=$1
6742 shift
6743
6744 case $ac_mode in
6745 :L) ac_source=$1;;
6746 :[FH])
6747 ac_file_inputs=
6748 for ac_f
6749 do
6750 case $ac_f in
6751 -) ac_f="$ac_tmp/stdin";;
6752 *) # Look for the file first in the build tree, then in the source tree
6753 # (if the path is not absolute). The absolute path cannot be DOS-style,
6754 # because $ac_f cannot contain `:'.
6755 test -f "$ac_f" ||
6756 case $ac_f in
6757 [\\/$]*) false;;
6758 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6759 esac ||
6760 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6761 esac
6762 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6763 as_fn_append ac_file_inputs " '$ac_f'"
6764 done
6765
6766 # Let's still pretend it is `configure' which instantiates (i.e., don't
6767 # use $as_me), people would be surprised to read:
6768 # /* config.h. Generated by config.status. */
6769 configure_input='Generated from '`
6770 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6771 `' by configure.'
6772 if test x"$ac_file" != x-; then
6773 configure_input="$ac_file. $configure_input"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6775 $as_echo "$as_me: creating $ac_file" >&6;}
6776 fi
6777 # Neutralize special characters interpreted by sed in replacement strings.
6778 case $configure_input in #(
6779 *\&* | *\|* | *\\* )
6780 ac_sed_conf_input=`$as_echo "$configure_input" |
6781 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6782 *) ac_sed_conf_input=$configure_input;;
6783 esac
6784
6785 case $ac_tag in
6786 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6788 esac
6789 ;;
6790 esac
6791
6792 ac_dir=`$as_dirname -- "$ac_file" ||
6793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6794 X"$ac_file" : 'X\(//\)[^/]' \| \
6795 X"$ac_file" : 'X\(//\)$' \| \
6796 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6797 $as_echo X"$ac_file" |
6798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6799 s//\1/
6800 q
6801 }
6802 /^X\(\/\/\)[^/].*/{
6803 s//\1/
6804 q
6805 }
6806 /^X\(\/\/\)$/{
6807 s//\1/
6808 q
6809 }
6810 /^X\(\/\).*/{
6811 s//\1/
6812 q
6813 }
6814 s/.*/./; q'`
6815 as_dir="$ac_dir"; as_fn_mkdir_p
6816 ac_builddir=.
6817
6818 case "$ac_dir" in
6819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6820 *)
6821 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6822 # A ".." for each directory in $ac_dir_suffix.
6823 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6824 case $ac_top_builddir_sub in
6825 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6826 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6827 esac ;;
6828 esac
6829 ac_abs_top_builddir=$ac_pwd
6830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6831 # for backward compatibility:
6832 ac_top_builddir=$ac_top_build_prefix
6833
6834 case $srcdir in
6835 .) # We are building in place.
6836 ac_srcdir=.
6837 ac_top_srcdir=$ac_top_builddir_sub
6838 ac_abs_top_srcdir=$ac_pwd ;;
6839 [\\/]* | ?:[\\/]* ) # Absolute name.
6840 ac_srcdir=$srcdir$ac_dir_suffix;
6841 ac_top_srcdir=$srcdir
6842 ac_abs_top_srcdir=$srcdir ;;
6843 *) # Relative name.
6844 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6845 ac_top_srcdir=$ac_top_build_prefix$srcdir
6846 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6847 esac
6848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6849
6850
6851 case $ac_mode in
6852 :F)
6853 #
6854 # CONFIG_FILE
6855 #
6856
6857 case $INSTALL in
6858 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6859 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6860 esac
6861 ac_MKDIR_P=$MKDIR_P
6862 case $MKDIR_P in
6863 [\\/$]* | ?:[\\/]* ) ;;
6864 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6865 esac
6866 _ACEOF
6867
6868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6869 # If the template does not know about datarootdir, expand it.
6870 # FIXME: This hack should be removed a few years after 2.60.
6871 ac_datarootdir_hack=; ac_datarootdir_seen=
6872 ac_sed_dataroot='
6873 /datarootdir/ {
6874 p
6875 q
6876 }
6877 /@datadir@/p
6878 /@docdir@/p
6879 /@infodir@/p
6880 /@localedir@/p
6881 /@mandir@/p'
6882 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6883 *datarootdir*) ac_datarootdir_seen=yes;;
6884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6886 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6887 _ACEOF
6888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6889 ac_datarootdir_hack='
6890 s&@datadir@&$datadir&g
6891 s&@docdir@&$docdir&g
6892 s&@infodir@&$infodir&g
6893 s&@localedir@&$localedir&g
6894 s&@mandir@&$mandir&g
6895 s&\\\${datarootdir}&$datarootdir&g' ;;
6896 esac
6897 _ACEOF
6898
6899 # Neutralize VPATH when `$srcdir' = `.'.
6900 # Shell code in configure.ac might set extrasub.
6901 # FIXME: do we really want to maintain this feature?
6902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6903 ac_sed_extra="$ac_vpsub
6904 $extrasub
6905 _ACEOF
6906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6907 :t
6908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6909 s|@configure_input@|$ac_sed_conf_input|;t t
6910 s&@top_builddir@&$ac_top_builddir_sub&;t t
6911 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6912 s&@srcdir@&$ac_srcdir&;t t
6913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6914 s&@top_srcdir@&$ac_top_srcdir&;t t
6915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6916 s&@builddir@&$ac_builddir&;t t
6917 s&@abs_builddir@&$ac_abs_builddir&;t t
6918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6919 s&@INSTALL@&$ac_INSTALL&;t t
6920 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6921 $ac_datarootdir_hack
6922 "
6923 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6924 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6925
6926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6927 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6929 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6931 which seems to be undefined. Please make sure it is defined" >&5
6932 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6933 which seems to be undefined. Please make sure it is defined" >&2;}
6934
6935 rm -f "$ac_tmp/stdin"
6936 case $ac_file in
6937 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6938 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6939 esac \
6940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6941 ;;
6942 :H)
6943 #
6944 # CONFIG_HEADER
6945 #
6946 if test x"$ac_file" != x-; then
6947 {
6948 $as_echo "/* $configure_input */" \
6949 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6950 } >"$ac_tmp/config.h" \
6951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6952 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6954 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6955 else
6956 rm -f "$ac_file"
6957 mv "$ac_tmp/config.h" "$ac_file" \
6958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6959 fi
6960 else
6961 $as_echo "/* $configure_input */" \
6962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6963 || as_fn_error $? "could not create -" "$LINENO" 5
6964 fi
6965 # Compute "$ac_file"'s index in $config_headers.
6966 _am_arg="$ac_file"
6967 _am_stamp_count=1
6968 for _am_header in $config_headers :; do
6969 case $_am_header in
6970 $_am_arg | $_am_arg:* )
6971 break ;;
6972 * )
6973 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6974 esac
6975 done
6976 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6977 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6978 X"$_am_arg" : 'X\(//\)[^/]' \| \
6979 X"$_am_arg" : 'X\(//\)$' \| \
6980 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6981 $as_echo X"$_am_arg" |
6982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6983 s//\1/
6984 q
6985 }
6986 /^X\(\/\/\)[^/].*/{
6987 s//\1/
6988 q
6989 }
6990 /^X\(\/\/\)$/{
6991 s//\1/
6992 q
6993 }
6994 /^X\(\/\).*/{
6995 s//\1/
6996 q
6997 }
6998 s/.*/./; q'`/stamp-h$_am_stamp_count
6999 ;;
7000
7001 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7002 $as_echo "$as_me: executing $ac_file commands" >&6;}
7003 ;;
7004 esac
7005
7006
7007 case $ac_file$ac_mode in
7008 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7009 # Older Autoconf quotes --file arguments for eval, but not when files
7010 # are listed without --file. Let's play safe and only enable the eval
7011 # if we detect the quoting.
7012 case $CONFIG_FILES in
7013 *\'*) eval set x "$CONFIG_FILES" ;;
7014 *) set x $CONFIG_FILES ;;
7015 esac
7016 shift
7017 for mf
7018 do
7019 # Strip MF so we end up with the name of the file.
7020 mf=`echo "$mf" | sed -e 's/:.*$//'`
7021 # Check whether this is an Automake generated Makefile or not.
7022 # We used to match only the files named 'Makefile.in', but
7023 # some people rename them; so instead we look at the file content.
7024 # Grep'ing the first line is not enough: some people post-process
7025 # each Makefile.in and add a new line on top of each file to say so.
7026 # Grep'ing the whole file is not good either: AIX grep has a line
7027 # limit of 2048, but all sed's we know have understand at least 4000.
7028 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7029 dirpart=`$as_dirname -- "$mf" ||
7030 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7031 X"$mf" : 'X\(//\)[^/]' \| \
7032 X"$mf" : 'X\(//\)$' \| \
7033 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7034 $as_echo X"$mf" |
7035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7036 s//\1/
7037 q
7038 }
7039 /^X\(\/\/\)[^/].*/{
7040 s//\1/
7041 q
7042 }
7043 /^X\(\/\/\)$/{
7044 s//\1/
7045 q
7046 }
7047 /^X\(\/\).*/{
7048 s//\1/
7049 q
7050 }
7051 s/.*/./; q'`
7052 else
7053 continue
7054 fi
7055 # Extract the definition of DEPDIR, am__include, and am__quote
7056 # from the Makefile without running 'make'.
7057 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7058 test -z "$DEPDIR" && continue
7059 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7060 test -z "$am__include" && continue
7061 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7062 # Find all dependency output files, they are included files with
7063 # $(DEPDIR) in their names. We invoke sed twice because it is the
7064 # simplest approach to changing $(DEPDIR) to its actual value in the
7065 # expansion.
7066 for file in `sed -n "
7067 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7068 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7069 # Make sure the directory exists.
7070 test -f "$dirpart/$file" && continue
7071 fdir=`$as_dirname -- "$file" ||
7072 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7073 X"$file" : 'X\(//\)[^/]' \| \
7074 X"$file" : 'X\(//\)$' \| \
7075 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7076 $as_echo X"$file" |
7077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7078 s//\1/
7079 q
7080 }
7081 /^X\(\/\/\)[^/].*/{
7082 s//\1/
7083 q
7084 }
7085 /^X\(\/\/\)$/{
7086 s//\1/
7087 q
7088 }
7089 /^X\(\/\).*/{
7090 s//\1/
7091 q
7092 }
7093 s/.*/./; q'`
7094 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7095 # echo "creating $dirpart/$file"
7096 echo '# dummy' > "$dirpart/$file"
7097 done
7098 done
7099 }
7100 ;;
7101
7102 esac
7103 done # for ac_tag
7104
7105
7106 as_fn_exit 0
7107 _ACEOF
7108 ac_clean_files=$ac_clean_files_save
7109
7110 test $ac_write_fail = 0 ||
7111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7112
7113
7114 # configure is writing to config.log, and then calls config.status.
7115 # config.status does its own redirection, appending to config.log.
7116 # Unfortunately, on DOS this fails, as config.log is still kept open
7117 # by configure, so config.status won't be able to write to it; its
7118 # output is simply discarded. So we exec the FD to /dev/null,
7119 # effectively closing config.log, so it can be properly (re)opened and
7120 # appended to by config.status. When coming back to configure, we
7121 # need to make the FD available again.
7122 if test "$no_create" != yes; then
7123 ac_cs_success=:
7124 ac_config_status_args=
7125 test "$silent" = yes &&
7126 ac_config_status_args="$ac_config_status_args --quiet"
7127 exec 5>/dev/null
7128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7129 exec 5>>config.log
7130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7131 # would make configure fail if this is the last instruction.
7132 $ac_cs_success || as_fn_exit 1
7133 fi
7134 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7136 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7137 fi
7138
+0
-791
depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
789 # time-stamp-end: "; # UTC"
790 # End:
0 # h4fromh5: convert HDF5 scientific dataset to an HDF4 file
1
2 ## Synopsis
3
4 h4fromh5[OPTION]... [HDF4FILE]...
5
6 ## Description
7
8 `h4fromh5` takes one or more files in HDF5 format and outputs files in HDF4 format containing the datasets from the HDF5 files. (Currently, only a single dataset per HDF5 file is converted.)
9
10 HDF4 and HDF5 are free, portable binary formats and supporting libraries developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign.
11
12 A single
13 HDF5 (`.h5`) file can contain multiple data sets; by default, `h4fromh5` converts the first dataset, but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`.
14
15 The most basic usage is something like `h4fromh5 foo.h5`, which will output a file `foo.hdf` containing the scientific dataset from `foo.h5`.
16
17 ## Options
18
19 * `-h` — Display help on the command-line options and usage.
20 * `-V` — Print the version number and copyright info for `h4fromh5`.
21 * `-v` — Verbose output.
22 * `-T` — Transpose the output dataset (e.g. LxMxN becomes NxMxL). This is often useful because HDF5 programs typically follow C (row-major) conventions while HDF4 programs often follow Fortran (column-major, transposed) conventions for array ordering.
23 * `-o file` — Send HDF output to `file` rather than to the input filename with `.h5` replaced with `.hdf` (the default).
24 * `-d name` — Read from dataset `name` in the input; otherwise, the first dataset in the input file is used. Alternatively, use the syntax `HDF5FILE:DATASET` when the input file names are specified.
25
26 ## Bugs
27
28 Report bugs by filing an issue at https://github.com/stevengj/h5utils
29
30 ## Authors
31
32 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # h5fromh4: convert HDF4 scientific datasets to an HDF5 file
1
2 ## Synopsis
3
4 h5fromh4 [OPTION]... [HDF4FILE]...
5
6 ## Description
7
8 `h5fromh4` takes one or more files in HDF4 format and outputs files in HDF5 format containing the datasets from the HDF4 files. (Currently, only a single dataset per HDF4 file is converted.)
9
10 HDF4 and HDF5 are free, portable binary formats and supporting libraries developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign.
11
12 A single `.h5` file can contain multiple data sets; by default, `h5fromh4` creates a dataset called `data`, but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET` with the `-o` option. The `-a` option can be used to append new datasets to an existing HDF5 file. If the `-o` option is used and multiple HDF4 files are specified, all the HDF4 datasets are output into that HDF5 file with the input filenames (minus the `.hdf` suffix) used as the dataset names.
13
14 The most basic usage is something like `h5fromh4 foo.hdf`, which will output a file `foo.h5` containing the scientific dataset from `foo.hdf`.`
15
16 ## Options
17
18 * `-h` — Display help on the command-line options and usage.
19
20 * `-V` — Print the version number and copyright info for `h5fromh4`
21
22 * `-v` — Verbose output.
23
24 * `-a` — If the HDF5 output file already exists, append the data as a new dataset rather than overwriting the file (the default behavior). An existing dataset of the same name within the file is overwritten, however.
25
26 * `-o` `file` — Send HDF5 output to `file` rather than to the input filename with .hdf replaced with .h5 (the default). If multiple input files were specified, this causes all input datasets to be stored in `file` (rather than in separate files), with the input filenames (minus the .hdf suffix) as the dataset names.
27
28 * `-d` `name` — Write to dataset `name` in the output; otherwise, the output dataset is called "data" by default. Alternatively, use the syntax `HDF5FILE:DATASET` with the `-o` option.
29
30 ## Bugs
31
32 Report bugs by filing an issue at https://github.com/stevengj/h5utils
33
34 ## Authors
35
36 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # h5fromtxt: convert text input to an HDF5 file
1
2 ## Synopsis
3
4 h5fromtxt [OPTION]... [HDF5FILE]
5
6 ## Description
7
8 `h5fromtxt` takes a series of numbers from standard input and outputs a multi-dimensional numeric dataset in an HDF5 file.
9
10 HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign. A single `.h5` file can contain multiple data sets; by default, `h5fromtxt` creates a dataset called "data", but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`. The `-a` option can be used to append new datasets to an existing HDF5 file.
11
12 All characters besides the numbers (and associated decimal points, etcetera) in the input are ignored. By default, the data is assumed to be a two-dimensional MxN dataset where M is the number of rows (delimited by newlines) and N is the number of columns. In this case, it is an error for the number of columns to vary between rows. If M or N is 1 then the data is written as a one-dimensional dataset.
13
14 Alternatively, you can specify the dimensions of the data explicitly via the `-n` `size` option, where `size` is e.g. "2x2x2". In this case, newlines are ignored and the data is taken as an array of the given size stored in row-major ("C") order (where the last index varies most quickly as you step through the data). e.g. a 2x2x2 array would be have the elements listed in the order: (0,0,0), (0,0,1), (0,1,0), (0,1,1), (1,0,0), (1,0,1), (1,1,0), (1,1,1).
15
16 A simple example is:
17
18 ```
19 h5fromtxt foo.h5 <<EOF — 
20 1 2 3 4
21 5 6 7 8
22 EOF
23 ```
24
25 which reads in a 2x4 space-delimited array from standard input.
26
27 ## Options
28
29 * `-h` — Display help on the command-line options and usage.
30
31 * `-V` — Print the version number and copyright info for `h5fromtxt`.
32
33 * `-v` — Verbose output.
34
35 * `-a` — If the HDF5 output file already exists, append the data as a new dataset rather than overwriting the file (the default behavior). An existing dataset of the same name within the file is overwritten, however.
36
37 * `-n size` — Instead of trying to infer the dimensions of the array from the rows and columns of the input, treat the data as a sequence of numbers in row-major order forming an array of dimensions `size`. `size` is of the form MxNxLx... (with M, N, L being numbers) and may be of any dimensionality.
38
39 * `-T` — Transpose the input when it is written, reversing the dimensions.
40
41 * `-d name` — Write to dataset `name` in the output; otherwise, the output dataset is called "data" by default. Alternatively, use the syntax `HDF5FILE:DATASET`.
42
43 ## Bugs
44
45 Report bugs by filing an issue at https://github.com/stevengj/h5utils
46
47 ## Authors
48
49 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # h5math: combine/create HDF5 files with math expressions
1
2 ## Synopsis
3
4 h5math [OPTION]... OUTPUT-HDF5FILE [INPUT-HDF5FILES...]
5
6 ## Description
7
8 `h5math` takes any number of HDF5 files as input, along with a mathematical expression, and combines them to produce a new HDF5 file.
9
10 HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign. A single `.h5` file can contain multiple data sets; by default, `h5math` creates a dataset called "h5math", but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`. The `-a` option can be used to append new datasets to an existing HDF5 file. The same syntax is used to specify the dataset used in the input file(s); by default, the first dataset (alphabetically) is used.
11
12 A simple example of `h5math` usage is:
13
14 h5math -e "d1 + 2*d2" out.h5 foo.h5 bar.h5:blah
15
16 which produces a new file, `out.h5`, by adding the first dataset in `foo.h5` with twice the `blah` dataset in `bar.h5`. In the expression (specified by `-e`), the first input dataset (from left to right) is referred to as `d1`, the second as `d2`, and so on.
17
18 In addition to input datasets, you can also use the x/y/z coordinates of each point in the expression, referenced by `x y` and `z` variables (for the first three dimensions) as well as a `t` variable that refers to the last dimension. By default, these are integers starting at 0 at the corner of the dataset, but the `-0` option will change the x/y/z origin to the center of the dataset (t is unaffected), and the `-r res` option will specify the "resolution", dividing the x/y/z coordinates by `res`.
19
20 All of the input datasets must have the same dimensions, which are also the dimensions of the output. If there are no input files, and you are defining the output purely by a mathematical formula, you can specify the dimensions of the output explicitly via the `-n size` option, where `size` is e.g. "2x2x2".
21
22 Sometimes, however, you want to use only a smaller-dimensional "slice" of multi-dimensional data. To do this, you specify coordinates in one (or more) slice dimension(s), via the `-xyzt` options.
23
24 ## Options
25
26 * `-h` — Display help on the command-line options and usage.
27
28 * `-V` — Print the version number and copyright info for `h5math`.
29
30 * `-v` — Verbose output.
31
32 * `-a` — If the HDF5 output file already exists, append the data as a new dataset rather than overwriting the file (the default behavior). An existing dataset of the same name within the file is overwritten, however.
33
34 * `-e expression` — Specify the mathematical expression that is used to construct the output (generally in `"` quotes to group the expression as one item in the shell), in terms of the variables for the input datasets and the coordinates as described above.
35 - Expressions use a C-like infix notation, with most standard operators and mathematical functions (`+`, `sin`, etc.) being supported. This functionality is provided (and its features determined) by [GNU libmatheval](https://www.gnu.org/software/libmatheval/).
36
37 * `-f filename` — Name of a text file to read the expression from, if no `-e` expression is specified. Defaults to stdin.
38
39 * `-x ix`, `-y iy`, `-z iz`, `-t it` — This tells `h5math` to use a particular slice of a multi-dimensional dataset. e.g. `-x` uses the subset (with one less dimension) at an x index of `ix` (where the indices run from zero to one less than the maximum index in that direction). Here, x/y/z correspond to the first/second/third dimensions of the HDF5 dataset. The `-t` option specifies a slice in the last dimension, whichever that might be. See also the `-0` option to shift the origin of the x/y/z slice coordinates to the dataset center.
40
41 * `-0` — Shift the origin of the x/y/z slice coordinates to the dataset center, so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x plane of the dataset instead of the edge x plane. (`-t` coordinates are not affected.) This also shifts the origin of the x/y/z variables in the expression so that 0 is the center of the dataset.
42
43 * `-r res` — Use a resolution `res` for x/y/z (but not t) variables in the expression, so that the data "grid" coordinates are divided by `res`. The default `res` is 1.
44 - For example, if the x dimension has 21 grid steps, setting a `res` of 20 will mean that x variables in the expression run from 0.0 to 1.0 (or -0.5 to 0.5 if `-0` is specified), instead of 0 to 20.
45 - `-r` does not affect the coordinates used for slices, which are always integers.
46
47 * `-n size` — The output dataset must be the same size as the input datasets. If there are no input datasets (if you are defining the output purely by a formula), then you must specify the output size manually with this option: `size` is of the form MxNxLx… (with M, N, L being integers) and may be of any dimensionality.
48
49 * `-d name` — Write to dataset `name` in the output; otherwise, the output dataset is called "data" by default. Also use dataset `name` in the input; otherwise, the first input dataset (alphabetically) in a file is used. Alternatively, use the syntax `HDF5FILE:DATASET` (which overrides the `-d` option).
50
51 ## Bugs
52
53 Report bugs by filing an issue at https://github.com/stevengj/h5utils
54
55 ## Authors
56
57 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # Color tables in h5topng
1
2 The `h5topng` utility program contains a number of built-in color tables that you can use for plotting data. These color tables are listed below, in some cases with notes about where they came from or suggested usage.
3
4 ## Color tables
5 The color scales that I would tend to recommend are the following five, taken from [the Matplotlib colormaps](https://matplotlib.org/users/colormaps.html):
6
7 * `viridis`: ![viridis](images/viridis.png)
8 - the default blue-green-yellow colormap in Matplotlib, a nice sequential colormap
9 * `RdBu`: ![RdBu](images/RdBu.png)
10 - red-white-blue colormap, good for signed data in conjunction with `-Z` option to make white=0
11 * `inferno`: ![inferno](images/inferno.png)
12 - a black-purple-red-orange-yellow colormap, a good replacement for the old `hot` colormap
13 * `BrBG`: ![BrBG](images/BrBG.png)
14 - brown-white-aquamarine colormap, an alternative to `RdBu` for signed data, also best used in conjunction with the `-Z` option to make white=0
15
16 These two are also sometimes useful:
17
18 * `gray`: ![gray](images/Gray_colormap.png)
19 - simple black-to-white grayscale color bar
20 * `yarg`: ![yarg](images/Yarg.png)
21 - simple white-to-black grayscale color bar (the reverse of `gray`, and almost equivalent to using `-gray` or `gray` with `-r`); this is useful to make contour-like overlays with the `-A` option because its transparency scale (black is transparent) is the opposite of `gray` (white is transparent)
22
23 For a long time, I used the following color maps, but nowadays they are somewhat old-fashioned because they aren't "perceptually uniform". See [this wonderful talk on designing colormaps](https://www.youtube.com/watch?v=xAoljeRJ3lU) for what goes into designing a modern colormap:
24
25 * `bluered`: ![bluered](images/Bluered.png)
26 - blue-white-red colorbar, useful for signed data in conjunction with `-Z` option to make white=0
27 * `dkbluered`: ![dkbluered](images/Dkbluered.png)
28 - dark blue-white-red colorbar, useful for signed data in conjunction with `-Z` option to make white=0; similar to `bluered` but shows a bit more dynamic range for the maxima/minima by darkening at the ends
29 * `hot`: ![hot](images/Hot.png)
30 - black-red-yellow-white color map, useful for nonnegative "intensity" data &mdash; based on [colormap](http://www.mathworks.com/access/helpdesk/help/techdoc/ref/colormap.shtml) of the same name in Matlab, loosely resembling the color of heated object at increasing temperatures
31
32 The remaining color scales, mostly based on the corresponding [colormaps(http://www.mathworks.com/access/helpdesk/help/techdoc/ref/colormap.shtml) of the same name in Matlab, are:
33
34 * `autumn`: ![autumn](images/Autumn.png)
35 - red-orange-yellow color map
36 * `bone`: ![bone](images/Bone.png)
37 - nearly grayscale (blackish to whitish) color map with a tinge of blue
38 * `colorcube`: ![colorcube](images/Colorcube.png)
39 - enhanced color-cube color map, basically designed to fill the RGB color space with an emphasis on a few pure colors
40 * `cool`: ![cool](images/Cool.png)
41 - cyan-magenta color map
42 * `copper`: ![copper](images/Copper.png)
43 - black-copper color map
44 * `flag`: ![flag](images/Flag.png)
45 - alternating red/white/blue/black color map
46 * `green`: ![green](images/Green.png)
47 - white-green color map; useful for translucent overlays with `-A`
48 * `hsv`: ![hsv](images/Hsv.png)
49 - red-yellow-green-cyan-blue-pink-magenta color map formed by changing the hue component in the HSV color space
50 * `jet`: ![jet](images/Jet.png)
51 - blue-cyan-yellow-red color map (a variant of `hsv`)
52 * `lines`: ![lines](images/Lines_color_map.png)
53 - oscillating color map
54 * `pink`: ![pink](images/Pink.png)
55 - pastel black-pink-white color map, used for Sepia tone colorization
56 * `prism`: ![prism](images/Prism.png)
57 - repeating red-yellow-green-blue-purple-...-green color map
58 * `spring`: ![spring](images/Spring.png)
59 - magenta-yellow color map
60 * `summer`: ![summer](images/Summer.png)
61 - green-yellow color map
62 * `vga`: ![vga](images/Vga.png)
63 - Windows 4-bit color map
64 * `winter`: ![winter](images/Winter.png)
65 - blue-green color map
66 * `yellow`: ![yellow](images/Yellow.png)
67 - white-yellow color map; useful for translucent overlays with `-A`
68
69 ## Defining your own color scale
70
71 You can also make your own color scales. The are specified in `h5topng` by a simple text file of numbers: each line should contain four whitespace-separated numbers from 0 to 1, each indicating an [RGBA](https://en.wikipedia.org/wiki/RGBA_color_space) value (red,green, blue, and alpha/transparency). For example, the `bluered` color table is defined by the following text:
72 ```
73 0 0 1 1
74 1 1 1 0
75 1 0 0 1
76 ```
77 The first line is blue (0,0,1) and opaque (1), the second line is white (1,1,1) and transparent (0), and the third line is red (1,0,0) and opaque (1). The opacity values are currently only used in `h5topng` for transparent overlays with the `-A` option.
78
79 `h5topng` linearly interpolates in the table of RGBA values you provide in order to assign colors for arbitrary intermediate values (where the first line = minimum and the last line = maximum).
80
81 Just save your color scale in a text file, and specify the text file pathname to the `-c` option.
82
83 ## Using the color tables in `h5topng`
84
85 To use a given color table in h5topng, simply use the `-c` option. For example, to use the `hot` color table, you might do:
86 ```
87 h5topng -c hot foobar.h5
88 ```
89 To apply the `bluered` or `dkbluered` tables to signed (positive and negative) data, you usually want to "center" the color table so that the middle (white) corresponds to zero data. You can do this with the `-Z` option, as in:
90 ```
91 h5topng -Zc bluered foobar.h5
92 ```
93 By default, `h5topng` scales the color table so that the ends correspond to the minimum and maximum of the data. (In the case of `-Z`, the data is centered so that one end of the color table corresponds to the maximum magnitude.) However, in some cases you want to "saturate" the color table to emphasize small values, so that all values above some maximum (or below some minimum) are simply assigned to the maximum (or minimum) color in the table. You can do this using the `-M` (or `-m`) option(s). For example, to set the minimum at 0 and the maximum at 0.0001, you might do:
94 ```
95 h5topng -m 0 -M 0.0001 -c hot foobar.h5
96 ```
97 Another useful option is `-r`, which reverses the order of the color table (e.g. to make blue positive and red negative).
98
99 See [the Unix man page for h5topng](http://ab-initio.mit.edu/h5utils/h5topng-man.html) for more information.
100
101 # Making a colorbar image
102
103 If you want to use the `h5topng` plot in a publication, often you will want to give a colorbar showing the scale of values. `h5topng` itself does not add axis labels or colorbars, but you can put these together in an external drawing program like [Inkscape](https://en.wikipedia.org/wiki/Inkscape). To create a PNG image of the color scale, a simple trick is the following:
104 ```
105 echo "0 1" | h5fromtxt colorbar.h5
106 h5topng -c hot -X 256 -Y 50 colorbar.h5
107 ```
108 The first command creates an HDF5 file with the numbers 0 and 1 using the [h5fromtxt](http://ab-initio.mit.edu/h5utils/h5totxt-man.html) utility, and the second creates a 256×50 image of the color scale (here for `hot`). You can, of course, resize the image or change color scales as needed.
109
110 (This was already done to create all of the colorbar images in the table above, which you are free to use, redistribute, and modify as desired.)
111
112 You will have to manually label the minimum and maximum values when you import the color scale into your drawing program. If you don't know these values, you can make `h5topng` print them out by passing the `-v` (verbose) option when generating the image from your data.
0 # h5topng: generate PNG images from 2d slices of HDF5 files
1
2 # Synopsis
3
4 h5topng [OPTION]... [HDF5FILE]...
5
6 ## Description
7
8 `h5topng` is a utility to generate images in PNG (Portable Network Graphics) format from two-dimensional slices of datasets in HDF5 files. It is designed for quick-and-dirty visualization of scientific data, and for batch processing thereof via shell scripts.
9
10 HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign. A single `.h5` file can contain multiple data sets; by default, `h5topng` takes the first dataset, but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`.
11
12 For a three- or four-dimensional dataset you must specify coordinates in one or two slice dimensions, respectively, to get a two-dimensional slice, via the `-xyzt` options. Yet more options control things like the colormap and magnification. Still, the most basic usage is something like `h5topng foo.h5`, which will output a file `foo.png` containing an image from the two-dimensional data in `foo.h5`.
13
14 ## Options
15
16 * `-h` — Display help on the command-line options and usage.
17
18 * `-V` — Print the version number and copyright info for `h5topng`.
19
20 * `-v` — Verbose output. This output includes the minimum and maximum values encountered in the data, which is useful to know for the `-mM` options.
21
22 * `-o file` — Send PNG output to `file` rather than to the filename with .h5 replaced with .png (the default).
23
24 * `-x ix`, `-y iy`, `-z iz`, `-t it` — This tells `h5topng` to use a particular slice of a multi-dimensional dataset. e.g. `-x` causes a yz plane (of a 3d dataset) to be used, at an x index of `ix` (where the indices run from zero to one less than the maximum index in that direction). Here, x/y/z correspond to the first/second/third dimensions of the HDF5 dataset. The `-t` option specifies a slice in the last dimension, whichever that might be. See also the `-0` option to shift the origin of the x/y/z slice coordinates to the dataset center.
25 - Instead of specifying a single index as an argument to these options, you can also specify a range of indices in a Matlab-like notation: `start:step:end` or `start:end` (`step` defaults to 1). This loops over that slice index, from `start` to `end` in steps of `step`, producing a sequence of output PNG files (with the slice index appended to the filename, before the `.png`).
26
27 * `-0` — Shift the origin of the x/y/z slice coordinates to the dataset center, so that e.g. `-0 -x 0` (or more compactly `-0x0`) returns the central x plane of the dataset instead of the edge x plane. (`-t` coordinates are not affected.)
28
29 * `-X scalex`, `-Y scaley`, `-S scale` — Scale the x and y dimensions of the image by `scalex` and `scaley` respectively. The `-S` option scales both x and y. The default is to use scale factors of 1.0; i.e. the image has the same dimensions (in pixels) as the data. Linear interpolation is used to fill in the pixels when the scale factors are not 1.0.
30
31 * `-s skewangle` — Skew the image by `skewangle` (in degrees) to the left or right. The result is a parallelogram, with the leftover space in the (square) image filled with either black or white pixels, depending upon the color map.
32
33 * `-T` — Transpose the data (interchange the image axes). By default, the first (x) coordinate of the data corresponds to the columns, and the second (y) coordinate corresponds to the rows; transposition reverses this convention.
34
35 * `-c colormap` — Use a color map `colormap` rather than the default `gray` color map (a grayscale ramp from white to black). `colormap` is normally the name of one of the color maps provided with `h5topng` (in the `/usr/local/share/h5utils/colormaps` directory), or can instead be the name of a color-map file.
36 - Three useful included color maps are `inferno` (black-red-yellow, useful for intensity data), `RdBu` (red-white-blue, useful for signed data), and `viridis` (a blue-green-yellow color map), all of which are [adapted from Matplotlib](https://matplotlib.org/users/colormaps.html). If you use the `RdBu` color map for signed data, you may also want to use the `-Z` option so that the center of the color scale (white) corresponds to zero.
37 - See [color tables in h5topng](h5topng-colors.md) for more information.
38
39 * `-r` — Reverse the ordering of the color map. You can also accomplish this by putting a `-` before the colormap name in the `-c` or `-a` option, e.g. `-c -RdBu`.
40
41 * `-Z` — Center the color scale on the value zero in the data.
42
43 * `-m min`, `-M max` — Normally, the bottom and top of the color map correspond to the minimum and maximum values in the data. Using these options, you can make the bottom and top of the color map correspond to `min` and `max` instead. Data values below or above this range will be treated as if they were `min` or `max` respectively. See also the `-Z` and `-R` options.
44
45 * `-R` — When multiple files are specified, set the bottom and top of the color maps according to the minimum and maximum over all the data. This is useful to process many files using a consistent color scale, since otherwise the scale is set for each file individually.
46
47 * `-C file`, `-b val` — Superimpose contour outlines from the first dataset in the `file` HDF5 file on all of the output images. (If the contour dataset does not have the same dimensions as the output data, it is periodically "tiled" over the output.) You can use the syntax `file:dataset` to specify a particular dataset within the file. The contour outlines are around a value of `val` (defaults to middle of value range in `file`).
48
49 * `-A file`, `-a colormap`:`opacity` — Translucently overlay the data from the first dataset in the `file` HDF5 file, which should have the same dimensions as the input dataset, on all of the output images, using the colormap `colormap` with opacity (from 0 for completely transparent to 1 for completely opaque) `opacity` multiplied by the opacity (alpha) values in the colormap. (If the overlay dataset does not have the same dimensions as the output data, it is periodically "tiled" over the output.) You can use the syntax `file:dataset` to specify a particular dataset within the file.
50
51 - Some predefined colormaps that work particularly well for this feature are `yellow` (transparent white to opaque yellow) `gray` (transparent white to opaque black), `yarg` (transparent black to opaque white), `green` (transparent white to opaque green), and `bluered` (opaque blue to transparent white to opaque red). You can prepend `-` to the colormap name to reverse the colormap order. (See also `-c`, above.) The default for `-a` is `yellow:0.3` (yellow colormap multiplied by 30% opacity).
52
53 * `-d name` — Use dataset `name` from the input files; otherwise, the first dataset from each file is used. Alternatively, use the syntax `HDF5FILE:DATASET`, which allows you to specify a different dataset for each file. You can use the `h5ls` command (included with hdf5) to find the names of datasets within a file.
54
55 * `-8` — Use 8-bit (indexed) color for the PNG output, instead of 24-bit (direct) color (the default). (This shrinks the image size slightly, with some degradation in quality.) Not supported in conjunction with the `-A` (translucent overlay) option.
56
57 ## Bugs
58
59 Report bugs by filing an issue at https://github.com/stevengj/h5utils
60
61 ## Authors
62
63 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # h5totxt: generate comma-delimited text from 2d slices of HDF5 files
1
2 ## Synopsis
3
4 h5totxt [OPTION]... [HDF5FILE]...
5
6 ## Description
7
8 `h5totxt` is a utility to generate comma-delimited text (and similar formats) from one-, two-, or more-dimensional slices of numeric datasets in HDF5 files. This way, the data can easily be imported into spreadsheets and similar programs for analysis and visualization.
9
10 HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign. A single `.h5` file can contain multiple data sets; by default, `h5totxt` takes the first dataset, but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`.
11
12 By default, the entire dataset is dumped to the output. in row-major order. For 3d datasets, this corresponds to a sequence of yz slices, in order of increasing x, separated by blank lines. If `-T` is specified, outputs in the transposed (column-major) order instead
13
14 Often, however, you want only a one- or two-dimensional slice of multi-dimensional data. To do this, you specify coordinates in one or more slice dimensions, via the `-xyzt` options.
15
16 The most basic usage is something like `h5totxt foo.h5`, which will output comma-delimited text to stdout from the data in `foo.h5`.
17
18 ## Options
19
20 * `-h` — Display help on the command-line options and usage.
21
22 * `-V` — Print the version number and copyright info for `h5totxt`.
23
24 * `-v` — Verbose output.
25
26 * `-o file` — Send text output to `file` rather than to stdout (the default).
27
28 * `-s sep` — Use the string `sep` to separate columns of the output rather than a comma (the default).
29
30 * `-x ix`, `-y iy`, `-z iz`, `-t it` — This tells `h5totxt` to use a particular slice of a multi-dimensional dataset. e.g. `-x` causes a yz plane (of a 3d dataset) to be used, at an x index of `ix` (where the indices run from zero to one less than the maximum index in that direction). Here, x/y/z correspond to the first/second/third dimensions of the HDF5 dataset. The `-t` option specifies a slice in the last dimension, whichever that might be. See also the `-0` option to shift the origin of the x/y/z slice coordinates to the dataset center.
31
32 * `-0` — Shift the origin of the x/y/z slice coordinates to the dataset center, so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x plane of the dataset instead of the edge x plane. (`-t` coordinates are not affected.)
33
34 * `-T` — Transpose the data (interchange the dimension ordering). By default, no transposition is done.
35
36 * `-. numdigits` — Output `numdigits` digits after the decimal point (defaults to 16).
37
38 * `-d name` — Use dataset `name` from the input files; otherwise, the first dataset from each file is used. Alternatively, use the syntax `HDF5FILE:DATASET`, which allows you to specify a different dataset for each file. You can use the `h5ls` command (included with hdf5) to find the names of datasets within a file.
39
40 ## Bugs
41
42 Report bugs by filing an issue at https://github.com/stevengj/h5utils
43
44 ## Authors
45
46 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # h5tov5d: convert datasets in HDF5 files to Vis5d format
1
2 ## Synopsis
3
4 h5tov5d [OPTION]... [HDF5FILE]...
5
6 ## Description
7
8 `h5tov5d` is a program to generate Vis5d data files from multidimensional datasets in HDF5 files. Vis5d is a free volumetric visualization program capable of displaying 3, 4, or even 5 dimensional datasets (using time for the 4th dimension and different variables for the 5th dimension).
9
10 HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign. A single `h5` file can contain multiple data sets; by default, `h5tov5d` takes the first dataset, but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`.
11
12 1d/2d/3d datasets are converted into 3d Vis5d datasets. 4d datasets are converted into a time series of 3d datasets, with the first dimension marking the time. 5d datasets are converted into several variables of time series of 3d datasets, with the first dimension as the variable index and the second dimension as the time. Often, however, you want only a three-dimensional "slice" of four (or more) dimensional data. To do this, you specify coordinates in one (or more) slice dimension(s), via the `-xyzt` options.
13
14 A typical invocation is of the form `h5tov5d foo.h5`, which will output a Vis5d data file `foo.v5d` from the data in `foo.h5`.
15
16 ## Options
17
18 * `-h` — Display help on the command-line options and usage.
19
20 * `-V` — Print the version number and copyright info for `h5tov5d`.
21
22 * `-v` — Verbose output.
23
24 * `-T` — Transpose the output dimensions (reverse their order).
25
26 * `-o` `file` — Save the datasets from all of the input files to a single Vis5d `file` with each dataset being expressed as a separate Vis5d variable. In this way, you can use Vis5d to superimpose and compare the plots from the different datasets. The first two dimensions (or three, for 4d datasets) must be the same for all of the input datasets.
27
28 - Otherwise, the default behavior is to save each dataset to a separate Vis5d file, with the `.h5` suffix of the input filename replaced by `.v5d` in the output filename.
29
30 * `-1`, `-2`, `-4` — Use 1 (the default), 2, or 4 bytes to store each data point in the output file. Fewer bytes will cause Vis5d to be faster (as well as requiring less storage and memory), but will decrease the resolution in the values. `-1` will break up the data values into one of 256 possible values (on a linear scale from the minimum to the maximum value in your data), `-2` will allow 65536 possible values, and `-4` will use 4-byte floating-point numbers for an "exact" representation. In most circumstances, `-1` is more than adequate for data visualization purposes.
31
32 * `-x` `ix`, `-y` `iy`, `-z` `iz`, `-t` `it` — This tells `h5tov5d` to use a particular slice of a multi-dimensional dataset. e.g. `-x` uses the subset (with one less dimension) at an x index of `ix` (where the indices run from zero to one less than the maximum index in that direction). Here, x/y/z correspond to the first/second/third dimensions of the HDF5 dataset. The `-t` option specifies a slice in the last dimension, whichever that might be. See also the `-0` option to shift the origin of the x/y/z slice coordinates to the dataset center.
33
34 * `-0` — Shift the origin of the x/y/z slice coordinates to the dataset center, so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x plane of the dataset instead of the edge x plane. (`-t` coordinates are not affected.)
35
36 * `-d` `name` — Use dataset `name` from the input files; otherwise, the first dataset from each file is used. Alternatively, use the syntax `HDF5FILE:DATASET`, which allows you to specify a different dataset for each file. You can use the `h5ls` command (included with hdf5) to find the names of datasets within a file.
37
38 ## Bugs
39
40 Report bugs by filing an issue at https://github.com/stevengj/h5utils
41
42 ## Authors
43
44 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
0 # h5tovtk: convert datasets in HDF5 files to VTK format
1
2 # Synopsis
3
4 h5tovtk [OPTION]... [HDF5FILE]...
5
6 ## Description
7
8 `h5tovtk` is a program to generate VTK data files from multidimensional datasets in HDF5 files. VTK, the Visualization ToolKit, is an open-source, freely available software system for 3D computer graphics, image processing, and visualization. VTK itself is a programming library, but it is also the basis for a number of end-user graphical visualization programs.
9
10 HDF5 is a free, portable binary format and supporting library developed by the National Center for Supercomputing Applications at the University of Illinois in Urbana-Champaign. A single `h5` file can contain multiple datasets; by default, `h5tovtk` takes the first dataset, but this can be changed via the `-d` option, or by using the syntax `HDF5FILE:DATASET`.
11
12 1d/2d/3d datasets are converted into 3d VTK datasets. Normally, a single scalar VTK dataset is output, but vectors and fields can be output via the `-o` option below.
13
14 A typical invocation is of the form `h5tovtk foo.h5`, which will output a VTK data file `foo.vtk` from the data in `foo.h5`.
15
16 ## Options
17
18 * `-h` — Display help on the command-line options and usage.
19
20 * `-V` — Print the version number and copyright info for `h5tovtk`.
21
22 * `-v` — Verbose output.
23
24 * `-o file` — Save all the input datasets to a single VTK `file`. If there is only one dataset, it is output to a VTK scalar dataset; if there are three datasets, they are output as a VTK vector dataset; all other numbers of datasets are combined into a VTK field dataset.
25
26 - Otherwise, the default behavior is to save each dataset to a separate VTK file, with the `.h5` suffix of the input filename replaced by `.vtk` in the output filename.
27
28 - Only three-dimensional datasets may be written to the VTK file. If you have a four (or more) dimensional data set, then you must take a three-dimensional "slice" of the multi-dimensional data. To do this, you specify coordinates in one (or more) slice dimension(s), via the `-xyzt` options.
29
30 * `-1`, `-2`, `-4` — Use 1 , 2, or 4 bytes to store each data point in the output file. Fewer bytes require less storage and memory, but will decrease the resolution in the values. `-1` will break up the data values into one of 256 possible values (on a linear scale from the minimum to the maximum value in your data), `-2` will allow 65536 possible values, and `-4` (the default) will use 4-byte floating-point numbers for an "exact" representation.
31
32 * `-a` — Output in ASCII format; otherwise, VTK’s more compact, but less readable and somewhat less portable binary format is used.
33
34 * `-n` — For binary output (see `-a` above), by default the data is written in bigendian byte order, which is normally the order that VTK expects. However, some external tools and a few VTK classes use the native byte ordering instead (which may not be bigendian), and the `-n` option causes `h5tovtk` to output binary data in the native ordering.
35
36 * `-m min`, `-M max` — When `-1` or `-2` are used, the input data are converted to a linear integer scale. Normally, the bottom and top of this scale correspond to the minimum and maximum values in the data. Using the `-m` and `-M` options, you can make the bottom and top of the scale correspond to `min` and `max` instead, respectively. Data values below or above this range will be treated as if they were `min` or `max` respectively. See also the `-Z` option.
37
38 * `-Z` — For `-1` or `-2` output, center the linear integer scale on the value zero in the data.
39
40 * `-r` — Invert the output values (map the minimum to the maximum and vice versa).
41
42 * `-x ix`, `-y iy`, `-z iz`, `-t it` — This tells `h5tovtk` to use a particular slice of a multi-dimensional dataset. e.g. `-x` uses the subset (with one less dimension) at an x index of `ix` (where the indices run from zero to one less than the maximum index in that direction). Here, x/y/z correspond to the first/second/third dimensions of the HDF5 dataset. The `-t` option specifies a slice in the last dimension, whichever that might be. See also the `-0` option to shift the origin of the x/y/z slice coordinates to the dataset center.
43
44 * `-0` — Shift the origin of the x/y/z slice coordinates to the dataset center, so that e.g. -0 -x 0 (or more compactly -0x0) returns the central x plane of the dataset instead of the edge x plane. (`-t` coordinates are not affected.)
45
46 * `-d name` — Use dataset `name` from the input files; otherwise, the first dataset from each file is used. Alternatively, use the syntax `HDF5FILE:DATASET`, which allows you to specify a different dataset for each file. You can use the `h5ls` command (included with hdf5) to find the names of datasets within a file.
47
48 ## Bugs
49
50 Report bugs by filing an issue at https://github.com/stevengj/h5utils
51
52 ## Authors
53
54 Written by [Steven G. Johnson](http://math.mit.edu/~stevenj/). Copyright © 2017 by the Massachusetts Institute of Technology.
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
0 .\" Copyright (c) 1999-2009 Massachusetts Institute of Technology
1 .\"
2 .\" Permission is hereby granted, free of charge, to any person obtaining
3 .\" a copy of this software and associated documentation files (the
4 .\" "Software"), to deal in the Software without restriction, including
5 .\" without limitation the rights to use, copy, modify, merge, publish,
6 .\" distribute, sublicense, and/or sell copies of the Software, and to
7 .\" permit persons to whom the Software is furnished to do so, subject to
8 .\" the following conditions:
9 .\"
10 .\" The above copyright notice and this permission notice shall be
11 .\" included in all copies or substantial portions of the Software.
12 .\"
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14 .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16 .\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
17 .\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
18 .\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19 .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 .\"
21 .TH H4FROMH5 1 "September 2, 2005" "h5utils" "h5utils"
22 .SH NAME
23 h4fromh5 \- convert HDF5 scientific dataset to an HDF4 file
24 .SH SYNOPSIS
25 .B h4fromh5
26 [\fIOPTION\fR]... [\fIHDF4FILE\fR]...
27 .SH DESCRIPTION
28 .PP
29 ." Add any additional description here
30 h4fromh5 takes one or more files in HDF5 format and outputs files in
31 HDF4 format containing the datasets from the HDF5 files. (Currently,
32 only a single dataset per HDF5 file is converted.)
33
34 HDF4 and HDF5 are free, portable binary formats and supporting libraries
35 developed by the National Center for Supercomputing Applications at
36 the University of Illinois in Urbana-Champaign.
37
38 A single
39 .I h5
40 file can contain multiple data sets; by default,
41 .I h4fromh5
42 converts the first dataset, but this can be changed via the
43 .B -d
44 option, or by using the syntax \fIHDF5FILE:DATASET\fR.
45
46 The most basic usage is something like \'h4fromh5 foo.h5\', which
47 will output a file foo.hdf containing the scientific dataset from
48 foo.h5.
49 .SH OPTIONS
50 .TP
51 .B -h
52 Display help on the command-line options and usage.
53 .TP
54 .B -V
55 Print the version number and copyright info for h4fromh5.
56 .TP
57 .B -v
58 Verbose output.
59 .TP
60 .B -T
61 Transpose the output dataset (e.g. LxMxN becomes NxMxL). This is often
62 useful because HDF5 programs typically follow C (row-major) conventions
63 while HDF4 programs often follow Fortran (column-major, transposed)
64 conventions for array ordering.
65 .TP
66 \fB\-o\fR \fIfile\fR
67 Send HDF output to
68 .I file
69 rather than to the input filename with .h5 replaced with .hdf (the
70 default).
71 .TP
72 \fB\-d\fR \fIname\fR
73 Read from dataset
74 .I name
75 in the input; otherwise, the first dataset in the input file is used.
76 Alternatively, use the syntax \fIHDF5FILE:DATASET\fR when the
77 input file names are specified.
78 .SH BUGS
79 Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
80 .SH AUTHORS
81 Written by Steven G. Johnson. Copyright (c) 2005 by the Massachusetts
82 Institute of Technology.
+0
-501
install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2013-12-25.23; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 chgrpcmd=
72 chmodcmd=$chmodprog
73 chowncmd=
74 mvcmd=$mvprog
75 rmcmd="$rmprog -f"
76 stripcmd=
77
78 src=
79 dst=
80 dir_arg=
81 dst_arg=
82
83 copy_on_change=false
84 is_target_a_directory=possibly
85
86 usage="\
87 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
88 or: $0 [OPTION]... SRCFILES... DIRECTORY
89 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
90 or: $0 [OPTION]... -d DIRECTORIES...
91
92 In the 1st form, copy SRCFILE to DSTFILE.
93 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
94 In the 4th, create DIRECTORIES.
95
96 Options:
97 --help display this help and exit.
98 --version display version info and exit.
99
100 -c (ignored)
101 -C install only if different (preserve the last data modification time)
102 -d create directories instead of installing files.
103 -g GROUP $chgrpprog installed files to GROUP.
104 -m MODE $chmodprog installed files to MODE.
105 -o USER $chownprog installed files to USER.
106 -s $stripprog installed files.
107 -t DIRECTORY install into DIRECTORY.
108 -T report an error if DSTFILE is a directory.
109
110 Environment variables override the default commands:
111 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112 RMPROG STRIPPROG
113 "
114
115 while test $# -ne 0; do
116 case $1 in
117 -c) ;;
118
119 -C) copy_on_change=true;;
120
121 -d) dir_arg=true;;
122
123 -g) chgrpcmd="$chgrpprog $2"
124 shift;;
125
126 --help) echo "$usage"; exit $?;;
127
128 -m) mode=$2
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
135
136 -o) chowncmd="$chownprog $2"
137 shift;;
138
139 -s) stripcmd=$stripprog;;
140
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
151
152 --version) echo "$0 $scriptversion"; exit $?;;
153
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
159
160 *) break;;
161 esac
162 shift
163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
192 done
193 fi
194
195 if test $# -eq 0; then
196 if test -z "$dir_arg"; then
197 echo "$0: no input file specified." >&2
198 exit 1
199 fi
200 # It's OK to call 'install-sh -d' without argument.
201 # This can happen when creating conditional directories.
202 exit 0
203 fi
204
205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
220
221 # Set umask so as not to create temps with too-generous modes.
222 # However, 'strip' requires both read and write access to temps.
223 case $mode in
224 # Optimize common cases.
225 *644) cp_umask=133;;
226 *755) cp_umask=22;;
227
228 *[0-7])
229 if test -z "$stripcmd"; then
230 u_plus_rw=
231 else
232 u_plus_rw='% 200'
233 fi
234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
235 *)
236 if test -z "$stripcmd"; then
237 u_plus_rw=
238 else
239 u_plus_rw=,u+rw
240 fi
241 cp_umask=$mode$u_plus_rw;;
242 esac
243 fi
244
245 for src
246 do
247 # Protect names problematic for 'test' and other utilities.
248 case $src in
249 -* | [=\(\)!]) src=./$src;;
250 esac
251
252 if test -n "$dir_arg"; then
253 dst=$src
254 dstdir=$dst
255 test -d "$dstdir"
256 dstdir_status=$?
257 else
258
259 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
260 # might cause directories to be created, which would be especially bad
261 # if $src (and thus $dsttmp) contains '*'.
262 if test ! -f "$src" && test ! -d "$src"; then
263 echo "$0: $src does not exist." >&2
264 exit 1
265 fi
266
267 if test -z "$dst_arg"; then
268 echo "$0: no destination specified." >&2
269 exit 1
270 fi
271 dst=$dst_arg
272
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
275 if test -d "$dst"; then
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
279 fi
280 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
282 dstdir_status=0
283 else
284 dstdir=`dirname "$dst"`
285 test -d "$dstdir"
286 dstdir_status=$?
287 fi
288 fi
289
290 obsolete_mkdir_used=false
291
292 if test $dstdir_status != 0; then
293 case $posix_mkdir in
294 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 esac;;
357 esac
358
359 if
360 $posix_mkdir && (
361 umask $mkdir_umask &&
362 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
363 )
364 then :
365 else
366
367 # The umask is ridiculous, or mkdir does not conform to POSIX,
368 # or it failed possibly due to a race condition. Create the
369 # directory the slow way, step by step, checking for races as we go.
370
371 case $dstdir in
372 /*) prefix='/';;
373 [-=\(\)!]*) prefix='./';;
374 *) prefix='';;
375 esac
376
377 oIFS=$IFS
378 IFS=/
379 set -f
380 set fnord $dstdir
381 shift
382 set +f
383 IFS=$oIFS
384
385 prefixes=
386
387 for d
388 do
389 test X"$d" = X && continue
390
391 prefix=$prefix$d
392 if test -d "$prefix"; then
393 prefixes=
394 else
395 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
397 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398 # Don't fail if two instances are running concurrently.
399 test -d "$prefix" || exit 1
400 else
401 case $prefix in
402 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
403 *) qprefix=$prefix;;
404 esac
405 prefixes="$prefixes '$qprefix'"
406 fi
407 fi
408 prefix=$prefix/
409 done
410
411 if test -n "$prefixes"; then
412 # Don't fail if two instances are running concurrently.
413 (umask $mkdir_umask &&
414 eval "\$doit_exec \$mkdirprog $prefixes") ||
415 test -d "$dstdir" || exit 1
416 obsolete_mkdir_used=true
417 fi
418 fi
419 fi
420
421 if test -n "$dir_arg"; then
422 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
423 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
424 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
425 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
426 else
427
428 # Make a couple of temp file names in the proper directory.
429 dsttmp=$dstdir/_inst.$$_
430 rmtmp=$dstdir/_rm.$$_
431
432 # Trap to clean up those temp files at exit.
433 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
434
435 # Copy the file name to the temp name.
436 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
437
438 # and set any options; do chmod last to preserve setuid bits.
439 #
440 # If any of these fail, we abort the whole thing. If we want to
441 # ignore errors from any of these, just make sure not to ignore
442 # errors from the above "$doit $cpprog $src $dsttmp" command.
443 #
444 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
445 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
446 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
447 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
448
449 # If -C, don't bother to copy if it wouldn't change the file.
450 if $copy_on_change &&
451 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
452 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
453 set -f &&
454 set X $old && old=:$2:$4:$5:$6 &&
455 set X $new && new=:$2:$4:$5:$6 &&
456 set +f &&
457 test "$old" = "$new" &&
458 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
459 then
460 rm -f "$dsttmp"
461 else
462 # Rename the file to the real destination.
463 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
464
465 # The rename failed, perhaps because mv can't rename something else
466 # to itself, or perhaps because mv is so ancient that it does not
467 # support -f.
468 {
469 # Now remove or move aside any old file at destination location.
470 # We try this two ways since rm can't unlink itself on some
471 # systems and the destination file might be busy for other
472 # reasons. In this case, the final cleanup might fail but the new
473 # file should still install successfully.
474 {
475 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
477 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
479 } ||
480 { echo "$0: cannot unlink or rename $dst" >&2
481 (exit 1); exit 1
482 }
483 } &&
484
485 # Now rename the file to the real destination.
486 $doit $mvcmd "$dsttmp" "$dst"
487 }
488 fi || exit 1
489
490 trap '' 0
491 fi
492 done
493
494 # Local variables:
495 # eval: (add-hook 'write-file-hooks 'time-stamp)
496 # time-stamp-start: "scriptversion="
497 # time-stamp-format: "%:y-%02m-%02d.%02H"
498 # time-stamp-time-zone: "UTC"
499 # time-stamp-end: "; # UTC"
500 # End:
+0
-215
missing less more
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
213 # time-stamp-end: "; # UTC"
214 # End: