Codebase list air-quality-sensor / 1c29fe3
Merge tag 'upstream/0.1.4.2' into upstream Upstream version 0.1.4.2 Benedikt Wildenhain 4 years ago
11 changed file(s) with 60 addition(s) and 8273 deletion(s). Raw diff Collapse all Expand all
0 autom4te.cache/
0 air-quality-sensor (0.1.4.2)
1
2 * Moved appstream data to PREFIX/share/metainfo/
3
4 air-quality-sensor (0.1.4.1)
5
6 * Added appstream data
7
8 air-quality-sensor (0.1.4)
9
10 * Make build reproducible
11
012 air-quality-sensor (0.1.3)
113
214 * Added --verbose (-v)
+0
-756
Makefile.in less more
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 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 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
61 pkgdatadir = $(datadir)/@PACKAGE@
62 pkgincludedir = $(includedir)/@PACKAGE@
63 pkglibdir = $(libdir)/@PACKAGE@
64 pkglibexecdir = $(libexecdir)/@PACKAGE@
65 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
66 install_sh_DATA = $(install_sh) -c -m 644
67 install_sh_PROGRAM = $(install_sh) -c
68 install_sh_SCRIPT = $(install_sh) -c
69 INSTALL_HEADER = $(INSTALL_DATA)
70 transform = $(program_transform_name)
71 NORMAL_INSTALL = :
72 PRE_INSTALL = :
73 POST_INSTALL = :
74 NORMAL_UNINSTALL = :
75 PRE_UNINSTALL = :
76 POST_UNINSTALL = :
77 subdir = .
78 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
79 $(top_srcdir)/configure $(am__configure_deps) \
80 $(srcdir)/config.h.in AUTHORS COPYING ChangeLog INSTALL README \
81 compile depcomp install-sh missing
82 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
84 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
85 $(ACLOCAL_M4)
86 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
87 configure.lineno config.status.lineno
88 mkinstalldirs = $(install_sh) -d
89 CONFIG_HEADER = config.h
90 CONFIG_CLEAN_FILES =
91 CONFIG_CLEAN_VPATH_FILES =
92 AM_V_P = $(am__v_P_@AM_V@)
93 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
94 am__v_P_0 = false
95 am__v_P_1 = :
96 AM_V_GEN = $(am__v_GEN_@AM_V@)
97 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
98 am__v_GEN_0 = @echo " GEN " $@;
99 am__v_GEN_1 =
100 AM_V_at = $(am__v_at_@AM_V@)
101 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
102 am__v_at_0 = @
103 am__v_at_1 =
104 SOURCES =
105 DIST_SOURCES =
106 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
107 ctags-recursive dvi-recursive html-recursive info-recursive \
108 install-data-recursive install-dvi-recursive \
109 install-exec-recursive install-html-recursive \
110 install-info-recursive install-pdf-recursive \
111 install-ps-recursive install-recursive installcheck-recursive \
112 installdirs-recursive pdf-recursive ps-recursive \
113 tags-recursive uninstall-recursive
114 am__can_run_installinfo = \
115 case $$AM_UPDATE_INFO_DIR in \
116 n|no|NO) false;; \
117 *) (install-info --version) >/dev/null 2>&1;; \
118 esac
119 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
120 distclean-recursive maintainer-clean-recursive
121 am__recursive_targets = \
122 $(RECURSIVE_TARGETS) \
123 $(RECURSIVE_CLEAN_TARGETS) \
124 $(am__extra_recursive_targets)
125 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
126 cscope distdir dist dist-all distcheck
127 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
128 $(LISP)config.h.in
129 # Read a list of newline-separated strings from the standard input,
130 # and print each of them once, without duplicates. Input order is
131 # *not* preserved.
132 am__uniquify_input = $(AWK) '\
133 BEGIN { nonempty = 0; } \
134 { items[$$0] = 1; nonempty = 1; } \
135 END { if (nonempty) { for (i in items) print i; }; } \
136 '
137 # Make sure the list of sources is unique. This is necessary because,
138 # e.g., the same source file might be shared among _SOURCES variables
139 # for different programs/libraries.
140 am__define_uniq_tagged_files = \
141 list='$(am__tagged_files)'; \
142 unique=`for i in $$list; do \
143 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
144 done | $(am__uniquify_input)`
145 ETAGS = etags
146 CTAGS = ctags
147 CSCOPE = cscope
148 DIST_SUBDIRS = $(SUBDIRS)
149 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
150 distdir = $(PACKAGE)-$(VERSION)
151 top_distdir = $(distdir)
152 am__remove_distdir = \
153 if test -d "$(distdir)"; then \
154 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
155 && rm -rf "$(distdir)" \
156 || { sleep 5 && rm -rf "$(distdir)"; }; \
157 else :; fi
158 am__post_remove_distdir = $(am__remove_distdir)
159 am__relativize = \
160 dir0=`pwd`; \
161 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
162 sed_rest='s,^[^/]*/*,,'; \
163 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
164 sed_butlast='s,/*[^/]*$$,,'; \
165 while test -n "$$dir1"; do \
166 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
167 if test "$$first" != "."; then \
168 if test "$$first" = ".."; then \
169 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
170 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
171 else \
172 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
173 if test "$$first2" = "$$first"; then \
174 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
175 else \
176 dir2="../$$dir2"; \
177 fi; \
178 dir0="$$dir0"/"$$first"; \
179 fi; \
180 fi; \
181 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
182 done; \
183 reldir="$$dir2"
184 DIST_ARCHIVES = $(distdir).tar.gz
185 GZIP_ENV = --best
186 DIST_TARGETS = dist-gzip
187 distuninstallcheck_listfiles = find . -type f -print
188 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
189 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
190 distcleancheck_listfiles = find . -type f -print
191 ACLOCAL = @ACLOCAL@
192 AMTAR = @AMTAR@
193 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
194 AUTOCONF = @AUTOCONF@
195 AUTOHEADER = @AUTOHEADER@
196 AUTOMAKE = @AUTOMAKE@
197 AWK = @AWK@
198 CC = @CC@
199 CCDEPMODE = @CCDEPMODE@
200 CFLAGS = @CFLAGS@
201 CPPFLAGS = @CPPFLAGS@
202 CYGPATH_W = @CYGPATH_W@
203 DEFS = @DEFS@
204 DEPDIR = @DEPDIR@
205 ECHO_C = @ECHO_C@
206 ECHO_N = @ECHO_N@
207 ECHO_T = @ECHO_T@
208 EXEEXT = @EXEEXT@
209 HELP2MAN = @HELP2MAN@
210 INSTALL = @INSTALL@
211 INSTALL_DATA = @INSTALL_DATA@
212 INSTALL_PROGRAM = @INSTALL_PROGRAM@
213 INSTALL_SCRIPT = @INSTALL_SCRIPT@
214 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
215 LDFLAGS = @LDFLAGS@
216 LIBOBJS = @LIBOBJS@
217 LIBS = @LIBS@
218 LIBUSB1_0_CFLAGS = @LIBUSB1_0_CFLAGS@
219 LIBUSB1_0_LIBS = @LIBUSB1_0_LIBS@
220 LTLIBOBJS = @LTLIBOBJS@
221 MAKEINFO = @MAKEINFO@
222 MKDIR_P = @MKDIR_P@
223 OBJEXT = @OBJEXT@
224 PACKAGE = @PACKAGE@
225 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
226 PACKAGE_NAME = @PACKAGE_NAME@
227 PACKAGE_STRING = @PACKAGE_STRING@
228 PACKAGE_TARNAME = @PACKAGE_TARNAME@
229 PACKAGE_URL = @PACKAGE_URL@
230 PACKAGE_VERSION = @PACKAGE_VERSION@
231 PATH_SEPARATOR = @PATH_SEPARATOR@
232 PKG_CONFIG = @PKG_CONFIG@
233 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
234 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
235 SET_MAKE = @SET_MAKE@
236 SHELL = @SHELL@
237 STRIP = @STRIP@
238 VERSION = @VERSION@
239 abs_builddir = @abs_builddir@
240 abs_srcdir = @abs_srcdir@
241 abs_top_builddir = @abs_top_builddir@
242 abs_top_srcdir = @abs_top_srcdir@
243 ac_ct_CC = @ac_ct_CC@
244 am__include = @am__include@
245 am__leading_dot = @am__leading_dot@
246 am__quote = @am__quote@
247 am__tar = @am__tar@
248 am__untar = @am__untar@
249 bindir = @bindir@
250 build_alias = @build_alias@
251 builddir = @builddir@
252 datadir = @datadir@
253 datarootdir = @datarootdir@
254 docdir = @docdir@
255 dvidir = @dvidir@
256 exec_prefix = @exec_prefix@
257 host_alias = @host_alias@
258 htmldir = @htmldir@
259 includedir = @includedir@
260 infodir = @infodir@
261 install_sh = @install_sh@
262 libdir = @libdir@
263 libexecdir = @libexecdir@
264 localedir = @localedir@
265 localstatedir = @localstatedir@
266 mandir = @mandir@
267 mkdir_p = @mkdir_p@
268 oldincludedir = @oldincludedir@
269 pdfdir = @pdfdir@
270 prefix = @prefix@
271 program_transform_name = @program_transform_name@
272 psdir = @psdir@
273 sbindir = @sbindir@
274 sharedstatedir = @sharedstatedir@
275 srcdir = @srcdir@
276 sysconfdir = @sysconfdir@
277 target_alias = @target_alias@
278 top_build_prefix = @top_build_prefix@
279 top_builddir = @top_builddir@
280 top_srcdir = @top_srcdir@
281 SUBDIRS = src
282 all: config.h
283 $(MAKE) $(AM_MAKEFLAGS) all-recursive
284
285 .SUFFIXES:
286 am--refresh: Makefile
287 @:
288 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
289 @for dep in $?; do \
290 case '$(am__configure_deps)' in \
291 *$$dep*) \
292 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
293 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
294 && exit 0; \
295 exit 1;; \
296 esac; \
297 done; \
298 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
299 $(am__cd) $(top_srcdir) && \
300 $(AUTOMAKE) --foreign Makefile
301 .PRECIOUS: Makefile
302 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
303 @case '$?' in \
304 *config.status*) \
305 echo ' $(SHELL) ./config.status'; \
306 $(SHELL) ./config.status;; \
307 *) \
308 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
309 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
310 esac;
311
312 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
313 $(SHELL) ./config.status --recheck
314
315 $(top_srcdir)/configure: $(am__configure_deps)
316 $(am__cd) $(srcdir) && $(AUTOCONF)
317 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
318 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
319 $(am__aclocal_m4_deps):
320
321 config.h: stamp-h1
322 @test -f $@ || rm -f stamp-h1
323 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
324
325 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
326 @rm -f stamp-h1
327 cd $(top_builddir) && $(SHELL) ./config.status config.h
328 $(srcdir)/config.h.in: $(am__configure_deps)
329 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
330 rm -f stamp-h1
331 touch $@
332
333 distclean-hdr:
334 -rm -f config.h stamp-h1
335
336 # This directory's subdirectories are mostly independent; you can cd
337 # into them and run 'make' without going through this Makefile.
338 # To change the values of 'make' variables: instead of editing Makefiles,
339 # (1) if the variable is set in 'config.status', edit 'config.status'
340 # (which will cause the Makefiles to be regenerated when you run 'make');
341 # (2) otherwise, pass the desired values on the 'make' command line.
342 $(am__recursive_targets):
343 @fail=; \
344 if $(am__make_keepgoing); then \
345 failcom='fail=yes'; \
346 else \
347 failcom='exit 1'; \
348 fi; \
349 dot_seen=no; \
350 target=`echo $@ | sed s/-recursive//`; \
351 case "$@" in \
352 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
353 *) list='$(SUBDIRS)' ;; \
354 esac; \
355 for subdir in $$list; do \
356 echo "Making $$target in $$subdir"; \
357 if test "$$subdir" = "."; then \
358 dot_seen=yes; \
359 local_target="$$target-am"; \
360 else \
361 local_target="$$target"; \
362 fi; \
363 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
364 || eval $$failcom; \
365 done; \
366 if test "$$dot_seen" = "no"; then \
367 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
368 fi; test -z "$$fail"
369
370 ID: $(am__tagged_files)
371 $(am__define_uniq_tagged_files); mkid -fID $$unique
372 tags: tags-recursive
373 TAGS: tags
374
375 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
376 set x; \
377 here=`pwd`; \
378 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
379 include_option=--etags-include; \
380 empty_fix=.; \
381 else \
382 include_option=--include; \
383 empty_fix=; \
384 fi; \
385 list='$(SUBDIRS)'; for subdir in $$list; do \
386 if test "$$subdir" = .; then :; else \
387 test ! -f $$subdir/TAGS || \
388 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
389 fi; \
390 done; \
391 $(am__define_uniq_tagged_files); \
392 shift; \
393 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
394 test -n "$$unique" || unique=$$empty_fix; \
395 if test $$# -gt 0; then \
396 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
397 "$$@" $$unique; \
398 else \
399 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
400 $$unique; \
401 fi; \
402 fi
403 ctags: ctags-recursive
404
405 CTAGS: ctags
406 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
407 $(am__define_uniq_tagged_files); \
408 test -z "$(CTAGS_ARGS)$$unique" \
409 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
410 $$unique
411
412 GTAGS:
413 here=`$(am__cd) $(top_builddir) && pwd` \
414 && $(am__cd) $(top_srcdir) \
415 && gtags -i $(GTAGS_ARGS) "$$here"
416 cscope: cscope.files
417 test ! -s cscope.files \
418 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
419 clean-cscope:
420 -rm -f cscope.files
421 cscope.files: clean-cscope cscopelist
422 cscopelist: cscopelist-recursive
423
424 cscopelist-am: $(am__tagged_files)
425 list='$(am__tagged_files)'; \
426 case "$(srcdir)" in \
427 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
428 *) sdir=$(subdir)/$(srcdir) ;; \
429 esac; \
430 for i in $$list; do \
431 if test -f "$$i"; then \
432 echo "$(subdir)/$$i"; \
433 else \
434 echo "$$sdir/$$i"; \
435 fi; \
436 done >> $(top_builddir)/cscope.files
437
438 distclean-tags:
439 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
440 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
441
442 distdir: $(DISTFILES)
443 $(am__remove_distdir)
444 test -d "$(distdir)" || mkdir "$(distdir)"
445 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
446 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
447 list='$(DISTFILES)'; \
448 dist_files=`for file in $$list; do echo $$file; done | \
449 sed -e "s|^$$srcdirstrip/||;t" \
450 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
451 case $$dist_files in \
452 */*) $(MKDIR_P) `echo "$$dist_files" | \
453 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
454 sort -u` ;; \
455 esac; \
456 for file in $$dist_files; do \
457 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
458 if test -d $$d/$$file; then \
459 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
460 if test -d "$(distdir)/$$file"; then \
461 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
462 fi; \
463 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
464 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
465 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
466 fi; \
467 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
468 else \
469 test -f "$(distdir)/$$file" \
470 || cp -p $$d/$$file "$(distdir)/$$file" \
471 || exit 1; \
472 fi; \
473 done
474 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
475 if test "$$subdir" = .; then :; else \
476 $(am__make_dryrun) \
477 || test -d "$(distdir)/$$subdir" \
478 || $(MKDIR_P) "$(distdir)/$$subdir" \
479 || exit 1; \
480 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
481 $(am__relativize); \
482 new_distdir=$$reldir; \
483 dir1=$$subdir; dir2="$(top_distdir)"; \
484 $(am__relativize); \
485 new_top_distdir=$$reldir; \
486 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
487 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
488 ($(am__cd) $$subdir && \
489 $(MAKE) $(AM_MAKEFLAGS) \
490 top_distdir="$$new_top_distdir" \
491 distdir="$$new_distdir" \
492 am__remove_distdir=: \
493 am__skip_length_check=: \
494 am__skip_mode_fix=: \
495 distdir) \
496 || exit 1; \
497 fi; \
498 done
499 -test -n "$(am__skip_mode_fix)" \
500 || find "$(distdir)" -type d ! -perm -755 \
501 -exec chmod u+rwx,go+rx {} \; -o \
502 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
503 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
504 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
505 || chmod -R a+r "$(distdir)"
506 dist-gzip: distdir
507 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
508 $(am__post_remove_distdir)
509
510 dist-bzip2: distdir
511 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
512 $(am__post_remove_distdir)
513
514 dist-lzip: distdir
515 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
516 $(am__post_remove_distdir)
517
518 dist-xz: distdir
519 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
520 $(am__post_remove_distdir)
521
522 dist-tarZ: distdir
523 @echo WARNING: "Support for shar distribution archives is" \
524 "deprecated." >&2
525 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
526 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
527 $(am__post_remove_distdir)
528
529 dist-shar: distdir
530 @echo WARNING: "Support for distribution archives compressed with" \
531 "legacy program 'compress' is deprecated." >&2
532 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
533 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
534 $(am__post_remove_distdir)
535
536 dist-zip: distdir
537 -rm -f $(distdir).zip
538 zip -rq $(distdir).zip $(distdir)
539 $(am__post_remove_distdir)
540
541 dist dist-all:
542 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
543 $(am__post_remove_distdir)
544
545 # This target untars the dist file and tries a VPATH configuration. Then
546 # it guarantees that the distribution is self-contained by making another
547 # tarfile.
548 distcheck: dist
549 case '$(DIST_ARCHIVES)' in \
550 *.tar.gz*) \
551 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
552 *.tar.bz2*) \
553 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
554 *.tar.lz*) \
555 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
556 *.tar.xz*) \
557 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
558 *.tar.Z*) \
559 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
560 *.shar.gz*) \
561 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
562 *.zip*) \
563 unzip $(distdir).zip ;;\
564 esac
565 chmod -R a-w $(distdir)
566 chmod u+w $(distdir)
567 mkdir $(distdir)/_build $(distdir)/_inst
568 chmod a-w $(distdir)
569 test -d $(distdir)/_build || exit 0; \
570 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
571 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
572 && am__cwd=`pwd` \
573 && $(am__cd) $(distdir)/_build \
574 && ../configure \
575 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
576 $(DISTCHECK_CONFIGURE_FLAGS) \
577 --srcdir=.. --prefix="$$dc_install_base" \
578 && $(MAKE) $(AM_MAKEFLAGS) \
579 && $(MAKE) $(AM_MAKEFLAGS) dvi \
580 && $(MAKE) $(AM_MAKEFLAGS) check \
581 && $(MAKE) $(AM_MAKEFLAGS) install \
582 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
583 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
584 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
585 distuninstallcheck \
586 && chmod -R a-w "$$dc_install_base" \
587 && ({ \
588 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
589 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
590 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
591 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
592 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
593 } || { rm -rf "$$dc_destdir"; exit 1; }) \
594 && rm -rf "$$dc_destdir" \
595 && $(MAKE) $(AM_MAKEFLAGS) dist \
596 && rm -rf $(DIST_ARCHIVES) \
597 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
598 && cd "$$am__cwd" \
599 || exit 1
600 $(am__post_remove_distdir)
601 @(echo "$(distdir) archives ready for distribution: "; \
602 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
603 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
604 distuninstallcheck:
605 @test -n '$(distuninstallcheck_dir)' || { \
606 echo 'ERROR: trying to run $@ with an empty' \
607 '$$(distuninstallcheck_dir)' >&2; \
608 exit 1; \
609 }; \
610 $(am__cd) '$(distuninstallcheck_dir)' || { \
611 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
612 exit 1; \
613 }; \
614 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
615 || { echo "ERROR: files left after uninstall:" ; \
616 if test -n "$(DESTDIR)"; then \
617 echo " (check DESTDIR support)"; \
618 fi ; \
619 $(distuninstallcheck_listfiles) ; \
620 exit 1; } >&2
621 distcleancheck: distclean
622 @if test '$(srcdir)' = . ; then \
623 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
624 exit 1 ; \
625 fi
626 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
627 || { echo "ERROR: files left in build directory after distclean:" ; \
628 $(distcleancheck_listfiles) ; \
629 exit 1; } >&2
630 check-am: all-am
631 check: check-recursive
632 all-am: Makefile config.h
633 installdirs: installdirs-recursive
634 installdirs-am:
635 install: install-recursive
636 install-exec: install-exec-recursive
637 install-data: install-data-recursive
638 uninstall: uninstall-recursive
639
640 install-am: all-am
641 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
642
643 installcheck: installcheck-recursive
644 install-strip:
645 if test -z '$(STRIP)'; then \
646 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
647 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
648 install; \
649 else \
650 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
651 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
652 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
653 fi
654 mostlyclean-generic:
655
656 clean-generic:
657
658 distclean-generic:
659 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
660 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
661
662 maintainer-clean-generic:
663 @echo "This command is intended for maintainers to use"
664 @echo "it deletes files that may require special tools to rebuild."
665 clean: clean-recursive
666
667 clean-am: clean-generic mostlyclean-am
668
669 distclean: distclean-recursive
670 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
671 -rm -f Makefile
672 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
673
674 dvi: dvi-recursive
675
676 dvi-am:
677
678 html: html-recursive
679
680 html-am:
681
682 info: info-recursive
683
684 info-am:
685
686 install-data-am:
687
688 install-dvi: install-dvi-recursive
689
690 install-dvi-am:
691
692 install-exec-am:
693
694 install-html: install-html-recursive
695
696 install-html-am:
697
698 install-info: install-info-recursive
699
700 install-info-am:
701
702 install-man:
703
704 install-pdf: install-pdf-recursive
705
706 install-pdf-am:
707
708 install-ps: install-ps-recursive
709
710 install-ps-am:
711
712 installcheck-am:
713
714 maintainer-clean: maintainer-clean-recursive
715 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
716 -rm -rf $(top_srcdir)/autom4te.cache
717 -rm -f Makefile
718 maintainer-clean-am: distclean-am maintainer-clean-generic
719
720 mostlyclean: mostlyclean-recursive
721
722 mostlyclean-am: mostlyclean-generic
723
724 pdf: pdf-recursive
725
726 pdf-am:
727
728 ps: ps-recursive
729
730 ps-am:
731
732 uninstall-am:
733
734 .MAKE: $(am__recursive_targets) all install-am install-strip
735
736 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
737 am--refresh check check-am clean clean-cscope clean-generic \
738 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
739 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
740 distcheck distclean distclean-generic distclean-hdr \
741 distclean-tags distcleancheck distdir distuninstallcheck dvi \
742 dvi-am html html-am info info-am install install-am \
743 install-data install-data-am install-dvi install-dvi-am \
744 install-exec install-exec-am install-html install-html-am \
745 install-info install-info-am install-man install-pdf \
746 install-pdf-am install-ps install-ps-am install-strip \
747 installcheck installcheck-am installdirs installdirs-am \
748 maintainer-clean maintainer-clean-generic mostlyclean \
749 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
750 uninstall-am
751
752
753 # Tell versions [3.59,3.63) of GNU make to not export all variables.
754 # Otherwise a system limit (for SysV at least) may be exceeded.
755 .NOEXPORT:
+0
-1364
aclocal.m4 less more
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 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 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 1 (pkg-config-0.24)
24 #
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 #
27 # This program is free software; you can redistribute it and/or modify
28 # it under the terms of the GNU General Public License as published by
29 # the Free Software Foundation; either version 2 of the License, or
30 # (at your option) any later version.
31 #
32 # This program is distributed in the hope that it will be useful, but
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 # General Public License for more details.
36 #
37 # You should have received a copy of the GNU General Public License
38 # along with this program; if not, write to the Free Software
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 #
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program that contains a
43 # configuration script generated by Autoconf, you may include it under
44 # the same distribution terms that you use for the rest of that program.
45
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
47 # ----------------------------------
48 AC_DEFUN([PKG_PROG_PKG_CONFIG],
49 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
50 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
51 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
52 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
53 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
54 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
55
56 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
57 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
58 fi
59 if test -n "$PKG_CONFIG"; then
60 _pkg_min_version=m4_default([$1], [0.9.0])
61 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
62 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
63 AC_MSG_RESULT([yes])
64 else
65 AC_MSG_RESULT([no])
66 PKG_CONFIG=""
67 fi
68 fi[]dnl
69 ])# PKG_PROG_PKG_CONFIG
70
71 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
72 #
73 # Check to see whether a particular set of modules exists. Similar
74 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
75 #
76 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
77 # only at the first occurence in configure.ac, so if the first place
78 # it's called might be skipped (such as if it is within an "if", you
79 # have to call PKG_CHECK_EXISTS manually
80 # --------------------------------------------------------------
81 AC_DEFUN([PKG_CHECK_EXISTS],
82 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
83 if test -n "$PKG_CONFIG" && \
84 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
85 m4_default([$2], [:])
86 m4_ifvaln([$3], [else
87 $3])dnl
88 fi])
89
90 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91 # ---------------------------------------------
92 m4_define([_PKG_CONFIG],
93 [if test -n "$$1"; then
94 pkg_cv_[]$1="$$1"
95 elif test -n "$PKG_CONFIG"; then
96 PKG_CHECK_EXISTS([$3],
97 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
98 test "x$?" != "x0" && pkg_failed=yes ],
99 [pkg_failed=yes])
100 else
101 pkg_failed=untried
102 fi[]dnl
103 ])# _PKG_CONFIG
104
105 # _PKG_SHORT_ERRORS_SUPPORTED
106 # -----------------------------
107 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
108 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
110 _pkg_short_errors_supported=yes
111 else
112 _pkg_short_errors_supported=no
113 fi[]dnl
114 ])# _PKG_SHORT_ERRORS_SUPPORTED
115
116
117 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
118 # [ACTION-IF-NOT-FOUND])
119 #
120 #
121 # Note that if there is a possibility the first call to
122 # PKG_CHECK_MODULES might not happen, you should be sure to include an
123 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
124 #
125 #
126 # --------------------------------------------------------------
127 AC_DEFUN([PKG_CHECK_MODULES],
128 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
129 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
130 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
131
132 pkg_failed=no
133 AC_MSG_CHECKING([for $1])
134
135 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
136 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
137
138 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
139 and $1[]_LIBS to avoid the need to call pkg-config.
140 See the pkg-config man page for more details.])
141
142 if test $pkg_failed = yes; then
143 AC_MSG_RESULT([no])
144 _PKG_SHORT_ERRORS_SUPPORTED
145 if test $_pkg_short_errors_supported = yes; then
146 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
147 else
148 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
149 fi
150 # Put the nasty error message in config.log where it belongs
151 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
152
153 m4_default([$4], [AC_MSG_ERROR(
154 [Package requirements ($2) were not met:
155
156 $$1_PKG_ERRORS
157
158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
159 installed software in a non-standard prefix.
160
161 _PKG_TEXT])[]dnl
162 ])
163 elif test $pkg_failed = untried; then
164 AC_MSG_RESULT([no])
165 m4_default([$4], [AC_MSG_FAILURE(
166 [The pkg-config script could not be found or is too old. Make sure it
167 is in your PATH or set the PKG_CONFIG environment variable to the full
168 path to pkg-config.
169
170 _PKG_TEXT
171
172 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
173 ])
174 else
175 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
176 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
177 AC_MSG_RESULT([yes])
178 $3
179 fi[]dnl
180 ])# PKG_CHECK_MODULES
181
182
183 # PKG_INSTALLDIR(DIRECTORY)
184 # -------------------------
185 # Substitutes the variable pkgconfigdir as the location where a module
186 # should install pkg-config .pc files. By default the directory is
187 # $libdir/pkgconfig, but the default can be changed by passing
188 # DIRECTORY. The user can override through the --with-pkgconfigdir
189 # parameter.
190 AC_DEFUN([PKG_INSTALLDIR],
191 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
192 m4_pushdef([pkg_description],
193 [pkg-config installation directory @<:@]pkg_default[@:>@])
194 AC_ARG_WITH([pkgconfigdir],
195 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
196 [with_pkgconfigdir=]pkg_default)
197 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
198 m4_popdef([pkg_default])
199 m4_popdef([pkg_description])
200 ]) dnl PKG_INSTALLDIR
201
202
203 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
204 # -------------------------
205 # Substitutes the variable noarch_pkgconfigdir as the location where a
206 # module should install arch-independent pkg-config .pc files. By
207 # default the directory is $datadir/pkgconfig, but the default can be
208 # changed by passing DIRECTORY. The user can override through the
209 # --with-noarch-pkgconfigdir parameter.
210 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
211 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
212 m4_pushdef([pkg_description],
213 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
214 AC_ARG_WITH([noarch-pkgconfigdir],
215 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
216 [with_noarch_pkgconfigdir=]pkg_default)
217 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
218 m4_popdef([pkg_default])
219 m4_popdef([pkg_description])
220 ]) dnl PKG_NOARCH_INSTALLDIR
221
222
223 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
224 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
225 # -------------------------------------------
226 # Retrieves the value of the pkg-config variable for the given module.
227 AC_DEFUN([PKG_CHECK_VAR],
228 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
229 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
230
231 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
232 AS_VAR_COPY([$1], [pkg_cv_][$1])
233
234 AS_VAR_IF([$1], [""], [$5], [$4])dnl
235 ])# PKG_CHECK_VAR
236
237 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
238 #
239 # This file is free software; the Free Software Foundation
240 # gives unlimited permission to copy and/or distribute it,
241 # with or without modifications, as long as this notice is preserved.
242
243 # AM_AUTOMAKE_VERSION(VERSION)
244 # ----------------------------
245 # Automake X.Y traces this macro to ensure aclocal.m4 has been
246 # generated from the m4 files accompanying Automake X.Y.
247 # (This private macro should not be called outside this file.)
248 AC_DEFUN([AM_AUTOMAKE_VERSION],
249 [am__api_version='1.14'
250 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
251 dnl require some minimum version. Point them to the right macro.
252 m4_if([$1], [1.14.1], [],
253 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
254 ])
255
256 # _AM_AUTOCONF_VERSION(VERSION)
257 # -----------------------------
258 # aclocal traces this macro to find the Autoconf version.
259 # This is a private macro too. Using m4_define simplifies
260 # the logic in aclocal, which can simply ignore this definition.
261 m4_define([_AM_AUTOCONF_VERSION], [])
262
263 # AM_SET_CURRENT_AUTOMAKE_VERSION
264 # -------------------------------
265 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
266 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
267 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
268 [AM_AUTOMAKE_VERSION([1.14.1])dnl
269 m4_ifndef([AC_AUTOCONF_VERSION],
270 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
271 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
272
273 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
274
275 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
276 #
277 # This file is free software; the Free Software Foundation
278 # gives unlimited permission to copy and/or distribute it,
279 # with or without modifications, as long as this notice is preserved.
280
281 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
282 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
283 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
284 #
285 # Of course, Automake must honor this variable whenever it calls a
286 # tool from the auxiliary directory. The problem is that $srcdir (and
287 # therefore $ac_aux_dir as well) can be either absolute or relative,
288 # depending on how configure is run. This is pretty annoying, since
289 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
290 # source directory, any form will work fine, but in subdirectories a
291 # relative path needs to be adjusted first.
292 #
293 # $ac_aux_dir/missing
294 # fails when called from a subdirectory if $ac_aux_dir is relative
295 # $top_srcdir/$ac_aux_dir/missing
296 # fails if $ac_aux_dir is absolute,
297 # fails when called from a subdirectory in a VPATH build with
298 # a relative $ac_aux_dir
299 #
300 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
301 # are both prefixed by $srcdir. In an in-source build this is usually
302 # harmless because $srcdir is '.', but things will broke when you
303 # start a VPATH build or use an absolute $srcdir.
304 #
305 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
306 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
307 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
308 # and then we would define $MISSING as
309 # MISSING="\${SHELL} $am_aux_dir/missing"
310 # This will work as long as MISSING is not called from configure, because
311 # unfortunately $(top_srcdir) has no meaning in configure.
312 # However there are other variables, like CC, which are often used in
313 # configure, and could therefore not use this "fixed" $ac_aux_dir.
314 #
315 # Another solution, used here, is to always expand $ac_aux_dir to an
316 # absolute PATH. The drawback is that using absolute paths prevent a
317 # configured tree to be moved without reconfiguration.
318
319 AC_DEFUN([AM_AUX_DIR_EXPAND],
320 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
321 # Expand $ac_aux_dir to an absolute path.
322 am_aux_dir=`cd "$ac_aux_dir" && pwd`
323 ])
324
325 # AM_CONDITIONAL -*- Autoconf -*-
326
327 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
328 #
329 # This file is free software; the Free Software Foundation
330 # gives unlimited permission to copy and/or distribute it,
331 # with or without modifications, as long as this notice is preserved.
332
333 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
334 # -------------------------------------
335 # Define a conditional.
336 AC_DEFUN([AM_CONDITIONAL],
337 [AC_PREREQ([2.52])dnl
338 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
339 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
340 AC_SUBST([$1_TRUE])dnl
341 AC_SUBST([$1_FALSE])dnl
342 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
343 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
344 m4_define([_AM_COND_VALUE_$1], [$2])dnl
345 if $2; then
346 $1_TRUE=
347 $1_FALSE='#'
348 else
349 $1_TRUE='#'
350 $1_FALSE=
351 fi
352 AC_CONFIG_COMMANDS_PRE(
353 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
354 AC_MSG_ERROR([[conditional "$1" was never defined.
355 Usually this means the macro was only invoked conditionally.]])
356 fi])])
357
358 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
359 #
360 # This file is free software; the Free Software Foundation
361 # gives unlimited permission to copy and/or distribute it,
362 # with or without modifications, as long as this notice is preserved.
363
364
365 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
366 # written in clear, in which case automake, when reading aclocal.m4,
367 # will think it sees a *use*, and therefore will trigger all it's
368 # C support machinery. Also note that it means that autoscan, seeing
369 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
370
371
372 # _AM_DEPENDENCIES(NAME)
373 # ----------------------
374 # See how the compiler implements dependency checking.
375 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
376 # We try a few techniques and use that to set a single cache variable.
377 #
378 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
379 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
380 # dependency, and given that the user is not expected to run this macro,
381 # just rely on AC_PROG_CC.
382 AC_DEFUN([_AM_DEPENDENCIES],
383 [AC_REQUIRE([AM_SET_DEPDIR])dnl
384 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
385 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
386 AC_REQUIRE([AM_DEP_TRACK])dnl
387
388 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
389 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
390 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
391 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
392 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
393 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
394 [depcc="$$1" am_compiler_list=])
395
396 AC_CACHE_CHECK([dependency style of $depcc],
397 [am_cv_$1_dependencies_compiler_type],
398 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
399 # We make a subdir and do the tests there. Otherwise we can end up
400 # making bogus files that we don't know about and never remove. For
401 # instance it was reported that on HP-UX the gcc test will end up
402 # making a dummy file named 'D' -- because '-MD' means "put the output
403 # in D".
404 rm -rf conftest.dir
405 mkdir conftest.dir
406 # Copy depcomp to subdir because otherwise we won't find it if we're
407 # using a relative directory.
408 cp "$am_depcomp" conftest.dir
409 cd conftest.dir
410 # We will build objects and dependencies in a subdirectory because
411 # it helps to detect inapplicable dependency modes. For instance
412 # both Tru64's cc and ICC support -MD to output dependencies as a
413 # side effect of compilation, but ICC will put the dependencies in
414 # the current directory while Tru64 will put them in the object
415 # directory.
416 mkdir sub
417
418 am_cv_$1_dependencies_compiler_type=none
419 if test "$am_compiler_list" = ""; then
420 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
421 fi
422 am__universal=false
423 m4_case([$1], [CC],
424 [case " $depcc " in #(
425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
426 esac],
427 [CXX],
428 [case " $depcc " in #(
429 *\ -arch\ *\ -arch\ *) am__universal=true ;;
430 esac])
431
432 for depmode in $am_compiler_list; do
433 # Setup a source with many dependencies, because some compilers
434 # like to wrap large dependency lists on column 80 (with \), and
435 # we should not choose a depcomp mode which is confused by this.
436 #
437 # We need to recreate these files for each test, as the compiler may
438 # overwrite some of them when testing with obscure command lines.
439 # This happens at least with the AIX C compiler.
440 : > sub/conftest.c
441 for i in 1 2 3 4 5 6; do
442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
443 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
444 # Solaris 10 /bin/sh.
445 echo '/* dummy */' > sub/conftst$i.h
446 done
447 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
448
449 # We check with '-c' and '-o' for the sake of the "dashmstdout"
450 # mode. It turns out that the SunPro C++ compiler does not properly
451 # handle '-M -o', and we need to detect this. Also, some Intel
452 # versions had trouble with output in subdirs.
453 am__obj=sub/conftest.${OBJEXT-o}
454 am__minus_obj="-o $am__obj"
455 case $depmode in
456 gcc)
457 # This depmode causes a compiler race in universal mode.
458 test "$am__universal" = false || continue
459 ;;
460 nosideeffect)
461 # After this tag, mechanisms are not by side-effect, so they'll
462 # only be used when explicitly requested.
463 if test "x$enable_dependency_tracking" = xyes; then
464 continue
465 else
466 break
467 fi
468 ;;
469 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
470 # This compiler won't grok '-c -o', but also, the minuso test has
471 # not run yet. These depmodes are late enough in the game, and
472 # so weak that their functioning should not be impacted.
473 am__obj=conftest.${OBJEXT-o}
474 am__minus_obj=
475 ;;
476 none) break ;;
477 esac
478 if depmode=$depmode \
479 source=sub/conftest.c object=$am__obj \
480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
481 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
482 >/dev/null 2>conftest.err &&
483 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
484 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
485 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
486 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
487 # icc doesn't choke on unknown options, it will just issue warnings
488 # or remarks (even with -Werror). So we grep stderr for any message
489 # that says an option was ignored or not supported.
490 # When given -MP, icc 7.0 and 7.1 complain thusly:
491 # icc: Command line warning: ignoring option '-M'; no argument required
492 # The diagnosis changed in icc 8.0:
493 # icc: Command line remark: option '-MP' not supported
494 if (grep 'ignoring option' conftest.err ||
495 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
496 am_cv_$1_dependencies_compiler_type=$depmode
497 break
498 fi
499 fi
500 done
501
502 cd ..
503 rm -rf conftest.dir
504 else
505 am_cv_$1_dependencies_compiler_type=none
506 fi
507 ])
508 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
509 AM_CONDITIONAL([am__fastdep$1], [
510 test "x$enable_dependency_tracking" != xno \
511 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
512 ])
513
514
515 # AM_SET_DEPDIR
516 # -------------
517 # Choose a directory name for dependency files.
518 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
519 AC_DEFUN([AM_SET_DEPDIR],
520 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
521 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
522 ])
523
524
525 # AM_DEP_TRACK
526 # ------------
527 AC_DEFUN([AM_DEP_TRACK],
528 [AC_ARG_ENABLE([dependency-tracking], [dnl
529 AS_HELP_STRING(
530 [--enable-dependency-tracking],
531 [do not reject slow dependency extractors])
532 AS_HELP_STRING(
533 [--disable-dependency-tracking],
534 [speeds up one-time build])])
535 if test "x$enable_dependency_tracking" != xno; then
536 am_depcomp="$ac_aux_dir/depcomp"
537 AMDEPBACKSLASH='\'
538 am__nodep='_no'
539 fi
540 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
541 AC_SUBST([AMDEPBACKSLASH])dnl
542 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
543 AC_SUBST([am__nodep])dnl
544 _AM_SUBST_NOTMAKE([am__nodep])dnl
545 ])
546
547 # Generate code to set up dependency tracking. -*- Autoconf -*-
548
549 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
550 #
551 # This file is free software; the Free Software Foundation
552 # gives unlimited permission to copy and/or distribute it,
553 # with or without modifications, as long as this notice is preserved.
554
555
556 # _AM_OUTPUT_DEPENDENCY_COMMANDS
557 # ------------------------------
558 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
559 [{
560 # Older Autoconf quotes --file arguments for eval, but not when files
561 # are listed without --file. Let's play safe and only enable the eval
562 # if we detect the quoting.
563 case $CONFIG_FILES in
564 *\'*) eval set x "$CONFIG_FILES" ;;
565 *) set x $CONFIG_FILES ;;
566 esac
567 shift
568 for mf
569 do
570 # Strip MF so we end up with the name of the file.
571 mf=`echo "$mf" | sed -e 's/:.*$//'`
572 # Check whether this is an Automake generated Makefile or not.
573 # We used to match only the files named 'Makefile.in', but
574 # some people rename them; so instead we look at the file content.
575 # Grep'ing the first line is not enough: some people post-process
576 # each Makefile.in and add a new line on top of each file to say so.
577 # Grep'ing the whole file is not good either: AIX grep has a line
578 # limit of 2048, but all sed's we know have understand at least 4000.
579 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
580 dirpart=`AS_DIRNAME("$mf")`
581 else
582 continue
583 fi
584 # Extract the definition of DEPDIR, am__include, and am__quote
585 # from the Makefile without running 'make'.
586 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
587 test -z "$DEPDIR" && continue
588 am__include=`sed -n 's/^am__include = //p' < "$mf"`
589 test -z "$am__include" && continue
590 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
591 # Find all dependency output files, they are included files with
592 # $(DEPDIR) in their names. We invoke sed twice because it is the
593 # simplest approach to changing $(DEPDIR) to its actual value in the
594 # expansion.
595 for file in `sed -n "
596 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
597 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
598 # Make sure the directory exists.
599 test -f "$dirpart/$file" && continue
600 fdir=`AS_DIRNAME(["$file"])`
601 AS_MKDIR_P([$dirpart/$fdir])
602 # echo "creating $dirpart/$file"
603 echo '# dummy' > "$dirpart/$file"
604 done
605 done
606 }
607 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
608
609
610 # AM_OUTPUT_DEPENDENCY_COMMANDS
611 # -----------------------------
612 # This macro should only be invoked once -- use via AC_REQUIRE.
613 #
614 # This code is only required when automatic dependency tracking
615 # is enabled. FIXME. This creates each '.P' file that we will
616 # need in order to bootstrap the dependency handling code.
617 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
618 [AC_CONFIG_COMMANDS([depfiles],
619 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
620 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
621 ])
622
623 # Do all the work for Automake. -*- Autoconf -*-
624
625 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
626 #
627 # This file is free software; the Free Software Foundation
628 # gives unlimited permission to copy and/or distribute it,
629 # with or without modifications, as long as this notice is preserved.
630
631 # This macro actually does too much. Some checks are only needed if
632 # your package does certain things. But this isn't really a big deal.
633
634 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
635 m4_define([AC_PROG_CC],
636 m4_defn([AC_PROG_CC])
637 [_AM_PROG_CC_C_O
638 ])
639
640 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
641 # AM_INIT_AUTOMAKE([OPTIONS])
642 # -----------------------------------------------
643 # The call with PACKAGE and VERSION arguments is the old style
644 # call (pre autoconf-2.50), which is being phased out. PACKAGE
645 # and VERSION should now be passed to AC_INIT and removed from
646 # the call to AM_INIT_AUTOMAKE.
647 # We support both call styles for the transition. After
648 # the next Automake release, Autoconf can make the AC_INIT
649 # arguments mandatory, and then we can depend on a new Autoconf
650 # release and drop the old call support.
651 AC_DEFUN([AM_INIT_AUTOMAKE],
652 [AC_PREREQ([2.65])dnl
653 dnl Autoconf wants to disallow AM_ names. We explicitly allow
654 dnl the ones we care about.
655 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
656 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
657 AC_REQUIRE([AC_PROG_INSTALL])dnl
658 if test "`cd $srcdir && pwd`" != "`pwd`"; then
659 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
660 # is not polluted with repeated "-I."
661 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
662 # test to see if srcdir already configured
663 if test -f $srcdir/config.status; then
664 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
665 fi
666 fi
667
668 # test whether we have cygpath
669 if test -z "$CYGPATH_W"; then
670 if (cygpath --version) >/dev/null 2>/dev/null; then
671 CYGPATH_W='cygpath -w'
672 else
673 CYGPATH_W=echo
674 fi
675 fi
676 AC_SUBST([CYGPATH_W])
677
678 # Define the identity of the package.
679 dnl Distinguish between old-style and new-style calls.
680 m4_ifval([$2],
681 [AC_DIAGNOSE([obsolete],
682 [$0: two- and three-arguments forms are deprecated.])
683 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
684 AC_SUBST([PACKAGE], [$1])dnl
685 AC_SUBST([VERSION], [$2])],
686 [_AM_SET_OPTIONS([$1])dnl
687 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
688 m4_if(
689 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
690 [ok:ok],,
691 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
692 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
693 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
694
695 _AM_IF_OPTION([no-define],,
696 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
697 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
698
699 # Some tools Automake needs.
700 AC_REQUIRE([AM_SANITY_CHECK])dnl
701 AC_REQUIRE([AC_ARG_PROGRAM])dnl
702 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
703 AM_MISSING_PROG([AUTOCONF], [autoconf])
704 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
705 AM_MISSING_PROG([AUTOHEADER], [autoheader])
706 AM_MISSING_PROG([MAKEINFO], [makeinfo])
707 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
708 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
709 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
710 # For better backward compatibility. To be removed once Automake 1.9.x
711 # dies out for good. For more background, see:
712 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
714 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
715 # We need awk for the "check" target. The system "awk" is bad on
716 # some platforms.
717 AC_REQUIRE([AC_PROG_AWK])dnl
718 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
719 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
720 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
721 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
722 [_AM_PROG_TAR([v7])])])
723 _AM_IF_OPTION([no-dependencies],,
724 [AC_PROVIDE_IFELSE([AC_PROG_CC],
725 [_AM_DEPENDENCIES([CC])],
726 [m4_define([AC_PROG_CC],
727 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
728 AC_PROVIDE_IFELSE([AC_PROG_CXX],
729 [_AM_DEPENDENCIES([CXX])],
730 [m4_define([AC_PROG_CXX],
731 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
732 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
733 [_AM_DEPENDENCIES([OBJC])],
734 [m4_define([AC_PROG_OBJC],
735 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
736 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
737 [_AM_DEPENDENCIES([OBJCXX])],
738 [m4_define([AC_PROG_OBJCXX],
739 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
740 ])
741 AC_REQUIRE([AM_SILENT_RULES])dnl
742 dnl The testsuite driver may need to know about EXEEXT, so add the
743 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
744 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
745 AC_CONFIG_COMMANDS_PRE(dnl
746 [m4_provide_if([_AM_COMPILER_EXEEXT],
747 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
748
749 # POSIX will say in a future version that running "rm -f" with no argument
750 # is OK; and we want to be able to make that assumption in our Makefile
751 # recipes. So use an aggressive probe to check that the usage we want is
752 # actually supported "in the wild" to an acceptable degree.
753 # See automake bug#10828.
754 # To make any issue more visible, cause the running configure to be aborted
755 # by default if the 'rm' program in use doesn't match our expectations; the
756 # user can still override this though.
757 if rm -f && rm -fr && rm -rf; then : OK; else
758 cat >&2 <<'END'
759 Oops!
760
761 Your 'rm' program seems unable to run without file operands specified
762 on the command line, even when the '-f' option is present. This is contrary
763 to the behaviour of most rm programs out there, and not conforming with
764 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
765
766 Please tell bug-automake@gnu.org about your system, including the value
767 of your $PATH and any error possibly output before this message. This
768 can help us improve future automake versions.
769
770 END
771 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
772 echo 'Configuration will proceed anyway, since you have set the' >&2
773 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
774 echo >&2
775 else
776 cat >&2 <<'END'
777 Aborting the configuration process, to ensure you take notice of the issue.
778
779 You can download and install GNU coreutils to get an 'rm' implementation
780 that behaves properly: <http://www.gnu.org/software/coreutils/>.
781
782 If you want to complete the configuration process using your problematic
783 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
784 to "yes", and re-run configure.
785
786 END
787 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
788 fi
789 fi
790 ])
791
792 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
793 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
794 dnl mangled by Autoconf and run in a shell conditional statement.
795 m4_define([_AC_COMPILER_EXEEXT],
796 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
797
798 # When config.status generates a header, we must update the stamp-h file.
799 # This file resides in the same directory as the config header
800 # that is generated. The stamp files are numbered to have different names.
801
802 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
803 # loop where config.status creates the headers, so we can generate
804 # our stamp files there.
805 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
806 [# Compute $1's index in $config_headers.
807 _am_arg=$1
808 _am_stamp_count=1
809 for _am_header in $config_headers :; do
810 case $_am_header in
811 $_am_arg | $_am_arg:* )
812 break ;;
813 * )
814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
815 esac
816 done
817 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
818
819 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
820 #
821 # This file is free software; the Free Software Foundation
822 # gives unlimited permission to copy and/or distribute it,
823 # with or without modifications, as long as this notice is preserved.
824
825 # AM_PROG_INSTALL_SH
826 # ------------------
827 # Define $install_sh.
828 AC_DEFUN([AM_PROG_INSTALL_SH],
829 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
830 if test x"${install_sh}" != xset; then
831 case $am_aux_dir in
832 *\ * | *\ *)
833 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
834 *)
835 install_sh="\${SHELL} $am_aux_dir/install-sh"
836 esac
837 fi
838 AC_SUBST([install_sh])])
839
840 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
841 #
842 # This file is free software; the Free Software Foundation
843 # gives unlimited permission to copy and/or distribute it,
844 # with or without modifications, as long as this notice is preserved.
845
846 # Check whether the underlying file-system supports filenames
847 # with a leading dot. For instance MS-DOS doesn't.
848 AC_DEFUN([AM_SET_LEADING_DOT],
849 [rm -rf .tst 2>/dev/null
850 mkdir .tst 2>/dev/null
851 if test -d .tst; then
852 am__leading_dot=.
853 else
854 am__leading_dot=_
855 fi
856 rmdir .tst 2>/dev/null
857 AC_SUBST([am__leading_dot])])
858
859 # Check to see how 'make' treats includes. -*- Autoconf -*-
860
861 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
862 #
863 # This file is free software; the Free Software Foundation
864 # gives unlimited permission to copy and/or distribute it,
865 # with or without modifications, as long as this notice is preserved.
866
867 # AM_MAKE_INCLUDE()
868 # -----------------
869 # Check to see how make treats includes.
870 AC_DEFUN([AM_MAKE_INCLUDE],
871 [am_make=${MAKE-make}
872 cat > confinc << 'END'
873 am__doit:
874 @echo this is the am__doit target
875 .PHONY: am__doit
876 END
877 # If we don't find an include directive, just comment out the code.
878 AC_MSG_CHECKING([for style of include used by $am_make])
879 am__include="#"
880 am__quote=
881 _am_result=none
882 # First try GNU make style include.
883 echo "include confinc" > confmf
884 # Ignore all kinds of additional output from 'make'.
885 case `$am_make -s -f confmf 2> /dev/null` in #(
886 *the\ am__doit\ target*)
887 am__include=include
888 am__quote=
889 _am_result=GNU
890 ;;
891 esac
892 # Now try BSD make style include.
893 if test "$am__include" = "#"; then
894 echo '.include "confinc"' > confmf
895 case `$am_make -s -f confmf 2> /dev/null` in #(
896 *the\ am__doit\ target*)
897 am__include=.include
898 am__quote="\""
899 _am_result=BSD
900 ;;
901 esac
902 fi
903 AC_SUBST([am__include])
904 AC_SUBST([am__quote])
905 AC_MSG_RESULT([$_am_result])
906 rm -f confinc confmf
907 ])
908
909 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
910
911 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
912 #
913 # This file is free software; the Free Software Foundation
914 # gives unlimited permission to copy and/or distribute it,
915 # with or without modifications, as long as this notice is preserved.
916
917 # AM_MISSING_PROG(NAME, PROGRAM)
918 # ------------------------------
919 AC_DEFUN([AM_MISSING_PROG],
920 [AC_REQUIRE([AM_MISSING_HAS_RUN])
921 $1=${$1-"${am_missing_run}$2"}
922 AC_SUBST($1)])
923
924 # AM_MISSING_HAS_RUN
925 # ------------------
926 # Define MISSING if not defined so far and test if it is modern enough.
927 # If it is, set am_missing_run to use it, otherwise, to nothing.
928 AC_DEFUN([AM_MISSING_HAS_RUN],
929 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
930 AC_REQUIRE_AUX_FILE([missing])dnl
931 if test x"${MISSING+set}" != xset; then
932 case $am_aux_dir in
933 *\ * | *\ *)
934 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
935 *)
936 MISSING="\${SHELL} $am_aux_dir/missing" ;;
937 esac
938 fi
939 # Use eval to expand $SHELL
940 if eval "$MISSING --is-lightweight"; then
941 am_missing_run="$MISSING "
942 else
943 am_missing_run=
944 AC_MSG_WARN(['missing' script is too old or missing])
945 fi
946 ])
947
948 # Helper functions for option handling. -*- Autoconf -*-
949
950 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
951 #
952 # This file is free software; the Free Software Foundation
953 # gives unlimited permission to copy and/or distribute it,
954 # with or without modifications, as long as this notice is preserved.
955
956 # _AM_MANGLE_OPTION(NAME)
957 # -----------------------
958 AC_DEFUN([_AM_MANGLE_OPTION],
959 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
960
961 # _AM_SET_OPTION(NAME)
962 # --------------------
963 # Set option NAME. Presently that only means defining a flag for this option.
964 AC_DEFUN([_AM_SET_OPTION],
965 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
966
967 # _AM_SET_OPTIONS(OPTIONS)
968 # ------------------------
969 # OPTIONS is a space-separated list of Automake options.
970 AC_DEFUN([_AM_SET_OPTIONS],
971 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
972
973 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
974 # -------------------------------------------
975 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
976 AC_DEFUN([_AM_IF_OPTION],
977 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
978
979 # Copyright (C) 1999-2013 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_PROG_CC_C_O
986 # ---------------
987 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
988 # to automatically call this.
989 AC_DEFUN([_AM_PROG_CC_C_O],
990 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
991 AC_REQUIRE_AUX_FILE([compile])dnl
992 AC_LANG_PUSH([C])dnl
993 AC_CACHE_CHECK(
994 [whether $CC understands -c and -o together],
995 [am_cv_prog_cc_c_o],
996 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
997 # Make sure it works both with $CC and with simple cc.
998 # Following AC_PROG_CC_C_O, we do the test twice because some
999 # compilers refuse to overwrite an existing .o file with -o,
1000 # though they will create one.
1001 am_cv_prog_cc_c_o=yes
1002 for am_i in 1 2; do
1003 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1004 && test -f conftest2.$ac_objext; then
1005 : OK
1006 else
1007 am_cv_prog_cc_c_o=no
1008 break
1009 fi
1010 done
1011 rm -f core conftest*
1012 unset am_i])
1013 if test "$am_cv_prog_cc_c_o" != yes; then
1014 # Losing compiler, so override with the script.
1015 # FIXME: It is wrong to rewrite CC.
1016 # But if we don't then we get into trouble of one sort or another.
1017 # A longer-term fix would be to have automake use am__CC in this case,
1018 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1019 CC="$am_aux_dir/compile $CC"
1020 fi
1021 AC_LANG_POP([C])])
1022
1023 # For backward compatibility.
1024 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1025
1026 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1027 #
1028 # This file is free software; the Free Software Foundation
1029 # gives unlimited permission to copy and/or distribute it,
1030 # with or without modifications, as long as this notice is preserved.
1031
1032 # AM_RUN_LOG(COMMAND)
1033 # -------------------
1034 # Run COMMAND, save the exit status in ac_status, and log it.
1035 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1036 AC_DEFUN([AM_RUN_LOG],
1037 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1038 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1039 ac_status=$?
1040 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1041 (exit $ac_status); }])
1042
1043 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1044
1045 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1046 #
1047 # This file is free software; the Free Software Foundation
1048 # gives unlimited permission to copy and/or distribute it,
1049 # with or without modifications, as long as this notice is preserved.
1050
1051 # AM_SANITY_CHECK
1052 # ---------------
1053 AC_DEFUN([AM_SANITY_CHECK],
1054 [AC_MSG_CHECKING([whether build environment is sane])
1055 # Reject unsafe characters in $srcdir or the absolute working directory
1056 # name. Accept space and tab only in the latter.
1057 am_lf='
1058 '
1059 case `pwd` in
1060 *[[\\\"\#\$\&\'\`$am_lf]]*)
1061 AC_MSG_ERROR([unsafe absolute working directory name]);;
1062 esac
1063 case $srcdir in
1064 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1065 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1066 esac
1067
1068 # Do 'set' in a subshell so we don't clobber the current shell's
1069 # arguments. Must try -L first in case configure is actually a
1070 # symlink; some systems play weird games with the mod time of symlinks
1071 # (eg FreeBSD returns the mod time of the symlink's containing
1072 # directory).
1073 if (
1074 am_has_slept=no
1075 for am_try in 1 2; do
1076 echo "timestamp, slept: $am_has_slept" > conftest.file
1077 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1078 if test "$[*]" = "X"; then
1079 # -L didn't work.
1080 set X `ls -t "$srcdir/configure" conftest.file`
1081 fi
1082 if test "$[*]" != "X $srcdir/configure conftest.file" \
1083 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1084
1085 # If neither matched, then we have a broken ls. This can happen
1086 # if, for instance, CONFIG_SHELL is bash and it inherits a
1087 # broken ls alias from the environment. This has actually
1088 # happened. Such a system could not be considered "sane".
1089 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1090 alias in your environment])
1091 fi
1092 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1093 break
1094 fi
1095 # Just in case.
1096 sleep 1
1097 am_has_slept=yes
1098 done
1099 test "$[2]" = conftest.file
1100 )
1101 then
1102 # Ok.
1103 :
1104 else
1105 AC_MSG_ERROR([newly created file is older than distributed files!
1106 Check your system clock])
1107 fi
1108 AC_MSG_RESULT([yes])
1109 # If we didn't sleep, we still need to ensure time stamps of config.status and
1110 # generated files are strictly newer.
1111 am_sleep_pid=
1112 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1113 ( sleep 1 ) &
1114 am_sleep_pid=$!
1115 fi
1116 AC_CONFIG_COMMANDS_PRE(
1117 [AC_MSG_CHECKING([that generated files are newer than configure])
1118 if test -n "$am_sleep_pid"; then
1119 # Hide warnings about reused PIDs.
1120 wait $am_sleep_pid 2>/dev/null
1121 fi
1122 AC_MSG_RESULT([done])])
1123 rm -f conftest.file
1124 ])
1125
1126 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1127 #
1128 # This file is free software; the Free Software Foundation
1129 # gives unlimited permission to copy and/or distribute it,
1130 # with or without modifications, as long as this notice is preserved.
1131
1132 # AM_SILENT_RULES([DEFAULT])
1133 # --------------------------
1134 # Enable less verbose build rules; with the default set to DEFAULT
1135 # ("yes" being less verbose, "no" or empty being verbose).
1136 AC_DEFUN([AM_SILENT_RULES],
1137 [AC_ARG_ENABLE([silent-rules], [dnl
1138 AS_HELP_STRING(
1139 [--enable-silent-rules],
1140 [less verbose build output (undo: "make V=1")])
1141 AS_HELP_STRING(
1142 [--disable-silent-rules],
1143 [verbose build output (undo: "make V=0")])dnl
1144 ])
1145 case $enable_silent_rules in @%:@ (((
1146 yes) AM_DEFAULT_VERBOSITY=0;;
1147 no) AM_DEFAULT_VERBOSITY=1;;
1148 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1149 esac
1150 dnl
1151 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1152 dnl do not support nested variable expansions.
1153 dnl See automake bug#9928 and bug#10237.
1154 am_make=${MAKE-make}
1155 AC_CACHE_CHECK([whether $am_make supports nested variables],
1156 [am_cv_make_support_nested_variables],
1157 [if AS_ECHO([['TRUE=$(BAR$(V))
1158 BAR0=false
1159 BAR1=true
1160 V=1
1161 am__doit:
1162 @$(TRUE)
1163 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1164 am_cv_make_support_nested_variables=yes
1165 else
1166 am_cv_make_support_nested_variables=no
1167 fi])
1168 if test $am_cv_make_support_nested_variables = yes; then
1169 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1170 AM_V='$(V)'
1171 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1172 else
1173 AM_V=$AM_DEFAULT_VERBOSITY
1174 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1175 fi
1176 AC_SUBST([AM_V])dnl
1177 AM_SUBST_NOTMAKE([AM_V])dnl
1178 AC_SUBST([AM_DEFAULT_V])dnl
1179 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1180 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1181 AM_BACKSLASH='\'
1182 AC_SUBST([AM_BACKSLASH])dnl
1183 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1184 ])
1185
1186 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1187 #
1188 # This file is free software; the Free Software Foundation
1189 # gives unlimited permission to copy and/or distribute it,
1190 # with or without modifications, as long as this notice is preserved.
1191
1192 # AM_PROG_INSTALL_STRIP
1193 # ---------------------
1194 # One issue with vendor 'install' (even GNU) is that you can't
1195 # specify the program used to strip binaries. This is especially
1196 # annoying in cross-compiling environments, where the build's strip
1197 # is unlikely to handle the host's binaries.
1198 # Fortunately install-sh will honor a STRIPPROG variable, so we
1199 # always use install-sh in "make install-strip", and initialize
1200 # STRIPPROG with the value of the STRIP variable (set by the user).
1201 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1202 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1203 # Installed binaries are usually stripped using 'strip' when the user
1204 # run "make install-strip". However 'strip' might not be the right
1205 # tool to use in cross-compilation environments, therefore Automake
1206 # will honor the 'STRIP' environment variable to overrule this program.
1207 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1208 if test "$cross_compiling" != no; then
1209 AC_CHECK_TOOL([STRIP], [strip], :)
1210 fi
1211 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1212 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1213
1214 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1215 #
1216 # This file is free software; the Free Software Foundation
1217 # gives unlimited permission to copy and/or distribute it,
1218 # with or without modifications, as long as this notice is preserved.
1219
1220 # _AM_SUBST_NOTMAKE(VARIABLE)
1221 # ---------------------------
1222 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1223 # This macro is traced by Automake.
1224 AC_DEFUN([_AM_SUBST_NOTMAKE])
1225
1226 # AM_SUBST_NOTMAKE(VARIABLE)
1227 # --------------------------
1228 # Public sister of _AM_SUBST_NOTMAKE.
1229 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1230
1231 # Check how to create a tarball. -*- Autoconf -*-
1232
1233 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1234 #
1235 # This file is free software; the Free Software Foundation
1236 # gives unlimited permission to copy and/or distribute it,
1237 # with or without modifications, as long as this notice is preserved.
1238
1239 # _AM_PROG_TAR(FORMAT)
1240 # --------------------
1241 # Check how to create a tarball in format FORMAT.
1242 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1243 #
1244 # Substitute a variable $(am__tar) that is a command
1245 # writing to stdout a FORMAT-tarball containing the directory
1246 # $tardir.
1247 # tardir=directory && $(am__tar) > result.tar
1248 #
1249 # Substitute a variable $(am__untar) that extract such
1250 # a tarball read from stdin.
1251 # $(am__untar) < result.tar
1252 #
1253 AC_DEFUN([_AM_PROG_TAR],
1254 [# Always define AMTAR for backward compatibility. Yes, it's still used
1255 # in the wild :-( We should find a proper way to deprecate it ...
1256 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1257
1258 # We'll loop over all known methods to create a tar archive until one works.
1259 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1260
1261 m4_if([$1], [v7],
1262 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1263
1264 [m4_case([$1],
1265 [ustar],
1266 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1267 # There is notably a 21 bits limit for the UID and the GID. In fact,
1268 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1269 # and bug#13588).
1270 am_max_uid=2097151 # 2^21 - 1
1271 am_max_gid=$am_max_uid
1272 # The $UID and $GID variables are not portable, so we need to resort
1273 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1274 # below are definitely unexpected, so allow the users to see them
1275 # (that is, avoid stderr redirection).
1276 am_uid=`id -u || echo unknown`
1277 am_gid=`id -g || echo unknown`
1278 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1279 if test $am_uid -le $am_max_uid; then
1280 AC_MSG_RESULT([yes])
1281 else
1282 AC_MSG_RESULT([no])
1283 _am_tools=none
1284 fi
1285 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1286 if test $am_gid -le $am_max_gid; then
1287 AC_MSG_RESULT([yes])
1288 else
1289 AC_MSG_RESULT([no])
1290 _am_tools=none
1291 fi],
1292
1293 [pax],
1294 [],
1295
1296 [m4_fatal([Unknown tar format])])
1297
1298 AC_MSG_CHECKING([how to create a $1 tar archive])
1299
1300 # Go ahead even if we have the value already cached. We do so because we
1301 # need to set the values for the 'am__tar' and 'am__untar' variables.
1302 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1303
1304 for _am_tool in $_am_tools; do
1305 case $_am_tool in
1306 gnutar)
1307 for _am_tar in tar gnutar gtar; do
1308 AM_RUN_LOG([$_am_tar --version]) && break
1309 done
1310 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1311 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1312 am__untar="$_am_tar -xf -"
1313 ;;
1314 plaintar)
1315 # Must skip GNU tar: if it does not support --format= it doesn't create
1316 # ustar tarball either.
1317 (tar --version) >/dev/null 2>&1 && continue
1318 am__tar='tar chf - "$$tardir"'
1319 am__tar_='tar chf - "$tardir"'
1320 am__untar='tar xf -'
1321 ;;
1322 pax)
1323 am__tar='pax -L -x $1 -w "$$tardir"'
1324 am__tar_='pax -L -x $1 -w "$tardir"'
1325 am__untar='pax -r'
1326 ;;
1327 cpio)
1328 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1329 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1330 am__untar='cpio -i -H $1 -d'
1331 ;;
1332 none)
1333 am__tar=false
1334 am__tar_=false
1335 am__untar=false
1336 ;;
1337 esac
1338
1339 # If the value was cached, stop now. We just wanted to have am__tar
1340 # and am__untar set.
1341 test -n "${am_cv_prog_tar_$1}" && break
1342
1343 # tar/untar a dummy directory, and stop if the command works.
1344 rm -rf conftest.dir
1345 mkdir conftest.dir
1346 echo GrepMe > conftest.dir/file
1347 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1348 rm -rf conftest.dir
1349 if test -s conftest.tar; then
1350 AM_RUN_LOG([$am__untar <conftest.tar])
1351 AM_RUN_LOG([cat conftest.dir/file])
1352 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1353 fi
1354 done
1355 rm -rf conftest.dir
1356
1357 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1358 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1359
1360 AC_SUBST([am__tar])
1361 AC_SUBST([am__untar])
1362 ]) # _AM_PROG_TAR
1363
+0
-5488
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for air-quality-sensor 0.1.3.
3 #
4 # Report bugs to <air-quality-sensor@benedikt-wildenhain.de>.
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 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org and
268 $0: air-quality-sensor@benedikt-wildenhain.de about your
269 $0: system, including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312
313 # as_fn_mkdir_p
314 # -------------
315 # Create "$as_dir" as a directory, including parents if necessary.
316 as_fn_mkdir_p ()
317 {
318
319 case $as_dir in #(
320 -*) as_dir=./$as_dir;;
321 esac
322 test -d "$as_dir" || eval $as_mkdir_p || {
323 as_dirs=
324 while :; do
325 case $as_dir in #(
326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
327 *) as_qdir=$as_dir;;
328 esac
329 as_dirs="'$as_qdir' $as_dirs"
330 as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
337 s//\1/
338 q
339 }
340 /^X\(\/\/\)[^/].*/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\).*/{
349 s//\1/
350 q
351 }
352 s/.*/./; q'`
353 test -d "$as_dir" && break
354 done
355 test -z "$as_dirs" || eval "mkdir $as_dirs"
356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
357
358
359 } # as_fn_mkdir_p
360
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p ()
365 {
366 test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
373 # implementations.
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
375 eval 'as_fn_append ()
376 {
377 eval $1+=\$2
378 }'
379 else
380 as_fn_append ()
381 {
382 eval $1=\$$1\$2
383 }
384 fi # as_fn_append
385
386 # as_fn_arith ARG...
387 # ------------------
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
392 eval 'as_fn_arith ()
393 {
394 as_val=$(( $* ))
395 }'
396 else
397 as_fn_arith ()
398 {
399 as_val=`expr "$@" || test $? -eq 1`
400 }
401 fi # as_fn_arith
402
403
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
409 as_fn_error ()
410 {
411 as_status=$1; test $as_status -eq 0 && as_status=1
412 if test "$4"; then
413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 fi
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit $as_status
418 } # as_fn_error
419
420 if expr a : '\(a\)' >/dev/null 2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
422 as_expr=expr
423 else
424 as_expr=false
425 fi
426
427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
428 as_basename=basename
429 else
430 as_basename=false
431 fi
432
433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
434 as_dirname=dirname
435 else
436 as_dirname=false
437 fi
438
439 as_me=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 $as_echo X/"$0" |
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
445 s//\1/
446 q
447 }
448 /^X\/\(\/\/\)$/{
449 s//\1/
450 q
451 }
452 /^X\/\(\/\).*/{
453 s//\1/
454 q
455 }
456 s/.*/./; q'`
457
458 # Avoid depending upon Character Ranges.
459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits='0123456789'
463 as_cr_alnum=$as_cr_Letters$as_cr_digits
464
465
466 as_lineno_1=$LINENO as_lineno_1a=$LINENO
467 as_lineno_2=$LINENO as_lineno_2a=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
471 sed -n '
472 p
473 /[$]LINENO/=
474 ' <$as_myself |
475 sed '
476 s/[$]LINENO.*/&-/
477 t lineno
478 b
479 :lineno
480 N
481 :loop
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483 t loop
484 s/-\n.*//
485 ' >$as_me.lineno &&
486 chmod +x "$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec=no; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
496 . "./$as_me.lineno"
497 # Exit status is that of the last command.
498 exit
499 }
500
501 ECHO_C= ECHO_N= ECHO_T=
502 case `echo -n x` in #(((((
503 -n*)
504 case `echo 'xy\c'` in
505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 xy) ECHO_C='\c';;
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
508 ECHO_T=' ';;
509 esac;;
510 *)
511 ECHO_N='-n';;
512 esac
513
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
517 else
518 rm -f conf$$.dir
519 mkdir conf$$.dir 2>/dev/null
520 fi
521 if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 as_ln_s='ln -s'
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 as_ln_s='cp -pR'
530 elif ln conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s=ln
532 else
533 as_ln_s='cp -pR'
534 fi
535 else
536 as_ln_s='cp -pR'
537 fi
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
540
541 if mkdir -p . 2>/dev/null; then
542 as_mkdir_p='mkdir -p "$as_dir"'
543 else
544 test -d ./-p && rmdir ./-p
545 as_mkdir_p=false
546 fi
547
548 as_test_x='test -x'
549 as_executable_p=as_fn_executable_p
550
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556
557
558 test -n "$DJDIR" || exec 7<&0 </dev/null
559 exec 6>&1
560
561 # Name of the host.
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565
566 #
567 # Initializations.
568 #
569 ac_default_prefix=/usr/local
570 ac_clean_files=
571 ac_config_libobj_dir=.
572 LIBOBJS=
573 cross_compiling=no
574 subdirs=
575 MFLAGS=
576 MAKEFLAGS=
577
578 # Identity of this package.
579 PACKAGE_NAME='air-quality-sensor'
580 PACKAGE_TARNAME='air-quality-sensor'
581 PACKAGE_VERSION='0.1.3'
582 PACKAGE_STRING='air-quality-sensor 0.1.3'
583 PACKAGE_BUGREPORT='air-quality-sensor@benedikt-wildenhain.de'
584 PACKAGE_URL=''
585
586 ac_subst_vars='am__EXEEXT_FALSE
587 am__EXEEXT_TRUE
588 LTLIBOBJS
589 LIBOBJS
590 HELP2MAN
591 LIBUSB1_0_LIBS
592 LIBUSB1_0_CFLAGS
593 PKG_CONFIG_LIBDIR
594 PKG_CONFIG_PATH
595 PKG_CONFIG
596 am__fastdepCC_FALSE
597 am__fastdepCC_TRUE
598 CCDEPMODE
599 am__nodep
600 AMDEPBACKSLASH
601 AMDEP_FALSE
602 AMDEP_TRUE
603 am__quote
604 am__include
605 DEPDIR
606 OBJEXT
607 EXEEXT
608 ac_ct_CC
609 CPPFLAGS
610 LDFLAGS
611 CFLAGS
612 CC
613 AM_BACKSLASH
614 AM_DEFAULT_VERBOSITY
615 AM_DEFAULT_V
616 AM_V
617 am__untar
618 am__tar
619 AMTAR
620 am__leading_dot
621 SET_MAKE
622 AWK
623 mkdir_p
624 MKDIR_P
625 INSTALL_STRIP_PROGRAM
626 STRIP
627 install_sh
628 MAKEINFO
629 AUTOHEADER
630 AUTOMAKE
631 AUTOCONF
632 ACLOCAL
633 VERSION
634 PACKAGE
635 CYGPATH_W
636 am__isrc
637 INSTALL_DATA
638 INSTALL_SCRIPT
639 INSTALL_PROGRAM
640 target_alias
641 host_alias
642 build_alias
643 LIBS
644 ECHO_T
645 ECHO_N
646 ECHO_C
647 DEFS
648 mandir
649 localedir
650 libdir
651 psdir
652 pdfdir
653 dvidir
654 htmldir
655 infodir
656 docdir
657 oldincludedir
658 includedir
659 localstatedir
660 sharedstatedir
661 sysconfdir
662 datadir
663 datarootdir
664 libexecdir
665 sbindir
666 bindir
667 program_transform_name
668 prefix
669 exec_prefix
670 PACKAGE_URL
671 PACKAGE_BUGREPORT
672 PACKAGE_STRING
673 PACKAGE_VERSION
674 PACKAGE_TARNAME
675 PACKAGE_NAME
676 PATH_SEPARATOR
677 SHELL'
678 ac_subst_files=''
679 ac_user_opts='
680 enable_option_checking
681 enable_silent_rules
682 enable_dependency_tracking
683 '
684 ac_precious_vars='build_alias
685 host_alias
686 target_alias
687 CC
688 CFLAGS
689 LDFLAGS
690 LIBS
691 CPPFLAGS
692 PKG_CONFIG
693 PKG_CONFIG_PATH
694 PKG_CONFIG_LIBDIR
695 LIBUSB1_0_CFLAGS
696 LIBUSB1_0_LIBS'
697
698
699 # Initialize some variables set by options.
700 ac_init_help=
701 ac_init_version=false
702 ac_unrecognized_opts=
703 ac_unrecognized_sep=
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
706 cache_file=/dev/null
707 exec_prefix=NONE
708 no_create=
709 no_recursion=
710 prefix=NONE
711 program_prefix=NONE
712 program_suffix=NONE
713 program_transform_name=s,x,x,
714 silent=
715 site=
716 srcdir=
717 verbose=
718 x_includes=NONE
719 x_libraries=NONE
720
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 includedir='${prefix}/include'
736 oldincludedir='/usr/include'
737 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
738 infodir='${datarootdir}/info'
739 htmldir='${docdir}'
740 dvidir='${docdir}'
741 pdfdir='${docdir}'
742 psdir='${docdir}'
743 libdir='${exec_prefix}/lib'
744 localedir='${datarootdir}/locale'
745 mandir='${datarootdir}/man'
746
747 ac_prev=
748 ac_dashdash=
749 for ac_option
750 do
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
754 ac_prev=
755 continue
756 fi
757
758 case $ac_option in
759 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *=) ac_optarg= ;;
761 *) ac_optarg=yes ;;
762 esac
763
764 # Accept the important Cygnus configure options, so we can diagnose typos.
765
766 case $ac_dashdash$ac_option in
767 --)
768 ac_dashdash=yes ;;
769
770 -bindir | --bindir | --bindi | --bind | --bin | --bi)
771 ac_prev=bindir ;;
772 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
773 bindir=$ac_optarg ;;
774
775 -build | --build | --buil | --bui | --bu)
776 ac_prev=build_alias ;;
777 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
778 build_alias=$ac_optarg ;;
779
780 -cache-file | --cache-file | --cache-fil | --cache-fi \
781 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
782 ac_prev=cache_file ;;
783 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
784 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
785 cache_file=$ac_optarg ;;
786
787 --config-cache | -C)
788 cache_file=config.cache ;;
789
790 -datadir | --datadir | --datadi | --datad)
791 ac_prev=datadir ;;
792 -datadir=* | --datadir=* | --datadi=* | --datad=*)
793 datadir=$ac_optarg ;;
794
795 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
796 | --dataroo | --dataro | --datar)
797 ac_prev=datarootdir ;;
798 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
799 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
800 datarootdir=$ac_optarg ;;
801
802 -disable-* | --disable-*)
803 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
804 # Reject names that are not valid shell variable names.
805 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
806 as_fn_error $? "invalid feature name: $ac_useropt"
807 ac_useropt_orig=$ac_useropt
808 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
809 case $ac_user_opts in
810 *"
811 "enable_$ac_useropt"
812 "*) ;;
813 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
814 ac_unrecognized_sep=', ';;
815 esac
816 eval enable_$ac_useropt=no ;;
817
818 -docdir | --docdir | --docdi | --doc | --do)
819 ac_prev=docdir ;;
820 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
821 docdir=$ac_optarg ;;
822
823 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824 ac_prev=dvidir ;;
825 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
826 dvidir=$ac_optarg ;;
827
828 -enable-* | --enable-*)
829 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 as_fn_error $? "invalid feature name: $ac_useropt"
833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
836 *"
837 "enable_$ac_useropt"
838 "*) ;;
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
841 esac
842 eval enable_$ac_useropt=\$ac_optarg ;;
843
844 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846 | --exec | --exe | --ex)
847 ac_prev=exec_prefix ;;
848 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850 | --exec=* | --exe=* | --ex=*)
851 exec_prefix=$ac_optarg ;;
852
853 -gas | --gas | --ga | --g)
854 # Obsolete; use --with-gas.
855 with_gas=yes ;;
856
857 -help | --help | --hel | --he | -h)
858 ac_init_help=long ;;
859 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860 ac_init_help=recursive ;;
861 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862 ac_init_help=short ;;
863
864 -host | --host | --hos | --ho)
865 ac_prev=host_alias ;;
866 -host=* | --host=* | --hos=* | --ho=*)
867 host_alias=$ac_optarg ;;
868
869 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870 ac_prev=htmldir ;;
871 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872 | --ht=*)
873 htmldir=$ac_optarg ;;
874
875 -includedir | --includedir | --includedi | --included | --include \
876 | --includ | --inclu | --incl | --inc)
877 ac_prev=includedir ;;
878 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879 | --includ=* | --inclu=* | --incl=* | --inc=*)
880 includedir=$ac_optarg ;;
881
882 -infodir | --infodir | --infodi | --infod | --info | --inf)
883 ac_prev=infodir ;;
884 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885 infodir=$ac_optarg ;;
886
887 -libdir | --libdir | --libdi | --libd)
888 ac_prev=libdir ;;
889 -libdir=* | --libdir=* | --libdi=* | --libd=*)
890 libdir=$ac_optarg ;;
891
892 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893 | --libexe | --libex | --libe)
894 ac_prev=libexecdir ;;
895 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896 | --libexe=* | --libex=* | --libe=*)
897 libexecdir=$ac_optarg ;;
898
899 -localedir | --localedir | --localedi | --localed | --locale)
900 ac_prev=localedir ;;
901 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902 localedir=$ac_optarg ;;
903
904 -localstatedir | --localstatedir | --localstatedi | --localstated \
905 | --localstate | --localstat | --localsta | --localst | --locals)
906 ac_prev=localstatedir ;;
907 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909 localstatedir=$ac_optarg ;;
910
911 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912 ac_prev=mandir ;;
913 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 mandir=$ac_optarg ;;
915
916 -nfp | --nfp | --nf)
917 # Obsolete; use --without-fp.
918 with_fp=no ;;
919
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c | -n)
922 no_create=yes ;;
923
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926 no_recursion=yes ;;
927
928 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930 | --oldin | --oldi | --old | --ol | --o)
931 ac_prev=oldincludedir ;;
932 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935 oldincludedir=$ac_optarg ;;
936
937 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938 ac_prev=prefix ;;
939 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940 prefix=$ac_optarg ;;
941
942 -program-prefix | --program-prefix | --program-prefi | --program-pref \
943 | --program-pre | --program-pr | --program-p)
944 ac_prev=program_prefix ;;
945 -program-prefix=* | --program-prefix=* | --program-prefi=* \
946 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947 program_prefix=$ac_optarg ;;
948
949 -program-suffix | --program-suffix | --program-suffi | --program-suff \
950 | --program-suf | --program-su | --program-s)
951 ac_prev=program_suffix ;;
952 -program-suffix=* | --program-suffix=* | --program-suffi=* \
953 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954 program_suffix=$ac_optarg ;;
955
956 -program-transform-name | --program-transform-name \
957 | --program-transform-nam | --program-transform-na \
958 | --program-transform-n | --program-transform- \
959 | --program-transform | --program-transfor \
960 | --program-transfo | --program-transf \
961 | --program-trans | --program-tran \
962 | --progr-tra | --program-tr | --program-t)
963 ac_prev=program_transform_name ;;
964 -program-transform-name=* | --program-transform-name=* \
965 | --program-transform-nam=* | --program-transform-na=* \
966 | --program-transform-n=* | --program-transform-=* \
967 | --program-transform=* | --program-transfor=* \
968 | --program-transfo=* | --program-transf=* \
969 | --program-trans=* | --program-tran=* \
970 | --progr-tra=* | --program-tr=* | --program-t=*)
971 program_transform_name=$ac_optarg ;;
972
973 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974 ac_prev=pdfdir ;;
975 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976 pdfdir=$ac_optarg ;;
977
978 -psdir | --psdir | --psdi | --psd | --ps)
979 ac_prev=psdir ;;
980 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981 psdir=$ac_optarg ;;
982
983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984 | -silent | --silent | --silen | --sile | --sil)
985 silent=yes ;;
986
987 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988 ac_prev=sbindir ;;
989 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990 | --sbi=* | --sb=*)
991 sbindir=$ac_optarg ;;
992
993 -sharedstatedir | --sharedstatedir | --sharedstatedi \
994 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995 | --sharedst | --shareds | --shared | --share | --shar \
996 | --sha | --sh)
997 ac_prev=sharedstatedir ;;
998 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001 | --sha=* | --sh=*)
1002 sharedstatedir=$ac_optarg ;;
1003
1004 -site | --site | --sit)
1005 ac_prev=site ;;
1006 -site=* | --site=* | --sit=*)
1007 site=$ac_optarg ;;
1008
1009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010 ac_prev=srcdir ;;
1011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012 srcdir=$ac_optarg ;;
1013
1014 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015 | --syscon | --sysco | --sysc | --sys | --sy)
1016 ac_prev=sysconfdir ;;
1017 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019 sysconfdir=$ac_optarg ;;
1020
1021 -target | --target | --targe | --targ | --tar | --ta | --t)
1022 ac_prev=target_alias ;;
1023 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024 target_alias=$ac_optarg ;;
1025
1026 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027 verbose=yes ;;
1028
1029 -version | --version | --versio | --versi | --vers | -V)
1030 ac_init_version=: ;;
1031
1032 -with-* | --with-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid package name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041 "with_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval with_$ac_useropt=\$ac_optarg ;;
1047
1048 -without-* | --without-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid package name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057 "with_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval with_$ac_useropt=no ;;
1063
1064 --x)
1065 # Obsolete; use --with-x.
1066 with_x=yes ;;
1067
1068 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1069 | --x-incl | --x-inc | --x-in | --x-i)
1070 ac_prev=x_includes ;;
1071 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1072 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1073 x_includes=$ac_optarg ;;
1074
1075 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1076 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1077 ac_prev=x_libraries ;;
1078 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1079 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1080 x_libraries=$ac_optarg ;;
1081
1082 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1083 Try \`$0 --help' for more information"
1084 ;;
1085
1086 *=*)
1087 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1088 # Reject names that are not valid shell variable names.
1089 case $ac_envvar in #(
1090 '' | [0-9]* | *[!_$as_cr_alnum]* )
1091 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1092 esac
1093 eval $ac_envvar=\$ac_optarg
1094 export $ac_envvar ;;
1095
1096 *)
1097 # FIXME: should be removed in autoconf 3.0.
1098 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1099 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1101 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1102 ;;
1103
1104 esac
1105 done
1106
1107 if test -n "$ac_prev"; then
1108 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1109 as_fn_error $? "missing argument to $ac_option"
1110 fi
1111
1112 if test -n "$ac_unrecognized_opts"; then
1113 case $enable_option_checking in
1114 no) ;;
1115 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1116 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1117 esac
1118 fi
1119
1120 # Check all directory arguments for consistency.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1125 do
1126 eval ac_val=\$$ac_var
1127 # Remove trailing slashes.
1128 case $ac_val in
1129 */ )
1130 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1131 eval $ac_var=\$ac_val;;
1132 esac
1133 # Be sure to have absolute directory names.
1134 case $ac_val in
1135 [\\/$]* | ?:[\\/]* ) continue;;
1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 esac
1138 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1139 done
1140
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1147
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155 fi
1156
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160 test "$silent" = yes && exec 6>/dev/null
1161
1162
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 as_fn_error $? "working directory cannot be determined"
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 as_fn_error $? "pwd does not report name of working directory"
1169
1170
1171 # Find the source files, if location was not specified.
1172 if test -z "$srcdir"; then
1173 ac_srcdir_defaulted=yes
1174 # Try the directory containing this script, then the parent directory.
1175 ac_confdir=`$as_dirname -- "$as_myself" ||
1176 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177 X"$as_myself" : 'X\(//\)[^/]' \| \
1178 X"$as_myself" : 'X\(//\)$' \| \
1179 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1180 $as_echo X"$as_myself" |
1181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)[^/].*/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)$/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\).*/{
1194 s//\1/
1195 q
1196 }
1197 s/.*/./; q'`
1198 srcdir=$ac_confdir
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 srcdir=..
1201 fi
1202 else
1203 ac_srcdir_defaulted=no
1204 fi
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1208 fi
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1216 fi
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1229
1230 #
1231 # Report the --help message.
1232 #
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures air-quality-sensor 0.1.3 to adapt to many kinds of systems.
1238
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1243
1244 Defaults for the options are specified in brackets.
1245
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking ...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1262
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1267
1268 For better control, use the options below.
1269
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root
1286 [DATAROOTDIR/doc/air-quality-sensor]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1292
1293 cat <<\_ACEOF
1294
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299 _ACEOF
1300 fi
1301
1302 if test -n "$ac_init_help"; then
1303 case $ac_init_help in
1304 short | recursive ) echo "Configuration of air-quality-sensor 0.1.3:";;
1305 esac
1306 cat <<\_ACEOF
1307
1308 Optional Features:
1309 --disable-option-checking ignore unrecognized --enable/--with options
1310 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1311 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1312 --enable-silent-rules less verbose build output (undo: "make V=1")
1313 --disable-silent-rules verbose build output (undo: "make V=0")
1314 --enable-dependency-tracking
1315 do not reject slow dependency extractors
1316 --disable-dependency-tracking
1317 speeds up one-time build
1318
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1327 PKG_CONFIG path to pkg-config utility
1328 PKG_CONFIG_PATH
1329 directories to add to pkg-config's search path
1330 PKG_CONFIG_LIBDIR
1331 path overriding pkg-config's built-in search path
1332 LIBUSB1_0_CFLAGS
1333 C compiler flags for LIBUSB1_0, overriding pkg-config
1334 LIBUSB1_0_LIBS
1335 linker flags for LIBUSB1_0, overriding pkg-config
1336
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1339
1340 Report bugs to <air-quality-sensor@benedikt-wildenhain.de>.
1341 _ACEOF
1342 ac_status=$?
1343 fi
1344
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" ||
1349 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350 continue
1351 ac_builddir=.
1352
1353 case "$ac_dir" in
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *)
1356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362 esac ;;
1363 esac
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1368
1369 case $srcdir in
1370 .) # We are building in place.
1371 ac_srcdir=.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1378 *) # Relative name.
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382 esac
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1393 else
1394 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395 fi || ac_status=$?
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1397 done
1398 fi
1399
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1402 cat <<\_ACEOF
1403 air-quality-sensor configure 0.1.3
1404 generated by GNU Autoconf 2.69
1405
1406 Copyright (C) 2012 Free Software Foundation, Inc.
1407 This configure script is free software; the Free Software Foundation
1408 gives unlimited permission to copy, distribute and modify it.
1409 _ACEOF
1410 exit
1411 fi
1412
1413 ## ------------------------ ##
1414 ## Autoconf initialization. ##
1415 ## ------------------------ ##
1416
1417 # ac_fn_c_try_compile LINENO
1418 # --------------------------
1419 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1420 ac_fn_c_try_compile ()
1421 {
1422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423 rm -f conftest.$ac_objext
1424 if { { ac_try="$ac_compile"
1425 case "(($ac_try" in
1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427 *) ac_try_echo=$ac_try;;
1428 esac
1429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430 $as_echo "$ac_try_echo"; } >&5
1431 (eval "$ac_compile") 2>conftest.err
1432 ac_status=$?
1433 if test -s conftest.err; then
1434 grep -v '^ *+' conftest.err >conftest.er1
1435 cat conftest.er1 >&5
1436 mv -f conftest.er1 conftest.err
1437 fi
1438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439 test $ac_status = 0; } && {
1440 test -z "$ac_c_werror_flag" ||
1441 test ! -s conftest.err
1442 } && test -s conftest.$ac_objext; then :
1443 ac_retval=0
1444 else
1445 $as_echo "$as_me: failed program was:" >&5
1446 sed 's/^/| /' conftest.$ac_ext >&5
1447
1448 ac_retval=1
1449 fi
1450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1451 as_fn_set_status $ac_retval
1452
1453 } # ac_fn_c_try_compile
1454
1455 # ac_fn_c_try_link LINENO
1456 # -----------------------
1457 # Try to link conftest.$ac_ext, and return whether this succeeded.
1458 ac_fn_c_try_link ()
1459 {
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext conftest$ac_exeext
1462 if { { ac_try="$ac_link"
1463 case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_link") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1475 fi
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest$ac_exeext && {
1481 test "$cross_compiling" = yes ||
1482 test -x conftest$ac_exeext
1483 }; then :
1484 ac_retval=0
1485 else
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1488
1489 ac_retval=1
1490 fi
1491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1493 # interfere with the next link command; also delete a directory that is
1494 # left behind by Apple's compiler. We do this before executing the actions.
1495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1497 as_fn_set_status $ac_retval
1498
1499 } # ac_fn_c_try_link
1500
1501 # ac_fn_c_check_func LINENO FUNC VAR
1502 # ----------------------------------
1503 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1504 ac_fn_c_check_func ()
1505 {
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1508 $as_echo_n "checking for $2... " >&6; }
1509 if eval \${$3+:} false; then :
1510 $as_echo_n "(cached) " >&6
1511 else
1512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1513 /* end confdefs.h. */
1514 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1516 #define $2 innocuous_$2
1517
1518 /* System header to define __stub macros and hopefully few prototypes,
1519 which can conflict with char $2 (); below.
1520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1521 <limits.h> exists even on freestanding compilers. */
1522
1523 #ifdef __STDC__
1524 # include <limits.h>
1525 #else
1526 # include <assert.h>
1527 #endif
1528
1529 #undef $2
1530
1531 /* Override any GCC internal prototype to avoid an error.
1532 Use char because int might match the return type of a GCC
1533 builtin and then its argument prototype would still apply. */
1534 #ifdef __cplusplus
1535 extern "C"
1536 #endif
1537 char $2 ();
1538 /* The GNU C library defines this for functions which it implements
1539 to always fail with ENOSYS. Some functions are actually named
1540 something starting with __ and the normal name is an alias. */
1541 #if defined __stub_$2 || defined __stub___$2
1542 choke me
1543 #endif
1544
1545 int
1546 main ()
1547 {
1548 return $2 ();
1549 ;
1550 return 0;
1551 }
1552 _ACEOF
1553 if ac_fn_c_try_link "$LINENO"; then :
1554 eval "$3=yes"
1555 else
1556 eval "$3=no"
1557 fi
1558 rm -f core conftest.err conftest.$ac_objext \
1559 conftest$ac_exeext conftest.$ac_ext
1560 fi
1561 eval ac_res=\$$3
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1563 $as_echo "$ac_res" >&6; }
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565
1566 } # ac_fn_c_check_func
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1570
1571 It was created by air-quality-sensor $as_me 0.1.3, which was
1572 generated by GNU Autoconf 2.69. Invocation command line was
1573
1574 $ $0 $@
1575
1576 _ACEOF
1577 exec 5>>config.log
1578 {
1579 cat <<_ASUNAME
1580 ## --------- ##
1581 ## Platform. ##
1582 ## --------- ##
1583
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592
1593 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1594 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1597 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1598 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1599 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1600
1601 _ASUNAME
1602
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 $as_echo "PATH: $as_dir"
1609 done
1610 IFS=$as_save_IFS
1611
1612 } >&5
1613
1614 cat >&5 <<_ACEOF
1615
1616
1617 ## ----------- ##
1618 ## Core tests. ##
1619 ## ----------- ##
1620
1621 _ACEOF
1622
1623
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_configure_args=
1630 ac_configure_args0=
1631 ac_configure_args1=
1632 ac_must_keep_next=false
1633 for ac_pass in 1 2
1634 do
1635 for ac_arg
1636 do
1637 case $ac_arg in
1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640 | -silent | --silent | --silen | --sile | --sil)
1641 continue ;;
1642 *\'*)
1643 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 esac
1645 case $ac_pass in
1646 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1647 2)
1648 as_fn_append ac_configure_args1 " '$ac_arg'"
1649 if test $ac_must_keep_next = true; then
1650 ac_must_keep_next=false # Got value, back to normal.
1651 else
1652 case $ac_arg in
1653 *=* | --config-cache | -C | -disable-* | --disable-* \
1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656 | -with-* | --with-* | -without-* | --without-* | --x)
1657 case "$ac_configure_args0 " in
1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 esac
1660 ;;
1661 -* ) ac_must_keep_next=true ;;
1662 esac
1663 fi
1664 as_fn_append ac_configure_args " '$ac_arg'"
1665 ;;
1666 esac
1667 done
1668 done
1669 { ac_configure_args0=; unset ac_configure_args0;}
1670 { ac_configure_args1=; unset ac_configure_args1;}
1671
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log. We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678 # Save into config.log some information that might help in debugging.
1679 {
1680 echo
1681
1682 $as_echo "## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##"
1685 echo
1686 # The following way of writing the cache mishandles newlines in values,
1687 (
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1690 case $ac_val in #(
1691 *${as_nl}*)
1692 case $ac_var in #(
1693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1695 esac
1696 case $ac_var in #(
1697 _ | IFS | as_nl) ;; #(
1698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1699 *) { eval $ac_var=; unset $ac_var;} ;;
1700 esac ;;
1701 esac
1702 done
1703 (set) 2>&1 |
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1706 sed -n \
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 ;; #(
1710 *)
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1712 ;;
1713 esac |
1714 sort
1715 )
1716 echo
1717
1718 $as_echo "## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##"
1721 echo
1722 for ac_var in $ac_subst_vars
1723 do
1724 eval ac_val=\$$ac_var
1725 case $ac_val in
1726 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 esac
1728 $as_echo "$ac_var='\''$ac_val'\''"
1729 done | sort
1730 echo
1731
1732 if test -n "$ac_subst_files"; then
1733 $as_echo "## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##"
1736 echo
1737 for ac_var in $ac_subst_files
1738 do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 $as_echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1746 fi
1747
1748 if test -s confdefs.h; then
1749 $as_echo "## ----------- ##
1750 ## confdefs.h. ##
1751 ## ----------- ##"
1752 echo
1753 cat confdefs.h
1754 echo
1755 fi
1756 test "$ac_signal" != 0 &&
1757 $as_echo "$as_me: caught signal $ac_signal"
1758 $as_echo "$as_me: exit $exit_status"
1759 } >&5
1760 rm -f core *.core core.conftest.* &&
1761 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762 exit $exit_status
1763 ' 0
1764 for ac_signal in 1 2 13 15; do
1765 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1766 done
1767 ac_signal=0
1768
1769 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1770 rm -f -r conftest* confdefs.h
1771
1772 $as_echo "/* confdefs.h */" > confdefs.h
1773
1774 # Predefined preprocessor variables.
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_NAME "$PACKAGE_NAME"
1778 _ACEOF
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 _ACEOF
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1786 _ACEOF
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 _ACEOF
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 _ACEOF
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_URL "$PACKAGE_URL"
1798 _ACEOF
1799
1800
1801 # Let the site file select an alternate cache file if it wants to.
1802 # Prefer an explicitly selected file to automatically selected ones.
1803 ac_site_file1=NONE
1804 ac_site_file2=NONE
1805 if test -n "$CONFIG_SITE"; then
1806 # We do not want a PATH search for config.site.
1807 case $CONFIG_SITE in #((
1808 -*) ac_site_file1=./$CONFIG_SITE;;
1809 */*) ac_site_file1=$CONFIG_SITE;;
1810 *) ac_site_file1=./$CONFIG_SITE;;
1811 esac
1812 elif test "x$prefix" != xNONE; then
1813 ac_site_file1=$prefix/share/config.site
1814 ac_site_file2=$prefix/etc/config.site
1815 else
1816 ac_site_file1=$ac_default_prefix/share/config.site
1817 ac_site_file2=$ac_default_prefix/etc/config.site
1818 fi
1819 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1820 do
1821 test "x$ac_site_file" = xNONE && continue
1822 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1824 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file" \
1827 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1829 as_fn_error $? "failed to load site script $ac_site_file
1830 See \`config.log' for more details" "$LINENO" 5; }
1831 fi
1832 done
1833
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special files
1836 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1837 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1839 $as_echo "$as_me: loading cache $cache_file" >&6;}
1840 case $cache_file in
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1843 esac
1844 fi
1845 else
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1847 $as_echo "$as_me: creating cache $cache_file" >&6;}
1848 >$cache_file
1849 fi
1850
1851 # Check that the precious variables saved in the cache have kept the same
1852 # value.
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1860 set,)
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,set)
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1866 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,);;
1869 *)
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 # differences in whitespace do not lead to failure.
1872 ac_old_val_w=`echo x $ac_old_val`
1873 ac_new_val_w=`echo x $ac_new_val`
1874 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1876 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 ac_cache_corrupted=:
1878 else
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1880 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1881 eval $ac_var=\$ac_old_val
1882 fi
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1884 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1886 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1887 fi;;
1888 esac
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1891 case $ac_new_val in
1892 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg=$ac_var=$ac_new_val ;;
1894 esac
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1898 esac
1899 fi
1900 done
1901 if $ac_cache_corrupted; then
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1905 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1907 fi
1908 ## -------------------- ##
1909 ## Main body of script. ##
1910 ## -------------------- ##
1911
1912 ac_ext=c
1913 ac_cpp='$CPP $CPPFLAGS'
1914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917
1918
1919 am__api_version='1.14'
1920
1921 ac_aux_dir=
1922 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1923 if test -f "$ac_dir/install-sh"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/install-sh -c"
1926 break
1927 elif test -f "$ac_dir/install.sh"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/install.sh -c"
1930 break
1931 elif test -f "$ac_dir/shtool"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/shtool install -c"
1934 break
1935 fi
1936 done
1937 if test -z "$ac_aux_dir"; then
1938 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948
1949
1950 # Find a good install program. We prefer a C program (faster),
1951 # so one script is as good as another. But avoid the broken or
1952 # incompatible versions:
1953 # SysV /etc/install, /usr/sbin/install
1954 # SunOS /usr/etc/install
1955 # IRIX /sbin/install
1956 # AIX /bin/install
1957 # AmigaOS /C/install, which installs bootblocks on floppy discs
1958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1961 # OS/2's system install, which has a completely different semantic
1962 # ./install, which can be erroneously created by make from ./install.sh.
1963 # Reject install programs that cannot install multiple files.
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1965 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1966 if test -z "$INSTALL"; then
1967 if ${ac_cv_path_install+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 # Account for people who put trailing slashes in PATH elements.
1976 case $as_dir/ in #((
1977 ./ | .// | /[cC]/* | \
1978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1979 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1980 /usr/ucb/* ) ;;
1981 *)
1982 # OSF1 and SCO ODT 3.0 have their own names for install.
1983 # Don't use installbsd from OSF since it installs stuff as root
1984 # by default.
1985 for ac_prog in ginstall scoinst install; do
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1988 if test $ac_prog = install &&
1989 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1990 # AIX install. It has an incompatible calling convention.
1991 :
1992 elif test $ac_prog = install &&
1993 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1994 # program-specific install script used by HP pwplus--don't use.
1995 :
1996 else
1997 rm -rf conftest.one conftest.two conftest.dir
1998 echo one > conftest.one
1999 echo two > conftest.two
2000 mkdir conftest.dir
2001 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2002 test -s conftest.one && test -s conftest.two &&
2003 test -s conftest.dir/conftest.one &&
2004 test -s conftest.dir/conftest.two
2005 then
2006 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2007 break 3
2008 fi
2009 fi
2010 fi
2011 done
2012 done
2013 ;;
2014 esac
2015
2016 done
2017 IFS=$as_save_IFS
2018
2019 rm -rf conftest.one conftest.two conftest.dir
2020
2021 fi
2022 if test "${ac_cv_path_install+set}" = set; then
2023 INSTALL=$ac_cv_path_install
2024 else
2025 # As a last resort, use the slow shell script. Don't cache a
2026 # value for INSTALL within a source directory, because that will
2027 # break other packages using the cache if that directory is
2028 # removed, or if the value is a relative name.
2029 INSTALL=$ac_install_sh
2030 fi
2031 fi
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2033 $as_echo "$INSTALL" >&6; }
2034
2035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2036 # It thinks the first close brace ends the variable substitution.
2037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038
2039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040
2041 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2044 $as_echo_n "checking whether build environment is sane... " >&6; }
2045 # Reject unsafe characters in $srcdir or the absolute working directory
2046 # name. Accept space and tab only in the latter.
2047 am_lf='
2048 '
2049 case `pwd` in
2050 *[\\\"\#\$\&\'\`$am_lf]*)
2051 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2052 esac
2053 case $srcdir in
2054 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2055 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2056 esac
2057
2058 # Do 'set' in a subshell so we don't clobber the current shell's
2059 # arguments. Must try -L first in case configure is actually a
2060 # symlink; some systems play weird games with the mod time of symlinks
2061 # (eg FreeBSD returns the mod time of the symlink's containing
2062 # directory).
2063 if (
2064 am_has_slept=no
2065 for am_try in 1 2; do
2066 echo "timestamp, slept: $am_has_slept" > conftest.file
2067 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2069 # -L didn't work.
2070 set X `ls -t "$srcdir/configure" conftest.file`
2071 fi
2072 if test "$*" != "X $srcdir/configure conftest.file" \
2073 && test "$*" != "X conftest.file $srcdir/configure"; then
2074
2075 # If neither matched, then we have a broken ls. This can happen
2076 # if, for instance, CONFIG_SHELL is bash and it inherits a
2077 # broken ls alias from the environment. This has actually
2078 # happened. Such a system could not be considered "sane".
2079 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2080 alias in your environment" "$LINENO" 5
2081 fi
2082 if test "$2" = conftest.file || test $am_try -eq 2; then
2083 break
2084 fi
2085 # Just in case.
2086 sleep 1
2087 am_has_slept=yes
2088 done
2089 test "$2" = conftest.file
2090 )
2091 then
2092 # Ok.
2093 :
2094 else
2095 as_fn_error $? "newly created file is older than distributed files!
2096 Check your system clock" "$LINENO" 5
2097 fi
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2099 $as_echo "yes" >&6; }
2100 # If we didn't sleep, we still need to ensure time stamps of config.status and
2101 # generated files are strictly newer.
2102 am_sleep_pid=
2103 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2104 ( sleep 1 ) &
2105 am_sleep_pid=$!
2106 fi
2107
2108 rm -f conftest.file
2109
2110 test "$program_prefix" != NONE &&
2111 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2112 # Use a double $ so make ignores it.
2113 test "$program_suffix" != NONE &&
2114 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2115 # Double any \ or $.
2116 # By default was `s,x,x', remove it if useless.
2117 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2118 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2119
2120 # Expand $ac_aux_dir to an absolute path.
2121 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2122
2123 if test x"${MISSING+set}" != xset; then
2124 case $am_aux_dir in
2125 *\ * | *\ *)
2126 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2127 *)
2128 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2129 esac
2130 fi
2131 # Use eval to expand $SHELL
2132 if eval "$MISSING --is-lightweight"; then
2133 am_missing_run="$MISSING "
2134 else
2135 am_missing_run=
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2137 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2138 fi
2139
2140 if test x"${install_sh}" != xset; then
2141 case $am_aux_dir in
2142 *\ * | *\ *)
2143 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2144 *)
2145 install_sh="\${SHELL} $am_aux_dir/install-sh"
2146 esac
2147 fi
2148
2149 # Installed binaries are usually stripped using 'strip' when the user
2150 # run "make install-strip". However 'strip' might not be the right
2151 # tool to use in cross-compilation environments, therefore Automake
2152 # will honor the 'STRIP' environment variable to overrule this program.
2153 if test "$cross_compiling" != no; then
2154 if test -n "$ac_tool_prefix"; then
2155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2156 set dummy ${ac_tool_prefix}strip; ac_word=$2
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2158 $as_echo_n "checking for $ac_word... " >&6; }
2159 if ${ac_cv_prog_STRIP+:} false; then :
2160 $as_echo_n "(cached) " >&6
2161 else
2162 if test -n "$STRIP"; then
2163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 for ac_exec_ext in '' $ac_executable_extensions; do
2171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2
2175 fi
2176 done
2177 done
2178 IFS=$as_save_IFS
2179
2180 fi
2181 fi
2182 STRIP=$ac_cv_prog_STRIP
2183 if test -n "$STRIP"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2185 $as_echo "$STRIP" >&6; }
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2188 $as_echo "no" >&6; }
2189 fi
2190
2191
2192 fi
2193 if test -z "$ac_cv_prog_STRIP"; then
2194 ac_ct_STRIP=$STRIP
2195 # Extract the first word of "strip", so it can be a program name with args.
2196 set dummy strip; ac_word=$2
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2198 $as_echo_n "checking for $ac_word... " >&6; }
2199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 if test -n "$ac_ct_STRIP"; then
2203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_ac_ct_STRIP="strip"
2213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2215 fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2223 if test -n "$ac_ct_STRIP"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2225 $as_echo "$ac_ct_STRIP" >&6; }
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2228 $as_echo "no" >&6; }
2229 fi
2230
2231 if test "x$ac_ct_STRIP" = x; then
2232 STRIP=":"
2233 else
2234 case $cross_compiling:$ac_tool_warned in
2235 yes:)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2238 ac_tool_warned=yes ;;
2239 esac
2240 STRIP=$ac_ct_STRIP
2241 fi
2242 else
2243 STRIP="$ac_cv_prog_STRIP"
2244 fi
2245
2246 fi
2247 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2248
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2250 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2251 if test -z "$MKDIR_P"; then
2252 if ${ac_cv_path_mkdir+:} false; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_prog in mkdir gmkdir; do
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2263 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2264 'mkdir (GNU coreutils) '* | \
2265 'mkdir (coreutils) '* | \
2266 'mkdir (fileutils) '4.1*)
2267 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2268 break 3;;
2269 esac
2270 done
2271 done
2272 done
2273 IFS=$as_save_IFS
2274
2275 fi
2276
2277 test -d ./--version && rmdir ./--version
2278 if test "${ac_cv_path_mkdir+set}" = set; then
2279 MKDIR_P="$ac_cv_path_mkdir -p"
2280 else
2281 # As a last resort, use the slow shell script. Don't cache a
2282 # value for MKDIR_P within a source directory, because that will
2283 # break other packages using the cache if that directory is
2284 # removed, or if the value is a relative name.
2285 MKDIR_P="$ac_install_sh -d"
2286 fi
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2289 $as_echo "$MKDIR_P" >&6; }
2290
2291 for ac_prog in gawk mawk nawk awk
2292 do
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2296 $as_echo_n "checking for $ac_word... " >&6; }
2297 if ${ac_cv_prog_AWK+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 if test -n "$AWK"; then
2301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_AWK="$ac_prog"
2311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 break 2
2313 fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318 fi
2319 fi
2320 AWK=$ac_cv_prog_AWK
2321 if test -n "$AWK"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2323 $as_echo "$AWK" >&6; }
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2326 $as_echo "no" >&6; }
2327 fi
2328
2329
2330 test -n "$AWK" && break
2331 done
2332
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2334 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2335 set x ${MAKE-make}
2336 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2337 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 cat >conftest.make <<\_ACEOF
2341 SHELL = /bin/sh
2342 all:
2343 @echo '@@@%%%=$(MAKE)=@@@%%%'
2344 _ACEOF
2345 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2346 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2347 *@@@%%%=?*=@@@%%%*)
2348 eval ac_cv_prog_make_${ac_make}_set=yes;;
2349 *)
2350 eval ac_cv_prog_make_${ac_make}_set=no;;
2351 esac
2352 rm -f conftest.make
2353 fi
2354 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2356 $as_echo "yes" >&6; }
2357 SET_MAKE=
2358 else
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2360 $as_echo "no" >&6; }
2361 SET_MAKE="MAKE=${MAKE-make}"
2362 fi
2363
2364 rm -rf .tst 2>/dev/null
2365 mkdir .tst 2>/dev/null
2366 if test -d .tst; then
2367 am__leading_dot=.
2368 else
2369 am__leading_dot=_
2370 fi
2371 rmdir .tst 2>/dev/null
2372
2373 # Check whether --enable-silent-rules was given.
2374 if test "${enable_silent_rules+set}" = set; then :
2375 enableval=$enable_silent_rules;
2376 fi
2377
2378 case $enable_silent_rules in # (((
2379 yes) AM_DEFAULT_VERBOSITY=0;;
2380 no) AM_DEFAULT_VERBOSITY=1;;
2381 *) AM_DEFAULT_VERBOSITY=1;;
2382 esac
2383 am_make=${MAKE-make}
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2385 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2386 if ${am_cv_make_support_nested_variables+:} false; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if $as_echo 'TRUE=$(BAR$(V))
2390 BAR0=false
2391 BAR1=true
2392 V=1
2393 am__doit:
2394 @$(TRUE)
2395 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2396 am_cv_make_support_nested_variables=yes
2397 else
2398 am_cv_make_support_nested_variables=no
2399 fi
2400 fi
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2402 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2403 if test $am_cv_make_support_nested_variables = yes; then
2404 AM_V='$(V)'
2405 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2406 else
2407 AM_V=$AM_DEFAULT_VERBOSITY
2408 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2409 fi
2410 AM_BACKSLASH='\'
2411
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414 # is not polluted with repeated "-I."
2415 am__isrc=' -I$(srcdir)'
2416 # test to see if srcdir already configured
2417 if test -f $srcdir/config.status; then
2418 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2419 fi
2420 fi
2421
2422 # test whether we have cygpath
2423 if test -z "$CYGPATH_W"; then
2424 if (cygpath --version) >/dev/null 2>/dev/null; then
2425 CYGPATH_W='cygpath -w'
2426 else
2427 CYGPATH_W=echo
2428 fi
2429 fi
2430
2431
2432 # Define the identity of the package.
2433 PACKAGE='air-quality-sensor'
2434 VERSION='0.1.3'
2435
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE "$PACKAGE"
2439 _ACEOF
2440
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define VERSION "$VERSION"
2444 _ACEOF
2445
2446 # Some tools Automake needs.
2447
2448 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2449
2450
2451 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2452
2453
2454 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2455
2456
2457 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2458
2459
2460 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2461
2462 # For better backward compatibility. To be removed once Automake 1.9.x
2463 # dies out for good. For more background, see:
2464 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2465 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2466 mkdir_p='$(MKDIR_P)'
2467
2468 # We need awk for the "check" target. The system "awk" is bad on
2469 # some platforms.
2470 # Always define AMTAR for backward compatibility. Yes, it's still used
2471 # in the wild :-( We should find a proper way to deprecate it ...
2472 AMTAR='$${TAR-tar}'
2473
2474
2475 # We'll loop over all known methods to create a tar archive until one works.
2476 _am_tools='gnutar pax cpio none'
2477
2478 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2479
2480
2481
2482
2483
2484
2485 # POSIX will say in a future version that running "rm -f" with no argument
2486 # is OK; and we want to be able to make that assumption in our Makefile
2487 # recipes. So use an aggressive probe to check that the usage we want is
2488 # actually supported "in the wild" to an acceptable degree.
2489 # See automake bug#10828.
2490 # To make any issue more visible, cause the running configure to be aborted
2491 # by default if the 'rm' program in use doesn't match our expectations; the
2492 # user can still override this though.
2493 if rm -f && rm -fr && rm -rf; then : OK; else
2494 cat >&2 <<'END'
2495 Oops!
2496
2497 Your 'rm' program seems unable to run without file operands specified
2498 on the command line, even when the '-f' option is present. This is contrary
2499 to the behaviour of most rm programs out there, and not conforming with
2500 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2501
2502 Please tell bug-automake@gnu.org about your system, including the value
2503 of your $PATH and any error possibly output before this message. This
2504 can help us improve future automake versions.
2505
2506 END
2507 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2508 echo 'Configuration will proceed anyway, since you have set the' >&2
2509 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2510 echo >&2
2511 else
2512 cat >&2 <<'END'
2513 Aborting the configuration process, to ensure you take notice of the issue.
2514
2515 You can download and install GNU coreutils to get an 'rm' implementation
2516 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2517
2518 If you want to complete the configuration process using your problematic
2519 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2520 to "yes", and re-run configure.
2521
2522 END
2523 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2524 fi
2525 fi
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_CC+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2557
2558 fi
2559 fi
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2563 $as_echo "$CC" >&6; }
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2567 fi
2568
2569
2570 fi
2571 if test -z "$ac_cv_prog_CC"; then
2572 ac_ct_CC=$CC
2573 # Extract the first word of "gcc", so it can be a program name with args.
2574 set dummy gcc; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_CC="gcc"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599 fi
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2603 $as_echo "$ac_ct_CC" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618 CC=$ac_ct_CC
2619 fi
2620 else
2621 CC="$ac_cv_prog_CC"
2622 fi
2623
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}cc; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_CC+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2646 fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656 $as_echo "$CC" >&6; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662
2663 fi
2664 fi
2665 if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667 set dummy cc; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_prog_CC+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 ac_prog_rejected=no
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2686 continue
2687 fi
2688 ac_cv_prog_CC="cc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2699 shift
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2704 shift
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2706 fi
2707 fi
2708 fi
2709 fi
2710 CC=$ac_cv_prog_CC
2711 if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713 $as_echo "$CC" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720 fi
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in cl.exe
2724 do
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761
2762 test -n "$CC" && break
2763 done
2764 fi
2765 if test -z "$CC"; then
2766 ac_ct_CC=$CC
2767 for ac_prog in cl.exe
2768 do
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 test -n "$ac_ct_CC" && break
2807 done
2808
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818 CC=$ac_ct_CC
2819 fi
2820 fi
2821
2822 fi
2823
2824
2825 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827 as_fn_error $? "no acceptable C compiler found in \$PATH
2828 See \`config.log' for more details" "$LINENO" 5; }
2829
2830 # Provide some information about the compiler.
2831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2832 set X $ac_compile
2833 ac_compiler=$2
2834 for ac_option in --version -v -V -qversion; do
2835 { { ac_try="$ac_compiler $ac_option >&5"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841 $as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2843 ac_status=$?
2844 if test -s conftest.err; then
2845 sed '10a\
2846 ... rest of stderr output deleted ...
2847 10q' conftest.err >conftest.er1
2848 cat conftest.er1 >&5
2849 fi
2850 rm -f conftest.er1 conftest.err
2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852 test $ac_status = 0; }
2853 done
2854
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h. */
2857
2858 int
2859 main ()
2860 {
2861
2862 ;
2863 return 0;
2864 }
2865 _ACEOF
2866 ac_clean_files_save=$ac_clean_files
2867 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2868 # Try to create an executable without -o first, disregard a.out.
2869 # It will help us diagnose broken compilers, and finding out an intuition
2870 # of exeext.
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2872 $as_echo_n "checking whether the C compiler works... " >&6; }
2873 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2874
2875 # The possible output files:
2876 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2877
2878 ac_rmfiles=
2879 for ac_file in $ac_files
2880 do
2881 case $ac_file in
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2883 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2884 esac
2885 done
2886 rm -f $ac_rmfiles
2887
2888 if { { ac_try="$ac_link_default"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894 $as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_link_default") 2>&5
2896 ac_status=$?
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }; then :
2899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2900 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2901 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2902 # so that the user can short-circuit this test for compilers unknown to
2903 # Autoconf.
2904 for ac_file in $ac_files ''
2905 do
2906 test -f "$ac_file" || continue
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2909 ;;
2910 [ab].out )
2911 # We found the default executable, but exeext='' is most
2912 # certainly right.
2913 break;;
2914 *.* )
2915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2916 then :; else
2917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918 fi
2919 # We set ac_cv_exeext here because the later test for it is not
2920 # safe: cross compilers may not add the suffix if given an `-o'
2921 # argument, so we may need to know it at that point already.
2922 # Even if this section looks crufty: it has the advantage of
2923 # actually working.
2924 break;;
2925 * )
2926 break;;
2927 esac
2928 done
2929 test "$ac_cv_exeext" = no && ac_cv_exeext=
2930
2931 else
2932 ac_file=''
2933 fi
2934 if test -z "$ac_file"; then :
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 $as_echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error 77 "C compiler cannot create executables
2943 See \`config.log' for more details" "$LINENO" 5; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946 $as_echo "yes" >&6; }
2947 fi
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2949 $as_echo_n "checking for C compiler default output file name... " >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2951 $as_echo "$ac_file" >&6; }
2952 ac_exeext=$ac_cv_exeext
2953
2954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2955 ac_clean_files=$ac_clean_files_save
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2957 $as_echo_n "checking for suffix of executables... " >&6; }
2958 if { { ac_try="$ac_link"
2959 case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962 esac
2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964 $as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_link") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }; then :
2969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2970 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2971 # work properly (i.e., refer to `conftest.exe'), while it won't with
2972 # `rm'.
2973 for ac_file in conftest.exe conftest conftest.*; do
2974 test -f "$ac_file" || continue
2975 case $ac_file in
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2978 break;;
2979 * ) break;;
2980 esac
2981 done
2982 else
2983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2986 See \`config.log' for more details" "$LINENO" 5; }
2987 fi
2988 rm -f conftest conftest$ac_cv_exeext
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2990 $as_echo "$ac_cv_exeext" >&6; }
2991
2992 rm -f conftest.$ac_ext
2993 EXEEXT=$ac_cv_exeext
2994 ac_exeext=$EXEEXT
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
2997 #include <stdio.h>
2998 int
2999 main ()
3000 {
3001 FILE *f = fopen ("conftest.out", "w");
3002 return ferror (f) || fclose (f) != 0;
3003
3004 ;
3005 return 0;
3006 }
3007 _ACEOF
3008 ac_clean_files="$ac_clean_files conftest.out"
3009 # Check that the compiler produces executables we can run. If not, either
3010 # the compiler is broken, or we cross compile.
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3012 $as_echo_n "checking whether we are cross compiling... " >&6; }
3013 if test "$cross_compiling" != yes; then
3014 { { ac_try="$ac_link"
3015 case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018 esac
3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_link") 2>&5
3022 ac_status=$?
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }
3025 if { ac_try='./conftest$ac_cv_exeext'
3026 { { case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_try") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; }; then
3036 cross_compiling=no
3037 else
3038 if test "$cross_compiling" = maybe; then
3039 cross_compiling=yes
3040 else
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error $? "cannot run C compiled programs.
3044 If you meant to cross compile, use \`--host'.
3045 See \`config.log' for more details" "$LINENO" 5; }
3046 fi
3047 fi
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3050 $as_echo "$cross_compiling" >&6; }
3051
3052 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3053 ac_clean_files=$ac_clean_files_save
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3055 $as_echo_n "checking for suffix of object files... " >&6; }
3056 if ${ac_cv_objext+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3061
3062 int
3063 main ()
3064 {
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.o conftest.obj
3071 if { { ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compile") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 for ac_file in conftest.o conftest.obj conftest.*; do
3083 test -f "$ac_file" || continue;
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3087 break;;
3088 esac
3089 done
3090 else
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $? "cannot compute suffix of object files: cannot compile
3097 See \`config.log' for more details" "$LINENO" 5; }
3098 fi
3099 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3100 fi
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3102 $as_echo "$ac_cv_objext" >&6; }
3103 OBJEXT=$ac_cv_objext
3104 ac_objext=$OBJEXT
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3106 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3107 if ${ac_cv_c_compiler_gnu+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3112
3113 int
3114 main ()
3115 {
3116 #ifndef __GNUC__
3117 choke me
3118 #endif
3119
3120 ;
3121 return 0;
3122 }
3123 _ACEOF
3124 if ac_fn_c_try_compile "$LINENO"; then :
3125 ac_compiler_gnu=yes
3126 else
3127 ac_compiler_gnu=no
3128 fi
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3131
3132 fi
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3134 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3135 if test $ac_compiler_gnu = yes; then
3136 GCC=yes
3137 else
3138 GCC=
3139 fi
3140 ac_test_CFLAGS=${CFLAGS+set}
3141 ac_save_CFLAGS=$CFLAGS
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3143 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3144 if ${ac_cv_prog_cc_g+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 ac_save_c_werror_flag=$ac_c_werror_flag
3148 ac_c_werror_flag=yes
3149 ac_cv_prog_cc_g=no
3150 CFLAGS="-g"
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3153
3154 int
3155 main ()
3156 {
3157
3158 ;
3159 return 0;
3160 }
3161 _ACEOF
3162 if ac_fn_c_try_compile "$LINENO"; then :
3163 ac_cv_prog_cc_g=yes
3164 else
3165 CFLAGS=""
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 if ac_fn_c_try_compile "$LINENO"; then :
3178
3179 else
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3184
3185 int
3186 main ()
3187 {
3188
3189 ;
3190 return 0;
3191 }
3192 _ACEOF
3193 if ac_fn_c_try_compile "$LINENO"; then :
3194 ac_cv_prog_cc_g=yes
3195 fi
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 fi
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3202 fi
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3204 $as_echo "$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3209 CFLAGS="-g -O2"
3210 else
3211 CFLAGS="-g"
3212 fi
3213 else
3214 if test "$GCC" = yes; then
3215 CFLAGS="-O2"
3216 else
3217 CFLAGS=
3218 fi
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3222 if ${ac_cv_prog_cc_c89+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_cv_prog_cc_c89=no
3226 ac_save_CC=$CC
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3229 #include <stdarg.h>
3230 #include <stdio.h>
3231 struct stat;
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3236 char **p;
3237 int i;
3238 {
3239 return p[i];
3240 }
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3242 {
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249 }
3250
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262 #define FOO(x) 'x'
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269 int argc;
3270 char **argv;
3271 int
3272 main ()
3273 {
3274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 do
3282 CC="$ac_save_CC $ac_arg"
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_c89=$ac_arg
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext
3287 test "x$ac_cv_prog_cc_c89" != "xno" && break
3288 done
3289 rm -f conftest.$ac_ext
3290 CC=$ac_save_CC
3291
3292 fi
3293 # AC_CACHE_VAL
3294 case "x$ac_cv_prog_cc_c89" in
3295 x)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3297 $as_echo "none needed" >&6; } ;;
3298 xno)
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3300 $as_echo "unsupported" >&6; } ;;
3301 *)
3302 CC="$CC $ac_cv_prog_cc_c89"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3305 esac
3306 if test "x$ac_cv_prog_cc_c89" != xno; then :
3307
3308 fi
3309
3310 ac_ext=c
3311 ac_cpp='$CPP $CPPFLAGS'
3312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3322 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3323 if ${am_cv_prog_cc_c_o+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 # Make sure it works both with $CC and with simple cc.
3338 # Following AC_PROG_CC_C_O, we do the test twice because some
3339 # compilers refuse to overwrite an existing .o file with -o,
3340 # though they will create one.
3341 am_cv_prog_cc_c_o=yes
3342 for am_i in 1 2; do
3343 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3344 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } \
3348 && test -f conftest2.$ac_objext; then
3349 : OK
3350 else
3351 am_cv_prog_cc_c_o=no
3352 break
3353 fi
3354 done
3355 rm -f core conftest*
3356 unset am_i
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3359 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3360 if test "$am_cv_prog_cc_c_o" != yes; then
3361 # Losing compiler, so override with the script.
3362 # FIXME: It is wrong to rewrite CC.
3363 # But if we don't then we get into trouble of one sort or another.
3364 # A longer-term fix would be to have automake use am__CC in this case,
3365 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3366 CC="$am_aux_dir/compile $CC"
3367 fi
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373
3374 DEPDIR="${am__leading_dot}deps"
3375
3376 ac_config_commands="$ac_config_commands depfiles"
3377
3378
3379 am_make=${MAKE-make}
3380 cat > confinc << 'END'
3381 am__doit:
3382 @echo this is the am__doit target
3383 .PHONY: am__doit
3384 END
3385 # If we don't find an include directive, just comment out the code.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3387 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3388 am__include="#"
3389 am__quote=
3390 _am_result=none
3391 # First try GNU make style include.
3392 echo "include confinc" > confmf
3393 # Ignore all kinds of additional output from 'make'.
3394 case `$am_make -s -f confmf 2> /dev/null` in #(
3395 *the\ am__doit\ target*)
3396 am__include=include
3397 am__quote=
3398 _am_result=GNU
3399 ;;
3400 esac
3401 # Now try BSD make style include.
3402 if test "$am__include" = "#"; then
3403 echo '.include "confinc"' > confmf
3404 case `$am_make -s -f confmf 2> /dev/null` in #(
3405 *the\ am__doit\ target*)
3406 am__include=.include
3407 am__quote="\""
3408 _am_result=BSD
3409 ;;
3410 esac
3411 fi
3412
3413
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3415 $as_echo "$_am_result" >&6; }
3416 rm -f confinc confmf
3417
3418 # Check whether --enable-dependency-tracking was given.
3419 if test "${enable_dependency_tracking+set}" = set; then :
3420 enableval=$enable_dependency_tracking;
3421 fi
3422
3423 if test "x$enable_dependency_tracking" != xno; then
3424 am_depcomp="$ac_aux_dir/depcomp"
3425 AMDEPBACKSLASH='\'
3426 am__nodep='_no'
3427 fi
3428 if test "x$enable_dependency_tracking" != xno; then
3429 AMDEP_TRUE=
3430 AMDEP_FALSE='#'
3431 else
3432 AMDEP_TRUE='#'
3433 AMDEP_FALSE=
3434 fi
3435
3436
3437
3438 depcc="$CC" am_compiler_list=
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3441 $as_echo_n "checking dependency style of $depcc... " >&6; }
3442 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446 # We make a subdir and do the tests there. Otherwise we can end up
3447 # making bogus files that we don't know about and never remove. For
3448 # instance it was reported that on HP-UX the gcc test will end up
3449 # making a dummy file named 'D' -- because '-MD' means "put the output
3450 # in D".
3451 rm -rf conftest.dir
3452 mkdir conftest.dir
3453 # Copy depcomp to subdir because otherwise we won't find it if we're
3454 # using a relative directory.
3455 cp "$am_depcomp" conftest.dir
3456 cd conftest.dir
3457 # We will build objects and dependencies in a subdirectory because
3458 # it helps to detect inapplicable dependency modes. For instance
3459 # both Tru64's cc and ICC support -MD to output dependencies as a
3460 # side effect of compilation, but ICC will put the dependencies in
3461 # the current directory while Tru64 will put them in the object
3462 # directory.
3463 mkdir sub
3464
3465 am_cv_CC_dependencies_compiler_type=none
3466 if test "$am_compiler_list" = ""; then
3467 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468 fi
3469 am__universal=false
3470 case " $depcc " in #(
3471 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3472 esac
3473
3474 for depmode in $am_compiler_list; do
3475 # Setup a source with many dependencies, because some compilers
3476 # like to wrap large dependency lists on column 80 (with \), and
3477 # we should not choose a depcomp mode which is confused by this.
3478 #
3479 # We need to recreate these files for each test, as the compiler may
3480 # overwrite some of them when testing with obscure command lines.
3481 # This happens at least with the AIX C compiler.
3482 : > sub/conftest.c
3483 for i in 1 2 3 4 5 6; do
3484 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3485 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3486 # Solaris 10 /bin/sh.
3487 echo '/* dummy */' > sub/conftst$i.h
3488 done
3489 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3490
3491 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3492 # mode. It turns out that the SunPro C++ compiler does not properly
3493 # handle '-M -o', and we need to detect this. Also, some Intel
3494 # versions had trouble with output in subdirs.
3495 am__obj=sub/conftest.${OBJEXT-o}
3496 am__minus_obj="-o $am__obj"
3497 case $depmode in
3498 gcc)
3499 # This depmode causes a compiler race in universal mode.
3500 test "$am__universal" = false || continue
3501 ;;
3502 nosideeffect)
3503 # After this tag, mechanisms are not by side-effect, so they'll
3504 # only be used when explicitly requested.
3505 if test "x$enable_dependency_tracking" = xyes; then
3506 continue
3507 else
3508 break
3509 fi
3510 ;;
3511 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3512 # This compiler won't grok '-c -o', but also, the minuso test has
3513 # not run yet. These depmodes are late enough in the game, and
3514 # so weak that their functioning should not be impacted.
3515 am__obj=conftest.${OBJEXT-o}
3516 am__minus_obj=
3517 ;;
3518 none) break ;;
3519 esac
3520 if depmode=$depmode \
3521 source=sub/conftest.c object=$am__obj \
3522 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3523 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3524 >/dev/null 2>conftest.err &&
3525 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3526 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3527 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3528 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3529 # icc doesn't choke on unknown options, it will just issue warnings
3530 # or remarks (even with -Werror). So we grep stderr for any message
3531 # that says an option was ignored or not supported.
3532 # When given -MP, icc 7.0 and 7.1 complain thusly:
3533 # icc: Command line warning: ignoring option '-M'; no argument required
3534 # The diagnosis changed in icc 8.0:
3535 # icc: Command line remark: option '-MP' not supported
3536 if (grep 'ignoring option' conftest.err ||
3537 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3538 am_cv_CC_dependencies_compiler_type=$depmode
3539 break
3540 fi
3541 fi
3542 done
3543
3544 cd ..
3545 rm -rf conftest.dir
3546 else
3547 am_cv_CC_dependencies_compiler_type=none
3548 fi
3549
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3552 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3553 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3554
3555 if
3556 test "x$enable_dependency_tracking" != xno \
3557 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3558 am__fastdepCC_TRUE=
3559 am__fastdepCC_FALSE='#'
3560 else
3561 am__fastdepCC_TRUE='#'
3562 am__fastdepCC_FALSE=
3563 fi
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 case $PKG_CONFIG in
3584 [\\/]* | ?:[\\/]*)
3585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3586 ;;
3587 *)
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 ;;
3604 esac
3605 fi
3606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3607 if test -n "$PKG_CONFIG"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3609 $as_echo "$PKG_CONFIG" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3613 fi
3614
3615
3616 fi
3617 if test -z "$ac_cv_path_PKG_CONFIG"; then
3618 ac_pt_PKG_CONFIG=$PKG_CONFIG
3619 # Extract the first word of "pkg-config", so it can be a program name with args.
3620 set dummy pkg-config; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 case $ac_pt_PKG_CONFIG in
3627 [\\/]* | ?:[\\/]*)
3628 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3629 ;;
3630 *)
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 ;;
3647 esac
3648 fi
3649 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3650 if test -n "$ac_pt_PKG_CONFIG"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3652 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658 if test "x$ac_pt_PKG_CONFIG" = x; then
3659 PKG_CONFIG=""
3660 else
3661 case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667 PKG_CONFIG=$ac_pt_PKG_CONFIG
3668 fi
3669 else
3670 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3671 fi
3672
3673 fi
3674 if test -n "$PKG_CONFIG"; then
3675 _pkg_min_version=0.9.0
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3677 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3678 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680 $as_echo "yes" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 PKG_CONFIG=""
3685 fi
3686 fi
3687
3688 pkg_failed=no
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB1_0" >&5
3690 $as_echo_n "checking for LIBUSB1_0... " >&6; }
3691
3692 if test -n "$LIBUSB1_0_CFLAGS"; then
3693 pkg_cv_LIBUSB1_0_CFLAGS="$LIBUSB1_0_CFLAGS"
3694 elif test -n "$PKG_CONFIG"; then
3695 if test -n "$PKG_CONFIG" && \
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
3697 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then
3701 pkg_cv_LIBUSB1_0_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
3702 test "x$?" != "x0" && pkg_failed=yes
3703 else
3704 pkg_failed=yes
3705 fi
3706 else
3707 pkg_failed=untried
3708 fi
3709 if test -n "$LIBUSB1_0_LIBS"; then
3710 pkg_cv_LIBUSB1_0_LIBS="$LIBUSB1_0_LIBS"
3711 elif test -n "$PKG_CONFIG"; then
3712 if test -n "$PKG_CONFIG" && \
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
3714 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then
3718 pkg_cv_LIBUSB1_0_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
3719 test "x$?" != "x0" && pkg_failed=yes
3720 else
3721 pkg_failed=yes
3722 fi
3723 else
3724 pkg_failed=untried
3725 fi
3726
3727
3728
3729 if test $pkg_failed = yes; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732
3733 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3734 _pkg_short_errors_supported=yes
3735 else
3736 _pkg_short_errors_supported=no
3737 fi
3738 if test $_pkg_short_errors_supported = yes; then
3739 LIBUSB1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
3740 else
3741 LIBUSB1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
3742 fi
3743 # Put the nasty error message in config.log where it belongs
3744 echo "$LIBUSB1_0_PKG_ERRORS" >&5
3745
3746 as_fn_error $? "Package requirements (libusb-1.0) were not met:
3747
3748 $LIBUSB1_0_PKG_ERRORS
3749
3750 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3751 installed software in a non-standard prefix.
3752
3753 Alternatively, you may set the environment variables LIBUSB1_0_CFLAGS
3754 and LIBUSB1_0_LIBS to avoid the need to call pkg-config.
3755 See the pkg-config man page for more details." "$LINENO" 5
3756 elif test $pkg_failed = untried; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
3762 is in your PATH or set the PKG_CONFIG environment variable to the full
3763 path to pkg-config.
3764
3765 Alternatively, you may set the environment variables LIBUSB1_0_CFLAGS
3766 and LIBUSB1_0_LIBS to avoid the need to call pkg-config.
3767 See the pkg-config man page for more details.
3768
3769 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3770 See \`config.log' for more details" "$LINENO" 5; }
3771 else
3772 LIBUSB1_0_CFLAGS=$pkg_cv_LIBUSB1_0_CFLAGS
3773 LIBUSB1_0_LIBS=$pkg_cv_LIBUSB1_0_LIBS
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3775 $as_echo "yes" >&6; }
3776
3777 fi
3778
3779
3780 for ac_func in getopt_long
3781 do :
3782 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
3783 if test "x$ac_cv_func_getopt_long" = xyes; then :
3784 cat >>confdefs.h <<_ACEOF
3785 #define HAVE_GETOPT_LONG 1
3786 _ACEOF
3787
3788 fi
3789 done
3790
3791
3792
3793 $as_echo "#define COPYRIGHT_YEAR 2015
3794 " >>confdefs.h
3795
3796
3797 libusb_is_old=0
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_get_parent in -lusb-1.0" >&5
3799 $as_echo_n "checking for libusb_get_parent in -lusb-1.0... " >&6; }
3800 if ${ac_cv_lib_usb_1_0_libusb_get_parent+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 ac_check_lib_save_LIBS=$LIBS
3804 LIBS="-lusb-1.0 $LIBS"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 /* Override any GCC internal prototype to avoid an error.
3809 Use char because int might match the return type of a GCC
3810 builtin and then its argument prototype would still apply. */
3811 #ifdef __cplusplus
3812 extern "C"
3813 #endif
3814 char libusb_get_parent ();
3815 int
3816 main ()
3817 {
3818 return libusb_get_parent ();
3819 ;
3820 return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_link "$LINENO"; then :
3824 ac_cv_lib_usb_1_0_libusb_get_parent=yes
3825 else
3826 ac_cv_lib_usb_1_0_libusb_get_parent=no
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext \
3829 conftest$ac_exeext conftest.$ac_ext
3830 LIBS=$ac_check_lib_save_LIBS
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_get_parent" >&5
3833 $as_echo "$ac_cv_lib_usb_1_0_libusb_get_parent" >&6; }
3834 if test "x$ac_cv_lib_usb_1_0_libusb_get_parent" = xyes; then :
3835 cat >>confdefs.h <<_ACEOF
3836 #define HAVE_LIBUSB_1_0 1
3837 _ACEOF
3838
3839 LIBS="-lusb-1.0 $LIBS"
3840
3841 else
3842 libusb_is_old=1
3843 fi
3844
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_get_port_number in -lusb-1.0" >&5
3846 $as_echo_n "checking for libusb_get_port_number in -lusb-1.0... " >&6; }
3847 if ${ac_cv_lib_usb_1_0_libusb_get_port_number+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 ac_check_lib_save_LIBS=$LIBS
3851 LIBS="-lusb-1.0 $LIBS"
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 /* Override any GCC internal prototype to avoid an error.
3856 Use char because int might match the return type of a GCC
3857 builtin and then its argument prototype would still apply. */
3858 #ifdef __cplusplus
3859 extern "C"
3860 #endif
3861 char libusb_get_port_number ();
3862 int
3863 main ()
3864 {
3865 return libusb_get_port_number ();
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_link "$LINENO"; then :
3871 ac_cv_lib_usb_1_0_libusb_get_port_number=yes
3872 else
3873 ac_cv_lib_usb_1_0_libusb_get_port_number=no
3874 fi
3875 rm -f core conftest.err conftest.$ac_objext \
3876 conftest$ac_exeext conftest.$ac_ext
3877 LIBS=$ac_check_lib_save_LIBS
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_get_port_number" >&5
3880 $as_echo "$ac_cv_lib_usb_1_0_libusb_get_port_number" >&6; }
3881 if test "x$ac_cv_lib_usb_1_0_libusb_get_port_number" = xyes; then :
3882 cat >>confdefs.h <<_ACEOF
3883 #define HAVE_LIBUSB_1_0 1
3884 _ACEOF
3885
3886 LIBS="-lusb-1.0 $LIBS"
3887
3888 else
3889 libusb_is_old=1
3890 fi
3891
3892
3893 if test $libusb_is_old == 1
3894 then
3895
3896 $as_echo "#define LIBUSB_OLD yes" >>confdefs.h
3897
3898 fi
3899
3900
3901 if test $cross_compiling = no; then
3902
3903 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
3904
3905 else
3906 HELP2MAN=:
3907 fi
3908
3909 ac_config_headers="$ac_config_headers config.h"
3910
3911 ac_config_files="$ac_config_files Makefile src/Makefile"
3912
3913 cat >confcache <<\_ACEOF
3914 # This file is a shell script that caches the results of configure
3915 # tests run on this system so they can be shared between configure
3916 # scripts and configure runs, see configure's option --config-cache.
3917 # It is not useful on other systems. If it contains results you don't
3918 # want to keep, you may remove or edit it.
3919 #
3920 # config.status only pays attention to the cache file if you give it
3921 # the --recheck option to rerun configure.
3922 #
3923 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3925 # following values.
3926
3927 _ACEOF
3928
3929 # The following way of writing the cache mishandles newlines in values,
3930 # but we know of no workaround that is simple, portable, and efficient.
3931 # So, we kill variables containing newlines.
3932 # Ultrix sh set writes to stderr and can't be redirected directly,
3933 # and sets the high bit in the cache file unless we assign to the vars.
3934 (
3935 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3936 eval ac_val=\$$ac_var
3937 case $ac_val in #(
3938 *${as_nl}*)
3939 case $ac_var in #(
3940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3942 esac
3943 case $ac_var in #(
3944 _ | IFS | as_nl) ;; #(
3945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3946 *) { eval $ac_var=; unset $ac_var;} ;;
3947 esac ;;
3948 esac
3949 done
3950
3951 (set) 2>&1 |
3952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3953 *${as_nl}ac_space=\ *)
3954 # `set' does not quote correctly, so add quotes: double-quote
3955 # substitution turns \\\\ into \\, and sed turns \\ into \.
3956 sed -n \
3957 "s/'/'\\\\''/g;
3958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3959 ;; #(
3960 *)
3961 # `set' quotes correctly as required by POSIX, so do not add quotes.
3962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3963 ;;
3964 esac |
3965 sort
3966 ) |
3967 sed '
3968 /^ac_cv_env_/b end
3969 t clear
3970 :clear
3971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3972 t end
3973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3974 :end' >>confcache
3975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3976 if test -w "$cache_file"; then
3977 if test "x$cache_file" != "x/dev/null"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3979 $as_echo "$as_me: updating cache $cache_file" >&6;}
3980 if test ! -f "$cache_file" || test -h "$cache_file"; then
3981 cat confcache >"$cache_file"
3982 else
3983 case $cache_file in #(
3984 */* | ?:*)
3985 mv -f confcache "$cache_file"$$ &&
3986 mv -f "$cache_file"$$ "$cache_file" ;; #(
3987 *)
3988 mv -f confcache "$cache_file" ;;
3989 esac
3990 fi
3991 fi
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3994 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3995 fi
3996 fi
3997 rm -f confcache
3998
3999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4000 # Let make expand exec_prefix.
4001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4002
4003 DEFS=-DHAVE_CONFIG_H
4004
4005 ac_libobjs=
4006 ac_ltlibobjs=
4007 U=
4008 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4009 # 1. Remove the extension, and $U if already installed.
4010 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4011 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4012 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4013 # will be set to the directory where LIBOBJS objects are built.
4014 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4015 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4016 done
4017 LIBOBJS=$ac_libobjs
4018
4019 LTLIBOBJS=$ac_ltlibobjs
4020
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4023 $as_echo_n "checking that generated files are newer than configure... " >&6; }
4024 if test -n "$am_sleep_pid"; then
4025 # Hide warnings about reused PIDs.
4026 wait $am_sleep_pid 2>/dev/null
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4029 $as_echo "done" >&6; }
4030 if test -n "$EXEEXT"; then
4031 am__EXEEXT_TRUE=
4032 am__EXEEXT_FALSE='#'
4033 else
4034 am__EXEEXT_TRUE='#'
4035 am__EXEEXT_FALSE=
4036 fi
4037
4038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4039 as_fn_error $? "conditional \"AMDEP\" was never defined.
4040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4041 fi
4042 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4043 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4045 fi
4046
4047 : "${CONFIG_STATUS=./config.status}"
4048 ac_write_fail=0
4049 ac_clean_files_save=$ac_clean_files
4050 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4052 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4053 as_write_fail=0
4054 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4055 #! $SHELL
4056 # Generated by $as_me.
4057 # Run this file to recreate the current configuration.
4058 # Compiler output produced by configure, useful for debugging
4059 # configure, is in config.log if it exists.
4060
4061 debug=false
4062 ac_cs_recheck=false
4063 ac_cs_silent=false
4064
4065 SHELL=\${CONFIG_SHELL-$SHELL}
4066 export SHELL
4067 _ASEOF
4068 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4069 ## -------------------- ##
4070 ## M4sh Initialization. ##
4071 ## -------------------- ##
4072
4073 # Be more Bourne compatible
4074 DUALCASE=1; export DUALCASE # for MKS sh
4075 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4076 emulate sh
4077 NULLCMD=:
4078 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4079 # is contrary to our usage. Disable this feature.
4080 alias -g '${1+"$@"}'='"$@"'
4081 setopt NO_GLOB_SUBST
4082 else
4083 case `(set -o) 2>/dev/null` in #(
4084 *posix*) :
4085 set -o posix ;; #(
4086 *) :
4087 ;;
4088 esac
4089 fi
4090
4091
4092 as_nl='
4093 '
4094 export as_nl
4095 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4096 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4097 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4098 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4099 # Prefer a ksh shell builtin over an external printf program on Solaris,
4100 # but without wasting forks for bash or zsh.
4101 if test -z "$BASH_VERSION$ZSH_VERSION" \
4102 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4103 as_echo='print -r --'
4104 as_echo_n='print -rn --'
4105 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4106 as_echo='printf %s\n'
4107 as_echo_n='printf %s'
4108 else
4109 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4110 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4111 as_echo_n='/usr/ucb/echo -n'
4112 else
4113 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4114 as_echo_n_body='eval
4115 arg=$1;
4116 case $arg in #(
4117 *"$as_nl"*)
4118 expr "X$arg" : "X\\(.*\\)$as_nl";
4119 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4120 esac;
4121 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4122 '
4123 export as_echo_n_body
4124 as_echo_n='sh -c $as_echo_n_body as_echo'
4125 fi
4126 export as_echo_body
4127 as_echo='sh -c $as_echo_body as_echo'
4128 fi
4129
4130 # The user is always right.
4131 if test "${PATH_SEPARATOR+set}" != set; then
4132 PATH_SEPARATOR=:
4133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4135 PATH_SEPARATOR=';'
4136 }
4137 fi
4138
4139
4140 # IFS
4141 # We need space, tab and new line, in precisely that order. Quoting is
4142 # there to prevent editors from complaining about space-tab.
4143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4144 # splitting by setting IFS to empty value.)
4145 IFS=" "" $as_nl"
4146
4147 # Find who we are. Look in the path if we contain no directory separator.
4148 as_myself=
4149 case $0 in #((
4150 *[\\/]* ) as_myself=$0 ;;
4151 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4157 done
4158 IFS=$as_save_IFS
4159
4160 ;;
4161 esac
4162 # We did not find ourselves, most probably we were run as `sh COMMAND'
4163 # in which case we are not to be found in the path.
4164 if test "x$as_myself" = x; then
4165 as_myself=$0
4166 fi
4167 if test ! -f "$as_myself"; then
4168 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4169 exit 1
4170 fi
4171
4172 # Unset variables that we do not need and which cause bugs (e.g. in
4173 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4174 # suppresses any "Segmentation fault" message there. '((' could
4175 # trigger a bug in pdksh 5.2.14.
4176 for as_var in BASH_ENV ENV MAIL MAILPATH
4177 do eval test x\${$as_var+set} = xset \
4178 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4179 done
4180 PS1='$ '
4181 PS2='> '
4182 PS4='+ '
4183
4184 # NLS nuisances.
4185 LC_ALL=C
4186 export LC_ALL
4187 LANGUAGE=C
4188 export LANGUAGE
4189
4190 # CDPATH.
4191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4192
4193
4194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4195 # ----------------------------------------
4196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4198 # script with STATUS, using 1 if that was 0.
4199 as_fn_error ()
4200 {
4201 as_status=$1; test $as_status -eq 0 && as_status=1
4202 if test "$4"; then
4203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4204 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4205 fi
4206 $as_echo "$as_me: error: $2" >&2
4207 as_fn_exit $as_status
4208 } # as_fn_error
4209
4210
4211 # as_fn_set_status STATUS
4212 # -----------------------
4213 # Set $? to STATUS, without forking.
4214 as_fn_set_status ()
4215 {
4216 return $1
4217 } # as_fn_set_status
4218
4219 # as_fn_exit STATUS
4220 # -----------------
4221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4222 as_fn_exit ()
4223 {
4224 set +e
4225 as_fn_set_status $1
4226 exit $1
4227 } # as_fn_exit
4228
4229 # as_fn_unset VAR
4230 # ---------------
4231 # Portably unset VAR.
4232 as_fn_unset ()
4233 {
4234 { eval $1=; unset $1;}
4235 }
4236 as_unset=as_fn_unset
4237 # as_fn_append VAR VALUE
4238 # ----------------------
4239 # Append the text in VALUE to the end of the definition contained in VAR. Take
4240 # advantage of any shell optimizations that allow amortized linear growth over
4241 # repeated appends, instead of the typical quadratic growth present in naive
4242 # implementations.
4243 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4244 eval 'as_fn_append ()
4245 {
4246 eval $1+=\$2
4247 }'
4248 else
4249 as_fn_append ()
4250 {
4251 eval $1=\$$1\$2
4252 }
4253 fi # as_fn_append
4254
4255 # as_fn_arith ARG...
4256 # ------------------
4257 # Perform arithmetic evaluation on the ARGs, and store the result in the
4258 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4259 # must be portable across $(()) and expr.
4260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4261 eval 'as_fn_arith ()
4262 {
4263 as_val=$(( $* ))
4264 }'
4265 else
4266 as_fn_arith ()
4267 {
4268 as_val=`expr "$@" || test $? -eq 1`
4269 }
4270 fi # as_fn_arith
4271
4272
4273 if expr a : '\(a\)' >/dev/null 2>&1 &&
4274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4275 as_expr=expr
4276 else
4277 as_expr=false
4278 fi
4279
4280 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4281 as_basename=basename
4282 else
4283 as_basename=false
4284 fi
4285
4286 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4287 as_dirname=dirname
4288 else
4289 as_dirname=false
4290 fi
4291
4292 as_me=`$as_basename -- "$0" ||
4293 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4294 X"$0" : 'X\(//\)$' \| \
4295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4296 $as_echo X/"$0" |
4297 sed '/^.*\/\([^/][^/]*\)\/*$/{
4298 s//\1/
4299 q
4300 }
4301 /^X\/\(\/\/\)$/{
4302 s//\1/
4303 q
4304 }
4305 /^X\/\(\/\).*/{
4306 s//\1/
4307 q
4308 }
4309 s/.*/./; q'`
4310
4311 # Avoid depending upon Character Ranges.
4312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4315 as_cr_digits='0123456789'
4316 as_cr_alnum=$as_cr_Letters$as_cr_digits
4317
4318 ECHO_C= ECHO_N= ECHO_T=
4319 case `echo -n x` in #(((((
4320 -n*)
4321 case `echo 'xy\c'` in
4322 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4323 xy) ECHO_C='\c';;
4324 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4325 ECHO_T=' ';;
4326 esac;;
4327 *)
4328 ECHO_N='-n';;
4329 esac
4330
4331 rm -f conf$$ conf$$.exe conf$$.file
4332 if test -d conf$$.dir; then
4333 rm -f conf$$.dir/conf$$.file
4334 else
4335 rm -f conf$$.dir
4336 mkdir conf$$.dir 2>/dev/null
4337 fi
4338 if (echo >conf$$.file) 2>/dev/null; then
4339 if ln -s conf$$.file conf$$ 2>/dev/null; then
4340 as_ln_s='ln -s'
4341 # ... but there are two gotchas:
4342 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4343 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4344 # In both cases, we have to default to `cp -pR'.
4345 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4346 as_ln_s='cp -pR'
4347 elif ln conf$$.file conf$$ 2>/dev/null; then
4348 as_ln_s=ln
4349 else
4350 as_ln_s='cp -pR'
4351 fi
4352 else
4353 as_ln_s='cp -pR'
4354 fi
4355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4356 rmdir conf$$.dir 2>/dev/null
4357
4358
4359 # as_fn_mkdir_p
4360 # -------------
4361 # Create "$as_dir" as a directory, including parents if necessary.
4362 as_fn_mkdir_p ()
4363 {
4364
4365 case $as_dir in #(
4366 -*) as_dir=./$as_dir;;
4367 esac
4368 test -d "$as_dir" || eval $as_mkdir_p || {
4369 as_dirs=
4370 while :; do
4371 case $as_dir in #(
4372 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4373 *) as_qdir=$as_dir;;
4374 esac
4375 as_dirs="'$as_qdir' $as_dirs"
4376 as_dir=`$as_dirname -- "$as_dir" ||
4377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4378 X"$as_dir" : 'X\(//\)[^/]' \| \
4379 X"$as_dir" : 'X\(//\)$' \| \
4380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4381 $as_echo X"$as_dir" |
4382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4383 s//\1/
4384 q
4385 }
4386 /^X\(\/\/\)[^/].*/{
4387 s//\1/
4388 q
4389 }
4390 /^X\(\/\/\)$/{
4391 s//\1/
4392 q
4393 }
4394 /^X\(\/\).*/{
4395 s//\1/
4396 q
4397 }
4398 s/.*/./; q'`
4399 test -d "$as_dir" && break
4400 done
4401 test -z "$as_dirs" || eval "mkdir $as_dirs"
4402 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4403
4404
4405 } # as_fn_mkdir_p
4406 if mkdir -p . 2>/dev/null; then
4407 as_mkdir_p='mkdir -p "$as_dir"'
4408 else
4409 test -d ./-p && rmdir ./-p
4410 as_mkdir_p=false
4411 fi
4412
4413
4414 # as_fn_executable_p FILE
4415 # -----------------------
4416 # Test if FILE is an executable regular file.
4417 as_fn_executable_p ()
4418 {
4419 test -f "$1" && test -x "$1"
4420 } # as_fn_executable_p
4421 as_test_x='test -x'
4422 as_executable_p=as_fn_executable_p
4423
4424 # Sed expression to map a string onto a valid CPP name.
4425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4426
4427 # Sed expression to map a string onto a valid variable name.
4428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4429
4430
4431 exec 6>&1
4432 ## ----------------------------------- ##
4433 ## Main body of $CONFIG_STATUS script. ##
4434 ## ----------------------------------- ##
4435 _ASEOF
4436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4437
4438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4439 # Save the log message, to keep $0 and so on meaningful, and to
4440 # report actual input values of CONFIG_FILES etc. instead of their
4441 # values after options handling.
4442 ac_log="
4443 This file was extended by air-quality-sensor $as_me 0.1.3, which was
4444 generated by GNU Autoconf 2.69. Invocation command line was
4445
4446 CONFIG_FILES = $CONFIG_FILES
4447 CONFIG_HEADERS = $CONFIG_HEADERS
4448 CONFIG_LINKS = $CONFIG_LINKS
4449 CONFIG_COMMANDS = $CONFIG_COMMANDS
4450 $ $0 $@
4451
4452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4453 "
4454
4455 _ACEOF
4456
4457 case $ac_config_files in *"
4458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4459 esac
4460
4461 case $ac_config_headers in *"
4462 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4463 esac
4464
4465
4466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4467 # Files that config.status was made for.
4468 config_files="$ac_config_files"
4469 config_headers="$ac_config_headers"
4470 config_commands="$ac_config_commands"
4471
4472 _ACEOF
4473
4474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4475 ac_cs_usage="\
4476 \`$as_me' instantiates files and other configuration actions
4477 from templates according to the current configuration. Unless the files
4478 and actions are specified as TAGs, all are instantiated by default.
4479
4480 Usage: $0 [OPTION]... [TAG]...
4481
4482 -h, --help print this help, then exit
4483 -V, --version print version number and configuration settings, then exit
4484 --config print configuration, then exit
4485 -q, --quiet, --silent
4486 do not print progress messages
4487 -d, --debug don't remove temporary files
4488 --recheck update $as_me by reconfiguring in the same conditions
4489 --file=FILE[:TEMPLATE]
4490 instantiate the configuration file FILE
4491 --header=FILE[:TEMPLATE]
4492 instantiate the configuration header FILE
4493
4494 Configuration files:
4495 $config_files
4496
4497 Configuration headers:
4498 $config_headers
4499
4500 Configuration commands:
4501 $config_commands
4502
4503 Report bugs to <air-quality-sensor@benedikt-wildenhain.de>."
4504
4505 _ACEOF
4506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4507 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4508 ac_cs_version="\\
4509 air-quality-sensor config.status 0.1.3
4510 configured by $0, generated by GNU Autoconf 2.69,
4511 with options \\"\$ac_cs_config\\"
4512
4513 Copyright (C) 2012 Free Software Foundation, Inc.
4514 This config.status script is free software; the Free Software Foundation
4515 gives unlimited permission to copy, distribute and modify it."
4516
4517 ac_pwd='$ac_pwd'
4518 srcdir='$srcdir'
4519 INSTALL='$INSTALL'
4520 MKDIR_P='$MKDIR_P'
4521 AWK='$AWK'
4522 test -n "\$AWK" || AWK=awk
4523 _ACEOF
4524
4525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4526 # The default lists apply if the user does not specify any file.
4527 ac_need_defaults=:
4528 while test $# != 0
4529 do
4530 case $1 in
4531 --*=?*)
4532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4533 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4534 ac_shift=:
4535 ;;
4536 --*=)
4537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4538 ac_optarg=
4539 ac_shift=:
4540 ;;
4541 *)
4542 ac_option=$1
4543 ac_optarg=$2
4544 ac_shift=shift
4545 ;;
4546 esac
4547
4548 case $ac_option in
4549 # Handling of the options.
4550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4551 ac_cs_recheck=: ;;
4552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4553 $as_echo "$ac_cs_version"; exit ;;
4554 --config | --confi | --conf | --con | --co | --c )
4555 $as_echo "$ac_cs_config"; exit ;;
4556 --debug | --debu | --deb | --de | --d | -d )
4557 debug=: ;;
4558 --file | --fil | --fi | --f )
4559 $ac_shift
4560 case $ac_optarg in
4561 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4562 '') as_fn_error $? "missing file argument" ;;
4563 esac
4564 as_fn_append CONFIG_FILES " '$ac_optarg'"
4565 ac_need_defaults=false;;
4566 --header | --heade | --head | --hea )
4567 $ac_shift
4568 case $ac_optarg in
4569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4570 esac
4571 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4572 ac_need_defaults=false;;
4573 --he | --h)
4574 # Conflict between --help and --header
4575 as_fn_error $? "ambiguous option: \`$1'
4576 Try \`$0 --help' for more information.";;
4577 --help | --hel | -h )
4578 $as_echo "$ac_cs_usage"; exit ;;
4579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4580 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4581 ac_cs_silent=: ;;
4582
4583 # This is an error.
4584 -*) as_fn_error $? "unrecognized option: \`$1'
4585 Try \`$0 --help' for more information." ;;
4586
4587 *) as_fn_append ac_config_targets " $1"
4588 ac_need_defaults=false ;;
4589
4590 esac
4591 shift
4592 done
4593
4594 ac_configure_extra_args=
4595
4596 if $ac_cs_silent; then
4597 exec 6>/dev/null
4598 ac_configure_extra_args="$ac_configure_extra_args --silent"
4599 fi
4600
4601 _ACEOF
4602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4603 if \$ac_cs_recheck; then
4604 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4605 shift
4606 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4607 CONFIG_SHELL='$SHELL'
4608 export CONFIG_SHELL
4609 exec "\$@"
4610 fi
4611
4612 _ACEOF
4613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4614 exec 5>>config.log
4615 {
4616 echo
4617 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4618 ## Running $as_me. ##
4619 _ASBOX
4620 $as_echo "$ac_log"
4621 } >&5
4622
4623 _ACEOF
4624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4625 #
4626 # INIT-COMMANDS
4627 #
4628 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4629
4630 _ACEOF
4631
4632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4633
4634 # Handling of arguments.
4635 for ac_config_target in $ac_config_targets
4636 do
4637 case $ac_config_target in
4638 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4639 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4641 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4642
4643 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4644 esac
4645 done
4646
4647
4648 # If the user did not use the arguments to specify the items to instantiate,
4649 # then the envvar interface is used. Set only those that are not.
4650 # We use the long form for the default assignment because of an extremely
4651 # bizarre bug on SunOS 4.1.3.
4652 if $ac_need_defaults; then
4653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4656 fi
4657
4658 # Have a temporary directory for convenience. Make it in the build tree
4659 # simply because there is no reason against having it here, and in addition,
4660 # creating and moving files from /tmp can sometimes cause problems.
4661 # Hook for its removal unless debugging.
4662 # Note that there is a small window in which the directory will not be cleaned:
4663 # after its creation but before its name has been assigned to `$tmp'.
4664 $debug ||
4665 {
4666 tmp= ac_tmp=
4667 trap 'exit_status=$?
4668 : "${ac_tmp:=$tmp}"
4669 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4670 ' 0
4671 trap 'as_fn_exit 1' 1 2 13 15
4672 }
4673 # Create a (secure) tmp directory for tmp files.
4674
4675 {
4676 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4677 test -d "$tmp"
4678 } ||
4679 {
4680 tmp=./conf$$-$RANDOM
4681 (umask 077 && mkdir "$tmp")
4682 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4683 ac_tmp=$tmp
4684
4685 # Set up the scripts for CONFIG_FILES section.
4686 # No need to generate them if there are no CONFIG_FILES.
4687 # This happens for instance with `./config.status config.h'.
4688 if test -n "$CONFIG_FILES"; then
4689
4690
4691 ac_cr=`echo X | tr X '\015'`
4692 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4693 # But we know of no other shell where ac_cr would be empty at this
4694 # point, so we can use a bashism as a fallback.
4695 if test "x$ac_cr" = x; then
4696 eval ac_cr=\$\'\\r\'
4697 fi
4698 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4699 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4700 ac_cs_awk_cr='\\r'
4701 else
4702 ac_cs_awk_cr=$ac_cr
4703 fi
4704
4705 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4706 _ACEOF
4707
4708
4709 {
4710 echo "cat >conf$$subs.awk <<_ACEOF" &&
4711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4712 echo "_ACEOF"
4713 } >conf$$subs.sh ||
4714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4716 ac_delim='%!_!# '
4717 for ac_last_try in false false false false false :; do
4718 . ./conf$$subs.sh ||
4719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4720
4721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4722 if test $ac_delim_n = $ac_delim_num; then
4723 break
4724 elif $ac_last_try; then
4725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4726 else
4727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4728 fi
4729 done
4730 rm -f conf$$subs.sh
4731
4732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4733 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4734 _ACEOF
4735 sed -n '
4736 h
4737 s/^/S["/; s/!.*/"]=/
4738 p
4739 g
4740 s/^[^!]*!//
4741 :repl
4742 t repl
4743 s/'"$ac_delim"'$//
4744 t delim
4745 :nl
4746 h
4747 s/\(.\{148\}\)..*/\1/
4748 t more1
4749 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4750 p
4751 n
4752 b repl
4753 :more1
4754 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4755 p
4756 g
4757 s/.\{148\}//
4758 t nl
4759 :delim
4760 h
4761 s/\(.\{148\}\)..*/\1/
4762 t more2
4763 s/["\\]/\\&/g; s/^/"/; s/$/"/
4764 p
4765 b
4766 :more2
4767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4768 p
4769 g
4770 s/.\{148\}//
4771 t delim
4772 ' <conf$$subs.awk | sed '
4773 /^[^""]/{
4774 N
4775 s/\n//
4776 }
4777 ' >>$CONFIG_STATUS || ac_write_fail=1
4778 rm -f conf$$subs.awk
4779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4780 _ACAWK
4781 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4782 for (key in S) S_is_set[key] = 1
4783 FS = ""
4784
4785 }
4786 {
4787 line = $ 0
4788 nfields = split(line, field, "@")
4789 substed = 0
4790 len = length(field[1])
4791 for (i = 2; i < nfields; i++) {
4792 key = field[i]
4793 keylen = length(key)
4794 if (S_is_set[key]) {
4795 value = S[key]
4796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4797 len += length(value) + length(field[++i])
4798 substed = 1
4799 } else
4800 len += 1 + keylen
4801 }
4802
4803 print line
4804 }
4805
4806 _ACAWK
4807 _ACEOF
4808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4809 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4811 else
4812 cat
4813 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4814 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4815 _ACEOF
4816
4817 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4818 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4819 # trailing colons and then remove the whole line if VPATH becomes empty
4820 # (actually we leave an empty line to preserve line numbers).
4821 if test "x$srcdir" = x.; then
4822 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4823 h
4824 s///
4825 s/^/:/
4826 s/[ ]*$/:/
4827 s/:\$(srcdir):/:/g
4828 s/:\${srcdir}:/:/g
4829 s/:@srcdir@:/:/g
4830 s/^:*//
4831 s/:*$//
4832 x
4833 s/\(=[ ]*\).*/\1/
4834 G
4835 s/\n//
4836 s/^[^=]*=[ ]*$//
4837 }'
4838 fi
4839
4840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4841 fi # test -n "$CONFIG_FILES"
4842
4843 # Set up the scripts for CONFIG_HEADERS section.
4844 # No need to generate them if there are no CONFIG_HEADERS.
4845 # This happens for instance with `./config.status Makefile'.
4846 if test -n "$CONFIG_HEADERS"; then
4847 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4848 BEGIN {
4849 _ACEOF
4850
4851 # Transform confdefs.h into an awk script `defines.awk', embedded as
4852 # here-document in config.status, that substitutes the proper values into
4853 # config.h.in to produce config.h.
4854
4855 # Create a delimiter string that does not exist in confdefs.h, to ease
4856 # handling of long lines.
4857 ac_delim='%!_!# '
4858 for ac_last_try in false false :; do
4859 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4860 if test -z "$ac_tt"; then
4861 break
4862 elif $ac_last_try; then
4863 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4864 else
4865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4866 fi
4867 done
4868
4869 # For the awk script, D is an array of macro values keyed by name,
4870 # likewise P contains macro parameters if any. Preserve backslash
4871 # newline sequences.
4872
4873 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4874 sed -n '
4875 s/.\{148\}/&'"$ac_delim"'/g
4876 t rset
4877 :rset
4878 s/^[ ]*#[ ]*define[ ][ ]*/ /
4879 t def
4880 d
4881 :def
4882 s/\\$//
4883 t bsnl
4884 s/["\\]/\\&/g
4885 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4886 D["\1"]=" \3"/p
4887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4888 d
4889 :bsnl
4890 s/["\\]/\\&/g
4891 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4892 D["\1"]=" \3\\\\\\n"\\/p
4893 t cont
4894 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4895 t cont
4896 d
4897 :cont
4898 n
4899 s/.\{148\}/&'"$ac_delim"'/g
4900 t clear
4901 :clear
4902 s/\\$//
4903 t bsnlc
4904 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4905 d
4906 :bsnlc
4907 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4908 b cont
4909 ' <confdefs.h | sed '
4910 s/'"$ac_delim"'/"\\\
4911 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4912
4913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4914 for (key in D) D_is_set[key] = 1
4915 FS = ""
4916 }
4917 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4918 line = \$ 0
4919 split(line, arg, " ")
4920 if (arg[1] == "#") {
4921 defundef = arg[2]
4922 mac1 = arg[3]
4923 } else {
4924 defundef = substr(arg[1], 2)
4925 mac1 = arg[2]
4926 }
4927 split(mac1, mac2, "(") #)
4928 macro = mac2[1]
4929 prefix = substr(line, 1, index(line, defundef) - 1)
4930 if (D_is_set[macro]) {
4931 # Preserve the white space surrounding the "#".
4932 print prefix "define", macro P[macro] D[macro]
4933 next
4934 } else {
4935 # Replace #undef with comments. This is necessary, for example,
4936 # in the case of _POSIX_SOURCE, which is predefined and required
4937 # on some systems where configure will not decide to define it.
4938 if (defundef == "undef") {
4939 print "/*", prefix defundef, macro, "*/"
4940 next
4941 }
4942 }
4943 }
4944 { print }
4945 _ACAWK
4946 _ACEOF
4947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4948 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4949 fi # test -n "$CONFIG_HEADERS"
4950
4951
4952 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
4953 shift
4954 for ac_tag
4955 do
4956 case $ac_tag in
4957 :[FHLC]) ac_mode=$ac_tag; continue;;
4958 esac
4959 case $ac_mode$ac_tag in
4960 :[FHL]*:*);;
4961 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4962 :[FH]-) ac_tag=-:-;;
4963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4964 esac
4965 ac_save_IFS=$IFS
4966 IFS=:
4967 set x $ac_tag
4968 IFS=$ac_save_IFS
4969 shift
4970 ac_file=$1
4971 shift
4972
4973 case $ac_mode in
4974 :L) ac_source=$1;;
4975 :[FH])
4976 ac_file_inputs=
4977 for ac_f
4978 do
4979 case $ac_f in
4980 -) ac_f="$ac_tmp/stdin";;
4981 *) # Look for the file first in the build tree, then in the source tree
4982 # (if the path is not absolute). The absolute path cannot be DOS-style,
4983 # because $ac_f cannot contain `:'.
4984 test -f "$ac_f" ||
4985 case $ac_f in
4986 [\\/$]*) false;;
4987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4988 esac ||
4989 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4990 esac
4991 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4992 as_fn_append ac_file_inputs " '$ac_f'"
4993 done
4994
4995 # Let's still pretend it is `configure' which instantiates (i.e., don't
4996 # use $as_me), people would be surprised to read:
4997 # /* config.h. Generated by config.status. */
4998 configure_input='Generated from '`
4999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5000 `' by configure.'
5001 if test x"$ac_file" != x-; then
5002 configure_input="$ac_file. $configure_input"
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5004 $as_echo "$as_me: creating $ac_file" >&6;}
5005 fi
5006 # Neutralize special characters interpreted by sed in replacement strings.
5007 case $configure_input in #(
5008 *\&* | *\|* | *\\* )
5009 ac_sed_conf_input=`$as_echo "$configure_input" |
5010 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5011 *) ac_sed_conf_input=$configure_input;;
5012 esac
5013
5014 case $ac_tag in
5015 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5017 esac
5018 ;;
5019 esac
5020
5021 ac_dir=`$as_dirname -- "$ac_file" ||
5022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5023 X"$ac_file" : 'X\(//\)[^/]' \| \
5024 X"$ac_file" : 'X\(//\)$' \| \
5025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5026 $as_echo X"$ac_file" |
5027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5028 s//\1/
5029 q
5030 }
5031 /^X\(\/\/\)[^/].*/{
5032 s//\1/
5033 q
5034 }
5035 /^X\(\/\/\)$/{
5036 s//\1/
5037 q
5038 }
5039 /^X\(\/\).*/{
5040 s//\1/
5041 q
5042 }
5043 s/.*/./; q'`
5044 as_dir="$ac_dir"; as_fn_mkdir_p
5045 ac_builddir=.
5046
5047 case "$ac_dir" in
5048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5049 *)
5050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5051 # A ".." for each directory in $ac_dir_suffix.
5052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5053 case $ac_top_builddir_sub in
5054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5056 esac ;;
5057 esac
5058 ac_abs_top_builddir=$ac_pwd
5059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5060 # for backward compatibility:
5061 ac_top_builddir=$ac_top_build_prefix
5062
5063 case $srcdir in
5064 .) # We are building in place.
5065 ac_srcdir=.
5066 ac_top_srcdir=$ac_top_builddir_sub
5067 ac_abs_top_srcdir=$ac_pwd ;;
5068 [\\/]* | ?:[\\/]* ) # Absolute name.
5069 ac_srcdir=$srcdir$ac_dir_suffix;
5070 ac_top_srcdir=$srcdir
5071 ac_abs_top_srcdir=$srcdir ;;
5072 *) # Relative name.
5073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5074 ac_top_srcdir=$ac_top_build_prefix$srcdir
5075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5076 esac
5077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5078
5079
5080 case $ac_mode in
5081 :F)
5082 #
5083 # CONFIG_FILE
5084 #
5085
5086 case $INSTALL in
5087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5089 esac
5090 ac_MKDIR_P=$MKDIR_P
5091 case $MKDIR_P in
5092 [\\/$]* | ?:[\\/]* ) ;;
5093 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5094 esac
5095 _ACEOF
5096
5097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5098 # If the template does not know about datarootdir, expand it.
5099 # FIXME: This hack should be removed a few years after 2.60.
5100 ac_datarootdir_hack=; ac_datarootdir_seen=
5101 ac_sed_dataroot='
5102 /datarootdir/ {
5103 p
5104 q
5105 }
5106 /@datadir@/p
5107 /@docdir@/p
5108 /@infodir@/p
5109 /@localedir@/p
5110 /@mandir@/p'
5111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5112 *datarootdir*) ac_datarootdir_seen=yes;;
5113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5116 _ACEOF
5117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5118 ac_datarootdir_hack='
5119 s&@datadir@&$datadir&g
5120 s&@docdir@&$docdir&g
5121 s&@infodir@&$infodir&g
5122 s&@localedir@&$localedir&g
5123 s&@mandir@&$mandir&g
5124 s&\\\${datarootdir}&$datarootdir&g' ;;
5125 esac
5126 _ACEOF
5127
5128 # Neutralize VPATH when `$srcdir' = `.'.
5129 # Shell code in configure.ac might set extrasub.
5130 # FIXME: do we really want to maintain this feature?
5131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5132 ac_sed_extra="$ac_vpsub
5133 $extrasub
5134 _ACEOF
5135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5136 :t
5137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5138 s|@configure_input@|$ac_sed_conf_input|;t t
5139 s&@top_builddir@&$ac_top_builddir_sub&;t t
5140 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5141 s&@srcdir@&$ac_srcdir&;t t
5142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5143 s&@top_srcdir@&$ac_top_srcdir&;t t
5144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5145 s&@builddir@&$ac_builddir&;t t
5146 s&@abs_builddir@&$ac_abs_builddir&;t t
5147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5148 s&@INSTALL@&$ac_INSTALL&;t t
5149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5150 $ac_datarootdir_hack
5151 "
5152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5153 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5154
5155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5158 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5160 which seems to be undefined. Please make sure it is defined" >&5
5161 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5162 which seems to be undefined. Please make sure it is defined" >&2;}
5163
5164 rm -f "$ac_tmp/stdin"
5165 case $ac_file in
5166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5168 esac \
5169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5170 ;;
5171 :H)
5172 #
5173 # CONFIG_HEADER
5174 #
5175 if test x"$ac_file" != x-; then
5176 {
5177 $as_echo "/* $configure_input */" \
5178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5179 } >"$ac_tmp/config.h" \
5180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5181 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5183 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5184 else
5185 rm -f "$ac_file"
5186 mv "$ac_tmp/config.h" "$ac_file" \
5187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5188 fi
5189 else
5190 $as_echo "/* $configure_input */" \
5191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5192 || as_fn_error $? "could not create -" "$LINENO" 5
5193 fi
5194 # Compute "$ac_file"'s index in $config_headers.
5195 _am_arg="$ac_file"
5196 _am_stamp_count=1
5197 for _am_header in $config_headers :; do
5198 case $_am_header in
5199 $_am_arg | $_am_arg:* )
5200 break ;;
5201 * )
5202 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5203 esac
5204 done
5205 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5206 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5207 X"$_am_arg" : 'X\(//\)[^/]' \| \
5208 X"$_am_arg" : 'X\(//\)$' \| \
5209 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5210 $as_echo X"$_am_arg" |
5211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5212 s//\1/
5213 q
5214 }
5215 /^X\(\/\/\)[^/].*/{
5216 s//\1/
5217 q
5218 }
5219 /^X\(\/\/\)$/{
5220 s//\1/
5221 q
5222 }
5223 /^X\(\/\).*/{
5224 s//\1/
5225 q
5226 }
5227 s/.*/./; q'`/stamp-h$_am_stamp_count
5228 ;;
5229
5230 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5231 $as_echo "$as_me: executing $ac_file commands" >&6;}
5232 ;;
5233 esac
5234
5235
5236 case $ac_file$ac_mode in
5237 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5238 # Older Autoconf quotes --file arguments for eval, but not when files
5239 # are listed without --file. Let's play safe and only enable the eval
5240 # if we detect the quoting.
5241 case $CONFIG_FILES in
5242 *\'*) eval set x "$CONFIG_FILES" ;;
5243 *) set x $CONFIG_FILES ;;
5244 esac
5245 shift
5246 for mf
5247 do
5248 # Strip MF so we end up with the name of the file.
5249 mf=`echo "$mf" | sed -e 's/:.*$//'`
5250 # Check whether this is an Automake generated Makefile or not.
5251 # We used to match only the files named 'Makefile.in', but
5252 # some people rename them; so instead we look at the file content.
5253 # Grep'ing the first line is not enough: some people post-process
5254 # each Makefile.in and add a new line on top of each file to say so.
5255 # Grep'ing the whole file is not good either: AIX grep has a line
5256 # limit of 2048, but all sed's we know have understand at least 4000.
5257 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5258 dirpart=`$as_dirname -- "$mf" ||
5259 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5260 X"$mf" : 'X\(//\)[^/]' \| \
5261 X"$mf" : 'X\(//\)$' \| \
5262 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5263 $as_echo X"$mf" |
5264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5265 s//\1/
5266 q
5267 }
5268 /^X\(\/\/\)[^/].*/{
5269 s//\1/
5270 q
5271 }
5272 /^X\(\/\/\)$/{
5273 s//\1/
5274 q
5275 }
5276 /^X\(\/\).*/{
5277 s//\1/
5278 q
5279 }
5280 s/.*/./; q'`
5281 else
5282 continue
5283 fi
5284 # Extract the definition of DEPDIR, am__include, and am__quote
5285 # from the Makefile without running 'make'.
5286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5287 test -z "$DEPDIR" && continue
5288 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5289 test -z "$am__include" && continue
5290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5291 # Find all dependency output files, they are included files with
5292 # $(DEPDIR) in their names. We invoke sed twice because it is the
5293 # simplest approach to changing $(DEPDIR) to its actual value in the
5294 # expansion.
5295 for file in `sed -n "
5296 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5297 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5298 # Make sure the directory exists.
5299 test -f "$dirpart/$file" && continue
5300 fdir=`$as_dirname -- "$file" ||
5301 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5302 X"$file" : 'X\(//\)[^/]' \| \
5303 X"$file" : 'X\(//\)$' \| \
5304 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5305 $as_echo X"$file" |
5306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5307 s//\1/
5308 q
5309 }
5310 /^X\(\/\/\)[^/].*/{
5311 s//\1/
5312 q
5313 }
5314 /^X\(\/\/\)$/{
5315 s//\1/
5316 q
5317 }
5318 /^X\(\/\).*/{
5319 s//\1/
5320 q
5321 }
5322 s/.*/./; q'`
5323 as_dir=$dirpart/$fdir; as_fn_mkdir_p
5324 # echo "creating $dirpart/$file"
5325 echo '# dummy' > "$dirpart/$file"
5326 done
5327 done
5328 }
5329 ;;
5330
5331 esac
5332 done # for ac_tag
5333
5334
5335 as_fn_exit 0
5336 _ACEOF
5337 ac_clean_files=$ac_clean_files_save
5338
5339 test $ac_write_fail = 0 ||
5340 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5341
5342
5343 # configure is writing to config.log, and then calls config.status.
5344 # config.status does its own redirection, appending to config.log.
5345 # Unfortunately, on DOS this fails, as config.log is still kept open
5346 # by configure, so config.status won't be able to write to it; its
5347 # output is simply discarded. So we exec the FD to /dev/null,
5348 # effectively closing config.log, so it can be properly (re)opened and
5349 # appended to by config.status. When coming back to configure, we
5350 # need to make the FD available again.
5351 if test "$no_create" != yes; then
5352 ac_cs_success=:
5353 ac_config_status_args=
5354 test "$silent" = yes &&
5355 ac_config_status_args="$ac_config_status_args --quiet"
5356 exec 5>/dev/null
5357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5358 exec 5>>config.log
5359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5360 # would make configure fail if this is the last instruction.
5361 $ac_cs_success || as_fn_exit 1
5362 fi
5363 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5365 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5366 fi
5367
5368
5369
5370
5371
5372
5373
5374
5375 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 case $PKG_CONFIG in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5387 ;;
5388 *)
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 ;;
5405 esac
5406 fi
5407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5408 if test -n "$PKG_CONFIG"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5410 $as_echo "$PKG_CONFIG" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 fi
5418 if test -z "$ac_cv_path_PKG_CONFIG"; then
5419 ac_pt_PKG_CONFIG=$PKG_CONFIG
5420 # Extract the first word of "pkg-config", so it can be a program name with args.
5421 set dummy pkg-config; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 case $ac_pt_PKG_CONFIG in
5428 [\\/]* | ?:[\\/]*)
5429 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5430 ;;
5431 *)
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 ;;
5448 esac
5449 fi
5450 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5451 if test -n "$ac_pt_PKG_CONFIG"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5453 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459 if test "x$ac_pt_PKG_CONFIG" = x; then
5460 PKG_CONFIG=""
5461 else
5462 case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468 PKG_CONFIG=$ac_pt_PKG_CONFIG
5469 fi
5470 else
5471 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5472 fi
5473
5474 fi
5475 if test -n "$PKG_CONFIG"; then
5476 _pkg_min_version=0.9.0
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5478 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5479 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 PKG_CONFIG=""
5486 fi
5487 fi
0 AC_INIT([air-quality-sensor], [0.1.3], [air-quality-sensor@benedikt-wildenhain.de])
0 AC_INIT([air-quality-sensor], [0.1.4.2], [air-quality-sensor@benedikt-wildenhain.de])
11 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
22 AC_PROG_CC
33 AM_PROG_CC_C_O
77
88 dnl Copyright will apply as long as these sources are in use, e.g., are
99 dnl being compiled, which is reasonable year to claim the copyright.
10 AC_DEFINE([COPYRIGHT_YEAR], [m4_esyscmd([date +%Y])], [year in copyright message])
10 if test "x$SOURCE_DATE_EPOCH" = "x"; then
11 year=m4_esyscmd([date +%Y])
12 else
13 year=`date -u -d "@$SOURCE_DATE_EPOCH" "+%Y" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+%Y" 2>/dev/null || date -u "+%Y"`
14 fi
15 AC_DEFINE_UNQUOTED([COPYRIGHT_YEAR], ["$year"], [year in copyright message])
1116
1217 libusb_is_old=0
1318 AC_CHECK_LIB(usb-1.0, libusb_get_parent, [], [libusb_is_old=1])
55
66 # manpages
77 man_MANS = air-quality-sensor.1
8 EXTRA_DIST = $(man_MANS) manpage.include
8
9 # Appdata files
10
11 metainfodir = $(datadir)/metainfo
12 metainfo_DATA = de.benedikt-wildenhain.air-quality-sensor.metainfo.xml
13
14 EXTRA_DIST = $(man_MANS) manpage.include $(metainfo_DATA)
915
1016 man_include = $(srcdir)/manpage.include
1117
+0
-658
src/Makefile.in less more
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2013 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 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62 pkgdatadir = $(datadir)/@PACKAGE@
63 pkgincludedir = $(includedir)/@PACKAGE@
64 pkglibdir = $(libdir)/@PACKAGE@
65 pkglibexecdir = $(libexecdir)/@PACKAGE@
66 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67 install_sh_DATA = $(install_sh) -c -m 644
68 install_sh_PROGRAM = $(install_sh) -c
69 install_sh_SCRIPT = $(install_sh) -c
70 INSTALL_HEADER = $(INSTALL_DATA)
71 transform = $(program_transform_name)
72 NORMAL_INSTALL = :
73 PRE_INSTALL = :
74 POST_INSTALL = :
75 NORMAL_UNINSTALL = :
76 PRE_UNINSTALL = :
77 POST_UNINSTALL = :
78 bin_PROGRAMS = air-quality-sensor$(EXEEXT)
79 subdir = src
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
81 $(top_srcdir)/depcomp
82 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
83 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
84 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
85 $(ACLOCAL_M4)
86 mkinstalldirs = $(install_sh) -d
87 CONFIG_HEADER = $(top_builddir)/config.h
88 CONFIG_CLEAN_FILES =
89 CONFIG_CLEAN_VPATH_FILES =
90 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
91 PROGRAMS = $(bin_PROGRAMS)
92 am_air_quality_sensor_OBJECTS = air_quality_sensor-air10.$(OBJEXT)
93 air_quality_sensor_OBJECTS = $(am_air_quality_sensor_OBJECTS)
94 am__DEPENDENCIES_1 =
95 air_quality_sensor_DEPENDENCIES = $(am__DEPENDENCIES_1)
96 air_quality_sensor_LINK = $(CCLD) $(air_quality_sensor_CFLAGS) \
97 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
98 AM_V_P = $(am__v_P_@AM_V@)
99 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
100 am__v_P_0 = false
101 am__v_P_1 = :
102 AM_V_GEN = $(am__v_GEN_@AM_V@)
103 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
104 am__v_GEN_0 = @echo " GEN " $@;
105 am__v_GEN_1 =
106 AM_V_at = $(am__v_at_@AM_V@)
107 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
108 am__v_at_0 = @
109 am__v_at_1 =
110 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
111 depcomp = $(SHELL) $(top_srcdir)/depcomp
112 am__depfiles_maybe = depfiles
113 am__mv = mv -f
114 AM_V_lt = $(am__v_lt_@AM_V@)
115 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
116 am__v_lt_0 = --silent
117 am__v_lt_1 =
118 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
119 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
120 AM_V_CC = $(am__v_CC_@AM_V@)
121 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
122 am__v_CC_0 = @echo " CC " $@;
123 am__v_CC_1 =
124 CCLD = $(CC)
125 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
126 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
127 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
128 am__v_CCLD_0 = @echo " CCLD " $@;
129 am__v_CCLD_1 =
130 SOURCES = $(air_quality_sensor_SOURCES)
131 DIST_SOURCES = $(air_quality_sensor_SOURCES)
132 am__can_run_installinfo = \
133 case $$AM_UPDATE_INFO_DIR in \
134 n|no|NO) false;; \
135 *) (install-info --version) >/dev/null 2>&1;; \
136 esac
137 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
138 am__vpath_adj = case $$p in \
139 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
140 *) f=$$p;; \
141 esac;
142 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
143 am__install_max = 40
144 am__nobase_strip_setup = \
145 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
146 am__nobase_strip = \
147 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
148 am__nobase_list = $(am__nobase_strip_setup); \
149 for p in $$list; do echo "$$p $$p"; done | \
150 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
151 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
152 if (++n[$$2] == $(am__install_max)) \
153 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
154 END { for (dir in files) print dir, files[dir] }'
155 am__base_list = \
156 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
157 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
158 am__uninstall_files_from_dir = { \
159 test -z "$$files" \
160 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
161 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
162 $(am__cd) "$$dir" && rm -f $$files; }; \
163 }
164 man1dir = $(mandir)/man1
165 NROFF = nroff
166 MANS = $(man_MANS)
167 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
168 # Read a list of newline-separated strings from the standard input,
169 # and print each of them once, without duplicates. Input order is
170 # *not* preserved.
171 am__uniquify_input = $(AWK) '\
172 BEGIN { nonempty = 0; } \
173 { items[$$0] = 1; nonempty = 1; } \
174 END { if (nonempty) { for (i in items) print i; }; } \
175 '
176 # Make sure the list of sources is unique. This is necessary because,
177 # e.g., the same source file might be shared among _SOURCES variables
178 # for different programs/libraries.
179 am__define_uniq_tagged_files = \
180 list='$(am__tagged_files)'; \
181 unique=`for i in $$list; do \
182 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
183 done | $(am__uniquify_input)`
184 ETAGS = etags
185 CTAGS = ctags
186 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
187 ACLOCAL = @ACLOCAL@
188 AMTAR = @AMTAR@
189 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
190 AUTOCONF = @AUTOCONF@
191 AUTOHEADER = @AUTOHEADER@
192 AUTOMAKE = @AUTOMAKE@
193 AWK = @AWK@
194 CC = @CC@
195 CCDEPMODE = @CCDEPMODE@
196 CFLAGS = @CFLAGS@
197 CPPFLAGS = @CPPFLAGS@
198 CYGPATH_W = @CYGPATH_W@
199 DEFS = @DEFS@
200 DEPDIR = @DEPDIR@
201 ECHO_C = @ECHO_C@
202 ECHO_N = @ECHO_N@
203 ECHO_T = @ECHO_T@
204 EXEEXT = @EXEEXT@
205 HELP2MAN = @HELP2MAN@
206 INSTALL = @INSTALL@
207 INSTALL_DATA = @INSTALL_DATA@
208 INSTALL_PROGRAM = @INSTALL_PROGRAM@
209 INSTALL_SCRIPT = @INSTALL_SCRIPT@
210 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
211 LDFLAGS = @LDFLAGS@
212 LIBOBJS = @LIBOBJS@
213 LIBS = @LIBS@
214 LIBUSB1_0_CFLAGS = @LIBUSB1_0_CFLAGS@
215 LIBUSB1_0_LIBS = @LIBUSB1_0_LIBS@
216 LTLIBOBJS = @LTLIBOBJS@
217 MAKEINFO = @MAKEINFO@
218 MKDIR_P = @MKDIR_P@
219 OBJEXT = @OBJEXT@
220 PACKAGE = @PACKAGE@
221 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
222 PACKAGE_NAME = @PACKAGE_NAME@
223 PACKAGE_STRING = @PACKAGE_STRING@
224 PACKAGE_TARNAME = @PACKAGE_TARNAME@
225 PACKAGE_URL = @PACKAGE_URL@
226 PACKAGE_VERSION = @PACKAGE_VERSION@
227 PATH_SEPARATOR = @PATH_SEPARATOR@
228 PKG_CONFIG = @PKG_CONFIG@
229 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
230 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
231 SET_MAKE = @SET_MAKE@
232 SHELL = @SHELL@
233 STRIP = @STRIP@
234 VERSION = @VERSION@
235 abs_builddir = @abs_builddir@
236 abs_srcdir = @abs_srcdir@
237 abs_top_builddir = @abs_top_builddir@
238 abs_top_srcdir = @abs_top_srcdir@
239 ac_ct_CC = @ac_ct_CC@
240 am__include = @am__include@
241 am__leading_dot = @am__leading_dot@
242 am__quote = @am__quote@
243 am__tar = @am__tar@
244 am__untar = @am__untar@
245 bindir = @bindir@
246 build_alias = @build_alias@
247 builddir = @builddir@
248 datadir = @datadir@
249 datarootdir = @datarootdir@
250 docdir = @docdir@
251 dvidir = @dvidir@
252 exec_prefix = @exec_prefix@
253 host_alias = @host_alias@
254 htmldir = @htmldir@
255 includedir = @includedir@
256 infodir = @infodir@
257 install_sh = @install_sh@
258 libdir = @libdir@
259 libexecdir = @libexecdir@
260 localedir = @localedir@
261 localstatedir = @localstatedir@
262 mandir = @mandir@
263 mkdir_p = @mkdir_p@
264 oldincludedir = @oldincludedir@
265 pdfdir = @pdfdir@
266 prefix = @prefix@
267 program_transform_name = @program_transform_name@
268 psdir = @psdir@
269 sbindir = @sbindir@
270 sharedstatedir = @sharedstatedir@
271 srcdir = @srcdir@
272 sysconfdir = @sysconfdir@
273 target_alias = @target_alias@
274 top_build_prefix = @top_build_prefix@
275 top_builddir = @top_builddir@
276 top_srcdir = @top_srcdir@
277 air_quality_sensor_CFLAGS = $(LIBUSB1_0_CFLAGS)
278 air_quality_sensor_LDADD = $(LIBUSB1_0_LIBS)
279 air_quality_sensor_SOURCES = air10.c
280
281 # manpages
282 man_MANS = air-quality-sensor.1
283 EXTRA_DIST = $(man_MANS) manpage.include
284 man_include = $(srcdir)/manpage.include
285 all: all-am
286
287 .SUFFIXES:
288 .SUFFIXES: .c .o .obj
289 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
290 @for dep in $?; do \
291 case '$(am__configure_deps)' in \
292 *$$dep*) \
293 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
294 && { if test -f $@; then exit 0; else break; fi; }; \
295 exit 1;; \
296 esac; \
297 done; \
298 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
299 $(am__cd) $(top_srcdir) && \
300 $(AUTOMAKE) --foreign src/Makefile
301 .PRECIOUS: Makefile
302 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
303 @case '$?' in \
304 *config.status*) \
305 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
306 *) \
307 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
308 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
309 esac;
310
311 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
312 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
313
314 $(top_srcdir)/configure: $(am__configure_deps)
315 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
316 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
317 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
318 $(am__aclocal_m4_deps):
319 install-binPROGRAMS: $(bin_PROGRAMS)
320 @$(NORMAL_INSTALL)
321 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
322 if test -n "$$list"; then \
323 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
324 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
325 fi; \
326 for p in $$list; do echo "$$p $$p"; done | \
327 sed 's/$(EXEEXT)$$//' | \
328 while read p p1; do if test -f $$p \
329 ; then echo "$$p"; echo "$$p"; else :; fi; \
330 done | \
331 sed -e 'p;s,.*/,,;n;h' \
332 -e 's|.*|.|' \
333 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
334 sed 'N;N;N;s,\n, ,g' | \
335 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
336 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
337 if ($$2 == $$4) files[d] = files[d] " " $$1; \
338 else { print "f", $$3 "/" $$4, $$1; } } \
339 END { for (d in files) print "f", d, files[d] }' | \
340 while read type dir files; do \
341 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
342 test -z "$$files" || { \
343 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
344 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
345 } \
346 ; done
347
348 uninstall-binPROGRAMS:
349 @$(NORMAL_UNINSTALL)
350 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
351 files=`for p in $$list; do echo "$$p"; done | \
352 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
353 -e 's/$$/$(EXEEXT)/' \
354 `; \
355 test -n "$$list" || exit 0; \
356 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
357 cd "$(DESTDIR)$(bindir)" && rm -f $$files
358
359 clean-binPROGRAMS:
360 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
361
362 air-quality-sensor$(EXEEXT): $(air_quality_sensor_OBJECTS) $(air_quality_sensor_DEPENDENCIES) $(EXTRA_air_quality_sensor_DEPENDENCIES)
363 @rm -f air-quality-sensor$(EXEEXT)
364 $(AM_V_CCLD)$(air_quality_sensor_LINK) $(air_quality_sensor_OBJECTS) $(air_quality_sensor_LDADD) $(LIBS)
365
366 mostlyclean-compile:
367 -rm -f *.$(OBJEXT)
368
369 distclean-compile:
370 -rm -f *.tab.c
371
372 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/air_quality_sensor-air10.Po@am__quote@
373
374 .c.o:
375 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
376 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
377 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
378 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
380
381 .c.obj:
382 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
383 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
384 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
385 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
387
388 air_quality_sensor-air10.o: air10.c
389 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -MT air_quality_sensor-air10.o -MD -MP -MF $(DEPDIR)/air_quality_sensor-air10.Tpo -c -o air_quality_sensor-air10.o `test -f 'air10.c' || echo '$(srcdir)/'`air10.c
390 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/air_quality_sensor-air10.Tpo $(DEPDIR)/air_quality_sensor-air10.Po
391 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='air10.c' object='air_quality_sensor-air10.o' libtool=no @AMDEPBACKSLASH@
392 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -c -o air_quality_sensor-air10.o `test -f 'air10.c' || echo '$(srcdir)/'`air10.c
394
395 air_quality_sensor-air10.obj: air10.c
396 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -MT air_quality_sensor-air10.obj -MD -MP -MF $(DEPDIR)/air_quality_sensor-air10.Tpo -c -o air_quality_sensor-air10.obj `if test -f 'air10.c'; then $(CYGPATH_W) 'air10.c'; else $(CYGPATH_W) '$(srcdir)/air10.c'; fi`
397 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/air_quality_sensor-air10.Tpo $(DEPDIR)/air_quality_sensor-air10.Po
398 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='air10.c' object='air_quality_sensor-air10.obj' libtool=no @AMDEPBACKSLASH@
399 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(air_quality_sensor_CFLAGS) $(CFLAGS) -c -o air_quality_sensor-air10.obj `if test -f 'air10.c'; then $(CYGPATH_W) 'air10.c'; else $(CYGPATH_W) '$(srcdir)/air10.c'; fi`
401 install-man1: $(man_MANS)
402 @$(NORMAL_INSTALL)
403 @list1=''; \
404 list2='$(man_MANS)'; \
405 test -n "$(man1dir)" \
406 && test -n "`echo $$list1$$list2`" \
407 || exit 0; \
408 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
409 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
410 { for i in $$list1; do echo "$$i"; done; \
411 if test -n "$$list2"; then \
412 for i in $$list2; do echo "$$i"; done \
413 | sed -n '/\.1[a-z]*$$/p'; \
414 fi; \
415 } | while read p; do \
416 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
417 echo "$$d$$p"; echo "$$p"; \
418 done | \
419 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
420 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
421 sed 'N;N;s,\n, ,g' | { \
422 list=; while read file base inst; do \
423 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
424 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
425 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
426 fi; \
427 done; \
428 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
429 while read files; do \
430 test -z "$$files" || { \
431 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
432 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
433 done; }
434
435 uninstall-man1:
436 @$(NORMAL_UNINSTALL)
437 @list=''; test -n "$(man1dir)" || exit 0; \
438 files=`{ for i in $$list; do echo "$$i"; done; \
439 l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
440 sed -n '/\.1[a-z]*$$/p'; \
441 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
442 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
443 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
444
445 ID: $(am__tagged_files)
446 $(am__define_uniq_tagged_files); mkid -fID $$unique
447 tags: tags-am
448 TAGS: tags
449
450 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
451 set x; \
452 here=`pwd`; \
453 $(am__define_uniq_tagged_files); \
454 shift; \
455 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
456 test -n "$$unique" || unique=$$empty_fix; \
457 if test $$# -gt 0; then \
458 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
459 "$$@" $$unique; \
460 else \
461 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
462 $$unique; \
463 fi; \
464 fi
465 ctags: ctags-am
466
467 CTAGS: ctags
468 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
469 $(am__define_uniq_tagged_files); \
470 test -z "$(CTAGS_ARGS)$$unique" \
471 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
472 $$unique
473
474 GTAGS:
475 here=`$(am__cd) $(top_builddir) && pwd` \
476 && $(am__cd) $(top_srcdir) \
477 && gtags -i $(GTAGS_ARGS) "$$here"
478 cscopelist: cscopelist-am
479
480 cscopelist-am: $(am__tagged_files)
481 list='$(am__tagged_files)'; \
482 case "$(srcdir)" in \
483 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
484 *) sdir=$(subdir)/$(srcdir) ;; \
485 esac; \
486 for i in $$list; do \
487 if test -f "$$i"; then \
488 echo "$(subdir)/$$i"; \
489 else \
490 echo "$$sdir/$$i"; \
491 fi; \
492 done >> $(top_builddir)/cscope.files
493
494 distclean-tags:
495 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
496
497 distdir: $(DISTFILES)
498 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
499 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
500 list='$(DISTFILES)'; \
501 dist_files=`for file in $$list; do echo $$file; done | \
502 sed -e "s|^$$srcdirstrip/||;t" \
503 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
504 case $$dist_files in \
505 */*) $(MKDIR_P) `echo "$$dist_files" | \
506 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
507 sort -u` ;; \
508 esac; \
509 for file in $$dist_files; do \
510 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
511 if test -d $$d/$$file; then \
512 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
513 if test -d "$(distdir)/$$file"; then \
514 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
515 fi; \
516 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
517 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
518 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
519 fi; \
520 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
521 else \
522 test -f "$(distdir)/$$file" \
523 || cp -p $$d/$$file "$(distdir)/$$file" \
524 || exit 1; \
525 fi; \
526 done
527 check-am: all-am
528 check: check-am
529 all-am: Makefile $(PROGRAMS) $(MANS)
530 installdirs:
531 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
532 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
533 done
534 install: install-am
535 install-exec: install-exec-am
536 install-data: install-data-am
537 uninstall: uninstall-am
538
539 install-am: all-am
540 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
541
542 installcheck: installcheck-am
543 install-strip:
544 if test -z '$(STRIP)'; then \
545 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
546 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
547 install; \
548 else \
549 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
550 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
551 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
552 fi
553 mostlyclean-generic:
554
555 clean-generic:
556
557 distclean-generic:
558 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
559 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
560
561 maintainer-clean-generic:
562 @echo "This command is intended for maintainers to use"
563 @echo "it deletes files that may require special tools to rebuild."
564 clean: clean-am
565
566 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
567
568 distclean: distclean-am
569 -rm -rf ./$(DEPDIR)
570 -rm -f Makefile
571 distclean-am: clean-am distclean-compile distclean-generic \
572 distclean-tags
573
574 dvi: dvi-am
575
576 dvi-am:
577
578 html: html-am
579
580 html-am:
581
582 info: info-am
583
584 info-am:
585
586 install-data-am: install-man
587
588 install-dvi: install-dvi-am
589
590 install-dvi-am:
591
592 install-exec-am: install-binPROGRAMS
593
594 install-html: install-html-am
595
596 install-html-am:
597
598 install-info: install-info-am
599
600 install-info-am:
601
602 install-man: install-man1
603
604 install-pdf: install-pdf-am
605
606 install-pdf-am:
607
608 install-ps: install-ps-am
609
610 install-ps-am:
611
612 installcheck-am:
613
614 maintainer-clean: maintainer-clean-am
615 -rm -rf ./$(DEPDIR)
616 -rm -f Makefile
617 maintainer-clean-am: distclean-am maintainer-clean-generic
618
619 mostlyclean: mostlyclean-am
620
621 mostlyclean-am: mostlyclean-compile mostlyclean-generic
622
623 pdf: pdf-am
624
625 pdf-am:
626
627 ps: ps-am
628
629 ps-am:
630
631 uninstall-am: uninstall-binPROGRAMS uninstall-man
632
633 uninstall-man: uninstall-man1
634
635 .MAKE: install-am install-strip
636
637 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
638 clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \
639 distclean distclean-compile distclean-generic distclean-tags \
640 distdir dvi dvi-am html html-am info info-am install \
641 install-am install-binPROGRAMS install-data install-data-am \
642 install-dvi install-dvi-am install-exec install-exec-am \
643 install-html install-html-am install-info install-info-am \
644 install-man install-man1 install-pdf install-pdf-am install-ps \
645 install-ps-am install-strip installcheck installcheck-am \
646 installdirs maintainer-clean maintainer-clean-generic \
647 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
648 ps ps-am tags tags-am uninstall uninstall-am \
649 uninstall-binPROGRAMS uninstall-man uninstall-man1
650
651
652 air-quality-sensor.1: $(air_quality_sensor_SOURCES) $(man_include)
653 $(HELP2MAN) --no-info --include $(man_include) --name="User space driver for AppliedSensor's Indoor Air Monitor" ./$(bin_PROGRAMS) -o $@
654
655 # Tell versions [3.59,3.63) of GNU make to not export all variables.
656 # Otherwise a system limit (for SysV at least) may be exceeded.
657 .NOEXPORT:
0 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.5.
1 .TH AIR-QUALITY-SENSOR "1" "March 2015" "air-quality-sensor (air-quality-sensor) 0.1.3" "User Commands"
0 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
1 .TH AIR-QUALITY-SENSOR "1" "August 2017" "air-quality-sensor (air-quality-sensor) 0.1.4.1" "User Commands"
22 .SH NAME
33 air-quality-sensor \- User space driver for AppliedSensor's Indoor Air Monitor
44 .SH SYNOPSIS
3232 .SH COPYRIGHT
3333 Copyright \(co 2014 Jan\-Benedict Glaw
3434 .br
35 <<<<<<< HEAD
3536 Copyright \(co 2015 Benedikt Wildenhain
37 =======
38 Copyright \(co 2017 Benedikt Wildenhain
39 >>>>>>> upstream/0.1.4.2
3640 .PP
3741 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
3842 .br
9191 ret = libusb_detach_kernel_driver (devh, 0 /*intrf */ );
9292 if (ret)
9393 {
94 fprintf (stderr, "Failed to detatch kernel driver.\n");
94 fprintf (stderr, "Failed to detach kernel driver.\n");
9595 ret = -2;
9696 goto out;
9797 }
267267
268268 printf (("\
269269 Copyright (C) 2014 Jan-Benedict Glaw\n\
270 Copyright (C) %d Benedikt Wildenhain\n\n\
270 Copyright (C) %s Benedikt Wildenhain\n\n\
271271 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n\
272272 This is free software: you are free to change and redistribute it.\n\
273273 There is NO WARRANTY, to the extent permitted by law.\n"), COPYRIGHT_YEAR);
0 <?xml version="1.0" encoding="utf-8"?>
1 <!-- Copyright 2017 Benedikt Wildenhain -->
2 <component type="console-application">
3 <id>de.benedikt-wildenhain.air-quality-sensor</id>
4 <metadata_license>FSFAP</metadata_license>
5 <project_license>GPL-3.0+</project_license>
6
7 <name>Air Quality Sensor</name>
8 <summary>user space driver for AppliedSensor's Indoor Air Monitor</summary>
9
10 <description>
11 <p>
12 air-quality-sensor is a commandline utility to read sensor data
13 from usb keys using AppliedSensor's Indoor Air Monitor to give you
14 an indication about the air quality around the sensor.
15 </p>
16 </description>
17
18 <url type="homepage">https://github.com/bwildenhain/air-quality-sensor</url>
19
20 <provides>
21 <binary>air-quality-sensor</binary>
22 <modalias>usb:v03EBp2013d*</modalias>
23 </provides>
24 </component>